react-dom 19.2.0-canary-c4676e72-20250520 → 19.2.0-canary-8ce15b0f-20250522

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.
@@ -1150,8 +1150,8 @@
1150
1150
  ? null
1151
1151
  : {
1152
1152
  update: parentViewTransition.update,
1153
- enter: null,
1154
- exit: null,
1153
+ enter: "none",
1154
+ exit: "none",
1155
1155
  share: parentViewTransition.update,
1156
1156
  name: parentViewTransition.autoName,
1157
1157
  autoName: parentViewTransition.autoName,
@@ -3704,6 +3704,10 @@
3704
3704
  function hoistStylesheetDependency(stylesheet) {
3705
3705
  this.stylesheets.add(stylesheet);
3706
3706
  }
3707
+ function hoistHoistables(parentState, childState) {
3708
+ childState.styles.forEach(hoistStyleQueueDependency, parentState);
3709
+ childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
3710
+ }
3707
3711
  function getComponentNameFromType(type) {
3708
3712
  if (null == type) return null;
3709
3713
  if ("function" === typeof type)
@@ -4687,11 +4691,14 @@
4687
4691
  };
4688
4692
  null !== row &&
4689
4693
  (row.pendingTasks++,
4690
- (row = row.boundaries),
4691
- null !== row &&
4694
+ (contentPreamble = row.boundaries),
4695
+ null !== contentPreamble &&
4692
4696
  (request.allPendingTasks++,
4693
4697
  fallbackAbortableTasks.pendingTasks++,
4694
- row.push(fallbackAbortableTasks)));
4698
+ contentPreamble.push(fallbackAbortableTasks)),
4699
+ (request = row.inheritedHoistables),
4700
+ null !== request &&
4701
+ hoistHoistables(fallbackAbortableTasks.contentState, request));
4695
4702
  return fallbackAbortableTasks;
4696
4703
  }
4697
4704
  function createRenderTask(
@@ -4970,20 +4977,70 @@
4970
4977
  : ((request.status = 13), (request.fatalError = error));
4971
4978
  }
