react-markup 0.0.0-experimental-c4676e72-20250520 → 0.0.0-experimental-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.
@@ -5919,8 +5919,8 @@
5919
5919
  ? null
5920
5920
  : {
5921
5921
  update: parentViewTransition.update,
5922
- enter: null,
5923
- exit: null,
5922
+ enter: "none",
5923
+ exit: "none",
5924
5924
  share: parentViewTransition.update,
5925
5925
  name: parentViewTransition.autoName,
5926
5926
  autoName: parentViewTransition.autoName,
@@ -5962,11 +5962,11 @@
5962
5962
  ),
5963
5963
  formatContext.nameIdx++),
5964
5964
  pushStringAttribute(target, "vt-update", formatContext.update),
5965
- null !== formatContext.enter &&
5965
+ "none" !== formatContext.enter &&
5966
5966
  pushStringAttribute(target, "vt-enter", formatContext.enter),
5967
- null !== formatContext.exit &&
5967
+ "none" !== formatContext.exit &&
5968
5968
  pushStringAttribute(target, "vt-exit", formatContext.exit),
5969
- null !== formatContext.share &&
5969
+ "none" !== formatContext.share &&
5970
5970
  pushStringAttribute(target, "vt-share", formatContext.share));
5971
5971
  }
5972
5972
  function pushStyleAttribute(target, style) {
@@ -8610,6 +8610,10 @@
8610
8610
  function hoistStylesheetDependency(stylesheet) {
8611
8611
  this.stylesheets.add(stylesheet);
8612
8612
  }
8613
+ function hoistHoistables(parentState, childState) {
8614
+ childState.styles.forEach(hoistStyleQueueDependency, parentState);
8615
+ childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
8616
+ }
8613
8617
  function popToNearestCommonAncestor(prev, next) {
8614
8618
  if (prev !== next) {
8615
8619
  prev.context._currentValue2 = prev.parentValue;
@@ -9169,11 +9173,14 @@
9169
9173
  };
9170
9174
  null !== row &&
9171
9175
  (row.pendingTasks++,
9172
- (row = row.boundaries),
9173
- null !== row &&
9176
+ (contentPreamble = row.boundaries),
9177
+ null !== contentPreamble &&
9174
9178
  (request.allPendingTasks++,
9175
9179
  fallbackAbortableTasks.pendingTasks++,
9176
- row.push(fallbackAbortableTasks)));
9180
+ contentPreamble.push(fallbackAbortableTasks)),
9181
+ (request = row.inheritedHoistables),
9182
+ null !== request &&
9183
+ hoistHoistables(fallbackAbortableTasks.contentState, request));
9177
9184
  return fallbackAbortableTasks;
9178
9185
  }
9179
9186
  function createRenderTask(
@@ -9457,20 +9464,70 @@
9457
9464
  : ((request.status = 13), (request.fatalError = error));
9458
9465
  }
