react-dom 19.0.0-rc-380f5d67-20241113 → 19.0.0-rc-e1ef8c95-20241115

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$298;
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_434 = "oninput" in document;
2094
+ if (!isSupported$jscomp$inline_434) {
2095
+ var element$jscomp$inline_435 = document.createElement("div");
2096
+ element$jscomp$inline_435.setAttribute("oninput", "return;");
2097
+ isSupported$jscomp$inline_434 =
2098
+ "function" === typeof element$jscomp$inline_435.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$298 = isSupported$jscomp$inline_434;
2101
+ } else JSCompiler_inline_result$jscomp$298 = !1;
2078
2102
  isInputEventSupported =
2079
- JSCompiler_inline_result$jscomp$294 &&
2103
+ JSCompiler_inline_result$jscomp$298 &&
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,24 +10792,29 @@ 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);
10774
- else {
10812
+ if (0 === exitStatus) {
10813
+ workInProgressRootIsPrerendering &&
10814
+ !shouldTimeSlice &&
10815
+ markRootSuspended(root$jscomp$0, lanes, 0, !1);
10816
+ break;
10817
+ } else {
10775
10818
  forceSync = root$jscomp$0.current.alternate;
10776
10819
  if (
10777
10820
  renderWasConcurrent &&
@@ -10830,25 +10873,25 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10830
10873
  }
10831
10874
  if (1 === exitStatus) {
10832
10875
  prepareFreshStack(root$jscomp$0, 0);
10833
- markRootSuspended(root$jscomp$0, lanes, 0);
10876
+ markRootSuspended(root$jscomp$0, lanes, 0, !0);
10834
10877
  break;
10835
10878
  }
10836
10879
  a: {
10837
- renderWasConcurrent = root$jscomp$0;
10880
+ shouldTimeSlice = root$jscomp$0;
10838
10881
  switch (exitStatus) {
10839
10882
  case 0:
10840
10883
  case 1:
10841
10884
  throw Error(formatProdErrorMessage(345));
10842
10885
  case 4:
10843
- if ((lanes & 4194176) === lanes) {
10844
- markRootSuspended(
10845
- renderWasConcurrent,
10846
- lanes,
10847
- workInProgressDeferredLane
10848
- );
10849
- break a;
10850
- }
10851
- break;
10886
+ if ((lanes & 4194176) !== lanes) break;
10887
+ case 6:
10888
+ markRootSuspended(
10889
+ shouldTimeSlice,
10890
+ lanes,
10891
+ workInProgressDeferredLane,
10892
+ !workInProgressRootDidSkipSuspendedSiblings
10893
+ );
10894
+ break a;
10852
10895
  case 2:
10853
10896
  workInProgressRootRecoverableErrors = null;
10854
10897
  break;
@@ -10858,23 +10901,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10858
10901
  default:
10859
10902
  throw Error(formatProdErrorMessage(329));
10860
10903
  }
10861
- renderWasConcurrent.finishedWork = forceSync;
10862
- renderWasConcurrent.finishedLanes = lanes;
10904
+ shouldTimeSlice.finishedWork = forceSync;
10905
+ shouldTimeSlice.finishedLanes = lanes;
10863
10906
  if (
10864
10907
  (lanes & 62914560) === lanes &&
10865
- ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()),
10866
- 10 < exitStatus)
10908
+ ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()),
10909
+ 10 < renderWasConcurrent)
10867
10910
  ) {
10868
10911
  markRootSuspended(
10869
- renderWasConcurrent,
10912
+ shouldTimeSlice,
10870
10913
  lanes,
10871
- workInProgressDeferredLane
10914
+ workInProgressDeferredLane,
10915
+ !workInProgressRootDidSkipSuspendedSiblings
10872
10916
  );
10873
- if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
10874
- renderWasConcurrent.timeoutHandle = scheduleTimeout(
10917
+ if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
10918
+ shouldTimeSlice.timeoutHandle = scheduleTimeout(
10875
10919
  commitRootWhenReady.bind(
10876
10920
  null,
10877
- renderWasConcurrent,
10921
+ shouldTimeSlice,
10878
10922
  forceSync,
10879
10923
  workInProgressRootRecoverableErrors,
10880
10924
  workInProgressTransitions,
@@ -10888,12 +10932,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
10888
10932
  -0,
10889
10933
  0
10890
10934
  ),
10891
- exitStatus
10935
+ renderWasConcurrent
10892
10936
  );
10893
10937
  break a;
10894
10938
  }
10895
10939
  commitRootWhenReady(
10896
- renderWasConcurrent,
10940
+ shouldTimeSlice,
10897
10941
  forceSync,
10898
10942
  workInProgressRootRecoverableErrors,
10899
10943
  workInProgressTransitions,
@@ -10936,11 +10980,8 @@ function commitRootWhenReady(
10936
10980
  completedRenderStartTime,
10937
10981
  completedRenderEndTime
10938
10982
  ) {
10939
- didSkipSuspendedSiblings = finishedWork.subtreeFlags;
10940
- if (
10941
- didSkipSuspendedSiblings & 8192 ||
10942
- 16785408 === (didSkipSuspendedSiblings & 16785408)
10943
- )
10983
+ var subtreeFlags = finishedWork.subtreeFlags;
10984
+ if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
10944
10985
  if (
10945
10986
  ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }),
10946
10987
  accumulateSuspenseyCommitOnFiber(finishedWork),
@@ -10962,7 +11003,7 @@ function commitRootWhenReady(
10962
11003
  completedRenderEndTime
10963
11004
  )
10964
11005
  );
10965
- markRootSuspended(root, lanes, spawnedLane);
11006
+ markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
10966
11007
  return;
10967
11008
  }
10968
11009
  commitRoot(
@@ -11012,19 +11053,22 @@ function isRenderConsistentWithExternalStores(finishedWork) {
11012
11053
  }
11013
11054
  return !0;
11014
11055
  }