4972
4979
  function finishSuspenseListRow(request, row) {
4973
- for (row = row.next; null !== row; ) {
4974
- var unblockedBoundaries = row.boundaries;
4980
+ unblockSuspenseListRow(request, row.next, row.hoistables);
4981
+ }
4982
+ function unblockSuspenseListRow(
4983
+ request,
4984
+ unblockedRow,
4985
+ inheritedHoistables
4986
+ ) {
4987
+ for (; null !== unblockedRow; ) {
4988
+ null !== inheritedHoistables &&
4989
+ (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
4990
+ (unblockedRow.inheritedHoistables = inheritedHoistables));
4991
+ var unblockedBoundaries = unblockedRow.boundaries;
4975
4992
  if (null !== unblockedBoundaries) {
4976
- row.boundaries = null;
4977
- for (var i = 0; i < unblockedBoundaries.length; i++)
4978
- finishedTask(request, unblockedBoundaries[i], null, null);
4993
+ unblockedRow.boundaries = null;
4994
+ for (var i = 0; i < unblockedBoundaries.length; i++) {
4995
+ var unblockedBoundary = unblockedBoundaries[i];
4996
+ null !== inheritedHoistables &&
4997
+ hoistHoistables(
4998
+ unblockedBoundary.contentState,
4999
+ inheritedHoistables
5000
+ );
5001
+ finishedTask(request, unblockedBoundary, null, null);
5002
+ }
5003
+ }
5004
+ unblockedRow.pendingTasks--;
5005
+ if (0 < unblockedRow.pendingTasks) break;
5006
+ inheritedHoistables = unblockedRow.hoistables;
5007
+ unblockedRow = unblockedRow.next;
5008
+ }
5009
+ }
5010
+ function tryToResolveTogetherRow(request, togetherRow) {
5011
+ var boundaries = togetherRow.boundaries;
5012
+ if (
5013
+ null !== boundaries &&
5014
+ togetherRow.pendingTasks === boundaries.length
5015
+ ) {
5016
+ for (
5017
+ var allCompleteAndInlinable = !0, i = 0;
5018
+ i < boundaries.length;
5019
+ i++
5020
+ ) {
5021
+ var rowBoundary = boundaries[i];
5022
+ if (
5023
+ 1 !== rowBoundary.pendingTasks ||
5024
+ rowBoundary.parentFlushed ||
5025
+ 500 < rowBoundary.byteSize
5026
+ ) {
5027
+ allCompleteAndInlinable = !1;
5028
+ break;
5029
+ }
4979
5030
  }
4980
- row.pendingTasks--;
4981
- if (0 < row.pendingTasks) break;
4982
- row = row.next;
5031
+ allCompleteAndInlinable &&
5032
+ unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
4983
5033
  }
4984
5034
  }
4985
5035
  function createSuspenseListRow(previousRow) {
4986
- var newRow = { pendingTasks: 1, boundaries: null, next: null };
5036
+ var newRow = {
5037
+ pendingTasks: 1,
5038
+ boundaries: null,
5039
+ hoistables: createHoistableState(),
5040
+ inheritedHoistables: null,
5041
+ together: !1,
5042
+ next: null
5043
+ };
4987
5044
  null !== previousRow &&
4988
5045
  0 < previousRow.pendingTasks &&
4989
5046
  (newRow.pendingTasks++,
@@ -4992,28 +5049,25 @@
4992
5049
  return newRow;
4993
5050
  }
4994
5051
  function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
4995
- keyPath = task.keyPath;
4996
- var previousComponentStack = task.componentStack;
5052
+ var prevKeyPath = task.keyPath,
5053
+ prevTreeContext = task.treeContext,
5054
+ prevRow = task.row,
5055
+ previousComponentStack = task.componentStack;
4997
5056
  var previousDebugTask = task.debugTask;
4998
5057
  pushServerComponentStack(task, task.node.props.children._debugInfo);
4999
- var prevTreeContext = task.treeContext,
5000
- prevRow = task.row,
5001
- totalChildren = rows.length,
5002
- previousSuspenseListRow = null;
5058
+ task.keyPath = keyPath;
5059
+ keyPath = rows.length;
5060
+ var previousSuspenseListRow = null;
5003
5061
  if (null !== task.replay) {
5004
5062
  var resumeSlots = task.replay.slots;
5005
5063
  if (null !== resumeSlots && "object" === typeof resumeSlots)
5006
- for (var n = 0; n < totalChildren; n++) {
5007
- var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
5064
+ for (var n = 0; n < keyPath; n++) {
5065
+ var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
5008
5066
  node = rows[i];
5009
5067
  task.row = previousSuspenseListRow = createSuspenseListRow(
5010
5068
  previousSuspenseListRow
5011
5069
  );
5012
- task.treeContext = pushTreeContext(
5013
- prevTreeContext,
5014
- totalChildren,
5015
- i
5016
- );
5070
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
5017
5071
  var resumeSegmentID = resumeSlots[i];
5018
5072
  "number" === typeof resumeSegmentID
5019
5073
  ? (resumeNode(request, task, resumeSegmentID, node, i),
@@ -5023,32 +5077,28 @@
5023
5077
  finishSuspenseListRow(request, previousSuspenseListRow);
5024
5078
  }
5025
5079
  else
5026
- for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
5080
+ for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
5027
5081
  (n =
5028
5082
  "backwards" !== revealOrder
5029
5083
  ? resumeSlots
5030
- : totalChildren - 1 - resumeSlots),
5084
+ : keyPath - 1 - resumeSlots),
5031
5085
  (i = rows[n]),
5032
5086
  warnForMissingKey(request, task, i),
5033
5087
  (task.row = previousSuspenseListRow =
5034
5088
  createSuspenseListRow(previousSuspenseListRow)),
5035
- (task.treeContext = pushTreeContext(
5036
- prevTreeContext,
5037
- totalChildren,
5038
- n
5039
- )),
5089
+ (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
5040
5090
  renderNode(request, task, i, n),
5041
5091
  0 === --previousSuspenseListRow.pendingTasks &&
5042
5092
  finishSuspenseListRow(request, previousSuspenseListRow);
5043
5093
  } else if ("backwards" !== revealOrder)
5044
- for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
5094
+ for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
5045
5095
  (resumeSlots = rows[revealOrder]),
5046
5096
  warnForMissingKey(request, task, resumeSlots),
5047
5097
  (task.row = previousSuspenseListRow =
5048
5098
  createSuspenseListRow(previousSuspenseListRow)),
5049
5099
  (task.treeContext = pushTreeContext(
5050
5100
  prevTreeContext,
5051
- totalChildren,
5101
+ keyPath,
5052
5102
  revealOrder
5053
5103
  )),
5054
5104
  renderNode(request, task, resumeSlots, revealOrder),
@@ -5058,12 +5108,12 @@
5058
5108
  revealOrder = task.blockedSegment;
5059
5109
  resumeSlots = revealOrder.children.length;
5060
5110
  n = revealOrder.chunks.length;
5061
- for (i = totalChildren - 1; 0 <= i; i--) {
5111
+ for (i = keyPath - 1; 0 <= i; i--) {
5062
5112
  node = rows[i];
5063
5113
  task.row = previousSuspenseListRow = createSuspenseListRow(
5064
5114
  previousSuspenseListRow
5065
5115
  );
5066
- task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
5116
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
5067
5117
  resumeSegmentID = createPendingSegment(
5068
5118
  request,
5069
5119
  n,
@@ -5100,7 +5150,7 @@
5100
5150
  (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
5101
5151
  task.treeContext = prevTreeContext;
5102
5152
  task.row = prevRow;
5103
- task.keyPath = keyPath;
5153
+ task.keyPath = prevKeyPath;
5104
5154
  task.componentStack = previousComponentStack;
5105
5155
  task.debugTask = previousDebugTask;
5106
5156
  }
@@ -5645,7 +5695,7 @@
5645
5695
  );
5646
5696
  segment.lastPushedText = !1;
5647
5697
  var _prevContext2 = task.formatContext,
5648
- _prevKeyPath2 = task.keyPath;
5698
+ _prevKeyPath3 = task.keyPath;
5649
5699
  task.keyPath = keyPath;
5650
5700
  if (
5651
5701
  (task.formatContext = getChildFormatContext(
@@ -5686,7 +5736,7 @@
5686
5736
  request.pingedTasks.push(preambleTask);
5687
5737
  } else renderNode(request, task, _children, -1);
5688
5738
  task.formatContext = _prevContext2;
5689
- task.keyPath = _prevKeyPath2;
5739
+ task.keyPath = _prevKeyPath3;
5690
5740
  a: {
5691
5741
  var target = segment.chunks,
5692
5742
  resumableState = request.resumableState;
@@ -5752,10 +5802,10 @@
5752
5802
  } else if ("hidden" !== props.mode) {
5753
5803
  segment$jscomp$0.chunks.push(startActivityBoundary);
5754
5804
  segment$jscomp$0.lastPushedText = !1;
5755
- var _prevKeyPath3 = task.keyPath;
5805
+ var _prevKeyPath4 = task.keyPath;
5756
5806
  task.keyPath = keyPath;
5757
5807
  renderNode(request, task, props.children, -1);
5758
- task.keyPath = _prevKeyPath3;
5808
+ task.keyPath = _prevKeyPath4;
5759
5809
  segment$jscomp$0.chunks.push(endActivityBoundary);
5760
5810
  segment$jscomp$0.lastPushedText = !1;
5761
5811
  }
@@ -5803,10 +5853,27 @@
5803
5853
  }
5804
5854
  }
5805
5855
  }
5806
- var prevKeyPath$jscomp$3 = task.keyPath;
5807
- task.keyPath = keyPath;
5808
- renderNodeDestructive(request, task, children$jscomp$0, -1);
5809
- task.keyPath = prevKeyPath$jscomp$3;
5856
+ if ("together" === revealOrder) {
5857
+ var _prevKeyPath2 = task.keyPath,
5858
+ prevRow = task.row,
5859
+ newRow = (task.row = createSuspenseListRow(null));
5860
+ newRow.boundaries = [];
5861
+ newRow.together = !0;
5862
+ task.keyPath = keyPath;
5863
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5864
+ 0 === --newRow.pendingTasks &&
5865
+ finishSuspenseListRow(request, newRow);
5866
+ task.keyPath = _prevKeyPath2;
5867
+ task.row = prevRow;
5868
+ null !== prevRow &&
5869
+ 0 < newRow.pendingTasks &&
5870
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
5871
+ } else {
5872
+ var prevKeyPath$jscomp$3 = task.keyPath;
5873
+ task.keyPath = keyPath;
5874
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5875
+ task.keyPath = prevKeyPath$jscomp$3;
5876
+ }
5810
5877
  }
5811
5878
  return;
5812
5879
  case REACT_VIEW_TRANSITION_TYPE:
@@ -5836,7 +5903,7 @@
5836
5903
  } else {
5837
5904
  var prevKeyPath$jscomp$4 = task.keyPath,
5838
5905
  prevContext$jscomp$0 = task.formatContext,
5839
- prevRow = task.row,
5906
+ prevRow$jscomp$0 = task.row,
5840
5907
  parentBoundary = task.blockedBoundary,
5841
5908
  parentPreamble = task.blockedPreamble,
5842
5909
  parentHoistableState = task.hoistableState,
@@ -5971,18 +6038,24 @@
5971
6038
  finishedSegment(request, newBoundary, contentRootSegment),
5972
6039
  queueCompletedSegment(newBoundary, contentRootSegment),
5973
6040
  0 === newBoundary.pendingTasks &&
5974
- newBoundary.status === PENDING &&
5975
- ((newBoundary.status = COMPLETED),
5976
- !(500 < newBoundary.byteSize)))
6041
+ newBoundary.status === PENDING)
5977
6042
  ) {
5978
- null !== prevRow &&
5979
- 0 === --prevRow.pendingTasks &&
5980
- finishSuspenseListRow(request, prevRow);
5981
- 0 === request.pendingRootTasks &&
5982
- task.blockedPreamble &&
5983
- preparePreamble(request);
5984
- break a;
5985
- }
6043
+ if (
6044
+ ((newBoundary.status = COMPLETED),
6045
+ !(500 < newBoundary.byteSize))
6046
+ ) {
6047
+ null !== prevRow$jscomp$0 &&
6048
+ 0 === --prevRow$jscomp$0.pendingTasks &&
6049
+ finishSuspenseListRow(request, prevRow$jscomp$0);
6050
+ 0 === request.pendingRootTasks &&
6051
+ task.blockedPreamble &&
6052
+ preparePreamble(request);
6053
+ break a;
6054
+ }
6055
+ } else
6056
+ null !== prevRow$jscomp$0 &&
6057
+ prevRow$jscomp$0.together &&
6058
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
5986
6059
  } catch (thrownValue$2) {
5987
6060
  newBoundary.status = CLIENT_RENDERED;
5988
6061
  if (12 === request.status) {
@@ -6012,7 +6085,7 @@
6012
6085
  (task.blockedSegment = parentSegment),
6013
6086
  (task.keyPath = prevKeyPath$jscomp$4),
6014
6087
  (task.formatContext = prevContext$jscomp$0),
6015
- (task.row = prevRow);
6088
+ (task.row = prevRow$jscomp$0);
6016
6089
  }
6017
6090
  var suspendedFallbackTask = createRenderTask(
6018
6091
  request,
@@ -6972,10 +7045,6 @@
6972
7045
  if (6 === segment.status) return;
6973
7046
  segment.status = ABORTED;
6974
7047
  }
6975
- segment = task.row;
6976
- null !== segment &&
6977
- 0 === --segment.pendingTasks &&
6978
- finishSuspenseListRow(request, segment);
6979
7048
  segment = getThrownInfo(task.componentStack);
6980
7049
  if (null === boundary) {
6981
7050
  if (13 !== request.status && request.status !== CLOSED) {
@@ -6986,36 +7055,49 @@
6986
7055
  return;
6987
7056
  }
6988
7057
  boundary.pendingTasks--;
6989
- 0 === boundary.pendingTasks &&
6990
- 0 < boundary.nodes.length &&
6991
- ((task = logRecoverableError(request, error, segment, null)),
7058
+ if (0 === boundary.pendingTasks && 0 < boundary.nodes.length) {
7059
+ var errorDigest = logRecoverableError(
7060
+ request,
7061
+ error,
7062
+ segment,
7063
+ null
7064
+ );
6992
7065
  abortRemainingReplayNodes(
6993
7066
  request,
6994
7067
  null,
6995
7068
  boundary.nodes,
6996
7069
  boundary.slots,
6997
7070
  error,
6998
- task,
7071
+ errorDigest,
6999
7072
  segment,
7000
7073
  !0
7001
- ));
7074
+ );
7075
+ }
7002
7076
  request.pendingRootTasks--;
7003
7077
  0 === request.pendingRootTasks && completeShell(request);
7004
7078
  }