9459
9466
  function finishSuspenseListRow(request, row) {
9460
- for (row = row.next; null !== row; ) {
9461
- var unblockedBoundaries = row.boundaries;
9467
+ unblockSuspenseListRow(request, row.next, row.hoistables);
9468
+ }
9469
+ function unblockSuspenseListRow(
9470
+ request,
9471
+ unblockedRow,
9472
+ inheritedHoistables
9473
+ ) {
9474
+ for (; null !== unblockedRow; ) {
9475
+ null !== inheritedHoistables &&
9476
+ (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
9477
+ (unblockedRow.inheritedHoistables = inheritedHoistables));
9478
+ var unblockedBoundaries = unblockedRow.boundaries;
9462
9479
  if (null !== unblockedBoundaries) {
9463
- row.boundaries = null;
9464
- for (var i = 0; i < unblockedBoundaries.length; i++)
9465
- finishedTask(request, unblockedBoundaries[i], null, null);
9480
+ unblockedRow.boundaries = null;
9481
+ for (var i = 0; i < unblockedBoundaries.length; i++) {
9482
+ var unblockedBoundary = unblockedBoundaries[i];
9483
+ null !== inheritedHoistables &&
9484
+ hoistHoistables(
9485
+ unblockedBoundary.contentState,
9486
+ inheritedHoistables
9487
+ );
9488
+ finishedTask(request, unblockedBoundary, null, null);
9489
+ }
9490
+ }
9491
+ unblockedRow.pendingTasks--;
9492
+ if (0 < unblockedRow.pendingTasks) break;
9493
+ inheritedHoistables = unblockedRow.hoistables;
9494
+ unblockedRow = unblockedRow.next;
9495
+ }
9496
+ }
9497
+ function tryToResolveTogetherRow(request, togetherRow) {
9498
+ var boundaries = togetherRow.boundaries;
9499
+ if (
9500
+ null !== boundaries &&
9501
+ togetherRow.pendingTasks === boundaries.length
9502
+ ) {
9503
+ for (
9504
+ var allCompleteAndInlinable = !0, i = 0;
9505
+ i < boundaries.length;
9506
+ i++
9507
+ ) {
9508
+ var rowBoundary = boundaries[i];
9509
+ if (
9510
+ 1 !== rowBoundary.pendingTasks ||
9511
+ rowBoundary.parentFlushed ||
9512
+ 500 < rowBoundary.byteSize
9513
+ ) {
9514
+ allCompleteAndInlinable = !1;
9515
+ break;
9516
+ }
9466
9517
  }
9467
- row.pendingTasks--;
9468
- if (0 < row.pendingTasks) break;
9469
- row = row.next;
9518
+ allCompleteAndInlinable &&
9519
+ unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
9470
9520
  }
9471
9521
  }
9472
9522
  function createSuspenseListRow(previousRow) {
9473
- var newRow = { pendingTasks: 1, boundaries: null, next: null };
9523
+ var newRow = {
9524
+ pendingTasks: 1,
9525
+ boundaries: null,
9526
+ hoistables: createHoistableState(),
9527
+ inheritedHoistables: null,
9528
+ together: !1,
9529
+ next: null
9530
+ };
9474
9531
  null !== previousRow &&
9475
9532
  0 < previousRow.pendingTasks &&
9476
9533
  (newRow.pendingTasks++,
@@ -9479,28 +9536,25 @@
9479
9536
  return newRow;
9480
9537
  }
9481
9538
  function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
9482
- keyPath = task.keyPath;
9483
- var previousComponentStack = task.componentStack;
9539
+ var prevKeyPath = task.keyPath,
9540
+ prevTreeContext = task.treeContext,
9541
+ prevRow = task.row,
9542
+ previousComponentStack = task.componentStack;
9484
9543
  var previousDebugTask = task.debugTask;
9485
9544
  pushServerComponentStack(task, task.node.props.children._debugInfo);
9486
- var prevTreeContext = task.treeContext,
9487
- prevRow = task.row,
9488
- totalChildren = rows.length,
9489
- previousSuspenseListRow = null;
9545
+ task.keyPath = keyPath;
9546
+ keyPath = rows.length;
9547
+ var previousSuspenseListRow = null;
9490
9548
  if (null !== task.replay) {
9491
9549
  var resumeSlots = task.replay.slots;
9492
9550
  if (null !== resumeSlots && "object" === typeof resumeSlots)
9493
- for (var n = 0; n < totalChildren; n++) {
9494
- var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
9551
+ for (var n = 0; n < keyPath; n++) {
9552
+ var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
9495
9553
  node = rows[i];
9496
9554
  task.row = previousSuspenseListRow = createSuspenseListRow(
9497
9555
  previousSuspenseListRow
9498
9556
  );
9499
- task.treeContext = pushTreeContext(
9500
- prevTreeContext,
9501
- totalChildren,
9502
- i
9503
- );
9557
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
9504
9558
  var resumeSegmentID = resumeSlots[i];
9505
9559
  "number" === typeof resumeSegmentID
9506
9560
  ? (resumeNode(request, task, resumeSegmentID, node, i),
@@ -9510,32 +9564,28 @@
9510
9564
  finishSuspenseListRow(request, previousSuspenseListRow);
9511
9565
  }
9512
9566
  else
9513
- for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
9567
+ for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
9514
9568
  (n =
9515
9569
  "backwards" !== revealOrder
9516
9570
  ? resumeSlots
9517
- : totalChildren - 1 - resumeSlots),
9571
+ : keyPath - 1 - resumeSlots),
9518
9572
  (i = rows[n]),
9519
9573
  warnForMissingKey(request, task, i),
9520
9574
  (task.row = previousSuspenseListRow =
9521
9575
  createSuspenseListRow(previousSuspenseListRow)),
9522
- (task.treeContext = pushTreeContext(
9523
- prevTreeContext,
9524
- totalChildren,
9525
- n
9526
- )),
9576
+ (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
9527
9577
  renderNode(request, task, i, n),
9528
9578
  0 === --previousSuspenseListRow.pendingTasks &&
9529
9579
  finishSuspenseListRow(request, previousSuspenseListRow);
9530
9580
  } else if ("backwards" !== revealOrder)
9531
- for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
9581
+ for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
9532
9582
  (resumeSlots = rows[revealOrder]),
9533
9583
  warnForMissingKey(request, task, resumeSlots),
9534
9584
  (task.row = previousSuspenseListRow =
9535
9585
  createSuspenseListRow(previousSuspenseListRow)),
9536
9586
  (task.treeContext = pushTreeContext(
9537
9587
  prevTreeContext,
9538
- totalChildren,
9588
+ keyPath,
9539
9589
  revealOrder
9540
9590
  )),
9541
9591
  renderNode(request, task, resumeSlots, revealOrder),
@@ -9545,12 +9595,12 @@
9545
9595
  revealOrder = task.blockedSegment;
9546
9596
  resumeSlots = revealOrder.children.length;
9547
9597
  n = revealOrder.chunks.length;
9548
- for (i = totalChildren - 1; 0 <= i; i--) {
9598
+ for (i = keyPath - 1; 0 <= i; i--) {
9549
9599
  node = rows[i];
9550
9600
  task.row = previousSuspenseListRow = createSuspenseListRow(
9551
9601
  previousSuspenseListRow
9552
9602
  );
9553
- task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
9603
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
9554
9604
  resumeSegmentID = createPendingSegment(
9555
9605
  request,
9556
9606
  n,
@@ -9583,7 +9633,7 @@
9583
9633
  (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
9584
9634
  task.treeContext = prevTreeContext;
9585
9635
  task.row = prevRow;
9586
- task.keyPath = keyPath;
9636
+ task.keyPath = prevKeyPath;
9587
9637
  task.componentStack = previousComponentStack;
9588
9638
  task.debugTask = previousDebugTask;
9589
9639
  }
@@ -10150,7 +10200,7 @@
10150
10200
  );
10151
10201
  segment.lastPushedText = !1;
10152
10202
  var _prevContext2 = task.formatContext,
10153
- _prevKeyPath2 = task.keyPath;
10203
+ _prevKeyPath3 = task.keyPath;
10154
10204
  task.keyPath = keyPath;
10155
10205
  if (
10156
10206
  3 ===
@@ -10192,7 +10242,7 @@
10192
10242
  request.pingedTasks.push(preambleTask);
10193
10243
  } else renderNode(request, task, _children, -1);
10194
10244
  task.formatContext = _prevContext2;
10195
- task.keyPath = _prevKeyPath2;
10245
+ task.keyPath = _prevKeyPath3;
10196
10246
  a: {
10197
10247
  var target$jscomp$0 = segment.chunks,
10198
10248
  resumableState$jscomp$0 = request.resumableState;
@@ -10257,10 +10307,10 @@
10257
10307
  }
10258
10308
  } else if ("hidden" !== props.mode) {
10259
10309
  segment$jscomp$0.lastPushedText = !1;
10260
- var _prevKeyPath3 = task.keyPath;
10310
+ var _prevKeyPath4 = task.keyPath;
10261
10311
  task.keyPath = keyPath;
10262
10312
  renderNode(request, task, props.children, -1);
10263
- task.keyPath = _prevKeyPath3;
10313
+ task.keyPath = _prevKeyPath4;
10264
10314
  segment$jscomp$0.lastPushedText = !1;
10265
10315
  }
10266
10316
  return;
@@ -10353,10 +10403,27 @@
10353
10403
  }
10354
10404
  }
10355
10405
  }
10356
- var prevKeyPath$jscomp$3 = task.keyPath;
10357
- task.keyPath = keyPath;
10358
- renderNodeDestructive(request, task, children$jscomp$0, -1);
10359
- task.keyPath = prevKeyPath$jscomp$3;
10406
+ if ("together" === revealOrder) {
10407
+ var _prevKeyPath2 = task.keyPath,
10408
+ prevRow = task.row,
10409
+ newRow = (task.row = createSuspenseListRow(null));
10410
+ newRow.boundaries = [];
10411
+ newRow.together = !0;
10412
+ task.keyPath = keyPath;
10413
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
10414
+ 0 === --newRow.pendingTasks &&
10415
+ finishSuspenseListRow(request, newRow);
10416
+ task.keyPath = _prevKeyPath2;
10417
+ task.row = prevRow;
10418
+ null !== prevRow &&
10419
+ 0 < newRow.pendingTasks &&
10420
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
10421
+ } else {
10422
+ var prevKeyPath$jscomp$3 = task.keyPath;
10423
+ task.keyPath = keyPath;
10424
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
10425
+ task.keyPath = prevKeyPath$jscomp$3;
10426
+ }
10360
10427
  }
10361
10428
  return;
10362
10429
  case REACT_VIEW_TRANSITION_TYPE:
@@ -10406,7 +10473,7 @@
10406
10473
  } else {
10407
10474
  var prevKeyPath$jscomp$5 = task.keyPath,
10408
10475
  prevContext$jscomp$1 = task.formatContext,
10409
- prevRow = task.row,
10476
+ prevRow$jscomp$0 = task.row,
10410
10477
  parentBoundary = task.blockedBoundary,
10411
10478
  parentPreamble = task.blockedPreamble,
10412
10479
  parentHoistableState = task.hoistableState,
@@ -10531,18 +10598,23 @@
10531
10598
  (renderNode(request, task, content, -1),
10532
10599
  (contentRootSegment.status = 1),
10533
10600
  queueCompletedSegment(newBoundary, contentRootSegment),
10534
- 0 === newBoundary.pendingTasks &&
10535
- 0 === newBoundary.status &&
10536
- ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
10601
+ 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
10537
10602
  ) {
10538
- null !== prevRow &&
10539
- 0 === --prevRow.pendingTasks &&
10540
- finishSuspenseListRow(request, prevRow);
10541
- 0 === request.pendingRootTasks &&
10542
- task.blockedPreamble &&
10543
- preparePreamble(request);
10544
- break a;
10545
- }
10603
+ if (
10604
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize))
10605
+ ) {
10606
+ null !== prevRow$jscomp$0 &&
10607
+ 0 === --prevRow$jscomp$0.pendingTasks &&
10608
+ finishSuspenseListRow(request, prevRow$jscomp$0);
10609
+ 0 === request.pendingRootTasks &&
10610
+ task.blockedPreamble &&
10611
+ preparePreamble(request);
10612
+ break a;
10613
+ }
10614
+ } else
10615
+ null !== prevRow$jscomp$0 &&
10616
+ prevRow$jscomp$0.together &&
10617
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
10546
10618
  } catch (thrownValue$6) {
10547
10619
  newBoundary.status = 4;
10548
10620
  if (12 === request.status) {
@@ -10585,7 +10657,7 @@
10585
10657
  (task.blockedSegment = parentSegment),
10586
10658
  (task.keyPath = prevKeyPath$jscomp$5),
10587
10659
  (task.formatContext = prevContext$jscomp$1),
10588
- (task.row = prevRow);
10660
+ (task.row = prevRow$jscomp$0);
10589
10661
  }
10590
10662
  var suspendedFallbackTask = createRenderTask(
10591
10663
  request,
@@ -11313,6 +11385,35 @@
11313
11385
  task.componentStack = previousComponentStack;
11314
11386
  task.debugTask = previousDebugTask;
11315
11387
  }
11388
+ function trackPostponedBoundary(request, trackedPostpones, boundary) {
11389
+ boundary.status = 5;
11390
+ boundary.rootSegmentID = request.nextSegmentId++;
11391
+ request = boundary.trackedContentKeyPath;
11392
+ if (null === request)
11393
+ throw Error(
11394
+ "It should not be possible to postpone at the root. This is a bug in React."
11395
+ );
11396
+ var fallbackReplayNode = boundary.trackedFallbackNode,
11397
+ children = [],
11398
+ boundaryNode = trackedPostpones.workingMap.get(request);
11399
+ if (void 0 === boundaryNode)
11400
+ return (
11401
+ (boundary = [
11402
+ request[1],
11403
+ request[2],
11404
+ children,
11405
+ null,
11406
+ fallbackReplayNode,
11407
+ boundary.rootSegmentID
11408
+ ]),
11409
+ trackedPostpones.workingMap.set(request, boundary),
11410
+ addToReplayParent(boundary, request[0], trackedPostpones),
11411
+ boundary
11412
+ );
11413
+ boundaryNode[4] = fallbackReplayNode;
11414
+ boundaryNode[5] = boundary.rootSegmentID;
11415
+ return boundaryNode;
11416
+ }
11316
11417
  function trackPostpone(request, trackedPostpones, task, segment) {
11317
11418
  segment.status = 5;
11318
11419
  var keyPath = task.keyPath,
@@ -11324,51 +11425,22 @@
11324
11425
  (request.completedRootSegment.status = 5);
11325
11426
  else {
11326
11427
  if (null !== boundary && 0 === boundary.status) {
11327
- boundary.status = 5;
11328
- boundary.rootSegmentID = request.nextSegmentId++;
11329
- var boundaryKeyPath = boundary.trackedContentKeyPath;
11330
- if (null === boundaryKeyPath)
11331
- throw Error(
11332
- "It should not be possible to postpone at the root. This is a bug in React."
11333
- );
11334
- var fallbackReplayNode = boundary.trackedFallbackNode,
11335
- children = [];
11336
- if (boundaryKeyPath === keyPath && -1 === task.childIndex) {
11428
+ var boundaryNode = trackPostponedBoundary(
11429
+ request,
11430
+ trackedPostpones,
11431
+ boundary
11432
+ );
11433
+ if (
11434
+ boundary.trackedContentKeyPath === keyPath &&
11435
+ -1 === task.childIndex
11436
+ ) {
11337
11437
  -1 === segment.id &&
11338
11438
  (segment.id = segment.parentFlushed
11339
11439
  ? boundary.rootSegmentID
11340
11440
  : request.nextSegmentId++);
11341
- segment = [
11342
- boundaryKeyPath[1],
11343
- boundaryKeyPath[2],
11344
- children,
11345
- segment.id,
11346
- fallbackReplayNode,
11347
- boundary.rootSegmentID
11348
- ];
11349
- trackedPostpones.workingMap.set(boundaryKeyPath, segment);
11350
- addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
11441
+ boundaryNode[3] = segment.id;
11351
11442
  return;
11352
11443
  }
11353
- var _boundaryNode = trackedPostpones.workingMap.get(boundaryKeyPath);
11354
- void 0 === _boundaryNode
11355
- ? ((_boundaryNode = [
11356
- boundaryKeyPath[1],
11357
- boundaryKeyPath[2],
11358
- children,
11359
- null,
11360
- fallbackReplayNode,
11361
- boundary.rootSegmentID
11362
- ]),
11363
- trackedPostpones.workingMap.set(boundaryKeyPath, _boundaryNode),
11364
- addToReplayParent(
11365
- _boundaryNode,
11366
- boundaryKeyPath[0],
11367
- trackedPostpones
11368
- ))
11369
- : ((boundaryKeyPath = _boundaryNode),
11370
- (boundaryKeyPath[4] = fallbackReplayNode),
11371
- (boundaryKeyPath[5] = boundary.rootSegmentID));
11372
11444
  }
11373
11445
  -1 === segment.id &&
11374
11446
  (segment.id =
@@ -11395,15 +11467,15 @@
11395
11467
  }
11396
11468
  else if (
11397
11469
  ((boundary = trackedPostpones.workingMap),
11398
- (boundaryKeyPath = boundary.get(keyPath)),
11399
- void 0 === boundaryKeyPath)
11470
+ (boundaryNode = boundary.get(keyPath)),
11471
+ void 0 === boundaryNode)
11400
11472
  )
11401
11473
  (request = {}),
11402
- (boundaryKeyPath = [keyPath[1], keyPath[2], [], request]),
11403
- boundary.set(keyPath, boundaryKeyPath),
11404
- addToReplayParent(boundaryKeyPath, keyPath[0], trackedPostpones);
11405
- else if (((request = boundaryKeyPath[3]), null === request))
11406
- request = boundaryKeyPath[3] = {};
11474
+ (boundaryNode = [keyPath[1], keyPath[2], [], request]),
11475
+ boundary.set(keyPath, boundaryNode),
11476
+ addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
11477
+ else if (((request = boundaryNode[3]), null === request))
11478
+ request = boundaryNode[3] = {};
11407
11479
  else if ("number" === typeof request)
11408
11480
  throw Error(
11409
11481
  "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
@@ -11728,10 +11800,6 @@
11728
11800
  if (6 === segment.status) return;
11729
11801
  segment.status = 3;
11730
11802
  }
11731
- var row = task.row;
11732
- null !== row &&
11733
- 0 === --row.pendingTasks &&
11734
- finishSuspenseListRow(request, row);
11735
11803
  var errorInfo = getThrownInfo(task.componentStack);
11736
11804
  if (null === boundary) {
11737
11805
  if (13 !== request.status && 14 !== request.status) {
@@ -11744,7 +11812,7 @@
11744
11812
  null !== boundary && null !== segment
11745
11813
  ? (logPostpone(request, error.message, errorInfo, null),
11746
11814
  trackPostpone(request, boundary, task, segment),
11747
- finishedTask(request, null, row, segment))
11815
+ finishedTask(request, null, task.row, segment))
11748
11816
  : ((task = Error(
11749
11817
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
11750
11818
  error.message
@@ -11755,7 +11823,7 @@
11755
11823
  ? ((boundary = request.trackedPostpones),
11756
11824
  logRecoverableError(request, error, errorInfo, null),
11757
11825
  trackPostpone(request, boundary, task, segment),
11758
- finishedTask(request, null, row, segment))
11826
+ finishedTask(request, null, task.row, segment))
11759
11827
  : (logRecoverableError(request, error, errorInfo, null),
11760
11828
  fatalError(request, error, errorInfo, null));
11761
11829
  return;
@@ -11767,15 +11835,20 @@
11767
11835
  null !== error &&
11768
11836
  error.$$typeof === REACT_POSTPONE_TYPE
11769
11837
  ? (logPostpone(request, error.message, errorInfo, null),
11770
- (task = "POSTPONE"))
11771
- : (task = logRecoverableError(request, error, errorInfo, null)),
11838
+ (segment = "POSTPONE"))
11839
+ : (segment = logRecoverableError(
11840
+ request,
11841
+ error,
11842
+ errorInfo,
11843
+ null
11844
+ )),
11772
11845
  abortRemainingReplayNodes(
11773
11846
  request,
11774
11847
  null,
11775
11848
  boundary.nodes,
11776
11849
  boundary.slots,
11777
11850
  error,
11778
- task,
11851
+ segment,
11779
11852
  errorInfo,
11780
11853
  !0
11781
11854
  ));
@@ -11783,7 +11856,6 @@
11783
11856
  0 === request.pendingRootTasks && completeShell(request);
11784
11857
  }
11785
11858
  } else {
11786
- boundary.pendingTasks--;
11787
11859
  var _trackedPostpones2 = request.trackedPostpones;
11788
11860
  if (4 !== boundary.status) {
11789
11861
  if (null !== _trackedPostpones2 && null !== segment)
@@ -11798,7 +11870,7 @@
11798
11870
  return abortTask(fallbackTask, request, error);
11799
11871
  }),
11800
11872
  boundary.fallbackAbortableTasks.clear(),
11801
- finishedTask(request, boundary, row, segment)
11873
+ finishedTask(request, boundary, task.row, segment)
11802
11874
  );
11803
11875
  boundary.status = 4;
11804
11876
  if (
@@ -11809,26 +11881,35 @@
11809
11881
  logPostpone(request, error.message, errorInfo, null);
11810
11882
  if (null !== request.trackedPostpones && null !== segment) {
11811
11883
  trackPostpone(request, request.trackedPostpones, task, segment);
11812
- finishedTask(request, task.blockedBoundary, row, segment);
11884
+ finishedTask(request, task.blockedBoundary, task.row, segment);
11813
11885
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
11814
11886
  return abortTask(fallbackTask, request, error);
11815
11887
  });
11816
11888
  boundary.fallbackAbortableTasks.clear();
11817
11889
  return;
11818
11890
  }
