diff --git a/examples/reproduction-template/package.json b/examples/reproduction-template/package.json index 14d63af50deff..679d2144ab56b 100644 --- a/examples/reproduction-template/package.json +++ b/examples/reproduction-template/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016" }, "devDependencies": { "@types/node": "20.12.12", diff --git a/package.json b/package.json index d1d3ea14edc14..26f44d084625a 100644 --- a/package.json +++ b/package.json @@ -209,19 +209,19 @@ "pretty-bytes": "5.3.0", "pretty-ms": "7.0.0", "random-seed": "0.3.0", - "react": "19.0.0-rc-cd22717c-20241013", + "react": "19.0.0-rc-77b637d6-20241016", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013", + "react-builtin": "npm:react@19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@19.0.0-rc-cd22717c-20241013", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-cd22717c-20241013", - "react-experimental-builtin": "npm:react@0.0.0-experimental-cd22717c-20241013", - "react-is-builtin": "npm:react-is@19.0.0-rc-cd22717c-20241013", - "react-server-dom-turbopack": "19.0.0-rc-cd22717c-20241013", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-cd22717c-20241013", - "react-server-dom-webpack": "19.0.0-rc-cd22717c-20241013", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-cd22717c-20241013", + "react-dom-builtin": "npm:react-dom@19.0.0-rc-77b637d6-20241016", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-77b637d6-20241016", + "react-experimental-builtin": "npm:react@0.0.0-experimental-77b637d6-20241016", + "react-is-builtin": "npm:react-is@19.0.0-rc-77b637d6-20241016", + "react-server-dom-turbopack": "19.0.0-rc-77b637d6-20241016", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-77b637d6-20241016", + "react-server-dom-webpack": "19.0.0-rc-77b637d6-20241016", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-77b637d6-20241016", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -231,8 +231,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.25.0-rc-cd22717c-20241013", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-cd22717c-20241013", + "scheduler-builtin": "npm:scheduler@0.25.0-rc-77b637d6-20241016", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-77b637d6-20241016", "seedrandom": "3.0.5", "semver": "7.3.7", "shell-quote": "1.7.3", @@ -272,10 +272,10 @@ "@babel/traverse": "7.22.5", "@types/react": "npm:types-react@19.0.0-rc.0", "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0", - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013", - "react-is": "19.0.0-rc-cd22717c-20241013", - "scheduler": "0.25.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016", + "react-is": "19.0.0-rc-77b637d6-20241016", + "scheduler": "0.25.0-rc-77b637d6-20241016" }, "patchedDependencies": { "webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch" diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index 5e46fbef5fa4f..1eccaeb434818 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -13,7 +13,7 @@ import { GetTemplateFileArgs, InstallTemplateArgs } from "./types"; // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-cd22717c-20241013"; +const nextjsReactPeerVersion = "19.0.0-rc-77b637d6-20241016"; /** * Get the file path for a given file in a template, e.g. "next.config.js". diff --git a/packages/next/package.json b/packages/next/package.json index d834ac25b123a..3dd3edaaad70c 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -107,8 +107,8 @@ "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-cd22717c-20241013", - "react-dom": "^18.2.0 || 19.0.0-rc-cd22717c-20241013", + "react": "^18.2.0 || 19.0.0-rc-77b637d6-20241016", + "react-dom": "^18.2.0 || 19.0.0-rc-77b637d6-20241016", "sass": "^1.3.0" }, "peerDependenciesMeta": { diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js index 9d162f1c04935..8da6a0c141890 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js @@ -1031,43 +1031,39 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1141,9 +1137,7 @@ root, finishedLanes, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1154,17 +1148,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; + var index = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index; + finishedLanes[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1176,14 +1170,9 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8903,33 +8892,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2296; - var JSCompiler_object_inline_stack_2295 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2294; + var JSCompiler_object_inline_stack_2293 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2293 = !1; + var JSCompiler_object_inline_message_2291 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2296 = didSuspend) || - (JSCompiler_object_inline_componentStack_2296 = + (JSCompiler_object_inline_componentStack_2294 = didSuspend) || + (JSCompiler_object_inline_componentStack_2294 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2296 && - ((JSCompiler_object_inline_message_2293 = !0), + JSCompiler_object_inline_componentStack_2294 && + ((JSCompiler_object_inline_message_2291 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2296 = + JSCompiler_object_inline_componentStack_2294 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2293 + JSCompiler_object_inline_message_2291 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2294 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2292 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2294)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2292)) { c: { - var instance = JSCompiler_object_inline_digest_2294; + var instance = JSCompiler_object_inline_digest_2292; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8970,19 +8959,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2294 + JSCompiler_object_inline_digest_2292 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2294 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2292 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2294 && - ((JSCompiler_object_inline_digest_2294 = - JSCompiler_object_inline_digest_2294.dehydrated), - null !== JSCompiler_object_inline_digest_2294) + null !== JSCompiler_object_inline_digest_2292 && + ((JSCompiler_object_inline_digest_2292 = + JSCompiler_object_inline_digest_2292.dehydrated), + null !== JSCompiler_object_inline_digest_2292) ) return ( - JSCompiler_object_inline_digest_2294.data === + JSCompiler_object_inline_digest_2292.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8990,68 +8979,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2294 = - JSCompiler_object_inline_stack_2295.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2295.fallback; - if (JSCompiler_object_inline_message_2293) + JSCompiler_object_inline_digest_2292 = + JSCompiler_object_inline_stack_2293.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2293.fallback; + if (JSCompiler_object_inline_message_2291) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2295 = + (JSCompiler_object_inline_stack_2293 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2294, + JSCompiler_object_inline_digest_2292, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2293 = workInProgress.child), - (JSCompiler_object_inline_message_2293.memoizedState = + (JSCompiler_object_inline_message_2291 = workInProgress.child), + (JSCompiler_object_inline_message_2291.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2293.childLanes = + (JSCompiler_object_inline_message_2291.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2296, + JSCompiler_object_inline_componentStack_2294, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2295 + JSCompiler_object_inline_stack_2293 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2295.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2293.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2295 = + (JSCompiler_object_inline_stack_2293 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2294, + JSCompiler_object_inline_digest_2292, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2293 = workInProgress.child), - (JSCompiler_object_inline_message_2293.memoizedState = + (JSCompiler_object_inline_message_2291 = workInProgress.child), + (JSCompiler_object_inline_message_2291.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2293.childLanes = + (JSCompiler_object_inline_message_2291.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2296, + JSCompiler_object_inline_componentStack_2294, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2295 + JSCompiler_object_inline_stack_2293 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2294 + JSCompiler_object_inline_digest_2292 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2294 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2294) + ((JSCompiler_object_inline_digest_2292 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2292) ) { if (didSuspend) workInProgress.flags & 256 @@ -9068,94 +9057,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2293 = - JSCompiler_object_inline_stack_2295.fallback), - (JSCompiler_object_inline_digest_2294 = workInProgress.mode), - (JSCompiler_object_inline_stack_2295 = + (JSCompiler_object_inline_message_2291 = + JSCompiler_object_inline_stack_2293.fallback), + (JSCompiler_object_inline_digest_2292 = workInProgress.mode), + (JSCompiler_object_inline_stack_2293 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2295.children + children: JSCompiler_object_inline_stack_2293.children }, - JSCompiler_object_inline_digest_2294 + JSCompiler_object_inline_digest_2292 )), - (JSCompiler_object_inline_message_2293 = + (JSCompiler_object_inline_message_2291 = createFiberFromFragment( - JSCompiler_object_inline_message_2293, - JSCompiler_object_inline_digest_2294, + JSCompiler_object_inline_message_2291, + JSCompiler_object_inline_digest_2292, renderLanes, null )), - (JSCompiler_object_inline_message_2293.flags |= 2), - (JSCompiler_object_inline_stack_2295.return = workInProgress), - (JSCompiler_object_inline_message_2293.return = workInProgress), - (JSCompiler_object_inline_stack_2295.sibling = - JSCompiler_object_inline_message_2293), - (workInProgress.child = JSCompiler_object_inline_stack_2295), + (JSCompiler_object_inline_message_2291.flags |= 2), + (JSCompiler_object_inline_stack_2293.return = workInProgress), + (JSCompiler_object_inline_message_2291.return = workInProgress), + (JSCompiler_object_inline_stack_2293.sibling = + JSCompiler_object_inline_message_2291), + (workInProgress.child = JSCompiler_object_inline_stack_2293), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2295 = workInProgress.child), - (JSCompiler_object_inline_stack_2295.memoizedState = + (JSCompiler_object_inline_stack_2293 = workInProgress.child), + (JSCompiler_object_inline_stack_2293.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2295.childLanes = + (JSCompiler_object_inline_stack_2293.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2296, + JSCompiler_object_inline_componentStack_2294, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2293)); + (workInProgress = JSCompiler_object_inline_message_2291)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2294.data === + JSCompiler_object_inline_digest_2292.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2296 = - JSCompiler_object_inline_digest_2294.nextSibling && - JSCompiler_object_inline_digest_2294.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2296) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2296.dgst; - var message = JSCompiler_object_inline_componentStack_2296.msg; - instance = JSCompiler_object_inline_componentStack_2296.stck; + JSCompiler_object_inline_componentStack_2294 = + JSCompiler_object_inline_digest_2292.nextSibling && + JSCompiler_object_inline_digest_2292.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2294) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2294.dgst; + var message = JSCompiler_object_inline_componentStack_2294.msg; + instance = JSCompiler_object_inline_componentStack_2294.stck; var componentStack = - JSCompiler_object_inline_componentStack_2296.cstck; + JSCompiler_object_inline_componentStack_2294.cstck; } - JSCompiler_object_inline_message_2293 = message; - JSCompiler_object_inline_digest_2294 = JSCompiler_temp; - JSCompiler_object_inline_stack_2295 = instance; - JSCompiler_object_inline_componentStack_2296 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2294 && - ((JSCompiler_object_inline_message_2293 = - JSCompiler_object_inline_message_2293 - ? Error(JSCompiler_object_inline_message_2293) + JSCompiler_object_inline_message_2291 = message; + JSCompiler_object_inline_digest_2292 = JSCompiler_temp; + JSCompiler_object_inline_stack_2293 = instance; + JSCompiler_object_inline_componentStack_2294 = componentStack; + "POSTPONE" !== JSCompiler_object_inline_digest_2292 && + ((JSCompiler_object_inline_message_2291 = + JSCompiler_object_inline_message_2291 + ? Error(JSCompiler_object_inline_message_2291) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_message_2293.stack = - JSCompiler_object_inline_stack_2295 || ""), - (JSCompiler_object_inline_message_2293.digest = - JSCompiler_object_inline_digest_2294), - (JSCompiler_object_inline_componentStack_2296 = - void 0 === JSCompiler_object_inline_componentStack_2296 + (JSCompiler_object_inline_message_2291.stack = + JSCompiler_object_inline_stack_2293 || ""), + (JSCompiler_object_inline_message_2291.digest = + JSCompiler_object_inline_digest_2292), + (JSCompiler_object_inline_componentStack_2294 = + void 0 === JSCompiler_object_inline_componentStack_2294 ? null - : JSCompiler_object_inline_componentStack_2296), - "string" === typeof JSCompiler_object_inline_componentStack_2296 && + : JSCompiler_object_inline_componentStack_2294), + "string" === typeof JSCompiler_object_inline_componentStack_2294 && CapturedStacks.set( - JSCompiler_object_inline_message_2293, - JSCompiler_object_inline_componentStack_2296 + JSCompiler_object_inline_message_2291, + JSCompiler_object_inline_componentStack_2294 ), queueHydrationError({ - value: JSCompiler_object_inline_message_2293, + value: JSCompiler_object_inline_message_2291, source: null, - stack: JSCompiler_object_inline_componentStack_2296 + stack: JSCompiler_object_inline_componentStack_2294 })); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9170,25 +9159,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2296 = + (JSCompiler_object_inline_componentStack_2294 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2296) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2294) ) { - JSCompiler_object_inline_componentStack_2296 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2296) { - JSCompiler_object_inline_stack_2295 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2295 & 42)) - JSCompiler_object_inline_stack_2295 = 1; + JSCompiler_object_inline_componentStack_2294 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2294) { + JSCompiler_object_inline_stack_2293 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2293 & 42)) + JSCompiler_object_inline_stack_2293 = 1; else - switch (JSCompiler_object_inline_stack_2295) { + switch (JSCompiler_object_inline_stack_2293) { case 2: - JSCompiler_object_inline_stack_2295 = 1; + JSCompiler_object_inline_stack_2293 = 1; break; case 8: - JSCompiler_object_inline_stack_2295 = 4; + JSCompiler_object_inline_stack_2293 = 4; break; case 32: - JSCompiler_object_inline_stack_2295 = 16; + JSCompiler_object_inline_stack_2293 = 16; break; case 128: case 256: @@ -9209,40 +9198,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2295 = 64; + JSCompiler_object_inline_stack_2293 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2295 = 134217728; + JSCompiler_object_inline_stack_2293 = 134217728; break; default: - JSCompiler_object_inline_stack_2295 = 0; + JSCompiler_object_inline_stack_2293 = 0; } - JSCompiler_object_inline_stack_2295 = + JSCompiler_object_inline_stack_2293 = 0 !== - (JSCompiler_object_inline_stack_2295 & - (JSCompiler_object_inline_componentStack_2296.suspendedLanes | + (JSCompiler_object_inline_stack_2293 & + (JSCompiler_object_inline_componentStack_2294.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2295; + : JSCompiler_object_inline_stack_2293; if ( - 0 !== JSCompiler_object_inline_stack_2295 && - JSCompiler_object_inline_stack_2295 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2293 && + JSCompiler_object_inline_stack_2293 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2295), + ((prevState.retryLane = JSCompiler_object_inline_stack_2293), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2295 + JSCompiler_object_inline_stack_2293 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2296, + JSCompiler_object_inline_componentStack_2294, current, - JSCompiler_object_inline_stack_2295 + JSCompiler_object_inline_stack_2293 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2294.data === + JSCompiler_object_inline_digest_2292.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9250,7 +9239,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2294.data === + JSCompiler_object_inline_digest_2292.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9258,12 +9247,12 @@ null, current )), - (JSCompiler_object_inline_digest_2294._reactRetry = + (JSCompiler_object_inline_digest_2292._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2294.nextSibling + JSCompiler_object_inline_digest_2292.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9281,54 +9270,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2295.children + JSCompiler_object_inline_stack_2293.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2293) + if (JSCompiler_object_inline_message_2291) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2293 = - JSCompiler_object_inline_stack_2295.fallback), - (JSCompiler_object_inline_digest_2294 = workInProgress.mode), + (JSCompiler_object_inline_message_2291 = + JSCompiler_object_inline_stack_2293.fallback), + (JSCompiler_object_inline_digest_2292 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2295 = createWorkInProgress( + (JSCompiler_object_inline_stack_2293 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2295.children + children: JSCompiler_object_inline_stack_2293.children } )), - (JSCompiler_object_inline_stack_2295.subtreeFlags = + (JSCompiler_object_inline_stack_2293.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2293 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2291 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2293 + JSCompiler_object_inline_message_2291 )) - : ((JSCompiler_object_inline_message_2293 = createFiberFromFragment( - JSCompiler_object_inline_message_2293, - JSCompiler_object_inline_digest_2294, + : ((JSCompiler_object_inline_message_2291 = createFiberFromFragment( + JSCompiler_object_inline_message_2291, + JSCompiler_object_inline_digest_2292, renderLanes, null )), - (JSCompiler_object_inline_message_2293.flags |= 2)), - (JSCompiler_object_inline_message_2293.return = workInProgress), - (JSCompiler_object_inline_stack_2295.return = workInProgress), - (JSCompiler_object_inline_stack_2295.sibling = - JSCompiler_object_inline_message_2293), - (workInProgress.child = JSCompiler_object_inline_stack_2295), - (JSCompiler_object_inline_stack_2295 = - JSCompiler_object_inline_message_2293), - (JSCompiler_object_inline_message_2293 = workInProgress.child), - (JSCompiler_object_inline_digest_2294 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2294 - ? (JSCompiler_object_inline_digest_2294 = + (JSCompiler_object_inline_message_2291.flags |= 2)), + (JSCompiler_object_inline_message_2291.return = workInProgress), + (JSCompiler_object_inline_stack_2293.return = workInProgress), + (JSCompiler_object_inline_stack_2293.sibling = + JSCompiler_object_inline_message_2291), + (workInProgress.child = JSCompiler_object_inline_stack_2293), + (JSCompiler_object_inline_stack_2293 = + JSCompiler_object_inline_message_2291), + (JSCompiler_object_inline_message_2291 = workInProgress.child), + (JSCompiler_object_inline_digest_2292 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2292 + ? (JSCompiler_object_inline_digest_2292 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2294.cachePool), + JSCompiler_object_inline_digest_2292.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9336,38 +9325,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2294 = { + (JSCompiler_object_inline_digest_2292 = { baseLanes: - JSCompiler_object_inline_digest_2294.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2292.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2293.memoizedState = - JSCompiler_object_inline_digest_2294), - (JSCompiler_object_inline_message_2293.childLanes = + (JSCompiler_object_inline_message_2291.memoizedState = + JSCompiler_object_inline_digest_2292), + (JSCompiler_object_inline_message_2291.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2296, + JSCompiler_object_inline_componentStack_2294, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2295 + JSCompiler_object_inline_stack_2293 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2295.children + children: JSCompiler_object_inline_stack_2293.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2296 = + ((JSCompiler_object_inline_componentStack_2294 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2296 + null === JSCompiler_object_inline_componentStack_2294 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2296.push(current)); + : JSCompiler_object_inline_componentStack_2294.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13790,8 +13779,7 @@ workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14588,8 +14576,7 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if ( @@ -14631,199 +14618,188 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = - !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes); - if (exitStatus !== RootInProgress) { - var renderWasConcurrent = forceSync; - do { - if (exitStatus === RootDidNotComplete) - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes); - renderWasConcurrent = !1; - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( - exitStatus, - errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (exitStatus === RootInProgress) break; + else if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes, !1); + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( exitStatus, errorRetryLanes$jscomp$0 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; - } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( + exitStatus, + errorRetryLanes$jscomp$0, + !1 + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; } - exitStatus = errorRetryLanes$jscomp$0; + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - renderWasConcurrent = !1; - if (exitStatus !== RootErrored) continue; + exitStatus = errorRetryLanes$jscomp$0; } + if (exitStatus !== RootErrored) continue; } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; - } - a: { - renderWasConcurrent = root; - errorRetryLanes = now$1(); - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - renderWasConcurrent, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - errorRetryLanes - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { + } + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + shouldTimeSlice = root; + renderWasConcurrent = now$1(); + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - errorRetryLanes - ), - exitStatus + workInProgressDeferredLane ); break a; } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + shouldTimeSlice, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + renderWasConcurrent + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - errorRetryLanes + workInProgressDeferredLane + ); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + renderWasConcurrent + ), + exitStatus ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + renderWasConcurrent + ); } } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -14849,8 +14825,11 @@ completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -14872,7 +14851,7 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -14922,22 +14901,19 @@ } return !0; } - function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings - ) { + function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { var index = 31 - clz32(lanes), lane = 1 << index; - didSkipSuspendedSiblings[index] = -1; + expirationTimes[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15056,8 +15032,9 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -15150,8 +15127,7 @@ markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function queueConcurrentError(error) { @@ -15179,37 +15155,38 @@ prepareFreshStack(root, lanes); } lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - workInProgressRootExitStatus = RootDidNotComplete; + memoizedUpdaters = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case SuspendedOnDeprecatedThrowPromise: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop( - root, - memoizedUpdaters, - thrownValue, - reason - ); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = NotSuspended), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -15220,14 +15197,11 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) - throw Error( - "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." - ); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -15251,7 +15225,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); a: do try { if ( @@ -15615,42 +15589,40 @@ ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var finishedWork = root.finishedWork; + updatedLanes = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === finishedWork) return null; + if (null === updatedLanes) return null; 0 === didIncludeRenderPhaseUpdate && console.error( "root.finishedLanes should not be empty during a commit. This is a bug in React." ); root.finishedWork = null; root.finishedLanes = 0; - if (finishedWork === root.current) + if (updatedLanes === root.current) throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; + completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === finishedWork.actualDuration && - 0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || + (0 === updatedLanes.actualDuration && + 0 === (updatedLanes.subtreeFlags & 10256) && + 0 === (updatedLanes.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), @@ -15665,30 +15637,30 @@ ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : suspendedCommitReason === THROTTLED_COMMIT && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions + transitions = 0 !== (updatedLanes.flags & 15990); + 0 !== (updatedLanes.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedCommitReason = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + commitBeforeMutationEffects(root, updatedLanes), commitMutationEffects( root, - finishedWork, + updatedLanes, didIncludeRenderPhaseUpdate ), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + (root.current = updatedLanes), + commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = updatedLanes), + (executionContext = suspendedCommitReason), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + : (root.current = updatedLanes); commitEndTime = now(); logCommitPhase(commitStartTime, commitEndTime); (transitions = rootDoesHavePassiveEffects) @@ -15702,17 +15674,17 @@ 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); transitions || commitDoubleInvokeEffectsInDEV(root); - onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); + onCommitRoot$1(updatedLanes.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ + renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; + updatedLanes < recoverableErrors.length; + updatedLanes++ ) - (completedRenderStartTime = recoverableErrors[finishedWork]), + (completedRenderStartTime = recoverableErrors[updatedLanes]), (spawnedLane = makeErrorInfo(completedRenderStartTime.stack)), runWithFiberInDEV( completedRenderStartTime.source, @@ -16155,7 +16127,8 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 !== (nextLanes & 3) && + 0 === (nextLanes & 3) || + checkIfRootIsPrerendering(root, nextLanes) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -16246,8 +16219,6 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: - suspendedLanes = ImmediatePriority; - break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24918,11 +24889,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24959,11 +24930,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013" + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25105,7 +25076,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js index fd9c96da72b0d..750448aca9242 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js @@ -597,43 +597,39 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } +function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); +} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -696,14 +692,7 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { +function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -713,36 +702,31 @@ function markRootFinished( root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$6 = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index$6; + finishedLanes[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -757,10 +741,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -910,8 +894,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$10 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$10 && "aria-" !== prefix$10) { + var prefix$9 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$9 && "aria-" !== prefix$9) { node.removeAttribute(name); return; } @@ -1244,15 +1228,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$16 in styles) - (styleName = styles[styleName$16]), - styles.hasOwnProperty(styleName$16) && - prevStyles[styleName$16] !== styleName && - setValueForStyle(node, styleName$16, styleName); + for (var styleName$15 in styles) + (styleName = styles[styleName$15]), + styles.hasOwnProperty(styleName$15) && + prevStyles[styleName$15] !== styleName && + setValueForStyle(node, styleName$15, styleName); } else - for (var styleName$17 in styles) - styles.hasOwnProperty(styleName$17) && - setValueForStyle(node, styleName$17, styles[styleName$17]); + for (var styleName$16 in styles) + styles.hasOwnProperty(styleName$16) && + setValueForStyle(node, styleName$16, styles[styleName$16]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -3938,7 +3922,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$55 = !1; + didReadFromEntangledAsyncAction$54 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3959,11 +3943,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$54 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$54 = !0); continue; } else (updateLane = { @@ -4009,7 +3993,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$55 && + didReadFromEntangledAsyncAction$54 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4207,8 +4191,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$61) { - onActionError(actionQueue, node, error$61); + } catch (error$60) { + onActionError(actionQueue, node, error$60); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4657,14 +4641,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$64 = enqueueUpdate(provider, fiber, lane); - null !== root$64 && - (scheduleUpdateOnFiber(root$64, provider, lane), - entangleTransitions(root$64, provider, lane)); + var root$63 = enqueueUpdate(provider, fiber, lane); + null !== root$63 && + (scheduleUpdateOnFiber(root$63, provider, lane), + entangleTransitions(root$63, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$64 && + null !== root$63 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5195,9 +5179,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$68 in Component) - void 0 === newProps[propName$68] && - (newProps[propName$68] = Component[propName$68]); + for (var propName$67 in Component) + void 0 === newProps[propName$67] && + (newProps[propName$67] = Component[propName$67]); } return newProps; } @@ -5243,9 +5227,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$69) { + } catch (e$68) { setTimeout(function () { - throw e$69; + throw e$68; }); } } @@ -5256,9 +5240,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$70) { + } catch (e$69) { setTimeout(function () { - throw e$70; + throw e$69; }); } } @@ -7724,8 +7708,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$115) { - captureCommitPhaseError(current, nearestMountedAncestor, error$115); + } catch (error$114) { + captureCommitPhaseError(current, nearestMountedAncestor, error$114); } else ref.current = null; } @@ -7859,7 +7843,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$20) { + } catch (e$19) { JSCompiler_temp = null; break a; } @@ -8034,11 +8018,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$114) { + } catch (error$113) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$114 + error$113 ); } } @@ -8192,7 +8176,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$122 = hostParentIsContainer; + var prevHostParentIsContainer$121 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8200,7 +8184,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$122; + hostParentIsContainer = prevHostParentIsContainer$121; if (null !== hostParent) if (hostParentIsContainer) try { @@ -8828,21 +8812,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$116 = JSCompiler_inline_result.stateNode; + var parent$115 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$116, ""), + (setTextContent(parent$115, ""), (JSCompiler_inline_result.flags &= -33)); - var before$117 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$117, parent$116); + var before$116 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$116, parent$115); break; case 3: case 4: - var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, - before$119 = getHostSibling(finishedWork); + var parent$117 = JSCompiler_inline_result.stateNode.containerInfo, + before$118 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$119, - parent$118 + before$118, + parent$117 ); break; default: @@ -9739,8 +9723,7 @@ function scheduleRetryEffect(workInProgress, retryQueue) { workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -9757,14 +9740,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$134 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$134 = lastTailNode), + for (var lastTailNode$133 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$134 + null === lastTailNode$133 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$134.sibling = null); + : (lastTailNode$133.sibling = null); } } function bubbleProperties(completedWork) { @@ -9774,19 +9757,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$135 = completedWork.child; null !== child$135; ) - (newChildLanes |= child$135.lanes | child$135.childLanes), - (subtreeFlags |= child$135.subtreeFlags & 31457280), - (subtreeFlags |= child$135.flags & 31457280), - (child$135.return = completedWork), - (child$135 = child$135.sibling); + for (var child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags & 31457280), + (subtreeFlags |= child$134.flags & 31457280), + (child$134.return = completedWork), + (child$134 = child$134.sibling); else - for (child$135 = completedWork.child; null !== child$135; ) - (newChildLanes |= child$135.lanes | child$135.childLanes), - (subtreeFlags |= child$135.subtreeFlags), - (subtreeFlags |= child$135.flags), - (child$135.return = completedWork), - (child$135 = child$135.sibling); + for (child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags), + (subtreeFlags |= child$134.flags), + (child$134.return = completedWork), + (child$134 = child$134.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10063,11 +10046,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$147 = null; + var cache$146 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$147 = newProps.memoizedState.cachePool.pool); - cache$147 !== type && (newProps.flags |= 2048); + (cache$146 = newProps.memoizedState.cachePool.pool); + cache$146 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10092,8 +10075,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$147 = type.rendering; - if (null === cache$147) + cache$146 = type.rendering; + if (null === cache$146) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10101,11 +10084,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$147 = findFirstSuspended(current); - if (null !== cache$147) { + cache$146 = findFirstSuspended(current); + if (null !== cache$146) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$147.updateQueue; + current = cache$146.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10130,7 +10113,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$147)), null !== current)) { + if (((current = findFirstSuspended(cache$146)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10140,7 +10123,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$147.alternate && + !cache$146.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10153,13 +10136,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$147.sibling = workInProgress.child), - (workInProgress.child = cache$147)) + ? ((cache$146.sibling = workInProgress.child), + (workInProgress.child = cache$146)) : ((current = type.last), null !== current - ? (current.sibling = cache$147) - : (workInProgress.child = cache$147), - (type.last = cache$147)); + ? (current.sibling = cache$146) + : (workInProgress.child = cache$146), + (type.last = cache$146)); } if (null !== type.tail) return ( @@ -10383,8 +10366,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10395,178 +10377,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = - !forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes); - if (0 !== exitStatus) { - var renderWasConcurrent = forceSync; - do { - if (6 === exitStatus) - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes); - renderWasConcurrent = !1; - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (0 === exitStatus) break; + else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes, !1); + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else + (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), (JSCompiler_inline_result = - root$jscomp$0.pendingLanes & -536870913), - (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= - 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; - } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result, + !1 + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = !1; - if (2 !== exitStatus) continue; + exitStatus = JSCompiler_inline_result; } + if (2 !== exitStatus) continue; } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; + } + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; + } + a: { + shouldTimeSlice = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + shouldTimeSlice, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); } - a: { - renderWasConcurrent = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now()), - 10 < exitStatus) - ) { - markRootSuspended( - renderWasConcurrent, + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), + 10 < renderWasConcurrent) + ) { + markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - exitStatus - ); - break a; - } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + renderWasConcurrent ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 + ); } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10592,8 +10554,11 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10615,7 +10580,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -10665,22 +10630,19 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings -) { +function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - didSkipSuspendedSiblings[index$6] = -1; + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + expirationTimes[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10723,8 +10685,9 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -10743,9 +10706,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$3 = 31 - clz32(allEntangledLanes), + lane = 1 << index$3; + lanes |= root[index$3]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10815,8 +10778,7 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function queueConcurrentError(error) { @@ -10832,6 +10794,7 @@ function renderRootSync(root, lanes) { if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = null), prepareFreshStack(root, lanes); lanes = !1; + var exitStatus = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10840,21 +10803,26 @@ function renderRootSync(root, lanes) { switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; + exitStatus = 6; break a; case 3: case 2: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case 6: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = 0), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + exitStatus = workInProgressRootExitStatus; break; } catch (thrownValue$162) { handleThrow(root, thrownValue$162); @@ -10865,11 +10833,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return exitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -10879,10 +10847,11 @@ function renderRootConcurrent(root, lanes) { executionContext |= 2; var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) - (workInProgressTransitions = null), + workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes + ? ((workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes); + prepareFreshStack(root, lanes)) + : checkIfRootIsPrerendering(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -11156,9 +11125,7 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11178,9 +11145,7 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11196,25 +11161,25 @@ function commitRootImpl( return null; })); transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), - (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), - (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffectsOnFiber(finishedWork, root), - restoreSelection(selectionInformation, root.containerInfo), - (_enabled = !!eventsEnabled), - (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), - requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { + transitions = ReactSharedInternals.T; + ReactSharedInternals.T = null; + spawnedLane = ReactDOMSharedInternals.p; + ReactDOMSharedInternals.p = 2; + var prevExecutionContext = executionContext; + executionContext |= 4; + commitBeforeMutationEffects(root, finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + restoreSelection(selectionInformation, root.containerInfo); + _enabled = !!eventsEnabled; + selectionInformation = eventsEnabled = null; + root.current = finishedWork; + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); + requestPaint(); + executionContext = prevExecutionContext; + ReactDOMSharedInternals.p = spawnedLane; + ReactSharedInternals.T = transitions; + } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11462,7 +11427,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { root$170, root$170 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 !== (JSCompiler_inline_result & 3) && + 0 === (JSCompiler_inline_result & 3) || + checkIfRootIsPrerendering(root$170, JSCompiler_inline_result) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); root$170 = root$170.next; @@ -11506,12 +11472,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -11548,8 +11514,6 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: - suspendedLanes = ImmediatePriority; - break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -11695,20 +11659,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1425 = 0; - i$jscomp$inline_1425 < simpleEventPluginEvents.length; - i$jscomp$inline_1425++ + var i$jscomp$inline_1423 = 0; + i$jscomp$inline_1423 < simpleEventPluginEvents.length; + i$jscomp$inline_1423++ ) { - var eventName$jscomp$inline_1426 = - simpleEventPluginEvents[i$jscomp$inline_1425], - domEventName$jscomp$inline_1427 = - eventName$jscomp$inline_1426.toLowerCase(), - capitalizedEvent$jscomp$inline_1428 = - eventName$jscomp$inline_1426[0].toUpperCase() + - eventName$jscomp$inline_1426.slice(1); + var eventName$jscomp$inline_1424 = + simpleEventPluginEvents[i$jscomp$inline_1423], + domEventName$jscomp$inline_1425 = + eventName$jscomp$inline_1424.toLowerCase(), + capitalizedEvent$jscomp$inline_1426 = + eventName$jscomp$inline_1424[0].toUpperCase() + + eventName$jscomp$inline_1424.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1427, - "on" + capitalizedEvent$jscomp$inline_1428 + domEventName$jscomp$inline_1425, + "on" + capitalizedEvent$jscomp$inline_1426 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15149,16 +15113,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1672 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1670 = React.version; if ( - "19.0.0-experimental-cd22717c-20241013" !== - isomorphicReactPackageVersion$jscomp$inline_1672 + "19.0.0-experimental-77b637d6-20241016" !== + isomorphicReactPackageVersion$jscomp$inline_1670 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1672, - "19.0.0-experimental-cd22717c-20241013" + isomorphicReactPackageVersion$jscomp$inline_1670, + "19.0.0-experimental-77b637d6-20241016" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15178,25 +15142,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2137 = { +var internals$jscomp$inline_2135 = { bundleType: 0, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013" + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2138 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2136 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2138.isDisabled && - hook$jscomp$inline_2138.supportsFiber + !hook$jscomp$inline_2136.isDisabled && + hook$jscomp$inline_2136.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2138.inject( - internals$jscomp$inline_2137 + (rendererID = hook$jscomp$inline_2136.inject( + internals$jscomp$inline_2135 )), - (injectedHook = hook$jscomp$inline_2138); + (injectedHook = hook$jscomp$inline_2136); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15288,4 +15252,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js index 303b5301cbade..a38396fa86b53 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js @@ -1039,43 +1039,39 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1149,9 +1145,7 @@ root, finishedLanes, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1162,17 +1156,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; + var index = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index; + finishedLanes[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1184,14 +1178,9 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8911,33 +8900,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2301; - var JSCompiler_object_inline_stack_2300 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2299; + var JSCompiler_object_inline_stack_2298 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2298 = !1; + var JSCompiler_object_inline_message_2296 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2301 = didSuspend) || - (JSCompiler_object_inline_componentStack_2301 = + (JSCompiler_object_inline_componentStack_2299 = didSuspend) || + (JSCompiler_object_inline_componentStack_2299 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2301 && - ((JSCompiler_object_inline_message_2298 = !0), + JSCompiler_object_inline_componentStack_2299 && + ((JSCompiler_object_inline_message_2296 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2301 = + JSCompiler_object_inline_componentStack_2299 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2298 + JSCompiler_object_inline_message_2296 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2299 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2297 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2299)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2297)) { c: { - var instance = JSCompiler_object_inline_digest_2299; + var instance = JSCompiler_object_inline_digest_2297; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8978,19 +8967,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2299 + JSCompiler_object_inline_digest_2297 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2299 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2297 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2299 && - ((JSCompiler_object_inline_digest_2299 = - JSCompiler_object_inline_digest_2299.dehydrated), - null !== JSCompiler_object_inline_digest_2299) + null !== JSCompiler_object_inline_digest_2297 && + ((JSCompiler_object_inline_digest_2297 = + JSCompiler_object_inline_digest_2297.dehydrated), + null !== JSCompiler_object_inline_digest_2297) ) return ( - JSCompiler_object_inline_digest_2299.data === + JSCompiler_object_inline_digest_2297.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8998,68 +8987,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2299 = - JSCompiler_object_inline_stack_2300.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2300.fallback; - if (JSCompiler_object_inline_message_2298) + JSCompiler_object_inline_digest_2297 = + JSCompiler_object_inline_stack_2298.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2298.fallback; + if (JSCompiler_object_inline_message_2296) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2300 = + (JSCompiler_object_inline_stack_2298 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2299, + JSCompiler_object_inline_digest_2297, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2298 = workInProgress.child), - (JSCompiler_object_inline_message_2298.memoizedState = + (JSCompiler_object_inline_message_2296 = workInProgress.child), + (JSCompiler_object_inline_message_2296.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2298.childLanes = + (JSCompiler_object_inline_message_2296.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2301, + JSCompiler_object_inline_componentStack_2299, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2300 + JSCompiler_object_inline_stack_2298 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2300.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2298.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2300 = + (JSCompiler_object_inline_stack_2298 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2299, + JSCompiler_object_inline_digest_2297, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2298 = workInProgress.child), - (JSCompiler_object_inline_message_2298.memoizedState = + (JSCompiler_object_inline_message_2296 = workInProgress.child), + (JSCompiler_object_inline_message_2296.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2298.childLanes = + (JSCompiler_object_inline_message_2296.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2301, + JSCompiler_object_inline_componentStack_2299, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2300 + JSCompiler_object_inline_stack_2298 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2299 + JSCompiler_object_inline_digest_2297 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2299 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2299) + ((JSCompiler_object_inline_digest_2297 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2297) ) { if (didSuspend) workInProgress.flags & 256 @@ -9076,94 +9065,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2298 = - JSCompiler_object_inline_stack_2300.fallback), - (JSCompiler_object_inline_digest_2299 = workInProgress.mode), - (JSCompiler_object_inline_stack_2300 = + (JSCompiler_object_inline_message_2296 = + JSCompiler_object_inline_stack_2298.fallback), + (JSCompiler_object_inline_digest_2297 = workInProgress.mode), + (JSCompiler_object_inline_stack_2298 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2300.children + children: JSCompiler_object_inline_stack_2298.children }, - JSCompiler_object_inline_digest_2299 + JSCompiler_object_inline_digest_2297 )), - (JSCompiler_object_inline_message_2298 = + (JSCompiler_object_inline_message_2296 = createFiberFromFragment( - JSCompiler_object_inline_message_2298, - JSCompiler_object_inline_digest_2299, + JSCompiler_object_inline_message_2296, + JSCompiler_object_inline_digest_2297, renderLanes, null )), - (JSCompiler_object_inline_message_2298.flags |= 2), - (JSCompiler_object_inline_stack_2300.return = workInProgress), - (JSCompiler_object_inline_message_2298.return = workInProgress), - (JSCompiler_object_inline_stack_2300.sibling = - JSCompiler_object_inline_message_2298), - (workInProgress.child = JSCompiler_object_inline_stack_2300), + (JSCompiler_object_inline_message_2296.flags |= 2), + (JSCompiler_object_inline_stack_2298.return = workInProgress), + (JSCompiler_object_inline_message_2296.return = workInProgress), + (JSCompiler_object_inline_stack_2298.sibling = + JSCompiler_object_inline_message_2296), + (workInProgress.child = JSCompiler_object_inline_stack_2298), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2300 = workInProgress.child), - (JSCompiler_object_inline_stack_2300.memoizedState = + (JSCompiler_object_inline_stack_2298 = workInProgress.child), + (JSCompiler_object_inline_stack_2298.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2300.childLanes = + (JSCompiler_object_inline_stack_2298.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2301, + JSCompiler_object_inline_componentStack_2299, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2298)); + (workInProgress = JSCompiler_object_inline_message_2296)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2299.data === + JSCompiler_object_inline_digest_2297.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2301 = - JSCompiler_object_inline_digest_2299.nextSibling && - JSCompiler_object_inline_digest_2299.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2301) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2301.dgst; - var message = JSCompiler_object_inline_componentStack_2301.msg; - instance = JSCompiler_object_inline_componentStack_2301.stck; + JSCompiler_object_inline_componentStack_2299 = + JSCompiler_object_inline_digest_2297.nextSibling && + JSCompiler_object_inline_digest_2297.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2299) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2299.dgst; + var message = JSCompiler_object_inline_componentStack_2299.msg; + instance = JSCompiler_object_inline_componentStack_2299.stck; var componentStack = - JSCompiler_object_inline_componentStack_2301.cstck; + JSCompiler_object_inline_componentStack_2299.cstck; } - JSCompiler_object_inline_message_2298 = message; - JSCompiler_object_inline_digest_2299 = JSCompiler_temp; - JSCompiler_object_inline_stack_2300 = instance; - JSCompiler_object_inline_componentStack_2301 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2299 && - ((JSCompiler_object_inline_message_2298 = - JSCompiler_object_inline_message_2298 - ? Error(JSCompiler_object_inline_message_2298) + JSCompiler_object_inline_message_2296 = message; + JSCompiler_object_inline_digest_2297 = JSCompiler_temp; + JSCompiler_object_inline_stack_2298 = instance; + JSCompiler_object_inline_componentStack_2299 = componentStack; + "POSTPONE" !== JSCompiler_object_inline_digest_2297 && + ((JSCompiler_object_inline_message_2296 = + JSCompiler_object_inline_message_2296 + ? Error(JSCompiler_object_inline_message_2296) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_message_2298.stack = - JSCompiler_object_inline_stack_2300 || ""), - (JSCompiler_object_inline_message_2298.digest = - JSCompiler_object_inline_digest_2299), - (JSCompiler_object_inline_componentStack_2301 = - void 0 === JSCompiler_object_inline_componentStack_2301 + (JSCompiler_object_inline_message_2296.stack = + JSCompiler_object_inline_stack_2298 || ""), + (JSCompiler_object_inline_message_2296.digest = + JSCompiler_object_inline_digest_2297), + (JSCompiler_object_inline_componentStack_2299 = + void 0 === JSCompiler_object_inline_componentStack_2299 ? null - : JSCompiler_object_inline_componentStack_2301), - "string" === typeof JSCompiler_object_inline_componentStack_2301 && + : JSCompiler_object_inline_componentStack_2299), + "string" === typeof JSCompiler_object_inline_componentStack_2299 && CapturedStacks.set( - JSCompiler_object_inline_message_2298, - JSCompiler_object_inline_componentStack_2301 + JSCompiler_object_inline_message_2296, + JSCompiler_object_inline_componentStack_2299 ), queueHydrationError({ - value: JSCompiler_object_inline_message_2298, + value: JSCompiler_object_inline_message_2296, source: null, - stack: JSCompiler_object_inline_componentStack_2301 + stack: JSCompiler_object_inline_componentStack_2299 })); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9178,25 +9167,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2301 = + (JSCompiler_object_inline_componentStack_2299 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2301) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2299) ) { - JSCompiler_object_inline_componentStack_2301 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2301) { - JSCompiler_object_inline_stack_2300 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2300 & 42)) - JSCompiler_object_inline_stack_2300 = 1; + JSCompiler_object_inline_componentStack_2299 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2299) { + JSCompiler_object_inline_stack_2298 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2298 & 42)) + JSCompiler_object_inline_stack_2298 = 1; else - switch (JSCompiler_object_inline_stack_2300) { + switch (JSCompiler_object_inline_stack_2298) { case 2: - JSCompiler_object_inline_stack_2300 = 1; + JSCompiler_object_inline_stack_2298 = 1; break; case 8: - JSCompiler_object_inline_stack_2300 = 4; + JSCompiler_object_inline_stack_2298 = 4; break; case 32: - JSCompiler_object_inline_stack_2300 = 16; + JSCompiler_object_inline_stack_2298 = 16; break; case 128: case 256: @@ -9217,40 +9206,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2300 = 64; + JSCompiler_object_inline_stack_2298 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2300 = 134217728; + JSCompiler_object_inline_stack_2298 = 134217728; break; default: - JSCompiler_object_inline_stack_2300 = 0; + JSCompiler_object_inline_stack_2298 = 0; } - JSCompiler_object_inline_stack_2300 = + JSCompiler_object_inline_stack_2298 = 0 !== - (JSCompiler_object_inline_stack_2300 & - (JSCompiler_object_inline_componentStack_2301.suspendedLanes | + (JSCompiler_object_inline_stack_2298 & + (JSCompiler_object_inline_componentStack_2299.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2300; + : JSCompiler_object_inline_stack_2298; if ( - 0 !== JSCompiler_object_inline_stack_2300 && - JSCompiler_object_inline_stack_2300 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2298 && + JSCompiler_object_inline_stack_2298 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2300), + ((prevState.retryLane = JSCompiler_object_inline_stack_2298), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2300 + JSCompiler_object_inline_stack_2298 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2301, + JSCompiler_object_inline_componentStack_2299, current, - JSCompiler_object_inline_stack_2300 + JSCompiler_object_inline_stack_2298 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2299.data === + JSCompiler_object_inline_digest_2297.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9258,7 +9247,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2299.data === + JSCompiler_object_inline_digest_2297.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9266,12 +9255,12 @@ null, current )), - (JSCompiler_object_inline_digest_2299._reactRetry = + (JSCompiler_object_inline_digest_2297._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2299.nextSibling + JSCompiler_object_inline_digest_2297.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9289,54 +9278,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2300.children + JSCompiler_object_inline_stack_2298.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2298) + if (JSCompiler_object_inline_message_2296) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2298 = - JSCompiler_object_inline_stack_2300.fallback), - (JSCompiler_object_inline_digest_2299 = workInProgress.mode), + (JSCompiler_object_inline_message_2296 = + JSCompiler_object_inline_stack_2298.fallback), + (JSCompiler_object_inline_digest_2297 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2300 = createWorkInProgress( + (JSCompiler_object_inline_stack_2298 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2300.children + children: JSCompiler_object_inline_stack_2298.children } )), - (JSCompiler_object_inline_stack_2300.subtreeFlags = + (JSCompiler_object_inline_stack_2298.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2298 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2296 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2298 + JSCompiler_object_inline_message_2296 )) - : ((JSCompiler_object_inline_message_2298 = createFiberFromFragment( - JSCompiler_object_inline_message_2298, - JSCompiler_object_inline_digest_2299, + : ((JSCompiler_object_inline_message_2296 = createFiberFromFragment( + JSCompiler_object_inline_message_2296, + JSCompiler_object_inline_digest_2297, renderLanes, null )), - (JSCompiler_object_inline_message_2298.flags |= 2)), - (JSCompiler_object_inline_message_2298.return = workInProgress), - (JSCompiler_object_inline_stack_2300.return = workInProgress), - (JSCompiler_object_inline_stack_2300.sibling = - JSCompiler_object_inline_message_2298), - (workInProgress.child = JSCompiler_object_inline_stack_2300), - (JSCompiler_object_inline_stack_2300 = - JSCompiler_object_inline_message_2298), - (JSCompiler_object_inline_message_2298 = workInProgress.child), - (JSCompiler_object_inline_digest_2299 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2299 - ? (JSCompiler_object_inline_digest_2299 = + (JSCompiler_object_inline_message_2296.flags |= 2)), + (JSCompiler_object_inline_message_2296.return = workInProgress), + (JSCompiler_object_inline_stack_2298.return = workInProgress), + (JSCompiler_object_inline_stack_2298.sibling = + JSCompiler_object_inline_message_2296), + (workInProgress.child = JSCompiler_object_inline_stack_2298), + (JSCompiler_object_inline_stack_2298 = + JSCompiler_object_inline_message_2296), + (JSCompiler_object_inline_message_2296 = workInProgress.child), + (JSCompiler_object_inline_digest_2297 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2297 + ? (JSCompiler_object_inline_digest_2297 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2299.cachePool), + JSCompiler_object_inline_digest_2297.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9344,38 +9333,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2299 = { + (JSCompiler_object_inline_digest_2297 = { baseLanes: - JSCompiler_object_inline_digest_2299.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2297.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2298.memoizedState = - JSCompiler_object_inline_digest_2299), - (JSCompiler_object_inline_message_2298.childLanes = + (JSCompiler_object_inline_message_2296.memoizedState = + JSCompiler_object_inline_digest_2297), + (JSCompiler_object_inline_message_2296.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2301, + JSCompiler_object_inline_componentStack_2299, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2300 + JSCompiler_object_inline_stack_2298 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2300.children + children: JSCompiler_object_inline_stack_2298.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2301 = + ((JSCompiler_object_inline_componentStack_2299 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2301 + null === JSCompiler_object_inline_componentStack_2299 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2301.push(current)); + : JSCompiler_object_inline_componentStack_2299.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13798,8 +13787,7 @@ workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14596,8 +14584,7 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if ( @@ -14639,199 +14626,188 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = - !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes); - if (exitStatus !== RootInProgress) { - var renderWasConcurrent = forceSync; - do { - if (exitStatus === RootDidNotComplete) - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes); - renderWasConcurrent = !1; - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( - exitStatus, - errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (exitStatus === RootInProgress) break; + else if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes, !1); + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( exitStatus, errorRetryLanes$jscomp$0 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; - } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( + exitStatus, + errorRetryLanes$jscomp$0, + !1 + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; } - exitStatus = errorRetryLanes$jscomp$0; + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - renderWasConcurrent = !1; - if (exitStatus !== RootErrored) continue; + exitStatus = errorRetryLanes$jscomp$0; } + if (exitStatus !== RootErrored) continue; } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; - } - a: { - renderWasConcurrent = root; - errorRetryLanes = now$1(); - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - renderWasConcurrent, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - errorRetryLanes - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { + } + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + shouldTimeSlice = root; + renderWasConcurrent = now$1(); + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - errorRetryLanes - ), - exitStatus + workInProgressDeferredLane ); break a; } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + shouldTimeSlice, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + renderWasConcurrent + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - errorRetryLanes + workInProgressDeferredLane + ); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + renderWasConcurrent + ), + exitStatus ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + renderWasConcurrent + ); } } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -14857,8 +14833,11 @@ completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, @@ -14884,7 +14863,7 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -14934,22 +14913,19 @@ } return !0; } - function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings - ) { + function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { var index = 31 - clz32(lanes), lane = 1 << index; - didSkipSuspendedSiblings[index] = -1; + expirationTimes[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15068,8 +15044,9 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -15162,8 +15139,7 @@ markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function queueConcurrentError(error) { @@ -15191,37 +15167,38 @@ prepareFreshStack(root, lanes); } lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - workInProgressRootExitStatus = RootDidNotComplete; + memoizedUpdaters = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case SuspendedOnDeprecatedThrowPromise: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop( - root, - memoizedUpdaters, - thrownValue, - reason - ); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = NotSuspended), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -15232,14 +15209,11 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) - throw Error( - "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." - ); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -15263,7 +15237,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); a: do try { if ( @@ -15627,42 +15601,40 @@ ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var finishedWork = root.finishedWork; + updatedLanes = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === finishedWork) return null; + if (null === updatedLanes) return null; 0 === didIncludeRenderPhaseUpdate && console.error( "root.finishedLanes should not be empty during a commit. This is a bug in React." ); root.finishedWork = null; root.finishedLanes = 0; - if (finishedWork === root.current) + if (updatedLanes === root.current) throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; + completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === finishedWork.actualDuration && - 0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || + (0 === updatedLanes.actualDuration && + 0 === (updatedLanes.subtreeFlags & 10256) && + 0 === (updatedLanes.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), @@ -15677,30 +15649,30 @@ ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : suspendedCommitReason === THROTTLED_COMMIT && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions + transitions = 0 !== (updatedLanes.flags & 15990); + 0 !== (updatedLanes.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedCommitReason = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + commitBeforeMutationEffects(root, updatedLanes), commitMutationEffects( root, - finishedWork, + updatedLanes, didIncludeRenderPhaseUpdate ), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + (root.current = updatedLanes), + commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = updatedLanes), + (executionContext = suspendedCommitReason), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + : (root.current = updatedLanes); commitEndTime = now(); logCommitPhase(commitStartTime, commitEndTime); (transitions = rootDoesHavePassiveEffects) @@ -15714,17 +15686,17 @@ 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); transitions || commitDoubleInvokeEffectsInDEV(root); - onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); + onCommitRoot$1(updatedLanes.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ + renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; + updatedLanes < recoverableErrors.length; + updatedLanes++ ) - (completedRenderStartTime = recoverableErrors[finishedWork]), + (completedRenderStartTime = recoverableErrors[updatedLanes]), (spawnedLane = makeErrorInfo(completedRenderStartTime.stack)), runWithFiberInDEV( completedRenderStartTime.source, @@ -16167,7 +16139,8 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 !== (nextLanes & 3) && + 0 === (nextLanes & 3) || + checkIfRootIsPrerendering(root, nextLanes) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -16258,8 +16231,6 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: - suspendedLanes = ImmediatePriority; - break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24975,11 +24946,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25016,11 +24987,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013" + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25492,7 +25463,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js index e908da06696d8..c6226d5dce1ac 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js @@ -675,43 +675,39 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } +function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); +} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -774,14 +770,7 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { +function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -791,36 +780,31 @@ function markRootFinished( root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$6 = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index$6; + finishedLanes[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -835,19 +819,19 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - root[index$10].add(fiber); + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + root[index$9].add(fiber); lanes &= ~lane; } } @@ -859,16 +843,16 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$11 = 31 - clz32(lanes); - root = 1 << index$11; - index$11 = pendingUpdatersLaneMap[index$11]; - 0 < index$11.size && - (index$11.forEach(function (fiber) { + var index$10 = 31 - clz32(lanes); + root = 1 << index$10; + index$10 = pendingUpdatersLaneMap[index$10]; + 0 < index$10.size && + (index$10.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$11.clear()); + index$10.clear()); lanes &= ~root; } } @@ -1029,8 +1013,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$12 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$12 && "aria-" !== prefix$12) { + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { node.removeAttribute(name); return; } @@ -1363,15 +1347,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$18 in styles) - (styleName = styles[styleName$18]), - styles.hasOwnProperty(styleName$18) && - prevStyles[styleName$18] !== styleName && - setValueForStyle(node, styleName$18, styleName); + for (var styleName$17 in styles) + (styleName = styles[styleName$17]), + styles.hasOwnProperty(styleName$17) && + prevStyles[styleName$17] !== styleName && + setValueForStyle(node, styleName$17, styleName); } else - for (var styleName$19 in styles) - styles.hasOwnProperty(styleName$19) && - setValueForStyle(node, styleName$19, styles[styleName$19]); + for (var styleName$18 in styles) + styles.hasOwnProperty(styleName$18) && + setValueForStyle(node, styleName$18, styles[styleName$18]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -4220,7 +4204,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$57 = !1; + didReadFromEntangledAsyncAction$56 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -4241,11 +4225,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$57 = !0); + (didReadFromEntangledAsyncAction$56 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$57 = !0); + (didReadFromEntangledAsyncAction$56 = !0); continue; } else (updateLane = { @@ -4291,7 +4275,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$57 && + didReadFromEntangledAsyncAction$56 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4489,8 +4473,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$63) { - onActionError(actionQueue, node, error$63); + } catch (error$62) { + onActionError(actionQueue, node, error$62); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4939,15 +4923,15 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$66 = enqueueUpdate(provider, fiber, lane); - null !== root$66 && + var root$65 = enqueueUpdate(provider, fiber, lane); + null !== root$65 && (startUpdateTimerByLane(lane), - scheduleUpdateOnFiber(root$66, provider, lane), - entangleTransitions(root$66, provider, lane)); + scheduleUpdateOnFiber(root$65, provider, lane), + entangleTransitions(root$65, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$66 && + null !== root$65 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5484,9 +5468,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$70 in Component) - void 0 === newProps[propName$70] && - (newProps[propName$70] = Component[propName$70]); + for (var propName$69 in Component) + void 0 === newProps[propName$69] && + (newProps[propName$69] = Component[propName$69]); } return newProps; } @@ -5532,9 +5516,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$71) { + } catch (e$70) { setTimeout(function () { - throw e$71; + throw e$70; }); } } @@ -5545,9 +5529,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$72) { + } catch (e$71) { setTimeout(function () { - throw e$72; + throw e$71; }); } } @@ -8048,8 +8032,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$120) { - captureCommitPhaseError(current, nearestMountedAncestor, error$120); + } catch (error$119) { + captureCommitPhaseError(current, nearestMountedAncestor, error$119); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -8109,8 +8093,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordEffectDuration(current); } else ref(null); - } catch (error$121) { - captureCommitPhaseError(current, nearestMountedAncestor, error$121); + } catch (error$120) { + captureCommitPhaseError(current, nearestMountedAncestor, error$120); } else ref.current = null; } @@ -8279,7 +8263,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$22) { + } catch (e$21) { JSCompiler_temp = null; break a; } @@ -8449,11 +8433,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$117) { + } catch (error$116) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$117 + error$116 ); } else { @@ -8470,11 +8454,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$118) { + } catch (error$117) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$118 + error$117 ); } recordEffectDuration(); @@ -8485,11 +8469,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$119) { + } catch (error$118) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$119 + error$118 ); } } @@ -8666,7 +8650,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$129 = hostParentIsContainer; + var prevHostParentIsContainer$128 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8674,7 +8658,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$129; + hostParentIsContainer = prevHostParentIsContainer$128; if (null !== hostParent) if (hostParentIsContainer) try { @@ -9329,21 +9313,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$122 = JSCompiler_inline_result.stateNode; + var parent$121 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$122, ""), + (setTextContent(parent$121, ""), (JSCompiler_inline_result.flags &= -33)); - var before$123 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$123, parent$122); + var before$122 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$122, parent$121); break; case 3: case 4: - var parent$124 = JSCompiler_inline_result.stateNode.containerInfo, - before$125 = getHostSibling(finishedWork); + var parent$123 = JSCompiler_inline_result.stateNode.containerInfo, + before$124 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$125, - parent$124 + before$124, + parent$123 ); break; default: @@ -10356,8 +10340,7 @@ function scheduleRetryEffect(workInProgress, retryQueue) { workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -10374,14 +10357,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$144 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$144 = lastTailNode), + for (var lastTailNode$143 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$143 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$144 + null === lastTailNode$143 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$144.sibling = null); + : (lastTailNode$143.sibling = null); } } function bubbleProperties(completedWork) { @@ -10393,53 +10376,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$146 = completedWork.selfBaseDuration, - child$147 = completedWork.child; - null !== child$147; + var treeBaseDuration$145 = completedWork.selfBaseDuration, + child$146 = completedWork.child; + null !== child$146; ) - (newChildLanes |= child$147.lanes | child$147.childLanes), - (subtreeFlags |= child$147.subtreeFlags & 31457280), - (subtreeFlags |= child$147.flags & 31457280), - (treeBaseDuration$146 += child$147.treeBaseDuration), - (child$147 = child$147.sibling); - completedWork.treeBaseDuration = treeBaseDuration$146; + (newChildLanes |= child$146.lanes | child$146.childLanes), + (subtreeFlags |= child$146.subtreeFlags & 31457280), + (subtreeFlags |= child$146.flags & 31457280), + (treeBaseDuration$145 += child$146.treeBaseDuration), + (child$146 = child$146.sibling); + completedWork.treeBaseDuration = treeBaseDuration$145; } else for ( - treeBaseDuration$146 = completedWork.child; - null !== treeBaseDuration$146; + treeBaseDuration$145 = completedWork.child; + null !== treeBaseDuration$145; ) (newChildLanes |= - treeBaseDuration$146.lanes | treeBaseDuration$146.childLanes), - (subtreeFlags |= treeBaseDuration$146.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$146.flags & 31457280), - (treeBaseDuration$146.return = completedWork), - (treeBaseDuration$146 = treeBaseDuration$146.sibling); + treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), + (subtreeFlags |= treeBaseDuration$145.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$145.flags & 31457280), + (treeBaseDuration$145.return = completedWork), + (treeBaseDuration$145 = treeBaseDuration$145.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$146 = completedWork.actualDuration; - child$147 = completedWork.selfBaseDuration; + treeBaseDuration$145 = completedWork.actualDuration; + child$146 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$146 += child.actualDuration), - (child$147 += child.treeBaseDuration), + (treeBaseDuration$145 += child.actualDuration), + (child$146 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$146; - completedWork.treeBaseDuration = child$147; + completedWork.actualDuration = treeBaseDuration$145; + completedWork.treeBaseDuration = child$146; } else for ( - treeBaseDuration$146 = completedWork.child; - null !== treeBaseDuration$146; + treeBaseDuration$145 = completedWork.child; + null !== treeBaseDuration$145; ) (newChildLanes |= - treeBaseDuration$146.lanes | treeBaseDuration$146.childLanes), - (subtreeFlags |= treeBaseDuration$146.subtreeFlags), - (subtreeFlags |= treeBaseDuration$146.flags), - (treeBaseDuration$146.return = completedWork), - (treeBaseDuration$146 = treeBaseDuration$146.sibling); + treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), + (subtreeFlags |= treeBaseDuration$145.subtreeFlags), + (subtreeFlags |= treeBaseDuration$145.flags), + (treeBaseDuration$145.return = completedWork), + (treeBaseDuration$145 = treeBaseDuration$145.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10732,11 +10715,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$161 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$162 = newProps.memoizedState.cachePool.pool); - cache$162 !== type && (newProps.flags |= 2048); + (cache$161 = newProps.memoizedState.cachePool.pool); + cache$161 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10766,8 +10749,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$161 = type.rendering; + if (null === cache$161) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10775,11 +10758,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$161 = findFirstSuspended(current); + if (null !== cache$161) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$162.updateQueue; + current = cache$161.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10804,7 +10787,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$162)), null !== current)) { + if (((current = findFirstSuspended(cache$161)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10814,7 +10797,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$162.alternate && + !cache$161.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10827,13 +10810,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$162.sibling = workInProgress.child), - (workInProgress.child = cache$162)) + ? ((cache$161.sibling = workInProgress.child), + (workInProgress.child = cache$161)) : ((current = type.last), null !== current - ? (current.sibling = cache$162) - : (workInProgress.child = cache$162), - (type.last = cache$162)); + ? (current.sibling = cache$161) + : (workInProgress.child = cache$161), + (type.last = cache$161)); } if (null !== type.tail) return ( @@ -11067,8 +11050,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -11080,179 +11062,160 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = - !forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes); - if (0 !== exitStatus) { - var renderWasConcurrent = forceSync; - do { - if (6 === exitStatus) - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes); - renderWasConcurrent = !1; - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (0 === exitStatus) break; + else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes, !1); + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else + (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), (JSCompiler_inline_result = - root$jscomp$0.pendingLanes & -536870913), - (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= - 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; - } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result, + !1 + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = !1; - if (2 !== exitStatus) continue; + exitStatus = JSCompiler_inline_result; } + if (2 !== exitStatus) continue; } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; + } + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; + } + a: { + shouldTimeSlice = root$jscomp$0; + renderWasConcurrent = exitStatus; + exitStatus = now$1(); + switch (renderWasConcurrent) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + shouldTimeSlice, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); } - a: { - renderWasConcurrent = root$jscomp$0; - JSCompiler_inline_result = now$1(); - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - renderWasConcurrent, + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()), + 10 < renderWasConcurrent) + ) { + markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - renderStartTime, - JSCompiler_inline_result - ), + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + renderStartTime, exitStatus - ); - break a; - } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - renderStartTime, - JSCompiler_inline_result + ), + renderWasConcurrent ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + renderStartTime, + exitStatus + ); } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -11278,8 +11241,11 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -11301,7 +11267,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -11351,22 +11317,19 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings -) { +function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - didSkipSuspendedSiblings[index$6] = -1; + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + expirationTimes[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11484,8 +11447,9 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11574,8 +11538,7 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function queueConcurrentError(error) { @@ -11600,29 +11563,35 @@ function renderRootSync(root, lanes) { prepareFreshStack(root, lanes); } lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; + memoizedUpdaters = 6; break a; case 3: case 2: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case 6: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, memoizedUpdaters, thrownValue, reason); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = 0), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$177) { handleThrow(root, thrownValue$177); @@ -11633,11 +11602,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -11658,7 +11627,7 @@ function renderRootConcurrent(root, lanes) { workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + 500; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) @@ -11961,35 +11930,33 @@ function commitRootImpl( do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var finishedWork = root.finishedWork; + updatedLanes = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === finishedWork) return null; + if (null === updatedLanes) return null; root.finishedWork = null; root.finishedLanes = 0; - if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); + if (updatedLanes === root.current) throw Error(formatProdErrorMessage(177)); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; + completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === finishedWork.actualDuration && - 0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || + (0 === updatedLanes.actualDuration && + 0 === (updatedLanes.subtreeFlags & 10256) && + 0 === (updatedLanes.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), @@ -12004,26 +11971,26 @@ function commitRootImpl( ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : 2 === suspendedCommitReason && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions + transitions = 0 !== (updatedLanes.flags & 15990); + 0 !== (updatedLanes.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), + (suspendedCommitReason = executionContext), (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), + commitBeforeMutationEffects(root, updatedLanes), + commitMutationEffects(root, updatedLanes, didIncludeRenderPhaseUpdate), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + (root.current = updatedLanes), + commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = updatedLanes), + (executionContext = suspendedCommitReason), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + : (root.current = updatedLanes); commitEndTime = now(); logCommitPhase(commitStartTime, commitEndTime); (transitions = rootDoesHavePassiveEffects) @@ -12034,16 +12001,16 @@ function commitRootImpl( completedRenderStartTime = root.pendingLanes; 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + onCommitRoot(updatedLanes.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ + renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; + updatedLanes < recoverableErrors.length; + updatedLanes++ ) - (completedRenderStartTime = recoverableErrors[finishedWork]), + (completedRenderStartTime = recoverableErrors[updatedLanes]), renderPriorityLevel(completedRenderStartTime.value, { componentStack: completedRenderStartTime.stack }); @@ -12322,7 +12289,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { root$185, root$185 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 !== (JSCompiler_inline_result & 3) && + 0 === (JSCompiler_inline_result & 3) || + checkIfRootIsPrerendering(root$185, JSCompiler_inline_result) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root$185, JSCompiler_inline_result)); root$185 = root$185.next; @@ -12366,12 +12334,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -12408,8 +12376,6 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: - suspendedLanes = ImmediatePriority; - break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -12558,20 +12524,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1498 = 0; - i$jscomp$inline_1498 < simpleEventPluginEvents.length; - i$jscomp$inline_1498++ + var i$jscomp$inline_1496 = 0; + i$jscomp$inline_1496 < simpleEventPluginEvents.length; + i$jscomp$inline_1496++ ) { - var eventName$jscomp$inline_1499 = - simpleEventPluginEvents[i$jscomp$inline_1498], - domEventName$jscomp$inline_1500 = - eventName$jscomp$inline_1499.toLowerCase(), - capitalizedEvent$jscomp$inline_1501 = - eventName$jscomp$inline_1499[0].toUpperCase() + - eventName$jscomp$inline_1499.slice(1); + var eventName$jscomp$inline_1497 = + simpleEventPluginEvents[i$jscomp$inline_1496], + domEventName$jscomp$inline_1498 = + eventName$jscomp$inline_1497.toLowerCase(), + capitalizedEvent$jscomp$inline_1499 = + eventName$jscomp$inline_1497[0].toUpperCase() + + eventName$jscomp$inline_1497.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1500, - "on" + capitalizedEvent$jscomp$inline_1501 + domEventName$jscomp$inline_1498, + "on" + capitalizedEvent$jscomp$inline_1499 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -16037,16 +16003,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1745 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1743 = React.version; if ( - "19.0.0-experimental-cd22717c-20241013" !== - isomorphicReactPackageVersion$jscomp$inline_1745 + "19.0.0-experimental-77b637d6-20241016" !== + isomorphicReactPackageVersion$jscomp$inline_1743 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1745, - "19.0.0-experimental-cd22717c-20241013" + isomorphicReactPackageVersion$jscomp$inline_1743, + "19.0.0-experimental-77b637d6-20241016" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16066,25 +16032,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2183 = { +var internals$jscomp$inline_2181 = { bundleType: 0, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013" + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2184 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2182 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2184.isDisabled && - hook$jscomp$inline_2184.supportsFiber + !hook$jscomp$inline_2182.isDisabled && + hook$jscomp$inline_2182.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2184.inject( - internals$jscomp$inline_2183 + (rendererID = hook$jscomp$inline_2182.inject( + internals$jscomp$inline_2181 )), - (injectedHook = hook$jscomp$inline_2184); + (injectedHook = hook$jscomp$inline_2182); } catch (err) {} } function noop() {} @@ -16337,7 +16303,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index d5508c781e4f0..3296cf9301998 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -9291,5 +9291,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index 365d32e9533e7..444d27eb7dd1f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -6058,4 +6058,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js index e68350760efc3..576f041225d1f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js @@ -9291,5 +9291,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js index 211098bcb3fb0..3be0f478489d7 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js @@ -6150,4 +6150,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js index 9d06e8c6f6315..e5de562e19255 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js @@ -8189,11 +8189,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -9973,5 +9973,5 @@ startWork(request); }); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index 0df09ed4b4a97..6f8111b54e5d4 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -6587,12 +6587,12 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-experimental-cd22717c-20241013" + "19.0.0-experimental-77b637d6-20241016" ) ); } @@ -6847,4 +6847,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js index acfbf5262556f..9d6655a4810d1 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js @@ -6069,13 +6069,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_779 = React.version; if ( - "19.0.0-experimental-cd22717c-20241013" !== + "19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion$jscomp$inline_779 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_779 + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6166,4 +6166,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js index 11e88d9571263..daeed8ca335fd 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js @@ -8206,11 +8206,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -9997,5 +9997,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js index f0a00bdaaf6b1..4d2fb78b13730 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js @@ -6689,11 +6689,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6958,4 +6958,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js index 33979c98779c8..bf5af74e5973e 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js @@ -8070,11 +8070,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -9847,5 +9847,5 @@ } }; }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js index 5c3aff17701cc..369608e12d9c0 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js @@ -6568,11 +6568,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6823,4 +6823,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js index f6c76022d7950..2ac79ac796271 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js @@ -1031,43 +1031,39 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1141,9 +1137,7 @@ root, finishedLanes, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1154,17 +1148,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; + var index = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index; + finishedLanes[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1176,14 +1170,9 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8944,33 +8933,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2330; - var JSCompiler_object_inline_stack_2329 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2328; + var JSCompiler_object_inline_stack_2327 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2327 = !1; + var JSCompiler_object_inline_message_2325 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2330 = didSuspend) || - (JSCompiler_object_inline_componentStack_2330 = + (JSCompiler_object_inline_componentStack_2328 = didSuspend) || + (JSCompiler_object_inline_componentStack_2328 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2330 && - ((JSCompiler_object_inline_message_2327 = !0), + JSCompiler_object_inline_componentStack_2328 && + ((JSCompiler_object_inline_message_2325 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2330 = + JSCompiler_object_inline_componentStack_2328 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2327 + JSCompiler_object_inline_message_2325 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2328 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2326 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2328)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2326)) { c: { - var instance = JSCompiler_object_inline_digest_2328; + var instance = JSCompiler_object_inline_digest_2326; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9011,19 +9000,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2328 + JSCompiler_object_inline_digest_2326 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2328 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2326 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2328 && - ((JSCompiler_object_inline_digest_2328 = - JSCompiler_object_inline_digest_2328.dehydrated), - null !== JSCompiler_object_inline_digest_2328) + null !== JSCompiler_object_inline_digest_2326 && + ((JSCompiler_object_inline_digest_2326 = + JSCompiler_object_inline_digest_2326.dehydrated), + null !== JSCompiler_object_inline_digest_2326) ) return ( - JSCompiler_object_inline_digest_2328.data === + JSCompiler_object_inline_digest_2326.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -9031,68 +9020,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2328 = - JSCompiler_object_inline_stack_2329.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2329.fallback; - if (JSCompiler_object_inline_message_2327) + JSCompiler_object_inline_digest_2326 = + JSCompiler_object_inline_stack_2327.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2327.fallback; + if (JSCompiler_object_inline_message_2325) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2329 = + (JSCompiler_object_inline_stack_2327 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_digest_2326, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2327 = workInProgress.child), - (JSCompiler_object_inline_message_2327.memoizedState = + (JSCompiler_object_inline_message_2325 = workInProgress.child), + (JSCompiler_object_inline_message_2325.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2327.childLanes = + (JSCompiler_object_inline_message_2325.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_componentStack_2328, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2327 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2329.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2327.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2329 = + (JSCompiler_object_inline_stack_2327 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_digest_2326, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2327 = workInProgress.child), - (JSCompiler_object_inline_message_2327.memoizedState = + (JSCompiler_object_inline_message_2325 = workInProgress.child), + (JSCompiler_object_inline_message_2325.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2327.childLanes = + (JSCompiler_object_inline_message_2325.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_componentStack_2328, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2327 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2328 + JSCompiler_object_inline_digest_2326 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2328 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2328) + ((JSCompiler_object_inline_digest_2326 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2326) ) { if (didSuspend) workInProgress.flags & 256 @@ -9109,94 +9098,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2327 = - JSCompiler_object_inline_stack_2329.fallback), - (JSCompiler_object_inline_digest_2328 = workInProgress.mode), - (JSCompiler_object_inline_stack_2329 = + (JSCompiler_object_inline_message_2325 = + JSCompiler_object_inline_stack_2327.fallback), + (JSCompiler_object_inline_digest_2326 = workInProgress.mode), + (JSCompiler_object_inline_stack_2327 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2329.children + children: JSCompiler_object_inline_stack_2327.children }, - JSCompiler_object_inline_digest_2328 + JSCompiler_object_inline_digest_2326 )), - (JSCompiler_object_inline_message_2327 = + (JSCompiler_object_inline_message_2325 = createFiberFromFragment( - JSCompiler_object_inline_message_2327, - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_message_2325, + JSCompiler_object_inline_digest_2326, renderLanes, null )), - (JSCompiler_object_inline_message_2327.flags |= 2), - (JSCompiler_object_inline_stack_2329.return = workInProgress), - (JSCompiler_object_inline_message_2327.return = workInProgress), - (JSCompiler_object_inline_stack_2329.sibling = - JSCompiler_object_inline_message_2327), - (workInProgress.child = JSCompiler_object_inline_stack_2329), + (JSCompiler_object_inline_message_2325.flags |= 2), + (JSCompiler_object_inline_stack_2327.return = workInProgress), + (JSCompiler_object_inline_message_2325.return = workInProgress), + (JSCompiler_object_inline_stack_2327.sibling = + JSCompiler_object_inline_message_2325), + (workInProgress.child = JSCompiler_object_inline_stack_2327), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2329 = workInProgress.child), - (JSCompiler_object_inline_stack_2329.memoizedState = + (JSCompiler_object_inline_stack_2327 = workInProgress.child), + (JSCompiler_object_inline_stack_2327.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2329.childLanes = + (JSCompiler_object_inline_stack_2327.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_componentStack_2328, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2327)); + (workInProgress = JSCompiler_object_inline_message_2325)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2328.data === + JSCompiler_object_inline_digest_2326.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2330 = - JSCompiler_object_inline_digest_2328.nextSibling && - JSCompiler_object_inline_digest_2328.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2330) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2330.dgst; - var message = JSCompiler_object_inline_componentStack_2330.msg; - instance = JSCompiler_object_inline_componentStack_2330.stck; + JSCompiler_object_inline_componentStack_2328 = + JSCompiler_object_inline_digest_2326.nextSibling && + JSCompiler_object_inline_digest_2326.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2328) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2328.dgst; + var message = JSCompiler_object_inline_componentStack_2328.msg; + instance = JSCompiler_object_inline_componentStack_2328.stck; var componentStack = - JSCompiler_object_inline_componentStack_2330.cstck; + JSCompiler_object_inline_componentStack_2328.cstck; } - JSCompiler_object_inline_message_2327 = message; - JSCompiler_object_inline_digest_2328 = JSCompiler_temp; - JSCompiler_object_inline_stack_2329 = instance; - JSCompiler_object_inline_componentStack_2330 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2328 && - ((JSCompiler_object_inline_message_2327 = - JSCompiler_object_inline_message_2327 - ? Error(JSCompiler_object_inline_message_2327) + JSCompiler_object_inline_message_2325 = message; + JSCompiler_object_inline_digest_2326 = JSCompiler_temp; + JSCompiler_object_inline_stack_2327 = instance; + JSCompiler_object_inline_componentStack_2328 = componentStack; + "POSTPONE" !== JSCompiler_object_inline_digest_2326 && + ((JSCompiler_object_inline_message_2325 = + JSCompiler_object_inline_message_2325 + ? Error(JSCompiler_object_inline_message_2325) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_message_2327.stack = - JSCompiler_object_inline_stack_2329 || ""), - (JSCompiler_object_inline_message_2327.digest = - JSCompiler_object_inline_digest_2328), - (JSCompiler_object_inline_componentStack_2330 = - void 0 === JSCompiler_object_inline_componentStack_2330 + (JSCompiler_object_inline_message_2325.stack = + JSCompiler_object_inline_stack_2327 || ""), + (JSCompiler_object_inline_message_2325.digest = + JSCompiler_object_inline_digest_2326), + (JSCompiler_object_inline_componentStack_2328 = + void 0 === JSCompiler_object_inline_componentStack_2328 ? null - : JSCompiler_object_inline_componentStack_2330), - "string" === typeof JSCompiler_object_inline_componentStack_2330 && + : JSCompiler_object_inline_componentStack_2328), + "string" === typeof JSCompiler_object_inline_componentStack_2328 && CapturedStacks.set( - JSCompiler_object_inline_message_2327, - JSCompiler_object_inline_componentStack_2330 + JSCompiler_object_inline_message_2325, + JSCompiler_object_inline_componentStack_2328 ), queueHydrationError({ - value: JSCompiler_object_inline_message_2327, + value: JSCompiler_object_inline_message_2325, source: null, - stack: JSCompiler_object_inline_componentStack_2330 + stack: JSCompiler_object_inline_componentStack_2328 })); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9211,25 +9200,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2330 = + (JSCompiler_object_inline_componentStack_2328 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2330) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2328) ) { - JSCompiler_object_inline_componentStack_2330 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2330) { - JSCompiler_object_inline_stack_2329 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2329 & 42)) - JSCompiler_object_inline_stack_2329 = 1; + JSCompiler_object_inline_componentStack_2328 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2328) { + JSCompiler_object_inline_stack_2327 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2327 & 42)) + JSCompiler_object_inline_stack_2327 = 1; else - switch (JSCompiler_object_inline_stack_2329) { + switch (JSCompiler_object_inline_stack_2327) { case 2: - JSCompiler_object_inline_stack_2329 = 1; + JSCompiler_object_inline_stack_2327 = 1; break; case 8: - JSCompiler_object_inline_stack_2329 = 4; + JSCompiler_object_inline_stack_2327 = 4; break; case 32: - JSCompiler_object_inline_stack_2329 = 16; + JSCompiler_object_inline_stack_2327 = 16; break; case 128: case 256: @@ -9250,40 +9239,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2329 = 64; + JSCompiler_object_inline_stack_2327 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2329 = 134217728; + JSCompiler_object_inline_stack_2327 = 134217728; break; default: - JSCompiler_object_inline_stack_2329 = 0; + JSCompiler_object_inline_stack_2327 = 0; } - JSCompiler_object_inline_stack_2329 = + JSCompiler_object_inline_stack_2327 = 0 !== - (JSCompiler_object_inline_stack_2329 & - (JSCompiler_object_inline_componentStack_2330.suspendedLanes | + (JSCompiler_object_inline_stack_2327 & + (JSCompiler_object_inline_componentStack_2328.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2329; + : JSCompiler_object_inline_stack_2327; if ( - 0 !== JSCompiler_object_inline_stack_2329 && - JSCompiler_object_inline_stack_2329 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2327 && + JSCompiler_object_inline_stack_2327 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2329), + ((prevState.retryLane = JSCompiler_object_inline_stack_2327), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2327 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_componentStack_2328, current, - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2327 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2328.data === + JSCompiler_object_inline_digest_2326.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9291,7 +9280,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2328.data === + JSCompiler_object_inline_digest_2326.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9299,12 +9288,12 @@ null, current )), - (JSCompiler_object_inline_digest_2328._reactRetry = + (JSCompiler_object_inline_digest_2326._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2328.nextSibling + JSCompiler_object_inline_digest_2326.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9322,54 +9311,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2329.children + JSCompiler_object_inline_stack_2327.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2327) + if (JSCompiler_object_inline_message_2325) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2327 = - JSCompiler_object_inline_stack_2329.fallback), - (JSCompiler_object_inline_digest_2328 = workInProgress.mode), + (JSCompiler_object_inline_message_2325 = + JSCompiler_object_inline_stack_2327.fallback), + (JSCompiler_object_inline_digest_2326 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2329 = createWorkInProgress( + (JSCompiler_object_inline_stack_2327 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2329.children + children: JSCompiler_object_inline_stack_2327.children } )), - (JSCompiler_object_inline_stack_2329.subtreeFlags = + (JSCompiler_object_inline_stack_2327.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2327 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2325 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2327 + JSCompiler_object_inline_message_2325 )) - : ((JSCompiler_object_inline_message_2327 = createFiberFromFragment( - JSCompiler_object_inline_message_2327, - JSCompiler_object_inline_digest_2328, + : ((JSCompiler_object_inline_message_2325 = createFiberFromFragment( + JSCompiler_object_inline_message_2325, + JSCompiler_object_inline_digest_2326, renderLanes, null )), - (JSCompiler_object_inline_message_2327.flags |= 2)), - (JSCompiler_object_inline_message_2327.return = workInProgress), - (JSCompiler_object_inline_stack_2329.return = workInProgress), - (JSCompiler_object_inline_stack_2329.sibling = - JSCompiler_object_inline_message_2327), - (workInProgress.child = JSCompiler_object_inline_stack_2329), - (JSCompiler_object_inline_stack_2329 = - JSCompiler_object_inline_message_2327), - (JSCompiler_object_inline_message_2327 = workInProgress.child), - (JSCompiler_object_inline_digest_2328 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2328 - ? (JSCompiler_object_inline_digest_2328 = + (JSCompiler_object_inline_message_2325.flags |= 2)), + (JSCompiler_object_inline_message_2325.return = workInProgress), + (JSCompiler_object_inline_stack_2327.return = workInProgress), + (JSCompiler_object_inline_stack_2327.sibling = + JSCompiler_object_inline_message_2325), + (workInProgress.child = JSCompiler_object_inline_stack_2327), + (JSCompiler_object_inline_stack_2327 = + JSCompiler_object_inline_message_2325), + (JSCompiler_object_inline_message_2325 = workInProgress.child), + (JSCompiler_object_inline_digest_2326 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2326 + ? (JSCompiler_object_inline_digest_2326 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2328.cachePool), + JSCompiler_object_inline_digest_2326.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9377,38 +9366,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2328 = { + (JSCompiler_object_inline_digest_2326 = { baseLanes: - JSCompiler_object_inline_digest_2328.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2326.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2327.memoizedState = - JSCompiler_object_inline_digest_2328), - (JSCompiler_object_inline_message_2327.childLanes = + (JSCompiler_object_inline_message_2325.memoizedState = + JSCompiler_object_inline_digest_2326), + (JSCompiler_object_inline_message_2325.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_componentStack_2328, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2327 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2329.children + children: JSCompiler_object_inline_stack_2327.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2330 = + ((JSCompiler_object_inline_componentStack_2328 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2330 + null === JSCompiler_object_inline_componentStack_2328 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2330.push(current)); + : JSCompiler_object_inline_componentStack_2328.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13831,8 +13820,7 @@ workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14811,8 +14799,7 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if ( @@ -14854,199 +14841,188 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = - !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes); - if (exitStatus !== RootInProgress) { - var renderWasConcurrent = forceSync; - do { - if (exitStatus === RootDidNotComplete) - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes); - renderWasConcurrent = !1; - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( - exitStatus, - errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (exitStatus === RootInProgress) break; + else if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes, !1); + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( exitStatus, errorRetryLanes$jscomp$0 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; - } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( + exitStatus, + errorRetryLanes$jscomp$0, + !1 + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; } - exitStatus = errorRetryLanes$jscomp$0; + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - renderWasConcurrent = !1; - if (exitStatus !== RootErrored) continue; + exitStatus = errorRetryLanes$jscomp$0; } + if (exitStatus !== RootErrored) continue; } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; - } - a: { - renderWasConcurrent = root; - errorRetryLanes = now$1(); - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - renderWasConcurrent, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - errorRetryLanes - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { + } + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + shouldTimeSlice = root; + renderWasConcurrent = now$1(); + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - errorRetryLanes - ), - exitStatus + workInProgressDeferredLane ); break a; } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + shouldTimeSlice, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + renderWasConcurrent + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - errorRetryLanes + workInProgressDeferredLane + ); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + renderWasConcurrent + ), + exitStatus ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + renderWasConcurrent + ); } } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -15072,8 +15048,11 @@ completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -15095,7 +15074,7 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -15145,22 +15124,19 @@ } return !0; } - function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings - ) { + function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { var index = 31 - clz32(lanes), lane = 1 << index; - didSkipSuspendedSiblings[index] = -1; + expirationTimes[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15279,8 +15255,9 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -15373,8 +15350,7 @@ markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function queueConcurrentError(error) { @@ -15402,37 +15378,38 @@ prepareFreshStack(root, lanes); } lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - workInProgressRootExitStatus = RootDidNotComplete; + memoizedUpdaters = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case SuspendedOnDeprecatedThrowPromise: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop( - root, - memoizedUpdaters, - thrownValue, - reason - ); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = NotSuspended), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -15443,14 +15420,11 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) - throw Error( - "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." - ); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -15474,7 +15448,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); a: do try { if ( @@ -15838,42 +15812,40 @@ ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var finishedWork = root.finishedWork; + updatedLanes = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === finishedWork) return null; + if (null === updatedLanes) return null; 0 === didIncludeRenderPhaseUpdate && console.error( "root.finishedLanes should not be empty during a commit. This is a bug in React." ); root.finishedWork = null; root.finishedLanes = 0; - if (finishedWork === root.current) + if (updatedLanes === root.current) throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; + completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === finishedWork.actualDuration && - 0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || + (0 === updatedLanes.actualDuration && + 0 === (updatedLanes.subtreeFlags & 10256) && + 0 === (updatedLanes.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), @@ -15888,30 +15860,30 @@ ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : suspendedCommitReason === THROTTLED_COMMIT && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions + transitions = 0 !== (updatedLanes.flags & 15990); + 0 !== (updatedLanes.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedCommitReason = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + commitBeforeMutationEffects(root, updatedLanes), commitMutationEffects( root, - finishedWork, + updatedLanes, didIncludeRenderPhaseUpdate ), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + (root.current = updatedLanes), + commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = updatedLanes), + (executionContext = suspendedCommitReason), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + : (root.current = updatedLanes); commitEndTime = now(); logCommitPhase(commitStartTime, commitEndTime); (transitions = rootDoesHavePassiveEffects) @@ -15925,17 +15897,17 @@ 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); transitions || commitDoubleInvokeEffectsInDEV(root); - onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); + onCommitRoot$1(updatedLanes.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ + renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; + updatedLanes < recoverableErrors.length; + updatedLanes++ ) - (completedRenderStartTime = recoverableErrors[finishedWork]), + (completedRenderStartTime = recoverableErrors[updatedLanes]), (spawnedLane = makeErrorInfo(completedRenderStartTime.stack)), runWithFiberInDEV( completedRenderStartTime.source, @@ -16378,7 +16350,8 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 !== (nextLanes & 3) && + 0 === (nextLanes & 3) || + checkIfRootIsPrerendering(root, nextLanes) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -16469,8 +16442,6 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: - suspendedLanes = ImmediatePriority; - break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -25252,11 +25223,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25293,11 +25264,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013" + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25605,5 +25576,5 @@ } }; }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js index 4be49819d5738..2542fc2a93966 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js @@ -597,43 +597,39 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } +function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); +} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -696,14 +692,7 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { +function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -713,36 +702,31 @@ function markRootFinished( root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$6 = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index$6; + finishedLanes[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -757,10 +741,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -996,8 +980,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$10 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$10 && "aria-" !== prefix$10) { + var prefix$9 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$9 && "aria-" !== prefix$9) { node.removeAttribute(name); return; } @@ -1330,15 +1314,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$16 in styles) - (styleName = styles[styleName$16]), - styles.hasOwnProperty(styleName$16) && - prevStyles[styleName$16] !== styleName && - setValueForStyle(node, styleName$16, styleName); + for (var styleName$15 in styles) + (styleName = styles[styleName$15]), + styles.hasOwnProperty(styleName$15) && + prevStyles[styleName$15] !== styleName && + setValueForStyle(node, styleName$15, styleName); } else - for (var styleName$17 in styles) - styles.hasOwnProperty(styleName$17) && - setValueForStyle(node, styleName$17, styles[styleName$17]); + for (var styleName$16 in styles) + styles.hasOwnProperty(styleName$16) && + setValueForStyle(node, styleName$16, styles[styleName$16]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -4024,7 +4008,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$55 = !1; + didReadFromEntangledAsyncAction$54 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -4045,11 +4029,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$54 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$54 = !0); continue; } else (updateLane = { @@ -4095,7 +4079,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$55 && + didReadFromEntangledAsyncAction$54 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4293,8 +4277,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$61) { - onActionError(actionQueue, node, error$61); + } catch (error$60) { + onActionError(actionQueue, node, error$60); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4743,14 +4727,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$64 = enqueueUpdate(provider, fiber, lane); - null !== root$64 && - (scheduleUpdateOnFiber(root$64, provider, lane), - entangleTransitions(root$64, provider, lane)); + var root$63 = enqueueUpdate(provider, fiber, lane); + null !== root$63 && + (scheduleUpdateOnFiber(root$63, provider, lane), + entangleTransitions(root$63, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$64 && + null !== root$63 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5281,9 +5265,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$68 in Component) - void 0 === newProps[propName$68] && - (newProps[propName$68] = Component[propName$68]); + for (var propName$67 in Component) + void 0 === newProps[propName$67] && + (newProps[propName$67] = Component[propName$67]); } return newProps; } @@ -5329,9 +5313,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$69) { + } catch (e$68) { setTimeout(function () { - throw e$69; + throw e$68; }); } } @@ -5342,9 +5326,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$70) { + } catch (e$69) { setTimeout(function () { - throw e$70; + throw e$69; }); } } @@ -7810,8 +7794,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$115) { - captureCommitPhaseError(current, nearestMountedAncestor, error$115); + } catch (error$114) { + captureCommitPhaseError(current, nearestMountedAncestor, error$114); } else ref.current = null; } @@ -7945,7 +7929,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$20) { + } catch (e$19) { JSCompiler_temp = null; break a; } @@ -8120,11 +8104,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$114) { + } catch (error$113) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$114 + error$113 ); } } @@ -8278,7 +8262,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$122 = hostParentIsContainer; + var prevHostParentIsContainer$121 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8286,7 +8270,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$122; + hostParentIsContainer = prevHostParentIsContainer$121; if (null !== hostParent) if (hostParentIsContainer) try { @@ -8914,21 +8898,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$116 = JSCompiler_inline_result.stateNode; + var parent$115 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$116, ""), + (setTextContent(parent$115, ""), (JSCompiler_inline_result.flags &= -33)); - var before$117 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$117, parent$116); + var before$116 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$116, parent$115); break; case 3: case 4: - var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, - before$119 = getHostSibling(finishedWork); + var parent$117 = JSCompiler_inline_result.stateNode.containerInfo, + before$118 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$119, - parent$118 + before$118, + parent$117 ); break; default: @@ -9825,8 +9809,7 @@ function scheduleRetryEffect(workInProgress, retryQueue) { workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -9843,14 +9826,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$134 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$134 = lastTailNode), + for (var lastTailNode$133 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$134 + null === lastTailNode$133 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$134.sibling = null); + : (lastTailNode$133.sibling = null); } } function bubbleProperties(completedWork) { @@ -9860,19 +9843,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$135 = completedWork.child; null !== child$135; ) - (newChildLanes |= child$135.lanes | child$135.childLanes), - (subtreeFlags |= child$135.subtreeFlags & 31457280), - (subtreeFlags |= child$135.flags & 31457280), - (child$135.return = completedWork), - (child$135 = child$135.sibling); + for (var child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags & 31457280), + (subtreeFlags |= child$134.flags & 31457280), + (child$134.return = completedWork), + (child$134 = child$134.sibling); else - for (child$135 = completedWork.child; null !== child$135; ) - (newChildLanes |= child$135.lanes | child$135.childLanes), - (subtreeFlags |= child$135.subtreeFlags), - (subtreeFlags |= child$135.flags), - (child$135.return = completedWork), - (child$135 = child$135.sibling); + for (child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags), + (subtreeFlags |= child$134.flags), + (child$134.return = completedWork), + (child$134 = child$134.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10149,11 +10132,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$147 = null; + var cache$146 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$147 = newProps.memoizedState.cachePool.pool); - cache$147 !== type && (newProps.flags |= 2048); + (cache$146 = newProps.memoizedState.cachePool.pool); + cache$146 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10178,8 +10161,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$147 = type.rendering; - if (null === cache$147) + cache$146 = type.rendering; + if (null === cache$146) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10187,11 +10170,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$147 = findFirstSuspended(current); - if (null !== cache$147) { + cache$146 = findFirstSuspended(current); + if (null !== cache$146) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$147.updateQueue; + current = cache$146.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10216,7 +10199,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$147)), null !== current)) { + if (((current = findFirstSuspended(cache$146)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10226,7 +10209,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$147.alternate && + !cache$146.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10239,13 +10222,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$147.sibling = workInProgress.child), - (workInProgress.child = cache$147)) + ? ((cache$146.sibling = workInProgress.child), + (workInProgress.child = cache$146)) : ((current = type.last), null !== current - ? (current.sibling = cache$147) - : (workInProgress.child = cache$147), - (type.last = cache$147)); + ? (current.sibling = cache$146) + : (workInProgress.child = cache$146), + (type.last = cache$146)); } if (null !== type.tail) return ( @@ -10655,8 +10638,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10667,178 +10649,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = - !forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes); - if (0 !== exitStatus) { - var renderWasConcurrent = forceSync; - do { - if (6 === exitStatus) - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes); - renderWasConcurrent = !1; - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (0 === exitStatus) break; + else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes, !1); + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else + (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), (JSCompiler_inline_result = - root$jscomp$0.pendingLanes & -536870913), - (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= - 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; - } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result, + !1 + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = !1; - if (2 !== exitStatus) continue; + exitStatus = JSCompiler_inline_result; } + if (2 !== exitStatus) continue; } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; + } + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; + } + a: { + shouldTimeSlice = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + shouldTimeSlice, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); } - a: { - renderWasConcurrent = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now()), - 10 < exitStatus) - ) { - markRootSuspended( - renderWasConcurrent, + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), + 10 < renderWasConcurrent) + ) { + markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - exitStatus - ); - break a; - } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + renderWasConcurrent ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 + ); } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10864,8 +10826,11 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10887,7 +10852,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -10937,22 +10902,19 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings -) { +function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - didSkipSuspendedSiblings[index$6] = -1; + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + expirationTimes[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10995,8 +10957,9 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11015,9 +10978,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$3 = 31 - clz32(allEntangledLanes), + lane = 1 << index$3; + lanes |= root[index$3]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11087,8 +11050,7 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function queueConcurrentError(error) { @@ -11104,6 +11066,7 @@ function renderRootSync(root, lanes) { if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = null), prepareFreshStack(root, lanes); lanes = !1; + var exitStatus = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -11112,21 +11075,26 @@ function renderRootSync(root, lanes) { switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; + exitStatus = 6; break a; case 3: case 2: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case 6: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = 0), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + exitStatus = workInProgressRootExitStatus; break; } catch (thrownValue$163) { handleThrow(root, thrownValue$163); @@ -11137,11 +11105,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return exitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -11151,10 +11119,11 @@ function renderRootConcurrent(root, lanes) { executionContext |= 2; var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) - (workInProgressTransitions = null), + workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes + ? ((workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes); + prepareFreshStack(root, lanes)) + : checkIfRootIsPrerendering(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -11428,9 +11397,7 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11450,9 +11417,7 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11468,25 +11433,25 @@ function commitRootImpl( return null; })); transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), - (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), - (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffectsOnFiber(finishedWork, root), - restoreSelection(selectionInformation, root.containerInfo), - (_enabled = !!eventsEnabled), - (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), - requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { + transitions = ReactSharedInternals.T; + ReactSharedInternals.T = null; + spawnedLane = ReactDOMSharedInternals.p; + ReactDOMSharedInternals.p = 2; + var prevExecutionContext = executionContext; + executionContext |= 4; + commitBeforeMutationEffects(root, finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + restoreSelection(selectionInformation, root.containerInfo); + _enabled = !!eventsEnabled; + selectionInformation = eventsEnabled = null; + root.current = finishedWork; + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); + requestPaint(); + executionContext = prevExecutionContext; + ReactDOMSharedInternals.p = spawnedLane; + ReactSharedInternals.T = transitions; + } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11734,7 +11699,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { root$171, root$171 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 !== (JSCompiler_inline_result & 3) && + 0 === (JSCompiler_inline_result & 3) || + checkIfRootIsPrerendering(root$171, JSCompiler_inline_result) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); root$171 = root$171.next; @@ -11778,12 +11744,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -11820,8 +11786,6 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: - suspendedLanes = ImmediatePriority; - break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -11967,20 +11931,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1454 = 0; - i$jscomp$inline_1454 < simpleEventPluginEvents.length; - i$jscomp$inline_1454++ + var i$jscomp$inline_1452 = 0; + i$jscomp$inline_1452 < simpleEventPluginEvents.length; + i$jscomp$inline_1452++ ) { - var eventName$jscomp$inline_1455 = - simpleEventPluginEvents[i$jscomp$inline_1454], - domEventName$jscomp$inline_1456 = - eventName$jscomp$inline_1455.toLowerCase(), - capitalizedEvent$jscomp$inline_1457 = - eventName$jscomp$inline_1455[0].toUpperCase() + - eventName$jscomp$inline_1455.slice(1); + var eventName$jscomp$inline_1453 = + simpleEventPluginEvents[i$jscomp$inline_1452], + domEventName$jscomp$inline_1454 = + eventName$jscomp$inline_1453.toLowerCase(), + capitalizedEvent$jscomp$inline_1455 = + eventName$jscomp$inline_1453[0].toUpperCase() + + eventName$jscomp$inline_1453.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1456, - "on" + capitalizedEvent$jscomp$inline_1457 + domEventName$jscomp$inline_1454, + "on" + capitalizedEvent$jscomp$inline_1455 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15478,16 +15442,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1701 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1699 = React.version; if ( - "19.0.0-experimental-cd22717c-20241013" !== - isomorphicReactPackageVersion$jscomp$inline_1701 + "19.0.0-experimental-77b637d6-20241016" !== + isomorphicReactPackageVersion$jscomp$inline_1699 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1701, - "19.0.0-experimental-cd22717c-20241013" + isomorphicReactPackageVersion$jscomp$inline_1699, + "19.0.0-experimental-77b637d6-20241016" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15507,25 +15471,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2171 = { +var internals$jscomp$inline_2169 = { bundleType: 0, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013" + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2172 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2170 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2172.isDisabled && - hook$jscomp$inline_2172.supportsFiber + !hook$jscomp$inline_2170.isDisabled && + hook$jscomp$inline_2170.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2172.inject( - internals$jscomp$inline_2171 + (rendererID = hook$jscomp$inline_2170.inject( + internals$jscomp$inline_2169 )), - (injectedHook = hook$jscomp$inline_2172); + (injectedHook = hook$jscomp$inline_2170); } catch (err) {} } exports.createComponentSelector = function (component) { @@ -15768,4 +15732,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js index e58d68d892139..e09d38670d7c1 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js index 2cd35d0ea48c2..f265b2411456e 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js index 1ea38643f2af8..5d84b71d0872f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js index a1d4c7c549013..02460e4172b08 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index cabceddfa1561..f26b8a870fdc7 100644 --- a/packages/next/src/compiled/react-dom-experimental/package.json +++ b/packages/next/src/compiled/react-dom-experimental/package.json @@ -72,10 +72,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.0.0-experimental-cd22717c-20241013" + "scheduler": "0.0.0-experimental-77b637d6-20241016" }, "peerDependencies": { - "react": "0.0.0-experimental-cd22717c-20241013" + "react": "0.0.0-experimental-77b637d6-20241016" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js index 82eefc0f40ac5..e5e757dad6626 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js @@ -998,43 +998,39 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1108,9 +1104,7 @@ root, finishedLanes, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1121,17 +1115,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; + var index = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index; + finishedLanes[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1143,14 +1137,9 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8648,32 +8637,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2311; - var JSCompiler_object_inline_stack_2312 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2309; + var JSCompiler_object_inline_stack_2310 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2313 = !1; + var JSCompiler_object_inline_componentStack_2311 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2311 = didSuspend) || - (JSCompiler_object_inline_digest_2311 = + (JSCompiler_object_inline_digest_2309 = didSuspend) || + (JSCompiler_object_inline_digest_2309 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2311 && - ((JSCompiler_object_inline_componentStack_2313 = !0), + JSCompiler_object_inline_digest_2309 && + ((JSCompiler_object_inline_componentStack_2311 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2311 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2309 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2313 + JSCompiler_object_inline_componentStack_2311 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2310 = nextHydratableInstance; + var JSCompiler_object_inline_message_2308 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2310)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2308)) { c: { - var instance = JSCompiler_object_inline_message_2310; + var instance = JSCompiler_object_inline_message_2308; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8714,19 +8703,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2310 + JSCompiler_object_inline_message_2308 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2310 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2308 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2310 && - ((JSCompiler_object_inline_message_2310 = - JSCompiler_object_inline_message_2310.dehydrated), - null !== JSCompiler_object_inline_message_2310) + null !== JSCompiler_object_inline_message_2308 && + ((JSCompiler_object_inline_message_2308 = + JSCompiler_object_inline_message_2308.dehydrated), + null !== JSCompiler_object_inline_message_2308) ) return ( - JSCompiler_object_inline_message_2310.data === + JSCompiler_object_inline_message_2308.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8734,58 +8723,58 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2310 = - JSCompiler_object_inline_stack_2312.children; - JSCompiler_object_inline_stack_2312 = - JSCompiler_object_inline_stack_2312.fallback; - if (JSCompiler_object_inline_componentStack_2313) + JSCompiler_object_inline_message_2308 = + JSCompiler_object_inline_stack_2310.children; + JSCompiler_object_inline_stack_2310 = + JSCompiler_object_inline_stack_2310.fallback; + if (JSCompiler_object_inline_componentStack_2311) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2313 = + (JSCompiler_object_inline_componentStack_2311 = workInProgress.mode), - (JSCompiler_object_inline_message_2310 = + (JSCompiler_object_inline_message_2308 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2310 + children: JSCompiler_object_inline_message_2308 }, - JSCompiler_object_inline_componentStack_2313 + JSCompiler_object_inline_componentStack_2311 )), - (JSCompiler_object_inline_stack_2312 = createFiberFromFragment( - JSCompiler_object_inline_stack_2312, - JSCompiler_object_inline_componentStack_2313, + (JSCompiler_object_inline_stack_2310 = createFiberFromFragment( + JSCompiler_object_inline_stack_2310, + JSCompiler_object_inline_componentStack_2311, renderLanes, null )), - (JSCompiler_object_inline_message_2310.return = workInProgress), - (JSCompiler_object_inline_stack_2312.return = workInProgress), - (JSCompiler_object_inline_message_2310.sibling = - JSCompiler_object_inline_stack_2312), - (workInProgress.child = JSCompiler_object_inline_message_2310), - (JSCompiler_object_inline_componentStack_2313 = + (JSCompiler_object_inline_message_2308.return = workInProgress), + (JSCompiler_object_inline_stack_2310.return = workInProgress), + (JSCompiler_object_inline_message_2308.sibling = + JSCompiler_object_inline_stack_2310), + (workInProgress.child = JSCompiler_object_inline_message_2308), + (JSCompiler_object_inline_componentStack_2311 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2313.memoizedState = + (JSCompiler_object_inline_componentStack_2311.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2313.childLanes = + (JSCompiler_object_inline_componentStack_2311.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2311, + JSCompiler_object_inline_digest_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2312 + JSCompiler_object_inline_stack_2310 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2310 + JSCompiler_object_inline_message_2308 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2310 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2310) + ((JSCompiler_object_inline_message_2308 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2308) ) { if (didSuspend) workInProgress.flags & 256 @@ -8802,94 +8791,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2313 = - JSCompiler_object_inline_stack_2312.fallback), - (JSCompiler_object_inline_message_2310 = workInProgress.mode), - (JSCompiler_object_inline_stack_2312 = + (JSCompiler_object_inline_componentStack_2311 = + JSCompiler_object_inline_stack_2310.fallback), + (JSCompiler_object_inline_message_2308 = workInProgress.mode), + (JSCompiler_object_inline_stack_2310 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2312.children + children: JSCompiler_object_inline_stack_2310.children }, - JSCompiler_object_inline_message_2310 + JSCompiler_object_inline_message_2308 )), - (JSCompiler_object_inline_componentStack_2313 = + (JSCompiler_object_inline_componentStack_2311 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2313, - JSCompiler_object_inline_message_2310, + JSCompiler_object_inline_componentStack_2311, + JSCompiler_object_inline_message_2308, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2313.flags |= 2), - (JSCompiler_object_inline_stack_2312.return = workInProgress), - (JSCompiler_object_inline_componentStack_2313.return = + (JSCompiler_object_inline_componentStack_2311.flags |= 2), + (JSCompiler_object_inline_stack_2310.return = workInProgress), + (JSCompiler_object_inline_componentStack_2311.return = workInProgress), - (JSCompiler_object_inline_stack_2312.sibling = - JSCompiler_object_inline_componentStack_2313), - (workInProgress.child = JSCompiler_object_inline_stack_2312), + (JSCompiler_object_inline_stack_2310.sibling = + JSCompiler_object_inline_componentStack_2311), + (workInProgress.child = JSCompiler_object_inline_stack_2310), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2312 = workInProgress.child), - (JSCompiler_object_inline_stack_2312.memoizedState = + (JSCompiler_object_inline_stack_2310 = workInProgress.child), + (JSCompiler_object_inline_stack_2310.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2312.childLanes = + (JSCompiler_object_inline_stack_2310.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2311, + JSCompiler_object_inline_digest_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2313)); + JSCompiler_object_inline_componentStack_2311)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2310.data === + JSCompiler_object_inline_message_2308.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2311 = - JSCompiler_object_inline_message_2310.nextSibling && - JSCompiler_object_inline_message_2310.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2311) { - JSCompiler_temp = JSCompiler_object_inline_digest_2311.dgst; - var message = JSCompiler_object_inline_digest_2311.msg; - instance = JSCompiler_object_inline_digest_2311.stck; - var componentStack = JSCompiler_object_inline_digest_2311.cstck; + JSCompiler_object_inline_digest_2309 = + JSCompiler_object_inline_message_2308.nextSibling && + JSCompiler_object_inline_message_2308.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2309) { + JSCompiler_temp = JSCompiler_object_inline_digest_2309.dgst; + var message = JSCompiler_object_inline_digest_2309.msg; + instance = JSCompiler_object_inline_digest_2309.stck; + var componentStack = JSCompiler_object_inline_digest_2309.cstck; } - JSCompiler_object_inline_message_2310 = message; - JSCompiler_object_inline_digest_2311 = JSCompiler_temp; - JSCompiler_object_inline_stack_2312 = instance; - JSCompiler_object_inline_componentStack_2313 = componentStack; - JSCompiler_object_inline_message_2310 = - JSCompiler_object_inline_message_2310 - ? Error(JSCompiler_object_inline_message_2310) + JSCompiler_object_inline_message_2308 = message; + JSCompiler_object_inline_digest_2309 = JSCompiler_temp; + JSCompiler_object_inline_stack_2310 = instance; + JSCompiler_object_inline_componentStack_2311 = componentStack; + JSCompiler_object_inline_message_2308 = + JSCompiler_object_inline_message_2308 + ? Error(JSCompiler_object_inline_message_2308) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_message_2310.stack = - JSCompiler_object_inline_stack_2312 || ""; - JSCompiler_object_inline_message_2310.digest = - JSCompiler_object_inline_digest_2311; - JSCompiler_object_inline_digest_2311 = - void 0 === JSCompiler_object_inline_componentStack_2313 + JSCompiler_object_inline_message_2308.stack = + JSCompiler_object_inline_stack_2310 || ""; + JSCompiler_object_inline_message_2308.digest = + JSCompiler_object_inline_digest_2309; + JSCompiler_object_inline_digest_2309 = + void 0 === JSCompiler_object_inline_componentStack_2311 ? null - : JSCompiler_object_inline_componentStack_2313; - "string" === typeof JSCompiler_object_inline_digest_2311 && + : JSCompiler_object_inline_componentStack_2311; + "string" === typeof JSCompiler_object_inline_digest_2309 && CapturedStacks.set( - JSCompiler_object_inline_message_2310, - JSCompiler_object_inline_digest_2311 + JSCompiler_object_inline_message_2308, + JSCompiler_object_inline_digest_2309 ); queueHydrationError({ - value: JSCompiler_object_inline_message_2310, + value: JSCompiler_object_inline_message_2308, source: null, - stack: JSCompiler_object_inline_digest_2311 + stack: JSCompiler_object_inline_digest_2309 }); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8904,25 +8893,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2311 = + (JSCompiler_object_inline_digest_2309 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2311) + didReceiveUpdate || JSCompiler_object_inline_digest_2309) ) { - JSCompiler_object_inline_digest_2311 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2311) { - JSCompiler_object_inline_stack_2312 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2312 & 42)) - JSCompiler_object_inline_stack_2312 = 1; + JSCompiler_object_inline_digest_2309 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2309) { + JSCompiler_object_inline_stack_2310 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2310 & 42)) + JSCompiler_object_inline_stack_2310 = 1; else - switch (JSCompiler_object_inline_stack_2312) { + switch (JSCompiler_object_inline_stack_2310) { case 2: - JSCompiler_object_inline_stack_2312 = 1; + JSCompiler_object_inline_stack_2310 = 1; break; case 8: - JSCompiler_object_inline_stack_2312 = 4; + JSCompiler_object_inline_stack_2310 = 4; break; case 32: - JSCompiler_object_inline_stack_2312 = 16; + JSCompiler_object_inline_stack_2310 = 16; break; case 128: case 256: @@ -8943,40 +8932,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2312 = 64; + JSCompiler_object_inline_stack_2310 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2312 = 134217728; + JSCompiler_object_inline_stack_2310 = 134217728; break; default: - JSCompiler_object_inline_stack_2312 = 0; + JSCompiler_object_inline_stack_2310 = 0; } - JSCompiler_object_inline_stack_2312 = + JSCompiler_object_inline_stack_2310 = 0 !== - (JSCompiler_object_inline_stack_2312 & - (JSCompiler_object_inline_digest_2311.suspendedLanes | + (JSCompiler_object_inline_stack_2310 & + (JSCompiler_object_inline_digest_2309.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2312; + : JSCompiler_object_inline_stack_2310; if ( - 0 !== JSCompiler_object_inline_stack_2312 && - JSCompiler_object_inline_stack_2312 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2310 && + JSCompiler_object_inline_stack_2310 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2312), + ((prevState.retryLane = JSCompiler_object_inline_stack_2310), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2312 + JSCompiler_object_inline_stack_2310 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2311, + JSCompiler_object_inline_digest_2309, current, - JSCompiler_object_inline_stack_2312 + JSCompiler_object_inline_stack_2310 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2310.data === + JSCompiler_object_inline_message_2308.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8984,7 +8973,7 @@ renderLanes ); } else - JSCompiler_object_inline_message_2310.data === + JSCompiler_object_inline_message_2308.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -8992,12 +8981,12 @@ null, current )), - (JSCompiler_object_inline_message_2310._reactRetry = + (JSCompiler_object_inline_message_2308._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2310.nextSibling + JSCompiler_object_inline_message_2308.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9015,57 +9004,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2312.children + JSCompiler_object_inline_stack_2310.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2313) + if (JSCompiler_object_inline_componentStack_2311) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2313 = - JSCompiler_object_inline_stack_2312.fallback), - (JSCompiler_object_inline_message_2310 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2311 = + JSCompiler_object_inline_stack_2310.fallback), + (JSCompiler_object_inline_message_2308 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2312 = createWorkInProgress( + (JSCompiler_object_inline_stack_2310 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2312.children + children: JSCompiler_object_inline_stack_2310.children } )), - (JSCompiler_object_inline_stack_2312.subtreeFlags = + (JSCompiler_object_inline_stack_2310.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2313 = + ? (JSCompiler_object_inline_componentStack_2311 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2313 + JSCompiler_object_inline_componentStack_2311 )) - : ((JSCompiler_object_inline_componentStack_2313 = + : ((JSCompiler_object_inline_componentStack_2311 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2313, - JSCompiler_object_inline_message_2310, + JSCompiler_object_inline_componentStack_2311, + JSCompiler_object_inline_message_2308, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2313.flags |= 2)), - (JSCompiler_object_inline_componentStack_2313.return = + (JSCompiler_object_inline_componentStack_2311.flags |= 2)), + (JSCompiler_object_inline_componentStack_2311.return = workInProgress), - (JSCompiler_object_inline_stack_2312.return = workInProgress), - (JSCompiler_object_inline_stack_2312.sibling = - JSCompiler_object_inline_componentStack_2313), - (workInProgress.child = JSCompiler_object_inline_stack_2312), - (JSCompiler_object_inline_stack_2312 = - JSCompiler_object_inline_componentStack_2313), - (JSCompiler_object_inline_componentStack_2313 = workInProgress.child), - (JSCompiler_object_inline_message_2310 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2310 - ? (JSCompiler_object_inline_message_2310 = + (JSCompiler_object_inline_stack_2310.return = workInProgress), + (JSCompiler_object_inline_stack_2310.sibling = + JSCompiler_object_inline_componentStack_2311), + (workInProgress.child = JSCompiler_object_inline_stack_2310), + (JSCompiler_object_inline_stack_2310 = + JSCompiler_object_inline_componentStack_2311), + (JSCompiler_object_inline_componentStack_2311 = workInProgress.child), + (JSCompiler_object_inline_message_2308 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2308 + ? (JSCompiler_object_inline_message_2308 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2310.cachePool), + JSCompiler_object_inline_message_2308.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9073,37 +9062,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2310 = { + (JSCompiler_object_inline_message_2308 = { baseLanes: - JSCompiler_object_inline_message_2310.baseLanes | renderLanes, + JSCompiler_object_inline_message_2308.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2313.memoizedState = - JSCompiler_object_inline_message_2310), - (JSCompiler_object_inline_componentStack_2313.childLanes = + (JSCompiler_object_inline_componentStack_2311.memoizedState = + JSCompiler_object_inline_message_2308), + (JSCompiler_object_inline_componentStack_2311.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2311, + JSCompiler_object_inline_digest_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2312 + JSCompiler_object_inline_stack_2310 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2312.children + children: JSCompiler_object_inline_stack_2310.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2311 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2311 + ((JSCompiler_object_inline_digest_2309 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2309 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2311.push(current)); + : JSCompiler_object_inline_digest_2309.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13436,8 +13425,7 @@ workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14234,8 +14222,7 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if ( @@ -14277,198 +14264,187 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = - !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes); - if (exitStatus !== RootInProgress) { - var renderWasConcurrent = forceSync; - do { - if (exitStatus === RootDidNotComplete) - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes); - renderWasConcurrent = !1; - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( - exitStatus, - errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (exitStatus === RootInProgress) break; + else if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes, !1); + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( exitStatus, errorRetryLanes$jscomp$0 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; - } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( + exitStatus, + errorRetryLanes$jscomp$0, + !1 + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; } - exitStatus = errorRetryLanes$jscomp$0; + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - renderWasConcurrent = !1; - if (exitStatus !== RootErrored) continue; + exitStatus = errorRetryLanes$jscomp$0; } + if (exitStatus !== RootErrored) continue; } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; - } - a: { - renderWasConcurrent = root; - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - renderWasConcurrent, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - 0 - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { + } + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + shouldTimeSlice = root; + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - 0 - ), - exitStatus + workInProgressDeferredLane ); break a; } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + shouldTimeSlice, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + 0 + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - 0 + workInProgressDeferredLane + ); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + 0 + ), + exitStatus ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + 0 + ); } } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -14494,8 +14470,11 @@ completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -14517,7 +14496,7 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -14567,22 +14546,19 @@ } return !0; } - function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings - ) { + function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { var index = 31 - clz32(lanes), lane = 1 << index; - didSkipSuspendedSiblings[index] = -1; + expirationTimes[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14625,8 +14601,9 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -14752,8 +14729,7 @@ markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function renderRootSync(root, lanes) { @@ -14777,37 +14753,38 @@ } markRenderStarted(lanes); lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - workInProgressRootExitStatus = RootDidNotComplete; + memoizedUpdaters = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case SuspendedOnDeprecatedThrowPromise: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop( - root, - memoizedUpdaters, - thrownValue, - reason - ); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = NotSuspended), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -14818,15 +14795,12 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) - throw Error( - "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." - ); markRenderStopped(); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -14850,7 +14824,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); markRenderStarted(lanes); a: do try { @@ -15209,9 +15183,7 @@ transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -15244,9 +15216,7 @@ root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -15263,39 +15233,35 @@ })); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), - (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), - (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffects( - root, - finishedWork, + if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { + transitions = ReactSharedInternals.T; + ReactSharedInternals.T = null; + spawnedLane = ReactDOMSharedInternals.p; + ReactDOMSharedInternals.p = DiscreteEventPriority; + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + commitBeforeMutationEffects(root, finishedWork); + commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate); + restoreSelection(selectionInformation, root.containerInfo); + _enabled = !!eventsEnabled; + selectionInformation = eventsEnabled = null; + root.current = finishedWork; + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted( didIncludeRenderPhaseUpdate - ), - restoreSelection(selectionInformation, root.containerInfo), - (_enabled = !!eventsEnabled), - (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( - didIncludeRenderPhaseUpdate - ), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(), - requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + ); + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate); + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(); + requestPaint(); + executionContext = prevExecutionContext; + ReactDOMSharedInternals.p = spawnedLane; + ReactSharedInternals.T = transitions; + } else root.current = finishedWork; (transitions = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -15735,7 +15701,8 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 !== (nextLanes & 3) && + 0 === (nextLanes & 3) || + checkIfRootIsPrerendering(root, nextLanes) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -15826,8 +15793,6 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: - suspendedLanes = ImmediatePriority; - break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24451,11 +24416,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24492,11 +24457,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-cd22717c-20241013", + version: "19.0.0-rc-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-cd22717c-20241013" + reconcilerVersion: "19.0.0-rc-77b637d6-20241016" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -24640,7 +24605,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js index cde09f97b69aa..27af32811e134 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js @@ -595,43 +595,39 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } +function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); +} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -694,14 +690,7 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { +function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -711,36 +700,31 @@ function markRootFinished( root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$6 = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index$6; + finishedLanes[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -755,10 +739,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -908,8 +892,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$10 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$10 && "aria-" !== prefix$10) { + var prefix$9 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$9 && "aria-" !== prefix$9) { node.removeAttribute(name); return; } @@ -1242,15 +1226,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$16 in styles) - (styleName = styles[styleName$16]), - styles.hasOwnProperty(styleName$16) && - prevStyles[styleName$16] !== styleName && - setValueForStyle(node, styleName$16, styleName); + for (var styleName$15 in styles) + (styleName = styles[styleName$15]), + styles.hasOwnProperty(styleName$15) && + prevStyles[styleName$15] !== styleName && + setValueForStyle(node, styleName$15, styleName); } else - for (var styleName$17 in styles) - styles.hasOwnProperty(styleName$17) && - setValueForStyle(node, styleName$17, styles[styleName$17]); + for (var styleName$16 in styles) + styles.hasOwnProperty(styleName$16) && + setValueForStyle(node, styleName$16, styles[styleName$16]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -3898,7 +3882,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$54 = !1; + didReadFromEntangledAsyncAction$53 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3919,11 +3903,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$54 = !0); + (didReadFromEntangledAsyncAction$53 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$54 = !0); + (didReadFromEntangledAsyncAction$53 = !0); continue; } else (updateLane = { @@ -3969,7 +3953,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$54 && + didReadFromEntangledAsyncAction$53 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4167,8 +4151,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$60) { - onActionError(actionQueue, node, error$60); + } catch (error$59) { + onActionError(actionQueue, node, error$59); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4595,10 +4579,10 @@ function refreshCache(fiber) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$63 = enqueueUpdate(provider, fiber, lane); - null !== root$63 && - (scheduleUpdateOnFiber(root$63, provider, lane), - entangleTransitions(root$63, provider, lane)); + var root$62 = enqueueUpdate(provider, fiber, lane); + null !== root$62 && + (scheduleUpdateOnFiber(root$62, provider, lane), + entangleTransitions(root$62, provider, lane)); provider = { cache: createCache() }; fiber.payload = provider; return; @@ -5117,9 +5101,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$67 in Component) - void 0 === newProps[propName$67] && - (newProps[propName$67] = Component[propName$67]); + for (var propName$66 in Component) + void 0 === newProps[propName$66] && + (newProps[propName$66] = Component[propName$66]); } return newProps; } @@ -5165,9 +5149,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$68) { + } catch (e$67) { setTimeout(function () { - throw e$68; + throw e$67; }); } } @@ -5178,9 +5162,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$69) { + } catch (e$68) { setTimeout(function () { - throw e$69; + throw e$68; }); } } @@ -7580,8 +7564,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$112) { - captureCommitPhaseError(current, nearestMountedAncestor, error$112); + } catch (error$111) { + captureCommitPhaseError(current, nearestMountedAncestor, error$111); } else ref.current = null; } @@ -7715,7 +7699,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$20) { + } catch (e$19) { JSCompiler_temp = null; break a; } @@ -7877,11 +7861,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$111) { + } catch (error$110) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$111 + error$110 ); } } @@ -8035,7 +8019,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$119 = hostParentIsContainer; + var prevHostParentIsContainer$118 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8043,7 +8027,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$119; + hostParentIsContainer = prevHostParentIsContainer$118; if (null !== hostParent) if (hostParentIsContainer) try { @@ -8671,21 +8655,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$113 = JSCompiler_inline_result.stateNode; + var parent$112 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$113, ""), + (setTextContent(parent$112, ""), (JSCompiler_inline_result.flags &= -33)); - var before$114 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$114, parent$113); + var before$113 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$113, parent$112); break; case 3: case 4: - var parent$115 = JSCompiler_inline_result.stateNode.containerInfo, - before$116 = getHostSibling(finishedWork); + var parent$114 = JSCompiler_inline_result.stateNode.containerInfo, + before$115 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$116, - parent$115 + before$115, + parent$114 ); break; default: @@ -9582,8 +9566,7 @@ function scheduleRetryEffect(workInProgress, retryQueue) { workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -9600,14 +9583,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$131 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$131 = lastTailNode), + for (var lastTailNode$130 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$130 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$131 + null === lastTailNode$130 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$131.sibling = null); + : (lastTailNode$130.sibling = null); } } function bubbleProperties(completedWork) { @@ -9617,19 +9600,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$132 = completedWork.child; null !== child$132; ) - (newChildLanes |= child$132.lanes | child$132.childLanes), - (subtreeFlags |= child$132.subtreeFlags & 31457280), - (subtreeFlags |= child$132.flags & 31457280), - (child$132.return = completedWork), - (child$132 = child$132.sibling); + for (var child$131 = completedWork.child; null !== child$131; ) + (newChildLanes |= child$131.lanes | child$131.childLanes), + (subtreeFlags |= child$131.subtreeFlags & 31457280), + (subtreeFlags |= child$131.flags & 31457280), + (child$131.return = completedWork), + (child$131 = child$131.sibling); else - for (child$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); + for (child$131 = completedWork.child; null !== child$131; ) + (newChildLanes |= child$131.lanes | child$131.childLanes), + (subtreeFlags |= child$131.subtreeFlags), + (subtreeFlags |= child$131.flags), + (child$131.return = completedWork), + (child$131 = child$131.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9906,11 +9889,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$144 = null; + var cache$143 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$144 = newProps.memoizedState.cachePool.pool); - cache$144 !== type && (newProps.flags |= 2048); + (cache$143 = newProps.memoizedState.cachePool.pool); + cache$143 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -9935,8 +9918,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$144 = type.rendering; - if (null === cache$144) + cache$143 = type.rendering; + if (null === cache$143) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -9944,11 +9927,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$144 = findFirstSuspended(current); - if (null !== cache$144) { + cache$143 = findFirstSuspended(current); + if (null !== cache$143) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$144.updateQueue; + current = cache$143.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -9973,7 +9956,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$144)), null !== current)) { + if (((current = findFirstSuspended(cache$143)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -9983,7 +9966,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$144.alternate && + !cache$143.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -9996,13 +9979,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$144.sibling = workInProgress.child), - (workInProgress.child = cache$144)) + ? ((cache$143.sibling = workInProgress.child), + (workInProgress.child = cache$143)) : ((current = type.last), null !== current - ? (current.sibling = cache$144) - : (workInProgress.child = cache$144), - (type.last = cache$144)); + ? (current.sibling = cache$143) + : (workInProgress.child = cache$143), + (type.last = cache$143)); } if (null !== type.tail) return ( @@ -10226,8 +10209,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10238,178 +10220,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = - !forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes); - if (0 !== exitStatus) { - var renderWasConcurrent = forceSync; - do { - if (6 === exitStatus) - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes); - renderWasConcurrent = !1; - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (0 === exitStatus) break; + else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes, !1); + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else + (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), (JSCompiler_inline_result = - root$jscomp$0.pendingLanes & -536870913), - (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= - 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; - } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result, + !1 + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = !1; - if (2 !== exitStatus) continue; + exitStatus = JSCompiler_inline_result; } + if (2 !== exitStatus) continue; } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; + } + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; + } + a: { + shouldTimeSlice = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + shouldTimeSlice, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); } - a: { - renderWasConcurrent = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now()), - 10 < exitStatus) - ) { - markRootSuspended( - renderWasConcurrent, + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), + 10 < renderWasConcurrent) + ) { + markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - exitStatus - ); - break a; - } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + renderWasConcurrent ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 + ); } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10435,8 +10397,11 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10458,7 +10423,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -10508,22 +10473,19 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings -) { +function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - didSkipSuspendedSiblings[index$6] = -1; + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + expirationTimes[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10566,8 +10528,9 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -10586,9 +10549,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$3 = 31 - clz32(allEntangledLanes), + lane = 1 << index$3; + lanes |= root[index$3]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10658,8 +10621,7 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function renderRootSync(root, lanes) { @@ -10670,6 +10632,7 @@ function renderRootSync(root, lanes) { if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = null), prepareFreshStack(root, lanes); lanes = !1; + var exitStatus = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10678,21 +10641,26 @@ function renderRootSync(root, lanes) { switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; + exitStatus = 6; break a; case 3: case 2: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case 6: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = 0), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + exitStatus = workInProgressRootExitStatus; break; } catch (thrownValue$159) { handleThrow(root, thrownValue$159); @@ -10703,11 +10671,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return exitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -10717,10 +10685,11 @@ function renderRootConcurrent(root, lanes) { executionContext |= 2; var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); - if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) - (workInProgressTransitions = null), + workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes + ? ((workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes); + prepareFreshStack(root, lanes)) + : checkIfRootIsPrerendering(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10994,9 +10963,7 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11016,9 +10983,7 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11034,25 +10999,25 @@ function commitRootImpl( return null; })); transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), - (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), - (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffectsOnFiber(finishedWork, root), - restoreSelection(selectionInformation, root.containerInfo), - (_enabled = !!eventsEnabled), - (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), - requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { + transitions = ReactSharedInternals.T; + ReactSharedInternals.T = null; + spawnedLane = ReactDOMSharedInternals.p; + ReactDOMSharedInternals.p = 2; + var prevExecutionContext = executionContext; + executionContext |= 4; + commitBeforeMutationEffects(root, finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + restoreSelection(selectionInformation, root.containerInfo); + _enabled = !!eventsEnabled; + selectionInformation = eventsEnabled = null; + root.current = finishedWork; + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); + requestPaint(); + executionContext = prevExecutionContext; + ReactDOMSharedInternals.p = spawnedLane; + ReactSharedInternals.T = transitions; + } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11300,7 +11265,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { root$167, root$167 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 !== (JSCompiler_inline_result & 3) && + 0 === (JSCompiler_inline_result & 3) || + checkIfRootIsPrerendering(root$167, JSCompiler_inline_result) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root$167, JSCompiler_inline_result)); root$167 = root$167.next; @@ -11344,12 +11310,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -11386,8 +11352,6 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: - suspendedLanes = ImmediatePriority; - break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -11533,20 +11497,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1432 = 0; - i$jscomp$inline_1432 < simpleEventPluginEvents.length; - i$jscomp$inline_1432++ + var i$jscomp$inline_1430 = 0; + i$jscomp$inline_1430 < simpleEventPluginEvents.length; + i$jscomp$inline_1430++ ) { - var eventName$jscomp$inline_1433 = - simpleEventPluginEvents[i$jscomp$inline_1432], - domEventName$jscomp$inline_1434 = - eventName$jscomp$inline_1433.toLowerCase(), - capitalizedEvent$jscomp$inline_1435 = - eventName$jscomp$inline_1433[0].toUpperCase() + - eventName$jscomp$inline_1433.slice(1); + var eventName$jscomp$inline_1431 = + simpleEventPluginEvents[i$jscomp$inline_1430], + domEventName$jscomp$inline_1432 = + eventName$jscomp$inline_1431.toLowerCase(), + capitalizedEvent$jscomp$inline_1433 = + eventName$jscomp$inline_1431[0].toUpperCase() + + eventName$jscomp$inline_1431.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1434, - "on" + capitalizedEvent$jscomp$inline_1435 + domEventName$jscomp$inline_1432, + "on" + capitalizedEvent$jscomp$inline_1433 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14987,16 +14951,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1679 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1677 = React.version; if ( - "19.0.0-rc-cd22717c-20241013" !== - isomorphicReactPackageVersion$jscomp$inline_1679 + "19.0.0-rc-77b637d6-20241016" !== + isomorphicReactPackageVersion$jscomp$inline_1677 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1679, - "19.0.0-rc-cd22717c-20241013" + isomorphicReactPackageVersion$jscomp$inline_1677, + "19.0.0-rc-77b637d6-20241016" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15016,25 +14980,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2150 = { +var internals$jscomp$inline_2148 = { bundleType: 0, - version: "19.0.0-rc-cd22717c-20241013", + version: "19.0.0-rc-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-cd22717c-20241013" + reconcilerVersion: "19.0.0-rc-77b637d6-20241016" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2151 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2149 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2151.isDisabled && - hook$jscomp$inline_2151.supportsFiber + !hook$jscomp$inline_2149.isDisabled && + hook$jscomp$inline_2149.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2151.inject( - internals$jscomp$inline_2150 + (rendererID = hook$jscomp$inline_2149.inject( + internals$jscomp$inline_2148 )), - (injectedHook = hook$jscomp$inline_2151); + (injectedHook = hook$jscomp$inline_2149); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15126,4 +15090,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js index 73b91f17ca03f..3ab12b117d99a 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js @@ -1006,43 +1006,39 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1116,9 +1112,7 @@ root, finishedLanes, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1129,17 +1123,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; + var index = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index; + finishedLanes[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1151,14 +1145,9 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8656,32 +8645,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2316; - var JSCompiler_object_inline_stack_2317 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2314; + var JSCompiler_object_inline_stack_2315 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2318 = !1; + var JSCompiler_object_inline_componentStack_2316 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2316 = didSuspend) || - (JSCompiler_object_inline_digest_2316 = + (JSCompiler_object_inline_digest_2314 = didSuspend) || + (JSCompiler_object_inline_digest_2314 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2316 && - ((JSCompiler_object_inline_componentStack_2318 = !0), + JSCompiler_object_inline_digest_2314 && + ((JSCompiler_object_inline_componentStack_2316 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2316 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2314 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2318 + JSCompiler_object_inline_componentStack_2316 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2315 = nextHydratableInstance; + var JSCompiler_object_inline_message_2313 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2315)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2313)) { c: { - var instance = JSCompiler_object_inline_message_2315; + var instance = JSCompiler_object_inline_message_2313; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8722,19 +8711,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2315 + JSCompiler_object_inline_message_2313 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2315 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2313 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2315 && - ((JSCompiler_object_inline_message_2315 = - JSCompiler_object_inline_message_2315.dehydrated), - null !== JSCompiler_object_inline_message_2315) + null !== JSCompiler_object_inline_message_2313 && + ((JSCompiler_object_inline_message_2313 = + JSCompiler_object_inline_message_2313.dehydrated), + null !== JSCompiler_object_inline_message_2313) ) return ( - JSCompiler_object_inline_message_2315.data === + JSCompiler_object_inline_message_2313.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8742,58 +8731,58 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2315 = - JSCompiler_object_inline_stack_2317.children; - JSCompiler_object_inline_stack_2317 = - JSCompiler_object_inline_stack_2317.fallback; - if (JSCompiler_object_inline_componentStack_2318) + JSCompiler_object_inline_message_2313 = + JSCompiler_object_inline_stack_2315.children; + JSCompiler_object_inline_stack_2315 = + JSCompiler_object_inline_stack_2315.fallback; + if (JSCompiler_object_inline_componentStack_2316) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2318 = + (JSCompiler_object_inline_componentStack_2316 = workInProgress.mode), - (JSCompiler_object_inline_message_2315 = + (JSCompiler_object_inline_message_2313 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2315 + children: JSCompiler_object_inline_message_2313 }, - JSCompiler_object_inline_componentStack_2318 + JSCompiler_object_inline_componentStack_2316 )), - (JSCompiler_object_inline_stack_2317 = createFiberFromFragment( - JSCompiler_object_inline_stack_2317, - JSCompiler_object_inline_componentStack_2318, + (JSCompiler_object_inline_stack_2315 = createFiberFromFragment( + JSCompiler_object_inline_stack_2315, + JSCompiler_object_inline_componentStack_2316, renderLanes, null )), - (JSCompiler_object_inline_message_2315.return = workInProgress), - (JSCompiler_object_inline_stack_2317.return = workInProgress), - (JSCompiler_object_inline_message_2315.sibling = - JSCompiler_object_inline_stack_2317), - (workInProgress.child = JSCompiler_object_inline_message_2315), - (JSCompiler_object_inline_componentStack_2318 = + (JSCompiler_object_inline_message_2313.return = workInProgress), + (JSCompiler_object_inline_stack_2315.return = workInProgress), + (JSCompiler_object_inline_message_2313.sibling = + JSCompiler_object_inline_stack_2315), + (workInProgress.child = JSCompiler_object_inline_message_2313), + (JSCompiler_object_inline_componentStack_2316 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2318.memoizedState = + (JSCompiler_object_inline_componentStack_2316.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2318.childLanes = + (JSCompiler_object_inline_componentStack_2316.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2316, + JSCompiler_object_inline_digest_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2317 + JSCompiler_object_inline_stack_2315 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2315 + JSCompiler_object_inline_message_2313 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2315 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2315) + ((JSCompiler_object_inline_message_2313 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2313) ) { if (didSuspend) workInProgress.flags & 256 @@ -8810,94 +8799,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2318 = - JSCompiler_object_inline_stack_2317.fallback), - (JSCompiler_object_inline_message_2315 = workInProgress.mode), - (JSCompiler_object_inline_stack_2317 = + (JSCompiler_object_inline_componentStack_2316 = + JSCompiler_object_inline_stack_2315.fallback), + (JSCompiler_object_inline_message_2313 = workInProgress.mode), + (JSCompiler_object_inline_stack_2315 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2317.children + children: JSCompiler_object_inline_stack_2315.children }, - JSCompiler_object_inline_message_2315 + JSCompiler_object_inline_message_2313 )), - (JSCompiler_object_inline_componentStack_2318 = + (JSCompiler_object_inline_componentStack_2316 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2318, - JSCompiler_object_inline_message_2315, + JSCompiler_object_inline_componentStack_2316, + JSCompiler_object_inline_message_2313, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2318.flags |= 2), - (JSCompiler_object_inline_stack_2317.return = workInProgress), - (JSCompiler_object_inline_componentStack_2318.return = + (JSCompiler_object_inline_componentStack_2316.flags |= 2), + (JSCompiler_object_inline_stack_2315.return = workInProgress), + (JSCompiler_object_inline_componentStack_2316.return = workInProgress), - (JSCompiler_object_inline_stack_2317.sibling = - JSCompiler_object_inline_componentStack_2318), - (workInProgress.child = JSCompiler_object_inline_stack_2317), + (JSCompiler_object_inline_stack_2315.sibling = + JSCompiler_object_inline_componentStack_2316), + (workInProgress.child = JSCompiler_object_inline_stack_2315), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2317 = workInProgress.child), - (JSCompiler_object_inline_stack_2317.memoizedState = + (JSCompiler_object_inline_stack_2315 = workInProgress.child), + (JSCompiler_object_inline_stack_2315.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2317.childLanes = + (JSCompiler_object_inline_stack_2315.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2316, + JSCompiler_object_inline_digest_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2318)); + JSCompiler_object_inline_componentStack_2316)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2315.data === + JSCompiler_object_inline_message_2313.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2316 = - JSCompiler_object_inline_message_2315.nextSibling && - JSCompiler_object_inline_message_2315.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2316) { - JSCompiler_temp = JSCompiler_object_inline_digest_2316.dgst; - var message = JSCompiler_object_inline_digest_2316.msg; - instance = JSCompiler_object_inline_digest_2316.stck; - var componentStack = JSCompiler_object_inline_digest_2316.cstck; + JSCompiler_object_inline_digest_2314 = + JSCompiler_object_inline_message_2313.nextSibling && + JSCompiler_object_inline_message_2313.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2314) { + JSCompiler_temp = JSCompiler_object_inline_digest_2314.dgst; + var message = JSCompiler_object_inline_digest_2314.msg; + instance = JSCompiler_object_inline_digest_2314.stck; + var componentStack = JSCompiler_object_inline_digest_2314.cstck; } - JSCompiler_object_inline_message_2315 = message; - JSCompiler_object_inline_digest_2316 = JSCompiler_temp; - JSCompiler_object_inline_stack_2317 = instance; - JSCompiler_object_inline_componentStack_2318 = componentStack; - JSCompiler_object_inline_message_2315 = - JSCompiler_object_inline_message_2315 - ? Error(JSCompiler_object_inline_message_2315) + JSCompiler_object_inline_message_2313 = message; + JSCompiler_object_inline_digest_2314 = JSCompiler_temp; + JSCompiler_object_inline_stack_2315 = instance; + JSCompiler_object_inline_componentStack_2316 = componentStack; + JSCompiler_object_inline_message_2313 = + JSCompiler_object_inline_message_2313 + ? Error(JSCompiler_object_inline_message_2313) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_message_2315.stack = - JSCompiler_object_inline_stack_2317 || ""; - JSCompiler_object_inline_message_2315.digest = - JSCompiler_object_inline_digest_2316; - JSCompiler_object_inline_digest_2316 = - void 0 === JSCompiler_object_inline_componentStack_2318 + JSCompiler_object_inline_message_2313.stack = + JSCompiler_object_inline_stack_2315 || ""; + JSCompiler_object_inline_message_2313.digest = + JSCompiler_object_inline_digest_2314; + JSCompiler_object_inline_digest_2314 = + void 0 === JSCompiler_object_inline_componentStack_2316 ? null - : JSCompiler_object_inline_componentStack_2318; - "string" === typeof JSCompiler_object_inline_digest_2316 && + : JSCompiler_object_inline_componentStack_2316; + "string" === typeof JSCompiler_object_inline_digest_2314 && CapturedStacks.set( - JSCompiler_object_inline_message_2315, - JSCompiler_object_inline_digest_2316 + JSCompiler_object_inline_message_2313, + JSCompiler_object_inline_digest_2314 ); queueHydrationError({ - value: JSCompiler_object_inline_message_2315, + value: JSCompiler_object_inline_message_2313, source: null, - stack: JSCompiler_object_inline_digest_2316 + stack: JSCompiler_object_inline_digest_2314 }); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8912,25 +8901,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2316 = + (JSCompiler_object_inline_digest_2314 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2316) + didReceiveUpdate || JSCompiler_object_inline_digest_2314) ) { - JSCompiler_object_inline_digest_2316 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2316) { - JSCompiler_object_inline_stack_2317 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2317 & 42)) - JSCompiler_object_inline_stack_2317 = 1; + JSCompiler_object_inline_digest_2314 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2314) { + JSCompiler_object_inline_stack_2315 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2315 & 42)) + JSCompiler_object_inline_stack_2315 = 1; else - switch (JSCompiler_object_inline_stack_2317) { + switch (JSCompiler_object_inline_stack_2315) { case 2: - JSCompiler_object_inline_stack_2317 = 1; + JSCompiler_object_inline_stack_2315 = 1; break; case 8: - JSCompiler_object_inline_stack_2317 = 4; + JSCompiler_object_inline_stack_2315 = 4; break; case 32: - JSCompiler_object_inline_stack_2317 = 16; + JSCompiler_object_inline_stack_2315 = 16; break; case 128: case 256: @@ -8951,40 +8940,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2317 = 64; + JSCompiler_object_inline_stack_2315 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2317 = 134217728; + JSCompiler_object_inline_stack_2315 = 134217728; break; default: - JSCompiler_object_inline_stack_2317 = 0; + JSCompiler_object_inline_stack_2315 = 0; } - JSCompiler_object_inline_stack_2317 = + JSCompiler_object_inline_stack_2315 = 0 !== - (JSCompiler_object_inline_stack_2317 & - (JSCompiler_object_inline_digest_2316.suspendedLanes | + (JSCompiler_object_inline_stack_2315 & + (JSCompiler_object_inline_digest_2314.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2317; + : JSCompiler_object_inline_stack_2315; if ( - 0 !== JSCompiler_object_inline_stack_2317 && - JSCompiler_object_inline_stack_2317 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2315 && + JSCompiler_object_inline_stack_2315 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2317), + ((prevState.retryLane = JSCompiler_object_inline_stack_2315), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2317 + JSCompiler_object_inline_stack_2315 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2316, + JSCompiler_object_inline_digest_2314, current, - JSCompiler_object_inline_stack_2317 + JSCompiler_object_inline_stack_2315 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2315.data === + JSCompiler_object_inline_message_2313.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8992,7 +8981,7 @@ renderLanes ); } else - JSCompiler_object_inline_message_2315.data === + JSCompiler_object_inline_message_2313.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9000,12 +8989,12 @@ null, current )), - (JSCompiler_object_inline_message_2315._reactRetry = + (JSCompiler_object_inline_message_2313._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2315.nextSibling + JSCompiler_object_inline_message_2313.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9023,57 +9012,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2317.children + JSCompiler_object_inline_stack_2315.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2318) + if (JSCompiler_object_inline_componentStack_2316) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2318 = - JSCompiler_object_inline_stack_2317.fallback), - (JSCompiler_object_inline_message_2315 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2316 = + JSCompiler_object_inline_stack_2315.fallback), + (JSCompiler_object_inline_message_2313 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2317 = createWorkInProgress( + (JSCompiler_object_inline_stack_2315 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2317.children + children: JSCompiler_object_inline_stack_2315.children } )), - (JSCompiler_object_inline_stack_2317.subtreeFlags = + (JSCompiler_object_inline_stack_2315.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2318 = + ? (JSCompiler_object_inline_componentStack_2316 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2318 + JSCompiler_object_inline_componentStack_2316 )) - : ((JSCompiler_object_inline_componentStack_2318 = + : ((JSCompiler_object_inline_componentStack_2316 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2318, - JSCompiler_object_inline_message_2315, + JSCompiler_object_inline_componentStack_2316, + JSCompiler_object_inline_message_2313, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2318.flags |= 2)), - (JSCompiler_object_inline_componentStack_2318.return = + (JSCompiler_object_inline_componentStack_2316.flags |= 2)), + (JSCompiler_object_inline_componentStack_2316.return = workInProgress), - (JSCompiler_object_inline_stack_2317.return = workInProgress), - (JSCompiler_object_inline_stack_2317.sibling = - JSCompiler_object_inline_componentStack_2318), - (workInProgress.child = JSCompiler_object_inline_stack_2317), - (JSCompiler_object_inline_stack_2317 = - JSCompiler_object_inline_componentStack_2318), - (JSCompiler_object_inline_componentStack_2318 = workInProgress.child), - (JSCompiler_object_inline_message_2315 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2315 - ? (JSCompiler_object_inline_message_2315 = + (JSCompiler_object_inline_stack_2315.return = workInProgress), + (JSCompiler_object_inline_stack_2315.sibling = + JSCompiler_object_inline_componentStack_2316), + (workInProgress.child = JSCompiler_object_inline_stack_2315), + (JSCompiler_object_inline_stack_2315 = + JSCompiler_object_inline_componentStack_2316), + (JSCompiler_object_inline_componentStack_2316 = workInProgress.child), + (JSCompiler_object_inline_message_2313 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2313 + ? (JSCompiler_object_inline_message_2313 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2315.cachePool), + JSCompiler_object_inline_message_2313.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9081,37 +9070,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2315 = { + (JSCompiler_object_inline_message_2313 = { baseLanes: - JSCompiler_object_inline_message_2315.baseLanes | renderLanes, + JSCompiler_object_inline_message_2313.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2318.memoizedState = - JSCompiler_object_inline_message_2315), - (JSCompiler_object_inline_componentStack_2318.childLanes = + (JSCompiler_object_inline_componentStack_2316.memoizedState = + JSCompiler_object_inline_message_2313), + (JSCompiler_object_inline_componentStack_2316.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2316, + JSCompiler_object_inline_digest_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2317 + JSCompiler_object_inline_stack_2315 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2317.children + children: JSCompiler_object_inline_stack_2315.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2316 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2316 + ((JSCompiler_object_inline_digest_2314 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2314 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2316.push(current)); + : JSCompiler_object_inline_digest_2314.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13444,8 +13433,7 @@ workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14242,8 +14230,7 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if ( @@ -14285,198 +14272,187 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = - !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes); - if (exitStatus !== RootInProgress) { - var renderWasConcurrent = forceSync; - do { - if (exitStatus === RootDidNotComplete) - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes); - renderWasConcurrent = !1; - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( - exitStatus, - errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (exitStatus === RootInProgress) break; + else if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes, !1); + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( exitStatus, errorRetryLanes$jscomp$0 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; - } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( + exitStatus, + errorRetryLanes$jscomp$0, + !1 + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; } - exitStatus = errorRetryLanes$jscomp$0; + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - renderWasConcurrent = !1; - if (exitStatus !== RootErrored) continue; + exitStatus = errorRetryLanes$jscomp$0; } + if (exitStatus !== RootErrored) continue; } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended( - root, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; - } - a: { - renderWasConcurrent = root; - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - renderWasConcurrent, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - 0 - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { + } + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + shouldTimeSlice = root; + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - 0 - ), - exitStatus + workInProgressDeferredLane ); break a; } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + shouldTimeSlice, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + 0 + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + shouldTimeSlice, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - 0 + workInProgressDeferredLane + ); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + 0 + ), + exitStatus ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + 0 + ); } } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -14502,8 +14478,11 @@ completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, @@ -14529,7 +14508,7 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -14579,22 +14558,19 @@ } return !0; } - function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings - ) { + function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { var index = 31 - clz32(lanes), lane = 1 << index; - didSkipSuspendedSiblings[index] = -1; + expirationTimes[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14637,8 +14613,9 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -14764,8 +14741,7 @@ markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function renderRootSync(root, lanes) { @@ -14789,37 +14765,38 @@ } markRenderStarted(lanes); lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - workInProgressRootExitStatus = RootDidNotComplete; + memoizedUpdaters = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case SuspendedOnDeprecatedThrowPromise: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop( - root, - memoizedUpdaters, - thrownValue, - reason - ); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = NotSuspended), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -14830,15 +14807,12 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) - throw Error( - "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." - ); markRenderStopped(); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -14862,7 +14836,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); markRenderStarted(lanes); a: do try { @@ -15221,9 +15195,7 @@ transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -15256,9 +15228,7 @@ root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -15275,39 +15245,35 @@ })); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), - (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), - (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffects( - root, - finishedWork, + if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { + transitions = ReactSharedInternals.T; + ReactSharedInternals.T = null; + spawnedLane = ReactDOMSharedInternals.p; + ReactDOMSharedInternals.p = DiscreteEventPriority; + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + commitBeforeMutationEffects(root, finishedWork); + commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate); + restoreSelection(selectionInformation, root.containerInfo); + _enabled = !!eventsEnabled; + selectionInformation = eventsEnabled = null; + root.current = finishedWork; + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted( didIncludeRenderPhaseUpdate - ), - restoreSelection(selectionInformation, root.containerInfo), - (_enabled = !!eventsEnabled), - (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( - didIncludeRenderPhaseUpdate - ), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(), - requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + ); + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate); + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(); + requestPaint(); + executionContext = prevExecutionContext; + ReactDOMSharedInternals.p = spawnedLane; + ReactSharedInternals.T = transitions; + } else root.current = finishedWork; (transitions = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -15747,7 +15713,8 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 !== (nextLanes & 3) && + 0 === (nextLanes & 3) || + checkIfRootIsPrerendering(root, nextLanes) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -15838,8 +15805,6 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: - suspendedLanes = ImmediatePriority; - break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24508,11 +24473,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24549,11 +24514,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-cd22717c-20241013", + version: "19.0.0-rc-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-cd22717c-20241013" + reconcilerVersion: "19.0.0-rc-77b637d6-20241016" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25027,7 +24992,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js index a702ba231ce77..1e414bd447c60 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js @@ -664,43 +664,39 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes, - warmLanes = root.warmLanes; - root = 0 !== root.finishedLanes; + suspendedLanes = root.suspendedLanes; + root = root.pingedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = nonIdlePendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : root || - ((warmLanes = pendingLanes & ~warmLanes), - 0 !== warmLanes && - (nextLanes = getHighestPriorityLanes(warmLanes)))); + : ((root &= nonIdlePendingLanes), + 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) + : ((pendingLanes &= ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (warmLanes = wipLanes & -wipLanes), - suspendedLanes >= warmLanes || - (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) + (root = wipLanes & -wipLanes), + suspendedLanes >= root || + (32 === suspendedLanes && 0 !== (root & 4194176))) ? wipLanes : nextLanes; } +function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); +} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -763,14 +759,7 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { +function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -780,36 +769,31 @@ function markRootFinished( root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, + finishedLanes = root.entanglements; + var expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$6 = 31 - clz32(remainingLanes); + previouslyPendingLanes = 1 << index$6; + finishedLanes[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~lane; + remainingLanes &= ~previouslyPendingLanes; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -824,19 +808,19 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - root[index$10].add(fiber); + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + root[index$9].add(fiber); lanes &= ~lane; } } @@ -848,16 +832,16 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$11 = 31 - clz32(lanes); - root = 1 << index$11; - index$11 = pendingUpdatersLaneMap[index$11]; - 0 < index$11.size && - (index$11.forEach(function (fiber) { + var index$10 = 31 - clz32(lanes); + root = 1 << index$10; + index$10 = pendingUpdatersLaneMap[index$10]; + 0 < index$10.size && + (index$10.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$11.clear()); + index$10.clear()); lanes &= ~root; } } @@ -1007,8 +991,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$12 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$12 && "aria-" !== prefix$12) { + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { node.removeAttribute(name); return; } @@ -1341,15 +1325,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$18 in styles) - (styleName = styles[styleName$18]), - styles.hasOwnProperty(styleName$18) && - prevStyles[styleName$18] !== styleName && - setValueForStyle(node, styleName$18, styleName); + for (var styleName$17 in styles) + (styleName = styles[styleName$17]), + styles.hasOwnProperty(styleName$17) && + prevStyles[styleName$17] !== styleName && + setValueForStyle(node, styleName$17, styleName); } else - for (var styleName$19 in styles) - styles.hasOwnProperty(styleName$19) && - setValueForStyle(node, styleName$19, styles[styleName$19]); + for (var styleName$18 in styles) + styles.hasOwnProperty(styleName$18) && + setValueForStyle(node, styleName$18, styles[styleName$18]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -4051,7 +4035,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$56 = !1; + didReadFromEntangledAsyncAction$55 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -4072,11 +4056,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$55 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$55 = !0); continue; } else (updateLane = { @@ -4122,7 +4106,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$56 && + didReadFromEntangledAsyncAction$55 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4320,8 +4304,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$62) { - onActionError(actionQueue, node, error$62); + } catch (error$61) { + onActionError(actionQueue, node, error$61); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4748,10 +4732,10 @@ function refreshCache(fiber) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$65 = enqueueUpdate(provider, fiber, lane); - null !== root$65 && - (scheduleUpdateOnFiber(root$65, provider, lane), - entangleTransitions(root$65, provider, lane)); + var root$64 = enqueueUpdate(provider, fiber, lane); + null !== root$64 && + (scheduleUpdateOnFiber(root$64, provider, lane), + entangleTransitions(root$64, provider, lane)); provider = { cache: createCache() }; fiber.payload = provider; return; @@ -5278,9 +5262,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$69 in Component) - void 0 === newProps[propName$69] && - (newProps[propName$69] = Component[propName$69]); + for (var propName$68 in Component) + void 0 === newProps[propName$68] && + (newProps[propName$68] = Component[propName$68]); } return newProps; } @@ -5326,9 +5310,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$70) { + } catch (e$69) { setTimeout(function () { - throw e$70; + throw e$69; }); } } @@ -5339,9 +5323,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$71) { + } catch (e$70) { setTimeout(function () { - throw e$71; + throw e$70; }); } } @@ -7834,8 +7818,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$117) { - captureCommitPhaseError(current, nearestMountedAncestor, error$117); + } catch (error$116) { + captureCommitPhaseError(current, nearestMountedAncestor, error$116); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -7895,8 +7879,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordEffectDuration(current); } else ref(null); - } catch (error$118) { - captureCommitPhaseError(current, nearestMountedAncestor, error$118); + } catch (error$117) { + captureCommitPhaseError(current, nearestMountedAncestor, error$117); } else ref.current = null; } @@ -8065,7 +8049,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$22) { + } catch (e$21) { JSCompiler_temp = null; break a; } @@ -8221,11 +8205,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$114) { + } catch (error$113) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$114 + error$113 ); } else { @@ -8242,11 +8226,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$115) { + } catch (error$114) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$115 + error$114 ); } recordEffectDuration(); @@ -8257,11 +8241,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$116) { + } catch (error$115) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$116 + error$115 ); } } @@ -8428,7 +8412,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$126 = hostParentIsContainer; + var prevHostParentIsContainer$125 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8436,7 +8420,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$126; + hostParentIsContainer = prevHostParentIsContainer$125; if (null !== hostParent) if (hostParentIsContainer) try { @@ -9079,21 +9063,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$119 = JSCompiler_inline_result.stateNode; + var parent$118 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$119, ""), + (setTextContent(parent$118, ""), (JSCompiler_inline_result.flags &= -33)); - var before$120 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$120, parent$119); + var before$119 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$119, parent$118); break; case 3: case 4: - var parent$121 = JSCompiler_inline_result.stateNode.containerInfo, - before$122 = getHostSibling(finishedWork); + var parent$120 = JSCompiler_inline_result.stateNode.containerInfo, + before$121 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$122, - parent$121 + before$121, + parent$120 ); break; default: @@ -10037,8 +10021,7 @@ function scheduleRetryEffect(workInProgress, retryQueue) { workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue), - (workInProgressSuspendedRetryLanes |= retryQueue)); + (workInProgress.lanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -10055,14 +10038,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$140 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$140 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$141 + null === lastTailNode$140 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$141.sibling = null); + : (lastTailNode$140.sibling = null); } } function bubbleProperties(completedWork) { @@ -10074,53 +10057,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$143 = completedWork.selfBaseDuration, - child$144 = completedWork.child; - null !== child$144; + var treeBaseDuration$142 = completedWork.selfBaseDuration, + child$143 = completedWork.child; + null !== child$143; ) - (newChildLanes |= child$144.lanes | child$144.childLanes), - (subtreeFlags |= child$144.subtreeFlags & 31457280), - (subtreeFlags |= child$144.flags & 31457280), - (treeBaseDuration$143 += child$144.treeBaseDuration), - (child$144 = child$144.sibling); - completedWork.treeBaseDuration = treeBaseDuration$143; + (newChildLanes |= child$143.lanes | child$143.childLanes), + (subtreeFlags |= child$143.subtreeFlags & 31457280), + (subtreeFlags |= child$143.flags & 31457280), + (treeBaseDuration$142 += child$143.treeBaseDuration), + (child$143 = child$143.sibling); + completedWork.treeBaseDuration = treeBaseDuration$142; } else for ( - treeBaseDuration$143 = completedWork.child; - null !== treeBaseDuration$143; + treeBaseDuration$142 = completedWork.child; + null !== treeBaseDuration$142; ) (newChildLanes |= - treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), - (subtreeFlags |= treeBaseDuration$143.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$143.flags & 31457280), - (treeBaseDuration$143.return = completedWork), - (treeBaseDuration$143 = treeBaseDuration$143.sibling); + treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes), + (subtreeFlags |= treeBaseDuration$142.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$142.flags & 31457280), + (treeBaseDuration$142.return = completedWork), + (treeBaseDuration$142 = treeBaseDuration$142.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$143 = completedWork.actualDuration; - child$144 = completedWork.selfBaseDuration; + treeBaseDuration$142 = completedWork.actualDuration; + child$143 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$143 += child.actualDuration), - (child$144 += child.treeBaseDuration), + (treeBaseDuration$142 += child.actualDuration), + (child$143 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$143; - completedWork.treeBaseDuration = child$144; + completedWork.actualDuration = treeBaseDuration$142; + completedWork.treeBaseDuration = child$143; } else for ( - treeBaseDuration$143 = completedWork.child; - null !== treeBaseDuration$143; + treeBaseDuration$142 = completedWork.child; + null !== treeBaseDuration$142; ) (newChildLanes |= - treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), - (subtreeFlags |= treeBaseDuration$143.subtreeFlags), - (subtreeFlags |= treeBaseDuration$143.flags), - (treeBaseDuration$143.return = completedWork), - (treeBaseDuration$143 = treeBaseDuration$143.sibling); + treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes), + (subtreeFlags |= treeBaseDuration$142.subtreeFlags), + (subtreeFlags |= treeBaseDuration$142.flags), + (treeBaseDuration$142.return = completedWork), + (treeBaseDuration$142 = treeBaseDuration$142.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10413,11 +10396,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$159 = null; + var cache$158 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$159 = newProps.memoizedState.cachePool.pool); - cache$159 !== type && (newProps.flags |= 2048); + (cache$158 = newProps.memoizedState.cachePool.pool); + cache$158 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10447,8 +10430,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$159 = type.rendering; - if (null === cache$159) + cache$158 = type.rendering; + if (null === cache$158) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10456,11 +10439,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$159 = findFirstSuspended(current); - if (null !== cache$159) { + cache$158 = findFirstSuspended(current); + if (null !== cache$158) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$159.updateQueue; + current = cache$158.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10485,7 +10468,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$159)), null !== current)) { + if (((current = findFirstSuspended(cache$158)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10495,7 +10478,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$159.alternate && + !cache$158.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10508,13 +10491,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$159.sibling = workInProgress.child), - (workInProgress.child = cache$159)) + ? ((cache$158.sibling = workInProgress.child), + (workInProgress.child = cache$158)) : ((current = type.last), null !== current - ? (current.sibling = cache$159) - : (workInProgress.child = cache$159), - (type.last = cache$159)); + ? (current.sibling = cache$158) + : (workInProgress.child = cache$158), + (type.last = cache$158)); } if (null !== type.tail) return ( @@ -10747,8 +10730,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10760,178 +10742,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = - !forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes); - if (0 !== exitStatus) { - var renderWasConcurrent = forceSync; - do { - if (6 === exitStatus) - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes); - renderWasConcurrent = !1; - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else + var shouldTimeSlice = + (!forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) || + !1, + exitStatus = shouldTimeSlice + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes, !0); + do { + var renderWasConcurrent = shouldTimeSlice; + if (0 === exitStatus) break; + else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes, !1); + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else + (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), (JSCompiler_inline_result = - root$jscomp$0.pendingLanes & -536870913), - (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= - 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; - } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result, + !1 + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = !1; - if (2 !== exitStatus) continue; + exitStatus = JSCompiler_inline_result; } + if (2 !== exitStatus) continue; } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended( - root$jscomp$0, - lanes, - 0, - workInProgressRootDidSkipSuspendedSiblings - ); - break; + } + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; + } + a: { + shouldTimeSlice = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + shouldTimeSlice, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); } - a: { - renderWasConcurrent = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - renderWasConcurrent, - lanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); - } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - renderWasConcurrent, + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()), + 10 < renderWasConcurrent) + ) { + markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings - ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - exitStatus - ); - break a; - } - commitRootWhenReady( - renderWasConcurrent, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + renderWasConcurrent ); + break a; } + commitRootWhenReady( + shouldTimeSlice, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 + ); } - break; - } while (1); - } + } + break; + } while (1); ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10957,8 +10919,11 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - var subtreeFlags = finishedWork.subtreeFlags; - if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) + didSkipSuspendedSiblings = finishedWork.subtreeFlags; + if ( + didSkipSuspendedSiblings & 8192 || + 16785408 === (didSkipSuspendedSiblings & 16785408) + ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10980,7 +10945,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); + markRootSuspended(root, lanes, spawnedLane); return; } commitRoot( @@ -11030,22 +10995,19 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended( - root, - suspendedLanes, - spawnedLane, - didSkipSuspendedSiblings -) { +function markRootSuspended(root, suspendedLanes, spawnedLane) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); - didSkipSuspendedSiblings = root.expirationTimes; - for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - didSkipSuspendedSiblings[index$6] = -1; + for ( + var expirationTimes = root.expirationTimes, lanes = suspendedLanes; + 0 < lanes; + + ) { + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + expirationTimes[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11088,8 +11050,9 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = - workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootDidSkipSuspendedSiblings = !1; + checkIfRootIsPrerendering(root, lanes); + workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11108,9 +11071,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$3 = 31 - clz32(allEntangledLanes), + lane = 1 << index$3; + lanes |= root[index$3]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11209,8 +11172,7 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane, - workInProgressRootDidSkipSuspendedSiblings + workInProgressDeferredLane ); } function renderRootSync(root, lanes) { @@ -11231,29 +11193,35 @@ function renderRootSync(root, lanes) { } markRenderStarted(lanes); lanes = !1; + memoizedUpdaters = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { - memoizedUpdaters = workInProgress; - var thrownValue = workInProgressThrownValue; + var unitOfWork = workInProgress, + thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - workInProgressRootExitStatus = 6; + memoizedUpdaters = 6; break a; case 3: case 2: - lanes || - null !== suspenseHandlerStackCursor.current || - (lanes = !0); - default: + case 6: + null === suspenseHandlerStackCursor.current && (lanes = !0); var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, memoizedUpdaters, thrownValue, reason); + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + break; + default: + (reason = workInProgressSuspendedReason), + (workInProgressSuspendedReason = 0), + (workInProgressThrownValue = null), + throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); + memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$174) { handleThrow(root, thrownValue$174); @@ -11264,12 +11232,12 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); markRenderStopped(); - workInProgressRoot = null; - workInProgressRootRenderLanes = 0; - finishQueueingConcurrentUpdates(); - return workInProgressRootExitStatus; + null === workInProgress && + ((workInProgressRoot = null), + (workInProgressRootRenderLanes = 0), + finishQueueingConcurrentUpdates()); + return memoizedUpdaters; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -11290,7 +11258,7 @@ function renderRootConcurrent(root, lanes) { workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + 500; prepareFreshStack(root, lanes); - } + } else checkIfRootIsPrerendering(root, lanes); markRenderStarted(lanes); a: do try { @@ -11591,9 +11559,7 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11616,9 +11582,7 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes + spawnedLane ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11635,33 +11599,33 @@ function commitRootImpl( })); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), - (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), - (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), - restoreSelection(selectionInformation, root.containerInfo), - (_enabled = !!eventsEnabled), - (selectionInformation = eventsEnabled = null), - (root.current = finishedWork), - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( - didIncludeRenderPhaseUpdate - ), - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(), - requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); + if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { + transitions = ReactSharedInternals.T; + ReactSharedInternals.T = null; + spawnedLane = ReactDOMSharedInternals.p; + ReactDOMSharedInternals.p = 2; + var prevExecutionContext = executionContext; + executionContext |= 4; + commitBeforeMutationEffects(root, finishedWork); + commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate); + restoreSelection(selectionInformation, root.containerInfo); + _enabled = !!eventsEnabled; + selectionInformation = eventsEnabled = null; + root.current = finishedWork; + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted( + didIncludeRenderPhaseUpdate + ); + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate); + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(); + requestPaint(); + executionContext = prevExecutionContext; + ReactDOMSharedInternals.p = spawnedLane; + ReactSharedInternals.T = transitions; + } else root.current = finishedWork; rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11930,7 +11894,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { root$182, root$182 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 !== (JSCompiler_inline_result & 3) && + 0 === (JSCompiler_inline_result & 3) || + checkIfRootIsPrerendering(root$182, JSCompiler_inline_result) || ((didPerformSomeWork = !0), performSyncWorkOnRoot(root$182, JSCompiler_inline_result)); root$182 = root$182.next; @@ -11974,12 +11939,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } @@ -12016,8 +11981,6 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: - suspendedLanes = ImmediatePriority; - break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -12166,20 +12129,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1521 = 0; - i$jscomp$inline_1521 < simpleEventPluginEvents.length; - i$jscomp$inline_1521++ + var i$jscomp$inline_1519 = 0; + i$jscomp$inline_1519 < simpleEventPluginEvents.length; + i$jscomp$inline_1519++ ) { - var eventName$jscomp$inline_1522 = - simpleEventPluginEvents[i$jscomp$inline_1521], - domEventName$jscomp$inline_1523 = - eventName$jscomp$inline_1522.toLowerCase(), - capitalizedEvent$jscomp$inline_1524 = - eventName$jscomp$inline_1522[0].toUpperCase() + - eventName$jscomp$inline_1522.slice(1); + var eventName$jscomp$inline_1520 = + simpleEventPluginEvents[i$jscomp$inline_1519], + domEventName$jscomp$inline_1521 = + eventName$jscomp$inline_1520.toLowerCase(), + capitalizedEvent$jscomp$inline_1522 = + eventName$jscomp$inline_1520[0].toUpperCase() + + eventName$jscomp$inline_1520.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1523, - "on" + capitalizedEvent$jscomp$inline_1524 + domEventName$jscomp$inline_1521, + "on" + capitalizedEvent$jscomp$inline_1522 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15639,16 +15602,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1770 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1768 = React.version; if ( - "19.0.0-rc-cd22717c-20241013" !== - isomorphicReactPackageVersion$jscomp$inline_1770 + "19.0.0-rc-77b637d6-20241016" !== + isomorphicReactPackageVersion$jscomp$inline_1768 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1770, - "19.0.0-rc-cd22717c-20241013" + isomorphicReactPackageVersion$jscomp$inline_1768, + "19.0.0-rc-77b637d6-20241016" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15668,13 +15631,13 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1777 = { +var internals$jscomp$inline_1775 = { bundleType: 0, - version: "19.0.0-rc-cd22717c-20241013", + version: "19.0.0-rc-77b637d6-20241016", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-cd22717c-20241013", + reconcilerVersion: "19.0.0-rc-77b637d6-20241016", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$275 = 0; @@ -15692,16 +15655,16 @@ var internals$jscomp$inline_1777 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2206 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2204 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2206.isDisabled && - hook$jscomp$inline_2206.supportsFiber + !hook$jscomp$inline_2204.isDisabled && + hook$jscomp$inline_2204.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2206.inject( - internals$jscomp$inline_1777 + (rendererID = hook$jscomp$inline_2204.inject( + internals$jscomp$inline_1775 )), - (injectedHook = hook$jscomp$inline_2206); + (injectedHook = hook$jscomp$inline_2204); } catch (err) {} } function noop() {} @@ -15954,7 +15917,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js index 2cdc39814cfeb..a4e1b5662aef7 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js @@ -8566,5 +8566,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js index 33c34ed696cb1..c6ba5388da50d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js @@ -5621,4 +5621,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js index fa8f570863c15..f10114b01ded0 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js @@ -8566,5 +8566,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js index e74dceee24efc..5e1b32c13f82f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js @@ -5699,4 +5699,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js index 3436448e92522..e267c73ec627b 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js @@ -8751,11 +8751,11 @@ didWarnAboutMaps = !1; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); exports.renderToReadableStream = function (children, options) { @@ -8848,5 +8848,5 @@ startWork(request$jscomp$0); }); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js index 52c3f6f180298..4df0a14888dcd 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js @@ -5908,14 +5908,14 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_729 = React.version; if ( - "19.0.0-rc-cd22717c-20241013" !== + "19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion$jscomp$inline_729 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_729, - "19.0.0-rc-cd22717c-20241013" + "19.0.0-rc-77b637d6-20241016" ) ); exports.renderToReadableStream = function (children, options) { @@ -6007,4 +6007,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js index 93d488cdff9dc..a06d69c6d7c3f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js @@ -5592,13 +5592,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_731 = React.version; if ( - "19.0.0-rc-cd22717c-20241013" !== + "19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion$jscomp$inline_731 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_731 + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -5689,4 +5689,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js index acd519e1d2d38..b418fa9d3a43a 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js @@ -8764,11 +8764,11 @@ didWarnAboutMaps = !1; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); exports.renderToReadableStream = function (children, options) { @@ -8872,5 +8872,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js index a683a097211ac..6622f7a96625f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js @@ -5996,13 +5996,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_732 = React.version; if ( - "19.0.0-rc-cd22717c-20241013" !== + "19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion$jscomp$inline_732 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_732 + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6104,4 +6104,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js index cbbd66bedcd71..604ef22c530b4 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js @@ -8621,11 +8621,11 @@ didWarnAboutMaps = !1; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-cd22717c-20241013" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); exports.renderToPipeableStream = function (children, options) { @@ -8667,5 +8667,5 @@ } }; }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js index 95f4d7bf57474..0162bcc5f7366 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js @@ -5624,13 +5624,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_759 = React.version; if ( - "19.0.0-rc-cd22717c-20241013" !== + "19.0.0-rc-77b637d6-20241016" !== isomorphicReactPackageVersion$jscomp$inline_759 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_759 + - "\n - react-dom: 19.0.0-rc-cd22717c-20241013\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-77b637d6-20241016\nLearn more: https://react.dev/warnings/version-mismatch") ); function createDrainHandler(destination, request) { return function () { @@ -5932,4 +5932,4 @@ exports.renderToPipeableStream = function (children, options) { } }; }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js index f4fcc72e4b881..e67e1d0df1b84 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js index 7b351c20079b3..ce21f0fbf7a2d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js index 9fd41dc226975..48d203a42fc2b 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js index fa6a7f84ea007..da2d77c501099 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index ce79f3a0e89b1..9a911dc024ff8 100644 --- a/packages/next/src/compiled/react-dom/package.json +++ b/packages/next/src/compiled/react-dom/package.json @@ -67,10 +67,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.25.0-rc-cd22717c-20241013" + "scheduler": "0.25.0-rc-77b637d6-20241016" }, "peerDependencies": { - "react": "19.0.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-experimental/cjs/react.development.js b/packages/next/src/compiled/react-experimental/cjs/react.development.js index bf9008f230df2..fa05aeab7be9b 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -1237,7 +1237,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-experimental/cjs/react.production.js b/packages/next/src/compiled/react-experimental/cjs/react.production.js index 8d580270e2903..b7e9769338bda 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -567,4 +567,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js index 0dfb9c35aecfb..0aecfc8dc49d5 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js @@ -978,5 +978,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-experimental-cd22717c-20241013"; + exports.version = "19.0.0-experimental-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js index d2c36fe506987..e277294929837 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js @@ -567,4 +567,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-experimental-cd22717c-20241013"; +exports.version = "19.0.0-experimental-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index f49fa555cce0f..418ee3ae2a943 100644 --- a/packages/next/src/compiled/react-is/package.json +++ b/packages/next/src/compiled/react-is/package.json @@ -1,6 +1,6 @@ { "name": "react-is", - "version": "19.0.0-rc-cd22717c-20241013", + "version": "19.0.0-rc-77b637d6-20241016", "description": "Brand checking of React Elements.", "main": "index.js", "sideEffects": false, diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js index 73995ec2dcc86..581bd6d8c3d47 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2546,10 +2546,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013", + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json index 16947addc10a2..6cfdc039b0a43 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-cd22717c-20241013", - "react-dom": "0.0.0-experimental-cd22717c-20241013" + "react": "0.0.0-experimental-77b637d6-20241016", + "react-dom": "0.0.0-experimental-77b637d6-20241016" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js index 28a3edcc174bd..cf5882505da1e 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "%c%s%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "%c%s%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { if (bundlerConfig) { var moduleExports = bundlerConfig[metadata[0]]; @@ -1703,37 +1671,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -1853,6 +1805,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -1881,10 +1845,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2306,35 +2279,63 @@ ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "%c%s%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "%c%s%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { (currentOwnerInDEV = null), (ReactSharedInternals.getCurrentStack = prevStack); } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); (function (internals) { if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -2347,10 +2348,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-cd22717c-20241013", + version: "19.0.0-rc-77b637d6-20241016", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-cd22717c-20241013", + reconcilerVersion: "19.0.0-rc-77b637d6-20241016", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js index d7a7b6a7e325e..5cf459832cbcc 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind$1.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind$1.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { if (bundlerConfig) { var moduleExports = bundlerConfig[metadata[0]]; @@ -1916,37 +1884,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -2066,6 +2018,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -2094,10 +2058,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2525,34 +2498,62 @@ var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind$1.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind$1.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { ReactSharedInternals.getCurrentStack = prevStack; } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); exports.createFromFetch = function (promiseForResponse, options) { var response = createResponseFromOptions(options); promiseForResponse.then( diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js index 941819b81dd0d..2f636c3ff95de 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind$1.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind$1.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { if (bundlerConfig) { var moduleExports = bundlerConfig[metadata[0]]; @@ -1916,37 +1884,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -2066,6 +2018,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -2094,10 +2058,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2414,34 +2387,62 @@ var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind$1.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind$1.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { ReactSharedInternals.getCurrentStack = prevStack; } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); exports.createFromNodeStream = function (stream, ssrManifest, options) { var response = new ResponseInstance( ssrManifest.moduleMap, diff --git a/packages/next/src/compiled/react-server-dom-turbopack/package.json b/packages/next/src/compiled/react-server-dom-turbopack/package.json index 0cd684c9a0fd0..888a2cc23005c 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js index ee02cdece20d4..690d253ad5b3d 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js @@ -2559,10 +2559,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-cd22717c-20241013", + version: "19.0.0-experimental-77b637d6-20241016", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-cd22717c-20241013", + reconcilerVersion: "19.0.0-experimental-77b637d6-20241016", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json index 90756fb62ed77..8e0251ef61de6 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "0.0.0-experimental-cd22717c-20241013", - "react-dom": "0.0.0-experimental-cd22717c-20241013", + "react": "0.0.0-experimental-77b637d6-20241016", + "react-dom": "0.0.0-experimental-77b637d6-20241016", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js index ca0fd397c21ab..871e37daac767 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "%c%s%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "%c%s%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { if (bundlerConfig) { var moduleExports = bundlerConfig[metadata[0]]; @@ -1708,37 +1676,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -1858,6 +1810,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -1886,10 +1850,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2319,35 +2292,63 @@ ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; currentOwnerInDEV = null === owner ? response._debugRootOwner : owner; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "%c%s%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "%c%s%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { (currentOwnerInDEV = null), (ReactSharedInternals.getCurrentStack = prevStack); } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); (function (internals) { if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -2360,10 +2361,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-cd22717c-20241013", + version: "19.0.0-rc-77b637d6-20241016", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-cd22717c-20241013", + reconcilerVersion: "19.0.0-rc-77b637d6-20241016", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js index 94b85798b6685..1833d197d48ee 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind$1.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind$1.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { if (bundlerConfig) { var moduleExports = bundlerConfig[metadata[0]]; @@ -1917,37 +1885,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -2067,6 +2019,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -2095,10 +2059,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2526,34 +2499,62 @@ var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind$1.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind$1.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { ReactSharedInternals.getCurrentStack = prevStack; } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); exports.createFromFetch = function (promiseForResponse, options) { var response = createResponseFromOptions(options); promiseForResponse.then( diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js index 4aad9ad4a70ec..78d2d57a6569f 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind$1.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind$1.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { if (bundlerConfig) { var moduleExports = bundlerConfig[metadata[0]]; @@ -1917,37 +1885,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -2067,6 +2019,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -2095,10 +2059,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2415,34 +2388,62 @@ var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind$1.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind$1.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { ReactSharedInternals.getCurrentStack = prevStack; } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); exports.createFromNodeStream = function (stream, ssrManifest, options) { var response = new ResponseInstance( ssrManifest.moduleMap, diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js index d32c16076beaa..98020c750510b 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js @@ -22,38 +22,6 @@ : (obj[key] = value); return obj; } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind$1.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; - } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind$1.apply(console[methodName], args); - } function resolveClientReference(bundlerConfig, metadata) { var moduleExports = bundlerConfig[metadata[0]]; if ((bundlerConfig = moduleExports[metadata[2]])) @@ -1892,37 +1860,21 @@ response.reason.close("" === row ? '"$undefined"' : row); } function resolveErrorDev(response, errorInfo) { - response = errorInfo.stack; var env = errorInfo.env; - errorInfo = Error( - errorInfo.message || - "An error occurred in the Server Components render but no message was provided" + errorInfo = buildFakeCallStack( + response, + errorInfo.stack, + env, + Error.bind( + null, + errorInfo.message || + "An error occurred in the Server Components render but no message was provided" + ) ); - var v8StyleStack = errorInfo.name + ": " + errorInfo.message; - if (response) - for (var i = 0; i < response.length; i++) { - var frame = response[i], - name = frame[0], - filename = frame[1], - line = frame[2]; - frame = frame[3]; - v8StyleStack = name - ? v8StyleStack + - ("\n at " + - name + - " (" + - filename + - ":" + - line + - ":" + - frame + - ")") - : v8StyleStack + - ("\n at " + filename + ":" + line + ":" + frame); - } - errorInfo.stack = v8StyleStack; - errorInfo.environmentName = env; - return errorInfo; + response = getRootTask(response, env); + response = null != response ? response.run(errorInfo) : errorInfo(); + response.environmentName = env; + return response; } function resolveHint(response, code, model) { response = JSON.parse(model, response._fromJSON); @@ -2042,6 +1994,18 @@ } return innerCall; } + function getRootTask(response, childEnvironmentName) { + var rootTask = response._debugRootTask; + return rootTask + ? response._rootEnvironmentName !== childEnvironmentName + ? ((response = console.createTask.bind( + console, + '"use ' + childEnvironmentName.toLowerCase() + '"' + )), + rootTask.run(response)) + : rootTask + : null; + } function fakeJSXCallSite() { return Error("react-stack-top-frame"); } @@ -2070,10 +2034,19 @@ function resolveConsoleEntry(response, value) { if (response._replayConsole) { var payload = JSON.parse(value, response._fromJSON); - response = payload[0]; - value = payload[3]; + value = payload[0]; + var stackTrace = payload[1], + owner = payload[2], + env = payload[3]; payload = payload.slice(4); - bindToConsole(response, payload, value)(); + replayConsoleWithCallStackInDEV( + response, + value, + stackTrace, + owner, + env, + payload + ); } } function mergeBuffer(buffer, lastChunk) { @@ -2390,34 +2363,62 @@ var prevStack = ReactSharedInternals.getCurrentStack; ReactSharedInternals.getCurrentStack = getCurrentStackInDEV; try { + a: { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + var JSCompiler_inline_result = bind$1.apply( + console[methodName], + [console].concat(args) + ); + break a; + case "assert": + offset = 1; + } + var newArgs = args.slice(0); + "string" === typeof newArgs[offset] + ? newArgs.splice( + offset, + 1, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + newArgs[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ) + : newArgs.splice( + offset, + 0, + "\u001b[0m\u001b[7m%c%s\u001b[0m%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + env + " ", + "" + ); + newArgs.unshift(console); + JSCompiler_inline_result = bind$1.apply( + console[methodName], + newArgs + ); + } var callStack = buildFakeCallStack( response, stackTrace, env, - bindToConsole(methodName, args, env) + JSCompiler_inline_result ); null != owner && initializeFakeStack(response, owner); - var rootTask = response._debugRootTask; - if (rootTask) - if (response._rootEnvironmentName !== env) { - var createTaskFn = console.createTask.bind( - console, - '"use ' + env.toLowerCase() + '"' - ); - var rootTask$jscomp$0 = rootTask.run(createTaskFn); - } else rootTask$jscomp$0 = rootTask; - else rootTask$jscomp$0 = null; - null != rootTask$jscomp$0 - ? rootTask$jscomp$0.run(callStack) - : callStack(); + var rootTask = getRootTask(response, env); + null != rootTask ? rootTask.run(callStack) : callStack(); } finally { ReactSharedInternals.getCurrentStack = prevStack; } } - }; - replayConsoleWithCallStack["react-stack-bottom-frame"].bind( - replayConsoleWithCallStack - ); + }, + replayConsoleWithCallStackInDEV = replayConsoleWithCallStack[ + "react-stack-bottom-frame" + ].bind(replayConsoleWithCallStack); exports.createFromNodeStream = function (stream, ssrManifest, options) { var response = new ResponseInstance( ssrManifest.moduleMap, diff --git a/packages/next/src/compiled/react-server-dom-webpack/package.json b/packages/next/src/compiled/react-server-dom-webpack/package.json index 6c47a8e47dfcf..e87a1face82d0 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013", + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react/cjs/react.development.js b/packages/next/src/compiled/react/cjs/react.development.js index 4aa40796231da..195a7c9eb95b2 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -1516,7 +1516,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index 1c32ae0578803..8c34181e56c2a 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -536,4 +536,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/react/cjs/react.react-server.development.js b/packages/next/src/compiled/react/cjs/react.react-server.development.js index 49a17d6f31ae6..1862bb77e31bd 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.development.js @@ -1113,5 +1113,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-rc-cd22717c-20241013"; + exports.version = "19.0.0-rc-77b637d6-20241016"; })(); diff --git a/packages/next/src/compiled/react/cjs/react.react-server.production.js b/packages/next/src/compiled/react/cjs/react.react-server.production.js index 775355b1393c7..9e73afc021bf0 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.production.js @@ -424,4 +424,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-rc-cd22717c-20241013"; +exports.version = "19.0.0-rc-77b637d6-20241016"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index d9236e70d9e53..1960f723fb868 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={816:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a{var t={58:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a=18'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -6176,12 +6176,12 @@ packages: peerDependencies: '@babel/core': 7.22.5 - babel-plugin-react-compiler@0.0.0-experimental-605e95c-20241015: - resolution: {integrity: sha512-ZAaL18BPM4+1PhMnIUmmMD8xCZ2uk342tcoQezbUT1b6jLklfMkW3rNwH93fMnmZNlNkWHSyWCaYXzS7mtoXOQ==} - babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: resolution: {integrity: sha512-0XN2gmpT55QtAz5n7d5g91y1AuO9tRhWBaLgCRyc4ExHrlr7+LfxW+YTb3mOwxngkkiggwM8HyYsaEK9MqhnlQ==} + babel-plugin-react-compiler@0.0.0-experimental-fa06e2c-20241016: + resolution: {integrity: sha512-ASXNEtiyWcSnt38qTuu5972o+XYcz5pdkfvtLnhG1fglaQg9pFmfhC5274EH1QXxOFhgDOSd/foZ+H2o/a1noA==} + babel-plugin-transform-async-to-promises@0.8.15: resolution: {integrity: sha512-fDXP68ZqcinZO2WCiimCL9zhGjGXOnn3D33zvbh+yheZ/qOrNVVDDIBtAaM3Faz8TRvQzHiRKsu3hfrBAhEncQ==} @@ -10553,7 +10553,7 @@ packages: lucide-react@0.383.0: resolution: {integrity: sha512-13xlG0CQCJtzjSQYwwJ3WRqMHtRj3EXmLlorrARt7y+IHnxUCp3XyFNL1DfaGySWxHObDvnu1u1dV+0VMKHUSg==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} @@ -12763,28 +12763,28 @@ packages: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} hasBin: true - react-dom@0.0.0-experimental-cd22717c-20241013: - resolution: {integrity: sha512-bNw3oDPKg8LN4MuK0uwJ3r6Gz0gdSGy2/LPJ6jAXfmyal7WxlO5puXcUzPDqjxDQunCzv4KQNo42e5SbSpKOPA==} + react-dom@0.0.0-experimental-77b637d6-20241016: + resolution: {integrity: sha512-o7y6R1NARwCcuLz/ZFA+EORT88+bNnnohoau/jW902F0eAMrV+B8xQQbw1GGaIYbAtGCiVx94dBOgiII3n6WUg==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 react-dom@17.0.2: resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 - react-dom@19.0.0-rc-cd22717c-20241013: - resolution: {integrity: sha512-NzjTBOXygonUxLRQuUUW5V2QLGkAcyUwJoS8+UWxs089paMvQQfoRD51w65Ovgd2OEQ8Rm3HWx+82fvXiT0czQ==} + react-dom@19.0.0-rc-77b637d6-20241016: + resolution: {integrity: sha512-xp5LvY+O6uvg0fNbSMyMXe0kbgzw6qn0mbqrdXStm4LBpFeMswLZ+XSNr+eJ0HyIiWrCw0rrXaVdqOxc9wtdKA==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 react-dom@19.0.0-rc-f90a6bcc-20240827: resolution: {integrity: sha512-oUa/reDvGtjRcxi8u+GYHaDHanudaO28+G+Wvxm50CItW1xwIFN2Nn7foJxxDS9lFLGdRWZvjxldZEPAUSuXbg==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 - react-is@19.0.0-rc-cd22717c-20241013: - resolution: {integrity: sha512-yPis8+gyVDt0ZFYFb2mhgnEzjsNRQFbJBnjI0RNBYe4Yr6cWuzhvsyljcjVjS5JaGvj9NiXRgU/1Bv+a3zZwdg==} + react-is@19.0.0-rc-77b637d6-20241016: + resolution: {integrity: sha512-5OdTITfDUMxftvPQnNbBYprFNmfZZl3IgKW770YyM70e5H1ZcSgqyDtXA7svJ6wT5Ci5aHW/viATOjPK4OjWNA==} react-is@19.0.0-rc-f90a6bcc-20240827: resolution: {integrity: sha512-1tXoLFzVbqHAQeY3CwpyF5IYbkwgSoNHhrhS8qOrfiZIh2461h/C1BP/JVIxwyL51wHhUgLsAc/M8g0OcEhV1A==} @@ -12795,8 +12795,8 @@ packages: react-number-format@5.4.0: resolution: {integrity: sha512-NWdICrqLhI7rAS8yUeLVd6Wr4cN7UjJ9IBTS0f/a9i7UB4x4Ti70kGnksBtZ7o4Z7YRbvCMMR/jQmkoOBa/4fg==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 react-refresh@0.12.0: resolution: {integrity: sha512-suLIhrU2IHKL5JEKR/fAwJv7bbeq4kJ+pJopf77jHwuR+HmJS/HbrPIGsTBUVfw7tXPOmYv7UJ7PCaN49e8x4A==} @@ -12807,7 +12807,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -12817,58 +12817,58 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true - react-server-dom-turbopack@0.0.0-experimental-cd22717c-20241013: - resolution: {integrity: sha512-GVWwOZ9G88/pZYTD+rdsuq7Cm8jXWAzHo/nwj5/Qi312NkQnkXmXDlpx4SEO4j91008xzKNOwgI/IvmPR83QDQ==} + react-server-dom-turbopack@0.0.0-experimental-77b637d6-20241016: + resolution: {integrity: sha512-8G1FyhChBgyfw51pVZc9be17DVxZEPPZpmoU3bz9EZ2OrS1U7ZS3GU/WFm8AU7kA2Kn4glXm7GVVgeN2piUK6Q==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 - react-server-dom-turbopack@19.0.0-rc-cd22717c-20241013: - resolution: {integrity: sha512-1uUhCjErJ0nNIzNfL8d7EdECrZvxCcUAJsf5hbwWBHmFBAqZhpOMRjuSt9cs5mAXbGS0OarP38DIoAUOi/YucQ==} + react-server-dom-turbopack@19.0.0-rc-77b637d6-20241016: + resolution: {integrity: sha512-IJnSts7hQouM3tD8cRPjDDwC428Q4LfZylnkCgwbBkW84nT2wv7CH1jNj4lgmOmJxAtI6E6TCGW1irLdjhDklA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 - react-server-dom-webpack@0.0.0-experimental-cd22717c-20241013: - resolution: {integrity: sha512-s+UfNB9biyyQuVcUVarUsRRZs1Jf+jmTgmYrylz0m8FglTchsJe+mWacC1zcB3e3hZhR3RW1dXWye9rwGmN8bw==} + react-server-dom-webpack@0.0.0-experimental-77b637d6-20241016: + resolution: {integrity: sha512-SU/17V2gqwlbDjjalYZCBUv2FEfF9kJUyBZ45Cmo8OfvmTPeK6Iha+ICSAD4gVFKROq/9n8AXnY56znUiKrbQA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 webpack: 5.90.0 - react-server-dom-webpack@19.0.0-rc-cd22717c-20241013: - resolution: {integrity: sha512-d1md/Iwvp+QOvvB9UyvVLJ7thdX3uHvTmQOulvaSZC2lepFqifoBkgiMrJxp+GVHEYYDV2FrpibhwWXozQA98Q==} + react-server-dom-webpack@19.0.0-rc-77b637d6-20241016: + resolution: {integrity: sha512-g7sE0ekgFMXDtgjBYaFzjT1yStdA8Ivv3gMlfto5w260NurLY+KsCXM2V+43LRBxdIz8TKYR442dCV89XQKpcQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 webpack: 5.90.0 react-shallow-renderer@16.15.0: resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 react-ssr-prepass@1.0.8: resolution: {integrity: sha512-O0gfRA1SaK+9ITKxqfnXsej2jF+OHGP/+GxD4unROQaM/0/UczGF9fuF+wTboxaQoKdIf4FvS3h/OigWh704VA==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-is: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-is: 19.0.0-rc-77b637d6-20241016 react-style-singleton@2.2.1: resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==} engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -12876,30 +12876,30 @@ packages: react-test-renderer@18.2.0: resolution: {integrity: sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 react-textarea-autosize@8.5.3: resolution: {integrity: sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==} engines: {node: '>=10'} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 react-virtualized@9.22.3: resolution: {integrity: sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 - react@0.0.0-experimental-cd22717c-20241013: - resolution: {integrity: sha512-yATUeR142zY9amcl4BQ/DEHAQTduGePCCVxJuFoML0/F5BaC7UTHJG6Uum5qRM+YvURKTFlNwIjXlrYYZfegPg==} + react@0.0.0-experimental-77b637d6-20241016: + resolution: {integrity: sha512-OG/Yh1jRvKvscfMZ3Qh4aoXR1Wp9MpbMHDod3k0Li1iaLZQ1kTcP92+akSFZ0Ok2Cle6HdyG1DVHNTpp6Bn9sg==} engines: {node: '>=0.10.0'} react@17.0.2: resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} engines: {node: '>=0.10.0'} - react@19.0.0-rc-cd22717c-20241013: - resolution: {integrity: sha512-k28GszmyQ1tX/JmeLGZINq5KXiNy/MmN0fCAtcwF8a9INDyVYG0zATCRGJwaPB9WixmkuwPv1BfB1QBfJC7cNg==} + react@19.0.0-rc-77b637d6-20241016: + resolution: {integrity: sha512-9A+i+PGSH/P4MezU4w38K9cbJuy0pzsXoPjPWIv6TQGCFmc5qCzC+8yce8dzfSEF1KJgCF2CLc5qtq/ePfiVqg==} engines: {node: '>=0.10.0'} react@19.0.0-rc-f90a6bcc-20240827: @@ -13419,11 +13419,11 @@ packages: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} - scheduler@0.0.0-experimental-cd22717c-20241013: - resolution: {integrity: sha512-bjY9M5N0kGrBo7t3r0IY4kdiZQjdsV3xdhG2AI4FH9lyRNhgtgw8pHVGmNQ3NHHJhvj1HpZLrvOFTX1BtUgEQQ==} + scheduler@0.0.0-experimental-77b637d6-20241016: + resolution: {integrity: sha512-hBDWpJinjlylwiNtxmE7ZXaghios7xcwYcdSQtgj8LN73/FZTE4WKXJjg835DnWBV9jYzQE/Rg4tVNKgTVsObg==} - scheduler@0.25.0-rc-cd22717c-20241013: - resolution: {integrity: sha512-MnsFR57bKcrYslnbCUsaUG0qBuAArk92VxE0zu6A2Usz38iIuL2uZLunqKlP1W47MF33GrRGDj1sXdPbFKIZfw==} + scheduler@0.25.0-rc-77b637d6-20241016: + resolution: {integrity: sha512-R5NTrZXJaW4Dj2jHmad2MTehpFq4yUQOxRKDNV7clP1q4Pz6RtUIcofdPnGUWM0krlJAw8DHd/4jT41pFK4iEg==} schema-utils@2.7.1: resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} @@ -13968,8 +13968,8 @@ packages: engines: {node: '>= 16'} peerDependencies: babel-plugin-styled-components: '>= 2' - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: babel-plugin-styled-components: optional: true @@ -13983,7 +13983,7 @@ packages: peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@babel/core': optional: true @@ -14060,7 +14060,7 @@ packages: swr@2.2.4: resolution: {integrity: sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 symbol-observable@1.0.1: resolution: {integrity: sha512-Kb3PrPYz4HanVF1LVGuAdW6LoVgIwjUYJGzFe7NDrBLCN4lsV/5J0MFurV+ygS4bRVwrCEt2c7MQ1R2a72oJDw==} @@ -14781,7 +14781,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -14789,13 +14789,13 @@ packages: use-composed-ref@1.3.0: resolution: {integrity: sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 use-isomorphic-layout-effect@1.1.2: resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -14804,7 +14804,7 @@ packages: resolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -14814,7 +14814,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 peerDependenciesMeta: '@types/react': optional: true @@ -14822,7 +14822,7 @@ packages: use-sync-external-store@1.2.0: resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -17478,17 +17478,17 @@ snapshots: '@emotion/memoize@0.8.1': {} - '@emotion/react@11.11.1(react@19.0.0-rc-cd22717c-20241013)(types-react@19.0.0-rc.0)': + '@emotion/react@11.11.1(react@19.0.0-rc-77b637d6-20241016)(types-react@19.0.0-rc.0)': dependencies: '@babel/runtime': 7.22.5 '@emotion/babel-plugin': 11.11.0 '@emotion/cache': 11.11.0 '@emotion/serialize': 1.1.2 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-cd22717c-20241013) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-77b637d6-20241016) '@emotion/utils': 1.2.1 '@emotion/weak-memoize': 0.3.1 hoist-non-react-statics: 3.3.2 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 optionalDependencies: '@types/react': types-react@19.0.0-rc.0 transitivePeerDependencies: @@ -17506,9 +17506,9 @@ snapshots: '@emotion/unitless@0.8.1': {} - '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-cd22717c-20241013)': + '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-77b637d6-20241016)': dependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 '@emotion/utils@1.2.1': {} @@ -18901,11 +18901,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@mdx-js/react@2.2.1(react@19.0.0-rc-cd22717c-20241013)': + '@mdx-js/react@2.2.1(react@19.0.0-rc-77b637d6-20241016)': dependencies: '@types/mdx': 2.0.3 '@types/react': types-react@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 '@mdx-js/react@2.2.1(react@19.0.0-rc-f90a6bcc-20240827)': dependencies: @@ -19721,13 +19721,13 @@ snapshots: '@types/jest': 29.5.5 jest: 29.7.0(@types/node@20.12.3)(babel-plugin-macros@3.1.0) - '@testing-library/react@15.0.7(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013)(types-react@19.0.0-rc.0)': + '@testing-library/react@15.0.7(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016)(types-react@19.0.0-rc.0)': dependencies: '@babel/runtime': 7.22.5 '@testing-library/dom': 10.1.0 '@types/react-dom': types-react-dom@19.0.0-rc.0 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) optionalDependencies: '@types/react': types-react@19.0.0-rc.0 @@ -21086,7 +21086,7 @@ snapshots: - supports-color optional: true - babel-plugin-react-compiler@0.0.0-experimental-605e95c-20241015: + babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: dependencies: '@babel/generator': 7.2.0 '@babel/types': 7.22.5 @@ -21096,7 +21096,7 @@ snapshots: zod: 3.23.8 zod-validation-error: 2.1.0(zod@3.23.8) - babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: + babel-plugin-react-compiler@0.0.0-experimental-fa06e2c-20241016: dependencies: '@babel/generator': 7.2.0 '@babel/types': 7.22.5 @@ -24827,7 +24827,7 @@ snapshots: hoist-non-react-statics@3.3.2: dependencies: - react-is: 19.0.0-rc-cd22717c-20241013 + react-is: 19.0.0-rc-77b637d6-20241016 homedir-polyfill@1.0.3: dependencies: @@ -29128,25 +29128,25 @@ snapshots: '@jest/types': 24.9.0 ansi-regex: 4.1.0 ansi-styles: 3.2.1 - react-is: 19.0.0-rc-cd22717c-20241013 + react-is: 19.0.0-rc-77b637d6-20241016 pretty-format@27.5.1: dependencies: ansi-regex: 5.0.1 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-cd22717c-20241013 + react-is: 19.0.0-rc-77b637d6-20241016 pretty-format@29.5.0: dependencies: '@jest/schemas': 29.4.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-cd22717c-20241013 + react-is: 19.0.0-rc-77b637d6-20241016 pretty-format@29.7.0: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-cd22717c-20241013 + react-is: 19.0.0-rc-77b637d6-20241016 pretty-ms@7.0.0: dependencies: @@ -29203,7 +29203,7 @@ snapshots: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react-is: 19.0.0-rc-cd22717c-20241013 + react-is: 19.0.0-rc-77b637d6-20241016 property-information@5.6.0: dependencies: @@ -29377,29 +29377,29 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - react-dom@0.0.0-experimental-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013): + react-dom@0.0.0-experimental-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016): dependencies: - react: 19.0.0-rc-cd22717c-20241013 - scheduler: 0.25.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + scheduler: 0.25.0-rc-77b637d6-20241016 - react-dom@17.0.2(react@19.0.0-rc-cd22717c-20241013): + react-dom@17.0.2(react@19.0.0-rc-77b637d6-20241016): dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react: 19.0.0-rc-cd22717c-20241013 - scheduler: 0.25.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + scheduler: 0.25.0-rc-77b637d6-20241016 - react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013): + react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016): dependencies: - react: 19.0.0-rc-cd22717c-20241013 - scheduler: 0.25.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + scheduler: 0.25.0-rc-77b637d6-20241016 react-dom@19.0.0-rc-f90a6bcc-20240827(react@19.0.0-rc-f90a6bcc-20240827): dependencies: react: 19.0.0-rc-f90a6bcc-20240827 - scheduler: 0.25.0-rc-cd22717c-20241013 + scheduler: 0.25.0-rc-77b637d6-20241016 - react-is@19.0.0-rc-cd22717c-20241013: {} + react-is@19.0.0-rc-77b637d6-20241016: {} react-is@19.0.0-rc-f90a6bcc-20240827: {} @@ -29432,48 +29432,48 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - react-server-dom-turbopack@0.0.0-experimental-cd22717c-20241013(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013): + react-server-dom-turbopack@0.0.0-experimental-77b637d6-20241016(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) - react-server-dom-turbopack@19.0.0-rc-cd22717c-20241013(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013): + react-server-dom-turbopack@19.0.0-rc-77b637d6-20241016(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) - react-server-dom-webpack@0.0.0-experimental-cd22717c-20241013(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013)(webpack@5.90.0(@swc/core@1.6.13(@swc/helpers@0.5.13))): + react-server-dom-webpack@0.0.0-experimental-77b637d6-20241016(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016)(webpack@5.90.0(@swc/core@1.6.13(@swc/helpers@0.5.13))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) webpack: 5.90.0(@swc/core@1.6.13(@swc/helpers@0.5.13)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-server-dom-webpack@19.0.0-rc-cd22717c-20241013(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013)(webpack@5.90.0(@swc/core@1.6.13(@swc/helpers@0.5.13))): + react-server-dom-webpack@19.0.0-rc-77b637d6-20241016(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016)(webpack@5.90.0(@swc/core@1.6.13(@swc/helpers@0.5.13))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) webpack: 5.90.0(@swc/core@1.6.13(@swc/helpers@0.5.13)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-shallow-renderer@16.15.0(react@19.0.0-rc-cd22717c-20241013): + react-shallow-renderer@16.15.0(react@19.0.0-rc-77b637d6-20241016): dependencies: object-assign: 4.1.1 - react: 19.0.0-rc-cd22717c-20241013 - react-is: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-is: 19.0.0-rc-77b637d6-20241016 - react-ssr-prepass@1.0.8(react-is@19.0.0-rc-f90a6bcc-20240827)(react@19.0.0-rc-cd22717c-20241013): + react-ssr-prepass@1.0.8(react-is@19.0.0-rc-f90a6bcc-20240827)(react@19.0.0-rc-77b637d6-20241016): dependencies: object-is: 1.0.2 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 react-is: 19.0.0-rc-f90a6bcc-20240827 react-style-singleton@2.2.1(react@19.0.0-rc-f90a6bcc-20240827)(types-react@19.0.0-rc.0): @@ -29485,12 +29485,12 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - react-test-renderer@18.2.0(react@19.0.0-rc-cd22717c-20241013): + react-test-renderer@18.2.0(react@19.0.0-rc-77b637d6-20241016): dependencies: - react: 19.0.0-rc-cd22717c-20241013 - react-is: 19.0.0-rc-cd22717c-20241013 - react-shallow-renderer: 16.15.0(react@19.0.0-rc-cd22717c-20241013) - scheduler: 0.25.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 + react-is: 19.0.0-rc-77b637d6-20241016 + react-shallow-renderer: 16.15.0(react@19.0.0-rc-77b637d6-20241016) + scheduler: 0.25.0-rc-77b637d6-20241016 react-textarea-autosize@8.5.3(react@19.0.0-rc-f90a6bcc-20240827)(types-react@19.0.0-rc.0): dependencies: @@ -29501,25 +29501,25 @@ snapshots: transitivePeerDependencies: - '@types/react' - react-virtualized@9.22.3(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013): + react-virtualized@9.22.3(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016): dependencies: '@babel/runtime': 7.22.5 clsx: 1.1.1 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) react-lifecycles-compat: 3.0.4 - react@0.0.0-experimental-cd22717c-20241013: {} + react@0.0.0-experimental-77b637d6-20241016: {} react@17.0.2: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react@19.0.0-rc-cd22717c-20241013: {} + react@19.0.0-rc-77b637d6-20241016: {} react@19.0.0-rc-f90a6bcc-20240827: {} @@ -30210,9 +30210,9 @@ snapshots: dependencies: xmlchars: 2.2.0 - scheduler@0.0.0-experimental-cd22717c-20241013: {} + scheduler@0.0.0-experimental-77b637d6-20241016: {} - scheduler@0.25.0-rc-cd22717c-20241013: {} + scheduler@0.25.0-rc-77b637d6-20241016: {} schema-utils@2.7.1: dependencies: @@ -30819,7 +30819,7 @@ snapshots: dependencies: inline-style-parser: 0.1.1 - styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013))(react@19.0.0-rc-cd22717c-20241013): + styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016))(react@19.0.0-rc-77b637d6-20241016): dependencies: '@babel/cli': 7.21.5(@babel/core@7.22.5) '@babel/core': 7.22.5 @@ -30834,8 +30834,8 @@ snapshots: '@emotion/unitless': 0.8.1 css-to-react-native: 3.2.0 postcss: 8.4.31 - react: 19.0.0-rc-cd22717c-20241013 - react-dom: 19.0.0-rc-cd22717c-20241013(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + react-dom: 19.0.0-rc-77b637d6-20241016(react@19.0.0-rc-77b637d6-20241016) shallowequal: 1.1.0 stylis: 4.2.0 tslib: 2.5.3 @@ -30847,10 +30847,10 @@ snapshots: postcss: 7.0.32 postcss-load-plugins: 2.3.0 - styled-jsx@5.1.6(@babel/core@7.22.5)(babel-plugin-macros@3.1.0)(react@19.0.0-rc-cd22717c-20241013): + styled-jsx@5.1.6(@babel/core@7.22.5)(babel-plugin-macros@3.1.0)(react@19.0.0-rc-77b637d6-20241016): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 optionalDependencies: '@babel/core': 7.22.5 babel-plugin-macros: 3.1.0 @@ -30940,11 +30940,11 @@ snapshots: picocolors: 1.0.1 stable: 0.1.8 - swr@2.2.4(react@19.0.0-rc-cd22717c-20241013): + swr@2.2.4(react@19.0.0-rc-77b637d6-20241016): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-cd22717c-20241013 - use-sync-external-store: 1.2.0(react@19.0.0-rc-cd22717c-20241013) + react: 19.0.0-rc-77b637d6-20241016 + use-sync-external-store: 1.2.0(react@19.0.0-rc-77b637d6-20241016) symbol-observable@1.0.1: {} @@ -31608,9 +31608,9 @@ snapshots: unist-util-is: 5.2.0 unist-util-visit-parents: 5.1.3 - unistore@3.4.1(react@19.0.0-rc-cd22717c-20241013): + unistore@3.4.1(react@19.0.0-rc-77b637d6-20241016): optionalDependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 universal-github-app-jwt@1.1.1: dependencies: @@ -31728,9 +31728,9 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - use-sync-external-store@1.2.0(react@19.0.0-rc-cd22717c-20241013): + use-sync-external-store@1.2.0(react@19.0.0-rc-77b637d6-20241016): dependencies: - react: 19.0.0-rc-cd22717c-20241013 + react: 19.0.0-rc-77b637d6-20241016 util-deprecate@1.0.2: {} diff --git a/run-tests.js b/run-tests.js index 9cb356a27489e..9a821a1388352 100644 --- a/run-tests.js +++ b/run-tests.js @@ -20,7 +20,7 @@ const { getTestFilter } = require('./test/get-test-filter') // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-cd22717c-20241013"; +const nextjsReactPeerVersion = "19.0.0-rc-77b637d6-20241016"; let argv = require('yargs/yargs')(process.argv.slice(2)) .string('type') diff --git a/test/.stats-app/package.json b/test/.stats-app/package.json index 5c99752d955f5..4e01b4e6fd786 100644 --- a/test/.stats-app/package.json +++ b/test/.stats-app/package.json @@ -4,8 +4,8 @@ "license": "MIT", "dependencies": { "next": "latest", - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016" }, "engines": { "node": ">=18.18.0" diff --git a/test/development/acceptance-app/ReactRefreshLogBox.test.ts b/test/development/acceptance-app/ReactRefreshLogBox.test.ts index 5cffc6ddadc88..aa059024653d3 100644 --- a/test/development/acceptance-app/ReactRefreshLogBox.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBox.test.ts @@ -852,7 +852,17 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { const stackFrames = await Promise.all( stackFrameElements.map((f) => f.innerText()) ) - expect(stackFrames).toEqual([]) + expect(stackFrames).toEqual( + // TODO: Show useful stack + [ + // Internal frames of React. + // Feel free to adjust until we show useful stacks. + '', + '', + '', + '', + ] + ) } finally { await cleanup() } @@ -909,12 +919,26 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { Page app/page.js (5:6) `, + // TODO: Show useful stack + // Internal frames of React. + // Feel free to adjust until we show useful stacks. + '', + '', + '', + '', ] : [ outdent` Page app/page.js (5:5) `, + // TODO: Show useful stack + // Internal frames of React. + // Feel free to adjust until we show useful stacks. + '', + '', + '', + '', ] ) } finally { @@ -957,7 +981,17 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => { const stackFrames = await Promise.all( stackFrameElements.map((f) => f.innerText()) ) - expect(stackFrames).toEqual([]) + expect(stackFrames).toEqual( + // TODO: Show useful stack + [ + // Internal frames of React. + // Feel free to adjust until we show useful stacks. + '', + '', + '', + '', + ] + ) } finally { await cleanup() } diff --git a/test/development/app-dir/dynamic-error-trace/index.test.ts b/test/development/app-dir/dynamic-error-trace/index.test.ts index d95bb593d65ab..7ee4c25f8fc3d 100644 --- a/test/development/app-dir/dynamic-error-trace/index.test.ts +++ b/test/development/app-dir/dynamic-error-trace/index.test.ts @@ -6,8 +6,6 @@ import { } from 'next-test-utils' import { outdent } from 'outdent' -const isReactExperimental = process.env.__NEXT_EXPERIMENTAL_PPR === 'true' - describe('app dir - dynamic error trace', () => { const { next, skipped } = nextTestSetup({ files: __dirname, @@ -48,16 +46,14 @@ describe('app dir - dynamic error trace', () => { ) expect(stackFrames).toEqual( // TODO: Show useful stack - isReactExperimental - ? [ - // Internal frames of React. - // Feel free to adjust until we show useful stacks. - '', - '', - '', - '', - ] - : [] + [ + // Internal frames of React. + // Feel free to adjust until we show useful stacks. + '', + '', + '', + '', + ] ) const codeframe = await getRedboxSource(browser) diff --git a/test/e2e/next-test/first-time-setup-js/package.json b/test/e2e/next-test/first-time-setup-js/package.json index 10ebabc616182..8075b28f63326 100644 --- a/test/e2e/next-test/first-time-setup-js/package.json +++ b/test/e2e/next-test/first-time-setup-js/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016" } } diff --git a/test/e2e/next-test/first-time-setup-ts/package.json b/test/e2e/next-test/first-time-setup-ts/package.json index 112566442b0fc..df1714bde7357 100644 --- a/test/e2e/next-test/first-time-setup-ts/package.json +++ b/test/e2e/next-test/first-time-setup-ts/package.json @@ -8,8 +8,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-cd22717c-20241013", - "react-dom": "19.0.0-rc-cd22717c-20241013" + "react": "19.0.0-rc-77b637d6-20241016", + "react-dom": "19.0.0-rc-77b637d6-20241016" }, "devDependencies": { "@types/react": "^18", diff --git a/test/lib/next-modes/base.ts b/test/lib/next-modes/base.ts index 2d816bccef897..faeaa4076d65b 100644 --- a/test/lib/next-modes/base.ts +++ b/test/lib/next-modes/base.ts @@ -51,7 +51,7 @@ type OmitFirstArgument = F extends ( // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-cd22717c-20241013"; +const nextjsReactPeerVersion = "19.0.0-rc-77b637d6-20241016"; export class NextInstance { protected files: FileRef | { [filename: string]: string | FileRef }