react-dom 19.0.0-rc-7ac8e612-20241113 → 19.0.0-rc-b01722d5-20241114

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.
@@ -666,28 +666,40 @@ function getNextLanes(root, wipLanes) {
666
666
  var pendingLanes = root.pendingLanes;
667
667
  if (0 === pendingLanes) return 0;
668
668
  var nextLanes = 0,
669
- suspendedLanes = root.suspendedLanes;
670
- root = root.pingedLanes;
669
+ suspendedLanes = root.suspendedLanes,
670
+ pingedLanes = root.pingedLanes,
671
+ warmLanes = root.warmLanes;
672
+ root = 0 !== root.finishedLanes;
671
673
  var nonIdlePendingLanes = pendingLanes & 134217727;
672
674
  0 !== nonIdlePendingLanes
673
675
  ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
674
676
  0 !== pendingLanes
675
677
  ? (nextLanes = getHighestPriorityLanes(pendingLanes))
676
- : ((root &= nonIdlePendingLanes),
677
- 0 !== root && (nextLanes = getHighestPriorityLanes(root))))
678
- : ((pendingLanes &= ~suspendedLanes),
679
- 0 !== pendingLanes
680
- ? (nextLanes = getHighestPriorityLanes(pendingLanes))
681
- : 0 !== root && (nextLanes = getHighestPriorityLanes(root)));
678
+ : ((pingedLanes &= nonIdlePendingLanes),
679
+ 0 !== pingedLanes
680
+ ? (nextLanes = getHighestPriorityLanes(pingedLanes))
681
+ : root ||
682
+ ((warmLanes = nonIdlePendingLanes & ~warmLanes),
683
+ 0 !== warmLanes &&
684
+ (nextLanes = getHighestPriorityLanes(warmLanes)))))
685
+ : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
686
+ 0 !== nonIdlePendingLanes
687
+ ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
688
+ : 0 !== pingedLanes
689
+ ? (nextLanes = getHighestPriorityLanes(pingedLanes))
690
+ : root ||
691
+ ((warmLanes = pendingLanes & ~warmLanes),
692
+ 0 !== warmLanes &&
693
+ (nextLanes = getHighestPriorityLanes(warmLanes))));
682
694
  return 0 === nextLanes
683
695
  ? 0
684
696
  : 0 !== wipLanes &&
685
697
  wipLanes !== nextLanes &&
686
698
  0 === (wipLanes & suspendedLanes) &&
687
699
  ((suspendedLanes = nextLanes & -nextLanes),
688
- (root = wipLanes & -wipLanes),
689
- suspendedLanes >= root ||
690
- (32 === suspendedLanes && 0 !== (root & 4194176)))
700
+ (warmLanes = wipLanes & -wipLanes),
701
+ suspendedLanes >= warmLanes ||
702
+ (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
691
703
  ? wipLanes
692
704
  : nextLanes;
693
705
  }
@@ -761,7 +773,14 @@ function markRootUpdated$1(root, updateLane) {
761
773
  268435456 !== updateLane &&
762
774
  ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));
763
775
  }