11819
- task = "POSTPONE";
11820
- } else task = logRecoverableError(request, error, errorInfo, null);
11891
+ segment = "POSTPONE";
11892
+ } else segment = logRecoverableError(request, error, errorInfo, null);
11821
11893
  boundary.status = 4;
11822
- encodeErrorForBoundary(boundary, task, error, errorInfo, !0);
11894
+ encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
11823
11895
  untrackBoundary(request, boundary);
11824
11896
  boundary.parentFlushed &&
11825
11897
  request.clientRenderedBoundaries.push(boundary);
11826
11898
  }
11899
+ boundary.pendingTasks--;
11900
+ errorInfo = boundary.row;
11901
+ null !== errorInfo &&
11902
+ 0 === --errorInfo.pendingTasks &&
11903
+ finishSuspenseListRow(request, errorInfo);
11827
11904
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
11828
11905
  return abortTask(fallbackTask, request, error);
11829
11906
  });
11830
11907
  boundary.fallbackAbortableTasks.clear();
11831
11908
  }
11909
+ task = task.row;
11910
+ null !== task &&
11911
+ 0 === --task.pendingTasks &&
11912
+ finishSuspenseListRow(request, task);
11832
11913
  request.allPendingTasks--;
11833
11914
  0 === request.allPendingTasks && completeAll(request);