7005
7079
  } else
7006
- boundary.pendingTasks--,
7007
- boundary.status !== CLIENT_RENDERED &&
7008
- ((boundary.status = CLIENT_RENDERED),
7009
- (task = logRecoverableError(request, error, segment, null)),
7010
- (boundary.status = CLIENT_RENDERED),
7011
- encodeErrorForBoundary(boundary, task, error, segment, !0),
7012
- untrackBoundary(request, boundary),
7013
- boundary.parentFlushed &&
7014
- request.clientRenderedBoundaries.push(boundary)),
7080
+ boundary.status !== CLIENT_RENDERED &&
7081
+ ((boundary.status = CLIENT_RENDERED),
7082
+ (errorDigest = logRecoverableError(request, error, segment, null)),
7083
+ (boundary.status = CLIENT_RENDERED),
7084
+ encodeErrorForBoundary(boundary, errorDigest, error, segment, !0),
7085
+ untrackBoundary(request, boundary),
7086
+ boundary.parentFlushed &&
7087
+ request.clientRenderedBoundaries.push(boundary)),
7088
+ boundary.pendingTasks--,
7089
+ (segment = boundary.row),
7090
+ null !== segment &&
7091
+ 0 === --segment.pendingTasks &&
7092
+ finishSuspenseListRow(request, segment),
7015
7093
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7016
7094
  return abortTask(fallbackTask, request, error);