764
- function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) {
776
+ function markRootFinished(
777
+ root,
778
+ finishedLanes,
779
+ remainingLanes,
780
+ spawnedLane,
781
+ updatedLanes,
782
+ suspendedRetryLanes
783
+ ) {
765
784
  var previouslyPendingLanes = root.pendingLanes;
766
785
  root.pendingLanes = remainingLanes;
767
786
  root.suspendedLanes = 0;
@@ -771,31 +790,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) {
771
790
  root.entangledLanes &= remainingLanes;
772
791
  root.errorRecoveryDisabledLanes &= remainingLanes;
773
792
  root.shellSuspendCounter = 0;
774
- finishedLanes = root.entanglements;
775
- var expirationTimes = root.expirationTimes,
793
+ var entanglements = root.entanglements,
794
+ expirationTimes = root.expirationTimes,
776
795
  hiddenUpdates = root.hiddenUpdates;
777
796
  for (
778
797
  remainingLanes = previouslyPendingLanes & ~remainingLanes;
779
798
  0 < remainingLanes;
780
799
 
781
800
  ) {
782
- var index$6 = 31 - clz32(remainingLanes);
783
- previouslyPendingLanes = 1 << index$6;
784
- finishedLanes[index$6] = 0;
785
- expirationTimes[index$6] = -1;
786
- var hiddenUpdatesForLane = hiddenUpdates[index$6];
801
+ var index$7 = 31 - clz32(remainingLanes),
802
+ lane = 1 << index$7;
803
+ entanglements[index$7] = 0;
804
+ expirationTimes[index$7] = -1;
805
+ var hiddenUpdatesForLane = hiddenUpdates[index$7];
787
806
  if (null !== hiddenUpdatesForLane)
788
807
  for (
789
- hiddenUpdates[index$6] = null, index$6 = 0;
790
- index$6 < hiddenUpdatesForLane.length;
791
- index$6++
808
+ hiddenUpdates[index$7] = null, index$7 = 0;
809
+ index$7 < hiddenUpdatesForLane.length;
810
+ index$7++
792
811
  ) {
793
- var update = hiddenUpdatesForLane[index$6];
812
+ var update = hiddenUpdatesForLane[index$7];
794
813
  null !== update && (update.lane &= -536870913);
795
814
  }
796
- remainingLanes &= ~previouslyPendingLanes;
815
+ remainingLanes &= ~lane;
797
816
  }
798
817
  0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
818
+ 0 !== suspendedRetryLanes &&
819
+ 0 === updatedLanes &&
820
+ 0 !== root.tag &&
821
+ (root.suspendedLanes |=
822
+ suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
799
823
  }
800
824
  function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
801
825
  root.pendingLanes |= spawnedLane;
@@ -810,19 +834,19 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
810
834
  function markRootEntangled(root, entangledLanes) {
811
835
  var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
812
836
  for (root = root.entanglements; rootEntangledLanes; ) {
813
- var index$7 = 31 - clz32(rootEntangledLanes),
814
- lane = 1 << index$7;
815
- (lane & entangledLanes) | (root[index$7] & entangledLanes) &&
816
- (root[index$7] |= entangledLanes);
837
+ var index$8 = 31 - clz32(rootEntangledLanes),
838
+ lane = 1 << index$8;
839
+ (lane & entangledLanes) | (root[index$8] & entangledLanes) &&
840
+ (root[index$8] |= entangledLanes);
817
841
  rootEntangledLanes &= ~lane;
818
842
  }
819
843
  }
820
844
  function addFiberToLanesMap(root, fiber, lanes) {
821
845
  if (isDevToolsPresent)
822
846
  for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
823
- var index$9 = 31 - clz32(lanes),
824
- lane = 1 << index$9;
825
- root[index$9].add(fiber);
847
+ var index$10 = 31 - clz32(lanes),
848
+ lane = 1 << index$10;
849
+ root[index$10].add(fiber);
826
850
  lanes &= ~lane;
827
851
  }
828
852
  }
@@ -834,16 +858,16 @@ function movePendingFibersToMemoized(root, lanes) {
834
858
  0 < lanes;
835
859
 
836
860
  ) {
837
- var index$10 = 31 - clz32(lanes);
838
- root = 1 << index$10;
839
- index$10 = pendingUpdatersLaneMap[index$10];
840
- 0 < index$10.size &&
841
- (index$10.forEach(function (fiber) {
861
+ var index$11 = 31 - clz32(lanes);
862
+ root = 1 << index$11;
863
+ index$11 = pendingUpdatersLaneMap[index$11];
864
+ 0 < index$11.size &&
865
+ (index$11.forEach(function (fiber) {
842
866
  var alternate = fiber.alternate;
843
867
  (null !== alternate && memoizedUpdaters.has(alternate)) ||
844
868
  memoizedUpdaters.add(fiber);
845
869
  }),
846
- index$10.clear());
870
+ index$11.clear());
847
871
  lanes &= ~root;
848
872
  }
849
873
  }
@@ -993,8 +1017,8 @@ function setValueForAttribute(node, name, value) {
993
1017
  node.removeAttribute(name);
994
1018
  return;
995
1019
  case "boolean":
996
- var prefix$11 = name.toLowerCase().slice(0, 5);
997
- if ("data-" !== prefix$11 && "aria-" !== prefix$11) {
1020
+ var prefix$12 = name.toLowerCase().slice(0, 5);
1021
+ if ("data-" !== prefix$12 && "aria-" !== prefix$12) {
998
1022
  node.removeAttribute(name);
999
1023
  return;
1000
1024
  }
@@ -1327,15 +1351,15 @@ function setValueForStyles(node, styles, prevStyles) {
1327
1351
  : "float" === styleName
1328
1352
  ? (node.cssFloat = "")
1329
1353
  : (node[styleName] = ""));
1330
- for (var styleName$17 in styles)
1331
- (styleName = styles[styleName$17]),
1332
- styles.hasOwnProperty(styleName$17) &&
1333
- prevStyles[styleName$17] !== styleName &&
1334
- setValueForStyle(node, styleName$17, styleName);
1335
- } else
1336
1354
  for (var styleName$18 in styles)
1337
- styles.hasOwnProperty(styleName$18) &&
1338
- setValueForStyle(node, styleName$18, styles[styleName$18]);
1355
+ (styleName = styles[styleName$18]),
1356
+ styles.hasOwnProperty(styleName$18) &&
1357
+ prevStyles[styleName$18] !== styleName &&
1358
+ setValueForStyle(node, styleName$18, styleName);
1359
+ } else
1360
+ for (var styleName$19 in styles)
1361
+ styles.hasOwnProperty(styleName$19) &&
1362
+ setValueForStyle(node, styleName$19, styles[styleName$19]);
1339
1363
  }
1340
1364
  function isCustomElement(tagName) {
1341
1365
  if (-1 === tagName.indexOf("-")) return !1;
@@ -2064,19 +2088,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
2064
2088
  }
2065
2089
  var isInputEventSupported = !1;
2066
2090
  if (canUseDOM) {
2067
- var JSCompiler_inline_result$jscomp$294;
2091
+ var JSCompiler_inline_result$jscomp$299;
2068
2092
  if (canUseDOM) {
2069
- var isSupported$jscomp$inline_430 = "oninput" in document;
2070
- if (!isSupported$jscomp$inline_430) {
2071
- var element$jscomp$inline_431 = document.createElement("div");
2072
- element$jscomp$inline_431.setAttribute("oninput", "return;");
2073
- isSupported$jscomp$inline_430 =
2074
- "function" === typeof element$jscomp$inline_431.oninput;
2093
+ var isSupported$jscomp$inline_435 = "oninput" in document;
2094
+ if (!isSupported$jscomp$inline_435) {
2095
+ var element$jscomp$inline_436 = document.createElement("div");
2096
+ element$jscomp$inline_436.setAttribute("oninput", "return;");
2097
+ isSupported$jscomp$inline_435 =
2098
+ "function" === typeof element$jscomp$inline_436.oninput;
2075
2099
  }
2076
- JSCompiler_inline_result$jscomp$294 = isSupported$jscomp$inline_430;
2077
- } else JSCompiler_inline_result$jscomp$294 = !1;
2100
+ JSCompiler_inline_result$jscomp$299 = isSupported$jscomp$inline_435;
2101
+ } else JSCompiler_inline_result$jscomp$299 = !1;
2078
2102
  isInputEventSupported =
2079
- JSCompiler_inline_result$jscomp$294 &&
2103
+ JSCompiler_inline_result$jscomp$299 &&
2080
2104
  (!document.documentMode || 9 < document.documentMode);
2081
2105
  }
2082
2106
  function stopWatchingForValueChange() {
@@ -4036,7 +4060,7 @@ function updateReducerImpl(hook, current, reducer) {
4036
4060
  var newBaseQueueFirst = (baseFirst = null),
4037
4061
  newBaseQueueLast = null,
4038
4062
  update = current,
4039
- didReadFromEntangledAsyncAction$55 = !1;
4063
+ didReadFromEntangledAsyncAction$56 = !1;
4040
4064
  do {
4041
4065
  var updateLane = update.lane & -536870913;
4042
4066
  if (
@@ -4057,11 +4081,11 @@ function updateReducerImpl(hook, current, reducer) {
4057
4081
  next: null
4058
4082
  }),
4059
4083
  updateLane === currentEntangledLane &&
4060
- (didReadFromEntangledAsyncAction$55 = !0);
4084
+ (didReadFromEntangledAsyncAction$56 = !0);
4061
4085
  else if ((renderLanes & revertLane) === revertLane) {
4062
4086
  update = update.next;
4063
4087
  revertLane === currentEntangledLane &&
4064
- (didReadFromEntangledAsyncAction$55 = !0);
4088
+ (didReadFromEntangledAsyncAction$56 = !0);
4065
4089
  continue;
4066
4090
  } else
4067
4091
  (updateLane = {
@@ -4107,7 +4131,7 @@ function updateReducerImpl(hook, current, reducer) {
4107
4131
  if (
4108
4132
  !objectIs(pendingQueue, hook.memoizedState) &&
4109
4133
  ((didReceiveUpdate = !0),
4110
- didReadFromEntangledAsyncAction$55 &&
4134
+ didReadFromEntangledAsyncAction$56 &&
4111
4135
  ((reducer = currentEntangledActionThenable), null !== reducer))
4112
4136
  )
4113
4137
  throw reducer;
@@ -4309,8 +4333,8 @@ function runActionStateAction(actionQueue, node) {
4309
4333
  try {
4310
4334
  (prevTransition = action(prevState, payload)),
4311
4335
  handleActionReturnValue(actionQueue, node, prevTransition);
4312
- } catch (error$61) {
4313
- onActionError(actionQueue, node, error$61);
4336
+ } catch (error$62) {
4337
+ onActionError(actionQueue, node, error$62);
4314
4338
  }
4315
4339
  }
4316
4340
  function handleActionReturnValue(actionQueue, node, returnValue) {
@@ -4741,10 +4765,10 @@ function refreshCache(fiber) {
4741
4765
  case 3:
4742
4766
  var lane = requestUpdateLane();
4743
4767
  fiber = createUpdate(lane);
4744
- var root$64 = enqueueUpdate(provider, fiber, lane);
4745
- null !== root$64 &&
4746
- (scheduleUpdateOnFiber(root$64, provider, lane),
4747
- entangleTransitions(root$64, provider, lane));
4768
+ var root$65 = enqueueUpdate(provider, fiber, lane);
4769
+ null !== root$65 &&
4770
+ (scheduleUpdateOnFiber(root$65, provider, lane),
4771
+ entangleTransitions(root$65, provider, lane));
4748
4772
  provider = { cache: createCache() };
4749
4773
  fiber.payload = provider;
4750
4774
  return;
@@ -5279,9 +5303,9 @@ function resolveClassComponentProps(Component, baseProps) {
5279
5303
  }
5280
5304
  if ((Component = Component.defaultProps)) {
5281
5305
  newProps === baseProps && (newProps = assign({}, newProps));
5282
- for (var propName$68 in Component)
5283
- void 0 === newProps[propName$68] &&
5284
- (newProps[propName$68] = Component[propName$68]);
5306
+ for (var propName$69 in Component)
5307
+ void 0 === newProps[propName$69] &&
5308
+ (newProps[propName$69] = Component[propName$69]);
5285
5309
  }
5286
5310
  return newProps;
5287
5311
  }
@@ -5327,9 +5351,9 @@ function logUncaughtError(root, errorInfo) {
5327
5351
  try {
5328
5352
  var onUncaughtError = root.onUncaughtError;
5329
5353
  onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
5330
- } catch (e$69) {
5354
+ } catch (e$70) {
5331
5355
  setTimeout(function () {
5332
- throw e$69;
5356
+ throw e$70;
5333
5357
  });
5334
5358
  }
5335
5359
  }
@@ -5340,9 +5364,9 @@ function logCaughtError(root, boundary, errorInfo) {
5340
5364
  componentStack: errorInfo.stack,
5341
5365
  errorBoundary: 1 === boundary.tag ? boundary.stateNode : null
5342
5366
  });
5343
- } catch (e$70) {
5367
+ } catch (e$71) {
5344
5368
  setTimeout(function () {
5345
- throw e$70;
5369
+ throw e$71;
5346
5370
  });
5347
5371
  }
5348
5372
  }
@@ -7825,8 +7849,8 @@ function safelyCallComponentWillUnmount(
7825
7849
  } else
7826
7850
  try {
7827
7851
  instance.componentWillUnmount();
7828
- } catch (error$116) {
7829
- captureCommitPhaseError(current, nearestMountedAncestor, error$116);
7852
+ } catch (error$117) {
7853
+ captureCommitPhaseError(current, nearestMountedAncestor, error$117);
7830
7854
  }
7831
7855
  }
7832
7856
  function safelyAttachRef(current, nearestMountedAncestor) {
@@ -7886,8 +7910,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
7886
7910
  recordEffectDuration(current);
7887
7911
  }
7888
7912
  else ref(null);
7889
- } catch (error$117) {
7890
- captureCommitPhaseError(current, nearestMountedAncestor, error$117);
7913
+ } catch (error$118) {
7914
+ captureCommitPhaseError(current, nearestMountedAncestor, error$118);
7891
7915
  }
7892
7916
  else ref.current = null;
7893
7917
  }
@@ -8056,7 +8080,7 @@ function commitBeforeMutationEffects(root, firstChild) {
8056
8080
  selection = selection.focusOffset;
8057
8081
  try {
8058
8082
  JSCompiler_temp.nodeType, focusNode.nodeType;
8059
- } catch (e$21) {
8083
+ } catch (e$22) {
8060
8084
  JSCompiler_temp = null;
8061
8085
  break a;
8062
8086
  }
@@ -8212,11 +8236,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
8212
8236
  } else
8213
8237
  try {
8214
8238
  finishedRoot.componentDidMount();
8215
- } catch (error$113) {
8239
+ } catch (error$114) {
8216
8240
  captureCommitPhaseError(
8217
8241
  finishedWork,
8218
8242
  finishedWork.return,
8219
- error$113
8243
+ error$114
8220
8244
  );
8221
8245
  }
8222
8246
  else {
@@ -8233,11 +8257,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
8233
8257
  current,
8234
8258
  finishedRoot.__reactInternalSnapshotBeforeUpdate
8235
8259
  );
8236
- } catch (error$114) {
8260
+ } catch (error$115) {
8237
8261
  captureCommitPhaseError(
8238
8262
  finishedWork,
8239
8263
  finishedWork.return,
8240
- error$114
8264
+ error$115
8241
8265
  );
8242
8266
  }
8243
8267
  recordEffectDuration();
@@ -8248,11 +8272,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
8248
8272
  current,
8249
8273
  finishedRoot.__reactInternalSnapshotBeforeUpdate
8250
8274
  );
8251
- } catch (error$115) {
8275
+ } catch (error$116) {
8252
8276
  captureCommitPhaseError(
8253
8277
  finishedWork,
8254
8278
  finishedWork.return,
8255
- error$115
8279
+ error$116
8256
8280
  );
8257
8281
  }
8258
8282
  }
@@ -8419,7 +8443,7 @@ function commitDeletionEffectsOnFiber(
8419
8443
  safelyDetachRef(deletedFiber, nearestMountedAncestor);
8420
8444
  case 6:
8421
8445
  prevHostParentIsContainer = hostParent;
8422
- var prevHostParentIsContainer$125 = hostParentIsContainer;
8446
+ var prevHostParentIsContainer$126 = hostParentIsContainer;
8423
8447
  hostParent = null;
8424
8448
  recursivelyTraverseDeletionEffects(
8425
8449
  finishedRoot,
@@ -8427,7 +8451,7 @@ function commitDeletionEffectsOnFiber(
8427
8451
  deletedFiber
8428
8452
  );
8429
8453
  hostParent = prevHostParentIsContainer;
8430
- hostParentIsContainer = prevHostParentIsContainer$125;
8454
+ hostParentIsContainer = prevHostParentIsContainer$126;
8431
8455
  if (null !== hostParent)
8432
8456
  if (hostParentIsContainer)
8433
8457
  try {
@@ -9075,21 +9099,21 @@ function commitReconciliationEffects(finishedWork) {
9075
9099
  insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0);
9076
9100
  break;
9077
9101
  case 5:
9078
- var parent$118 = JSCompiler_inline_result.stateNode;
9102
+ var parent$119 = JSCompiler_inline_result.stateNode;
9079
9103
  JSCompiler_inline_result.flags & 32 &&
9080
- (setTextContent(parent$118, ""),
9104
+ (setTextContent(parent$119, ""),
9081
9105
  (JSCompiler_inline_result.flags &= -33));
9082
- var before$119 = getHostSibling(finishedWork);
9083
- insertOrAppendPlacementNode(finishedWork, before$119, parent$118);
9106
+ var before$120 = getHostSibling(finishedWork);
9107
+ insertOrAppendPlacementNode(finishedWork, before$120, parent$119);
9084
9108
  break;
9085
9109
  case 3:
9086
9110
  case 4:
9087
- var parent$120 = JSCompiler_inline_result.stateNode.containerInfo,
9088
- before$121 = getHostSibling(finishedWork);
9111
+ var parent$121 = JSCompiler_inline_result.stateNode.containerInfo,
9112
+ before$122 = getHostSibling(finishedWork);
9089
9113
  insertOrAppendPlacementNodeIntoContainer(
9090
9114
  finishedWork,
9091
- before$121,
9092
- parent$120
9115
+ before$122,
9116
+ parent$121
9093
9117
  );
9094
9118
  break;
9095
9119
  default:
@@ -10020,20 +10044,32 @@ function markUpdate(workInProgress) {
10020
10044
  function preloadResourceAndSuspendIfNeeded(workInProgress, resource) {
10021
10045
  if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4))
10022
10046
  workInProgress.flags &= -16777217;
10023
- else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))
10024
- if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;
10025
- else
10047
+ else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) {
10048
+ resource = suspenseHandlerStackCursor.current;
10049
+ if (
10050
+ null !== resource &&
10051
+ ((workInProgressRootRenderLanes & 4194176) ===
10052
+ workInProgressRootRenderLanes
10053
+ ? null !== shellBoundary
10054
+ : ((workInProgressRootRenderLanes & 62914560) !==
10055
+ workInProgressRootRenderLanes &&
10056
+ 0 === (workInProgressRootRenderLanes & 536870912)) ||
10057
+ resource !== shellBoundary)
10058
+ )
10026
10059
  throw (
10027
10060
  ((suspendedThenable = noopSuspenseyCommitThenable),
10028
10061
  SuspenseyCommitException)
10029
10062
  );
10063
+ workInProgress.flags |= 8192;
10064
+ }
10030
10065
  }
