react-dom 19.1.0-canary-3ce77d55-20250106 → 19.1.0-canary-42687267-20250108

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.
@@ -97,13 +97,14 @@
97
97
  }
98
98
  function scheduleRoot(root, element) {
99
99
  root.context === emptyContextObject &&
100
- (updateContainerSync(element, root, null, null), flushSyncWork$1());
100
+ (updateContainerImpl(root.current, 2, element, root, null, null),
101
+ flushSyncWork$1());
101
102
  }
102
103
  function scheduleRefresh(root, update) {
103
104
  if (null !== resolveFamily) {
104
105
  var staleFamilies = update.staleFamilies;
105
106
  update = update.updatedFamilies;
106
- flushPassiveEffects();
107
+ flushPendingEffects();
107
108
  scheduleFibersWithFamiliesRecursively(
108
109
  root.current,
109
110
  update,
@@ -9093,32 +9094,32 @@
9093
9094
  return current;
9094
9095
  }
9095
9096
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
9096
- var JSCompiler_object_inline_digest_2350;
9097
- var JSCompiler_object_inline_stack_2351 = workInProgress.pendingProps;
9097
+ var JSCompiler_object_inline_digest_2362;
9098
+ var JSCompiler_object_inline_stack_2363 = workInProgress.pendingProps;
9098
9099
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
9099
- var JSCompiler_object_inline_componentStack_2352 = !1;
9100
+ var JSCompiler_object_inline_componentStack_2364 = !1;
9100
9101
  var didSuspend = 0 !== (workInProgress.flags & 128);
9101
- (JSCompiler_object_inline_digest_2350 = didSuspend) ||
9102
- (JSCompiler_object_inline_digest_2350 =
9102
+ (JSCompiler_object_inline_digest_2362 = didSuspend) ||
9103
+ (JSCompiler_object_inline_digest_2362 =
9103
9104
  null !== current && null === current.memoizedState
9104
9105
  ? !1
9105
9106
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
9106
- JSCompiler_object_inline_digest_2350 &&
9107
- ((JSCompiler_object_inline_componentStack_2352 = !0),
9107
+ JSCompiler_object_inline_digest_2362 &&
9108
+ ((JSCompiler_object_inline_componentStack_2364 = !0),
9108
9109
  (workInProgress.flags &= -129));
9109
- JSCompiler_object_inline_digest_2350 = 0 !== (workInProgress.flags & 32);
9110
+ JSCompiler_object_inline_digest_2362 = 0 !== (workInProgress.flags & 32);
9110
9111
  workInProgress.flags &= -33;
9111
9112
  if (null === current) {
9112
9113
  if (isHydrating) {
9113
- JSCompiler_object_inline_componentStack_2352
9114
+ JSCompiler_object_inline_componentStack_2364
9114
9115
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
9115
9116
  : reuseSuspenseHandlerOnStack(workInProgress);
9116
9117
  if (isHydrating) {
9117
- var JSCompiler_object_inline_message_2349 = nextHydratableInstance;
9118
+ var JSCompiler_object_inline_message_2361 = nextHydratableInstance;
9118
9119
  var JSCompiler_temp;
9119
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2349)) {
9120
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2361)) {
9120
9121
  c: {
9121
- var instance = JSCompiler_object_inline_message_2349;
9122
+ var instance = JSCompiler_object_inline_message_2361;
9122
9123
  for (
9123
9124
  JSCompiler_temp = rootOrSingletonContext;
9124
9125
  8 !== instance.nodeType;
@@ -9160,77 +9161,77 @@
9160
9161
  JSCompiler_temp &&
9161
9162
  (warnNonHydratedInstance(
9162
9163
  workInProgress,
9163
- JSCompiler_object_inline_message_2349
9164
+ JSCompiler_object_inline_message_2361
9164
9165
  ),
9165
9166
  throwOnHydrationMismatch(workInProgress));
9166
9167
  }
9167
- JSCompiler_object_inline_message_2349 = workInProgress.memoizedState;
9168
+ JSCompiler_object_inline_message_2361 = workInProgress.memoizedState;
9168
9169
  if (
9169
- null !== JSCompiler_object_inline_message_2349 &&
9170
- ((JSCompiler_object_inline_message_2349 =
9171
- JSCompiler_object_inline_message_2349.dehydrated),
9172
- null !== JSCompiler_object_inline_message_2349)
9170
+ null !== JSCompiler_object_inline_message_2361 &&
9171
+ ((JSCompiler_object_inline_message_2361 =
9172
+ JSCompiler_object_inline_message_2361.dehydrated),
9173
+ null !== JSCompiler_object_inline_message_2361)
9173
9174
  )
9174
9175
  return (
9175
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2349)
9176
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2361)
9176
9177
  ? (workInProgress.lanes = 32)
9177
9178
  : (workInProgress.lanes = 536870912),
9178
9179
  null
9179
9180
  );
9180
9181
  popSuspenseHandler(workInProgress);
9181
9182
  }
9182
- JSCompiler_object_inline_message_2349 =
9183
- JSCompiler_object_inline_stack_2351.children;
9184
- JSCompiler_object_inline_stack_2351 =
9185
- JSCompiler_object_inline_stack_2351.fallback;
9186
- if (JSCompiler_object_inline_componentStack_2352)
9183
+ JSCompiler_object_inline_message_2361 =
9184
+ JSCompiler_object_inline_stack_2363.children;
9185
+ JSCompiler_object_inline_stack_2363 =
9186
+ JSCompiler_object_inline_stack_2363.fallback;
9187
+ if (JSCompiler_object_inline_componentStack_2364)
9187
9188
  return (
9188
9189
  reuseSuspenseHandlerOnStack(workInProgress),
9189
- (JSCompiler_object_inline_componentStack_2352 =
9190
+ (JSCompiler_object_inline_componentStack_2364 =
9190
9191
  workInProgress.mode),
9191
- (JSCompiler_object_inline_message_2349 =
9192
+ (JSCompiler_object_inline_message_2361 =
9192
9193
  mountWorkInProgressOffscreenFiber(
9193
9194
  {
9194
9195
  mode: "hidden",
9195
- children: JSCompiler_object_inline_message_2349
9196
+ children: JSCompiler_object_inline_message_2361
9196
9197
  },
9197
- JSCompiler_object_inline_componentStack_2352
9198
+ JSCompiler_object_inline_componentStack_2364
9198
9199
  )),
9199
- (JSCompiler_object_inline_stack_2351 = createFiberFromFragment(
9200
- JSCompiler_object_inline_stack_2351,
9201
- JSCompiler_object_inline_componentStack_2352,
9200
+ (JSCompiler_object_inline_stack_2363 = createFiberFromFragment(
9201
+ JSCompiler_object_inline_stack_2363,
9202
+ JSCompiler_object_inline_componentStack_2364,
9202
9203
  renderLanes,
9203
9204
  null
9204
9205
  )),
9205
- (JSCompiler_object_inline_message_2349.return = workInProgress),
9206
- (JSCompiler_object_inline_stack_2351.return = workInProgress),
9207
- (JSCompiler_object_inline_message_2349.sibling =
9208
- JSCompiler_object_inline_stack_2351),
9209
- (workInProgress.child = JSCompiler_object_inline_message_2349),
9210
- (JSCompiler_object_inline_componentStack_2352 =
9206
+ (JSCompiler_object_inline_message_2361.return = workInProgress),
9207
+ (JSCompiler_object_inline_stack_2363.return = workInProgress),
9208
+ (JSCompiler_object_inline_message_2361.sibling =
9209
+ JSCompiler_object_inline_stack_2363),
9210
+ (workInProgress.child = JSCompiler_object_inline_message_2361),
9211
+ (JSCompiler_object_inline_componentStack_2364 =
9211
9212
  workInProgress.child),
9212
- (JSCompiler_object_inline_componentStack_2352.memoizedState =
9213
+ (JSCompiler_object_inline_componentStack_2364.memoizedState =
9213
9214
  mountSuspenseOffscreenState(renderLanes)),
9214
- (JSCompiler_object_inline_componentStack_2352.childLanes =
9215
+ (JSCompiler_object_inline_componentStack_2364.childLanes =
9215
9216
  getRemainingWorkInPrimaryTree(
9216
9217
  current,
9217
- JSCompiler_object_inline_digest_2350,
9218
+ JSCompiler_object_inline_digest_2362,
9218
9219
  renderLanes
9219
9220
  )),
9220
9221
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9221
- JSCompiler_object_inline_stack_2351
9222
+ JSCompiler_object_inline_stack_2363
9222
9223
  );
9223
9224
  pushPrimaryTreeSuspenseHandler(workInProgress);
9224
9225
  return mountSuspensePrimaryChildren(
9225
9226
  workInProgress,
9226
- JSCompiler_object_inline_message_2349
9227
+ JSCompiler_object_inline_message_2361
9227
9228
  );
9228
9229
  }
9229
9230
  var prevState = current.memoizedState;
9230
9231
  if (
9231
9232
  null !== prevState &&
9232
- ((JSCompiler_object_inline_message_2349 = prevState.dehydrated),
9233
- null !== JSCompiler_object_inline_message_2349)
9233
+ ((JSCompiler_object_inline_message_2361 = prevState.dehydrated),
9234
+ null !== JSCompiler_object_inline_message_2361)
9234
9235
  ) {
9235
9236
  if (didSuspend)
9236
9237
  workInProgress.flags & 256
@@ -9247,94 +9248,94 @@
9247
9248
  (workInProgress.flags |= 128),
9248
9249
  (workInProgress = null))
9249
9250
  : (reuseSuspenseHandlerOnStack(workInProgress),
9250
- (JSCompiler_object_inline_componentStack_2352 =
9251
- JSCompiler_object_inline_stack_2351.fallback),
9252
- (JSCompiler_object_inline_message_2349 = workInProgress.mode),
9253
- (JSCompiler_object_inline_stack_2351 =
9251
+ (JSCompiler_object_inline_componentStack_2364 =
9252
+ JSCompiler_object_inline_stack_2363.fallback),
9253
+ (JSCompiler_object_inline_message_2361 = workInProgress.mode),
9254
+ (JSCompiler_object_inline_stack_2363 =
9254
9255
  mountWorkInProgressOffscreenFiber(
9255
9256
  {
9256
9257
  mode: "visible",
9257
- children: JSCompiler_object_inline_stack_2351.children
9258
+ children: JSCompiler_object_inline_stack_2363.children
9258
9259
  },
9259
- JSCompiler_object_inline_message_2349
9260
+ JSCompiler_object_inline_message_2361
9260
9261
  )),
9261
- (JSCompiler_object_inline_componentStack_2352 =
9262
+ (JSCompiler_object_inline_componentStack_2364 =
9262
9263
  createFiberFromFragment(
9263
- JSCompiler_object_inline_componentStack_2352,
9264
- JSCompiler_object_inline_message_2349,
9264
+ JSCompiler_object_inline_componentStack_2364,
9265
+ JSCompiler_object_inline_message_2361,
9265
9266
  renderLanes,
9266
9267
  null
9267
9268
  )),
9268
- (JSCompiler_object_inline_componentStack_2352.flags |= 2),
9269
- (JSCompiler_object_inline_stack_2351.return = workInProgress),
9270
- (JSCompiler_object_inline_componentStack_2352.return =
9269
+ (JSCompiler_object_inline_componentStack_2364.flags |= 2),
9270
+ (JSCompiler_object_inline_stack_2363.return = workInProgress),
9271
+ (JSCompiler_object_inline_componentStack_2364.return =
9271
9272
  workInProgress),
9272
- (JSCompiler_object_inline_stack_2351.sibling =
9273
- JSCompiler_object_inline_componentStack_2352),
9274
- (workInProgress.child = JSCompiler_object_inline_stack_2351),
9273
+ (JSCompiler_object_inline_stack_2363.sibling =
9274
+ JSCompiler_object_inline_componentStack_2364),
9275
+ (workInProgress.child = JSCompiler_object_inline_stack_2363),
9275
9276
  reconcileChildFibers(
9276
9277
  workInProgress,
9277
9278
  current.child,
9278
9279
  null,
9279
9280
  renderLanes
9280
9281
  ),
9281
- (JSCompiler_object_inline_stack_2351 = workInProgress.child),
9282
- (JSCompiler_object_inline_stack_2351.memoizedState =
9282
+ (JSCompiler_object_inline_stack_2363 = workInProgress.child),
9283
+ (JSCompiler_object_inline_stack_2363.memoizedState =
9283
9284
  mountSuspenseOffscreenState(renderLanes)),
9284
- (JSCompiler_object_inline_stack_2351.childLanes =
9285
+ (JSCompiler_object_inline_stack_2363.childLanes =
9285
9286
  getRemainingWorkInPrimaryTree(
9286
9287
  current,
9287
- JSCompiler_object_inline_digest_2350,
9288
+ JSCompiler_object_inline_digest_2362,
9288
9289
  renderLanes
9289
9290
  )),
9290
9291
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9291
9292
  (workInProgress =
9292
- JSCompiler_object_inline_componentStack_2352));
9293
+ JSCompiler_object_inline_componentStack_2364));
9293
9294
  else if (
9294
9295
  (pushPrimaryTreeSuspenseHandler(workInProgress),
9295
9296
  isHydrating &&
9296
9297
  console.error(
9297
9298
  "We should not be hydrating here. This is a bug in React. Please file a bug."
9298
9299
  ),
9299
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2349))
9300
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2361))
9300
9301
  ) {
9301
- JSCompiler_object_inline_digest_2350 =
9302
- JSCompiler_object_inline_message_2349.nextSibling &&
9303
- JSCompiler_object_inline_message_2349.nextSibling.dataset;
9304
- if (JSCompiler_object_inline_digest_2350) {
9305
- JSCompiler_temp = JSCompiler_object_inline_digest_2350.dgst;
9306
- var message = JSCompiler_object_inline_digest_2350.msg;
9307
- instance = JSCompiler_object_inline_digest_2350.stck;
9308
- var componentStack = JSCompiler_object_inline_digest_2350.cstck;
9302
+ JSCompiler_object_inline_digest_2362 =
9303
+ JSCompiler_object_inline_message_2361.nextSibling &&
9304
+ JSCompiler_object_inline_message_2361.nextSibling.dataset;
9305
+ if (JSCompiler_object_inline_digest_2362) {
9306
+ JSCompiler_temp = JSCompiler_object_inline_digest_2362.dgst;
9307
+ var message = JSCompiler_object_inline_digest_2362.msg;
9308
+ instance = JSCompiler_object_inline_digest_2362.stck;
9309
+ var componentStack = JSCompiler_object_inline_digest_2362.cstck;
9309
9310
  }
9310
- JSCompiler_object_inline_message_2349 = message;
9311
- JSCompiler_object_inline_digest_2350 = JSCompiler_temp;
9312
- JSCompiler_object_inline_stack_2351 = instance;
9313
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2352 =
9311
+ JSCompiler_object_inline_message_2361 = message;
9312
+ JSCompiler_object_inline_digest_2362 = JSCompiler_temp;
9313
+ JSCompiler_object_inline_stack_2363 = instance;
9314
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2364 =
9314
9315
  componentStack;
9315
- JSCompiler_object_inline_componentStack_2352 =
9316
- JSCompiler_object_inline_message_2349
9317
- ? Error(JSCompiler_object_inline_message_2349)
9316
+ JSCompiler_object_inline_componentStack_2364 =
9317
+ JSCompiler_object_inline_message_2361
9318
+ ? Error(JSCompiler_object_inline_message_2361)
9318
9319
  : Error(
9319
9320
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
9320
9321
  );
9321
- JSCompiler_object_inline_componentStack_2352.stack =
9322
- JSCompiler_object_inline_stack_2351 || "";
9323
- JSCompiler_object_inline_componentStack_2352.digest =
9324
- JSCompiler_object_inline_digest_2350;
9325
- JSCompiler_object_inline_digest_2350 =
9322
+ JSCompiler_object_inline_componentStack_2364.stack =
9323
+ JSCompiler_object_inline_stack_2363 || "";
9324
+ JSCompiler_object_inline_componentStack_2364.digest =
9325
+ JSCompiler_object_inline_digest_2362;
9326
+ JSCompiler_object_inline_digest_2362 =
9326
9327
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
9327
- JSCompiler_object_inline_stack_2351 = {
9328
- value: JSCompiler_object_inline_componentStack_2352,
9328
+ JSCompiler_object_inline_stack_2363 = {
9329
+ value: JSCompiler_object_inline_componentStack_2364,
9329
9330
  source: null,
9330
- stack: JSCompiler_object_inline_digest_2350
9331
+ stack: JSCompiler_object_inline_digest_2362
9331
9332
  };
9332
- "string" === typeof JSCompiler_object_inline_digest_2350 &&
9333
+ "string" === typeof JSCompiler_object_inline_digest_2362 &&
9333
9334
  CapturedStacks.set(
9334
- JSCompiler_object_inline_componentStack_2352,
9335
- JSCompiler_object_inline_stack_2351
9335
+ JSCompiler_object_inline_componentStack_2364,
9336
+ JSCompiler_object_inline_stack_2363
9336
9337
  );
9337
- queueHydrationError(JSCompiler_object_inline_stack_2351);
9338
+ queueHydrationError(JSCompiler_object_inline_stack_2363);
9338
9339
  workInProgress = retrySuspenseComponentWithoutHydrating(
9339
9340
  current,
9340
9341
  workInProgress,
@@ -9348,44 +9349,44 @@
9348
9349
  renderLanes,
9349
9350
  !1
9350
9351
  ),
9351
- (JSCompiler_object_inline_digest_2350 =
9352
+ (JSCompiler_object_inline_digest_2362 =
9352
9353
  0 !== (renderLanes & current.childLanes)),
9353
- didReceiveUpdate || JSCompiler_object_inline_digest_2350)
9354
+ didReceiveUpdate || JSCompiler_object_inline_digest_2362)
9354
9355
  ) {
9355
- JSCompiler_object_inline_digest_2350 = workInProgressRoot;
9356
+ JSCompiler_object_inline_digest_2362 = workInProgressRoot;
9356
9357
  if (
9357
- null !== JSCompiler_object_inline_digest_2350 &&
9358
- ((JSCompiler_object_inline_stack_2351 = renderLanes & -renderLanes),
9359
- (JSCompiler_object_inline_stack_2351 =
9360
- 0 !== (JSCompiler_object_inline_stack_2351 & 42)
9358
+ null !== JSCompiler_object_inline_digest_2362 &&
9359
+ ((JSCompiler_object_inline_stack_2363 = renderLanes & -renderLanes),
9360
+ (JSCompiler_object_inline_stack_2363 =
9361
+ 0 !== (JSCompiler_object_inline_stack_2363 & 42)
9361
9362
  ? 1
9362
9363
  : getBumpedLaneForHydrationByLane(
9363
- JSCompiler_object_inline_stack_2351
9364
+ JSCompiler_object_inline_stack_2363
9364
9365
  )),
9365
- (JSCompiler_object_inline_stack_2351 =
9366
+ (JSCompiler_object_inline_stack_2363 =
9366
9367
  0 !==
9367
- (JSCompiler_object_inline_stack_2351 &
9368
- (JSCompiler_object_inline_digest_2350.suspendedLanes |
9368
+ (JSCompiler_object_inline_stack_2363 &
9369
+ (JSCompiler_object_inline_digest_2362.suspendedLanes |
9369
9370
  renderLanes))
9370
9371
  ? 0
9371
- : JSCompiler_object_inline_stack_2351),
9372
- 0 !== JSCompiler_object_inline_stack_2351 &&
9373
- JSCompiler_object_inline_stack_2351 !== prevState.retryLane)
9372
+ : JSCompiler_object_inline_stack_2363),
9373
+ 0 !== JSCompiler_object_inline_stack_2363 &&
9374
+ JSCompiler_object_inline_stack_2363 !== prevState.retryLane)
9374
9375
  )
9375
9376
  throw (
9376
- ((prevState.retryLane = JSCompiler_object_inline_stack_2351),
9377
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2363),
9377
9378
  enqueueConcurrentRenderForLane(
9378
9379
  current,
9379
- JSCompiler_object_inline_stack_2351
9380
+ JSCompiler_object_inline_stack_2363
9380
9381
  ),
9381
9382
  scheduleUpdateOnFiber(
9382
- JSCompiler_object_inline_digest_2350,
9383
+ JSCompiler_object_inline_digest_2362,
9383
9384
  current,
9384
- JSCompiler_object_inline_stack_2351
9385
+ JSCompiler_object_inline_stack_2363
9385
9386
  ),
9386
9387
  SelectiveHydrationException)
9387
9388
  );
9388
- JSCompiler_object_inline_message_2349.data ===
9389
+ JSCompiler_object_inline_message_2361.data ===
9389
9390
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
9390
9391
  workInProgress = retrySuspenseComponentWithoutHydrating(
9391
9392
  current,
@@ -9393,14 +9394,14 @@
9393
9394
  renderLanes
9394
9395
  );
9395
9396
  } else
9396
- JSCompiler_object_inline_message_2349.data ===
9397
+ JSCompiler_object_inline_message_2361.data ===
9397
9398
  SUSPENSE_PENDING_START_DATA
9398
9399
  ? ((workInProgress.flags |= 192),
9399
9400
  (workInProgress.child = current.child),
9400
9401
  (workInProgress = null))
9401
9402
  : ((current = prevState.treeContext),
9402
9403
  (nextHydratableInstance = getNextHydratable(
9403
- JSCompiler_object_inline_message_2349.nextSibling
9404
+ JSCompiler_object_inline_message_2361.nextSibling
9404
9405
  )),
9405
9406
  (hydrationParentFiber = workInProgress),
9406
9407
  (isHydrating = !0),
@@ -9418,57 +9419,57 @@
9418
9419
  (treeContextProvider = workInProgress)),
9419
9420
  (workInProgress = mountSuspensePrimaryChildren(
9420
9421
  workInProgress,
9421
- JSCompiler_object_inline_stack_2351.children
9422
+ JSCompiler_object_inline_stack_2363.children
9422
9423
  )),
9423
9424
  (workInProgress.flags |= 4096));
9424
9425
  return workInProgress;
9425
9426
  }
9426
- if (JSCompiler_object_inline_componentStack_2352)
9427
+ if (JSCompiler_object_inline_componentStack_2364)
9427
9428
  return (
9428
9429
  reuseSuspenseHandlerOnStack(workInProgress),
9429
- (JSCompiler_object_inline_componentStack_2352 =
9430
- JSCompiler_object_inline_stack_2351.fallback),
9431
- (JSCompiler_object_inline_message_2349 = workInProgress.mode),
9430
+ (JSCompiler_object_inline_componentStack_2364 =
9431
+ JSCompiler_object_inline_stack_2363.fallback),
9432
+ (JSCompiler_object_inline_message_2361 = workInProgress.mode),
9432
9433
  (JSCompiler_temp = current.child),
9433
9434
  (instance = JSCompiler_temp.sibling),
9434
- (JSCompiler_object_inline_stack_2351 = createWorkInProgress(
9435
+ (JSCompiler_object_inline_stack_2363 = createWorkInProgress(
9435
9436
  JSCompiler_temp,
9436
9437
  {
9437
9438
  mode: "hidden",
9438
- children: JSCompiler_object_inline_stack_2351.children
9439
+ children: JSCompiler_object_inline_stack_2363.children
9439
9440
  }
9440
9441
  )),
9441
- (JSCompiler_object_inline_stack_2351.subtreeFlags =
9442
+ (JSCompiler_object_inline_stack_2363.subtreeFlags =
9442
9443
  JSCompiler_temp.subtreeFlags & 29360128),
9443
9444
  null !== instance
9444
- ? (JSCompiler_object_inline_componentStack_2352 =
9445
+ ? (JSCompiler_object_inline_componentStack_2364 =
9445
9446
  createWorkInProgress(
9446
9447
  instance,
9447
- JSCompiler_object_inline_componentStack_2352
9448
+ JSCompiler_object_inline_componentStack_2364
9448
9449
  ))
9449
- : ((JSCompiler_object_inline_componentStack_2352 =
9450
+ : ((JSCompiler_object_inline_componentStack_2364 =
9450
9451
  createFiberFromFragment(
9451
- JSCompiler_object_inline_componentStack_2352,
9452
- JSCompiler_object_inline_message_2349,
9452
+ JSCompiler_object_inline_componentStack_2364,
9453
+ JSCompiler_object_inline_message_2361,
9453
9454
  renderLanes,
9454
9455
  null
9455
9456
  )),
9456
- (JSCompiler_object_inline_componentStack_2352.flags |= 2)),
9457
- (JSCompiler_object_inline_componentStack_2352.return =
9457
+ (JSCompiler_object_inline_componentStack_2364.flags |= 2)),
9458
+ (JSCompiler_object_inline_componentStack_2364.return =
9458
9459
  workInProgress),
9459
- (JSCompiler_object_inline_stack_2351.return = workInProgress),
9460
- (JSCompiler_object_inline_stack_2351.sibling =
9461
- JSCompiler_object_inline_componentStack_2352),
9462
- (workInProgress.child = JSCompiler_object_inline_stack_2351),
9463
- (JSCompiler_object_inline_stack_2351 =
9464
- JSCompiler_object_inline_componentStack_2352),
9465
- (JSCompiler_object_inline_componentStack_2352 = workInProgress.child),
9466
- (JSCompiler_object_inline_message_2349 = current.child.memoizedState),
9467
- null === JSCompiler_object_inline_message_2349
9468
- ? (JSCompiler_object_inline_message_2349 =
9460
+ (JSCompiler_object_inline_stack_2363.return = workInProgress),
9461
+ (JSCompiler_object_inline_stack_2363.sibling =
9462
+ JSCompiler_object_inline_componentStack_2364),
9463
+ (workInProgress.child = JSCompiler_object_inline_stack_2363),
9464
+ (JSCompiler_object_inline_stack_2363 =
9465
+ JSCompiler_object_inline_componentStack_2364),
9466
+ (JSCompiler_object_inline_componentStack_2364 = workInProgress.child),
9467
+ (JSCompiler_object_inline_message_2361 = current.child.memoizedState),
9468
+ null === JSCompiler_object_inline_message_2361
9469
+ ? (JSCompiler_object_inline_message_2361 =
9469
9470
  mountSuspenseOffscreenState(renderLanes))
9470
9471
  : ((JSCompiler_temp =
9471
- JSCompiler_object_inline_message_2349.cachePool),
9472
+ JSCompiler_object_inline_message_2361.cachePool),
9472
9473
  null !== JSCompiler_temp
9473
9474
  ? ((instance = CacheContext._currentValue),
9474
9475
  (JSCompiler_temp =
@@ -9476,37 +9477,37 @@
9476
9477
  ? { parent: instance, pool: instance }
9477
9478
  : JSCompiler_temp))
9478
9479
  : (JSCompiler_temp = getSuspendedCache()),
9479
- (JSCompiler_object_inline_message_2349 = {
9480
+ (JSCompiler_object_inline_message_2361 = {
9480
9481
  baseLanes:
9481
- JSCompiler_object_inline_message_2349.baseLanes | renderLanes,
9482
+ JSCompiler_object_inline_message_2361.baseLanes | renderLanes,
9482
9483
  cachePool: JSCompiler_temp
9483
9484
  })),
9484
- (JSCompiler_object_inline_componentStack_2352.memoizedState =
9485
- JSCompiler_object_inline_message_2349),
9486
- (JSCompiler_object_inline_componentStack_2352.childLanes =
9485
+ (JSCompiler_object_inline_componentStack_2364.memoizedState =
9486
+ JSCompiler_object_inline_message_2361),
9487
+ (JSCompiler_object_inline_componentStack_2364.childLanes =
9487
9488
  getRemainingWorkInPrimaryTree(
9488
9489
  current,
9489
- JSCompiler_object_inline_digest_2350,
9490
+ JSCompiler_object_inline_digest_2362,
9490
9491
  renderLanes
9491
9492
  )),
9492
9493
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9493
- JSCompiler_object_inline_stack_2351
9494
+ JSCompiler_object_inline_stack_2363
9494
9495
  );
9495
9496
  pushPrimaryTreeSuspenseHandler(workInProgress);
9496
9497
  renderLanes = current.child;
9497
9498
  current = renderLanes.sibling;
9498
9499
  renderLanes = createWorkInProgress(renderLanes, {
9499
9500
  mode: "visible",
9500
- children: JSCompiler_object_inline_stack_2351.children
9501
+ children: JSCompiler_object_inline_stack_2363.children
9501
9502
  });
9502
9503
  renderLanes.return = workInProgress;
9503
9504
  renderLanes.sibling = null;
9504
9505
  null !== current &&
9505
- ((JSCompiler_object_inline_digest_2350 = workInProgress.deletions),
9506
- null === JSCompiler_object_inline_digest_2350
9506
+ ((JSCompiler_object_inline_digest_2362 = workInProgress.deletions),
9507
+ null === JSCompiler_object_inline_digest_2362
9507
9508
  ? ((workInProgress.deletions = [current]),
9508
9509
  (workInProgress.flags |= 16))
9509
- : JSCompiler_object_inline_digest_2350.push(current));
9510
+ : JSCompiler_object_inline_digest_2362.push(current));
9510
9511
  workInProgress.child = renderLanes;
9511
9512
  workInProgress.memoizedState = null;
9512
9513
  return renderLanes;
@@ -15123,8 +15124,8 @@
15123
15124
  suspendedRetryLanes
15124
15125
  ) {
15125
15126
  root.cancelPendingCommit = null;
15126
- do flushPassiveEffects();
15127
- while (null !== rootWithPendingPassiveEffects);
15127
+ do flushPendingEffects();
15128
+ while (pendingEffectsStatus !== NO_PENDING_EFFECTS);
15128
15129
  ReactStrictModeWarnings.flushLegacyContextWarning();
15129
15130
  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
15130
15131
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
@@ -15156,12 +15157,15 @@
15156
15157
  root === workInProgressRoot &&
15157
15158
  ((workInProgress = workInProgressRoot = null),
15158
15159
  (workInProgressRootRenderLanes = 0));
15160
+ pendingFinishedWork = finishedWork;
15161
+ pendingEffectsRoot = root;
15162
+ pendingEffectsLanes = lanes;
15163
+ pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;
15164
+ pendingPassiveTransitions = transitions;
15165
+ pendingRecoverableErrors = recoverableErrors;
15159
15166
  0 !== (finishedWork.subtreeFlags & 10256) ||
15160
15167
  0 !== (finishedWork.flags & 10256)
15161
- ? ((pendingPassiveEffectsRemainingLanes =
15162
- didIncludeRenderPhaseUpdate),
15163
- (pendingPassiveTransitions = transitions),
15164
- (root.callbackNode = null),
15168
+ ? ((root.callbackNode = null),
15165
15169
  (root.callbackPriority = 0),
15166
15170
  scheduleCallback$1(NormalPriority$1, function () {
15167
15171
  flushPassiveEffects(!0);
@@ -15169,266 +15173,289 @@
15169
15173
  }))
15170
15174
  : ((root.callbackNode = null), (root.callbackPriority = 0));
15171
15175
  commitStartTime = now();
15172
- transitions = 0 !== (finishedWork.flags & 13878);
15173
- if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
15174
- transitions = ReactSharedInternals.T;
15176
+ lanes = 0 !== (finishedWork.flags & 13878);
15177
+ if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) {
15178
+ lanes = ReactSharedInternals.T;
15175
15179
  ReactSharedInternals.T = null;
15176
- spawnedLane = ReactDOMSharedInternals.p;
15180
+ recoverableErrors = ReactDOMSharedInternals.p;
15177
15181
  ReactDOMSharedInternals.p = DiscreteEventPriority;
15178
- updatedLanes = executionContext;
15182
+ transitions = executionContext;
15179
15183
  executionContext |= CommitContext;
15180
15184
  try {
15181
15185
  commitBeforeMutationEffects(root, finishedWork);
15182
15186
  } finally {
15183
- (executionContext = updatedLanes),
15184
- (ReactDOMSharedInternals.p = spawnedLane),
15185
- (ReactSharedInternals.T = transitions);
15187
+ (executionContext = transitions),
15188
+ (ReactDOMSharedInternals.p = recoverableErrors),
15189
+ (ReactSharedInternals.T = lanes);
15186
15190
  }
15187
15191
  }
15188
- flushMutationEffects(root, finishedWork, lanes);
15189
- flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
15190
- }
15191
- }
15192
- function flushMutationEffects(root, finishedWork, lanes) {
15193
- var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
15194
- if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
15195
- rootMutationHasEffect = ReactSharedInternals.T;
15196
- ReactSharedInternals.T = null;
15197
- var previousPriority = ReactDOMSharedInternals.p;
15198
- ReactDOMSharedInternals.p = DiscreteEventPriority;
15199
- var prevExecutionContext = executionContext;
15200
- executionContext |= CommitContext;
15201
- try {
15202
- inProgressLanes = lanes;
15203
- inProgressRoot = root;
15204
- commitMutationEffectsOnFiber(finishedWork, root);
15205
- inProgressRoot = inProgressLanes = null;
15206
- lanes = selectionInformation;
15207
- var curFocusedElem = getActiveElementDeep(root.containerInfo),
15208
- priorFocusedElem = lanes.focusedElem,
15209
- priorSelectionRange = lanes.selectionRange;
15210
- if (
15211
- curFocusedElem !== priorFocusedElem &&
15212
- priorFocusedElem &&
15213
- priorFocusedElem.ownerDocument &&
15214
- containsNode(
15215
- priorFocusedElem.ownerDocument.documentElement,
15216
- priorFocusedElem
15217
- )
15218
- ) {
15192
+ pendingEffectsStatus = PENDING_MUTATION_PHASE;
15193
+ flushMutationEffects();
15194
+ flushLayoutEffects();
15195
+ }
15196
+ }
15197
+ function flushMutationEffects() {
15198
+ if (pendingEffectsStatus === PENDING_MUTATION_PHASE) {
15199
+ pendingEffectsStatus = NO_PENDING_EFFECTS;
15200
+ var root = pendingEffectsRoot,
15201
+ finishedWork = pendingFinishedWork,
15202
+ lanes = pendingEffectsLanes,
15203
+ rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
15204
+ if (
15205
+ 0 !== (finishedWork.subtreeFlags & 13878) ||
15206
+ rootMutationHasEffect
15207
+ ) {
15208
+ rootMutationHasEffect = ReactSharedInternals.T;
15209
+ ReactSharedInternals.T = null;
15210
+ var previousPriority = ReactDOMSharedInternals.p;
15211
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15212
+ var prevExecutionContext = executionContext;
15213
+ executionContext |= CommitContext;
15214
+ try {
15215
+ inProgressLanes = lanes;
15216
+ inProgressRoot = root;
15217
+ commitMutationEffectsOnFiber(finishedWork, root);
15218
+ inProgressRoot = inProgressLanes = null;
15219
+ lanes = selectionInformation;
15220
+ var curFocusedElem = getActiveElementDeep(root.containerInfo),
15221
+ priorFocusedElem = lanes.focusedElem,
15222
+ priorSelectionRange = lanes.selectionRange;
15219
15223
  if (
15220
- null !== priorSelectionRange &&
15221
- hasSelectionCapabilities(priorFocusedElem)
15224
+ curFocusedElem !== priorFocusedElem &&
15225
+ priorFocusedElem &&
15226
+ priorFocusedElem.ownerDocument &&
15227
+ containsNode(
15228
+ priorFocusedElem.ownerDocument.documentElement,
15229
+ priorFocusedElem
15230
+ )
15222
15231
  ) {
15223
- var start = priorSelectionRange.start,
15224
- end = priorSelectionRange.end;
15225
- void 0 === end && (end = start);
15226
- if ("selectionStart" in priorFocusedElem)
15227
- (priorFocusedElem.selectionStart = start),
15228
- (priorFocusedElem.selectionEnd = Math.min(
15229
- end,
15230
- priorFocusedElem.value.length
15231
- ));
15232
- else {
15233
- var doc = priorFocusedElem.ownerDocument || document,
15234
- win = (doc && doc.defaultView) || window;
15235
- if (win.getSelection) {
15236
- var selection = win.getSelection(),
15237
- length = priorFocusedElem.textContent.length,
15238
- start$jscomp$0 = Math.min(
15239
- priorSelectionRange.start,
15240
- length
15241
- ),
15242
- end$jscomp$0 =
15243
- void 0 === priorSelectionRange.end
15244
- ? start$jscomp$0
15245
- : Math.min(priorSelectionRange.end, length);
15246
- !selection.extend &&
15247
- start$jscomp$0 > end$jscomp$0 &&
15248
- ((curFocusedElem = end$jscomp$0),
15249
- (end$jscomp$0 = start$jscomp$0),
15250
- (start$jscomp$0 = curFocusedElem));
15251
- var startMarker = getNodeForCharacterOffset(
15252
- priorFocusedElem,
15253
- start$jscomp$0
15254
- ),
15255
- endMarker = getNodeForCharacterOffset(
15256
- priorFocusedElem,
15257
- end$jscomp$0
15258
- );
15259
- if (
15260
- startMarker &&
15261
- endMarker &&
15262
- (1 !== selection.rangeCount ||
15263
- selection.anchorNode !== startMarker.node ||
15264
- selection.anchorOffset !== startMarker.offset ||
15265
- selection.focusNode !== endMarker.node ||
15266
- selection.focusOffset !== endMarker.offset)
15267
- ) {
15268
- var range = doc.createRange();
15269
- range.setStart(startMarker.node, startMarker.offset);
15270
- selection.removeAllRanges();
15271
- start$jscomp$0 > end$jscomp$0
15272
- ? (selection.addRange(range),
15273
- selection.extend(endMarker.node, endMarker.offset))
15274
- : (range.setEnd(endMarker.node, endMarker.offset),
15275
- selection.addRange(range));
15232
+ if (
15233
+ null !== priorSelectionRange &&
15234
+ hasSelectionCapabilities(priorFocusedElem)
15235
+ ) {
15236
+ var start = priorSelectionRange.start,
15237
+ end = priorSelectionRange.end;
15238
+ void 0 === end && (end = start);
15239
+ if ("selectionStart" in priorFocusedElem)
15240
+ (priorFocusedElem.selectionStart = start),
15241
+ (priorFocusedElem.selectionEnd = Math.min(
15242
+ end,
15243
+ priorFocusedElem.value.length
15244
+ ));
15245
+ else {
15246
+ var doc = priorFocusedElem.ownerDocument || document,
15247
+ win = (doc && doc.defaultView) || window;
15248
+ if (win.getSelection) {
15249
+ var selection = win.getSelection(),
15250
+ length = priorFocusedElem.textContent.length,
15251
+ start$jscomp$0 = Math.min(
15252
+ priorSelectionRange.start,
15253
+ length
15254
+ ),
15255
+ end$jscomp$0 =
15256
+ void 0 === priorSelectionRange.end
15257
+ ? start$jscomp$0
15258
+ : Math.min(priorSelectionRange.end, length);
15259
+ !selection.extend &&
15260
+ start$jscomp$0 > end$jscomp$0 &&
15261
+ ((curFocusedElem = end$jscomp$0),
15262
+ (end$jscomp$0 = start$jscomp$0),
15263
+ (start$jscomp$0 = curFocusedElem));
15264
+ var startMarker = getNodeForCharacterOffset(
15265
+ priorFocusedElem,
15266
+ start$jscomp$0
15267
+ ),
15268
+ endMarker = getNodeForCharacterOffset(
15269
+ priorFocusedElem,
15270
+ end$jscomp$0
15271
+ );
15272
+ if (
15273
+ startMarker &&
15274
+ endMarker &&
15275
+ (1 !== selection.rangeCount ||
15276
+ selection.anchorNode !== startMarker.node ||
15277
+ selection.anchorOffset !== startMarker.offset ||
15278
+ selection.focusNode !== endMarker.node ||
15279
+ selection.focusOffset !== endMarker.offset)
15280
+ ) {
15281
+ var range = doc.createRange();
15282
+ range.setStart(startMarker.node, startMarker.offset);
15283
+ selection.removeAllRanges();
15284
+ start$jscomp$0 > end$jscomp$0
15285
+ ? (selection.addRange(range),
15286
+ selection.extend(endMarker.node, endMarker.offset))
15287
+ : (range.setEnd(endMarker.node, endMarker.offset),
15288
+ selection.addRange(range));
15289
+ }
15276
15290
  }
15277
15291
  }
15278
15292
  }
15279
- }
15280
- doc = [];
15281
- for (
15282
- selection = priorFocusedElem;
15283
- (selection = selection.parentNode);
15293
+ doc = [];
15294
+ for (
15295
+ selection = priorFocusedElem;
15296
+ (selection = selection.parentNode);
15284
15297
 
15285
- )
15286
- 1 === selection.nodeType &&
15287
- doc.push({
15288
- element: selection,
15289
- left: selection.scrollLeft,
15290
- top: selection.scrollTop
15291
- });
15292
- "function" === typeof priorFocusedElem.focus &&
15293
- priorFocusedElem.focus();
15294
- for (
15295
- priorFocusedElem = 0;
15296
- priorFocusedElem < doc.length;
15297
- priorFocusedElem++
15298
- ) {
15299
- var info = doc[priorFocusedElem];
15300
- info.element.scrollLeft = info.left;
15301
- info.element.scrollTop = info.top;
15298
+ )
15299
+ 1 === selection.nodeType &&
15300
+ doc.push({
15301
+ element: selection,
15302
+ left: selection.scrollLeft,
15303
+ top: selection.scrollTop
15304
+ });
15305
+ "function" === typeof priorFocusedElem.focus &&
15306
+ priorFocusedElem.focus();
15307
+ for (
15308
+ priorFocusedElem = 0;
15309
+ priorFocusedElem < doc.length;
15310
+ priorFocusedElem++
15311
+ ) {
15312
+ var info = doc[priorFocusedElem];
15313
+ info.element.scrollLeft = info.left;
15314
+ info.element.scrollTop = info.top;
15315
+ }
15302
15316
  }
15317
+ _enabled = !!eventsEnabled;
15318
+ selectionInformation = eventsEnabled = null;
15319
+ } finally {
15320
+ (executionContext = prevExecutionContext),
15321
+ (ReactDOMSharedInternals.p = previousPriority),
15322
+ (ReactSharedInternals.T = rootMutationHasEffect);
15303
15323
  }
15304
- _enabled = !!eventsEnabled;
15305
- selectionInformation = eventsEnabled = null;
15306
- } finally {
15307
- (executionContext = prevExecutionContext),
15308
- (ReactDOMSharedInternals.p = previousPriority),
15309
- (ReactSharedInternals.T = rootMutationHasEffect);
15310
15324
  }
15311
- }
15312
- root.current = finishedWork;
15313
- }
15314
- function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
15315
- var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
15316
- if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
15317
- rootHasLayoutEffect = ReactSharedInternals.T;
15318
- ReactSharedInternals.T = null;
15319
- var previousPriority = ReactDOMSharedInternals.p;
15320
- ReactDOMSharedInternals.p = DiscreteEventPriority;
15321
- var prevExecutionContext = executionContext;
15322
- executionContext |= CommitContext;
15323
- try {
15324
- null !== injectedProfilingHooks &&
15325
- "function" ===
15326
- typeof injectedProfilingHooks.markLayoutEffectsStarted &&
15327
- injectedProfilingHooks.markLayoutEffectsStarted(lanes),
15328
- (inProgressLanes = lanes),
15329
- (inProgressRoot = root),
15330
- commitLayoutEffectOnFiber(
15331
- root,
15332
- finishedWork.alternate,
15333
- finishedWork
15334
- ),
15335
- (inProgressRoot = inProgressLanes = null),
15325
+ root.current = finishedWork;
15326
+ pendingEffectsStatus = PENDING_LAYOUT_PHASE;
15327
+ }
15328
+ }
15329
+ function flushLayoutEffects() {
15330
+ if (pendingEffectsStatus === PENDING_LAYOUT_PHASE) {
15331
+ pendingEffectsStatus = NO_PENDING_EFFECTS;
15332
+ var root = pendingEffectsRoot,
15333
+ finishedWork = pendingFinishedWork,
15334
+ lanes = pendingEffectsLanes,
15335
+ recoverableErrors = pendingRecoverableErrors,
15336
+ rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
15337
+ if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
15338
+ rootHasLayoutEffect = ReactSharedInternals.T;
15339
+ ReactSharedInternals.T = null;
15340
+ var previousPriority = ReactDOMSharedInternals.p;
15341
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15342
+ var prevExecutionContext = executionContext;
15343
+ executionContext |= CommitContext;
15344
+ try {
15336
15345
  null !== injectedProfilingHooks &&
15337
15346
  "function" ===
15338
- typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15339
- injectedProfilingHooks.markLayoutEffectsStopped();
15340
- } finally {
15341
- (executionContext = prevExecutionContext),
15342
- (ReactDOMSharedInternals.p = previousPriority),
15343
- (ReactSharedInternals.T = rootHasLayoutEffect);
15344
- }
15345
- }
15346
- requestPaint();
15347
- (rootHasLayoutEffect =
15348
- 0 !== (finishedWork.subtreeFlags & 10256) ||
15349
- 0 !== (finishedWork.flags & 10256))
15350
- ? ((rootWithPendingPassiveEffects = root),
15351
- (pendingPassiveEffectsLanes = lanes))
15352
- : (releaseRootPooledCache(root, root.pendingLanes),
15353
- (nestedPassiveUpdateCount = 0),
15354
- (rootWithPassiveNestedUpdates = null));
15355
- previousPriority = root.pendingLanes;
15356
- 0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
15357
- rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
15358
- rootHasLayoutEffect = lanesToEventPriority(lanes);
15359
- finishedWork = finishedWork.stateNode;
15360
- if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
15361
- try {
15362
- var didError = 128 === (finishedWork.current.flags & 128);
15363
- switch (rootHasLayoutEffect) {
15364
- case DiscreteEventPriority:
15365
- var schedulerPriority = ImmediatePriority;
15366
- break;
15367
- case ContinuousEventPriority:
15368
- schedulerPriority = UserBlockingPriority;
15369
- break;
15370
- case DefaultEventPriority:
15371
- schedulerPriority = NormalPriority$1;
15372
- break;
15373
- case IdleEventPriority:
15374
- schedulerPriority = IdlePriority;
15375
- break;
15376
- default:
15377
- schedulerPriority = NormalPriority$1;
15347
+ typeof injectedProfilingHooks.markLayoutEffectsStarted &&
15348
+ injectedProfilingHooks.markLayoutEffectsStarted(lanes),
15349
+ (inProgressLanes = lanes),
15350
+ (inProgressRoot = root),
15351
+ commitLayoutEffectOnFiber(
15352
+ root,
15353
+ finishedWork.alternate,
15354
+ finishedWork
15355
+ ),
15356
+ (inProgressRoot = inProgressLanes = null),
15357
+ null !== injectedProfilingHooks &&
15358
+ "function" ===
15359
+ typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15360
+ injectedProfilingHooks.markLayoutEffectsStopped();
15361
+ } finally {
15362
+ (executionContext = prevExecutionContext),
15363
+ (ReactDOMSharedInternals.p = previousPriority),
15364
+ (ReactSharedInternals.T = rootHasLayoutEffect);
15378
15365
  }
15379
- injectedHook.onCommitFiberRoot(
15380
- rendererID,
15381
- finishedWork,
15382
- schedulerPriority,
15383
- didError
15384
- );
15385
- } catch (err) {
15386
- hasLoggedError ||
15387
- ((hasLoggedError = !0),
15388
- console.error(
15389
- "React instrumentation encountered an error: %s",
15390
- err
15391
- ));
15392
15366
  }
15393
- isDevToolsPresent && root.memoizedUpdaters.clear();
15394
- onCommitRoot();
15395
- if (null !== recoverableErrors) {
15396
- didError = ReactSharedInternals.T;
15397
- schedulerPriority = ReactDOMSharedInternals.p;
15398
- ReactDOMSharedInternals.p = DiscreteEventPriority;
15399
- ReactSharedInternals.T = null;
15400
- try {
15401
- var onRecoverableError = root.onRecoverableError;
15402
- for (
15403
- finishedWork = 0;
15404
- finishedWork < recoverableErrors.length;
15405
- finishedWork++
15406
- ) {
15407
- var recoverableError = recoverableErrors[finishedWork],
15408
- errorInfo = makeErrorInfo(recoverableError.stack);
15409
- runWithFiberInDEV(
15410
- recoverableError.source,
15411
- onRecoverableError,
15412
- recoverableError.value,
15413
- errorInfo
15367
+ requestPaint();
15368
+ (rootHasLayoutEffect =
15369
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
15370
+ 0 !== (finishedWork.flags & 10256))
15371
+ ? (pendingEffectsStatus = PENDING_PASSIVE_PHASE)
15372
+ : ((pendingEffectsStatus = NO_PENDING_EFFECTS),
15373
+ (pendingEffectsRoot = null),
15374
+ releaseRootPooledCache(root, root.pendingLanes),
15375
+ (nestedPassiveUpdateCount = 0),
15376
+ (rootWithPassiveNestedUpdates = null));
15377
+ previousPriority = root.pendingLanes;
15378
+ 0 === previousPriority &&
15379
+ (legacyErrorBoundariesThatAlreadyFailed = null);
15380
+ rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
15381
+ rootHasLayoutEffect = lanesToEventPriority(lanes);
15382
+ finishedWork = finishedWork.stateNode;
15383
+ if (
15384
+ injectedHook &&
15385
+ "function" === typeof injectedHook.onCommitFiberRoot
15386
+ )
15387
+ try {
15388
+ var didError = 128 === (finishedWork.current.flags & 128);
15389
+ switch (rootHasLayoutEffect) {
15390
+ case DiscreteEventPriority:
15391
+ var schedulerPriority = ImmediatePriority;
15392
+ break;
15393
+ case ContinuousEventPriority:
15394
+ schedulerPriority = UserBlockingPriority;
15395
+ break;
15396
+ case DefaultEventPriority:
15397
+ schedulerPriority = NormalPriority$1;
15398
+ break;
15399
+ case IdleEventPriority:
15400
+ schedulerPriority = IdlePriority;
15401
+ break;
15402
+ default:
15403
+ schedulerPriority = NormalPriority$1;
15404
+ }
15405
+ injectedHook.onCommitFiberRoot(
15406
+ rendererID,
15407
+ finishedWork,
15408
+ schedulerPriority,
15409
+ didError
15414
15410
  );
15411
+ } catch (err) {
15412
+ hasLoggedError ||
15413
+ ((hasLoggedError = !0),
15414
+ console.error(
15415
+ "React instrumentation encountered an error: %s",
15416
+ err
15417
+ ));
15418
+ }
15419
+ isDevToolsPresent && root.memoizedUpdaters.clear();
15420
+ onCommitRoot();
15421
+ if (null !== recoverableErrors) {
15422
+ didError = ReactSharedInternals.T;
15423
+ schedulerPriority = ReactDOMSharedInternals.p;
15424
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15425
+ ReactSharedInternals.T = null;
15426
+ try {
15427
+ var onRecoverableError = root.onRecoverableError;
15428
+ for (
15429
+ finishedWork = 0;
15430
+ finishedWork < recoverableErrors.length;
15431
+ finishedWork++
15432
+ ) {
15433
+ var recoverableError = recoverableErrors[finishedWork],
15434
+ errorInfo = makeErrorInfo(recoverableError.stack);
15435
+ runWithFiberInDEV(
15436
+ recoverableError.source,
15437
+ onRecoverableError,
15438
+ recoverableError.value,
15439
+ errorInfo
15440
+ );
15441
+ }
15442
+ } finally {
15443
+ (ReactSharedInternals.T = didError),
15444
+ (ReactDOMSharedInternals.p = schedulerPriority);
15415
15445
  }
15416
- } finally {
15417
- (ReactSharedInternals.T = didError),
15418
- (ReactDOMSharedInternals.p = schedulerPriority);
15419
15446
  }
15447
+ 0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
15448
+ ensureRootIsScheduled(root);
15449
+ previousPriority = root.pendingLanes;
15450
+ 0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
15451
+ ? ((nestedUpdateScheduled = !0),
15452
+ root === rootWithNestedUpdates
15453
+ ? nestedUpdateCount++
15454
+ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
15455
+ : (nestedUpdateCount = 0);
15456
+ flushSyncWorkAcrossRoots_impl(0, !1);
15457
+ markCommitStopped();
15420
15458
  }
15421
- 0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
15422
- ensureRootIsScheduled(root);
15423
- previousPriority = root.pendingLanes;
15424
- 0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
15425
- ? ((nestedUpdateScheduled = !0),
15426
- root === rootWithNestedUpdates
15427
- ? nestedUpdateCount++
15428
- : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
15429
- : (nestedUpdateCount = 0);
15430
- flushSyncWorkAcrossRoots_impl(0, !1);
15431
- markCommitStopped();
15432
15459
  }
15433
15460
  function makeErrorInfo(componentStack) {
15434
15461
  componentStack = { componentStack: componentStack };
@@ -15447,94 +15474,87 @@
15447
15474
  null != remainingLanes &&
15448
15475
  ((root.pooledCache = null), releaseCache(remainingLanes)));
15449
15476
  }
15477
+ function flushPendingEffects(wasDelayedCommit) {
15478
+ flushMutationEffects();
15479
+ flushLayoutEffects();
15480
+ return flushPassiveEffects(wasDelayedCommit);
15481
+ }
15450
15482
  function flushPassiveEffects() {
15451
- if (null !== rootWithPendingPassiveEffects) {
15452
- var root = rootWithPendingPassiveEffects,
15453
- remainingLanes = pendingPassiveEffectsRemainingLanes;
15454
- pendingPassiveEffectsRemainingLanes = 0;
15455
- var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
15456
- priority =
15457
- 0 === DefaultEventPriority || DefaultEventPriority > renderPriority
15458
- ? DefaultEventPriority
15459
- : renderPriority;
15460
- renderPriority = ReactSharedInternals.T;
15461
- var previousPriority = ReactDOMSharedInternals.p;
15462
- try {
15463
- ReactDOMSharedInternals.p = priority;
15464
- ReactSharedInternals.T = null;
15465
- if (null === rootWithPendingPassiveEffects)
15466
- var JSCompiler_inline_result = !1;
15467
- else {
15468
- priority = pendingPassiveTransitions;
15469
- pendingPassiveTransitions = null;
15470
- var root$jscomp$0 = rootWithPendingPassiveEffects,
15471
- lanes = pendingPassiveEffectsLanes;
15472
- rootWithPendingPassiveEffects = null;
15473
- pendingPassiveEffectsLanes = 0;
15474
- if (
15475
- (executionContext & (RenderContext | CommitContext)) !==
15476
- NoContext
15477
- )
15478
- throw Error(
15479
- "Cannot flush passive effects while already rendering."
15480
- );
15481
- isFlushingPassiveEffects = !0;
15482
- didScheduleUpdateDuringPassiveEffects = !1;
15483
- null !== injectedProfilingHooks &&
15484
- "function" ===
15485
- typeof injectedProfilingHooks.markPassiveEffectsStarted &&
15486
- injectedProfilingHooks.markPassiveEffectsStarted(lanes);
15487
- var prevExecutionContext = executionContext;
15488
- executionContext |= CommitContext;
15489
- commitPassiveUnmountOnFiber(root$jscomp$0.current);
15490
- commitPassiveMountOnFiber(
15491
- root$jscomp$0,
15492
- root$jscomp$0.current,
15493
- lanes,
15494
- priority
15495
- );
15496
- null !== injectedProfilingHooks &&
15497
- "function" ===
15498
- typeof injectedProfilingHooks.markPassiveEffectsStopped &&
15499
- injectedProfilingHooks.markPassiveEffectsStopped();
15500
- commitDoubleInvokeEffectsInDEV(root$jscomp$0);
15501
- executionContext = prevExecutionContext;
15502
- flushSyncWorkAcrossRoots_impl(0, !1);
15503
- didScheduleUpdateDuringPassiveEffects
15504
- ? root$jscomp$0 === rootWithPassiveNestedUpdates
15505
- ? nestedPassiveUpdateCount++
15506
- : ((nestedPassiveUpdateCount = 0),
15507
- (rootWithPassiveNestedUpdates = root$jscomp$0))
15508
- : (nestedPassiveUpdateCount = 0);
15509
- didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects =
15510
- !1;
15511
- if (
15512
- injectedHook &&
15513
- "function" === typeof injectedHook.onPostCommitFiberRoot
15514
- )
15515
- try {
15516
- injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
15517
- } catch (err) {
15518
- hasLoggedError ||
15519
- ((hasLoggedError = !0),
15520
- console.error(
15521
- "React instrumentation encountered an error: %s",
15522
- err
15523
- ));
15524
- }
15525
- var stateNode = root$jscomp$0.current.stateNode;
15526
- stateNode.effectDuration = 0;
15527
- stateNode.passiveEffectDuration = 0;
15528
- JSCompiler_inline_result = !0;
15483
+ if (pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return !1;
15484
+ var root = pendingEffectsRoot,
15485
+ remainingLanes = pendingEffectsRemainingLanes;
15486
+ pendingEffectsRemainingLanes = 0;
15487
+ var renderPriority = lanesToEventPriority(pendingEffectsLanes),
15488
+ priority =
15489
+ 0 === DefaultEventPriority || DefaultEventPriority > renderPriority
15490
+ ? DefaultEventPriority
15491
+ : renderPriority;
15492
+ renderPriority = ReactSharedInternals.T;
15493
+ var previousPriority = ReactDOMSharedInternals.p;
15494
+ try {
15495
+ ReactDOMSharedInternals.p = priority;
15496
+ ReactSharedInternals.T = null;
15497
+ priority = pendingPassiveTransitions;
15498
+ pendingPassiveTransitions = null;
15499
+ var root$jscomp$0 = pendingEffectsRoot,
15500
+ lanes = pendingEffectsLanes;
15501
+ pendingEffectsStatus = NO_PENDING_EFFECTS;
15502
+ pendingEffectsRoot = null;
15503
+ pendingEffectsLanes = 0;
15504
+ if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
15505
+ throw Error("Cannot flush passive effects while already rendering.");
15506
+ isFlushingPassiveEffects = !0;
15507
+ didScheduleUpdateDuringPassiveEffects = !1;
15508
+ null !== injectedProfilingHooks &&
15509
+ "function" ===
15510
+ typeof injectedProfilingHooks.markPassiveEffectsStarted &&
15511
+ injectedProfilingHooks.markPassiveEffectsStarted(lanes);
15512
+ var prevExecutionContext = executionContext;
15513
+ executionContext |= CommitContext;
15514
+ commitPassiveUnmountOnFiber(root$jscomp$0.current);
15515
+ commitPassiveMountOnFiber(
15516
+ root$jscomp$0,
15517
+ root$jscomp$0.current,
15518
+ lanes,
15519
+ priority
15520
+ );
15521
+ null !== injectedProfilingHooks &&
15522
+ "function" ===
15523
+ typeof injectedProfilingHooks.markPassiveEffectsStopped &&
15524
+ injectedProfilingHooks.markPassiveEffectsStopped();
15525
+ commitDoubleInvokeEffectsInDEV(root$jscomp$0);
15526
+ executionContext = prevExecutionContext;
15527
+ flushSyncWorkAcrossRoots_impl(0, !1);
15528
+ didScheduleUpdateDuringPassiveEffects
15529
+ ? root$jscomp$0 === rootWithPassiveNestedUpdates
15530
+ ? nestedPassiveUpdateCount++
15531
+ : ((nestedPassiveUpdateCount = 0),
15532
+ (rootWithPassiveNestedUpdates = root$jscomp$0))
15533
+ : (nestedPassiveUpdateCount = 0);
15534
+ didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = !1;
15535
+ if (
15536
+ injectedHook &&
15537
+ "function" === typeof injectedHook.onPostCommitFiberRoot
15538
+ )
15539
+ try {
15540
+ injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
15541
+ } catch (err) {
15542
+ hasLoggedError ||
15543
+ ((hasLoggedError = !0),
15544
+ console.error(
15545
+ "React instrumentation encountered an error: %s",
15546
+ err
15547
+ ));
15529
15548
  }
15530
- return JSCompiler_inline_result;
15531
- } finally {
15532
- (ReactDOMSharedInternals.p = previousPriority),
15533
- (ReactSharedInternals.T = renderPriority),
15534
- releaseRootPooledCache(root, remainingLanes);
15535
- }
15549
+ var stateNode = root$jscomp$0.current.stateNode;
15550
+ stateNode.effectDuration = 0;
15551
+ stateNode.passiveEffectDuration = 0;
15552
+ return !0;
15553
+ } finally {
15554
+ (ReactDOMSharedInternals.p = previousPriority),
15555
+ (ReactSharedInternals.T = renderPriority),
15556
+ releaseRootPooledCache(root, remainingLanes);
15536
15557
  }
15537
- return !1;
15538
15558
  }
15539
15559
  function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
15540
15560
  sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
@@ -15953,8 +15973,13 @@
15953
15973
  }
15954
15974
  function performWorkOnRootViaSchedulerTask(root, didTimeout) {
15955
15975
  nestedUpdateScheduled = currentUpdateIsNested = !1;
15976
+ if (
15977
+ pendingEffectsStatus !== NO_PENDING_EFFECTS &&
15978
+ pendingEffectsStatus !== PENDING_PASSIVE_PHASE
15979
+ )
15980
+ return (root.callbackNode = null), (root.callbackPriority = 0), null;
15956
15981
  var originalCallbackNode = root.callbackNode;
15957
- if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
15982
+ if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode)
15958
15983
  return null;
15959
15984
  var workInProgressRootRenderLanes$jscomp$0 =
15960
15985
  workInProgressRootRenderLanes;
@@ -15978,7 +16003,7 @@
15978
16003
  : null;
15979
16004
  }
15980
16005
  function performSyncWorkOnRoot(root, lanes) {
15981
- if (flushPassiveEffects()) return null;
16006
+ if (flushPendingEffects()) return null;
15982
16007
  currentUpdateIsNested = nestedUpdateScheduled;
15983
16008
  nestedUpdateScheduled = !1;
15984
16009
  performWorkOnRoot(root, lanes, !0);
@@ -20262,23 +20287,6 @@
20262
20287
  parentComponent = emptyContextObject;
20263
20288
  return parentComponent;
20264
20289
  }
20265
- function updateContainerSync(
20266
- element,
20267
- container,
20268
- parentComponent,
20269
- callback
20270
- ) {
20271
- 0 === container.tag && flushPassiveEffects();
20272
- updateContainerImpl(
20273
- container.current,
20274
- 2,
20275
- element,
20276
- container,
20277
- parentComponent,
20278
- callback
20279
- );
20280
- return 2;
20281
- }
20282
20290
  function updateContainerImpl(
20283
20291
  rootFiber,
20284
20292
  lane,
@@ -23976,10 +23984,20 @@
23976
23984
  RENDER_TIMEOUT_MS = 500,
23977
23985
  workInProgressTransitions = null,
23978
23986
  legacyErrorBoundariesThatAlreadyFailed = null,
23979
- rootWithPendingPassiveEffects = null,
23980
- pendingPassiveEffectsLanes = 0,
23981
- pendingPassiveEffectsRemainingLanes = 0,
23987
+ IMMEDIATE_COMMIT = 0,
23988
+ SUSPENDED_COMMIT = 1,
23989
+ THROTTLED_COMMIT = 2,
23990
+ NO_PENDING_EFFECTS = 0,
23991
+ PENDING_MUTATION_PHASE = 1,
23992
+ PENDING_LAYOUT_PHASE = 2,
23993
+ PENDING_PASSIVE_PHASE = 3,
23994
+ pendingEffectsStatus = 0,
23995
+ pendingEffectsRoot = null,
23996
+ pendingFinishedWork = null,
23997
+ pendingEffectsLanes = 0,
23998
+ pendingEffectsRemainingLanes = 0,
23982
23999
  pendingPassiveTransitions = null,
24000
+ pendingRecoverableErrors = null,
23983
24001
  NESTED_UPDATE_LIMIT = 50,
23984
24002
  nestedUpdateCount = 0,
23985
24003
  rootWithNestedUpdates = null,
@@ -23989,9 +24007,6 @@
23989
24007
  nestedPassiveUpdateCount = 0,
23990
24008
  rootWithPassiveNestedUpdates = null,
23991
24009
  isRunningInsertionEffect = !1,
23992
- IMMEDIATE_COMMIT = 0,
23993
- SUSPENDED_COMMIT = 1,
23994
- THROTTLED_COMMIT = 2,
23995
24010
  didWarnStateUpdateForNotYetMountedComponent = null,
23996
24011
  didWarnAboutUpdateInRender = !1;
23997
24012
  var didWarnAboutUpdateInRenderForAnotherComponent = new Set();
@@ -24503,7 +24518,7 @@
24503
24518
  console.error(
24504
24519
  "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."
24505
24520
  );
24506
- updateContainerSync(null, args, null, null);
24521
+ updateContainerImpl(args.current, 2, null, args, null, null);
24507
24522
  flushSyncWork$1();
24508
24523
  container[internalContainerInstanceKey] = null;
24509
24524
  }
@@ -24527,11 +24542,11 @@
24527
24542
  };
24528
24543
  (function () {
24529
24544
  var isomorphicReactPackageVersion = React.version;
24530
- if ("19.1.0-canary-3ce77d55-20250106" !== isomorphicReactPackageVersion)
24545
+ if ("19.1.0-canary-42687267-20250108" !== isomorphicReactPackageVersion)
24531
24546
  throw Error(
24532
24547
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24533
24548
  (isomorphicReactPackageVersion +
24534
- "\n - react-dom: 19.1.0-canary-3ce77d55-20250106\nLearn more: https://react.dev/warnings/version-mismatch")
24549
+ "\n - react-dom: 19.1.0-canary-42687267-20250108\nLearn more: https://react.dev/warnings/version-mismatch")
24535
24550
  );
24536
24551
  })();
24537
24552
  ("function" === typeof Map &&
@@ -24568,10 +24583,10 @@
24568
24583
  !(function () {
24569
24584
  var internals = {
24570
24585
  bundleType: 1,
24571
- version: "19.1.0-canary-3ce77d55-20250106",
24586
+ version: "19.1.0-canary-42687267-20250108",
24572
24587
  rendererPackageName: "react-dom",
24573
24588
  currentDispatcherRef: ReactSharedInternals,
24574
- reconcilerVersion: "19.1.0-canary-3ce77d55-20250106"
24589
+ reconcilerVersion: "19.1.0-canary-42687267-20250108"
24575
24590
  };
24576
24591
  internals.overrideHookState = overrideHookState;
24577
24592
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -24717,7 +24732,7 @@
24717
24732
  listenToAllSupportedEvents(container);
24718
24733
  return new ReactDOMHydrationRoot(initialChildren);
24719
24734
  };
24720
- exports.version = "19.1.0-canary-3ce77d55-20250106";
24735
+ exports.version = "19.1.0-canary-42687267-20250108";
24721
24736
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
24722
24737
  "function" ===
24723
24738
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&