7017
7095
  }),
7018
7096
  boundary.fallbackAbortableTasks.clear();
7097
+ task = task.row;
7098
+ null !== task &&
7099
+ 0 === --task.pendingTasks &&
7100
+ finishSuspenseListRow(request, task);
7019
7101
  request.allPendingTasks--;
7020
7102
  0 === request.allPendingTasks && completeAll(request);
7021
7103
  }
@@ -7127,55 +7209,129 @@
7127
7209
  : (boundary.byteSize += segmentByteSize);
7128
7210
  }
7129
7211
  }
7130
- function finishedTask(request, boundary, row, segment) {
7212
+ function finishedTask(request$jscomp$0, boundary$jscomp$0, row, segment) {
7131
7213
  null !== row &&
7132
- 0 === --row.pendingTasks &&
7133
- finishSuspenseListRow(request, row);
7134
- request.allPendingTasks--;
7135
- if (null === boundary) {
7214
+ (0 === --row.pendingTasks
7215
+ ? finishSuspenseListRow(request$jscomp$0, row)
7216
+ : row.together && tryToResolveTogetherRow(request$jscomp$0, row));
7217
+ request$jscomp$0.allPendingTasks--;
7218
+ if (null === boundary$jscomp$0) {
7136
7219
  if (null !== segment && segment.parentFlushed) {
7137
- if (null !== request.completedRootSegment)
7220
+ if (null !== request$jscomp$0.completedRootSegment)
7138
7221
  throw Error(
7139
7222
  "There can only be one root segment. This is a bug in React."
7140
7223
  );
7141
- request.completedRootSegment = segment;
7224
+ request$jscomp$0.completedRootSegment = segment;
7142
7225
  }
7143
- request.pendingRootTasks--;
7144
- 0 === request.pendingRootTasks && completeShell(request);
7145
- } else
7146
- boundary.pendingTasks--,
7147
- boundary.status !== CLIENT_RENDERED &&
7148
- (0 === boundary.pendingTasks
7149
- ? (boundary.status === PENDING && (boundary.status = COMPLETED),
7150
- null !== segment &&
7151
- segment.parentFlushed &&
7152
- segment.status === COMPLETED &&
7153
- queueCompletedSegment(boundary, segment),
7154
- boundary.parentFlushed &&
7155
- request.completedBoundaries.push(boundary),
7156
- boundary.status === COMPLETED &&
7157
- (500 < boundary.byteSize ||
7158
- (boundary.fallbackAbortableTasks.forEach(
7159
- abortTaskSoft,
7160
- request
7161
- ),
7162
- boundary.fallbackAbortableTasks.clear(),
7163
- (row = boundary.row),
7164
- null !== row &&
7165
- 0 === --row.pendingTasks &&
7166
- finishSuspenseListRow(request, row)),
7167
- 0 === request.pendingRootTasks &&
7168
- null === request.trackedPostpones &&
7169
- null !== boundary.contentPreamble &&
7170
- preparePreamble(request)))
7171
- : null !== segment &&
7172
- segment.parentFlushed &&
7173
- segment.status === COMPLETED &&
7174
- (queueCompletedSegment(boundary, segment),
7175
- 1 === boundary.completedSegments.length &&
7176
- boundary.parentFlushed &&
7177
- request.partialBoundaries.push(boundary)));
7178
- 0 === request.allPendingTasks && completeAll(request);
7226
+ request$jscomp$0.pendingRootTasks--;
7227
+ 0 === request$jscomp$0.pendingRootTasks &&
7228
+ completeShell(request$jscomp$0);
7229
+ } else if (
7230
+ (boundary$jscomp$0.pendingTasks--,
7231
+ boundary$jscomp$0.status !== CLIENT_RENDERED)
7232
+ )
7233
+ if (0 === boundary$jscomp$0.pendingTasks)
7234
+ if (
7235
+ (boundary$jscomp$0.status === PENDING &&
7236
+ (boundary$jscomp$0.status = COMPLETED),
7237
+ null !== segment &&
7238
+ segment.parentFlushed &&
7239
+ segment.status === COMPLETED &&
7240
+ queueCompletedSegment(boundary$jscomp$0, segment),
7241
+ boundary$jscomp$0.parentFlushed &&
7242
+ request$jscomp$0.completedBoundaries.push(boundary$jscomp$0),
7243
+ boundary$jscomp$0.status === COMPLETED)
7244
+ )
7245
+ (row = boundary$jscomp$0.row),
7246
+ null !== row &&
7247
+ hoistHoistables(row.hoistables, boundary$jscomp$0.contentState),
7248
+ 500 < boundary$jscomp$0.byteSize ||
7249
+ (boundary$jscomp$0.fallbackAbortableTasks.forEach(
7250
+ abortTaskSoft,
7251
+ request$jscomp$0
7252
+ ),
7253
+ boundary$jscomp$0.fallbackAbortableTasks.clear(),
7254
+ null !== row &&
7255
+ 0 === --row.pendingTasks &&
7256
+ finishSuspenseListRow(request$jscomp$0, row)),
7257
+ 0 === request$jscomp$0.pendingRootTasks &&
7258
+ null === request$jscomp$0.trackedPostpones &&
7259
+ null !== boundary$jscomp$0.contentPreamble &&
7260
+ preparePreamble(request$jscomp$0);
7261
+ else {
7262
+ if (
7263
+ boundary$jscomp$0.status === POSTPONED &&
7264
+ ((boundary$jscomp$0 = boundary$jscomp$0.row),
7265
+ null !== boundary$jscomp$0)
7266
+ ) {
7267
+ if (null !== request$jscomp$0.trackedPostpones) {
7268
+ row = request$jscomp$0.trackedPostpones;
7269
+ var postponedRow = boundary$jscomp$0.next;
7270
+ if (
7271
+ null !== postponedRow &&
7272
+ ((segment = postponedRow.boundaries), null !== segment)
7273
+ )
7274
+ for (
7275
+ postponedRow.boundaries = null, postponedRow = 0;
7276
+ postponedRow < segment.length;
7277
+ postponedRow++
7278
+ ) {
7279
+ var postponedBoundary = segment[postponedRow];
7280
+ var request = request$jscomp$0,
7281
+ trackedPostpones = row,
7282
+ boundary = postponedBoundary;
7283
+ boundary.status = POSTPONED;
7284
+ boundary.rootSegmentID = request.nextSegmentId++;
7285
+ request = boundary.trackedContentKeyPath;
7286
+ if (null === request)
7287
+ throw Error(
7288
+ "It should not be possible to postpone at the root. This is a bug in React."
7289
+ );
7290
+ var fallbackReplayNode = boundary.trackedFallbackNode,
7291
+ children = [],
7292
+ boundaryNode = trackedPostpones.workingMap.get(request);
7293
+ void 0 === boundaryNode
7294
+ ? ((boundary = [
7295
+ request[1],
7296
+ request[2],
7297
+ children,
7298
+ null,
7299
+ fallbackReplayNode,
7300
+ boundary.rootSegmentID
7301
+ ]),
7302
+ trackedPostpones.workingMap.set(request, boundary),
7303
+ addToReplayParent(
7304
+ boundary,
7305
+ request[0],
7306
+ trackedPostpones
7307
+ ))
7308
+ : ((boundaryNode[4] = fallbackReplayNode),
7309
+ (boundaryNode[5] = boundary.rootSegmentID));
7310
+ finishedTask(
7311
+ request$jscomp$0,
7312
+ postponedBoundary,
7313
+ null,
7314
+ null
7315
+ );
7316
+ }
7317
+ }
7318
+ 0 === --boundary$jscomp$0.pendingTasks &&
7319
+ finishSuspenseListRow(request$jscomp$0, boundary$jscomp$0);
7320
+ }
7321
+ }
7322
+ else
7323
+ null !== segment &&
7324
+ segment.parentFlushed &&
7325
+ segment.status === COMPLETED &&
7326
+ (queueCompletedSegment(boundary$jscomp$0, segment),
7327
+ 1 === boundary$jscomp$0.completedSegments.length &&
7328
+ boundary$jscomp$0.parentFlushed &&
7329
+ request$jscomp$0.partialBoundaries.push(boundary$jscomp$0)),
7330
+ (boundary$jscomp$0 = boundary$jscomp$0.row),
7331
+ null !== boundary$jscomp$0 &&
7332
+ boundary$jscomp$0.together &&
7333
+ tryToResolveTogetherRow(request$jscomp$0, boundary$jscomp$0);
7334
+ 0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0);
7179
7335
  }