10031
10066
  function scheduleRetryEffect(workInProgress, retryQueue) {
10032
10067
  null !== retryQueue && (workInProgress.flags |= 4);
10033
10068
  workInProgress.flags & 16384 &&
10034
10069
  ((retryQueue =
10035
10070
  22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
10036
- (workInProgress.lanes |= retryQueue));
10071
+ (workInProgress.lanes |= retryQueue),
10072
+ (workInProgressSuspendedRetryLanes |= retryQueue));
10037
10073
  }
10038
10074
  function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
10039
10075
  if (!isHydrating)
@@ -10050,14 +10086,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
10050
10086
  break;
10051
10087
  case "collapsed":
10052
10088
  lastTailNode = renderState.tail;
10053
- for (var lastTailNode$140 = null; null !== lastTailNode; )
10054
- null !== lastTailNode.alternate && (lastTailNode$140 = lastTailNode),
10089
+ for (var lastTailNode$141 = null; null !== lastTailNode; )
10090
+ null !== lastTailNode.alternate && (lastTailNode$141 = lastTailNode),
10055
10091
  (lastTailNode = lastTailNode.sibling);
10056
- null === lastTailNode$140
10092
+ null === lastTailNode$141
10057
10093
  ? hasRenderedATailFallback || null === renderState.tail
10058
10094
  ? (renderState.tail = null)
10059
10095
  : (renderState.tail.sibling = null)
10060
- : (lastTailNode$140.sibling = null);
10096
+ : (lastTailNode$141.sibling = null);
10061
10097
  }
10062
10098
  }
10063
10099
  function bubbleProperties(completedWork) {
@@ -10069,53 +10105,53 @@ function bubbleProperties(completedWork) {
10069
10105
  if (didBailout)
10070
10106
  if (0 !== (completedWork.mode & 2)) {
10071
10107
  for (
10072
- var treeBaseDuration$142 = completedWork.selfBaseDuration,
10073
- child$143 = completedWork.child;
10074
- null !== child$143;
10108
+ var treeBaseDuration$143 = completedWork.selfBaseDuration,
10109
+ child$144 = completedWork.child;
10110
+ null !== child$144;
10075
10111
 
10076
10112
  )
10077
- (newChildLanes |= child$143.lanes | child$143.childLanes),
10078
- (subtreeFlags |= child$143.subtreeFlags & 31457280),
10079
- (subtreeFlags |= child$143.flags & 31457280),
10080
- (treeBaseDuration$142 += child$143.treeBaseDuration),
10081
- (child$143 = child$143.sibling);
10082
- completedWork.treeBaseDuration = treeBaseDuration$142;
10113
+ (newChildLanes |= child$144.lanes | child$144.childLanes),
10114
+ (subtreeFlags |= child$144.subtreeFlags & 31457280),
10115
+ (subtreeFlags |= child$144.flags & 31457280),
10116
+ (treeBaseDuration$143 += child$144.treeBaseDuration),
10117
+ (child$144 = child$144.sibling);
10118
+ completedWork.treeBaseDuration = treeBaseDuration$143;
10083
10119
  } else
10084
10120
  for (
10085
- treeBaseDuration$142 = completedWork.child;
10086
- null !== treeBaseDuration$142;
10121
+ treeBaseDuration$143 = completedWork.child;
10122
+ null !== treeBaseDuration$143;
10087
10123
 
10088
10124
  )
10089
10125
  (newChildLanes |=
10090
- treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes),
10091
- (subtreeFlags |= treeBaseDuration$142.subtreeFlags & 31457280),
10092
- (subtreeFlags |= treeBaseDuration$142.flags & 31457280),
10093
- (treeBaseDuration$142.return = completedWork),
10094
- (treeBaseDuration$142 = treeBaseDuration$142.sibling);
10126
+ treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes),
10127
+ (subtreeFlags |= treeBaseDuration$143.subtreeFlags & 31457280),
10128
+ (subtreeFlags |= treeBaseDuration$143.flags & 31457280),
10129
+ (treeBaseDuration$143.return = completedWork),
10130
+ (treeBaseDuration$143 = treeBaseDuration$143.sibling);
10095
10131
  else if (0 !== (completedWork.mode & 2)) {
10096
- treeBaseDuration$142 = completedWork.actualDuration;
10097
- child$143 = completedWork.selfBaseDuration;
10132
+ treeBaseDuration$143 = completedWork.actualDuration;
10133
+ child$144 = completedWork.selfBaseDuration;
10098
10134
  for (var child = completedWork.child; null !== child; )
10099
10135
  (newChildLanes |= child.lanes | child.childLanes),
10100
10136
  (subtreeFlags |= child.subtreeFlags),
10101
10137
  (subtreeFlags |= child.flags),
10102
- (treeBaseDuration$142 += child.actualDuration),
10103
- (child$143 += child.treeBaseDuration),
10138
+ (treeBaseDuration$143 += child.actualDuration),
10139
+ (child$144 += child.treeBaseDuration),
10104
10140
  (child = child.sibling);
10105
- completedWork.actualDuration = treeBaseDuration$142;
10106
- completedWork.treeBaseDuration = child$143;
10141
+ completedWork.actualDuration = treeBaseDuration$143;
10142
+ completedWork.treeBaseDuration = child$144;
10107
10143
  } else
10108
10144
  for (
10109
- treeBaseDuration$142 = completedWork.child;
10110
- null !== treeBaseDuration$142;
10145
+ treeBaseDuration$143 = completedWork.child;
10146
+ null !== treeBaseDuration$143;
10111
10147
 
10112
10148
  )
10113
10149
  (newChildLanes |=
10114
- treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes),
10115
- (subtreeFlags |= treeBaseDuration$142.subtreeFlags),
10116
- (subtreeFlags |= treeBaseDuration$142.flags),
10117
- (treeBaseDuration$142.return = completedWork),
10118
- (treeBaseDuration$142 = treeBaseDuration$142.sibling);
10150
+ treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes),
10151
+ (subtreeFlags |= treeBaseDuration$143.subtreeFlags),
10152
+ (subtreeFlags |= treeBaseDuration$143.flags),
10153
+ (treeBaseDuration$143.return = completedWork),
10154
+ (treeBaseDuration$143 = treeBaseDuration$143.sibling);
10119
10155
  completedWork.subtreeFlags |= subtreeFlags;
10120
10156
  completedWork.childLanes = newChildLanes;
10121
10157
  return didBailout;
@@ -10408,11 +10444,11 @@ function completeWork(current, workInProgress, renderLanes) {
10408
10444
  null !== newProps.alternate.memoizedState &&
10409
10445
  null !== newProps.alternate.memoizedState.cachePool &&
10410
10446
  (type = newProps.alternate.memoizedState.cachePool.pool);
10411
- var cache$158 = null;
10447
+ var cache$159 = null;
10412
10448
  null !== newProps.memoizedState &&
10413
10449
  null !== newProps.memoizedState.cachePool &&
10414
- (cache$158 = newProps.memoizedState.cachePool.pool);
10415
- cache$158 !== type && (newProps.flags |= 2048);
10450
+ (cache$159 = newProps.memoizedState.cachePool.pool);
10451
+ cache$159 !== type && (newProps.flags |= 2048);
10416
10452
  }
10417
10453
  renderLanes !== current &&
10418
10454
  renderLanes &&