11834
11915
  }
@@ -11932,8 +12013,9 @@
11932
12013
  }
11933
12014
  function finishedTask(request, boundary, row, segment) {
11934
12015
  null !== row &&
11935
- 0 === --row.pendingTasks &&
11936
- finishSuspenseListRow(request, row);
12016
+ (0 === --row.pendingTasks
12017
+ ? finishSuspenseListRow(request, row)
12018
+ : row.together && tryToResolveTogetherRow(request, row));
11937
12019
  request.allPendingTasks--;
11938
12020
  if (null === boundary) {
11939
12021
  if (null !== segment && segment.parentFlushed) {
@@ -11945,39 +12027,72 @@
11945
12027
  }
11946
12028
  request.pendingRootTasks--;
11947
12029
  0 === request.pendingRootTasks && completeShell(request);
11948
- } else
11949
- boundary.pendingTasks--,
11950
- 4 !== boundary.status &&
11951
- (0 === boundary.pendingTasks
11952
- ? (0 === boundary.status && (boundary.status = 1),
11953
- null !== segment &&
11954
- segment.parentFlushed &&
11955
- 1 === segment.status &&
11956
- queueCompletedSegment(boundary, segment),
11957
- boundary.parentFlushed &&
11958
- request.completedBoundaries.push(boundary),
11959
- 1 === boundary.status &&
11960
- (500 < boundary.byteSize ||
11961
- (boundary.fallbackAbortableTasks.forEach(
11962
- abortTaskSoft,
11963
- request
11964
- ),
11965
- boundary.fallbackAbortableTasks.clear(),
11966
- (row = boundary.row),
11967
- null !== row &&
11968
- 0 === --row.pendingTasks &&
11969
- finishSuspenseListRow(request, row)),
11970
- 0 === request.pendingRootTasks &&
11971
- null === request.trackedPostpones &&
11972
- null !== boundary.contentPreamble &&
11973
- preparePreamble(request)))
11974
- : null !== segment &&
11975
- segment.parentFlushed &&
11976
- 1 === segment.status &&
11977
- (queueCompletedSegment(boundary, segment),
11978
- 1 === boundary.completedSegments.length &&
11979
- boundary.parentFlushed &&
11980
- request.partialBoundaries.push(boundary)));
12030
+ } else if ((boundary.pendingTasks--, 4 !== boundary.status))
12031
+ if (0 === boundary.pendingTasks)
12032
+ if (
12033
+ (0 === boundary.status && (boundary.status = 1),
12034
+ null !== segment &&
12035
+ segment.parentFlushed &&
12036
+ 1 === segment.status &&
12037
+ queueCompletedSegment(boundary, segment),
12038
+ boundary.parentFlushed &&
12039
+ request.completedBoundaries.push(boundary),
12040
+ 1 === boundary.status)
12041
+ )
12042
+ (row = boundary.row),
12043
+ null !== row &&
12044
+ hoistHoistables(row.hoistables, boundary.contentState),
12045
+ 500 < boundary.byteSize ||
12046
+ (boundary.fallbackAbortableTasks.forEach(
12047
+ abortTaskSoft,
12048
+ request
12049
+ ),
12050
+ boundary.fallbackAbortableTasks.clear(),
12051
+ null !== row &&
12052
+ 0 === --row.pendingTasks &&
12053
+ finishSuspenseListRow(request, row)),
12054
+ 0 === request.pendingRootTasks &&
12055
+ null === request.trackedPostpones &&
12056
+ null !== boundary.contentPreamble &&
12057
+ preparePreamble(request);
12058
+ else {
12059
+ if (
12060
+ 5 === boundary.status &&
12061
+ ((boundary = boundary.row), null !== boundary)
12062
+ ) {
12063
+ if (null !== request.trackedPostpones) {
12064
+ row = request.trackedPostpones;
12065
+ var postponedRow = boundary.next;
12066
+ if (
12067
+ null !== postponedRow &&
12068
+ ((segment = postponedRow.boundaries), null !== segment)
12069
+ )
12070
+ for (
12071
+ postponedRow.boundaries = null, postponedRow = 0;
12072
+ postponedRow < segment.length;
12073
+ postponedRow++
12074
+ ) {
12075
+ var postponedBoundary = segment[postponedRow];
12076
+ trackPostponedBoundary(request, row, postponedBoundary);
12077
+ finishedTask(request, postponedBoundary, null, null);
12078
+ }
12079
+ }
12080
+ 0 === --boundary.pendingTasks &&
12081
+ finishSuspenseListRow(request, boundary);
12082
+ }
12083
+ }
12084
+ else
12085
+ null !== segment &&
12086
+ segment.parentFlushed &&
12087
+ 1 === segment.status &&
12088
+ (queueCompletedSegment(boundary, segment),
12089
+ 1 === boundary.completedSegments.length &&
12090
+ boundary.parentFlushed &&
12091
+ request.partialBoundaries.push(boundary)),
12092
+ (boundary = boundary.row),
12093
+ null !== boundary &&
12094
+ boundary.together &&
12095
+ tryToResolveTogetherRow(request, boundary);
11981
12096
  0 === request.allPendingTasks && completeAll(request);
