From f628524073a4517be3af08a4bafda278e27b40a8 Mon Sep 17 00:00:00 2001 From: vercel-release-bot Date: Wed, 28 Aug 2024 16:24:26 +0000 Subject: [PATCH] ncc-compiled --- .../cjs/react-dom-client.development.js | 407 ++++++++--------- .../cjs/react-dom-client.production.js | 357 ++++++++------- .../cjs/react-dom-profiling.development.js | 407 ++++++++--------- .../cjs/react-dom-profiling.profiling.js | 363 ++++++++-------- ...t-dom-server-legacy.browser.development.js | 160 ++++--- ...ct-dom-server-legacy.browser.production.js | 212 +++++---- ...eact-dom-server-legacy.node.development.js | 160 ++++--- ...react-dom-server-legacy.node.production.js | 212 +++++---- .../react-dom-server.browser.development.js | 164 ++++--- .../react-dom-server.browser.production.js | 176 ++++---- .../cjs/react-dom-server.bun.production.js | 182 ++++---- .../cjs/react-dom-server.edge.development.js | 164 ++++--- .../cjs/react-dom-server.edge.production.js | 176 ++++---- .../cjs/react-dom-server.node.development.js | 164 ++++--- .../cjs/react-dom-server.node.production.js | 176 ++++---- .../react-dom-unstable_testing.development.js | 407 ++++++++--------- .../react-dom-unstable_testing.production.js | 357 ++++++++------- .../cjs/react-dom.development.js | 2 +- .../cjs/react-dom.production.js | 2 +- .../cjs/react-dom.react-server.development.js | 2 +- .../cjs/react-dom.react-server.production.js | 2 +- .../react-dom-experimental/package.json | 4 +- .../cjs/react-dom-client.development.js | 411 +++++++++--------- .../cjs/react-dom-client.production.js | 357 ++++++++------- .../cjs/react-dom-profiling.development.js | 411 +++++++++--------- .../cjs/react-dom-profiling.profiling.js | 363 ++++++++-------- ...t-dom-server-legacy.browser.development.js | 174 +++++--- ...ct-dom-server-legacy.browser.production.js | 224 +++++----- ...eact-dom-server-legacy.node.development.js | 174 +++++--- ...react-dom-server-legacy.node.production.js | 224 +++++----- .../react-dom-server.browser.development.js | 178 +++++--- .../react-dom-server.browser.production.js | 194 +++++---- .../cjs/react-dom-server.bun.production.js | 194 +++++---- .../cjs/react-dom-server.edge.development.js | 178 +++++--- .../cjs/react-dom-server.edge.production.js | 194 +++++---- .../cjs/react-dom-server.node.development.js | 178 +++++--- .../cjs/react-dom-server.node.production.js | 194 +++++---- .../react-dom/cjs/react-dom.development.js | 2 +- .../react-dom/cjs/react-dom.production.js | 2 +- .../cjs/react-dom.react-server.development.js | 2 +- .../cjs/react-dom.react-server.production.js | 2 +- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- .../next/src/compiled/react-is/package.json | 2 +- ...om-turbopack-server.browser.development.js | 18 +- ...dom-turbopack-server.browser.production.js | 13 +- ...r-dom-turbopack-server.edge.development.js | 18 +- ...er-dom-turbopack-server.edge.production.js | 13 +- ...r-dom-turbopack-server.node.development.js | 18 +- ...er-dom-turbopack-server.node.production.js | 13 +- .../package.json | 4 +- ...om-turbopack-server.browser.development.js | 18 +- ...dom-turbopack-server.browser.production.js | 13 +- ...r-dom-turbopack-server.edge.development.js | 18 +- ...er-dom-turbopack-server.edge.production.js | 13 +- ...r-dom-turbopack-server.node.development.js | 18 +- ...er-dom-turbopack-server.node.production.js | 13 +- .../react-server-dom-turbopack/package.json | 4 +- ...-dom-webpack-server.browser.development.js | 14 +- ...r-dom-webpack-server.browser.production.js | 13 +- ...ver-dom-webpack-server.edge.development.js | 14 +- ...rver-dom-webpack-server.edge.production.js | 13 +- ...ver-dom-webpack-server.node.development.js | 14 +- ...rver-dom-webpack-server.node.production.js | 13 +- ...bpack-server.node.unbundled.development.js | 14 +- ...ebpack-server.node.unbundled.production.js | 13 +- .../package.json | 4 +- ...-dom-webpack-server.browser.development.js | 14 +- ...r-dom-webpack-server.browser.production.js | 13 +- ...ver-dom-webpack-server.edge.development.js | 14 +- ...rver-dom-webpack-server.edge.production.js | 13 +- ...ver-dom-webpack-server.node.development.js | 14 +- ...rver-dom-webpack-server.node.production.js | 13 +- ...bpack-server.node.unbundled.development.js | 14 +- ...ebpack-server.node.unbundled.production.js | 13 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../compiled/react/cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- .../next/src/compiled/unistore/unistore.js | 2 +- 84 files changed, 4693 insertions(+), 3661 deletions(-) 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 5c0da199afab2e..b03b3a87ba4e6e 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 @@ -8695,33 +8695,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2300; - var JSCompiler_object_inline_stack_2299 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2306; + var JSCompiler_object_inline_stack_2305 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2297 = !1; + var JSCompiler_object_inline_message_2303 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2300 = didSuspend) || - (JSCompiler_object_inline_componentStack_2300 = + (JSCompiler_object_inline_componentStack_2306 = didSuspend) || + (JSCompiler_object_inline_componentStack_2306 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2300 && - ((JSCompiler_object_inline_message_2297 = !0), + JSCompiler_object_inline_componentStack_2306 && + ((JSCompiler_object_inline_message_2303 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2300 = + JSCompiler_object_inline_componentStack_2306 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2297 + JSCompiler_object_inline_message_2303 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2298 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2304 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2298)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2304)) { c: { - var instance = JSCompiler_object_inline_digest_2298; + var instance = JSCompiler_object_inline_digest_2304; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8762,19 +8762,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2298 + JSCompiler_object_inline_digest_2304 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2298 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2304 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2298 && - ((JSCompiler_object_inline_digest_2298 = - JSCompiler_object_inline_digest_2298.dehydrated), - null !== JSCompiler_object_inline_digest_2298) + null !== JSCompiler_object_inline_digest_2304 && + ((JSCompiler_object_inline_digest_2304 = + JSCompiler_object_inline_digest_2304.dehydrated), + null !== JSCompiler_object_inline_digest_2304) ) return ( - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2304.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8782,68 +8782,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2298 = - JSCompiler_object_inline_stack_2299.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2299.fallback; - if (JSCompiler_object_inline_message_2297) + JSCompiler_object_inline_digest_2304 = + JSCompiler_object_inline_stack_2305.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2305.fallback; + if (JSCompiler_object_inline_message_2303) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_stack_2305 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2298, + JSCompiler_object_inline_digest_2304, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2297 = workInProgress.child), - (JSCompiler_object_inline_message_2297.memoizedState = + (JSCompiler_object_inline_message_2303 = workInProgress.child), + (JSCompiler_object_inline_message_2303.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2297.childLanes = + (JSCompiler_object_inline_message_2303.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2306, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2305 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2299.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2305.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_stack_2305 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2298, + JSCompiler_object_inline_digest_2304, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2297 = workInProgress.child), - (JSCompiler_object_inline_message_2297.memoizedState = + (JSCompiler_object_inline_message_2303 = workInProgress.child), + (JSCompiler_object_inline_message_2303.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2297.childLanes = + (JSCompiler_object_inline_message_2303.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2306, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2305 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2298 + JSCompiler_object_inline_digest_2304 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2298 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2298) + ((JSCompiler_object_inline_digest_2304 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2304) ) { if (didSuspend) workInProgress.flags & 256 @@ -8860,94 +8860,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2297 = - JSCompiler_object_inline_stack_2299.fallback), - (JSCompiler_object_inline_digest_2298 = workInProgress.mode), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_message_2303 = + JSCompiler_object_inline_stack_2305.fallback), + (JSCompiler_object_inline_digest_2304 = workInProgress.mode), + (JSCompiler_object_inline_stack_2305 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2299.children + children: JSCompiler_object_inline_stack_2305.children }, - JSCompiler_object_inline_digest_2298 + JSCompiler_object_inline_digest_2304 )), - (JSCompiler_object_inline_message_2297 = + (JSCompiler_object_inline_message_2303 = createFiberFromFragment( - JSCompiler_object_inline_message_2297, - JSCompiler_object_inline_digest_2298, + JSCompiler_object_inline_message_2303, + JSCompiler_object_inline_digest_2304, renderLanes, null )), - (JSCompiler_object_inline_message_2297.flags |= 2), - (JSCompiler_object_inline_stack_2299.return = workInProgress), - (JSCompiler_object_inline_message_2297.return = workInProgress), - (JSCompiler_object_inline_stack_2299.sibling = - JSCompiler_object_inline_message_2297), - (workInProgress.child = JSCompiler_object_inline_stack_2299), + (JSCompiler_object_inline_message_2303.flags |= 2), + (JSCompiler_object_inline_stack_2305.return = workInProgress), + (JSCompiler_object_inline_message_2303.return = workInProgress), + (JSCompiler_object_inline_stack_2305.sibling = + JSCompiler_object_inline_message_2303), + (workInProgress.child = JSCompiler_object_inline_stack_2305), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2299 = workInProgress.child), - (JSCompiler_object_inline_stack_2299.memoizedState = + (JSCompiler_object_inline_stack_2305 = workInProgress.child), + (JSCompiler_object_inline_stack_2305.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2299.childLanes = + (JSCompiler_object_inline_stack_2305.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2306, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2297)); + (workInProgress = JSCompiler_object_inline_message_2303)); 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_2298.data === + JSCompiler_object_inline_digest_2304.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2300 = - JSCompiler_object_inline_digest_2298.nextSibling && - JSCompiler_object_inline_digest_2298.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2300) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2300.dgst; - var message = JSCompiler_object_inline_componentStack_2300.msg; - instance = JSCompiler_object_inline_componentStack_2300.stck; + JSCompiler_object_inline_componentStack_2306 = + JSCompiler_object_inline_digest_2304.nextSibling && + JSCompiler_object_inline_digest_2304.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2306) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2306.dgst; + var message = JSCompiler_object_inline_componentStack_2306.msg; + instance = JSCompiler_object_inline_componentStack_2306.stck; var componentStack = - JSCompiler_object_inline_componentStack_2300.cstck; + JSCompiler_object_inline_componentStack_2306.cstck; } - JSCompiler_object_inline_message_2297 = message; - JSCompiler_object_inline_digest_2298 = JSCompiler_temp; - JSCompiler_object_inline_stack_2299 = instance; - JSCompiler_object_inline_componentStack_2300 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2298 && - ((JSCompiler_object_inline_message_2297 = - JSCompiler_object_inline_message_2297 - ? Error(JSCompiler_object_inline_message_2297) + JSCompiler_object_inline_message_2303 = message; + JSCompiler_object_inline_digest_2304 = JSCompiler_temp; + JSCompiler_object_inline_stack_2305 = instance; + JSCompiler_object_inline_componentStack_2306 = componentStack; + "POSTPONE" !== JSCompiler_object_inline_digest_2304 && + ((JSCompiler_object_inline_message_2303 = + JSCompiler_object_inline_message_2303 + ? Error(JSCompiler_object_inline_message_2303) : 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_2297.stack = - JSCompiler_object_inline_stack_2299 || ""), - (JSCompiler_object_inline_message_2297.digest = - JSCompiler_object_inline_digest_2298), - (JSCompiler_object_inline_componentStack_2300 = - void 0 === JSCompiler_object_inline_componentStack_2300 + (JSCompiler_object_inline_message_2303.stack = + JSCompiler_object_inline_stack_2305 || ""), + (JSCompiler_object_inline_message_2303.digest = + JSCompiler_object_inline_digest_2304), + (JSCompiler_object_inline_componentStack_2306 = + void 0 === JSCompiler_object_inline_componentStack_2306 ? null - : JSCompiler_object_inline_componentStack_2300), - "string" === typeof JSCompiler_object_inline_componentStack_2300 && + : JSCompiler_object_inline_componentStack_2306), + "string" === typeof JSCompiler_object_inline_componentStack_2306 && CapturedStacks.set( - JSCompiler_object_inline_message_2297, - JSCompiler_object_inline_componentStack_2300 + JSCompiler_object_inline_message_2303, + JSCompiler_object_inline_componentStack_2306 ), queueHydrationError({ - value: JSCompiler_object_inline_message_2297, + value: JSCompiler_object_inline_message_2303, source: null, - stack: JSCompiler_object_inline_componentStack_2300 + stack: JSCompiler_object_inline_componentStack_2306 })); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8962,25 +8962,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2300 = + (JSCompiler_object_inline_componentStack_2306 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2300) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2306) ) { - JSCompiler_object_inline_componentStack_2300 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2300) { - JSCompiler_object_inline_stack_2299 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2299 & 42)) - JSCompiler_object_inline_stack_2299 = 1; + JSCompiler_object_inline_componentStack_2306 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2306) { + JSCompiler_object_inline_stack_2305 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2305 & 42)) + JSCompiler_object_inline_stack_2305 = 1; else - switch (JSCompiler_object_inline_stack_2299) { + switch (JSCompiler_object_inline_stack_2305) { case 2: - JSCompiler_object_inline_stack_2299 = 1; + JSCompiler_object_inline_stack_2305 = 1; break; case 8: - JSCompiler_object_inline_stack_2299 = 4; + JSCompiler_object_inline_stack_2305 = 4; break; case 32: - JSCompiler_object_inline_stack_2299 = 16; + JSCompiler_object_inline_stack_2305 = 16; break; case 128: case 256: @@ -9001,40 +9001,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2299 = 64; + JSCompiler_object_inline_stack_2305 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2299 = 134217728; + JSCompiler_object_inline_stack_2305 = 134217728; break; default: - JSCompiler_object_inline_stack_2299 = 0; + JSCompiler_object_inline_stack_2305 = 0; } - JSCompiler_object_inline_stack_2299 = + JSCompiler_object_inline_stack_2305 = 0 !== - (JSCompiler_object_inline_stack_2299 & - (JSCompiler_object_inline_componentStack_2300.suspendedLanes | + (JSCompiler_object_inline_stack_2305 & + (JSCompiler_object_inline_componentStack_2306.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2299; + : JSCompiler_object_inline_stack_2305; if ( - 0 !== JSCompiler_object_inline_stack_2299 && - JSCompiler_object_inline_stack_2299 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2305 && + JSCompiler_object_inline_stack_2305 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2299), + ((prevState.retryLane = JSCompiler_object_inline_stack_2305), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2305 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2306, current, - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2305 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2304.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9042,7 +9042,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2304.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9050,12 +9050,12 @@ null, current )), - (JSCompiler_object_inline_digest_2298._reactRetry = + (JSCompiler_object_inline_digest_2304._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2298.nextSibling + JSCompiler_object_inline_digest_2304.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9073,54 +9073,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2299.children + JSCompiler_object_inline_stack_2305.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2297) + if (JSCompiler_object_inline_message_2303) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2297 = - JSCompiler_object_inline_stack_2299.fallback), - (JSCompiler_object_inline_digest_2298 = workInProgress.mode), + (JSCompiler_object_inline_message_2303 = + JSCompiler_object_inline_stack_2305.fallback), + (JSCompiler_object_inline_digest_2304 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2299 = createWorkInProgress( + (JSCompiler_object_inline_stack_2305 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2299.children + children: JSCompiler_object_inline_stack_2305.children } )), - (JSCompiler_object_inline_stack_2299.subtreeFlags = + (JSCompiler_object_inline_stack_2305.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2297 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2303 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2297 + JSCompiler_object_inline_message_2303 )) - : ((JSCompiler_object_inline_message_2297 = createFiberFromFragment( - JSCompiler_object_inline_message_2297, - JSCompiler_object_inline_digest_2298, + : ((JSCompiler_object_inline_message_2303 = createFiberFromFragment( + JSCompiler_object_inline_message_2303, + JSCompiler_object_inline_digest_2304, renderLanes, null )), - (JSCompiler_object_inline_message_2297.flags |= 2)), - (JSCompiler_object_inline_message_2297.return = workInProgress), - (JSCompiler_object_inline_stack_2299.return = workInProgress), - (JSCompiler_object_inline_stack_2299.sibling = - JSCompiler_object_inline_message_2297), - (workInProgress.child = JSCompiler_object_inline_stack_2299), - (JSCompiler_object_inline_stack_2299 = - JSCompiler_object_inline_message_2297), - (JSCompiler_object_inline_message_2297 = workInProgress.child), - (JSCompiler_object_inline_digest_2298 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2298 - ? (JSCompiler_object_inline_digest_2298 = + (JSCompiler_object_inline_message_2303.flags |= 2)), + (JSCompiler_object_inline_message_2303.return = workInProgress), + (JSCompiler_object_inline_stack_2305.return = workInProgress), + (JSCompiler_object_inline_stack_2305.sibling = + JSCompiler_object_inline_message_2303), + (workInProgress.child = JSCompiler_object_inline_stack_2305), + (JSCompiler_object_inline_stack_2305 = + JSCompiler_object_inline_message_2303), + (JSCompiler_object_inline_message_2303 = workInProgress.child), + (JSCompiler_object_inline_digest_2304 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2304 + ? (JSCompiler_object_inline_digest_2304 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2298.cachePool), + JSCompiler_object_inline_digest_2304.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9128,38 +9128,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2298 = { + (JSCompiler_object_inline_digest_2304 = { baseLanes: - JSCompiler_object_inline_digest_2298.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2304.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2297.memoizedState = - JSCompiler_object_inline_digest_2298), - (JSCompiler_object_inline_message_2297.childLanes = + (JSCompiler_object_inline_message_2303.memoizedState = + JSCompiler_object_inline_digest_2304), + (JSCompiler_object_inline_message_2303.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2306, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2305 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2299.children + children: JSCompiler_object_inline_stack_2305.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2300 = + ((JSCompiler_object_inline_componentStack_2306 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2300 + null === JSCompiler_object_inline_componentStack_2306 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2300.push(current)); + : JSCompiler_object_inline_componentStack_2306.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -14814,7 +14814,7 @@ } function flushSyncWork$1() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkOnAllRoots(), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -15509,7 +15509,7 @@ ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); markCommitStopped(); return null; } @@ -15639,7 +15639,7 @@ injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(priority); executionContext = prevExecutionContext; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects ? priority === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ @@ -15967,26 +15967,41 @@ ((didScheduleMicrotask = !0), scheduleImmediateTask(processRootScheduleInMicrotask)); } - function flushSyncWorkOnAllRoots() { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -15998,33 +16013,29 @@ didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { for ( @@ -20439,7 +20450,7 @@ NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkOnAllRoots()); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -24604,11 +24615,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-eb3ad065-20240822" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-7771d3a7-20240827" !== 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-eb3ad065-20240822\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-7771d3a7-20240827\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24645,11 +24656,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-eb3ad065-20240822", + version: "19.0.0-experimental-7771d3a7-20240827", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-eb3ad065-20240822" + reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -24793,7 +24804,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-experimental-eb3ad065-20240822"; + exports.version = "19.0.0-experimental-7771d3a7-20240827"; "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 a497c2a383b5d8..142c6e1af25d88 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 @@ -1955,19 +1955,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$288; + var JSCompiler_inline_result$jscomp$290; if (canUseDOM) { - var isSupported$jscomp$inline_420 = "oninput" in document; - if (!isSupported$jscomp$inline_420) { - var element$jscomp$inline_421 = document.createElement("div"); - element$jscomp$inline_421.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_420 = - "function" === typeof element$jscomp$inline_421.oninput; + var isSupported$jscomp$inline_425 = "oninput" in document; + if (!isSupported$jscomp$inline_425) { + var element$jscomp$inline_426 = document.createElement("div"); + element$jscomp$inline_426.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_425 = + "function" === typeof element$jscomp$inline_426.oninput; } - JSCompiler_inline_result$jscomp$288 = isSupported$jscomp$inline_420; - } else JSCompiler_inline_result$jscomp$288 = !1; + JSCompiler_inline_result$jscomp$290 = isSupported$jscomp$inline_425; + } else JSCompiler_inline_result$jscomp$290 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$288 && + JSCompiler_inline_result$jscomp$290 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -10589,7 +10589,9 @@ function performSyncWorkOnRoot(root, lanes) { return null; } function flushSyncWork$1() { - return 0 === (executionContext & 6) ? (flushSyncWorkOnAllRoots(), !1) : !0; + return 0 === (executionContext & 6) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) + : !0; } function resetWorkInProgressStack() { if (null !== workInProgress) { @@ -11110,7 +11112,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); return null; } function releaseRootPooledCache(root, remainingLanes) { @@ -11146,7 +11148,7 @@ function flushPassiveEffects() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, renderPriority); executionContext = prevExecutionContext; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); if ( injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot @@ -11311,22 +11313,42 @@ function ensureRootIsScheduled(root) { ((didScheduleMicrotask = !0), scheduleImmediateTask(processRootScheduleInMicrotask)); } -function flushSyncWorkOnAllRoots() { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$179 = firstScheduledRoot; null !== root$179; ) { - var workInProgressRootRenderLanes$181 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$181 = getNextLanes( - root$179, - root$179 === workInProgressRoot - ? workInProgressRootRenderLanes$181 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$181 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$179, workInProgressRootRenderLanes$181)); + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$179.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$179.suspendedLanes, + pingedLanes = root$179.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$179, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$179, + root$179 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$179, JSCompiler_inline_result)); root$179 = root$179.next; } } while (didPerformSomeWork); @@ -11335,30 +11357,29 @@ function flushSyncWorkOnAllRoots() { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { for ( @@ -11538,20 +11559,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1393 = 0; - i$jscomp$inline_1393 < simpleEventPluginEvents.length; - i$jscomp$inline_1393++ + var i$jscomp$inline_1388 = 0; + i$jscomp$inline_1388 < simpleEventPluginEvents.length; + i$jscomp$inline_1388++ ) { - var eventName$jscomp$inline_1394 = - simpleEventPluginEvents[i$jscomp$inline_1393], - domEventName$jscomp$inline_1395 = - eventName$jscomp$inline_1394.toLowerCase(), - capitalizedEvent$jscomp$inline_1396 = - eventName$jscomp$inline_1394[0].toUpperCase() + - eventName$jscomp$inline_1394.slice(1); + var eventName$jscomp$inline_1389 = + simpleEventPluginEvents[i$jscomp$inline_1388], + domEventName$jscomp$inline_1390 = + eventName$jscomp$inline_1389.toLowerCase(), + capitalizedEvent$jscomp$inline_1391 = + eventName$jscomp$inline_1389[0].toUpperCase() + + eventName$jscomp$inline_1389.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1395, - "on" + capitalizedEvent$jscomp$inline_1396 + domEventName$jscomp$inline_1390, + "on" + capitalizedEvent$jscomp$inline_1391 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -12734,34 +12755,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$192 = props[hasSrc]; - if (null != propValue$192) + var propValue$193 = props[hasSrc]; + if (null != propValue$193) switch (hasSrc) { case "name": - hasSrcSet = propValue$192; + hasSrcSet = propValue$193; break; case "type": - propValue = propValue$192; + propValue = propValue$193; break; case "checked": - checked = propValue$192; + checked = propValue$193; break; case "defaultChecked": - defaultChecked = propValue$192; + defaultChecked = propValue$193; break; case "value": - propKey = propValue$192; + propKey = propValue$193; break; case "defaultValue": - defaultValue = propValue$192; + defaultValue = propValue$193; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$192) + if (null != propValue$193) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$192, props, null); + setProp(domElement, tag, hasSrc, propValue$193, props, null); } } initInput( @@ -12898,14 +12919,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$192 in props) - props.hasOwnProperty(propValue$192) && - ((hasSrc = props[propValue$192]), + for (propValue$193 in props) + props.hasOwnProperty(propValue$193) && + ((hasSrc = props[propValue$193]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$192, + propValue$193, hasSrc, props, void 0 @@ -12953,14 +12974,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$209 in nextProps) { - var propKey = nextProps[propKey$209]; - lastProp = lastProps[propKey$209]; + for (var propKey$210 in nextProps) { + var propKey = nextProps[propKey$210]; + lastProp = lastProps[propKey$210]; if ( - nextProps.hasOwnProperty(propKey$209) && + nextProps.hasOwnProperty(propKey$210) && (null != propKey || null != lastProp) ) - switch (propKey$209) { + switch (propKey$210) { case "type": type = propKey; break; @@ -12989,7 +13010,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$209, + propKey$210, propKey, nextProps, lastProp @@ -13008,7 +13029,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$209 = null; + propKey = value = defaultValue = propKey$210 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13039,7 +13060,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$209 = type; + propKey$210 = type; break; case "defaultValue": defaultValue = type; @@ -13060,15 +13081,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$209 - ? updateOptions(domElement, !!lastProps, propKey$209, !1) + null != propKey$210 + ? updateOptions(domElement, !!lastProps, propKey$210, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$209 = null; + propKey = propKey$210 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13092,7 +13113,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$209 = name; + propKey$210 = name; break; case "defaultValue": propKey = name; @@ -13106,17 +13127,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$209, propKey); + updateTextarea(domElement, propKey$210, propKey); return; case "option": - for (var propKey$225 in lastProps) + for (var propKey$226 in lastProps) if ( - ((propKey$209 = lastProps[propKey$225]), - lastProps.hasOwnProperty(propKey$225) && - null != propKey$209 && - !nextProps.hasOwnProperty(propKey$225)) + ((propKey$210 = lastProps[propKey$226]), + lastProps.hasOwnProperty(propKey$226) && + null != propKey$210 && + !nextProps.hasOwnProperty(propKey$226)) ) - switch (propKey$225) { + switch (propKey$226) { case "selected": domElement.selected = !1; break; @@ -13124,33 +13145,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$225, + propKey$226, null, nextProps, - propKey$209 + propKey$210 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$209 = nextProps[lastDefaultValue]), + ((propKey$210 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$209 !== propKey && - (null != propKey$209 || null != propKey)) + propKey$210 !== propKey && + (null != propKey$210 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$209 && - "function" !== typeof propKey$209 && - "symbol" !== typeof propKey$209; + propKey$210 && + "function" !== typeof propKey$210 && + "symbol" !== typeof propKey$210; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$209, + propKey$210, nextProps, propKey ); @@ -13171,24 +13192,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$230 in lastProps) - (propKey$209 = lastProps[propKey$230]), - lastProps.hasOwnProperty(propKey$230) && - null != propKey$209 && - !nextProps.hasOwnProperty(propKey$230) && - setProp(domElement, tag, propKey$230, null, nextProps, propKey$209); + for (var propKey$231 in lastProps) + (propKey$210 = lastProps[propKey$231]), + lastProps.hasOwnProperty(propKey$231) && + null != propKey$210 && + !nextProps.hasOwnProperty(propKey$231) && + setProp(domElement, tag, propKey$231, null, nextProps, propKey$210); for (checked in nextProps) if ( - ((propKey$209 = nextProps[checked]), + ((propKey$210 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$209 !== propKey && - (null != propKey$209 || null != propKey)) + propKey$210 !== propKey && + (null != propKey$210 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$209) + if (null != propKey$210) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13196,7 +13217,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$209, + propKey$210, nextProps, propKey ); @@ -13204,49 +13225,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$235 in lastProps) - (propKey$209 = lastProps[propKey$235]), - lastProps.hasOwnProperty(propKey$235) && - void 0 !== propKey$209 && - !nextProps.hasOwnProperty(propKey$235) && + for (var propKey$236 in lastProps) + (propKey$210 = lastProps[propKey$236]), + lastProps.hasOwnProperty(propKey$236) && + void 0 !== propKey$210 && + !nextProps.hasOwnProperty(propKey$236) && setPropOnCustomElement( domElement, tag, - propKey$235, + propKey$236, void 0, nextProps, - propKey$209 + propKey$210 ); for (defaultChecked in nextProps) - (propKey$209 = nextProps[defaultChecked]), + (propKey$210 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$209 === propKey || - (void 0 === propKey$209 && void 0 === propKey) || + propKey$210 === propKey || + (void 0 === propKey$210 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$209, + propKey$210, nextProps, propKey ); return; } } - for (var propKey$240 in lastProps) - (propKey$209 = lastProps[propKey$240]), - lastProps.hasOwnProperty(propKey$240) && - null != propKey$209 && - !nextProps.hasOwnProperty(propKey$240) && - setProp(domElement, tag, propKey$240, null, nextProps, propKey$209); + for (var propKey$241 in lastProps) + (propKey$210 = lastProps[propKey$241]), + lastProps.hasOwnProperty(propKey$241) && + null != propKey$210 && + !nextProps.hasOwnProperty(propKey$241) && + setProp(domElement, tag, propKey$241, null, nextProps, propKey$210); for (lastProp in nextProps) - (propKey$209 = nextProps[lastProp]), + (propKey$210 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$209 === propKey || - (null == propKey$209 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$209, nextProps, propKey); + propKey$210 === propKey || + (null == propKey$210 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$210, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -13791,26 +13812,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$248 = getResourcesFromRoot( + var styles$249 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$249 = styles$248.get(type); - resource$249 || + resource$250 = styles$249.get(type); + resource$250 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$249 = { + (resource$250 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$248.set(type, resource$249), - (styles$248 = JSCompiler_inline_result.querySelector( + styles$249.set(type, resource$250), + (styles$249 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$248._p && - ((resource$249.instance = styles$248), - (resource$249.state.loading = 5)), + !styles$249._p && + ((resource$250.instance = styles$249), + (resource$250.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -13823,16 +13844,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$248 || + styles$249 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$249.state + resource$250.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$249; + return resource$250; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -13929,37 +13950,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$254 = hoistableRoot.querySelector( + var instance$255 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$254) + if (instance$255) return ( (resource.state.loading |= 4), - (resource.instance = instance$254), - markNodeAsHoistable(instance$254), - instance$254 + (resource.instance = instance$255), + markNodeAsHoistable(instance$255), + instance$255 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$254 = ( + instance$255 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$254); - var linkInstance = instance$254; + markNodeAsHoistable(instance$255); + var linkInstance = instance$255; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$254, "link", instance); + setInitialProperties(instance$255, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$254, props.precedence, hoistableRoot); - return (resource.instance = instance$254); + insertStylesheet(instance$255, props.precedence, hoistableRoot); + return (resource.instance = instance$255); case "script": - instance$254 = getScriptKey(props.src); + instance$255 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$254) + getScriptSelectorFromKey(instance$255) )) ) return ( @@ -13968,7 +13989,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$254))) + if ((styleProps = preloadPropsMap.get(instance$255))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -14477,7 +14498,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), - flushSyncWorkOnAllRoots()); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -14991,16 +15012,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1640 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1635 = React.version; if ( - "19.0.0-experimental-eb3ad065-20240822" !== - isomorphicReactPackageVersion$jscomp$inline_1640 + "19.0.0-experimental-7771d3a7-20240827" !== + isomorphicReactPackageVersion$jscomp$inline_1635 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1640, - "19.0.0-experimental-eb3ad065-20240822" + isomorphicReactPackageVersion$jscomp$inline_1635, + "19.0.0-experimental-7771d3a7-20240827" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15020,25 +15041,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2039 = { +var internals$jscomp$inline_2043 = { bundleType: 0, - version: "19.0.0-experimental-eb3ad065-20240822", + version: "19.0.0-experimental-7771d3a7-20240827", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-eb3ad065-20240822" + reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2040 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2044 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2040.isDisabled && - hook$jscomp$inline_2040.supportsFiber + !hook$jscomp$inline_2044.isDisabled && + hook$jscomp$inline_2044.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2040.inject( - internals$jscomp$inline_2039 + (rendererID = hook$jscomp$inline_2044.inject( + internals$jscomp$inline_2043 )), - (injectedHook = hook$jscomp$inline_2040); + (injectedHook = hook$jscomp$inline_2044); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15130,4 +15151,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-eb3ad065-20240822"; +exports.version = "19.0.0-experimental-7771d3a7-20240827"; 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 4b4f4fa19d58d3..cd3abc0dd91cc0 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 @@ -8703,33 +8703,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2305; - var JSCompiler_object_inline_stack_2304 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2311; + var JSCompiler_object_inline_stack_2310 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2302 = !1; + var JSCompiler_object_inline_message_2308 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2305 = didSuspend) || - (JSCompiler_object_inline_componentStack_2305 = + (JSCompiler_object_inline_componentStack_2311 = didSuspend) || + (JSCompiler_object_inline_componentStack_2311 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2305 && - ((JSCompiler_object_inline_message_2302 = !0), + JSCompiler_object_inline_componentStack_2311 && + ((JSCompiler_object_inline_message_2308 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2305 = + JSCompiler_object_inline_componentStack_2311 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2302 + JSCompiler_object_inline_message_2308 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2303 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2309 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2303)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2309)) { c: { - var instance = JSCompiler_object_inline_digest_2303; + var instance = JSCompiler_object_inline_digest_2309; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8770,19 +8770,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2303 + JSCompiler_object_inline_digest_2309 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2303 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2309 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2303 && - ((JSCompiler_object_inline_digest_2303 = - JSCompiler_object_inline_digest_2303.dehydrated), - null !== JSCompiler_object_inline_digest_2303) + null !== JSCompiler_object_inline_digest_2309 && + ((JSCompiler_object_inline_digest_2309 = + JSCompiler_object_inline_digest_2309.dehydrated), + null !== JSCompiler_object_inline_digest_2309) ) return ( - JSCompiler_object_inline_digest_2303.data === + JSCompiler_object_inline_digest_2309.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8790,68 +8790,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2303 = - JSCompiler_object_inline_stack_2304.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2304.fallback; - if (JSCompiler_object_inline_message_2302) + JSCompiler_object_inline_digest_2309 = + JSCompiler_object_inline_stack_2310.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2310.fallback; + if (JSCompiler_object_inline_message_2308) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2304 = + (JSCompiler_object_inline_stack_2310 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2303, + JSCompiler_object_inline_digest_2309, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2302 = workInProgress.child), - (JSCompiler_object_inline_message_2302.memoizedState = + (JSCompiler_object_inline_message_2308 = workInProgress.child), + (JSCompiler_object_inline_message_2308.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2302.childLanes = + (JSCompiler_object_inline_message_2308.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2305, + JSCompiler_object_inline_componentStack_2311, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2304 + JSCompiler_object_inline_stack_2310 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2304.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2310.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2304 = + (JSCompiler_object_inline_stack_2310 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2303, + JSCompiler_object_inline_digest_2309, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2302 = workInProgress.child), - (JSCompiler_object_inline_message_2302.memoizedState = + (JSCompiler_object_inline_message_2308 = workInProgress.child), + (JSCompiler_object_inline_message_2308.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2302.childLanes = + (JSCompiler_object_inline_message_2308.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2305, + JSCompiler_object_inline_componentStack_2311, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2304 + JSCompiler_object_inline_stack_2310 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2303 + JSCompiler_object_inline_digest_2309 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2303 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2303) + ((JSCompiler_object_inline_digest_2309 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2309) ) { if (didSuspend) workInProgress.flags & 256 @@ -8868,94 +8868,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2302 = - JSCompiler_object_inline_stack_2304.fallback), - (JSCompiler_object_inline_digest_2303 = workInProgress.mode), - (JSCompiler_object_inline_stack_2304 = + (JSCompiler_object_inline_message_2308 = + JSCompiler_object_inline_stack_2310.fallback), + (JSCompiler_object_inline_digest_2309 = workInProgress.mode), + (JSCompiler_object_inline_stack_2310 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2304.children + children: JSCompiler_object_inline_stack_2310.children }, - JSCompiler_object_inline_digest_2303 + JSCompiler_object_inline_digest_2309 )), - (JSCompiler_object_inline_message_2302 = + (JSCompiler_object_inline_message_2308 = createFiberFromFragment( - JSCompiler_object_inline_message_2302, - JSCompiler_object_inline_digest_2303, + JSCompiler_object_inline_message_2308, + JSCompiler_object_inline_digest_2309, renderLanes, null )), - (JSCompiler_object_inline_message_2302.flags |= 2), - (JSCompiler_object_inline_stack_2304.return = workInProgress), - (JSCompiler_object_inline_message_2302.return = workInProgress), - (JSCompiler_object_inline_stack_2304.sibling = - JSCompiler_object_inline_message_2302), - (workInProgress.child = JSCompiler_object_inline_stack_2304), + (JSCompiler_object_inline_message_2308.flags |= 2), + (JSCompiler_object_inline_stack_2310.return = workInProgress), + (JSCompiler_object_inline_message_2308.return = workInProgress), + (JSCompiler_object_inline_stack_2310.sibling = + JSCompiler_object_inline_message_2308), + (workInProgress.child = JSCompiler_object_inline_stack_2310), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2304 = workInProgress.child), - (JSCompiler_object_inline_stack_2304.memoizedState = + (JSCompiler_object_inline_stack_2310 = workInProgress.child), + (JSCompiler_object_inline_stack_2310.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2304.childLanes = + (JSCompiler_object_inline_stack_2310.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2305, + JSCompiler_object_inline_componentStack_2311, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2302)); + (workInProgress = JSCompiler_object_inline_message_2308)); 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_2303.data === + JSCompiler_object_inline_digest_2309.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2305 = - JSCompiler_object_inline_digest_2303.nextSibling && - JSCompiler_object_inline_digest_2303.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2305) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2305.dgst; - var message = JSCompiler_object_inline_componentStack_2305.msg; - instance = JSCompiler_object_inline_componentStack_2305.stck; + JSCompiler_object_inline_componentStack_2311 = + JSCompiler_object_inline_digest_2309.nextSibling && + JSCompiler_object_inline_digest_2309.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2311) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2311.dgst; + var message = JSCompiler_object_inline_componentStack_2311.msg; + instance = JSCompiler_object_inline_componentStack_2311.stck; var componentStack = - JSCompiler_object_inline_componentStack_2305.cstck; + JSCompiler_object_inline_componentStack_2311.cstck; } - JSCompiler_object_inline_message_2302 = message; - JSCompiler_object_inline_digest_2303 = JSCompiler_temp; - JSCompiler_object_inline_stack_2304 = instance; - JSCompiler_object_inline_componentStack_2305 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2303 && - ((JSCompiler_object_inline_message_2302 = - JSCompiler_object_inline_message_2302 - ? Error(JSCompiler_object_inline_message_2302) + 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; + "POSTPONE" !== JSCompiler_object_inline_digest_2309 && + ((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_2302.stack = - JSCompiler_object_inline_stack_2304 || ""), - (JSCompiler_object_inline_message_2302.digest = - JSCompiler_object_inline_digest_2303), - (JSCompiler_object_inline_componentStack_2305 = - void 0 === JSCompiler_object_inline_componentStack_2305 + (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_componentStack_2311 = + void 0 === JSCompiler_object_inline_componentStack_2311 ? null - : JSCompiler_object_inline_componentStack_2305), - "string" === typeof JSCompiler_object_inline_componentStack_2305 && + : JSCompiler_object_inline_componentStack_2311), + "string" === typeof JSCompiler_object_inline_componentStack_2311 && CapturedStacks.set( - JSCompiler_object_inline_message_2302, - JSCompiler_object_inline_componentStack_2305 + JSCompiler_object_inline_message_2308, + JSCompiler_object_inline_componentStack_2311 ), queueHydrationError({ - value: JSCompiler_object_inline_message_2302, + value: JSCompiler_object_inline_message_2308, source: null, - stack: JSCompiler_object_inline_componentStack_2305 + stack: JSCompiler_object_inline_componentStack_2311 })); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8970,25 +8970,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2305 = + (JSCompiler_object_inline_componentStack_2311 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2305) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2311) ) { - JSCompiler_object_inline_componentStack_2305 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2305) { - JSCompiler_object_inline_stack_2304 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2304 & 42)) - JSCompiler_object_inline_stack_2304 = 1; + JSCompiler_object_inline_componentStack_2311 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2311) { + 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_2304) { + switch (JSCompiler_object_inline_stack_2310) { case 2: - JSCompiler_object_inline_stack_2304 = 1; + JSCompiler_object_inline_stack_2310 = 1; break; case 8: - JSCompiler_object_inline_stack_2304 = 4; + JSCompiler_object_inline_stack_2310 = 4; break; case 32: - JSCompiler_object_inline_stack_2304 = 16; + JSCompiler_object_inline_stack_2310 = 16; break; case 128: case 256: @@ -9009,40 +9009,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2304 = 64; + JSCompiler_object_inline_stack_2310 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2304 = 134217728; + JSCompiler_object_inline_stack_2310 = 134217728; break; default: - JSCompiler_object_inline_stack_2304 = 0; + JSCompiler_object_inline_stack_2310 = 0; } - JSCompiler_object_inline_stack_2304 = + JSCompiler_object_inline_stack_2310 = 0 !== - (JSCompiler_object_inline_stack_2304 & - (JSCompiler_object_inline_componentStack_2305.suspendedLanes | + (JSCompiler_object_inline_stack_2310 & + (JSCompiler_object_inline_componentStack_2311.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2304; + : JSCompiler_object_inline_stack_2310; if ( - 0 !== JSCompiler_object_inline_stack_2304 && - JSCompiler_object_inline_stack_2304 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2310 && + JSCompiler_object_inline_stack_2310 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2304), + ((prevState.retryLane = JSCompiler_object_inline_stack_2310), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2304 + JSCompiler_object_inline_stack_2310 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2305, + JSCompiler_object_inline_componentStack_2311, current, - JSCompiler_object_inline_stack_2304 + JSCompiler_object_inline_stack_2310 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2303.data === + JSCompiler_object_inline_digest_2309.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9050,7 +9050,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2303.data === + JSCompiler_object_inline_digest_2309.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9058,12 +9058,12 @@ null, current )), - (JSCompiler_object_inline_digest_2303._reactRetry = + (JSCompiler_object_inline_digest_2309._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2303.nextSibling + JSCompiler_object_inline_digest_2309.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9081,54 +9081,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2304.children + JSCompiler_object_inline_stack_2310.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2302) + if (JSCompiler_object_inline_message_2308) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2302 = - JSCompiler_object_inline_stack_2304.fallback), - (JSCompiler_object_inline_digest_2303 = workInProgress.mode), + (JSCompiler_object_inline_message_2308 = + JSCompiler_object_inline_stack_2310.fallback), + (JSCompiler_object_inline_digest_2309 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2304 = createWorkInProgress( + (JSCompiler_object_inline_stack_2310 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2304.children + children: JSCompiler_object_inline_stack_2310.children } )), - (JSCompiler_object_inline_stack_2304.subtreeFlags = + (JSCompiler_object_inline_stack_2310.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2302 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2308 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2302 + JSCompiler_object_inline_message_2308 )) - : ((JSCompiler_object_inline_message_2302 = createFiberFromFragment( - JSCompiler_object_inline_message_2302, - JSCompiler_object_inline_digest_2303, + : ((JSCompiler_object_inline_message_2308 = createFiberFromFragment( + JSCompiler_object_inline_message_2308, + JSCompiler_object_inline_digest_2309, renderLanes, null )), - (JSCompiler_object_inline_message_2302.flags |= 2)), - (JSCompiler_object_inline_message_2302.return = workInProgress), - (JSCompiler_object_inline_stack_2304.return = workInProgress), - (JSCompiler_object_inline_stack_2304.sibling = - JSCompiler_object_inline_message_2302), - (workInProgress.child = JSCompiler_object_inline_stack_2304), - (JSCompiler_object_inline_stack_2304 = - JSCompiler_object_inline_message_2302), - (JSCompiler_object_inline_message_2302 = workInProgress.child), - (JSCompiler_object_inline_digest_2303 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2303 - ? (JSCompiler_object_inline_digest_2303 = + (JSCompiler_object_inline_message_2308.flags |= 2)), + (JSCompiler_object_inline_message_2308.return = workInProgress), + (JSCompiler_object_inline_stack_2310.return = workInProgress), + (JSCompiler_object_inline_stack_2310.sibling = + JSCompiler_object_inline_message_2308), + (workInProgress.child = JSCompiler_object_inline_stack_2310), + (JSCompiler_object_inline_stack_2310 = + JSCompiler_object_inline_message_2308), + (JSCompiler_object_inline_message_2308 = workInProgress.child), + (JSCompiler_object_inline_digest_2309 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2309 + ? (JSCompiler_object_inline_digest_2309 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2303.cachePool), + JSCompiler_object_inline_digest_2309.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9136,38 +9136,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2303 = { + (JSCompiler_object_inline_digest_2309 = { baseLanes: - JSCompiler_object_inline_digest_2303.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2309.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2302.memoizedState = - JSCompiler_object_inline_digest_2303), - (JSCompiler_object_inline_message_2302.childLanes = + (JSCompiler_object_inline_message_2308.memoizedState = + JSCompiler_object_inline_digest_2309), + (JSCompiler_object_inline_message_2308.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2305, + JSCompiler_object_inline_componentStack_2311, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2304 + JSCompiler_object_inline_stack_2310 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2304.children + children: JSCompiler_object_inline_stack_2310.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2305 = + ((JSCompiler_object_inline_componentStack_2311 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2305 + null === JSCompiler_object_inline_componentStack_2311 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2305.push(current)); + : JSCompiler_object_inline_componentStack_2311.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -14826,7 +14826,7 @@ } function flushSyncWork$1() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkOnAllRoots(), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -15521,7 +15521,7 @@ ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); markCommitStopped(); return null; } @@ -15651,7 +15651,7 @@ injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(priority); executionContext = prevExecutionContext; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects ? priority === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ @@ -15979,26 +15979,41 @@ ((didScheduleMicrotask = !0), scheduleImmediateTask(processRootScheduleInMicrotask)); } - function flushSyncWorkOnAllRoots() { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -16010,33 +16025,29 @@ didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { for ( @@ -20468,7 +20479,7 @@ NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkOnAllRoots()); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -24661,11 +24672,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-eb3ad065-20240822" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-7771d3a7-20240827" !== 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-eb3ad065-20240822\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-7771d3a7-20240827\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24702,11 +24713,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-eb3ad065-20240822", + version: "19.0.0-experimental-7771d3a7-20240827", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-eb3ad065-20240822" + reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25180,7 +25191,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-eb3ad065-20240822"; + exports.version = "19.0.0-experimental-7771d3a7-20240827"; "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 76cc66bc54ca78..c224cf0d67b03f 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 @@ -2066,19 +2066,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$309; + var JSCompiler_inline_result$jscomp$311; if (canUseDOM) { - var isSupported$jscomp$inline_442 = "oninput" in document; - if (!isSupported$jscomp$inline_442) { - var element$jscomp$inline_443 = document.createElement("div"); - element$jscomp$inline_443.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_442 = - "function" === typeof element$jscomp$inline_443.oninput; + var isSupported$jscomp$inline_447 = "oninput" in document; + if (!isSupported$jscomp$inline_447) { + var element$jscomp$inline_448 = document.createElement("div"); + element$jscomp$inline_448.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_447 = + "function" === typeof element$jscomp$inline_448.oninput; } - JSCompiler_inline_result$jscomp$309 = isSupported$jscomp$inline_442; - } else JSCompiler_inline_result$jscomp$309 = !1; + JSCompiler_inline_result$jscomp$311 = isSupported$jscomp$inline_447; + } else JSCompiler_inline_result$jscomp$311 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$309 && + JSCompiler_inline_result$jscomp$311 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -11113,7 +11113,9 @@ function performSyncWorkOnRoot(root, lanes) { return null; } function flushSyncWork$1() { - return 0 === (executionContext & 6) ? (flushSyncWorkOnAllRoots(), !1) : !0; + return 0 === (executionContext & 6) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) + : !0; } function resetWorkInProgressStack() { if (null !== workInProgress) { @@ -11723,7 +11725,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); markCommitStopped(); return null; } @@ -11811,7 +11813,7 @@ function flushPassiveEffects() { typeof injectedProfilingHooks.markPassiveEffectsStopped && injectedProfilingHooks.markPassiveEffectsStopped(); executionContext = prevExecutionContext; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(0, !1); if ( injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot @@ -11995,22 +11997,42 @@ function ensureRootIsScheduled(root) { ((didScheduleMicrotask = !0), scheduleImmediateTask(processRootScheduleInMicrotask)); } -function flushSyncWorkOnAllRoots() { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$199 = firstScheduledRoot; null !== root$199; ) { - var workInProgressRootRenderLanes$201 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$201 = getNextLanes( - root$199, - root$199 === workInProgressRoot - ? workInProgressRootRenderLanes$201 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$201 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$199, workInProgressRootRenderLanes$201)); + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$199.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$199.suspendedLanes, + pingedLanes = root$199.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$199, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$199, + root$199 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$199, JSCompiler_inline_result)); root$199 = root$199.next; } } while (didPerformSomeWork); @@ -12019,30 +12041,29 @@ function flushSyncWorkOnAllRoots() { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkOnAllRoots(); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { for ( @@ -12222,20 +12243,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1480 = 0; - i$jscomp$inline_1480 < simpleEventPluginEvents.length; - i$jscomp$inline_1480++ + var i$jscomp$inline_1475 = 0; + i$jscomp$inline_1475 < simpleEventPluginEvents.length; + i$jscomp$inline_1475++ ) { - var eventName$jscomp$inline_1481 = - simpleEventPluginEvents[i$jscomp$inline_1480], - domEventName$jscomp$inline_1482 = - eventName$jscomp$inline_1481.toLowerCase(), - capitalizedEvent$jscomp$inline_1483 = - eventName$jscomp$inline_1481[0].toUpperCase() + - eventName$jscomp$inline_1481.slice(1); + var eventName$jscomp$inline_1476 = + simpleEventPluginEvents[i$jscomp$inline_1475], + domEventName$jscomp$inline_1477 = + eventName$jscomp$inline_1476.toLowerCase(), + capitalizedEvent$jscomp$inline_1478 = + eventName$jscomp$inline_1476[0].toUpperCase() + + eventName$jscomp$inline_1476.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1482, - "on" + capitalizedEvent$jscomp$inline_1483 + domEventName$jscomp$inline_1477, + "on" + capitalizedEvent$jscomp$inline_1478 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13418,34 +13439,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$212 = props[hasSrc]; - if (null != propValue$212) + var propValue$213 = props[hasSrc]; + if (null != propValue$213) switch (hasSrc) { case "name": - hasSrcSet = propValue$212; + hasSrcSet = propValue$213; break; case "type": - propValue = propValue$212; + propValue = propValue$213; break; case "checked": - checked = propValue$212; + checked = propValue$213; break; case "defaultChecked": - defaultChecked = propValue$212; + defaultChecked = propValue$213; break; case "value": - propKey = propValue$212; + propKey = propValue$213; break; case "defaultValue": - defaultValue = propValue$212; + defaultValue = propValue$213; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$212) + if (null != propValue$213) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$212, props, null); + setProp(domElement, tag, hasSrc, propValue$213, props, null); } } initInput( @@ -13582,14 +13603,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$212 in props) - props.hasOwnProperty(propValue$212) && - ((hasSrc = props[propValue$212]), + for (propValue$213 in props) + props.hasOwnProperty(propValue$213) && + ((hasSrc = props[propValue$213]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$212, + propValue$213, hasSrc, props, void 0 @@ -13637,14 +13658,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$229 in nextProps) { - var propKey = nextProps[propKey$229]; - lastProp = lastProps[propKey$229]; + for (var propKey$230 in nextProps) { + var propKey = nextProps[propKey$230]; + lastProp = lastProps[propKey$230]; if ( - nextProps.hasOwnProperty(propKey$229) && + nextProps.hasOwnProperty(propKey$230) && (null != propKey || null != lastProp) ) - switch (propKey$229) { + switch (propKey$230) { case "type": type = propKey; break; @@ -13673,7 +13694,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$229, + propKey$230, propKey, nextProps, lastProp @@ -13692,7 +13713,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$229 = null; + propKey = value = defaultValue = propKey$230 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13723,7 +13744,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$229 = type; + propKey$230 = type; break; case "defaultValue": defaultValue = type; @@ -13744,15 +13765,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$229 - ? updateOptions(domElement, !!lastProps, propKey$229, !1) + null != propKey$230 + ? updateOptions(domElement, !!lastProps, propKey$230, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$229 = null; + propKey = propKey$230 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13776,7 +13797,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$229 = name; + propKey$230 = name; break; case "defaultValue": propKey = name; @@ -13790,17 +13811,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$229, propKey); + updateTextarea(domElement, propKey$230, propKey); return; case "option": - for (var propKey$245 in lastProps) + for (var propKey$246 in lastProps) if ( - ((propKey$229 = lastProps[propKey$245]), - lastProps.hasOwnProperty(propKey$245) && - null != propKey$229 && - !nextProps.hasOwnProperty(propKey$245)) + ((propKey$230 = lastProps[propKey$246]), + lastProps.hasOwnProperty(propKey$246) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$246)) ) - switch (propKey$245) { + switch (propKey$246) { case "selected": domElement.selected = !1; break; @@ -13808,33 +13829,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$245, + propKey$246, null, nextProps, - propKey$229 + propKey$230 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$229 = nextProps[lastDefaultValue]), + ((propKey$230 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$229 !== propKey && - (null != propKey$229 || null != propKey)) + propKey$230 !== propKey && + (null != propKey$230 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$229 && - "function" !== typeof propKey$229 && - "symbol" !== typeof propKey$229; + propKey$230 && + "function" !== typeof propKey$230 && + "symbol" !== typeof propKey$230; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$229, + propKey$230, nextProps, propKey ); @@ -13855,24 +13876,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$250 in lastProps) - (propKey$229 = lastProps[propKey$250]), - lastProps.hasOwnProperty(propKey$250) && - null != propKey$229 && - !nextProps.hasOwnProperty(propKey$250) && - setProp(domElement, tag, propKey$250, null, nextProps, propKey$229); + for (var propKey$251 in lastProps) + (propKey$230 = lastProps[propKey$251]), + lastProps.hasOwnProperty(propKey$251) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$251) && + setProp(domElement, tag, propKey$251, null, nextProps, propKey$230); for (checked in nextProps) if ( - ((propKey$229 = nextProps[checked]), + ((propKey$230 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$229 !== propKey && - (null != propKey$229 || null != propKey)) + propKey$230 !== propKey && + (null != propKey$230 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$229) + if (null != propKey$230) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13880,7 +13901,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$229, + propKey$230, nextProps, propKey ); @@ -13888,49 +13909,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$255 in lastProps) - (propKey$229 = lastProps[propKey$255]), - lastProps.hasOwnProperty(propKey$255) && - void 0 !== propKey$229 && - !nextProps.hasOwnProperty(propKey$255) && + for (var propKey$256 in lastProps) + (propKey$230 = lastProps[propKey$256]), + lastProps.hasOwnProperty(propKey$256) && + void 0 !== propKey$230 && + !nextProps.hasOwnProperty(propKey$256) && setPropOnCustomElement( domElement, tag, - propKey$255, + propKey$256, void 0, nextProps, - propKey$229 + propKey$230 ); for (defaultChecked in nextProps) - (propKey$229 = nextProps[defaultChecked]), + (propKey$230 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$229 === propKey || - (void 0 === propKey$229 && void 0 === propKey) || + propKey$230 === propKey || + (void 0 === propKey$230 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$229, + propKey$230, nextProps, propKey ); return; } } - for (var propKey$260 in lastProps) - (propKey$229 = lastProps[propKey$260]), - lastProps.hasOwnProperty(propKey$260) && - null != propKey$229 && - !nextProps.hasOwnProperty(propKey$260) && - setProp(domElement, tag, propKey$260, null, nextProps, propKey$229); + for (var propKey$261 in lastProps) + (propKey$230 = lastProps[propKey$261]), + lastProps.hasOwnProperty(propKey$261) && + null != propKey$230 && + !nextProps.hasOwnProperty(propKey$261) && + setProp(domElement, tag, propKey$261, null, nextProps, propKey$230); for (lastProp in nextProps) - (propKey$229 = nextProps[lastProp]), + (propKey$230 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$229 === propKey || - (null == propKey$229 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$229, nextProps, propKey); + propKey$230 === propKey || + (null == propKey$230 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$230, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14475,26 +14496,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$268 = getResourcesFromRoot( + var styles$269 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$269 = styles$268.get(type); - resource$269 || + resource$270 = styles$269.get(type); + resource$270 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$269 = { + (resource$270 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$268.set(type, resource$269), - (styles$268 = JSCompiler_inline_result.querySelector( + styles$269.set(type, resource$270), + (styles$269 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$268._p && - ((resource$269.instance = styles$268), - (resource$269.state.loading = 5)), + !styles$269._p && + ((resource$270.instance = styles$269), + (resource$270.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14507,16 +14528,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$268 || + styles$269 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$269.state + resource$270.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$269; + return resource$270; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14613,37 +14634,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$274 = hoistableRoot.querySelector( + var instance$275 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$274) + if (instance$275) return ( (resource.state.loading |= 4), - (resource.instance = instance$274), - markNodeAsHoistable(instance$274), - instance$274 + (resource.instance = instance$275), + markNodeAsHoistable(instance$275), + instance$275 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$274 = ( + instance$275 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$274); - var linkInstance = instance$274; + markNodeAsHoistable(instance$275); + var linkInstance = instance$275; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$274, "link", instance); + setInitialProperties(instance$275, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$274, props.precedence, hoistableRoot); - return (resource.instance = instance$274); + insertStylesheet(instance$275, props.precedence, hoistableRoot); + return (resource.instance = instance$275); case "script": - instance$274 = getScriptKey(props.src); + instance$275 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$274) + getScriptSelectorFromKey(instance$275) )) ) return ( @@ -14652,7 +14673,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$274))) + if ((styleProps = preloadPropsMap.get(instance$275))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15180,7 +15201,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), - flushSyncWorkOnAllRoots()); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -15694,16 +15715,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1729 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1724 = React.version; if ( - "19.0.0-experimental-eb3ad065-20240822" !== - isomorphicReactPackageVersion$jscomp$inline_1729 + "19.0.0-experimental-7771d3a7-20240827" !== + isomorphicReactPackageVersion$jscomp$inline_1724 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1729, - "19.0.0-experimental-eb3ad065-20240822" + isomorphicReactPackageVersion$jscomp$inline_1724, + "19.0.0-experimental-7771d3a7-20240827" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15723,18 +15744,18 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1736 = { +var internals$jscomp$inline_1731 = { bundleType: 0, - version: "19.0.0-experimental-eb3ad065-20240822", + version: "19.0.0-experimental-7771d3a7-20240827", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-eb3ad065-20240822", + reconcilerVersion: "19.0.0-experimental-7771d3a7-20240827", getLaneLabelMap: function () { for ( - var map = new Map(), lane = 1, index$291 = 0; - 31 > index$291; - index$291++ + var map = new Map(), lane = 1, index$292 = 0; + 31 > index$292; + index$292++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -15747,16 +15768,16 @@ var internals$jscomp$inline_1736 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2130 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2134 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2130.isDisabled && - hook$jscomp$inline_2130.supportsFiber + !hook$jscomp$inline_2134.isDisabled && + hook$jscomp$inline_2134.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2130.inject( - internals$jscomp$inline_1736 + (rendererID = hook$jscomp$inline_2134.inject( + internals$jscomp$inline_1731 )), - (injectedHook = hook$jscomp$inline_2130); + (injectedHook = hook$jscomp$inline_2134); } catch (err) {} } function noop() {} @@ -16009,7 +16030,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-eb3ad065-20240822"; +exports.version = "19.0.0-experimental-7771d3a7-20240827"; "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 97c197c647dfbb..bc0055deab62d0 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 @@ -6300,6 +6300,57 @@ void 0 !== boundary && ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null)))); } + function spawnNewSuspendedReplayTask(request, task, thenableState) { + return createReplayTask( + request, + thenableState, + task.replay, + task.node, + task.childIndex, + task.blockedBoundary, + task.hoistableState, + task.abortSet, + task.keyPath, + task.formatContext, + task.context, + task.treeContext, + task.componentStack, + task.isFallback, + emptyContextObject, + task.debugTask + ); + } + function spawnNewSuspendedRenderTask(request, task, thenableState) { + var segment = task.blockedSegment, + newSegment = createPendingSegment( + request, + segment.chunks.length, + null, + task.formatContext, + segment.lastPushedText, + !0 + ); + segment.children.push(newSegment); + segment.lastPushedText = !1; + return createRenderTask( + request, + thenableState, + task.node, + task.childIndex, + task.blockedBoundary, + newSegment, + task.hoistableState, + task.abortSet, + task.keyPath, + task.formatContext, + task.context, + task.treeContext, + task.componentStack, + task.isFallback, + emptyContextObject, + task.debugTask + ); + } function renderNode(request, task, node, childIndex) { var previousFormatContext = task.formatContext, previousContext = task.context, @@ -6318,39 +6369,39 @@ thrownValue === SuspenseException ? getSuspendedThenable() : thrownValue), - "object" === typeof childIndex && - null !== childIndex && - "function" === typeof childIndex.then) + "object" === typeof childIndex && null !== childIndex) ) { - node = childIndex; - childIndex = getThenableStateAfterSuspending(); - request = createReplayTask( - request, - childIndex, - task.replay, - task.node, - task.childIndex, - task.blockedBoundary, - task.hoistableState, - task.abortSet, - task.keyPath, - task.formatContext, - task.context, - task.treeContext, - task.componentStack, - task.isFallback, - emptyContextObject, - task.debugTask - ).ping; - node.then(request, request); - task.formatContext = previousFormatContext; - task.context = previousContext; - task.keyPath = previousKeyPath; - task.treeContext = previousTreeContext; - task.componentStack = previousComponentStack; - task.debugTask = previousDebugTask; - switchContext(previousContext); - return; + if ("function" === typeof childIndex.then) { + node = childIndex; + childIndex = getThenableStateAfterSuspending(); + request = spawnNewSuspendedReplayTask( + request, + task, + childIndex + ).ping; + node.then(request, request); + task.formatContext = previousFormatContext; + task.context = previousContext; + task.keyPath = previousKeyPath; + task.treeContext = previousTreeContext; + task.componentStack = previousComponentStack; + task.debugTask = previousDebugTask; + switchContext(previousContext); + return; + } + if ("Maximum call stack size exceeded" === childIndex.message) { + node = getThenableStateAfterSuspending(); + node = spawnNewSuspendedReplayTask(request, task, node); + request.pingedTasks.push(node); + task.formatContext = previousFormatContext; + task.context = previousContext; + task.keyPath = previousKeyPath; + task.treeContext = previousTreeContext; + task.componentStack = previousComponentStack; + task.debugTask = previousDebugTask; + switchContext(previousContext); + return; + } } } else { @@ -6372,34 +6423,10 @@ if ("function" === typeof childIndex.then) { node = childIndex; childIndex = getThenableStateAfterSuspending(); - segment = task.blockedSegment; - childrenLength = createPendingSegment( + request = spawnNewSuspendedRenderTask( request, - segment.chunks.length, - null, - task.formatContext, - segment.lastPushedText, - !0 - ); - segment.children.push(childrenLength); - segment.lastPushedText = !1; - request = createRenderTask( - request, - childIndex, - task.node, - task.childIndex, - task.blockedBoundary, - childrenLength, - task.hoistableState, - task.abortSet, - task.keyPath, - task.formatContext, - task.context, - task.treeContext, - task.componentStack, - task.isFallback, - emptyContextObject, - task.debugTask + task, + childIndex ).ping; node.then(request, request); task.formatContext = previousFormatContext; @@ -6440,6 +6467,19 @@ switchContext(previousContext); return; } + if ("Maximum call stack size exceeded" === childIndex.message) { + node = getThenableStateAfterSuspending(); + node = spawnNewSuspendedRenderTask(request, task, node); + request.pingedTasks.push(node); + task.formatContext = previousFormatContext; + task.context = previousContext; + task.keyPath = previousKeyPath; + task.treeContext = previousTreeContext; + task.componentStack = previousComponentStack; + task.debugTask = previousDebugTask; + switchContext(previousContext); + return; + } } } } @@ -9251,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-eb3ad065-20240822"; + exports.version = "19.0.0-experimental-7771d3a7-20240827"; })(); 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 fc83754136d826..44846b45b834ad 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 @@ -2668,16 +2668,16 @@ function createRenderState(resumableState, generateStaticMarkup) { "\x3c/script>" ); bootstrapScriptContent = idPrefix + "P:"; - var JSCompiler_object_inline_segmentPrefix_1658 = idPrefix + "S:"; + var JSCompiler_object_inline_segmentPrefix_1647 = idPrefix + "S:"; idPrefix += "B:"; - var JSCompiler_object_inline_preconnects_1672 = new Set(), - JSCompiler_object_inline_fontPreloads_1673 = new Set(), - JSCompiler_object_inline_highImagePreloads_1674 = new Set(), - JSCompiler_object_inline_styles_1675 = new Map(), - JSCompiler_object_inline_bootstrapScripts_1676 = new Set(), - JSCompiler_object_inline_scripts_1677 = new Set(), - JSCompiler_object_inline_bulkPreloads_1678 = new Set(), - JSCompiler_object_inline_preloads_1679 = { + var JSCompiler_object_inline_preconnects_1661 = new Set(), + JSCompiler_object_inline_fontPreloads_1662 = new Set(), + JSCompiler_object_inline_highImagePreloads_1663 = new Set(), + JSCompiler_object_inline_styles_1664 = new Map(), + JSCompiler_object_inline_bootstrapScripts_1665 = new Set(), + JSCompiler_object_inline_scripts_1666 = new Set(), + JSCompiler_object_inline_bulkPreloads_1667 = new Set(), + JSCompiler_object_inline_preloads_1668 = { images: new Map(), stylesheets: new Map(), scripts: new Map(), @@ -2714,7 +2714,7 @@ function createRenderState(resumableState, generateStaticMarkup) { scriptConfig.moduleScriptResources[href] = null; scriptConfig = []; pushLinkImpl(scriptConfig, props); - JSCompiler_object_inline_bootstrapScripts_1676.add(scriptConfig); + JSCompiler_object_inline_bootstrapScripts_1665.add(scriptConfig); bootstrapChunks.push('