@@ -10442,8 +10478,8 @@ function completeWork(current, workInProgress, renderLanes) {
10442
10478
  type = workInProgress.memoizedState;
10443
10479
  if (null === type) return bubbleProperties(workInProgress), null;
10444
10480
  newProps = 0 !== (workInProgress.flags & 128);
10445
- cache$158 = type.rendering;
10446
- if (null === cache$158)
10481
+ cache$159 = type.rendering;
10482
+ if (null === cache$159)
10447
10483
  if (newProps) cutOffTailIfNeeded(type, !1);
10448
10484
  else {
10449
10485
  if (
@@ -10451,11 +10487,11 @@ function completeWork(current, workInProgress, renderLanes) {
10451
10487
  (null !== current && 0 !== (current.flags & 128))
10452
10488
  )
10453
10489
  for (current = workInProgress.child; null !== current; ) {
10454
- cache$158 = findFirstSuspended(current);
10455
- if (null !== cache$158) {
10490
+ cache$159 = findFirstSuspended(current);
10491
+ if (null !== cache$159) {
10456
10492
  workInProgress.flags |= 128;
10457
10493
  cutOffTailIfNeeded(type, !1);
10458
- current = cache$158.updateQueue;
10494
+ current = cache$159.updateQueue;
10459
10495
  workInProgress.updateQueue = current;
10460
10496
  scheduleRetryEffect(workInProgress, current);
10461
10497
  workInProgress.subtreeFlags = 0;
@@ -10480,7 +10516,7 @@ function completeWork(current, workInProgress, renderLanes) {
10480
10516
  }
10481
10517
  else {
10482
10518
  if (!newProps)
10483
- if (((current = findFirstSuspended(cache$158)), null !== current)) {
10519
+ if (((current = findFirstSuspended(cache$159)), null !== current)) {
10484
10520
  if (
10485
10521
  ((workInProgress.flags |= 128),
10486
10522
  (newProps = !0),
@@ -10490,7 +10526,7 @@ function completeWork(current, workInProgress, renderLanes) {
10490
10526
  cutOffTailIfNeeded(type, !0),
10491
10527
  null === type.tail &&
10492
10528
  "hidden" === type.tailMode &&
10493
- !cache$158.alternate &&
10529
+ !cache$159.alternate &&
10494
10530
  !isHydrating)
10495
10531
  )
10496
10532
  return bubbleProperties(workInProgress), null;
@@ -10503,13 +10539,13 @@ function completeWork(current, workInProgress, renderLanes) {
10503
10539
  cutOffTailIfNeeded(type, !1),
10504
10540
  (workInProgress.lanes = 4194304));
10505
10541
  type.isBackwards
10506
- ? ((cache$158.sibling = workInProgress.child),
10507
- (workInProgress.child = cache$158))
10542
+ ? ((cache$159.sibling = workInProgress.child),
10543
+ (workInProgress.child = cache$159))
10508
10544
  : ((current = type.last),
10509
10545
  null !== current
10510
- ? (current.sibling = cache$158)
10511
- : (workInProgress.child = cache$158),
10512
- (type.last = cache$158));
10546
+ ? (current.sibling = cache$159)
10547
+ : (workInProgress.child = cache$159),
10548
+ (type.last = cache$159));
10513
10549
  }
10514
10550
  if (null !== type.tail)
10515
10551
  return (
@@ -10692,6 +10728,7 @@ var DefaultAsyncDispatcher = {
10692
10728
  workInProgressSuspendedReason = 0,
10693
10729
  workInProgressThrownValue = null,
10694
10730
  workInProgressRootDidSkipSuspendedSiblings = !1,
10731
+ workInProgressRootIsPrerendering = !1,
10695
10732
  workInProgressRootDidAttachPingListener = !1,
10696
10733
  entangledRenderLanes = 0,
10697
10734
  workInProgressRootExitStatus = 0,
@@ -10742,7 +10779,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
10742
10779
  markRootSuspended(
10743
10780
  root,
10744
10781
  workInProgressRootRenderLanes,
10745
- workInProgressDeferredLane
10782
+ workInProgressDeferredLane,
10783
+ !1
10746
10784
  );
10747
10785
  markRootUpdated$1(root, lane);
10748
10786
  if (0 === (executionContext & 2) || root !== workInProgressRoot)
@@ -10754,23 +10792,35 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
10754
10792
  markRootSuspended(
10755
10793
  root,
10756
10794
  workInProgressRootRenderLanes,
10757
- workInProgressDeferredLane
10795
+ workInProgressDeferredLane,
10796
+ !1
10758
10797
  )),
10759
10798
  ensureRootIsScheduled(root);
10760
10799
  }
10761
10800
  function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10762
10801
  if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
10763
- var exitStatus = (forceSync =
10802
+ var shouldTimeSlice =
10764
10803
  (!forceSync &&
10765
10804
  0 === (lanes & 60) &&
10766
10805
  0 === (lanes & root$jscomp$0.expiredLanes)) ||
10767
- !1)
10806
+ checkIfRootIsPrerendering(root$jscomp$0, lanes),
10807
+ exitStatus = shouldTimeSlice
10768
10808
  ? renderRootConcurrent(root$jscomp$0, lanes)
10769
10809
  : renderRootSync(root$jscomp$0, lanes, !0),
10770
- renderWasConcurrent = forceSync;
10810
+ renderWasConcurrent = shouldTimeSlice;
10771
10811
  do {
10772
- if (0 === exitStatus) break;
10773
- else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0);
10812
+ if (0 === exitStatus) {
10813
+ workInProgressRootIsPrerendering &&
10814
+ !shouldTimeSlice &&
10815
+ markRootSuspended(root$jscomp$0, lanes, 0, !1);
10816
+ break;
10817
+ } else if (6 === exitStatus)
10818
+ markRootSuspended(
10819
+ root$jscomp$0,
10820
+ lanes,
10821
+ 0,
10822
+ !workInProgressRootDidSkipSuspendedSiblings
10823
+ );
10774
10824
  else {
10775
10825
  forceSync = root$jscomp$0.current.alternate;
10776
10826
  if (
@@ -10830,11 +10880,11 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10830
10880
  }
10831
10881
  if (1 === exitStatus) {
10832
10882
  prepareFreshStack(root$jscomp$0, 0);
10833
- markRootSuspended(root$jscomp$0, lanes, 0);
10883
+ markRootSuspended(root$jscomp$0, lanes, 0, !0);
10834
10884
  break;
10835
10885
  }
10836
10886
  a: {
10837
- renderWasConcurrent = root$jscomp$0;
10887
+ shouldTimeSlice = root$jscomp$0;
10838
10888
  switch (exitStatus) {
10839
10889
  case 0:
10840
10890
  case 1:
@@ -10842,9 +10892,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10842
10892
  case 4:
10843
10893
  if ((lanes & 4194176) === lanes) {
10844
10894
  markRootSuspended(
10845
- renderWasConcurrent,
10895
+ shouldTimeSlice,
10846
10896
  lanes,
10847
- workInProgressDeferredLane
10897
+ workInProgressDeferredLane,
10898
+ !workInProgressRootDidSkipSuspendedSiblings
10848
10899
  );
10849
10900
  break a;
10850
10901
  }
@@ -10858,23 +10909,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10858
10909
  default:
10859
10910
  throw Error(formatProdErrorMessage(329));
10860
10911
  }
10861
- renderWasConcurrent.finishedWork = forceSync;
10862
- renderWasConcurrent.finishedLanes = lanes;
10912
+ shouldTimeSlice.finishedWork = forceSync;
10913
+ shouldTimeSlice.finishedLanes = lanes;
10863
10914
  if (
10864
10915
  (lanes & 62914560) === lanes &&
10865
- ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()),
10866
- 10 < exitStatus)
10916
+ ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()),
10917
+ 10 < renderWasConcurrent)
10867
10918
  ) {
10868
10919
  markRootSuspended(
10869
- renderWasConcurrent,
10920
+ shouldTimeSlice,
10870
10921
  lanes,
10871
- workInProgressDeferredLane
10922
+ workInProgressDeferredLane,
10923
+ !workInProgressRootDidSkipSuspendedSiblings
10872
10924
  );
10873
- if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
10874
- renderWasConcurrent.timeoutHandle = scheduleTimeout(
10925
+ if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
10926
+ shouldTimeSlice.timeoutHandle = scheduleTimeout(
10875
10927
  commitRootWhenReady.bind(
10876
10928
  null,
10877
- renderWasConcurrent,
10929
+ shouldTimeSlice,
10878
10930
  forceSync,
10879
10931
  workInProgressRootRecoverableErrors,
10880
10932
  workInProgressTransitions,
@@ -10888,12 +10940,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10888
10940
  -0,
10889
10941
  0
10890
10942
  ),
10891
- exitStatus
10943
+ renderWasConcurrent
10892
10944
  );
10893
10945
  break a;
10894
10946
  }
10895
10947
  commitRootWhenReady(
10896
- renderWasConcurrent,
10948
+ shouldTimeSlice,
10897
10949
  forceSync,
10898
10950
  workInProgressRootRecoverableErrors,
10899
10951
  workInProgressTransitions,
@@ -10936,11 +10988,8 @@ function commitRootWhenReady(
10936
10988
  completedRenderStartTime,
10937
10989
  completedRenderEndTime
10938
10990
  ) {
10939
- didSkipSuspendedSiblings = finishedWork.subtreeFlags;
10940
- if (
10941
- didSkipSuspendedSiblings & 8192 ||
10942
- 16785408 === (didSkipSuspendedSiblings & 16785408)
10943
- )
10991
+ var subtreeFlags = finishedWork.subtreeFlags;
10992
+ if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
10944
10993
  if (
10945
10994
  ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }),
10946
10995
  accumulateSuspenseyCommitOnFiber(finishedWork),
@@ -10962,7 +11011,7 @@ function commitRootWhenReady(
10962
11011
  completedRenderEndTime
10963
11012
  )
10964
11013
  );
10965
- markRootSuspended(root, lanes, spawnedLane);
11014
+ markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
10966
11015
  return;
10967
11016
  }
10968
11017
  commitRoot(
@@ -11012,19 +11061,22 @@ function isRenderConsistentWithExternalStores(finishedWork) {
11012
11061
  }
11013
11062
  return !0;
11014
11063
  }
11015
- function markRootSuspended(root, suspendedLanes, spawnedLane) {
11064
+ function markRootSuspended(
11065
+ root,
11066
+ suspendedLanes,
11067
+ spawnedLane,
11068
+ didAttemptEntireTree
11069
+ ) {
11016
11070
  suspendedLanes &= ~workInProgressRootPingedLanes;
11017
11071
  suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
11018
11072
  root.suspendedLanes |= suspendedLanes;
11019
11073
  root.pingedLanes &= ~suspendedLanes;
11020
- for (
11021
- var expirationTimes = root.expirationTimes, lanes = suspendedLanes;
11022
- 0 < lanes;
11023
-
11024
- ) {
11025
- var index$5 = 31 - clz32(lanes),
11026
- lane = 1 << index$5;
11027
- expirationTimes[index$5] = -1;
11074
+ didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
11075
+ didAttemptEntireTree = root.expirationTimes;
11076
+ for (var lanes = suspendedLanes; 0 < lanes; ) {
11077
+ var index$6 = 31 - clz32(lanes),
11078
+ lane = 1 << index$6;
11079
+ didAttemptEntireTree[index$6] = -1;
11028
11080
  lanes &= ~lane;
11029
11081
  }
11030
11082
  0 !== spawnedLane &&
@@ -11068,7 +11120,7 @@ function prepareFreshStack(root, lanes) {
11068
11120
  workInProgressSuspendedReason = 0;
11069
11121
  workInProgressThrownValue = null;
11070
11122
  workInProgressRootDidSkipSuspendedSiblings = !1;
11071
- checkIfRootIsPrerendering(root, lanes);
11123
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
11072
11124
  workInProgressRootDidAttachPingListener = !1;
11073
11125
  workInProgressSuspendedRetryLanes =
11074
11126
  workInProgressDeferredLane =
@@ -11088,9 +11140,9 @@ function prepareFreshStack(root, lanes) {
11088
11140
  0 < allEntangledLanes;
11089
11141
 
11090
11142
  ) {
11091
- var index$3 = 31 - clz32(allEntangledLanes),
11092
- lane = 1 << index$3;
11093
- lanes |= root[index$3];
11143
+ var index$4 = 31 - clz32(allEntangledLanes),
11144
+ lane = 1 << index$4;
11145
+ lanes |= root[index$4];
11094
11146
  allEntangledLanes &= ~lane;
11095
11147
  }
11096
11148
  entangledRenderLanes = lanes;
@@ -11102,12 +11154,7 @@ function handleThrow(root, thrownValue) {
11102
11154
  ReactSharedInternals.H = ContextOnlyDispatcher;
11103
11155
  thrownValue === SuspenseException
11104
11156
  ? ((thrownValue = getSuspendedThenable()),
11105
- (workInProgressSuspendedReason =
11106
- shouldRemainOnPreviousScreen() &&
11107
- 0 === (workInProgressRootSkippedLanes & 134217727) &&
11108
- 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
11109
- ? 2
11110
- : 3))
11157
+ (workInProgressSuspendedReason = 3))
11111
11158
  : thrownValue === SuspenseyCommitException
11112
11159
  ? ((thrownValue = getSuspendedThenable()),
11113
11160
  (workInProgressSuspendedReason = 4))
@@ -11156,21 +11203,6 @@ function handleThrow(root, thrownValue) {
11156
11203
  );
11157
11204
  }
11158
11205
  }
11159
- function shouldRemainOnPreviousScreen() {
11160
- var handler = suspenseHandlerStackCursor.current;
11161
- return null === handler
11162
- ? !0
11163
- : (workInProgressRootRenderLanes & 4194176) ===
11164
- workInProgressRootRenderLanes
11165
- ? null === shellBoundary
11166
- ? !0
11167
- : !1
11168
- : (workInProgressRootRenderLanes & 62914560) ===
11169
- workInProgressRootRenderLanes ||
11170
- 0 !== (workInProgressRootRenderLanes & 536870912)
11171
- ? handler === shellBoundary
11172
- : !1;
11173
- }
11174
11206
  function pushDispatcher() {
11175
11207
  var prevDispatcher = ReactSharedInternals.H;
11176
11208
  ReactSharedInternals.H = ContextOnlyDispatcher;
@@ -11183,16 +11215,22 @@ function pushAsyncDispatcher() {
11183
11215
  }
11184
11216
  function renderDidSuspendDelayIfPossible() {
11185
11217
  workInProgressRootExitStatus = 4;
11218
+ workInProgressRootDidSkipSuspendedSiblings ||
11219
+ ((workInProgressRootRenderLanes & 4194176) !==
11220
+ workInProgressRootRenderLanes &&
11221
+ null !== suspenseHandlerStackCursor.current) ||
11222
+ (workInProgressRootIsPrerendering = !0);
11186
11223
  (0 === (workInProgressRootSkippedLanes & 134217727) &&
11187
11224
  0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
11188
11225
  null === workInProgressRoot ||
11189
11226
  markRootSuspended(
11190
11227
  workInProgressRoot,
11191
11228
  workInProgressRootRenderLanes,
11192
- workInProgressDeferredLane
11229
+ workInProgressDeferredLane,
11230
+ !1
11193
11231
  );
11194
11232
  }
11195
- function renderRootSync(root, lanes) {
11233
+ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
11196
11234
  var prevExecutionContext = executionContext;
11197
11235
  executionContext |= 2;
11198
11236
  var prevDispatcher = pushDispatcher(),
@@ -11229,6 +11267,13 @@ function renderRootSync(root, lanes) {
11229
11267
  workInProgressSuspendedReason = 0;
11230
11268
  workInProgressThrownValue = null;
11231
11269
  throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
11270
+ if (
11271
+ shouldYieldForPrerendering &&
11272
+ workInProgressRootIsPrerendering
11273
+ ) {
11274
+ memoizedUpdaters = 0;
11275
+ break a;
11276
+ }
11232
11277
  break;
11233
11278
  default:
11234
11279
  (reason = workInProgressSuspendedReason),
@@ -11240,8 +11285,8 @@ function renderRootSync(root, lanes) {
11240
11285
  workLoopSync();
11241
11286
  memoizedUpdaters = workInProgressRootExitStatus;
11242
11287
  break;
11243
- } catch (thrownValue$174) {
11244
- handleThrow(root, thrownValue$174);
11288
+ } catch (thrownValue$179) {
11289
+ handleThrow(root, thrownValue$179);
11245
11290
  }
11246
11291
  while (1);
11247
11292
  lanes && root.shellSuspendCounter++;
@@ -11275,7 +11320,8 @@ function renderRootConcurrent(root, lanes) {
11275
11320
  workInProgressTransitions = null;
11276
11321
  workInProgressRootRenderTargetTime = now$1() + 500;
11277
11322
  prepareFreshStack(root, lanes);
11278
- } else checkIfRootIsPrerendering(root, lanes);
11323
+ } else
11324
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
11279
11325
  markRenderStarted(lanes);
11280
11326
  a: do
11281
11327
  try {
@@ -11361,8 +11407,8 @@ function renderRootConcurrent(root, lanes) {
11361
11407
  }
11362
11408
  workLoopConcurrent();
11363
11409
  break;
11364
- } catch (thrownValue$176) {
11365
- handleThrow(root, thrownValue$176);
11410
+ } catch (thrownValue$181) {
11411
+ handleThrow(root, thrownValue$181);
11366
11412
  }
11367
11413
  while (1);
11368
11414
  lastContextDependency = currentlyRenderingFiber = null;
@@ -11438,7 +11484,12 @@ function replaySuspendedUnitOfWork(unitOfWork) {
11438
11484
  unitOfWork.memoizedProps = unitOfWork.pendingProps;
11439
11485
  null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
11440
11486
  }
11441
- function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) {
11487
+ function throwAndUnwindWorkLoop(
11488
+ root,
11489
+ unitOfWork,
11490
+ thrownValue,
11491
+ suspendedReason
11492
+ ) {
11442
11493
  lastContextDependency = currentlyRenderingFiber = null;
11443
11494
  resetHooksOnUnwind(unitOfWork);
11444
11495
  thenableState$1 = null;
@@ -11472,9 +11523,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) {
11472
11523
  workInProgress = null;
11473
11524
  return;
11474
11525
  }
11475
- unitOfWork.flags & 32768
11476
- ? unwindUnitOfWork(unitOfWork, !0)
11477
- : completeUnitOfWork(unitOfWork);
11526
+ if (unitOfWork.flags & 32768) {
11527
+ if (isHydrating || 1 === suspendedReason) root = !0;
11528
+ else if (
11529
+ workInProgressRootIsPrerendering ||
11530
+ 0 !== (workInProgressRootRenderLanes & 536870912)
11531
+ )
11532
+ root = !1;
11533
+ else if (
11534
+ ((workInProgressRootDidSkipSuspendedSiblings = root = !0),
11535
+ 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
11536
+ )
11537
+ (suspendedReason = suspenseHandlerStackCursor.current),
11538
+ null !== suspendedReason &&
11539
+ 13 === suspendedReason.tag &&
11540
+ (suspendedReason.flags |= 16384);
11541
+ unwindUnitOfWork(unitOfWork, root);
11542
+ } else completeUnitOfWork(unitOfWork);
11478
11543
  }
11479
11544
  function completeUnitOfWork(unitOfWork) {
11480
11545
  var completedWork = unitOfWork;
@@ -11576,7 +11641,9 @@ function commitRootImpl(
11576
11641
  transitions,
11577
11642
  didIncludeRenderPhaseUpdate,
11578
11643
  renderPriorityLevel,
11579
- spawnedLane
11644
+ spawnedLane,
11645
+ updatedLanes,
11646
+ suspendedRetryLanes
11580
11647
  ) {
11581
11648
  do flushPassiveEffects();
11582
11649
  while (null !== rootWithPendingPassiveEffects);
@@ -11599,7 +11666,9 @@ function commitRootImpl(
11599
11666
  root,
11600
11667
  didIncludeRenderPhaseUpdate,
11601
11668
  remainingLanes,
11602
- spawnedLane
11669
+ spawnedLane,
11670
+ updatedLanes,
11671
+ suspendedRetryLanes
11603
11672
  );
11604
11673
  root === workInProgressRoot &&
11605
11674
  ((workInProgress = workInProgressRoot = null),
@@ -11616,33 +11685,33 @@ function commitRootImpl(
11616
11685
  }));
11617
11686
  commitStartTime = now();
11618
11687
  transitions = 0 !== (finishedWork.flags & 15990);
11619
- if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
11620
- transitions = ReactSharedInternals.T;
11621
- ReactSharedInternals.T = null;
11622
- spawnedLane = ReactDOMSharedInternals.p;
11623
- ReactDOMSharedInternals.p = 2;
11624
- var prevExecutionContext = executionContext;
11625
- executionContext |= 4;
11626
- commitBeforeMutationEffects(root, finishedWork);
11627
- commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate);
11628
- restoreSelection(selectionInformation, root.containerInfo);
11629
- _enabled = !!eventsEnabled;
11630
- selectionInformation = eventsEnabled = null;
11631
- root.current = finishedWork;
11632
- null !== injectedProfilingHooks &&
11633
- "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
11634
- injectedProfilingHooks.markLayoutEffectsStarted(
11635
- didIncludeRenderPhaseUpdate
11636
- );
11637
- commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate);
11638
- null !== injectedProfilingHooks &&
11639
- "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
11640
- injectedProfilingHooks.markLayoutEffectsStopped();
11641
- requestPaint();
11642
- executionContext = prevExecutionContext;
11643
- ReactDOMSharedInternals.p = spawnedLane;
11644
- ReactSharedInternals.T = transitions;
11645
- } else root.current = finishedWork;
11688
+ 0 !== (finishedWork.subtreeFlags & 15990) || transitions
11689
+ ? ((transitions = ReactSharedInternals.T),
11690
+ (ReactSharedInternals.T = null),
11691
+ (spawnedLane = ReactDOMSharedInternals.p),
11692
+ (ReactDOMSharedInternals.p = 2),
11693
+ (updatedLanes = executionContext),
11694
+ (executionContext |= 4),
11695
+ commitBeforeMutationEffects(root, finishedWork),
11696
+ commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate),
11697
+ restoreSelection(selectionInformation, root.containerInfo),
11698
+ (_enabled = !!eventsEnabled),
11699
+ (selectionInformation = eventsEnabled = null),
11700
+ (root.current = finishedWork),
11701
+ null !== injectedProfilingHooks &&
11702
+ "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
11703
+ injectedProfilingHooks.markLayoutEffectsStarted(
11704
+ didIncludeRenderPhaseUpdate
11705
+ ),
11706
+ commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
11707
+ null !== injectedProfilingHooks &&
11708
+ "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
11709
+ injectedProfilingHooks.markLayoutEffectsStopped(),
11710
+ requestPaint(),
11711
+ (executionContext = updatedLanes),
11712
+ (ReactDOMSharedInternals.p = spawnedLane),
11713
+ (ReactSharedInternals.T = transitions))
11714
+ : (root.current = finishedWork);
11646
11715
  rootDoesHavePassiveEffects
11647
11716
  ? ((rootDoesHavePassiveEffects = !1),
11648
11717
  (rootWithPendingPassiveEffects = root),
@@ -11683,7 +11752,7 @@ function releaseRootPooledCache(root, remainingLanes) {
11683
11752
  }
11684
11753
  function flushPassiveEffects() {
11685
11754
  if (null !== rootWithPendingPassiveEffects) {
11686
- var root$180 = rootWithPendingPassiveEffects,
11755
+ var root$185 = rootWithPendingPassiveEffects,
11687
11756
  remainingLanes = pendingPassiveEffectsRemainingLanes;
11688
11757
  pendingPassiveEffectsRemainingLanes = 0;
11689
11758
  var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
@@ -11733,7 +11802,7 @@ function flushPassiveEffects() {
11733
11802
  } finally {
11734
11803
  (ReactDOMSharedInternals.p = previousPriority),
11735
11804
  (ReactSharedInternals.T = prevTransition),
11736
- releaseRootPooledCache(root$180, remainingLanes);
11805
+ releaseRootPooledCache(root$185, remainingLanes);
11737
11806
  }
11738
11807
  }
11739
11808
  return !1;
@@ -11883,14 +11952,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11883
11952
  isFlushingWork = !0;
11884
11953
  do {
11885
11954
  var didPerformSomeWork = !1;
11886
- for (var root$182 = firstScheduledRoot; null !== root$182; ) {
11955
+ for (var root$187 = firstScheduledRoot; null !== root$187; ) {
11887
11956
  if (!onlyLegacy)
11888
11957
  if (0 !== syncTransitionLanes) {
11889
- var pendingLanes = root$182.pendingLanes;
11958
+ var pendingLanes = root$187.pendingLanes;
11890
11959
  if (0 === pendingLanes) var JSCompiler_inline_result = 0;
11891
11960
  else {
11892
- var suspendedLanes = root$182.suspendedLanes,
11893
- pingedLanes = root$182.pingedLanes;
11961
+ var suspendedLanes = root$187.suspendedLanes,
11962
+ pingedLanes = root$187.pingedLanes;
11894
11963
  JSCompiler_inline_result =
11895
11964
  (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
11896
11965
  JSCompiler_inline_result &=
@@ -11904,18 +11973,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11904
11973
  }
11905
11974
  0 !== JSCompiler_inline_result &&
11906
11975
  ((didPerformSomeWork = !0),
11907
- performSyncWorkOnRoot(root$182, JSCompiler_inline_result));
11976
+ performSyncWorkOnRoot(root$187, JSCompiler_inline_result));
11908
11977
  } else
11909
11978
  (JSCompiler_inline_result = workInProgressRootRenderLanes),
11910
11979
  (JSCompiler_inline_result = getNextLanes(
11911
- root$182,
11912
- root$182 === workInProgressRoot ? JSCompiler_inline_result : 0
11980
+ root$187,
11981
+ root$187 === workInProgressRoot ? JSCompiler_inline_result : 0
11913
11982
  )),
11914
11983
  0 === (JSCompiler_inline_result & 3) ||
11915
- checkIfRootIsPrerendering(root$182, JSCompiler_inline_result) ||
11984
+ checkIfRootIsPrerendering(root$187, JSCompiler_inline_result) ||
11916
11985
  ((didPerformSomeWork = !0),
11917
- performSyncWorkOnRoot(root$182, JSCompiler_inline_result));
11918
- root$182 = root$182.next;
11986
+ performSyncWorkOnRoot(root$187, JSCompiler_inline_result));
11987
+ root$187 = root$187.next;
11919
11988
  }
11920
11989
  } while (didPerformSomeWork);
11921
11990
  isFlushingWork = !1;
@@ -11956,12 +12025,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
11956
12025
  0 < lanes;
11957
12026
 
11958
12027
  ) {
11959
- var index$4 = 31 - clz32(lanes),
11960
- lane = 1 << index$4,
11961
- expirationTime = expirationTimes[index$4];
12028
+ var index$5 = 31 - clz32(lanes),
12029
+ lane = 1 << index$5,
12030
+ expirationTime = expirationTimes[index$5];
11962
12031
  if (-1 === expirationTime) {
11963
12032
  if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
11964
- expirationTimes[index$4] = computeExpirationTime(lane, currentTime);
12033
+ expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
11965
12034
  } else expirationTime <= currentTime && (root.expiredLanes |= lane);
11966
12035
  lanes &= ~lane;
11967
12036
  }
@@ -11984,37 +12053,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
11984
12053
  (root.callbackNode = null),
11985
12054
  (root.callbackPriority = 0)
11986
12055
  );
11987
- if (0 !== (suspendedLanes & 3))
11988
- return (
11989
- null !== pingedLanes &&
11990
- null !== pingedLanes &&
11991
- cancelCallback$1(pingedLanes),
11992
- (root.callbackPriority = 2),
11993
- (root.callbackNode = null),
11994
- 2
11995
- );
11996
- currentTime = suspendedLanes & -suspendedLanes;
11997
- if (currentTime === root.callbackPriority) return currentTime;
11998
- null !== pingedLanes && cancelCallback$1(pingedLanes);
11999
- switch (lanesToEventPriority(suspendedLanes)) {
12000
- case 2:
12001
- case 8:
12002
- suspendedLanes = UserBlockingPriority;
12003
- break;
12004
- case 32:
12005
- suspendedLanes = NormalPriority$1;
12006
- break;
12007
- case 268435456:
12008
- suspendedLanes = IdlePriority;
12009
- break;
12010
- default:
12011
- suspendedLanes = NormalPriority$1;
12012
- }
12013
- pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
12014
- suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
12015
- root.callbackPriority = currentTime;
12016
- root.callbackNode = suspendedLanes;
12017
- return currentTime;
12056
+ if (
12057
+ 0 === (suspendedLanes & 3) ||
12058
+ checkIfRootIsPrerendering(root, suspendedLanes)
12059
+ ) {
12060
+ currentTime = suspendedLanes & -suspendedLanes;
12061
+ if (currentTime === root.callbackPriority) return currentTime;
12062
+ null !== pingedLanes && cancelCallback$1(pingedLanes);
12063
+ switch (lanesToEventPriority(suspendedLanes)) {
12064
+ case 2:
12065
+ case 8:
12066
+ suspendedLanes = UserBlockingPriority;
12067
+ break;
12068
+ case 32:
12069
+ suspendedLanes = NormalPriority$1;
12070
+ break;
12071
+ case 268435456:
12072
+ suspendedLanes = IdlePriority;
12073
+ break;
12074
+ default:
12075
+ suspendedLanes = NormalPriority$1;
12076
+ }
12077
+ pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
12078
+ suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
12079
+ root.callbackPriority = currentTime;
12080
+ root.callbackNode = suspendedLanes;
12081
+ return currentTime;
12082
+ }
12083
+ null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
12084
+ root.callbackPriority = 2;
12085
+ root.callbackNode = null;
12086
+ return 2;
12018
12087
  }
12019
12088
  function performWorkOnRootViaSchedulerTask(root, didTimeout) {
12020
12089
  nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -12146,20 +12215,20 @@ function extractEvents$1(
12146
12215
  }
12147
12216
  }
12148
12217
  for (
12149
- var i$jscomp$inline_1519 = 0;
12150
- i$jscomp$inline_1519 < simpleEventPluginEvents.length;
12151
- i$jscomp$inline_1519++
12218
+ var i$jscomp$inline_1528 = 0;
12219
+ i$jscomp$inline_1528 < simpleEventPluginEvents.length;
12220
+ i$jscomp$inline_1528++
12152
12221
  ) {
12153
- var eventName$jscomp$inline_1520 =
12154
- simpleEventPluginEvents[i$jscomp$inline_1519],
12155
- domEventName$jscomp$inline_1521 =
12156
- eventName$jscomp$inline_1520.toLowerCase(),
12157
- capitalizedEvent$jscomp$inline_1522 =
12158
- eventName$jscomp$inline_1520[0].toUpperCase() +
12159
- eventName$jscomp$inline_1520.slice(1);
12222
+ var eventName$jscomp$inline_1529 =
12223
+ simpleEventPluginEvents[i$jscomp$inline_1528],
12224
+ domEventName$jscomp$inline_1530 =
12225
+ eventName$jscomp$inline_1529.toLowerCase(),
12226
+ capitalizedEvent$jscomp$inline_1531 =
12227
+ eventName$jscomp$inline_1529[0].toUpperCase() +
12228
+ eventName$jscomp$inline_1529.slice(1);
12160
12229
  registerSimpleEvent(
12161
- domEventName$jscomp$inline_1521,
12162
- "on" + capitalizedEvent$jscomp$inline_1522
12230
+ domEventName$jscomp$inline_1530,
12231
+ "on" + capitalizedEvent$jscomp$inline_1531
12163
12232
  );
12164
12233
  }
12165
12234
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -13342,34 +13411,34 @@ function setInitialProperties(domElement, tag, props) {
13342
13411
  defaultChecked = null;
13343
13412
  for (hasSrc in props)
13344
13413
  if (props.hasOwnProperty(hasSrc)) {
13345
- var propValue$196 = props[hasSrc];
13346
- if (null != propValue$196)
13414
+ var propValue$201 = props[hasSrc];
13415
+ if (null != propValue$201)
13347
13416
  switch (hasSrc) {
13348
13417
  case "name":
13349
- hasSrcSet = propValue$196;
13418
+ hasSrcSet = propValue$201;
13350
13419
  break;
13351
13420
  case "type":
13352
- propValue = propValue$196;
13421
+ propValue = propValue$201;
13353
13422
  break;
13354
13423
  case "checked":
13355
- checked = propValue$196;
13424
+ checked = propValue$201;
13356
13425
  break;
13357
13426
  case "defaultChecked":
13358
- defaultChecked = propValue$196;
13427
+ defaultChecked = propValue$201;
13359
13428
  break;
13360
13429
  case "value":
13361
- propKey = propValue$196;
13430
+ propKey = propValue$201;
13362
13431
  break;
13363
13432
  case "defaultValue":
13364
- defaultValue = propValue$196;
13433
+ defaultValue = propValue$201;
13365
13434
  break;
13366
13435
  case "children":
13367
13436
  case "dangerouslySetInnerHTML":
13368
- if (null != propValue$196)
13437
+ if (null != propValue$201)
13369
13438
  throw Error(formatProdErrorMessage(137, tag));
13370
13439
  break;
13371
13440
  default:
13372
- setProp(domElement, tag, hasSrc, propValue$196, props, null);
13441
+ setProp(domElement, tag, hasSrc, propValue$201, props, null);
13373
13442
  }
13374
13443
  }
13375
13444
  initInput(
@@ -13506,14 +13575,14 @@ function setInitialProperties(domElement, tag, props) {
13506
13575
  return;
13507
13576
  default:
13508
13577
  if (isCustomElement(tag)) {
13509
- for (propValue$196 in props)
13510
- props.hasOwnProperty(propValue$196) &&
13511
- ((hasSrc = props[propValue$196]),
13578
+ for (propValue$201 in props)
13579
+ props.hasOwnProperty(propValue$201) &&
13580
+ ((hasSrc = props[propValue$201]),
13512
13581
  void 0 !== hasSrc &&
13513
13582
  setPropOnCustomElement(
13514
13583
  domElement,
13515
13584
  tag,
13516
- propValue$196,
13585
+ propValue$201,
13517
13586
  hasSrc,
13518
13587
  props,
13519
13588
  void 0
@@ -13561,14 +13630,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13561
13630
  setProp(domElement, tag, propKey, null, nextProps, lastProp);
13562
13631
  }
13563
13632
  }
13564
- for (var propKey$213 in nextProps) {
13565
- var propKey = nextProps[propKey$213];
13566
- lastProp = lastProps[propKey$213];
13633
+ for (var propKey$218 in nextProps) {
13634
+ var propKey = nextProps[propKey$218];
13635
+ lastProp = lastProps[propKey$218];
13567
13636
  if (
13568
- nextProps.hasOwnProperty(propKey$213) &&
13637
+ nextProps.hasOwnProperty(propKey$218) &&
13569
13638
  (null != propKey || null != lastProp)
13570
13639
  )
13571
- switch (propKey$213) {
13640
+ switch (propKey$218) {
13572
13641
  case "type":
13573
13642
  type = propKey;
13574
13643
  break;
@@ -13597,7 +13666,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13597
13666
  setProp(
13598
13667
  domElement,
13599
13668
  tag,
13600
- propKey$213,
13669
+ propKey$218,
13601
13670
  propKey,
13602
13671
  nextProps,
13603
13672
  lastProp
@@ -13616,7 +13685,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13616
13685
  );
13617
13686
  return;
13618
13687
  case "select":
13619
- propKey = value = defaultValue = propKey$213 = null;
13688
+ propKey = value = defaultValue = propKey$218 = null;
13620
13689
  for (type in lastProps)
13621
13690
  if (
13622
13691
  ((lastDefaultValue = lastProps[type]),
@@ -13647,7 +13716,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13647
13716
  )
13648
13717
  switch (name) {
13649
13718
  case "value":
13650
- propKey$213 = type;
13719
+ propKey$218 = type;
13651
13720
  break;
13652
13721
  case "defaultValue":
13653
13722
  defaultValue = type;
@@ -13668,15 +13737,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13668
13737
  tag = defaultValue;
13669
13738
  lastProps = value;
13670
13739
  nextProps = propKey;
13671
- null != propKey$213
13672
- ? updateOptions(domElement, !!lastProps, propKey$213, !1)
13740
+ null != propKey$218
13741
+ ? updateOptions(domElement, !!lastProps, propKey$218, !1)
13673
13742
  : !!nextProps !== !!lastProps &&
13674
13743
  (null != tag
13675
13744
  ? updateOptions(domElement, !!lastProps, tag, !0)
13676
13745
  : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
13677
13746
  return;
13678
13747
  case "textarea":
13679
- propKey = propKey$213 = null;
13748
+ propKey = propKey$218 = null;
13680
13749
  for (defaultValue in lastProps)
13681
13750
  if (
13682
13751
  ((name = lastProps[defaultValue]),
@@ -13700,7 +13769,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13700
13769
  )
13701
13770
  switch (value) {
13702
13771
  case "value":
13703
- propKey$213 = name;
13772
+ propKey$218 = name;
13704
13773
  break;
13705
13774
  case "defaultValue":
13706
13775
  propKey = name;
@@ -13714,17 +13783,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13714
13783
  name !== type &&
13715
13784
  setProp(domElement, tag, value, name, nextProps, type);
13716
13785
  }
13717
- updateTextarea(domElement, propKey$213, propKey);
13786
+ updateTextarea(domElement, propKey$218, propKey);
13718
13787
  return;
13719
13788
  case "option":
13720
- for (var propKey$229 in lastProps)
13789
+ for (var propKey$234 in lastProps)
13721
13790
  if (
13722
- ((propKey$213 = lastProps[propKey$229]),
13723
- lastProps.hasOwnProperty(propKey$229) &&
13724
- null != propKey$213 &&
13725
- !nextProps.hasOwnProperty(propKey$229))
13791
+ ((propKey$218 = lastProps[propKey$234]),
13792
+ lastProps.hasOwnProperty(propKey$234) &&
13793
+ null != propKey$218 &&
13794
+ !nextProps.hasOwnProperty(propKey$234))
13726
13795
  )
13727
- switch (propKey$229) {
13796
+ switch (propKey$234) {
13728
13797
  case "selected":
13729
13798
  domElement.selected = !1;
13730
13799
  break;
@@ -13732,33 +13801,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13732
13801
  setProp(
13733
13802
  domElement,
13734
13803
  tag,
13735
- propKey$229,
13804
+ propKey$234,
13736
13805
  null,
13737
13806
  nextProps,
13738
- propKey$213
13807
+ propKey$218
13739
13808
  );
13740
13809
  }
13741
13810
  for (lastDefaultValue in nextProps)
13742
13811
  if (
13743
- ((propKey$213 = nextProps[lastDefaultValue]),
13812
+ ((propKey$218 = nextProps[lastDefaultValue]),
13744
13813
  (propKey = lastProps[lastDefaultValue]),
13745
13814
  nextProps.hasOwnProperty(lastDefaultValue) &&
13746
- propKey$213 !== propKey &&
13747
- (null != propKey$213 || null != propKey))
13815
+ propKey$218 !== propKey &&
13816
+ (null != propKey$218 || null != propKey))
13748
13817
  )
13749
13818
  switch (lastDefaultValue) {
13750
13819
  case "selected":
13751
13820
  domElement.selected =
13752
- propKey$213 &&
13753
- "function" !== typeof propKey$213 &&
13754
- "symbol" !== typeof propKey$213;
13821
+ propKey$218 &&
13822
+ "function" !== typeof propKey$218 &&
13823
+ "symbol" !== typeof propKey$218;
13755
13824
  break;
13756
13825
  default:
13757
13826
  setProp(
13758
13827
  domElement,
13759
13828
  tag,
13760
13829
  lastDefaultValue,
13761
- propKey$213,
13830
+ propKey$218,
13762
13831
  nextProps,
13763
13832
  propKey
13764
13833
  );
@@ -13779,24 +13848,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13779
13848
  case "track":
13780
13849
  case "wbr":
13781
13850
  case "menuitem":
13782
- for (var propKey$234 in lastProps)
13783
- (propKey$213 = lastProps[propKey$234]),
13784
- lastProps.hasOwnProperty(propKey$234) &&
13785
- null != propKey$213 &&
13786
- !nextProps.hasOwnProperty(propKey$234) &&
13787
- setProp(domElement, tag, propKey$234, null, nextProps, propKey$213);
13851
+ for (var propKey$239 in lastProps)
13852
+ (propKey$218 = lastProps[propKey$239]),
13853
+ lastProps.hasOwnProperty(propKey$239) &&
13854
+ null != propKey$218 &&
13855
+ !nextProps.hasOwnProperty(propKey$239) &&
13856
+ setProp(domElement, tag, propKey$239, null, nextProps, propKey$218);
13788
13857
  for (checked in nextProps)
13789
13858
  if (
13790
- ((propKey$213 = nextProps[checked]),
13859
+ ((propKey$218 = nextProps[checked]),
13791
13860
  (propKey = lastProps[checked]),
13792
13861
  nextProps.hasOwnProperty(checked) &&
13793
- propKey$213 !== propKey &&
13794
- (null != propKey$213 || null != propKey))
13862
+ propKey$218 !== propKey &&
13863
+ (null != propKey$218 || null != propKey))
13795
13864
  )
13796
13865
  switch (checked) {
13797
13866
  case "children":
13798
13867
  case "dangerouslySetInnerHTML":
13799
- if (null != propKey$213)
13868
+ if (null != propKey$218)
13800
13869
  throw Error(formatProdErrorMessage(137, tag));
13801
13870
  break;
13802
13871
  default:
@@ -13804,7 +13873,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13804
13873
  domElement,
13805
13874
  tag,
13806
13875
  checked,
13807
- propKey$213,
13876
+ propKey$218,
13808
13877
  nextProps,
13809
13878
  propKey
13810
13879
  );
@@ -13812,49 +13881,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13812
13881
  return;
13813
13882
  default:
13814
13883
  if (isCustomElement(tag)) {
13815
- for (var propKey$239 in lastProps)
13816
- (propKey$213 = lastProps[propKey$239]),
13817
- lastProps.hasOwnProperty(propKey$239) &&
13818
- void 0 !== propKey$213 &&
13819
- !nextProps.hasOwnProperty(propKey$239) &&
13884
+ for (var propKey$244 in lastProps)
13885
+ (propKey$218 = lastProps[propKey$244]),
13886
+ lastProps.hasOwnProperty(propKey$244) &&
13887
+ void 0 !== propKey$218 &&
13888
+ !nextProps.hasOwnProperty(propKey$244) &&
13820
13889
  setPropOnCustomElement(
13821
13890
  domElement,
13822
13891
  tag,
13823
- propKey$239,
13892
+ propKey$244,
13824
13893
  void 0,
13825
13894
  nextProps,
13826
- propKey$213
13895
+ propKey$218
13827
13896
  );
13828
13897
  for (defaultChecked in nextProps)
13829
- (propKey$213 = nextProps[defaultChecked]),
13898
+ (propKey$218 = nextProps[defaultChecked]),
13830
13899
  (propKey = lastProps[defaultChecked]),
13831
13900
  !nextProps.hasOwnProperty(defaultChecked) ||
13832
- propKey$213 === propKey ||
13833
- (void 0 === propKey$213 && void 0 === propKey) ||
13901
+ propKey$218 === propKey ||
13902
+ (void 0 === propKey$218 && void 0 === propKey) ||
13834
13903
  setPropOnCustomElement(
13835
13904
  domElement,
13836
13905
  tag,
13837
13906
  defaultChecked,
13838
- propKey$213,
13907
+ propKey$218,
13839
13908
  nextProps,
13840
13909
  propKey
13841
13910
  );
13842
13911
  return;
13843
13912
  }
13844
13913
  }
13845
- for (var propKey$244 in lastProps)
13846
- (propKey$213 = lastProps[propKey$244]),
13847
- lastProps.hasOwnProperty(propKey$244) &&
13848
- null != propKey$213 &&
13849
- !nextProps.hasOwnProperty(propKey$244) &&
13850
- setProp(domElement, tag, propKey$244, null, nextProps, propKey$213);
13914
+ for (var propKey$249 in lastProps)
13915
+ (propKey$218 = lastProps[propKey$249]),
13916
+ lastProps.hasOwnProperty(propKey$249) &&
13917
+ null != propKey$218 &&
13918
+ !nextProps.hasOwnProperty(propKey$249) &&
13919
+ setProp(domElement, tag, propKey$249, null, nextProps, propKey$218);
13851
13920
  for (lastProp in nextProps)
13852
- (propKey$213 = nextProps[lastProp]),
13921
+ (propKey$218 = nextProps[lastProp]),
13853
13922
  (propKey = lastProps[lastProp]),
13854
13923
  !nextProps.hasOwnProperty(lastProp) ||
13855
- propKey$213 === propKey ||
13856
- (null == propKey$213 && null == propKey) ||
13857
- setProp(domElement, tag, lastProp, propKey$213, nextProps, propKey);
13924
+ propKey$218 === propKey ||
13925
+ (null == propKey$218 && null == propKey) ||
13926
+ setProp(domElement, tag, lastProp, propKey$218, nextProps, propKey);
13858
13927
  }
13859
13928
  var eventsEnabled = null,
13860
13929
  selectionInformation = null;
@@ -14399,26 +14468,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14399
14468
  "string" === typeof pendingProps.precedence
14400
14469
  ) {
14401
14470
  type = getStyleKey(pendingProps.href);
14402
- var styles$252 = getResourcesFromRoot(
14471
+ var styles$257 = getResourcesFromRoot(
14403
14472
  JSCompiler_inline_result
14404
14473
  ).hoistableStyles,
14405
- resource$253 = styles$252.get(type);
14406
- resource$253 ||
14474
+ resource$258 = styles$257.get(type);
14475
+ resource$258 ||
14407
14476
  ((JSCompiler_inline_result =
14408
14477
  JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
14409
- (resource$253 = {
14478
+ (resource$258 = {
14410
14479
  type: "stylesheet",
14411
14480
  instance: null,
14412
14481
  count: 0,
14413
14482
  state: { loading: 0, preload: null }
14414
14483
  }),
14415
- styles$252.set(type, resource$253),
14416
- (styles$252 = JSCompiler_inline_result.querySelector(
14484
+ styles$257.set(type, resource$258),
14485
+ (styles$257 = JSCompiler_inline_result.querySelector(
14417
14486
  getStylesheetSelectorFromKey(type)
14418
14487
  )) &&
14419
- !styles$252._p &&
14420
- ((resource$253.instance = styles$252),
14421
- (resource$253.state.loading = 5)),
14488
+ !styles$257._p &&
14489
+ ((resource$258.instance = styles$257),
14490
+ (resource$258.state.loading = 5)),
14422
14491
  preloadPropsMap.has(type) ||
14423
14492
  ((pendingProps = {
14424
14493
  rel: "preload",
@@ -14431,16 +14500,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14431
14500
  referrerPolicy: pendingProps.referrerPolicy
14432
14501
  }),
14433
14502
  preloadPropsMap.set(type, pendingProps),
14434
- styles$252 ||
14503
+ styles$257 ||
14435
14504
  preloadStylesheet(
14436
14505
  JSCompiler_inline_result,
14437
14506
  type,
14438
14507
  pendingProps,
14439
- resource$253.state
14508
+ resource$258.state
14440
14509
  )));
14441
14510
  if (currentProps && null === currentResource)
14442
14511
  throw Error(formatProdErrorMessage(528, ""));
14443
- return resource$253;
14512
+ return resource$258;
14444
14513
  }
14445
14514
  if (currentProps && null !== currentResource)
14446
14515
  throw Error(formatProdErrorMessage(529, ""));
@@ -14537,37 +14606,37 @@ function acquireResource(hoistableRoot, resource, props) {
14537
14606
  return (resource.instance = instance);
14538
14607
  case "stylesheet":
14539
14608
  styleProps = getStyleKey(props.href);
14540
- var instance$258 = hoistableRoot.querySelector(
14609
+ var instance$263 = hoistableRoot.querySelector(
14541
14610
  getStylesheetSelectorFromKey(styleProps)
14542
14611
  );
14543
- if (instance$258)
14612
+ if (instance$263)
14544
14613
  return (
14545
14614
  (resource.state.loading |= 4),
14546
- (resource.instance = instance$258),
14547
- markNodeAsHoistable(instance$258),
14548
- instance$258
14615
+ (resource.instance = instance$263),
14616
+ markNodeAsHoistable(instance$263),
14617
+ instance$263
14549
14618
  );
14550
14619
  instance = stylesheetPropsFromRawProps(props);
14551
14620
  (styleProps = preloadPropsMap.get(styleProps)) &&
14552
14621
  adoptPreloadPropsForStylesheet(instance, styleProps);
14553
- instance$258 = (
14622
+ instance$263 = (
14554
14623
  hoistableRoot.ownerDocument || hoistableRoot
14555
14624
  ).createElement("link");
14556
- markNodeAsHoistable(instance$258);
14557
- var linkInstance = instance$258;
14625
+ markNodeAsHoistable(instance$263);
14626
+ var linkInstance = instance$263;
14558
14627
  linkInstance._p = new Promise(function (resolve, reject) {
14559
14628
  linkInstance.onload = resolve;
14560
14629
  linkInstance.onerror = reject;
14561
14630
  });
14562
- setInitialProperties(instance$258, "link", instance);
14631
+ setInitialProperties(instance$263, "link", instance);
14563
14632
  resource.state.loading |= 4;
14564
- insertStylesheet(instance$258, props.precedence, hoistableRoot);
14565
- return (resource.instance = instance$258);
14633
+ insertStylesheet(instance$263, props.precedence, hoistableRoot);
14634
+ return (resource.instance = instance$263);
14566
14635
  case "script":
14567
- instance$258 = getScriptKey(props.src);
14636
+ instance$263 = getScriptKey(props.src);
14568
14637
  if (
14569
14638
  (styleProps = hoistableRoot.querySelector(
14570
- getScriptSelectorFromKey(instance$258)
14639
+ getScriptSelectorFromKey(instance$263)
14571
14640
  ))
14572
14641
  )
14573
14642
  return (
@@ -14576,7 +14645,7 @@ function acquireResource(hoistableRoot, resource, props) {
14576
14645
  styleProps
14577
14646
  );
14578
14647
  instance = props;
14579
- if ((styleProps = preloadPropsMap.get(instance$258)))
14648
+ if ((styleProps = preloadPropsMap.get(instance$263)))
14580
14649
  (instance = assign({}, props)),
14581
14650
  adoptPreloadPropsForScript(instance, styleProps);
14582
14651
  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -15619,16 +15688,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15619
15688
  0 === i && attemptExplicitHydrationTarget(target);
15620
15689
  }
15621
15690
  };
15622
- var isomorphicReactPackageVersion$jscomp$inline_1768 = React.version;
15691
+ var isomorphicReactPackageVersion$jscomp$inline_1777 = React.version;
15623
15692
  if (
15624
- "19.0.0-rc-7ac8e612-20241113" !==
15625
- isomorphicReactPackageVersion$jscomp$inline_1768
15693
+ "19.0.0-rc-b01722d5-20241114" !==
15694
+ isomorphicReactPackageVersion$jscomp$inline_1777
15626
15695
  )
15627
15696
  throw Error(
15628
15697
  formatProdErrorMessage(
15629
15698
  527,
15630
- isomorphicReactPackageVersion$jscomp$inline_1768,
15631
- "19.0.0-rc-7ac8e612-20241113"
15699
+ isomorphicReactPackageVersion$jscomp$inline_1777,
15700
+ "19.0.0-rc-b01722d5-20241114"
15632
15701
  )
15633
15702
  );
15634
15703
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15648,18 +15717,18 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15648
15717
  null === componentOrElement ? null : componentOrElement.stateNode;
15649
15718
  return componentOrElement;
15650
15719
  };
15651
- var internals$jscomp$inline_1775 = {
15720
+ var internals$jscomp$inline_1784 = {
15652
15721
  bundleType: 0,
15653
- version: "19.0.0-rc-7ac8e612-20241113",
15722
+ version: "19.0.0-rc-b01722d5-20241114",
15654
15723
  rendererPackageName: "react-dom",
15655
15724
  currentDispatcherRef: ReactSharedInternals,
15656
15725
  findFiberByHostInstance: getClosestInstanceFromNode,
15657
- reconcilerVersion: "19.0.0-rc-7ac8e612-20241113",
15726
+ reconcilerVersion: "19.0.0-rc-b01722d5-20241114",
15658
15727
  getLaneLabelMap: function () {
15659
15728
  for (
15660
- var map = new Map(), lane = 1, index$275 = 0;
15661
- 31 > index$275;
15662
- index$275++
15729
+ var map = new Map(), lane = 1, index$280 = 0;
15730
+ 31 > index$280;
15731
+ index$280++
15663
15732
  ) {
15664
15733
  var label = getLabelForLane(lane);
15665
15734
  map.set(lane, label);
@@ -15672,16 +15741,16 @@ var internals$jscomp$inline_1775 = {
15672
15741
  }
15673
15742
  };
15674
15743
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15675
- var hook$jscomp$inline_2209 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15744
+ var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15676
15745
  if (
15677
- !hook$jscomp$inline_2209.isDisabled &&
15678
- hook$jscomp$inline_2209.supportsFiber
15746
+ !hook$jscomp$inline_2221.isDisabled &&
15747
+ hook$jscomp$inline_2221.supportsFiber
15679
15748
  )
15680
15749
  try {
15681
- (rendererID = hook$jscomp$inline_2209.inject(
15682
- internals$jscomp$inline_1775
15750
+ (rendererID = hook$jscomp$inline_2221.inject(
15751
+ internals$jscomp$inline_1784
15683
15752
  )),
15684
- (injectedHook = hook$jscomp$inline_2209);
15753
+ (injectedHook = hook$jscomp$inline_2221);
15685
15754
  } catch (err) {}
15686
15755
  }
15687
15756
  function noop() {}
@@ -15934,7 +16003,7 @@ exports.useFormState = function (action, initialState, permalink) {
15934
16003
  exports.useFormStatus = function () {
15935
16004
  return ReactSharedInternals.H.useHostTransitionStatus();
15936
16005
  };
15937
- exports.version = "19.0.0-rc-7ac8e612-20241113";
16006
+ exports.version = "19.0.0-rc-b01722d5-20241114";
15938
16007
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15939
16008
  "function" ===
15940
16009
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&