react-dom 19.1.0-canary-ef979d47-20241218 → 19.1.0-canary-9463d51e-20241219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5051,6 +5051,18 @@
5051
5051
  nextHydratableInstance = hydrationParentFiber = null;
5052
5052
  didSuspendOrErrorDEV = isHydrating = !1;
5053
5053
  }
5054
+ function upgradeHydrationErrorsToRecoverable() {
5055
+ var queuedErrors = hydrationErrors;
5056
+ null !== queuedErrors &&
5057
+ (null === workInProgressRootRecoverableErrors
5058
+ ? (workInProgressRootRecoverableErrors = queuedErrors)
5059
+ : workInProgressRootRecoverableErrors.push.apply(
5060
+ workInProgressRootRecoverableErrors,
5061
+ queuedErrors
5062
+ ),
5063
+ (hydrationErrors = null));
5064
+ return queuedErrors;
5065
+ }
5054
5066
  function queueHydrationError(error) {
5055
5067
  null === hydrationErrors
5056
5068
  ? (hydrationErrors = [error])
@@ -9218,32 +9230,32 @@
9218
9230
  return current;
9219
9231
  }
9220
9232
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
9221
- var JSCompiler_object_inline_digest_2313;
9222
- var JSCompiler_object_inline_stack_2314 = workInProgress.pendingProps;
9233
+ var JSCompiler_object_inline_digest_2318;
9234
+ var JSCompiler_object_inline_stack_2319 = workInProgress.pendingProps;
9223
9235
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
9224
- var JSCompiler_object_inline_componentStack_2315 = !1;
9236
+ var JSCompiler_object_inline_componentStack_2320 = !1;
9225
9237
  var didSuspend = 0 !== (workInProgress.flags & 128);
9226
- (JSCompiler_object_inline_digest_2313 = didSuspend) ||
9227
- (JSCompiler_object_inline_digest_2313 =
9238
+ (JSCompiler_object_inline_digest_2318 = didSuspend) ||
9239
+ (JSCompiler_object_inline_digest_2318 =
9228
9240
  null !== current && null === current.memoizedState
9229
9241
  ? !1
9230
9242
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
9231
- JSCompiler_object_inline_digest_2313 &&
9232
- ((JSCompiler_object_inline_componentStack_2315 = !0),
9243
+ JSCompiler_object_inline_digest_2318 &&
9244
+ ((JSCompiler_object_inline_componentStack_2320 = !0),
9233
9245
  (workInProgress.flags &= -129));
9234
- JSCompiler_object_inline_digest_2313 = 0 !== (workInProgress.flags & 32);
9246
+ JSCompiler_object_inline_digest_2318 = 0 !== (workInProgress.flags & 32);
9235
9247
  workInProgress.flags &= -33;
9236
9248
  if (null === current) {
9237
9249
  if (isHydrating) {
9238
- JSCompiler_object_inline_componentStack_2315
9250
+ JSCompiler_object_inline_componentStack_2320
9239
9251
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
9240
9252
  : reuseSuspenseHandlerOnStack(workInProgress);
9241
9253
  if (isHydrating) {
9242
- var JSCompiler_object_inline_message_2312 = nextHydratableInstance;
9254
+ var JSCompiler_object_inline_message_2317 = nextHydratableInstance;
9243
9255
  var JSCompiler_temp;
9244
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2312)) {
9256
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2317)) {
9245
9257
  c: {
9246
- var instance = JSCompiler_object_inline_message_2312;
9258
+ var instance = JSCompiler_object_inline_message_2317;
9247
9259
  for (
9248
9260
  JSCompiler_temp = rootOrSingletonContext;
9249
9261
  8 !== instance.nodeType;
@@ -9269,7 +9281,8 @@
9269
9281
  null !== treeContextProvider
9270
9282
  ? { id: treeContextId, overflow: treeContextOverflow }
9271
9283
  : null,
9272
- retryLane: 536870912
9284
+ retryLane: 536870912,
9285
+ hydrationErrors: null
9273
9286
  }),
9274
9287
  (instance = createFiber(18, null, null, NoMode)),
9275
9288
  (instance.stateNode = JSCompiler_temp),
@@ -9284,77 +9297,77 @@
9284
9297
  JSCompiler_temp &&
9285
9298
  (warnNonHydratedInstance(
9286
9299
  workInProgress,
9287
- JSCompiler_object_inline_message_2312
9300
+ JSCompiler_object_inline_message_2317
9288
9301
  ),
9289
9302
  throwOnHydrationMismatch(workInProgress));
9290
9303
  }
9291
- JSCompiler_object_inline_message_2312 = workInProgress.memoizedState;
9304
+ JSCompiler_object_inline_message_2317 = workInProgress.memoizedState;
9292
9305
  if (
9293
- null !== JSCompiler_object_inline_message_2312 &&
9294
- ((JSCompiler_object_inline_message_2312 =
9295
- JSCompiler_object_inline_message_2312.dehydrated),
9296
- null !== JSCompiler_object_inline_message_2312)
9306
+ null !== JSCompiler_object_inline_message_2317 &&
9307
+ ((JSCompiler_object_inline_message_2317 =
9308
+ JSCompiler_object_inline_message_2317.dehydrated),
9309
+ null !== JSCompiler_object_inline_message_2317)
9297
9310
  )
9298
9311
  return (
9299
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2312)
9312
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2317)
9300
9313
  ? (workInProgress.lanes = 32)
9301
9314
  : (workInProgress.lanes = 536870912),
9302
9315
  null
9303
9316
  );
9304
9317
  popSuspenseHandler(workInProgress);
9305
9318
  }