11982
12097
  }
11983
12098
  function performWork(request$jscomp$1) {
@@ -12210,30 +12325,36 @@
12210
12325
  errorInfo$jscomp$0,
12211
12326
  debugTask
12212
12327
  ));
12213
- null === boundary
12214
- ? fatalError(
12215
- request,
12216
- x$jscomp$0,
12217
- errorInfo$jscomp$0,
12218
- debugTask
12219
- )
12220
- : (boundary.pendingTasks--,
12221
- 4 !== boundary.status &&
12222
- ((boundary.status = 4),
12223
- encodeErrorForBoundary(
12224
- boundary,
12225
- prevTaskInDEV,
12226
- x$jscomp$0,
12227
- errorInfo$jscomp$0,
12228
- !1
12229
- ),
12230
- untrackBoundary(request, boundary),
12231
- boundary.parentFlushed &&
12232
- request.clientRenderedBoundaries.push(boundary),
12233
- 0 === request.pendingRootTasks &&
12234
- null === request.trackedPostpones &&
12235
- null !== boundary.contentPreamble &&
12236
- preparePreamble(request)));
12328
+ if (null === boundary)
12329
+ fatalError(
12330
+ request,
12331
+ x$jscomp$0,
12332
+ errorInfo$jscomp$0,
12333
+ debugTask
12334
+ );
12335
+ else if (
12336
+ (boundary.pendingTasks--, 4 !== boundary.status)
12337
+ ) {
12338
+ boundary.status = 4;
12339
+ encodeErrorForBoundary(
12340
+ boundary,
12341
+ prevTaskInDEV,
12342
+ x$jscomp$0,
12343
+ errorInfo$jscomp$0,
12344
+ !1
12345
+ );
12346
+ untrackBoundary(request, boundary);
12347
+ var boundaryRow = boundary.row;
12348
+ null !== boundaryRow &&
12349
+ 0 === --boundaryRow.pendingTasks &&
12350
+ finishSuspenseListRow(request, boundaryRow);
12351
+ boundary.parentFlushed &&
12352
+ request.clientRenderedBoundaries.push(boundary);
12353
+ 0 === request.pendingRootTasks &&
12354
+ null === request.trackedPostpones &&
12355
+ null !== boundary.contentPreamble &&
12356
+ preparePreamble(request);
12357
+ }
12237
12358
  0 === request.allPendingTasks && completeAll(request);