7180
7336
  function performWork(request$jscomp$2) {
7181
7337
  if (
@@ -7356,32 +7512,37 @@
7356
7512
  errorInfo$jscomp$1,
7357
7513
  debugTask
7358
7514
  );
7359
- null === boundary$jscomp$0
7360
- ? fatalError(
7361
- request,
7362
- x$jscomp$0,
7363
- errorInfo$jscomp$1,
7364
- debugTask
7365
- )
7366
- : (boundary$jscomp$0.pendingTasks--,
7367
- boundary$jscomp$0.status !== CLIENT_RENDERED &&
7368
- ((boundary$jscomp$0.status = CLIENT_RENDERED),
7369
- encodeErrorForBoundary(
7370
- boundary$jscomp$0,
7371
- prevTaskInDEV,
7372
- x$jscomp$0,
7373
- errorInfo$jscomp$1,
7374
- !1
7375
- ),
7376
- untrackBoundary(request, boundary$jscomp$0),
7377
- boundary$jscomp$0.parentFlushed &&
7378
- request.clientRenderedBoundaries.push(
7379
- boundary$jscomp$0
7380
- ),
7381
- 0 === request.pendingRootTasks &&
7382
- null === request.trackedPostpones &&
7383
- null !== boundary$jscomp$0.contentPreamble &&
7384
- preparePreamble(request)));
7515
+ if (null === boundary$jscomp$0)
7516
+ fatalError(
7517
+ request,
7518
+ x$jscomp$0,
7519
+ errorInfo$jscomp$1,
7520
+ debugTask
7521
+ );
7522
+ else if (
7523
+ (boundary$jscomp$0.pendingTasks--,
7524
+ boundary$jscomp$0.status !== CLIENT_RENDERED)
7525
+ ) {
7526
+ boundary$jscomp$0.status = CLIENT_RENDERED;
7527
+ encodeErrorForBoundary(
7528
+ boundary$jscomp$0,
7529
+ prevTaskInDEV,
7530
+ x$jscomp$0,
7531
+ errorInfo$jscomp$1,
7532
+ !1
7533
+ );
7534
+ untrackBoundary(request, boundary$jscomp$0);
7535
+ var boundaryRow = boundary$jscomp$0.row;
7536
+ null !== boundaryRow &&
7537
+ 0 === --boundaryRow.pendingTasks &&
7538
+ finishSuspenseListRow(request, boundaryRow);
7539
+ boundary$jscomp$0.parentFlushed &&
7540
+ request.clientRenderedBoundaries.push(boundary$jscomp$0);
7541
+ 0 === request.pendingRootTasks &&
7542
+ null === request.trackedPostpones &&
7543
+ null !== boundary$jscomp$0.contentPreamble &&
7544
+ preparePreamble(request);
7545
+ }
7385
7546
  0 === request.allPendingTasks && completeAll(request);
7386
7547
  }