11015
- function markRootSuspended(root, suspendedLanes, spawnedLane) {
11056
+ function markRootSuspended(
11057
+ root,
11058
+ suspendedLanes,
11059
+ spawnedLane,
11060
+ didAttemptEntireTree
11061
+ ) {
11016
11062
  suspendedLanes &= ~workInProgressRootPingedLanes;
11017
11063
  suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
11018
11064
  root.suspendedLanes |= suspendedLanes;
11019
11065
  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;
11066
+ didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
11067
+ didAttemptEntireTree = root.expirationTimes;
11068
+ for (var lanes = suspendedLanes; 0 < lanes; ) {
11069
+ var index$6 = 31 - clz32(lanes),
11070
+ lane = 1 << index$6;
11071
+ didAttemptEntireTree[index$6] = -1;
11028
11072
  lanes &= ~lane;
11029
11073
  }
11030
11074
  0 !== spawnedLane &&
@@ -11068,7 +11112,7 @@ function prepareFreshStack(root, lanes) {
11068
11112
  workInProgressSuspendedReason = 0;
11069
11113
  workInProgressThrownValue = null;
11070
11114
  workInProgressRootDidSkipSuspendedSiblings = !1;
11071
- checkIfRootIsPrerendering(root, lanes);
11115
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
11072
11116
  workInProgressRootDidAttachPingListener = !1;
11073
11117
  workInProgressSuspendedRetryLanes =
11074
11118
  workInProgressDeferredLane =
@@ -11088,9 +11132,9 @@ function prepareFreshStack(root, lanes) {
11088
11132
  0 < allEntangledLanes;
11089
11133
 
11090
11134
  ) {
11091
- var index$3 = 31 - clz32(allEntangledLanes),
11092
- lane = 1 << index$3;
11093
- lanes |= root[index$3];
11135
+ var index$4 = 31 - clz32(allEntangledLanes),
11136
+ lane = 1 << index$4;
11137
+ lanes |= root[index$4];
11094
11138
  allEntangledLanes &= ~lane;
11095
11139
  }
11096
11140
  entangledRenderLanes = lanes;
@@ -11102,12 +11146,7 @@ function handleThrow(root, thrownValue) {
11102
11146
  ReactSharedInternals.H = ContextOnlyDispatcher;
11103
11147
  thrownValue === SuspenseException
11104
11148
  ? ((thrownValue = getSuspendedThenable()),
11105
- (workInProgressSuspendedReason =
11106
- shouldRemainOnPreviousScreen() &&
11107
- 0 === (workInProgressRootSkippedLanes & 134217727) &&
11108
- 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
11109
- ? 2
11110
- : 3))
11149
+ (workInProgressSuspendedReason = 3))
11111
11150
  : thrownValue === SuspenseyCommitException
11112
11151
  ? ((thrownValue = getSuspendedThenable()),
11113
11152
  (workInProgressSuspendedReason = 4))
@@ -11156,21 +11195,6 @@ function handleThrow(root, thrownValue) {
11156
11195
  );
11157
11196
  }
11158
11197
  }
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
11198
  function pushDispatcher() {
11175
11199
  var prevDispatcher = ReactSharedInternals.H;
11176
11200
  ReactSharedInternals.H = ContextOnlyDispatcher;
@@ -11183,16 +11207,22 @@ function pushAsyncDispatcher() {
11183
11207
  }
11184
11208
  function renderDidSuspendDelayIfPossible() {
11185
11209
  workInProgressRootExitStatus = 4;
11210
+ workInProgressRootDidSkipSuspendedSiblings ||
11211
+ ((workInProgressRootRenderLanes & 4194176) !==
11212
+ workInProgressRootRenderLanes &&
11213
+ null !== suspenseHandlerStackCursor.current) ||
11214
+ (workInProgressRootIsPrerendering = !0);
11186
11215
  (0 === (workInProgressRootSkippedLanes & 134217727) &&
11187
11216
  0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
11188
11217
  null === workInProgressRoot ||
11189
11218
  markRootSuspended(
11190
11219
  workInProgressRoot,
11191
11220
  workInProgressRootRenderLanes,
11192
- workInProgressDeferredLane
11221
+ workInProgressDeferredLane,
11222
+ !1
11193
11223
  );
11194
11224
  }
11195
- function renderRootSync(root, lanes) {
11225
+ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
11196
11226
  var prevExecutionContext = executionContext;
11197
11227
  executionContext |= 2;
11198
11228
  var prevDispatcher = pushDispatcher(),
@@ -11229,6 +11259,13 @@ function renderRootSync(root, lanes) {
11229
11259
  workInProgressSuspendedReason = 0;
11230
11260
  workInProgressThrownValue = null;
11231
11261
  throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
11262
+ if (
11263
+ shouldYieldForPrerendering &&
11264
+ workInProgressRootIsPrerendering
11265
+ ) {
11266
+ memoizedUpdaters = 0;
11267
+ break a;
11268
+ }
11232
11269
  break;
11233
11270
  default:
11234
11271
  (reason = workInProgressSuspendedReason),
@@ -11240,8 +11277,8 @@ function renderRootSync(root, lanes) {
11240
11277
  workLoopSync();
11241
11278
  memoizedUpdaters = workInProgressRootExitStatus;
11242
11279
  break;
11243
- } catch (thrownValue$174) {
11244
- handleThrow(root, thrownValue$174);
11280
+ } catch (thrownValue$178) {
11281
+ handleThrow(root, thrownValue$178);
11245
11282
  }
11246
11283
  while (1);
11247
11284
  lanes && root.shellSuspendCounter++;
@@ -11275,7 +11312,8 @@ function renderRootConcurrent(root, lanes) {
11275
11312
  workInProgressTransitions = null;
11276
11313
  workInProgressRootRenderTargetTime = now$1() + 500;
11277
11314
  prepareFreshStack(root, lanes);
11278
- } else checkIfRootIsPrerendering(root, lanes);
11315
+ } else
11316
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
11279
11317
  markRenderStarted(lanes);
11280
11318
  a: do
11281
11319
  try {
@@ -11361,8 +11399,8 @@ function renderRootConcurrent(root, lanes) {
11361
11399
  }
11362
11400
  workLoopConcurrent();
11363
11401
  break;
11364
- } catch (thrownValue$176) {
11365
- handleThrow(root, thrownValue$176);
11402
+ } catch (thrownValue$180) {
11403
+ handleThrow(root, thrownValue$180);
11366
11404
  }
11367
11405
  while (1);
11368
11406
  lastContextDependency = currentlyRenderingFiber = null;
@@ -11438,7 +11476,12 @@ function replaySuspendedUnitOfWork(unitOfWork) {
11438
11476
  unitOfWork.memoizedProps = unitOfWork.pendingProps;
11439
11477
  null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
11440
11478
  }
11441
- function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) {
11479
+ function throwAndUnwindWorkLoop(
11480
+ root,
11481
+ unitOfWork,
11482
+ thrownValue,
11483
+ suspendedReason
11484
+ ) {
11442
11485
  lastContextDependency = currentlyRenderingFiber = null;
11443
11486
  resetHooksOnUnwind(unitOfWork);
11444
11487
  thenableState$1 = null;
@@ -11472,9 +11515,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) {
11472
11515
  workInProgress = null;
11473
11516
  return;
11474
11517
  }
11475
- unitOfWork.flags & 32768
11476
- ? unwindUnitOfWork(unitOfWork, !0)
11477
- : completeUnitOfWork(unitOfWork);
11518
+ if (unitOfWork.flags & 32768) {
11519
+ if (isHydrating || 1 === suspendedReason) root = !0;
11520
+ else if (
11521
+ workInProgressRootIsPrerendering ||
11522
+ 0 !== (workInProgressRootRenderLanes & 536870912)
11523
+ )
11524
+ root = !1;
11525
+ else if (
11526
+ ((workInProgressRootDidSkipSuspendedSiblings = root = !0),
11527
+ 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
11528
+ )
11529
+ (suspendedReason = suspenseHandlerStackCursor.current),
11530
+ null !== suspendedReason &&
11531
+ 13 === suspendedReason.tag &&
11532
+ (suspendedReason.flags |= 16384);
11533
+ unwindUnitOfWork(unitOfWork, root);
11534
+ } else completeUnitOfWork(unitOfWork);
11478
11535
  }
11479
11536
  function completeUnitOfWork(unitOfWork) {
11480
11537
  var completedWork = unitOfWork;
@@ -11576,7 +11633,9 @@ function commitRootImpl(
11576
11633
  transitions,
11577
11634
  didIncludeRenderPhaseUpdate,
11578
11635
  renderPriorityLevel,
11579
- spawnedLane
11636
+ spawnedLane,
11637
+ updatedLanes,
11638
+ suspendedRetryLanes
11580
11639
  ) {
11581
11640
  do flushPassiveEffects();
11582
11641
  while (null !== rootWithPendingPassiveEffects);
@@ -11599,7 +11658,9 @@ function commitRootImpl(
11599
11658
  root,
11600
11659
  didIncludeRenderPhaseUpdate,
11601
11660
  remainingLanes,
11602
- spawnedLane
11661
+ spawnedLane,
11662
+ updatedLanes,
11663
+ suspendedRetryLanes
11603
11664
  );
11604
11665
  root === workInProgressRoot &&
11605
11666
  ((workInProgress = workInProgressRoot = null),
@@ -11616,33 +11677,33 @@ function commitRootImpl(
11616
11677
  }));
11617
11678
  commitStartTime = now();
11618
11679
  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;
11680
+ 0 !== (finishedWork.subtreeFlags & 15990) || transitions
11681
+ ? ((transitions = ReactSharedInternals.T),
11682
+ (ReactSharedInternals.T = null),
11683
+ (spawnedLane = ReactDOMSharedInternals.p),
11684
+ (ReactDOMSharedInternals.p = 2),
11685
+ (updatedLanes = executionContext),
11686
+ (executionContext |= 4),
11687
+ commitBeforeMutationEffects(root, finishedWork),
11688
+ commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate),
11689
+ restoreSelection(selectionInformation, root.containerInfo),
11690
+ (_enabled = !!eventsEnabled),
11691
+ (selectionInformation = eventsEnabled = null),
11692
+ (root.current = finishedWork),
11693
+ null !== injectedProfilingHooks &&
11694
+ "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
11695
+ injectedProfilingHooks.markLayoutEffectsStarted(
11696
+ didIncludeRenderPhaseUpdate
11697
+ ),
11698
+ commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
11699
+ null !== injectedProfilingHooks &&
11700
+ "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
11701
+ injectedProfilingHooks.markLayoutEffectsStopped(),
11702
+ requestPaint(),
11703
+ (executionContext = updatedLanes),
11704
+ (ReactDOMSharedInternals.p = spawnedLane),
11705
+ (ReactSharedInternals.T = transitions))
11706
+ : (root.current = finishedWork);
11646
11707
  rootDoesHavePassiveEffects
11647
11708
  ? ((rootDoesHavePassiveEffects = !1),
11648
11709
  (rootWithPendingPassiveEffects = root),
@@ -11683,7 +11744,7 @@ function releaseRootPooledCache(root, remainingLanes) {
11683
11744
  }
11684
11745
  function flushPassiveEffects() {
11685
11746
  if (null !== rootWithPendingPassiveEffects) {
11686
- var root$180 = rootWithPendingPassiveEffects,
11747
+ var root$184 = rootWithPendingPassiveEffects,
11687
11748
  remainingLanes = pendingPassiveEffectsRemainingLanes;
11688
11749
  pendingPassiveEffectsRemainingLanes = 0;
11689
11750
  var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
@@ -11733,7 +11794,7 @@ function flushPassiveEffects() {
11733
11794
  } finally {
11734
11795
  (ReactDOMSharedInternals.p = previousPriority),
11735
11796
  (ReactSharedInternals.T = prevTransition),
11736
- releaseRootPooledCache(root$180, remainingLanes);
11797
+ releaseRootPooledCache(root$184, remainingLanes);
11737
11798
  }
11738
11799
  }
11739
11800
  return !1;
@@ -11883,14 +11944,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11883
11944
  isFlushingWork = !0;
11884
11945
  do {
11885
11946
  var didPerformSomeWork = !1;
11886
- for (var root$182 = firstScheduledRoot; null !== root$182; ) {
11947
+ for (var root$186 = firstScheduledRoot; null !== root$186; ) {
11887
11948
  if (!onlyLegacy)
11888
11949
  if (0 !== syncTransitionLanes) {
11889
- var pendingLanes = root$182.pendingLanes;
11950
+ var pendingLanes = root$186.pendingLanes;
11890
11951
  if (0 === pendingLanes) var JSCompiler_inline_result = 0;
11891
11952
  else {
11892
- var suspendedLanes = root$182.suspendedLanes,
11893
- pingedLanes = root$182.pingedLanes;
11953
+ var suspendedLanes = root$186.suspendedLanes,
11954
+ pingedLanes = root$186.pingedLanes;
11894
11955
  JSCompiler_inline_result =
11895
11956
  (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
11896
11957
  JSCompiler_inline_result &=
@@ -11904,18 +11965,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11904
11965
  }
11905
11966
  0 !== JSCompiler_inline_result &&
11906
11967
  ((didPerformSomeWork = !0),
11907
- performSyncWorkOnRoot(root$182, JSCompiler_inline_result));
11968
+ performSyncWorkOnRoot(root$186, JSCompiler_inline_result));
11908
11969
  } else
11909
11970
  (JSCompiler_inline_result = workInProgressRootRenderLanes),
11910
11971
  (JSCompiler_inline_result = getNextLanes(
11911
- root$182,
11912
- root$182 === workInProgressRoot ? JSCompiler_inline_result : 0
11972
+ root$186,
11973
+ root$186 === workInProgressRoot ? JSCompiler_inline_result : 0
11913
11974
  )),
11914
11975
  0 === (JSCompiler_inline_result & 3) ||
11915
- checkIfRootIsPrerendering(root$182, JSCompiler_inline_result) ||
11976
+ checkIfRootIsPrerendering(root$186, JSCompiler_inline_result) ||
11916
11977
  ((didPerformSomeWork = !0),
11917
- performSyncWorkOnRoot(root$182, JSCompiler_inline_result));
11918
- root$182 = root$182.next;
11978
+ performSyncWorkOnRoot(root$186, JSCompiler_inline_result));
11979
+ root$186 = root$186.next;
11919
11980
  }
11920
11981
  } while (didPerformSomeWork);
11921
11982
  isFlushingWork = !1;
@@ -11956,12 +12017,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
11956
12017
  0 < lanes;
11957
12018
 
11958
12019
  ) {
11959
- var index$4 = 31 - clz32(lanes),
11960
- lane = 1 << index$4,
11961
- expirationTime = expirationTimes[index$4];
12020
+ var index$5 = 31 - clz32(lanes),
12021
+ lane = 1 << index$5,
12022
+ expirationTime = expirationTimes[index$5];
11962
12023
  if (-1 === expirationTime) {
11963
12024
  if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
11964
- expirationTimes[index$4] = computeExpirationTime(lane, currentTime);
12025
+ expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
11965
12026
  } else expirationTime <= currentTime && (root.expiredLanes |= lane);
11966
12027
  lanes &= ~lane;
11967
12028
  }
@@ -11984,37 +12045,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
11984
12045
  (root.callbackNode = null),
11985
12046
  (root.callbackPriority = 0)
11986
12047
  );
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;
12048
+ if (
12049
+ 0 === (suspendedLanes & 3) ||
12050
+ checkIfRootIsPrerendering(root, suspendedLanes)
12051
+ ) {
12052
+ currentTime = suspendedLanes & -suspendedLanes;
12053
+ if (currentTime === root.callbackPriority) return currentTime;
12054
+ null !== pingedLanes && cancelCallback$1(pingedLanes);
12055
+ switch (lanesToEventPriority(suspendedLanes)) {
12056
+ case 2:
12057
+ case 8:
12058
+ suspendedLanes = UserBlockingPriority;
12059
+ break;
12060
+ case 32:
12061
+ suspendedLanes = NormalPriority$1;
12062
+ break;
12063
+ case 268435456:
12064
+ suspendedLanes = IdlePriority;
12065
+ break;
12066
+ default:
12067
+ suspendedLanes = NormalPriority$1;
12068
+ }
12069
+ pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
12070
+ suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
12071
+ root.callbackPriority = currentTime;
12072
+ root.callbackNode = suspendedLanes;
12073
+ return currentTime;
12074
+ }
12075
+ null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
12076
+ root.callbackPriority = 2;
12077
+ root.callbackNode = null;
12078
+ return 2;
12018
12079
  }
12019
12080
  function performWorkOnRootViaSchedulerTask(root, didTimeout) {
12020
12081
  nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -12146,20 +12207,20 @@ function extractEvents$1(
12146
12207
  }
12147
12208
  }
12148
12209
  for (
12149
- var i$jscomp$inline_1519 = 0;
12150
- i$jscomp$inline_1519 < simpleEventPluginEvents.length;
12151
- i$jscomp$inline_1519++
12210
+ var i$jscomp$inline_1527 = 0;
12211
+ i$jscomp$inline_1527 < simpleEventPluginEvents.length;
12212
+ i$jscomp$inline_1527++
12152
12213
  ) {
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);
12214
+ var eventName$jscomp$inline_1528 =
12215
+ simpleEventPluginEvents[i$jscomp$inline_1527],
12216
+ domEventName$jscomp$inline_1529 =
12217
+ eventName$jscomp$inline_1528.toLowerCase(),
12218
+ capitalizedEvent$jscomp$inline_1530 =
12219
+ eventName$jscomp$inline_1528[0].toUpperCase() +
12220
+ eventName$jscomp$inline_1528.slice(1);
12160
12221
  registerSimpleEvent(
12161
- domEventName$jscomp$inline_1521,
12162
- "on" + capitalizedEvent$jscomp$inline_1522
12222
+ domEventName$jscomp$inline_1529,
12223
+ "on" + capitalizedEvent$jscomp$inline_1530
12163
12224
  );
12164
12225
  }
12165
12226
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -13342,34 +13403,34 @@ function setInitialProperties(domElement, tag, props) {
13342
13403
  defaultChecked = null;
13343
13404
  for (hasSrc in props)
13344
13405
  if (props.hasOwnProperty(hasSrc)) {
13345
- var propValue$196 = props[hasSrc];
13346
- if (null != propValue$196)
13406
+ var propValue$200 = props[hasSrc];
13407
+ if (null != propValue$200)
13347
13408
  switch (hasSrc) {
13348
13409
  case "name":
13349
- hasSrcSet = propValue$196;
13410
+ hasSrcSet = propValue$200;
13350
13411
  break;
13351
13412
  case "type":
13352
- propValue = propValue$196;
13413
+ propValue = propValue$200;
13353
13414
  break;
13354
13415
  case "checked":
13355
- checked = propValue$196;
13416
+ checked = propValue$200;
13356
13417
  break;
13357
13418
  case "defaultChecked":
13358
- defaultChecked = propValue$196;
13419
+ defaultChecked = propValue$200;
13359
13420
  break;
13360
13421
  case "value":
13361
- propKey = propValue$196;
13422
+ propKey = propValue$200;
13362
13423
  break;
13363
13424
  case "defaultValue":
13364
- defaultValue = propValue$196;
13425
+ defaultValue = propValue$200;
13365
13426
  break;
13366
13427
  case "children":
13367
13428
  case "dangerouslySetInnerHTML":
13368
- if (null != propValue$196)
13429
+ if (null != propValue$200)
13369
13430
  throw Error(formatProdErrorMessage(137, tag));
13370
13431
  break;
13371
13432
  default:
13372
- setProp(domElement, tag, hasSrc, propValue$196, props, null);
13433
+ setProp(domElement, tag, hasSrc, propValue$200, props, null);
13373
13434
  }
13374
13435
  }
13375
13436
  initInput(
@@ -13506,14 +13567,14 @@ function setInitialProperties(domElement, tag, props) {
13506
13567
  return;
13507
13568
  default:
13508
13569
  if (isCustomElement(tag)) {
13509
- for (propValue$196 in props)
13510
- props.hasOwnProperty(propValue$196) &&
13511
- ((hasSrc = props[propValue$196]),
13570
+ for (propValue$200 in props)
13571
+ props.hasOwnProperty(propValue$200) &&
13572
+ ((hasSrc = props[propValue$200]),
13512
13573
  void 0 !== hasSrc &&
13513
13574
  setPropOnCustomElement(
13514
13575
  domElement,
13515
13576
  tag,
13516
- propValue$196,
13577
+ propValue$200,
13517
13578
  hasSrc,
13518
13579
  props,
13519
13580
  void 0
@@ -13561,14 +13622,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13561
13622
  setProp(domElement, tag, propKey, null, nextProps, lastProp);
13562
13623
  }
13563
13624
  }
13564
- for (var propKey$213 in nextProps) {
13565
- var propKey = nextProps[propKey$213];
13566
- lastProp = lastProps[propKey$213];
13625
+ for (var propKey$217 in nextProps) {
13626
+ var propKey = nextProps[propKey$217];
13627
+ lastProp = lastProps[propKey$217];
13567
13628
  if (
13568
- nextProps.hasOwnProperty(propKey$213) &&
13629
+ nextProps.hasOwnProperty(propKey$217) &&
13569
13630
  (null != propKey || null != lastProp)
13570
13631
  )
13571
- switch (propKey$213) {
13632
+ switch (propKey$217) {
13572
13633
  case "type":
13573
13634
  type = propKey;
13574
13635
  break;
@@ -13597,7 +13658,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13597
13658
  setProp(
13598
13659
  domElement,
13599
13660
  tag,
13600
- propKey$213,
13661
+ propKey$217,
13601
13662
  propKey,
13602
13663
  nextProps,
13603
13664
  lastProp
@@ -13616,7 +13677,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13616
13677
  );
13617
13678
  return;
13618
13679
  case "select":
13619
- propKey = value = defaultValue = propKey$213 = null;
13680
+ propKey = value = defaultValue = propKey$217 = null;
13620
13681
  for (type in lastProps)
13621
13682
  if (
13622
13683
  ((lastDefaultValue = lastProps[type]),
@@ -13647,7 +13708,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13647
13708
  )
13648
13709
  switch (name) {
13649
13710
  case "value":
13650
- propKey$213 = type;
13711
+ propKey$217 = type;
13651
13712
  break;
13652
13713
  case "defaultValue":
13653
13714
  defaultValue = type;
@@ -13668,15 +13729,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13668
13729
  tag = defaultValue;
13669
13730
  lastProps = value;
13670
13731
  nextProps = propKey;
13671
- null != propKey$213
13672
- ? updateOptions(domElement, !!lastProps, propKey$213, !1)
13732
+ null != propKey$217
13733
+ ? updateOptions(domElement, !!lastProps, propKey$217, !1)
13673
13734
  : !!nextProps !== !!lastProps &&
13674
13735
  (null != tag
13675
13736
  ? updateOptions(domElement, !!lastProps, tag, !0)
13676
13737
  : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
13677
13738
  return;
13678
13739
  case "textarea":
13679
- propKey = propKey$213 = null;
13740
+ propKey = propKey$217 = null;
13680
13741
  for (defaultValue in lastProps)
13681
13742
  if (
13682
13743
  ((name = lastProps[defaultValue]),
@@ -13700,7 +13761,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13700
13761
  )
13701
13762
  switch (value) {
13702
13763
  case "value":
13703
- propKey$213 = name;
13764
+ propKey$217 = name;
13704
13765
  break;
13705
13766
  case "defaultValue":
13706
13767
  propKey = name;
@@ -13714,17 +13775,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13714
13775
  name !== type &&
13715
13776
  setProp(domElement, tag, value, name, nextProps, type);
13716
13777
  }
13717
- updateTextarea(domElement, propKey$213, propKey);
13778
+ updateTextarea(domElement, propKey$217, propKey);
13718
13779
  return;
13719
13780
  case "option":
13720
- for (var propKey$229 in lastProps)
13781
+ for (var propKey$233 in lastProps)
13721
13782
  if (
13722
- ((propKey$213 = lastProps[propKey$229]),
13723
- lastProps.hasOwnProperty(propKey$229) &&
13724
- null != propKey$213 &&
13725
- !nextProps.hasOwnProperty(propKey$229))
13783
+ ((propKey$217 = lastProps[propKey$233]),
13784
+ lastProps.hasOwnProperty(propKey$233) &&
13785
+ null != propKey$217 &&
13786
+ !nextProps.hasOwnProperty(propKey$233))
13726
13787
  )
13727
- switch (propKey$229) {
13788
+ switch (propKey$233) {
13728
13789
  case "selected":
13729
13790
  domElement.selected = !1;
13730
13791
  break;
@@ -13732,33 +13793,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13732
13793
  setProp(
13733
13794
  domElement,
13734
13795
  tag,
13735
- propKey$229,
13796
+ propKey$233,
13736
13797
  null,
13737
13798
  nextProps,
13738
- propKey$213
13799
+ propKey$217
13739
13800
  );
13740
13801
  }
13741
13802
  for (lastDefaultValue in nextProps)
13742
13803
  if (
13743
- ((propKey$213 = nextProps[lastDefaultValue]),
13804
+ ((propKey$217 = nextProps[lastDefaultValue]),
13744
13805
  (propKey = lastProps[lastDefaultValue]),
13745
13806
  nextProps.hasOwnProperty(lastDefaultValue) &&
13746
- propKey$213 !== propKey &&
13747
- (null != propKey$213 || null != propKey))
13807
+ propKey$217 !== propKey &&
13808
+ (null != propKey$217 || null != propKey))
13748
13809
  )
13749
13810
  switch (lastDefaultValue) {
13750
13811
  case "selected":
13751
13812
  domElement.selected =
13752
- propKey$213 &&
13753
- "function" !== typeof propKey$213 &&
13754
- "symbol" !== typeof propKey$213;
13813
+ propKey$217 &&
13814
+ "function" !== typeof propKey$217 &&
13815
+ "symbol" !== typeof propKey$217;
13755
13816
  break;
13756
13817
  default:
13757
13818
  setProp(
13758
13819
  domElement,
13759
13820
  tag,
13760
13821
  lastDefaultValue,
13761
- propKey$213,
13822
+ propKey$217,
13762
13823
  nextProps,
13763
13824
  propKey
13764
13825
  );
@@ -13779,24 +13840,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13779
13840
  case "track":
13780
13841
  case "wbr":
13781
13842
  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);
13843
+ for (var propKey$238 in lastProps)
13844
+ (propKey$217 = lastProps[propKey$238]),
13845
+ lastProps.hasOwnProperty(propKey$238) &&
13846
+ null != propKey$217 &&
13847
+ !nextProps.hasOwnProperty(propKey$238) &&
13848
+ setProp(domElement, tag, propKey$238, null, nextProps, propKey$217);
13788
13849
  for (checked in nextProps)
13789
13850
  if (
13790
- ((propKey$213 = nextProps[checked]),
13851
+ ((propKey$217 = nextProps[checked]),
13791
13852
  (propKey = lastProps[checked]),
13792
13853
  nextProps.hasOwnProperty(checked) &&
13793
- propKey$213 !== propKey &&
13794
- (null != propKey$213 || null != propKey))
13854
+ propKey$217 !== propKey &&
13855
+ (null != propKey$217 || null != propKey))
13795
13856
  )
13796
13857
  switch (checked) {
13797
13858
  case "children":
13798
13859
  case "dangerouslySetInnerHTML":
13799
- if (null != propKey$213)
13860
+ if (null != propKey$217)
13800
13861
  throw Error(formatProdErrorMessage(137, tag));
13801
13862
  break;
13802
13863
  default:
@@ -13804,7 +13865,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13804
13865
  domElement,
13805
13866
  tag,
13806
13867
  checked,
13807
- propKey$213,
13868
+ propKey$217,
13808
13869
  nextProps,
13809
13870
  propKey
13810
13871
  );
@@ -13812,49 +13873,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13812
13873
  return;
13813
13874
  default:
13814
13875
  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) &&
13876
+ for (var propKey$243 in lastProps)
13877
+ (propKey$217 = lastProps[propKey$243]),
13878
+ lastProps.hasOwnProperty(propKey$243) &&
13879
+ void 0 !== propKey$217 &&
13880
+ !nextProps.hasOwnProperty(propKey$243) &&
13820
13881
  setPropOnCustomElement(
13821
13882
  domElement,
13822
13883
  tag,
13823
- propKey$239,
13884
+ propKey$243,
13824
13885
  void 0,
13825
13886
  nextProps,
13826
- propKey$213
13887
+ propKey$217
13827
13888
  );
13828
13889
  for (defaultChecked in nextProps)
13829
- (propKey$213 = nextProps[defaultChecked]),
13890
+ (propKey$217 = nextProps[defaultChecked]),
13830
13891
  (propKey = lastProps[defaultChecked]),
13831
13892
  !nextProps.hasOwnProperty(defaultChecked) ||
13832
- propKey$213 === propKey ||
13833
- (void 0 === propKey$213 && void 0 === propKey) ||
13893
+ propKey$217 === propKey ||
13894
+ (void 0 === propKey$217 && void 0 === propKey) ||
13834
13895
  setPropOnCustomElement(
13835
13896
  domElement,
13836
13897
  tag,
13837
13898
  defaultChecked,
13838
- propKey$213,
13899
+ propKey$217,
13839
13900
  nextProps,
13840
13901
  propKey
13841
13902
  );
13842
13903
  return;
13843
13904
  }
13844
13905
  }
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);
13906
+ for (var propKey$248 in lastProps)
13907
+ (propKey$217 = lastProps[propKey$248]),
13908
+ lastProps.hasOwnProperty(propKey$248) &&
13909
+ null != propKey$217 &&
13910
+ !nextProps.hasOwnProperty(propKey$248) &&
13911
+ setProp(domElement, tag, propKey$248, null, nextProps, propKey$217);
13851
13912
  for (lastProp in nextProps)
13852
- (propKey$213 = nextProps[lastProp]),
13913
+ (propKey$217 = nextProps[lastProp]),
13853
13914
  (propKey = lastProps[lastProp]),
13854
13915
  !nextProps.hasOwnProperty(lastProp) ||
13855
- propKey$213 === propKey ||
13856
- (null == propKey$213 && null == propKey) ||
13857
- setProp(domElement, tag, lastProp, propKey$213, nextProps, propKey);
13916
+ propKey$217 === propKey ||
13917
+ (null == propKey$217 && null == propKey) ||
13918
+ setProp(domElement, tag, lastProp, propKey$217, nextProps, propKey);
13858
13919
  }
13859
13920
  var eventsEnabled = null,
13860
13921
  selectionInformation = null;
@@ -14399,26 +14460,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14399
14460
  "string" === typeof pendingProps.precedence
14400
14461
  ) {
14401
14462
  type = getStyleKey(pendingProps.href);
14402
- var styles$252 = getResourcesFromRoot(
14463
+ var styles$256 = getResourcesFromRoot(
14403
14464
  JSCompiler_inline_result
14404
14465
  ).hoistableStyles,
14405
- resource$253 = styles$252.get(type);
14406
- resource$253 ||
14466
+ resource$257 = styles$256.get(type);
14467
+ resource$257 ||
14407
14468
  ((JSCompiler_inline_result =
14408
14469
  JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
14409
- (resource$253 = {
14470
+ (resource$257 = {
14410
14471
  type: "stylesheet",
14411
14472
  instance: null,
14412
14473
  count: 0,
14413
14474
  state: { loading: 0, preload: null }
14414
14475
  }),
14415
- styles$252.set(type, resource$253),
14416
- (styles$252 = JSCompiler_inline_result.querySelector(
14476
+ styles$256.set(type, resource$257),
14477
+ (styles$256 = JSCompiler_inline_result.querySelector(
14417
14478
  getStylesheetSelectorFromKey(type)
14418
14479
  )) &&
14419
- !styles$252._p &&
14420
- ((resource$253.instance = styles$252),
14421
- (resource$253.state.loading = 5)),
14480
+ !styles$256._p &&
14481
+ ((resource$257.instance = styles$256),
14482
+ (resource$257.state.loading = 5)),
14422
14483
  preloadPropsMap.has(type) ||
14423
14484
  ((pendingProps = {
14424
14485
  rel: "preload",
@@ -14431,16 +14492,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14431
14492
  referrerPolicy: pendingProps.referrerPolicy
14432
14493
  }),
14433
14494
  preloadPropsMap.set(type, pendingProps),
14434
- styles$252 ||
14495
+ styles$256 ||
14435
14496
  preloadStylesheet(
14436
14497
  JSCompiler_inline_result,
14437
14498
  type,
14438
14499
  pendingProps,
14439
- resource$253.state
14500
+ resource$257.state
14440
14501
  )));
14441
14502
  if (currentProps && null === currentResource)
14442
14503
  throw Error(formatProdErrorMessage(528, ""));
14443
- return resource$253;
14504
+ return resource$257;
14444
14505
  }
14445
14506
  if (currentProps && null !== currentResource)
14446
14507
  throw Error(formatProdErrorMessage(529, ""));
@@ -14537,37 +14598,37 @@ function acquireResource(hoistableRoot, resource, props) {
14537
14598
  return (resource.instance = instance);
14538
14599
  case "stylesheet":
14539
14600
  styleProps = getStyleKey(props.href);
14540
- var instance$258 = hoistableRoot.querySelector(
14601
+ var instance$262 = hoistableRoot.querySelector(
14541
14602
  getStylesheetSelectorFromKey(styleProps)
14542
14603
  );
14543
- if (instance$258)
14604
+ if (instance$262)
14544
14605
  return (
14545
14606
  (resource.state.loading |= 4),
14546
- (resource.instance = instance$258),
14547
- markNodeAsHoistable(instance$258),
14548
- instance$258
14607
+ (resource.instance = instance$262),
14608
+ markNodeAsHoistable(instance$262),
14609
+ instance$262
14549
14610
  );
14550
14611
  instance = stylesheetPropsFromRawProps(props);
14551
14612
  (styleProps = preloadPropsMap.get(styleProps)) &&
14552
14613
  adoptPreloadPropsForStylesheet(instance, styleProps);
14553
- instance$258 = (
14614
+ instance$262 = (
14554
14615
  hoistableRoot.ownerDocument || hoistableRoot
14555
14616
  ).createElement("link");
14556
- markNodeAsHoistable(instance$258);
14557
- var linkInstance = instance$258;
14617
+ markNodeAsHoistable(instance$262);
14618
+ var linkInstance = instance$262;
14558
14619
  linkInstance._p = new Promise(function (resolve, reject) {
14559
14620
  linkInstance.onload = resolve;
14560
14621
  linkInstance.onerror = reject;
14561
14622
  });
14562
- setInitialProperties(instance$258, "link", instance);
14623
+ setInitialProperties(instance$262, "link", instance);
14563
14624
  resource.state.loading |= 4;
14564
- insertStylesheet(instance$258, props.precedence, hoistableRoot);
14565
- return (resource.instance = instance$258);
14625
+ insertStylesheet(instance$262, props.precedence, hoistableRoot);
14626
+ return (resource.instance = instance$262);
14566
14627
  case "script":
14567
- instance$258 = getScriptKey(props.src);
14628
+ instance$262 = getScriptKey(props.src);
14568
14629
  if (
14569
14630
  (styleProps = hoistableRoot.querySelector(
14570
- getScriptSelectorFromKey(instance$258)
14631
+ getScriptSelectorFromKey(instance$262)
14571
14632
  ))
14572
14633
  )
14573
14634
  return (
@@ -14576,7 +14637,7 @@ function acquireResource(hoistableRoot, resource, props) {
14576
14637
  styleProps
14577
14638
  );
14578
14639
  instance = props;
14579
- if ((styleProps = preloadPropsMap.get(instance$258)))
14640
+ if ((styleProps = preloadPropsMap.get(instance$262)))
14580
14641
  (instance = assign({}, props)),
14581
14642
  adoptPreloadPropsForScript(instance, styleProps);
14582
14643
  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -15619,16 +15680,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15619
15680
  0 === i && attemptExplicitHydrationTarget(target);
15620
15681
  }
15621
15682
  };
15622
- var isomorphicReactPackageVersion$jscomp$inline_1768 = React.version;
15683
+ var isomorphicReactPackageVersion$jscomp$inline_1776 = React.version;
15623
15684
  if (
15624
- "19.0.0-rc-380f5d67-20241113" !==
15625
- isomorphicReactPackageVersion$jscomp$inline_1768
15685
+ "19.0.0-rc-e1ef8c95-20241115" !==
15686
+ isomorphicReactPackageVersion$jscomp$inline_1776
15626
15687
  )
15627
15688
  throw Error(
15628
15689
  formatProdErrorMessage(
15629
15690
  527,
15630
- isomorphicReactPackageVersion$jscomp$inline_1768,
15631
- "19.0.0-rc-380f5d67-20241113"
15691
+ isomorphicReactPackageVersion$jscomp$inline_1776,
15692
+ "19.0.0-rc-e1ef8c95-20241115"
15632
15693
  )
15633
15694
  );
15634
15695
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15648,18 +15709,18 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15648
15709
  null === componentOrElement ? null : componentOrElement.stateNode;
15649
15710
  return componentOrElement;
15650
15711
  };
15651
- var internals$jscomp$inline_1775 = {
15712
+ var internals$jscomp$inline_1783 = {
15652
15713
  bundleType: 0,
15653
- version: "19.0.0-rc-380f5d67-20241113",
15714
+ version: "19.0.0-rc-e1ef8c95-20241115",
15654
15715
  rendererPackageName: "react-dom",
15655
15716
  currentDispatcherRef: ReactSharedInternals,
15656
15717
  findFiberByHostInstance: getClosestInstanceFromNode,
15657
- reconcilerVersion: "19.0.0-rc-380f5d67-20241113",
15718
+ reconcilerVersion: "19.0.0-rc-e1ef8c95-20241115",
15658
15719
  getLaneLabelMap: function () {
15659
15720
  for (
15660
- var map = new Map(), lane = 1, index$275 = 0;
15661
- 31 > index$275;
15662
- index$275++
15721
+ var map = new Map(), lane = 1, index$279 = 0;
15722
+ 31 > index$279;
15723
+ index$279++
15663
15724
  ) {
15664
15725
  var label = getLabelForLane(lane);
15665
15726
  map.set(lane, label);
@@ -15672,16 +15733,16 @@ var internals$jscomp$inline_1775 = {
15672
15733
  }
15673
15734
  };
15674
15735
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15675
- var hook$jscomp$inline_2209 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15736
+ var hook$jscomp$inline_2220 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15676
15737
  if (
15677
- !hook$jscomp$inline_2209.isDisabled &&
15678
- hook$jscomp$inline_2209.supportsFiber
15738
+ !hook$jscomp$inline_2220.isDisabled &&
15739
+ hook$jscomp$inline_2220.supportsFiber
15679
15740
  )
15680
15741
  try {
15681
- (rendererID = hook$jscomp$inline_2209.inject(
15682
- internals$jscomp$inline_1775
15742
+ (rendererID = hook$jscomp$inline_2220.inject(
15743
+ internals$jscomp$inline_1783
15683
15744
  )),
15684
- (injectedHook = hook$jscomp$inline_2209);
15745
+ (injectedHook = hook$jscomp$inline_2220);
15685
15746
  } catch (err) {}
15686
15747
  }
15687
15748
  function noop() {}
@@ -15934,7 +15995,7 @@ exports.useFormState = function (action, initialState, permalink) {
15934
15995
  exports.useFormStatus = function () {
15935
15996
  return ReactSharedInternals.H.useHostTransitionStatus();
15936
15997
  };
15937
- exports.version = "19.0.0-rc-380f5d67-20241113";
15998
+ exports.version = "19.0.0-rc-e1ef8c95-20241115";
15938
15999
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15939
16000
  "function" ===
15940
16001
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&