9306
- JSCompiler_object_inline_message_2312 =
9307
- JSCompiler_object_inline_stack_2314.children;
9308
- JSCompiler_object_inline_stack_2314 =
9309
- JSCompiler_object_inline_stack_2314.fallback;
9310
- if (JSCompiler_object_inline_componentStack_2315)
9319
+ JSCompiler_object_inline_message_2317 =
9320
+ JSCompiler_object_inline_stack_2319.children;
9321
+ JSCompiler_object_inline_stack_2319 =
9322
+ JSCompiler_object_inline_stack_2319.fallback;
9323
+ if (JSCompiler_object_inline_componentStack_2320)
9311
9324
  return (
9312
9325
  reuseSuspenseHandlerOnStack(workInProgress),
9313
- (JSCompiler_object_inline_componentStack_2315 =
9326
+ (JSCompiler_object_inline_componentStack_2320 =
9314
9327
  workInProgress.mode),
9315
- (JSCompiler_object_inline_message_2312 =
9328
+ (JSCompiler_object_inline_message_2317 =
9316
9329
  mountWorkInProgressOffscreenFiber(
9317
9330
  {
9318
9331
  mode: "hidden",
9319
- children: JSCompiler_object_inline_message_2312
9332
+ children: JSCompiler_object_inline_message_2317
9320
9333
  },
9321
- JSCompiler_object_inline_componentStack_2315
9334
+ JSCompiler_object_inline_componentStack_2320
9322
9335
  )),
9323
- (JSCompiler_object_inline_stack_2314 = createFiberFromFragment(
9324
- JSCompiler_object_inline_stack_2314,
9325
- JSCompiler_object_inline_componentStack_2315,
9336
+ (JSCompiler_object_inline_stack_2319 = createFiberFromFragment(
9337
+ JSCompiler_object_inline_stack_2319,
9338
+ JSCompiler_object_inline_componentStack_2320,
9326
9339
  renderLanes,
9327
9340
  null
9328
9341
  )),
9329
- (JSCompiler_object_inline_message_2312.return = workInProgress),
9330
- (JSCompiler_object_inline_stack_2314.return = workInProgress),
9331
- (JSCompiler_object_inline_message_2312.sibling =
9332
- JSCompiler_object_inline_stack_2314),
9333
- (workInProgress.child = JSCompiler_object_inline_message_2312),
9334
- (JSCompiler_object_inline_componentStack_2315 =
9342
+ (JSCompiler_object_inline_message_2317.return = workInProgress),
9343
+ (JSCompiler_object_inline_stack_2319.return = workInProgress),
9344
+ (JSCompiler_object_inline_message_2317.sibling =
9345
+ JSCompiler_object_inline_stack_2319),
9346
+ (workInProgress.child = JSCompiler_object_inline_message_2317),
9347
+ (JSCompiler_object_inline_componentStack_2320 =
9335
9348
  workInProgress.child),
9336
- (JSCompiler_object_inline_componentStack_2315.memoizedState =
9349
+ (JSCompiler_object_inline_componentStack_2320.memoizedState =
9337
9350
  mountSuspenseOffscreenState(renderLanes)),
9338
- (JSCompiler_object_inline_componentStack_2315.childLanes =
9351
+ (JSCompiler_object_inline_componentStack_2320.childLanes =
9339
9352
  getRemainingWorkInPrimaryTree(
9340
9353
  current,
9341
- JSCompiler_object_inline_digest_2313,
9354
+ JSCompiler_object_inline_digest_2318,
9342
9355
  renderLanes
9343
9356
  )),
9344
9357
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9345
- JSCompiler_object_inline_stack_2314
9358
+ JSCompiler_object_inline_stack_2319
9346
9359
  );
9347
9360
  pushPrimaryTreeSuspenseHandler(workInProgress);
9348
9361
  return mountSuspensePrimaryChildren(
9349
9362
  workInProgress,
9350
- JSCompiler_object_inline_message_2312
9363
+ JSCompiler_object_inline_message_2317
9351
9364
  );
9352
9365
  }
9353
9366
  var prevState = current.memoizedState;
9354
9367
  if (
9355
9368
  null !== prevState &&
9356
- ((JSCompiler_object_inline_message_2312 = prevState.dehydrated),
9357
- null !== JSCompiler_object_inline_message_2312)
9369
+ ((JSCompiler_object_inline_message_2317 = prevState.dehydrated),
9370
+ null !== JSCompiler_object_inline_message_2317)
9358
9371
  ) {
9359
9372
  if (didSuspend)
9360
9373
  workInProgress.flags & 256
@@ -9371,94 +9384,94 @@
9371
9384
  (workInProgress.flags |= 128),
9372
9385
  (workInProgress = null))
9373
9386
  : (reuseSuspenseHandlerOnStack(workInProgress),
9374
- (JSCompiler_object_inline_componentStack_2315 =
9375
- JSCompiler_object_inline_stack_2314.fallback),
9376
- (JSCompiler_object_inline_message_2312 = workInProgress.mode),
9377
- (JSCompiler_object_inline_stack_2314 =
9387
+ (JSCompiler_object_inline_componentStack_2320 =
9388
+ JSCompiler_object_inline_stack_2319.fallback),
9389
+ (JSCompiler_object_inline_message_2317 = workInProgress.mode),
9390
+ (JSCompiler_object_inline_stack_2319 =
9378
9391
  mountWorkInProgressOffscreenFiber(
9379
9392
  {
9380
9393
  mode: "visible",
9381
- children: JSCompiler_object_inline_stack_2314.children
9394
+ children: JSCompiler_object_inline_stack_2319.children
9382
9395
  },
9383
- JSCompiler_object_inline_message_2312
9396
+ JSCompiler_object_inline_message_2317
9384
9397
  )),
9385
- (JSCompiler_object_inline_componentStack_2315 =
9398
+ (JSCompiler_object_inline_componentStack_2320 =
9386
9399
  createFiberFromFragment(
9387
- JSCompiler_object_inline_componentStack_2315,
9388
- JSCompiler_object_inline_message_2312,
9400
+ JSCompiler_object_inline_componentStack_2320,
9401
+ JSCompiler_object_inline_message_2317,
9389
9402
  renderLanes,
9390
9403
  null
9391
9404
  )),
9392
- (JSCompiler_object_inline_componentStack_2315.flags |= 2),
9393
- (JSCompiler_object_inline_stack_2314.return = workInProgress),
9394
- (JSCompiler_object_inline_componentStack_2315.return =
9405
+ (JSCompiler_object_inline_componentStack_2320.flags |= 2),
9406
+ (JSCompiler_object_inline_stack_2319.return = workInProgress),
9407
+ (JSCompiler_object_inline_componentStack_2320.return =
9395
9408
  workInProgress),
9396
- (JSCompiler_object_inline_stack_2314.sibling =
9397
- JSCompiler_object_inline_componentStack_2315),
9398
- (workInProgress.child = JSCompiler_object_inline_stack_2314),
9409
+ (JSCompiler_object_inline_stack_2319.sibling =
9410
+ JSCompiler_object_inline_componentStack_2320),
9411
+ (workInProgress.child = JSCompiler_object_inline_stack_2319),
9399
9412
  reconcileChildFibers(
9400
9413
  workInProgress,
9401
9414
  current.child,
9402
9415
  null,
9403
9416
  renderLanes
9404
9417
  ),
9405
- (JSCompiler_object_inline_stack_2314 = workInProgress.child),
9406
- (JSCompiler_object_inline_stack_2314.memoizedState =
9418
+ (JSCompiler_object_inline_stack_2319 = workInProgress.child),
9419
+ (JSCompiler_object_inline_stack_2319.memoizedState =
9407
9420
  mountSuspenseOffscreenState(renderLanes)),
9408
- (JSCompiler_object_inline_stack_2314.childLanes =
9421
+ (JSCompiler_object_inline_stack_2319.childLanes =
9409
9422
  getRemainingWorkInPrimaryTree(
9410
9423
  current,
9411
- JSCompiler_object_inline_digest_2313,
9424
+ JSCompiler_object_inline_digest_2318,
9412
9425
  renderLanes
9413
9426
  )),
9414
9427
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9415
9428
  (workInProgress =
9416
- JSCompiler_object_inline_componentStack_2315));
9429
+ JSCompiler_object_inline_componentStack_2320));
9417
9430
  else if (
9418
9431
  (pushPrimaryTreeSuspenseHandler(workInProgress),
9419
9432
  isHydrating &&
9420
9433
  console.error(
9421
9434
  "We should not be hydrating here. This is a bug in React. Please file a bug."
9422
9435
  ),
9423
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2312))
9436
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2317))
9424
9437
  ) {
9425
- JSCompiler_object_inline_digest_2313 =
9426
- JSCompiler_object_inline_message_2312.nextSibling &&
9427
- JSCompiler_object_inline_message_2312.nextSibling.dataset;
9428
- if (JSCompiler_object_inline_digest_2313) {
9429
- JSCompiler_temp = JSCompiler_object_inline_digest_2313.dgst;
9430
- var message = JSCompiler_object_inline_digest_2313.msg;
9431
- instance = JSCompiler_object_inline_digest_2313.stck;
9432
- var componentStack = JSCompiler_object_inline_digest_2313.cstck;
9438
+ JSCompiler_object_inline_digest_2318 =
9439
+ JSCompiler_object_inline_message_2317.nextSibling &&
9440
+ JSCompiler_object_inline_message_2317.nextSibling.dataset;
9441
+ if (JSCompiler_object_inline_digest_2318) {
9442
+ JSCompiler_temp = JSCompiler_object_inline_digest_2318.dgst;
9443
+ var message = JSCompiler_object_inline_digest_2318.msg;
9444
+ instance = JSCompiler_object_inline_digest_2318.stck;
9445
+ var componentStack = JSCompiler_object_inline_digest_2318.cstck;
9433
9446
  }
9434
- JSCompiler_object_inline_message_2312 = message;
9435
- JSCompiler_object_inline_digest_2313 = JSCompiler_temp;
9436
- JSCompiler_object_inline_stack_2314 = instance;
9437
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2315 =
9447
+ JSCompiler_object_inline_message_2317 = message;
9448
+ JSCompiler_object_inline_digest_2318 = JSCompiler_temp;
9449
+ JSCompiler_object_inline_stack_2319 = instance;
9450
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2320 =
9438
9451
  componentStack;
9439
- JSCompiler_object_inline_componentStack_2315 =
9440
- JSCompiler_object_inline_message_2312
9441
- ? Error(JSCompiler_object_inline_message_2312)
9452
+ JSCompiler_object_inline_componentStack_2320 =
9453
+ JSCompiler_object_inline_message_2317
9454
+ ? Error(JSCompiler_object_inline_message_2317)
9442
9455
  : Error(
9443
9456
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
9444
9457
  );
9445
- JSCompiler_object_inline_componentStack_2315.stack =
9446
- JSCompiler_object_inline_stack_2314 || "";
9447
- JSCompiler_object_inline_componentStack_2315.digest =
9448
- JSCompiler_object_inline_digest_2313;
9449
- JSCompiler_object_inline_digest_2313 =
9458
+ JSCompiler_object_inline_componentStack_2320.stack =
9459
+ JSCompiler_object_inline_stack_2319 || "";
9460
+ JSCompiler_object_inline_componentStack_2320.digest =
9461
+ JSCompiler_object_inline_digest_2318;
9462
+ JSCompiler_object_inline_digest_2318 =
9450
9463
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
9451
- JSCompiler_object_inline_stack_2314 = {
9452
- value: JSCompiler_object_inline_componentStack_2315,
9464
+ JSCompiler_object_inline_stack_2319 = {
9465
+ value: JSCompiler_object_inline_componentStack_2320,
9453
9466
  source: null,
9454
- stack: JSCompiler_object_inline_digest_2313
9467
+ stack: JSCompiler_object_inline_digest_2318
9455
9468
  };
9456
- "string" === typeof JSCompiler_object_inline_digest_2313 &&
9469
+ "string" === typeof JSCompiler_object_inline_digest_2318 &&
9457
9470
  CapturedStacks.set(
9458
- JSCompiler_object_inline_componentStack_2315,
9459
- JSCompiler_object_inline_stack_2314
9471
+ JSCompiler_object_inline_componentStack_2320,
9472
+ JSCompiler_object_inline_stack_2319
9460
9473
  );
9461
- queueHydrationError(JSCompiler_object_inline_stack_2314);
9474
+ queueHydrationError(JSCompiler_object_inline_stack_2319);
9462
9475
  workInProgress = retrySuspenseComponentWithoutHydrating(
9463
9476
  current,
9464
9477
  workInProgress,
@@ -9472,44 +9485,44 @@
9472
9485
  renderLanes,
9473
9486
  !1
9474
9487
  ),
9475
- (JSCompiler_object_inline_digest_2313 =
9488
+ (JSCompiler_object_inline_digest_2318 =
9476
9489
  0 !== (renderLanes & current.childLanes)),
9477
- didReceiveUpdate || JSCompiler_object_inline_digest_2313)
9490
+ didReceiveUpdate || JSCompiler_object_inline_digest_2318)
9478
9491
  ) {
9479
- JSCompiler_object_inline_digest_2313 = workInProgressRoot;
9492
+ JSCompiler_object_inline_digest_2318 = workInProgressRoot;
9480
9493
  if (
9481
- null !== JSCompiler_object_inline_digest_2313 &&
9482
- ((JSCompiler_object_inline_stack_2314 = renderLanes & -renderLanes),
9483
- (JSCompiler_object_inline_stack_2314 =
9484
- 0 !== (JSCompiler_object_inline_stack_2314 & 42)
9494
+ null !== JSCompiler_object_inline_digest_2318 &&
9495
+ ((JSCompiler_object_inline_stack_2319 = renderLanes & -renderLanes),
9496
+ (JSCompiler_object_inline_stack_2319 =
9497
+ 0 !== (JSCompiler_object_inline_stack_2319 & 42)
9485
9498
  ? 1
9486
9499
  : getBumpedLaneForHydrationByLane(
9487
- JSCompiler_object_inline_stack_2314
9500
+ JSCompiler_object_inline_stack_2319
9488
9501
  )),
9489
- (JSCompiler_object_inline_stack_2314 =
9502
+ (JSCompiler_object_inline_stack_2319 =
9490
9503
  0 !==
9491
- (JSCompiler_object_inline_stack_2314 &
9492
- (JSCompiler_object_inline_digest_2313.suspendedLanes |
9504
+ (JSCompiler_object_inline_stack_2319 &
9505
+ (JSCompiler_object_inline_digest_2318.suspendedLanes |
9493
9506
  renderLanes))
9494
9507
  ? 0
9495
- : JSCompiler_object_inline_stack_2314),
9496
- 0 !== JSCompiler_object_inline_stack_2314 &&
9497
- JSCompiler_object_inline_stack_2314 !== prevState.retryLane)
9508
+ : JSCompiler_object_inline_stack_2319),
9509
+ 0 !== JSCompiler_object_inline_stack_2319 &&
9510
+ JSCompiler_object_inline_stack_2319 !== prevState.retryLane)
9498
9511
  )
9499
9512
  throw (
9500
- ((prevState.retryLane = JSCompiler_object_inline_stack_2314),
9513
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2319),
9501
9514
  enqueueConcurrentRenderForLane(
9502
9515
  current,
9503
- JSCompiler_object_inline_stack_2314
9516
+ JSCompiler_object_inline_stack_2319
9504
9517
  ),
9505
9518
  scheduleUpdateOnFiber(
9506
- JSCompiler_object_inline_digest_2313,
9519
+ JSCompiler_object_inline_digest_2318,
9507
9520
  current,
9508
- JSCompiler_object_inline_stack_2314
9521
+ JSCompiler_object_inline_stack_2319
9509
9522
  ),
9510
9523
  SelectiveHydrationException)
9511
9524
  );
9512
- JSCompiler_object_inline_message_2312.data ===
9525
+ JSCompiler_object_inline_message_2317.data ===
9513
9526
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
9514
9527
  workInProgress = retrySuspenseComponentWithoutHydrating(
9515
9528
  current,
@@ -9517,14 +9530,14 @@
9517
9530
  renderLanes
9518
9531
  );
9519
9532
  } else
9520
- JSCompiler_object_inline_message_2312.data ===
9533
+ JSCompiler_object_inline_message_2317.data ===
9521
9534
  SUSPENSE_PENDING_START_DATA
9522
9535
  ? ((workInProgress.flags |= 192),
9523
9536
  (workInProgress.child = current.child),
9524
9537
  (workInProgress = null))
9525
9538
  : ((current = prevState.treeContext),
9526
9539
  (nextHydratableInstance = getNextHydratable(
9527
- JSCompiler_object_inline_message_2312.nextSibling
9540
+ JSCompiler_object_inline_message_2317.nextSibling
9528
9541
  )),
9529
9542
  (hydrationParentFiber = workInProgress),
9530
9543
  (isHydrating = !0),
@@ -9542,57 +9555,57 @@
9542
9555
  (treeContextProvider = workInProgress)),
9543
9556
  (workInProgress = mountSuspensePrimaryChildren(
9544
9557
  workInProgress,
9545
- JSCompiler_object_inline_stack_2314.children
9558
+ JSCompiler_object_inline_stack_2319.children
9546
9559
  )),
9547
9560
  (workInProgress.flags |= 4096));
9548
9561
  return workInProgress;
9549
9562
  }
9550
- if (JSCompiler_object_inline_componentStack_2315)
9563
+ if (JSCompiler_object_inline_componentStack_2320)
9551
9564
  return (
9552
9565
  reuseSuspenseHandlerOnStack(workInProgress),
9553
- (JSCompiler_object_inline_componentStack_2315 =
9554
- JSCompiler_object_inline_stack_2314.fallback),
9555
- (JSCompiler_object_inline_message_2312 = workInProgress.mode),
9566
+ (JSCompiler_object_inline_componentStack_2320 =
9567
+ JSCompiler_object_inline_stack_2319.fallback),
9568
+ (JSCompiler_object_inline_message_2317 = workInProgress.mode),
9556
9569
  (JSCompiler_temp = current.child),
9557
9570
  (instance = JSCompiler_temp.sibling),
9558
- (JSCompiler_object_inline_stack_2314 = createWorkInProgress(
9571
+ (JSCompiler_object_inline_stack_2319 = createWorkInProgress(
9559
9572
  JSCompiler_temp,
9560
9573
  {
9561
9574
  mode: "hidden",
9562
- children: JSCompiler_object_inline_stack_2314.children
9575
+ children: JSCompiler_object_inline_stack_2319.children
9563
9576
  }
9564
9577
  )),
9565
- (JSCompiler_object_inline_stack_2314.subtreeFlags =
9578
+ (JSCompiler_object_inline_stack_2319.subtreeFlags =
9566
9579
  JSCompiler_temp.subtreeFlags & 31457280),
9567
9580
  null !== instance
9568
- ? (JSCompiler_object_inline_componentStack_2315 =
9581
+ ? (JSCompiler_object_inline_componentStack_2320 =
9569
9582
  createWorkInProgress(
9570
9583
  instance,
9571
- JSCompiler_object_inline_componentStack_2315
9584
+ JSCompiler_object_inline_componentStack_2320
9572
9585
  ))
9573
- : ((JSCompiler_object_inline_componentStack_2315 =
9586
+ : ((JSCompiler_object_inline_componentStack_2320 =
9574
9587
  createFiberFromFragment(
9575
- JSCompiler_object_inline_componentStack_2315,
9576
- JSCompiler_object_inline_message_2312,
9588
+ JSCompiler_object_inline_componentStack_2320,
9589
+ JSCompiler_object_inline_message_2317,
9577
9590
  renderLanes,
9578
9591
  null
9579
9592
  )),
9580
- (JSCompiler_object_inline_componentStack_2315.flags |= 2)),
9581
- (JSCompiler_object_inline_componentStack_2315.return =
9593
+ (JSCompiler_object_inline_componentStack_2320.flags |= 2)),
9594
+ (JSCompiler_object_inline_componentStack_2320.return =
9582
9595
  workInProgress),
9583
- (JSCompiler_object_inline_stack_2314.return = workInProgress),
9584
- (JSCompiler_object_inline_stack_2314.sibling =
9585
- JSCompiler_object_inline_componentStack_2315),
9586
- (workInProgress.child = JSCompiler_object_inline_stack_2314),
9587
- (JSCompiler_object_inline_stack_2314 =
9588
- JSCompiler_object_inline_componentStack_2315),
9589
- (JSCompiler_object_inline_componentStack_2315 = workInProgress.child),
9590
- (JSCompiler_object_inline_message_2312 = current.child.memoizedState),
9591
- null === JSCompiler_object_inline_message_2312
9592
- ? (JSCompiler_object_inline_message_2312 =
9596
+ (JSCompiler_object_inline_stack_2319.return = workInProgress),
9597
+ (JSCompiler_object_inline_stack_2319.sibling =
9598
+ JSCompiler_object_inline_componentStack_2320),
9599
+ (workInProgress.child = JSCompiler_object_inline_stack_2319),
9600
+ (JSCompiler_object_inline_stack_2319 =
9601
+ JSCompiler_object_inline_componentStack_2320),
9602
+ (JSCompiler_object_inline_componentStack_2320 = workInProgress.child),
9603
+ (JSCompiler_object_inline_message_2317 = current.child.memoizedState),
9604
+ null === JSCompiler_object_inline_message_2317
9605
+ ? (JSCompiler_object_inline_message_2317 =
9593
9606
  mountSuspenseOffscreenState(renderLanes))
9594
9607
  : ((JSCompiler_temp =
9595
- JSCompiler_object_inline_message_2312.cachePool),
9608
+ JSCompiler_object_inline_message_2317.cachePool),
9596
9609
  null !== JSCompiler_temp
9597
9610
  ? ((instance = CacheContext._currentValue),
9598
9611
  (JSCompiler_temp =
@@ -9600,37 +9613,37 @@
9600
9613
  ? { parent: instance, pool: instance }
9601
9614
  : JSCompiler_temp))
9602
9615
  : (JSCompiler_temp = getSuspendedCache()),
9603
- (JSCompiler_object_inline_message_2312 = {
9616
+ (JSCompiler_object_inline_message_2317 = {
9604
9617
  baseLanes:
9605
- JSCompiler_object_inline_message_2312.baseLanes | renderLanes,
9618
+ JSCompiler_object_inline_message_2317.baseLanes | renderLanes,
9606
9619
  cachePool: JSCompiler_temp
9607
9620
  })),
9608
- (JSCompiler_object_inline_componentStack_2315.memoizedState =
9609
- JSCompiler_object_inline_message_2312),
9610
- (JSCompiler_object_inline_componentStack_2315.childLanes =
9621
+ (JSCompiler_object_inline_componentStack_2320.memoizedState =
9622
+ JSCompiler_object_inline_message_2317),
9623
+ (JSCompiler_object_inline_componentStack_2320.childLanes =
9611
9624
  getRemainingWorkInPrimaryTree(
9612
9625
  current,
9613
- JSCompiler_object_inline_digest_2313,
9626
+ JSCompiler_object_inline_digest_2318,
9614
9627
  renderLanes
9615
9628
  )),
9616
9629
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9617
- JSCompiler_object_inline_stack_2314
9630
+ JSCompiler_object_inline_stack_2319
9618
9631
  );
9619
9632
  pushPrimaryTreeSuspenseHandler(workInProgress);
9620
9633
  renderLanes = current.child;
9621
9634
  current = renderLanes.sibling;
9622
9635
  renderLanes = createWorkInProgress(renderLanes, {
9623
9636
  mode: "visible",
9624
- children: JSCompiler_object_inline_stack_2314.children
9637
+ children: JSCompiler_object_inline_stack_2319.children
9625
9638
  });
9626
9639
  renderLanes.return = workInProgress;
9627
9640
  renderLanes.sibling = null;
9628
9641
  null !== current &&
9629
- ((JSCompiler_object_inline_digest_2313 = workInProgress.deletions),
9630
- null === JSCompiler_object_inline_digest_2313
9642
+ ((JSCompiler_object_inline_digest_2318 = workInProgress.deletions),
9643
+ null === JSCompiler_object_inline_digest_2318
9631
9644
  ? ((workInProgress.deletions = [current]),
9632
9645
  (workInProgress.flags |= 16))
9633
- : JSCompiler_object_inline_digest_2313.push(current));
9646
+ : JSCompiler_object_inline_digest_2318.push(current));
9634
9647
  workInProgress.child = renderLanes;
9635
9648
  workInProgress.memoizedState = null;
9636
9649
  return renderLanes;
@@ -12700,6 +12713,14 @@
12700
12713
  committedTransitions
12701
12714
  );
12702
12715
  break;
12716
+ case 13:
12717
+ recursivelyTraversePassiveMountEffects(
12718
+ finishedRoot,
12719
+ finishedWork,
12720
+ committedLanes,
12721
+ committedTransitions
12722
+ );
12723
+ break;
12703
12724
  case 23:
12704
12725
  break;
12705
12726
  case 22:
@@ -13577,16 +13598,16 @@
13577
13598
  case 1:
13578
13599
  return bubbleProperties(workInProgress), null;
13579
13600
  case 3:
13580
- newProps = workInProgress.stateNode;
13581
- renderLanes = null;
13582
- null !== current && (renderLanes = current.memoizedState.cache);
13583
- workInProgress.memoizedState.cache !== renderLanes &&
13601
+ renderLanes = workInProgress.stateNode;
13602
+ newProps = null;
13603
+ null !== current && (newProps = current.memoizedState.cache);
13604
+ workInProgress.memoizedState.cache !== newProps &&
13584
13605
  (workInProgress.flags |= 2048);
13585
13606
  popProvider(CacheContext, workInProgress);
13586
13607
  popHostContainer(workInProgress);
13587
- newProps.pendingContext &&
13588
- ((newProps.context = newProps.pendingContext),
13589
- (newProps.pendingContext = null));
13608
+ renderLanes.pendingContext &&
13609
+ ((renderLanes.context = renderLanes.pendingContext),
13610
+ (renderLanes.pendingContext = null));
13590
13611
  if (null === current || null === current.child)
13591
13612
  popHydrationState(workInProgress)
13592
13613
  ? (emitPendingHydrationWarnings(), markUpdate(workInProgress))
@@ -13594,9 +13615,7 @@
13594
13615
  (current.memoizedState.isDehydrated &&
13595
13616
  0 === (workInProgress.flags & 256)) ||
13596
13617
  ((workInProgress.flags |= 1024),
13597
- null !== hydrationErrors &&
13598
- (queueRecoverableErrors(hydrationErrors),
13599
- (hydrationErrors = null)));
13618
+ upgradeHydrationErrorsToRecoverable());
13600
13619
  bubbleProperties(workInProgress);
13601
13620
  return null;
13602
13621
  case 26:
@@ -13805,9 +13824,9 @@
13805
13824
  renderLanes = getHostContext();
13806
13825
  if (popHydrationState(workInProgress)) {
13807
13826
  current = workInProgress.stateNode;
13808
- newProps = workInProgress.memoizedProps;
13827
+ renderLanes = workInProgress.memoizedProps;
13809
13828
  _type = !didSuspendOrErrorDEV;
13810
- renderLanes = null;
13829
+ newProps = null;
13811
13830
  var returnFiber = hydrationParentFiber;
13812
13831
  if (null !== returnFiber)
13813
13832
  switch (returnFiber.tag) {
@@ -13815,8 +13834,8 @@
13815
13834
  _type &&
13816
13835
  ((_type = diffHydratedTextForDevWarnings(
13817
13836
  current,
13818
- newProps,
13819
- renderLanes
13837
+ renderLanes,
13838
+ newProps
13820
13839
  )),
13821
13840
  null !== _type &&
13822
13841
  (buildHydrationDiffNode(workInProgress, 0).serverProps =
@@ -13824,12 +13843,12 @@
13824
13843
  break;
13825
13844
  case 27:
13826
13845
  case 5:
13827
- (renderLanes = returnFiber.memoizedProps),
13846
+ (newProps = returnFiber.memoizedProps),
13828
13847
  _type &&
13829
13848
  ((_type = diffHydratedTextForDevWarnings(
13830
13849
  current,
13831
- newProps,
13832
- renderLanes
13850
+ renderLanes,
13851
+ newProps
13833
13852
  )),
13834
13853
  null !== _type &&
13835
13854
  (buildHydrationDiffNode(
@@ -13839,10 +13858,10 @@
13839
13858
  }
13840
13859
  current[internalInstanceKey] = workInProgress;
13841
13860
  current =
13842
- current.nodeValue === newProps ||
13843
- (null !== renderLanes &&
13844
- !0 === renderLanes.suppressHydrationWarning) ||
13845
- checkForUnmatchedText(current.nodeValue, newProps)
13861
+ current.nodeValue === renderLanes ||
13862
+ (null !== newProps &&
13863
+ !0 === newProps.suppressHydrationWarning) ||
13864
+ checkForUnmatchedText(current.nodeValue, renderLanes)
13846
13865
  ? !0
13847
13866
  : !1;
13848
13867
  current || throwOnHydrationMismatch(workInProgress);
@@ -13902,9 +13921,10 @@
13902
13921
  _type.treeBaseDuration));
13903
13922
  _type = !1;
13904
13923
  } else
13905
- null !== hydrationErrors &&
13906
- (queueRecoverableErrors(hydrationErrors),
13907
- (hydrationErrors = null)),
13924
+ (_type = upgradeHydrationErrorsToRecoverable()),
13925
+ null !== current &&
13926
+ null !== current.memoizedState &&
13927
+ (current.memoizedState.hydrationErrors = _type),
13908
13928
  (_type = !0);
13909
13929
  if (!_type) {
13910
13930
  if (workInProgress.flags & 256)
@@ -13921,27 +13941,27 @@
13921
13941
  transferActualDuration(workInProgress),
13922
13942
  workInProgress
13923
13943
  );
13924
- newProps = null !== newProps;
13944
+ renderLanes = null !== newProps;
13925
13945
  current = null !== current && null !== current.memoizedState;
13926
- newProps &&
13927
- ((renderLanes = workInProgress.child),
13946
+ renderLanes &&
13947
+ ((newProps = workInProgress.child),
13928
13948
  (_type = null),
13929
- null !== renderLanes.alternate &&
13930
- null !== renderLanes.alternate.memoizedState &&
13931
- null !== renderLanes.alternate.memoizedState.cachePool &&
13932
- (_type = renderLanes.alternate.memoizedState.cachePool.pool),
13949
+ null !== newProps.alternate &&
13950
+ null !== newProps.alternate.memoizedState &&
13951
+ null !== newProps.alternate.memoizedState.cachePool &&
13952
+ (_type = newProps.alternate.memoizedState.cachePool.pool),
13933
13953
  (returnFiber = null),
13934
- null !== renderLanes.memoizedState &&
13935
- null !== renderLanes.memoizedState.cachePool &&
13936
- (returnFiber = renderLanes.memoizedState.cachePool.pool),
13937
- returnFiber !== _type && (renderLanes.flags |= 2048));
13938
- newProps !== current &&
13939
- newProps &&
13954
+ null !== newProps.memoizedState &&
13955
+ null !== newProps.memoizedState.cachePool &&
13956
+ (returnFiber = newProps.memoizedState.cachePool.pool),
13957
+ returnFiber !== _type && (newProps.flags |= 2048));
13958
+ renderLanes !== current &&
13959
+ renderLanes &&
13940
13960
  (workInProgress.child.flags |= 8192);
13941
13961
  scheduleRetryEffect(workInProgress, workInProgress.updateQueue);
13942
13962
  bubbleProperties(workInProgress);
13943
13963
  (workInProgress.mode & ProfileMode) !== NoMode &&
13944
- newProps &&
13964
+ renderLanes &&
13945
13965
  ((current = workInProgress.child),
13946
13966
  null !== current &&
13947
13967
  (workInProgress.treeBaseDuration -= current.treeBaseDuration));
@@ -13985,9 +14005,13 @@
13985
14005
  scheduleRetryEffect(workInProgress, current);
13986
14006
  workInProgress.subtreeFlags = 0;
13987
14007
  current = renderLanes;
13988
- for (newProps = workInProgress.child; null !== newProps; )
13989
- resetWorkInProgress(newProps, current),
13990
- (newProps = newProps.sibling);
14008
+ for (
14009
+ renderLanes = workInProgress.child;
14010
+ null !== renderLanes;
14011
+
14012
+ )
14013
+ resetWorkInProgress(renderLanes, current),
14014
+ (renderLanes = renderLanes.sibling);
13991
14015
  push(
13992
14016
  suspenseStackCursor,
13993
14017
  (suspenseStackCursor.current &
@@ -14075,27 +14099,27 @@
14075
14099
  workInProgress.subtreeFlags & 6 &&
14076
14100
  (workInProgress.flags |= 8192))
14077
14101
  : bubbleProperties(workInProgress),
14078
- (newProps = workInProgress.updateQueue),
14079
- null !== newProps &&
14080
- scheduleRetryEffect(workInProgress, newProps.retryQueue),
14081
- (newProps = null),
14102
+ (renderLanes = workInProgress.updateQueue),
14103
+ null !== renderLanes &&
14104
+ scheduleRetryEffect(workInProgress, renderLanes.retryQueue),
14105
+ (renderLanes = null),
14082
14106
  null !== current &&
14083
14107
  null !== current.memoizedState &&
14084
14108
  null !== current.memoizedState.cachePool &&
14085
- (newProps = current.memoizedState.cachePool.pool),
14086
- (renderLanes = null),
14109
+ (renderLanes = current.memoizedState.cachePool.pool),
14110
+ (newProps = null),
14087
14111
  null !== workInProgress.memoizedState &&
14088
14112
  null !== workInProgress.memoizedState.cachePool &&
14089
- (renderLanes = workInProgress.memoizedState.cachePool.pool),
14090
- renderLanes !== newProps && (workInProgress.flags |= 2048),
14113
+ (newProps = workInProgress.memoizedState.cachePool.pool),
14114
+ newProps !== renderLanes && (workInProgress.flags |= 2048),
14091
14115
  null !== current && pop(resumedCache, workInProgress),
14092
14116
  null
14093
14117
  );
14094
14118
  case 24:
14095
14119
  return (
14096
- (newProps = null),
14097
- null !== current && (newProps = current.memoizedState.cache),
14098
- workInProgress.memoizedState.cache !== newProps &&
14120
+ (renderLanes = null),
14121
+ null !== current && (renderLanes = current.memoizedState.cache),
14122
+ workInProgress.memoizedState.cache !== renderLanes &&
14099
14123
  (workInProgress.flags |= 2048),
14100
14124
  popProvider(CacheContext, workInProgress),
14101
14125
  bubbleProperties(workInProgress),
@@ -14391,7 +14415,13 @@
14391
14415
  }
14392
14416
  exitStatus = workInProgressRootRecoverableErrors;
14393
14417
  workInProgressRootRecoverableErrors = errorRetryLanes;
14394
- null !== exitStatus && queueRecoverableErrors(exitStatus);
14418
+ null !== exitStatus &&
14419
+ (null === workInProgressRootRecoverableErrors
14420
+ ? (workInProgressRootRecoverableErrors = exitStatus)
14421
+ : workInProgressRootRecoverableErrors.push.apply(
14422
+ workInProgressRootRecoverableErrors,
14423
+ exitStatus
14424
+ ));
14395
14425
  }
14396
14426
  exitStatus = errorRetryLanes$jscomp$0;
14397
14427
  }
@@ -14506,14 +14536,6 @@
14506
14536
  } while (1);
14507
14537
  ensureRootIsScheduled(root);
14508
14538
  }
14509
- function queueRecoverableErrors(errors) {
14510
- null === workInProgressRootRecoverableErrors
14511
- ? (workInProgressRootRecoverableErrors = errors)
14512
- : workInProgressRootRecoverableErrors.push.apply(
14513
- workInProgressRootRecoverableErrors,
14514
- errors
14515
- );
14516
- }
14517
14539
  function commitRootWhenReady(
14518
14540
  root,
14519
14541
  finishedWork,
@@ -23904,7 +23926,8 @@
23904
23926
  var SUSPENDED_MARKER = {
23905
23927
  dehydrated: null,
23906
23928
  treeContext: null,
23907
- retryLane: 0
23929
+ retryLane: 0,
23930
+ hydrationErrors: null
23908
23931
  },
23909
23932
  hasWarnedAboutUsingNoValuePropOnContextProvider = !1,
23910
23933
  didWarnAboutUndefinedSnapshotBeforeUpdate = null;
@@ -24548,11 +24571,11 @@
24548
24571
  };
24549
24572
  (function () {
24550
24573
  var isomorphicReactPackageVersion = React.version;
24551
- if ("19.1.0-canary-ef979d47-20241218" !== isomorphicReactPackageVersion)
24574
+ if ("19.1.0-canary-9463d51e-20241219" !== isomorphicReactPackageVersion)
24552
24575
  throw Error(
24553
24576
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24554
24577
  (isomorphicReactPackageVersion +
24555
- "\n - react-dom: 19.1.0-canary-ef979d47-20241218\nLearn more: https://react.dev/warnings/version-mismatch")
24578
+ "\n - react-dom: 19.1.0-canary-9463d51e-20241219\nLearn more: https://react.dev/warnings/version-mismatch")
24556
24579
  );
24557
24580
  })();
24558
24581
  ("function" === typeof Map &&
@@ -24589,10 +24612,10 @@
24589
24612
  !(function () {
24590
24613
  var internals = {
24591
24614
  bundleType: 1,
24592
- version: "19.1.0-canary-ef979d47-20241218",
24615
+ version: "19.1.0-canary-9463d51e-20241219",
24593
24616
  rendererPackageName: "react-dom",
24594
24617
  currentDispatcherRef: ReactSharedInternals,
24595
- reconcilerVersion: "19.1.0-canary-ef979d47-20241218"
24618
+ reconcilerVersion: "19.1.0-canary-9463d51e-20241219"
24596
24619
  };
24597
24620
  internals.overrideHookState = overrideHookState;
24598
24621
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25068,7 +25091,7 @@
25068
25091
  exports.useFormStatus = function () {
25069
25092
  return resolveDispatcher().useHostTransitionStatus();
25070
25093
  };
25071
- exports.version = "19.1.0-canary-ef979d47-20241218";
25094
+ exports.version = "19.1.0-canary-9463d51e-20241219";
25072
25095
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
25073
25096
  "function" ===
25074
25097
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&