12238
12359
  }
12239
12360
  } finally {
@@ -12404,12 +12525,7 @@
12404
12525
  boundary.rootSegmentID
12405
12526
  ),
12406
12527
  hoistableState &&
12407
- ((boundary = boundary.fallbackState),
12408
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
12409
- boundary.stylesheets.forEach(
12410
- hoistStylesheetDependency,
12411
- hoistableState
12412
- )),
12528
+ hoistHoistables(hoistableState, boundary.fallbackState),
12413
12529
  flushSubtree(request, destination, segment, hoistableState),
12414
12530
  destination.push("\x3c!--/$--\x3e")
12415
12531
  );
@@ -12429,10 +12545,7 @@
12429
12545
  destination.push("\x3c!--/$--\x3e")
12430
12546
  );
12431
12547
  flushedByteSize += boundary.byteSize;
12432
- hoistableState &&
12433
- ((segment = boundary.contentState),
12434
- segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
12435
- segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
12548
+ hoistableState && hoistHoistables(hoistableState, boundary.contentState);
12436
12549
  segment = boundary.row;
12437
12550
  null !== segment &&
12438
12551
  500 < boundary.byteSize &&
@@ -12503,13 +12616,13 @@
12503
12616
  0 === (completedSegments.instructions & 2) &&
12504
12617
  ((completedSegments.instructions |= 2),
12505
12618
  destination.push(
12506
- '$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())};'
12619
+ '$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())};'
12507
12620
  )),
12508
12621
  requiresViewTransitions &&
12509
12622
  0 === (completedSegments.instructions & 256) &&
12510
12623
  ((completedSegments.instructions |= 256),
12511
12624
  destination.push(
12512
- "$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);"
12625
+ '$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);'
12513
12626
  )),
12514
12627
  0 === (completedSegments.instructions & 8)
12515
12628
  ? ((completedSegments.instructions |= 8),
@@ -12520,13 +12633,13 @@
12520
12633
  : (0 === (completedSegments.instructions & 2) &&
12521
12634
  ((completedSegments.instructions |= 2),
12522
12635
  destination.push(
12523
- '$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())};'
12636
+ '$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())};'
12524
12637
  )),
12525
12638
  requiresViewTransitions &&
12526
12639
  0 === (completedSegments.instructions & 256) &&
12527
12640
  ((completedSegments.instructions |= 256),
12528
12641
  destination.push(
12529
- "$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);"
12642
+ '$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);'
12530
12643
  )),
12531
12644
  destination.push('$RC("')))
12532
12645
  : requiresStyleInsertion
@@ -12890,6 +13003,17 @@
12890
13003
  break a;
12891
13004
  }
12892
13005
  completedSegments.splice(0, JSCompiler_inline_result);
13006
+ var row = boundary$jscomp$0.row;
13007
+ null !== row &&
13008
+ row.together &&
13009
+ 1 === boundary$jscomp$0.pendingTasks &&
13010
+ (1 === row.pendingTasks
13011
+ ? unblockSuspenseListRow(
13012
+ clientRenderedBoundaries,
13013
+ row,
13014
+ row.hoistables
13015
+ )
13016
+ : row.pendingTasks--);
12893
13017
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
12894
13018
  boundary,
12895
13019
  boundary$jscomp$0.contentState,
@@ -14481,5 +14605,5 @@
14481
14605
  });
14482
14606
  });
14483
14607
  };
14484
- exports.version = "19.2.0-experimental-c4676e72-20250520";
14608
+ exports.version = "19.2.0-experimental-8ce15b0f-20250522";
14485
14609
  })();