7387
7548
  } finally {
@@ -7593,12 +7754,7 @@
7593
7754
  boundary.rootSegmentID
7594
7755
  ),
7595
7756
  hoistableState &&
7596
- ((boundary = boundary.fallbackState),
7597
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7598
- boundary.stylesheets.forEach(
7599
- hoistStylesheetDependency,
7600
- hoistableState
7601
- )),
7757
+ hoistHoistables(hoistableState, boundary.fallbackState),
7602
7758
  flushSubtree(request, destination, segment, hoistableState);
7603
7759
  else if (
7604
7760
  500 < boundary.byteSize &&
@@ -7615,12 +7771,7 @@
7615
7771
  else {
7616
7772
  flushedByteSize += boundary.byteSize;
7617
7773
  hoistableState &&
7618
- ((segment = boundary.contentState),
7619
- segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
7620
- segment.stylesheets.forEach(
7621
- hoistStylesheetDependency,
7622
- hoistableState
7623
- ));
7774
+ hoistHoistables(hoistableState, boundary.contentState);
7624
7775
  segment = boundary.row;
7625
7776
  null !== segment &&
7626
7777
  500 < boundary.byteSize &&
@@ -8072,6 +8223,17 @@
8072
8223
  break a;
8073
8224
  }
8074
8225
  completedSegments.splice(0, JSCompiler_inline_result);
8226
+ var row = boundary$jscomp$0.row;
8227
+ null !== row &&
8228
+ row.together &&
8229
+ 1 === boundary$jscomp$0.pendingTasks &&
8230
+ (1 === row.pendingTasks
8231
+ ? unblockSuspenseListRow(
8232
+ clientRenderedBoundaries,
8233
+ row,
8234
+ row.hoistables
8235
+ )
8236
+ : row.pendingTasks--);
8075
8237
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8076
8238
  boundary,
8077
8239
  boundary$jscomp$0.contentState,
@@ -8195,13 +8357,25 @@
8195
8357
  fatalError(request, error$4, reason, null);
8196
8358
  }
8197
8359
  }
8360
+ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
8361
+ if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
8362
+ else {
8363
+ var workingMap = trackedPostpones.workingMap,
8364
+ parentNode = workingMap.get(parentKeyPath);
8365
+ void 0 === parentNode &&
8366
+ ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
8367
+ workingMap.set(parentKeyPath, parentNode),
8368
+ addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
8369
+ parentNode[2].push(node);
8370
+ }
8371
+ }
8198
8372
  function ensureCorrectIsomorphicReactVersion() {
8199
8373
  var isomorphicReactPackageVersion = React.version;
8200
- if ("19.2.0-canary-c4676e72-20250520" !== isomorphicReactPackageVersion)
8374
+ if ("19.2.0-canary-8ce15b0f-20250522" !== isomorphicReactPackageVersion)
8201
8375
  throw Error(
8202
8376
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
8203
8377
  (isomorphicReactPackageVersion +
8204
- "\n - react-dom: 19.2.0-canary-c4676e72-20250520\nLearn more: https://react.dev/warnings/version-mismatch")
8378
+ "\n - react-dom: 19.2.0-canary-8ce15b0f-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
8205
8379
  );
8206
8380
  }
8207
8381
  var React = require("react"),
@@ -9428,10 +9602,10 @@
9428
9602
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
9429
9603
  stringToPrecomputedChunk('" data-pid="');
9430
9604
  var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
9431
- '$RB=[];$RV=function(){$RT=performance.now();var d=$RB;$RB=[];for(var a=0;a<d.length;a+=2){var b=d[a],h=d[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var c=b.data;if("/$"===c||"/&"===c)if(0===g)break;else g--;else"$"!==c&&"$?"!==c&&"$~"!==c&&"$!"!==c&&"&"!==c||g++}c=b.nextSibling;e.removeChild(b);b=c}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}};$RC=function(d,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),d=document.getElementById(d))d.previousSibling.data="$~",$RB.push(d,a),2===$RB.length&&setTimeout($RV,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
9605
+ '$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
9432
9606
  );
9433
9607
  stringToPrecomputedChunk(
9434
- "$RV=function(a){try{var b=document.__reactViewTransition;if(b){b.finished.then($RV,$RV);return}if(window._useVT){var c=document.__reactViewTransition=document.startViewTransition({update:a,types:[]});c.finished.finally(function(){document.__reactViewTransition===c&&(document.__reactViewTransition=null)});return}}catch(d){}a()}.bind(null,$RV);"
9608
+ '$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
9435
9609
  );
9436
9610
  var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
9437
9611
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
@@ -9884,5 +10058,5 @@
9884
10058
  startWork(request);
9885
10059
  });
9886
10060
  };
9887
- exports.version = "19.2.0-canary-c4676e72-20250520";
10061
+ exports.version = "19.2.0-canary-8ce15b0f-20250522";
9888
10062
  })();