react-markup 0.0.0-experimental-462d08f9-20250517 → 0.0.0-experimental-c4676e72-20250520
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.
|
@@ -41,6 +41,14 @@
|
|
|
41
41
|
function scriptReplacer(match, prefix, s, suffix) {
|
|
42
42
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
|
43
43
|
}
|
|
44
|
+
function getIteratorFn(maybeIterable) {
|
|
45
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
46
|
+
return null;
|
|
47
|
+
maybeIterable =
|
|
48
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
49
|
+
maybeIterable["@@iterator"];
|
|
50
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
51
|
+
}
|
|
44
52
|
function objectName(object) {
|
|
45
53
|
return Object.prototype.toString
|
|
46
54
|
.call(object)
|
|
@@ -4609,6 +4617,7 @@
|
|
|
4609
4617
|
null,
|
|
4610
4618
|
emptyTreeContext,
|
|
4611
4619
|
null,
|
|
4620
|
+
null,
|
|
4612
4621
|
emptyContextObject,
|
|
4613
4622
|
null
|
|
4614
4623
|
);
|
|
@@ -4624,15 +4633,17 @@
|
|
|
4624
4633
|
}
|
|
4625
4634
|
function createSuspenseBoundary(
|
|
4626
4635
|
request,
|
|
4636
|
+
row,
|
|
4627
4637
|
fallbackAbortableTasks,
|
|
4628
4638
|
contentPreamble,
|
|
4629
4639
|
fallbackPreamble
|
|
4630
4640
|
) {
|
|
4631
|
-
|
|
4641
|
+
fallbackAbortableTasks = {
|
|
4632
4642
|
status: 0,
|
|
4633
4643
|
rootSegmentID: -1,
|
|
4634
4644
|
parentFlushed: !1,
|
|
4635
4645
|
pendingTasks: 0,
|
|
4646
|
+
row: row,
|
|
4636
4647
|
completedSegments: [],
|
|
4637
4648
|
byteSize: 0,
|
|
4638
4649
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
@@ -4647,6 +4658,14 @@
|
|
|
4647
4658
|
errorStack: null,
|
|
4648
4659
|
errorComponentStack: null
|
|
4649
4660
|
};
|
|
4661
|
+
null !== row &&
|
|
4662
|
+
(row.pendingTasks++,
|
|
4663
|
+
(row = row.boundaries),
|
|
4664
|
+
null !== row &&
|
|
4665
|
+
(request.allPendingTasks++,
|
|
4666
|
+
fallbackAbortableTasks.pendingTasks++,
|
|
4667
|
+
row.push(fallbackAbortableTasks)));
|
|
4668
|
+
return fallbackAbortableTasks;
|
|
4650
4669
|
}
|
|
4651
4670
|
function createRenderTask(
|
|
4652
4671
|
request,
|
|
@@ -4662,6 +4681,7 @@
|
|
|
4662
4681
|
formatContext,
|
|
4663
4682
|
context,
|
|
4664
4683
|
treeContext,
|
|
4684
|
+
row,
|
|
4665
4685
|
componentStack,
|
|
4666
4686
|
legacyContext,
|
|
4667
4687
|
debugTask
|
|
@@ -4670,6 +4690,7 @@
|
|
|
4670
4690
|
null === blockedBoundary
|
|
4671
4691
|
? request.pendingRootTasks++
|
|
4672
4692
|
: blockedBoundary.pendingTasks++;
|
|
4693
|
+
null !== row && row.pendingTasks++;
|
|
4673
4694
|
var task = {
|
|
4674
4695
|
replay: null,
|
|
4675
4696
|
node: node,
|
|
@@ -4686,6 +4707,7 @@
|
|
|
4686
4707
|
formatContext: formatContext,
|
|
4687
4708
|
context: context,
|
|
4688
4709
|
treeContext: treeContext,
|
|
4710
|
+
row: row,
|
|
4689
4711
|
componentStack: componentStack,
|
|
4690
4712
|
thenableState: thenableState
|
|
4691
4713
|
};
|
|
@@ -4706,6 +4728,7 @@
|
|
|
4706
4728
|
formatContext,
|
|
4707
4729
|
context,
|
|
4708
4730
|
treeContext,
|
|
4731
|
+
row,
|
|
4709
4732
|
componentStack,
|
|
4710
4733
|
legacyContext,
|
|
4711
4734
|
debugTask
|
|
@@ -4714,6 +4737,7 @@
|
|
|
4714
4737
|
null === blockedBoundary
|
|
4715
4738
|
? request.pendingRootTasks++
|
|
4716
4739
|
: blockedBoundary.pendingTasks++;
|
|
4740
|
+
null !== row && row.pendingTasks++;
|
|
4717
4741
|
replay.pendingTasks++;
|
|
4718
4742
|
var task = {
|
|
4719
4743
|
replay: replay,
|
|
@@ -4731,6 +4755,7 @@
|
|
|
4731
4755
|
formatContext: formatContext,
|
|
4732
4756
|
context: context,
|
|
4733
4757
|
treeContext: treeContext,
|
|
4758
|
+
row: row,
|
|
4734
4759
|
componentStack: componentStack,
|
|
4735
4760
|
thenableState: thenableState
|
|
4736
4761
|
};
|
|
@@ -4922,6 +4947,137 @@
|
|
|
4922
4947
|
? ((request.status = 14), request.destination.destroy(error))
|
|
4923
4948
|
: ((request.status = 13), (request.fatalError = error));
|
|
4924
4949
|
}
|
|
4950
|
+
function finishSuspenseListRow(request, row) {
|
|
4951
|
+
for (row = row.next; null !== row; ) {
|
|
4952
|
+
var unblockedBoundaries = row.boundaries;
|
|
4953
|
+
if (null !== unblockedBoundaries) {
|
|
4954
|
+
row.boundaries = null;
|
|
4955
|
+
for (var i = 0; i < unblockedBoundaries.length; i++)
|
|
4956
|
+
finishedTask(request, unblockedBoundaries[i], null, null);
|
|
4957
|
+
}
|
|
4958
|
+
row.pendingTasks--;
|
|
4959
|
+
if (0 < row.pendingTasks) break;
|
|
4960
|
+
row = row.next;
|
|
4961
|
+
}
|
|
4962
|
+
}
|
|
4963
|
+
function createSuspenseListRow(previousRow) {
|
|
4964
|
+
var newRow = { pendingTasks: 1, boundaries: null, next: null };
|
|
4965
|
+
null !== previousRow &&
|
|
4966
|
+
0 < previousRow.pendingTasks &&
|
|
4967
|
+
(newRow.pendingTasks++,
|
|
4968
|
+
(newRow.boundaries = []),
|
|
4969
|
+
(previousRow.next = newRow));
|
|
4970
|
+
return newRow;
|
|
4971
|
+
}
|
|
4972
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
4973
|
+
keyPath = task.keyPath;
|
|
4974
|
+
var previousComponentStack = task.componentStack;
|
|
4975
|
+
var previousDebugTask = task.debugTask;
|
|
4976
|
+
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
|
4977
|
+
var prevTreeContext = task.treeContext,
|
|
4978
|
+
prevRow = task.row,
|
|
4979
|
+
totalChildren = rows.length,
|
|
4980
|
+
previousSuspenseListRow = null;
|
|
4981
|
+
if (null !== task.replay) {
|
|
4982
|
+
var resumeSlots = task.replay.slots;
|
|
4983
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
|
4984
|
+
for (var n = 0; n < totalChildren; n++) {
|
|
4985
|
+
var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
|
|
4986
|
+
node = rows[i];
|
|
4987
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
4988
|
+
previousSuspenseListRow
|
|
4989
|
+
);
|
|
4990
|
+
task.treeContext = pushTreeContext(
|
|
4991
|
+
prevTreeContext,
|
|
4992
|
+
totalChildren,
|
|
4993
|
+
i
|
|
4994
|
+
);
|
|
4995
|
+
var resumeSegmentID = resumeSlots[i];
|
|
4996
|
+
"number" === typeof resumeSegmentID
|
|
4997
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
|
4998
|
+
delete resumeSlots[i])
|
|
4999
|
+
: renderNode(request, task, node, i);
|
|
5000
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5001
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5002
|
+
}
|
|
5003
|
+
else
|
|
5004
|
+
for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
|
|
5005
|
+
(n =
|
|
5006
|
+
"backwards" !== revealOrder
|
|
5007
|
+
? resumeSlots
|
|
5008
|
+
: totalChildren - 1 - resumeSlots),
|
|
5009
|
+
(i = rows[n]),
|
|
5010
|
+
warnForMissingKey(request, task, i),
|
|
5011
|
+
(task.row = previousSuspenseListRow =
|
|
5012
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
5013
|
+
(task.treeContext = pushTreeContext(
|
|
5014
|
+
prevTreeContext,
|
|
5015
|
+
totalChildren,
|
|
5016
|
+
n
|
|
5017
|
+
)),
|
|
5018
|
+
renderNode(request, task, i, n),
|
|
5019
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5020
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5021
|
+
} else if ("backwards" !== revealOrder)
|
|
5022
|
+
for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
|
|
5023
|
+
(resumeSlots = rows[revealOrder]),
|
|
5024
|
+
warnForMissingKey(request, task, resumeSlots),
|
|
5025
|
+
(task.row = previousSuspenseListRow =
|
|
5026
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
5027
|
+
(task.treeContext = pushTreeContext(
|
|
5028
|
+
prevTreeContext,
|
|
5029
|
+
totalChildren,
|
|
5030
|
+
revealOrder
|
|
5031
|
+
)),
|
|
5032
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
|
5033
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5034
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5035
|
+
else {
|
|
5036
|
+
revealOrder = task.blockedSegment;
|
|
5037
|
+
resumeSlots = revealOrder.children.length;
|
|
5038
|
+
n = revealOrder.chunks.length;
|
|
5039
|
+
for (i = totalChildren - 1; 0 <= i; i--) {
|
|
5040
|
+
node = rows[i];
|
|
5041
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
5042
|
+
previousSuspenseListRow
|
|
5043
|
+
);
|
|
5044
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
|
5045
|
+
resumeSegmentID = createPendingSegment(
|
|
5046
|
+
request,
|
|
5047
|
+
n,
|
|
5048
|
+
null,
|
|
5049
|
+
task.formatContext,
|
|
5050
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
|
5051
|
+
!0
|
|
5052
|
+
);
|
|
5053
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
|
5054
|
+
task.blockedSegment = resumeSegmentID;
|
|
5055
|
+
warnForMissingKey(request, task, node);
|
|
5056
|
+
try {
|
|
5057
|
+
renderNode(request, task, node, i),
|
|
5058
|
+
(resumeSegmentID.status = 1),
|
|
5059
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5060
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5061
|
+
} catch (thrownValue) {
|
|
5062
|
+
throw (
|
|
5063
|
+
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
|
5064
|
+
thrownValue)
|
|
5065
|
+
);
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
5068
|
+
task.blockedSegment = revealOrder;
|
|
5069
|
+
revealOrder.lastPushedText = !1;
|
|
5070
|
+
}
|
|
5071
|
+
null !== prevRow &&
|
|
5072
|
+
null !== previousSuspenseListRow &&
|
|
5073
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
|
5074
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
|
5075
|
+
task.treeContext = prevTreeContext;
|
|
5076
|
+
task.row = prevRow;
|
|
5077
|
+
task.keyPath = keyPath;
|
|
5078
|
+
task.componentStack = previousComponentStack;
|
|
5079
|
+
task.debugTask = previousDebugTask;
|
|
5080
|
+
}
|
|
4925
5081
|
function renderWithHooks(
|
|
4926
5082
|
request,
|
|
4927
5083
|
task,
|
|
@@ -5518,6 +5674,7 @@
|
|
|
5518
5674
|
task.formatContext,
|
|
5519
5675
|
task.context,
|
|
5520
5676
|
task.treeContext,
|
|
5677
|
+
task.row,
|
|
5521
5678
|
task.componentStack,
|
|
5522
5679
|
emptyContextObject,
|
|
5523
5680
|
task.debugTask
|
|
@@ -5599,14 +5756,103 @@
|
|
|
5599
5756
|
}
|
|
5600
5757
|
return;
|
|
5601
5758
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5759
|
+
a: {
|
|
5760
|
+
var children$jscomp$0 = props.children,
|
|
5761
|
+
revealOrder = props.revealOrder;
|
|
5762
|
+
if ("forwards" === revealOrder || "backwards" === revealOrder) {
|
|
5763
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
5764
|
+
renderSuspenseListRows(
|
|
5765
|
+
request,
|
|
5766
|
+
task,
|
|
5767
|
+
keyPath,
|
|
5768
|
+
children$jscomp$0,
|
|
5769
|
+
revealOrder
|
|
5770
|
+
);
|
|
5771
|
+
break a;
|
|
5772
|
+
}
|
|
5773
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
5774
|
+
if (iteratorFn) {
|
|
5775
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
5776
|
+
if (iterator) {
|
|
5777
|
+
validateIterable(
|
|
5778
|
+
task,
|
|
5779
|
+
children$jscomp$0,
|
|
5780
|
+
-1,
|
|
5781
|
+
iterator,
|
|
5782
|
+
iteratorFn
|
|
5783
|
+
);
|
|
5784
|
+
var step = iterator.next();
|
|
5785
|
+
if (!step.done) {
|
|
5786
|
+
var rows = [];
|
|
5787
|
+
do rows.push(step.value), (step = iterator.next());
|
|
5788
|
+
while (!step.done);
|
|
5789
|
+
renderSuspenseListRows(
|
|
5790
|
+
request,
|
|
5791
|
+
task,
|
|
5792
|
+
keyPath,
|
|
5793
|
+
children$jscomp$0,
|
|
5794
|
+
revealOrder
|
|
5795
|
+
);
|
|
5796
|
+
}
|
|
5797
|
+
break a;
|
|
5798
|
+
}
|
|
5799
|
+
}
|
|
5800
|
+
if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
|
|
5801
|
+
var _iterator = children$jscomp$0[ASYNC_ITERATOR]();
|
|
5802
|
+
if (_iterator) {
|
|
5803
|
+
validateAsyncIterable(
|
|
5804
|
+
task,
|
|
5805
|
+
children$jscomp$0,
|
|
5806
|
+
-1,
|
|
5807
|
+
_iterator
|
|
5808
|
+
);
|
|
5809
|
+
var prevThenableState = task.thenableState;
|
|
5810
|
+
task.thenableState = null;
|
|
5811
|
+
thenableIndexCounter = 0;
|
|
5812
|
+
thenableState = prevThenableState;
|
|
5813
|
+
var _rows = [],
|
|
5814
|
+
done = !1;
|
|
5815
|
+
if (_iterator === children$jscomp$0)
|
|
5816
|
+
for (
|
|
5817
|
+
var _step = readPreviousThenableFromState();
|
|
5818
|
+
void 0 !== _step;
|
|
5819
|
+
|
|
5820
|
+
) {
|
|
5821
|
+
if (_step.done) {
|
|
5822
|
+
done = !0;
|
|
5823
|
+
break;
|
|
5824
|
+
}
|
|
5825
|
+
_rows.push(_step.value);
|
|
5826
|
+
_step = readPreviousThenableFromState();
|
|
5827
|
+
}
|
|
5828
|
+
if (!done)
|
|
5829
|
+
for (
|
|
5830
|
+
var _step2 = unwrapThenable(_iterator.next());
|
|
5831
|
+
!_step2.done;
|
|
5832
|
+
|
|
5833
|
+
)
|
|
5834
|
+
_rows.push(_step2.value),
|
|
5835
|
+
(_step2 = unwrapThenable(_iterator.next()));
|
|
5836
|
+
renderSuspenseListRows(
|
|
5837
|
+
request,
|
|
5838
|
+
task,
|
|
5839
|
+
keyPath,
|
|
5840
|
+
_rows,
|
|
5841
|
+
revealOrder
|
|
5842
|
+
);
|
|
5843
|
+
break a;
|
|
5844
|
+
}
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5847
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
5848
|
+
task.keyPath = keyPath;
|
|
5849
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5850
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
5851
|
+
}
|
|
5606
5852
|
return;
|
|
5607
5853
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
5608
5854
|
var prevContext$jscomp$0 = task.formatContext,
|
|
5609
|
-
prevKeyPath$jscomp$
|
|
5855
|
+
prevKeyPath$jscomp$4 = task.keyPath;
|
|
5610
5856
|
var resumableState$jscomp$1 = request.resumableState;
|
|
5611
5857
|
if (null == props.name || "auto" === props.name) {
|
|
5612
5858
|
var treeId = getTreeId(task.treeContext);
|
|
@@ -5623,7 +5869,7 @@
|
|
|
5623
5869
|
task.treeContext = prevTreeContext;
|
|
5624
5870
|
}
|
|
5625
5871
|
task.formatContext = prevContext$jscomp$0;
|
|
5626
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
5872
|
+
task.keyPath = prevKeyPath$jscomp$4;
|
|
5627
5873
|
return;
|
|
5628
5874
|
case REACT_SCOPE_TYPE:
|
|
5629
5875
|
throw Error(
|
|
@@ -5632,22 +5878,26 @@
|
|
|
5632
5878
|
case REACT_SUSPENSE_TYPE:
|
|
5633
5879
|
a: if (null !== task.replay) {
|
|
5634
5880
|
var _prevKeyPath = task.keyPath,
|
|
5635
|
-
_prevContext = task.formatContext
|
|
5881
|
+
_prevContext = task.formatContext,
|
|
5882
|
+
_prevRow = task.row;
|
|
5636
5883
|
task.keyPath = keyPath;
|
|
5637
5884
|
task.formatContext = getSuspenseContentFormatContext(
|
|
5638
5885
|
request.resumableState,
|
|
5639
5886
|
_prevContext
|
|
5640
5887
|
);
|
|
5888
|
+
task.row = null;
|
|
5641
5889
|
var _content = props.children;
|
|
5642
5890
|
try {
|
|
5643
5891
|
renderNode(request, task, _content, -1);
|
|
5644
5892
|
} finally {
|
|
5645
5893
|
(task.keyPath = _prevKeyPath),
|
|
5646
|
-
(task.formatContext = _prevContext)
|
|
5894
|
+
(task.formatContext = _prevContext),
|
|
5895
|
+
(task.row = _prevRow);
|
|
5647
5896
|
}
|
|
5648
5897
|
} else {
|
|
5649
|
-
var prevKeyPath$jscomp$
|
|
5898
|
+
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
5650
5899
|
prevContext$jscomp$1 = task.formatContext,
|
|
5900
|
+
prevRow = task.row,
|
|
5651
5901
|
parentBoundary = task.blockedBoundary,
|
|
5652
5902
|
parentPreamble = task.blockedPreamble,
|
|
5653
5903
|
parentHoistableState = task.hoistableState,
|
|
@@ -5659,12 +5909,14 @@
|
|
|
5659
5909
|
2 > task.formatContext.insertionMode
|
|
5660
5910
|
? createSuspenseBoundary(
|
|
5661
5911
|
request,
|
|
5912
|
+
task.row,
|
|
5662
5913
|
fallbackAbortSet,
|
|
5663
5914
|
createPreambleState(),
|
|
5664
5915
|
createPreambleState()
|
|
5665
5916
|
)
|
|
5666
5917
|
: createSuspenseBoundary(
|
|
5667
5918
|
request,
|
|
5919
|
+
task.row,
|
|
5668
5920
|
fallbackAbortSet,
|
|
5669
5921
|
null,
|
|
5670
5922
|
null
|
|
@@ -5726,7 +5978,7 @@
|
|
|
5726
5978
|
} finally {
|
|
5727
5979
|
(task.blockedSegment = parentSegment),
|
|
5728
5980
|
(task.blockedPreamble = parentPreamble),
|
|
5729
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
5981
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
5730
5982
|
(task.formatContext = prevContext$jscomp$1);
|
|
5731
5983
|
}
|
|
5732
5984
|
var suspendedPrimaryTask = createRenderTask(
|
|
@@ -5746,6 +5998,7 @@
|
|
|
5746
5998
|
),
|
|
5747
5999
|
task.context,
|
|
5748
6000
|
task.treeContext,
|
|
6001
|
+
null,
|
|
5749
6002
|
task.componentStack,
|
|
5750
6003
|
emptyContextObject,
|
|
5751
6004
|
task.debugTask
|
|
@@ -5762,6 +6015,7 @@
|
|
|
5762
6015
|
request.resumableState,
|
|
5763
6016
|
prevContext$jscomp$1
|
|
5764
6017
|
);
|
|
6018
|
+
task.row = null;
|
|
5765
6019
|
contentRootSegment.status = 6;
|
|
5766
6020
|
try {
|
|
5767
6021
|
if (
|
|
@@ -5772,6 +6026,9 @@
|
|
|
5772
6026
|
0 === newBoundary.status &&
|
|
5773
6027
|
((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
|
|
5774
6028
|
) {
|
|
6029
|
+
null !== prevRow &&
|
|
6030
|
+
0 === --prevRow.pendingTasks &&
|
|
6031
|
+
finishSuspenseListRow(request, prevRow);
|
|
5775
6032
|
0 === request.pendingRootTasks &&
|
|
5776
6033
|
task.blockedPreamble &&
|
|
5777
6034
|
preparePreamble(request);
|
|
@@ -5817,8 +6074,9 @@
|
|
|
5817
6074
|
(task.blockedPreamble = parentPreamble),
|
|
5818
6075
|
(task.hoistableState = parentHoistableState),
|
|
5819
6076
|
(task.blockedSegment = parentSegment),
|
|
5820
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
5821
|
-
(task.formatContext = prevContext$jscomp$1)
|
|
6077
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
6078
|
+
(task.formatContext = prevContext$jscomp$1),
|
|
6079
|
+
(task.row = prevRow);
|
|
5822
6080
|
}
|
|
5823
6081
|
var suspendedFallbackTask = createRenderTask(
|
|
5824
6082
|
request,
|
|
@@ -5837,6 +6095,7 @@
|
|
|
5837
6095
|
),
|
|
5838
6096
|
task.context,
|
|
5839
6097
|
task.treeContext,
|
|
6098
|
+
task.row,
|
|
5840
6099
|
task.componentStack,
|
|
5841
6100
|
emptyContextObject,
|
|
5842
6101
|
task.debugTask
|
|
@@ -5855,7 +6114,7 @@
|
|
|
5855
6114
|
for (var key in props)
|
|
5856
6115
|
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
5857
6116
|
} else propsWithoutRef = props;
|
|
5858
|
-
var children$jscomp$
|
|
6117
|
+
var children$jscomp$1 = renderWithHooks(
|
|
5859
6118
|
request,
|
|
5860
6119
|
task,
|
|
5861
6120
|
keyPath,
|
|
@@ -5867,7 +6126,7 @@
|
|
|
5867
6126
|
request,
|
|
5868
6127
|
task,
|
|
5869
6128
|
keyPath,
|
|
5870
|
-
children$jscomp$
|
|
6129
|
+
children$jscomp$1,
|
|
5871
6130
|
0 !== localIdCounter,
|
|
5872
6131
|
actionStateCounter,
|
|
5873
6132
|
actionStateMatchingIndex
|
|
@@ -5879,9 +6138,9 @@
|
|
|
5879
6138
|
case REACT_PROVIDER_TYPE:
|
|
5880
6139
|
case REACT_CONTEXT_TYPE:
|
|
5881
6140
|
var value$jscomp$0 = props.value,
|
|
5882
|
-
children$jscomp$
|
|
6141
|
+
children$jscomp$2 = props.children;
|
|
5883
6142
|
var prevSnapshot = task.context;
|
|
5884
|
-
var prevKeyPath$jscomp$
|
|
6143
|
+
var prevKeyPath$jscomp$6 = task.keyPath;
|
|
5885
6144
|
var prevValue = type._currentValue2;
|
|
5886
6145
|
type._currentValue2 = value$jscomp$0;
|
|
5887
6146
|
void 0 !== type._currentRenderer2 &&
|
|
@@ -5902,7 +6161,7 @@
|
|
|
5902
6161
|
currentActiveSnapshot = newNode;
|
|
5903
6162
|
task.context = newNode;
|
|
5904
6163
|
task.keyPath = keyPath;
|
|
5905
|
-
renderNodeDestructive(request, task, children$jscomp$
|
|
6164
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
5906
6165
|
var prevSnapshot$jscomp$0 = currentActiveSnapshot;
|
|
5907
6166
|
if (null === prevSnapshot$jscomp$0)
|
|
5908
6167
|
throw Error(
|
|
@@ -5924,7 +6183,7 @@
|
|
|
5924
6183
|
var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
|
|
5925
6184
|
prevSnapshot$jscomp$0.parent);
|
|
5926
6185
|
task.context = JSCompiler_inline_result$jscomp$0;
|
|
5927
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6186
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
5928
6187
|
prevSnapshot !== task.context &&
|
|
5929
6188
|
console.error(
|
|
5930
6189
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
|
@@ -5938,10 +6197,10 @@
|
|
|
5938
6197
|
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
|
5939
6198
|
);
|
|
5940
6199
|
var newChildren = render(context$jscomp$0._currentValue2),
|
|
5941
|
-
prevKeyPath$jscomp$
|
|
6200
|
+
prevKeyPath$jscomp$7 = task.keyPath;
|
|
5942
6201
|
task.keyPath = keyPath;
|
|
5943
6202
|
renderNodeDestructive(request, task, newChildren, -1);
|
|
5944
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6203
|
+
task.keyPath = prevKeyPath$jscomp$7;
|
|
5945
6204
|
return;
|
|
5946
6205
|
case REACT_LAZY_TYPE:
|
|
5947
6206
|
var Component = callLazyInitInDEV(type);
|
|
@@ -6066,6 +6325,7 @@
|
|
|
6066
6325
|
node = null === node[4] ? null : node[4][3];
|
|
6067
6326
|
var prevKeyPath = task.keyPath,
|
|
6068
6327
|
prevContext = task.formatContext,
|
|
6328
|
+
prevRow = task.row,
|
|
6069
6329
|
previousReplaySet = task.replay,
|
|
6070
6330
|
parentBoundary = task.blockedBoundary,
|
|
6071
6331
|
parentHoistableState = task.hoistableState,
|
|
@@ -6076,12 +6336,14 @@
|
|
|
6076
6336
|
2 > task.formatContext.insertionMode
|
|
6077
6337
|
? createSuspenseBoundary(
|
|
6078
6338
|
request,
|
|
6339
|
+
task.row,
|
|
6079
6340
|
fallbackAbortSet,
|
|
6080
6341
|
createPreambleState(),
|
|
6081
6342
|
createPreambleState()
|
|
6082
6343
|
)
|
|
6083
6344
|
: createSuspenseBoundary(
|
|
6084
6345
|
request,
|
|
6346
|
+
task.row,
|
|
6085
6347
|
fallbackAbortSet,
|
|
6086
6348
|
null,
|
|
6087
6349
|
null
|
|
@@ -6095,6 +6357,7 @@
|
|
|
6095
6357
|
request.resumableState,
|
|
6096
6358
|
prevContext
|
|
6097
6359
|
);
|
|
6360
|
+
task.row = null;
|
|
6098
6361
|
task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
|
|
6099
6362
|
try {
|
|
6100
6363
|
renderNode(request, task, content, -1);
|
|
@@ -6138,7 +6401,8 @@
|
|
|
6138
6401
|
(task.hoistableState = parentHoistableState),
|
|
6139
6402
|
(task.replay = previousReplaySet),
|
|
6140
6403
|
(task.keyPath = prevKeyPath),
|
|
6141
|
-
(task.formatContext = prevContext)
|
|
6404
|
+
(task.formatContext = prevContext),
|
|
6405
|
+
(task.row = prevRow);
|
|
6142
6406
|
}
|
|
6143
6407
|
props = createReplayTask(
|
|
6144
6408
|
request,
|
|
@@ -6156,6 +6420,7 @@
|
|
|
6156
6420
|
),
|
|
6157
6421
|
task.context,
|
|
6158
6422
|
task.treeContext,
|
|
6423
|
+
task.row,
|
|
6159
6424
|
task.componentStack,
|
|
6160
6425
|
emptyContextObject,
|
|
6161
6426
|
task.debugTask
|
|
@@ -6169,6 +6434,50 @@
|
|
|
6169
6434
|
}
|
|
6170
6435
|
}
|
|
6171
6436
|
}
|
|
6437
|
+
function validateIterable(
|
|
6438
|
+
task,
|
|
6439
|
+
iterable,
|
|
6440
|
+
childIndex,
|
|
6441
|
+
iterator,
|
|
6442
|
+
iteratorFn
|
|
6443
|
+
) {
|
|
6444
|
+
if (iterator === iterable) {
|
|
6445
|
+
if (
|
|
6446
|
+
-1 !== childIndex ||
|
|
6447
|
+
null === task.componentStack ||
|
|
6448
|
+
"function" !== typeof task.componentStack.type ||
|
|
6449
|
+
"[object GeneratorFunction]" !==
|
|
6450
|
+
Object.prototype.toString.call(task.componentStack.type) ||
|
|
6451
|
+
"[object Generator]" !== Object.prototype.toString.call(iterator)
|
|
6452
|
+
)
|
|
6453
|
+
didWarnAboutGenerators ||
|
|
6454
|
+
console.error(
|
|
6455
|
+
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
|
6456
|
+
),
|
|
6457
|
+
(didWarnAboutGenerators = !0);
|
|
6458
|
+
} else
|
|
6459
|
+
iterable.entries !== iteratorFn ||
|
|
6460
|
+
didWarnAboutMaps ||
|
|
6461
|
+
(console.error(
|
|
6462
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
6463
|
+
),
|
|
6464
|
+
(didWarnAboutMaps = !0));
|
|
6465
|
+
}
|
|
6466
|
+
function validateAsyncIterable(task, iterable, childIndex, iterator) {
|
|
6467
|
+
iterator !== iterable ||
|
|
6468
|
+
(-1 === childIndex &&
|
|
6469
|
+
null !== task.componentStack &&
|
|
6470
|
+
"function" === typeof task.componentStack.type &&
|
|
6471
|
+
"[object AsyncGeneratorFunction]" ===
|
|
6472
|
+
Object.prototype.toString.call(task.componentStack.type) &&
|
|
6473
|
+
"[object AsyncGenerator]" ===
|
|
6474
|
+
Object.prototype.toString.call(iterator)) ||
|
|
6475
|
+
(didWarnAboutGenerators ||
|
|
6476
|
+
console.error(
|
|
6477
|
+
"Using AsyncIterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You can use an AsyncIterable that can iterate multiple times over the same items."
|
|
6478
|
+
),
|
|
6479
|
+
(didWarnAboutGenerators = !0));
|
|
6480
|
+
}
|
|
6172
6481
|
function renderNodeDestructive(request, task, node, childIndex) {
|
|
6173
6482
|
null !== task.replay && "number" === typeof task.replay.slots
|
|
6174
6483
|
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
@@ -6254,60 +6563,23 @@
|
|
|
6254
6563
|
renderChildrenArray(request, task, node, childIndex);
|
|
6255
6564
|
return;
|
|
6256
6565
|
}
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
"function" !== typeof task.componentStack.type ||
|
|
6269
|
-
"[object GeneratorFunction]" !==
|
|
6270
|
-
Object.prototype.toString.call(task.componentStack.type) ||
|
|
6271
|
-
"[object Generator]" !== Object.prototype.toString.call(type)
|
|
6272
|
-
)
|
|
6273
|
-
didWarnAboutGenerators ||
|
|
6274
|
-
console.error(
|
|
6275
|
-
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
|
6276
|
-
),
|
|
6277
|
-
(didWarnAboutGenerators = !0);
|
|
6278
|
-
} else
|
|
6279
|
-
node.entries !== key ||
|
|
6280
|
-
didWarnAboutMaps ||
|
|
6281
|
-
(console.error(
|
|
6282
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
6283
|
-
),
|
|
6284
|
-
(didWarnAboutMaps = !0));
|
|
6285
|
-
node = type.next();
|
|
6286
|
-
if (!node.done) {
|
|
6287
|
-
key = [];
|
|
6288
|
-
do key.push(node.value), (node = type.next());
|
|
6289
|
-
while (!node.done);
|
|
6290
|
-
renderChildrenArray(request, task, key, childIndex);
|
|
6566
|
+
if ((key = getIteratorFn(node)))
|
|
6567
|
+
if ((type = key.call(node))) {
|
|
6568
|
+
validateIterable(task, node, childIndex, type, key);
|
|
6569
|
+
node = type.next();
|
|
6570
|
+
if (!node.done) {
|
|
6571
|
+
key = [];
|
|
6572
|
+
do key.push(node.value), (node = type.next());
|
|
6573
|
+
while (!node.done);
|
|
6574
|
+
renderChildrenArray(request, task, key, childIndex);
|
|
6575
|
+
}
|
|
6576
|
+
return;
|
|
6291
6577
|
}
|
|
6292
|
-
return;
|
|
6293
|
-
}
|
|
6294
6578
|
if (
|
|
6295
6579
|
"function" === typeof node[ASYNC_ITERATOR] &&
|
|
6296
6580
|
(type = node[ASYNC_ITERATOR]())
|
|
6297
6581
|
) {
|
|
6298
|
-
|
|
6299
|
-
(-1 === childIndex &&
|
|
6300
|
-
null !== task.componentStack &&
|
|
6301
|
-
"function" === typeof task.componentStack.type &&
|
|
6302
|
-
"[object AsyncGeneratorFunction]" ===
|
|
6303
|
-
Object.prototype.toString.call(task.componentStack.type) &&
|
|
6304
|
-
"[object AsyncGenerator]" ===
|
|
6305
|
-
Object.prototype.toString.call(type)) ||
|
|
6306
|
-
(didWarnAboutGenerators ||
|
|
6307
|
-
console.error(
|
|
6308
|
-
"Using AsyncIterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You can use an AsyncIterable that can iterate multiple times over the same items."
|
|
6309
|
-
),
|
|
6310
|
-
(didWarnAboutGenerators = !0));
|
|
6582
|
+
validateAsyncIterable(task, node, childIndex, type);
|
|
6311
6583
|
key = task.thenableState;
|
|
6312
6584
|
task.thenableState = null;
|
|
6313
6585
|
thenableIndexCounter = 0;
|
|
@@ -6379,7 +6651,70 @@
|
|
|
6379
6651
|
));
|
|
6380
6652
|
}
|
|
6381
6653
|
}
|
|
6382
|
-
function
|
|
6654
|
+
function warnForMissingKey(request, task, child) {
|
|
6655
|
+
if (
|
|
6656
|
+
null !== child &&
|
|
6657
|
+
"object" === typeof child &&
|
|
6658
|
+
(child.$$typeof === REACT_ELEMENT_TYPE ||
|
|
6659
|
+
child.$$typeof === REACT_PORTAL_TYPE) &&
|
|
6660
|
+
child._store &&
|
|
6661
|
+
((!child._store.validated && null == child.key) ||
|
|
6662
|
+
2 === child._store.validated)
|
|
6663
|
+
) {
|
|
6664
|
+
if ("object" !== typeof child._store)
|
|
6665
|
+
throw Error(
|
|
6666
|
+
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
|
6667
|
+
);
|
|
6668
|
+
child._store.validated = 1;
|
|
6669
|
+
var didWarnForKey = request.didWarnForKey;
|
|
6670
|
+
null == didWarnForKey &&
|
|
6671
|
+
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
|
6672
|
+
request = task.componentStack;
|
|
6673
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
|
6674
|
+
didWarnForKey.add(request);
|
|
6675
|
+
var componentName = getComponentNameFromType(child.type);
|
|
6676
|
+
didWarnForKey = child._owner;
|
|
6677
|
+
var parentOwner = request.owner;
|
|
6678
|
+
request = "";
|
|
6679
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6680
|
+
var name = getComponentNameFromType(parentOwner.type);
|
|
6681
|
+
name &&
|
|
6682
|
+
(request = "\n\nCheck the render method of `" + name + "`.");
|
|
6683
|
+
}
|
|
6684
|
+
request ||
|
|
6685
|
+
(componentName &&
|
|
6686
|
+
(request =
|
|
6687
|
+
"\n\nCheck the top-level render call using <" +
|
|
6688
|
+
componentName +
|
|
6689
|
+
">."));
|
|
6690
|
+
componentName = "";
|
|
6691
|
+
null != didWarnForKey &&
|
|
6692
|
+
parentOwner !== didWarnForKey &&
|
|
6693
|
+
((parentOwner = null),
|
|
6694
|
+
"undefined" !== typeof didWarnForKey.type
|
|
6695
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
|
6696
|
+
: "string" === typeof didWarnForKey.name &&
|
|
6697
|
+
(parentOwner = didWarnForKey.name),
|
|
6698
|
+
parentOwner &&
|
|
6699
|
+
(componentName =
|
|
6700
|
+
" It was passed a child from " + parentOwner + "."));
|
|
6701
|
+
didWarnForKey = task.componentStack;
|
|
6702
|
+
task.componentStack = {
|
|
6703
|
+
parent: task.componentStack,
|
|
6704
|
+
type: child.type,
|
|
6705
|
+
owner: child._owner,
|
|
6706
|
+
stack: child._debugStack
|
|
6707
|
+
};
|
|
6708
|
+
console.error(
|
|
6709
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
6710
|
+
request,
|
|
6711
|
+
componentName
|
|
6712
|
+
);
|
|
6713
|
+
task.componentStack = didWarnForKey;
|
|
6714
|
+
}
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6717
|
+
function renderChildrenArray(request, task, children, childIndex) {
|
|
6383
6718
|
var prevKeyPath = task.keyPath,
|
|
6384
6719
|
previousComponentStack = task.componentStack;
|
|
6385
6720
|
var previousDebugTask = task.debugTask;
|
|
@@ -6400,7 +6735,7 @@
|
|
|
6400
6735
|
node = node[3];
|
|
6401
6736
|
task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
|
|
6402
6737
|
try {
|
|
6403
|
-
renderChildrenArray(request
|
|
6738
|
+
renderChildrenArray(request, task, children, -1);
|
|
6404
6739
|
if (
|
|
6405
6740
|
1 === task.replay.pendingTasks &&
|
|
6406
6741
|
0 < task.replay.nodes.length
|
|
@@ -6419,7 +6754,7 @@
|
|
|
6419
6754
|
task.replay.pendingTasks--;
|
|
6420
6755
|
children = getThrownInfo(task.componentStack);
|
|
6421
6756
|
erroredReplay(
|
|
6422
|
-
request
|
|
6757
|
+
request,
|
|
6423
6758
|
task.blockedBoundary,
|
|
6424
6759
|
x,
|
|
6425
6760
|
children,
|
|
@@ -6449,15 +6784,9 @@
|
|
|
6449
6784
|
task.treeContext = pushTreeContext(replay, replayNodes, childIndex);
|
|
6450
6785
|
var resumeSegmentID = j[childIndex];
|
|
6451
6786
|
"number" === typeof resumeSegmentID
|
|
6452
|
-
? (resumeNode(
|
|
6453
|
-
request$jscomp$0,
|
|
6454
|
-
task,
|
|
6455
|
-
resumeSegmentID,
|
|
6456
|
-
node,
|
|
6457
|
-
childIndex
|
|
6458
|
-
),
|
|
6787
|
+
? (resumeNode(request, task, resumeSegmentID, node, childIndex),
|
|
6459
6788
|
delete j[childIndex])
|
|
6460
|
-
: renderNode(request
|
|
6789
|
+
: renderNode(request, task, node, childIndex);
|
|
6461
6790
|
}
|
|
6462
6791
|
task.treeContext = replay;
|
|
6463
6792
|
task.keyPath = prevKeyPath;
|
|
@@ -6465,75 +6794,11 @@
|
|
|
6465
6794
|
task.debugTask = previousDebugTask;
|
|
6466
6795
|
return;
|
|
6467
6796
|
}
|
|
6468
|
-
for (j = 0; j < replayNodes; j++)
|
|
6469
|
-
childIndex = children[j]
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
if (
|
|
6474
|
-
null !== resumeSegmentID &&
|
|
6475
|
-
"object" === typeof resumeSegmentID &&
|
|
6476
|
-
(resumeSegmentID.$$typeof === REACT_ELEMENT_TYPE ||
|
|
6477
|
-
resumeSegmentID.$$typeof === REACT_PORTAL_TYPE) &&
|
|
6478
|
-
resumeSegmentID._store &&
|
|
6479
|
-
((!resumeSegmentID._store.validated && null == resumeSegmentID.key) ||
|
|
6480
|
-
2 === resumeSegmentID._store.validated)
|
|
6481
|
-
) {
|
|
6482
|
-
if ("object" !== typeof resumeSegmentID._store)
|
|
6483
|
-
throw Error(
|
|
6484
|
-
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
|
6485
|
-
);
|
|
6486
|
-
resumeSegmentID._store.validated = 1;
|
|
6487
|
-
var didWarnForKey = request.didWarnForKey;
|
|
6488
|
-
null == didWarnForKey &&
|
|
6489
|
-
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
|
6490
|
-
request = node.componentStack;
|
|
6491
|
-
if (null !== request && !didWarnForKey.has(request)) {
|
|
6492
|
-
didWarnForKey.add(request);
|
|
6493
|
-
var componentName = getComponentNameFromType(resumeSegmentID.type);
|
|
6494
|
-
didWarnForKey = resumeSegmentID._owner;
|
|
6495
|
-
var parentOwner = request.owner;
|
|
6496
|
-
request = "";
|
|
6497
|
-
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6498
|
-
var name = getComponentNameFromType(parentOwner.type);
|
|
6499
|
-
name &&
|
|
6500
|
-
(request = "\n\nCheck the render method of `" + name + "`.");
|
|
6501
|
-
}
|
|
6502
|
-
request ||
|
|
6503
|
-
(componentName &&
|
|
6504
|
-
(request =
|
|
6505
|
-
"\n\nCheck the top-level render call using <" +
|
|
6506
|
-
componentName +
|
|
6507
|
-
">."));
|
|
6508
|
-
componentName = "";
|
|
6509
|
-
null != didWarnForKey &&
|
|
6510
|
-
parentOwner !== didWarnForKey &&
|
|
6511
|
-
((parentOwner = null),
|
|
6512
|
-
"undefined" !== typeof didWarnForKey.type
|
|
6513
|
-
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
|
6514
|
-
: "string" === typeof didWarnForKey.name &&
|
|
6515
|
-
(parentOwner = didWarnForKey.name),
|
|
6516
|
-
parentOwner &&
|
|
6517
|
-
(componentName =
|
|
6518
|
-
" It was passed a child from " + parentOwner + "."));
|
|
6519
|
-
didWarnForKey = node.componentStack;
|
|
6520
|
-
node.componentStack = {
|
|
6521
|
-
parent: node.componentStack,
|
|
6522
|
-
type: resumeSegmentID.type,
|
|
6523
|
-
owner: resumeSegmentID._owner,
|
|
6524
|
-
stack: resumeSegmentID._debugStack
|
|
6525
|
-
};
|
|
6526
|
-
console.error(
|
|
6527
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
6528
|
-
request,
|
|
6529
|
-
componentName
|
|
6530
|
-
);
|
|
6531
|
-
node.componentStack = didWarnForKey;
|
|
6532
|
-
}
|
|
6533
|
-
}
|
|
6534
|
-
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
|
6535
|
-
renderNode(request$jscomp$0, task, childIndex, j);
|
|
6536
|
-
}
|
|
6797
|
+
for (j = 0; j < replayNodes; j++)
|
|
6798
|
+
(childIndex = children[j]),
|
|
6799
|
+
warnForMissingKey(request, task, childIndex),
|
|
6800
|
+
(task.treeContext = pushTreeContext(replay, replayNodes, j)),
|
|
6801
|
+
renderNode(request, task, childIndex, j);
|
|
6537
6802
|
task.treeContext = replay;
|
|
6538
6803
|
task.keyPath = prevKeyPath;
|
|
6539
6804
|
task.componentStack = previousComponentStack;
|
|
@@ -6661,6 +6926,7 @@
|
|
|
6661
6926
|
task.formatContext,
|
|
6662
6927
|
task.context,
|
|
6663
6928
|
task.treeContext,
|
|
6929
|
+
task.row,
|
|
6664
6930
|
task.componentStack,
|
|
6665
6931
|
emptyContextObject,
|
|
6666
6932
|
task.debugTask
|
|
@@ -6692,6 +6958,7 @@
|
|
|
6692
6958
|
task.formatContext,
|
|
6693
6959
|
task.context,
|
|
6694
6960
|
task.treeContext,
|
|
6961
|
+
task.row,
|
|
6695
6962
|
task.componentStack,
|
|
6696
6963
|
emptyContextObject,
|
|
6697
6964
|
task.debugTask
|
|
@@ -6868,9 +7135,10 @@
|
|
|
6868
7135
|
);
|
|
6869
7136
|
}
|
|
6870
7137
|
function abortTaskSoft(task) {
|
|
6871
|
-
var boundary = task.blockedBoundary
|
|
6872
|
-
|
|
6873
|
-
null !==
|
|
7138
|
+
var boundary = task.blockedBoundary,
|
|
7139
|
+
segment = task.blockedSegment;
|
|
7140
|
+
null !== segment &&
|
|
7141
|
+
((segment.status = 3), finishedTask(this, boundary, task.row, segment));
|
|
6874
7142
|
}
|
|
6875
7143
|
function abortRemainingReplayNodes(
|
|
6876
7144
|
request$jscomp$0,
|
|
@@ -6904,6 +7172,7 @@
|
|
|
6904
7172
|
wasAborted = aborted,
|
|
6905
7173
|
resumedBoundary = createSuspenseBoundary(
|
|
6906
7174
|
request,
|
|
7175
|
+
null,
|
|
6907
7176
|
new Set(),
|
|
6908
7177
|
null,
|
|
6909
7178
|
null
|
|
@@ -6950,6 +7219,10 @@
|
|
|
6950
7219
|
if (6 === segment.status) return;
|
|
6951
7220
|
segment.status = 3;
|
|
6952
7221
|
}
|
|
7222
|
+
var row = task.row;
|
|
7223
|
+
null !== row &&
|
|
7224
|
+
0 === --row.pendingTasks &&
|
|
7225
|
+
finishSuspenseListRow(request, row);
|
|
6953
7226
|
var errorInfo = getThrownInfo(task.componentStack);
|
|
6954
7227
|
if (null === boundary) {
|
|
6955
7228
|
if (13 !== request.status && 14 !== request.status) {
|
|
@@ -6962,7 +7235,7 @@
|
|
|
6962
7235
|
null !== boundary && null !== segment
|
|
6963
7236
|
? (logPostpone(request, error.message, errorInfo, null),
|
|
6964
7237
|
trackPostpone(request, boundary, task, segment),
|
|
6965
|
-
finishedTask(request, null, segment))
|
|
7238
|
+
finishedTask(request, null, row, segment))
|
|
6966
7239
|
: ((task = Error(
|
|
6967
7240
|
"The render was aborted with postpone when the shell is incomplete. Reason: " +
|
|
6968
7241
|
error.message
|
|
@@ -6973,7 +7246,7 @@
|
|
|
6973
7246
|
? ((boundary = request.trackedPostpones),
|
|
6974
7247
|
logRecoverableError(request, error, errorInfo, null),
|
|
6975
7248
|
trackPostpone(request, boundary, task, segment),
|
|
6976
|
-
finishedTask(request, null, segment))
|
|
7249
|
+
finishedTask(request, null, row, segment))
|
|
6977
7250
|
: (logRecoverableError(request, error, errorInfo, null),
|
|
6978
7251
|
fatalError(request, error, errorInfo, null));
|
|
6979
7252
|
return;
|
|
@@ -7016,7 +7289,7 @@
|
|
|
7016
7289
|
return abortTask(fallbackTask, request, error);
|
|
7017
7290
|
}),
|
|
7018
7291
|
boundary.fallbackAbortableTasks.clear(),
|
|
7019
|
-
finishedTask(request, boundary, segment)
|
|
7292
|
+
finishedTask(request, boundary, row, segment)
|
|
7020
7293
|
);
|
|
7021
7294
|
boundary.status = 4;
|
|
7022
7295
|
if (
|
|
@@ -7027,7 +7300,7 @@
|
|
|
7027
7300
|
logPostpone(request, error.message, errorInfo, null);
|
|
7028
7301
|
if (null !== request.trackedPostpones && null !== segment) {
|
|
7029
7302
|
trackPostpone(request, request.trackedPostpones, task, segment);
|
|
7030
|
-
finishedTask(request, task.blockedBoundary, segment);
|
|
7303
|
+
finishedTask(request, task.blockedBoundary, row, segment);
|
|
7031
7304
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7032
7305
|
return abortTask(fallbackTask, request, error);
|
|
7033
7306
|
});
|
|
@@ -7148,7 +7421,10 @@
|
|
|
7148
7421
|
queueCompletedSegment(boundary, childSegment);
|
|
7149
7422
|
} else boundary.completedSegments.push(segment);
|
|
7150
7423
|
}
|
|
7151
|
-
function finishedTask(request, boundary, segment) {
|
|
7424
|
+
function finishedTask(request, boundary, row, segment) {
|
|
7425
|
+
null !== row &&
|
|
7426
|
+
0 === --row.pendingTasks &&
|
|
7427
|
+
finishSuspenseListRow(request, row);
|
|
7152
7428
|
request.allPendingTasks--;
|
|
7153
7429
|
if (null === boundary) {
|
|
7154
7430
|
if (null !== segment && segment.parentFlushed) {
|
|
@@ -7177,7 +7453,11 @@
|
|
|
7177
7453
|
abortTaskSoft,
|
|
7178
7454
|
request
|
|
7179
7455
|
),
|
|
7180
|
-
boundary.fallbackAbortableTasks.clear()
|
|
7456
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
7457
|
+
(row = boundary.row),
|
|
7458
|
+
null !== row &&
|
|
7459
|
+
0 === --row.pendingTasks &&
|
|
7460
|
+
finishSuspenseListRow(request, row)),
|
|
7181
7461
|
0 === request.pendingRootTasks &&
|
|
7182
7462
|
null === request.trackedPostpones &&
|
|
7183
7463
|
null !== boundary.contentPreamble &&
|
|
@@ -7236,7 +7516,12 @@
|
|
|
7236
7516
|
);
|
|
7237
7517
|
request.replay.pendingTasks--;
|
|
7238
7518
|
request.abortSet.delete(request);
|
|
7239
|
-
finishedTask(
|
|
7519
|
+
finishedTask(
|
|
7520
|
+
request$jscomp$0,
|
|
7521
|
+
request.blockedBoundary,
|
|
7522
|
+
request.row,
|
|
7523
|
+
null
|
|
7524
|
+
);
|
|
7240
7525
|
} catch (thrownValue) {
|
|
7241
7526
|
resetHooksState();
|
|
7242
7527
|
var x =
|
|
@@ -7296,6 +7581,7 @@
|
|
|
7296
7581
|
finishedTask(
|
|
7297
7582
|
request,
|
|
7298
7583
|
task$jscomp$0.blockedBoundary,
|
|
7584
|
+
task$jscomp$0.row,
|
|
7299
7585
|
segment$jscomp$0
|
|
7300
7586
|
);
|
|
7301
7587
|
} catch (thrownValue) {
|
|
@@ -7341,6 +7627,7 @@
|
|
|
7341
7627
|
finishedTask(
|
|
7342
7628
|
request,
|
|
7343
7629
|
task$jscomp$0.blockedBoundary,
|
|
7630
|
+
task$jscomp$0.row,
|
|
7344
7631
|
segment$jscomp$0
|
|
7345
7632
|
);
|
|
7346
7633
|
} else {
|
|
@@ -7380,6 +7667,7 @@
|
|
|
7380
7667
|
finishedTask(
|
|
7381
7668
|
request,
|
|
7382
7669
|
task$jscomp$0.blockedBoundary,
|
|
7670
|
+
task$jscomp$0.row,
|
|
7383
7671
|
segment$jscomp$0
|
|
7384
7672
|
);
|
|
7385
7673
|
break a;
|
|
@@ -7391,7 +7679,12 @@
|
|
|
7391
7679
|
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
7392
7680
|
segment$jscomp$0.status = 4;
|
|
7393
7681
|
var boundary = task$jscomp$0.blockedBoundary,
|
|
7682
|
+
row = task$jscomp$0.row,
|
|
7394
7683
|
debugTask = task$jscomp$0.debugTask;
|
|
7684
|
+
null !== row &&
|
|
7685
|
+
0 === --row.pendingTasks &&
|
|
7686
|
+
finishSuspenseListRow(request, row);
|
|
7687
|
+
request.allPendingTasks--;
|
|
7395
7688
|
"object" === typeof x$jscomp$0 &&
|
|
7396
7689
|
null !== x$jscomp$0 &&
|
|
7397
7690
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
@@ -7432,7 +7725,6 @@
|
|
|
7432
7725
|
null === request.trackedPostpones &&
|
|
7433
7726
|
null !== boundary.contentPreamble &&
|
|
7434
7727
|
preparePreamble(request)));
|
|
7435
|
-
request.allPendingTasks--;
|
|
7436
7728
|
0 === request.allPendingTasks && completeAll(request);
|
|
7437
7729
|
}
|
|
7438
7730
|
} finally {
|
|
@@ -7583,7 +7875,14 @@
|
|
|
7583
7875
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
7584
7876
|
boundary.parentFlushed = !0;
|
|
7585
7877
|
if (4 === boundary.status)
|
|
7586
|
-
return
|
|
7878
|
+
return (
|
|
7879
|
+
(boundary = boundary.row),
|
|
7880
|
+
null !== boundary &&
|
|
7881
|
+
0 === --boundary.pendingTasks &&
|
|
7882
|
+
finishSuspenseListRow(request, boundary),
|
|
7883
|
+
flushSubtree(request, destination, segment, hoistableState),
|
|
7884
|
+
!0
|
|
7885
|
+
);
|
|
7587
7886
|
if (1 !== boundary.status)
|
|
7588
7887
|
return (
|
|
7589
7888
|
0 === boundary.status &&
|
|
@@ -7625,6 +7924,11 @@
|
|
|
7625
7924
|
((segment = boundary.contentState),
|
|
7626
7925
|
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
|
7627
7926
|
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
|
7927
|
+
segment = boundary.row;
|
|
7928
|
+
null !== segment &&
|
|
7929
|
+
500 < boundary.byteSize &&
|
|
7930
|
+
0 === --segment.pendingTasks &&
|
|
7931
|
+
finishSuspenseListRow(request, segment);
|
|
7628
7932
|
segment = boundary.completedSegments;
|
|
7629
7933
|
if (1 !== segment.length)
|
|
7630
7934
|
throw Error(
|
|
@@ -7662,6 +7966,11 @@
|
|
|
7662
7966
|
completedSegments[i]
|
|
7663
7967
|
);
|
|
7664
7968
|
completedSegments.length = 0;
|
|
7969
|
+
completedSegments = boundary.row;
|
|
7970
|
+
null !== completedSegments &&
|
|
7971
|
+
500 < boundary.byteSize &&
|
|
7972
|
+
0 === --completedSegments.pendingTasks &&
|
|
7973
|
+
finishSuspenseListRow(request, completedSegments);
|
|
7665
7974
|
writeHoistablesForBoundary(
|
|
7666
7975
|
destination,
|
|
7667
7976
|
boundary.contentState,
|
|
@@ -7731,11 +8040,12 @@
|
|
|
7731
8040
|
? destination.push(")\x3c/script>")
|
|
7732
8041
|
: destination.push('"></template>');
|
|
7733
8042
|
request = request.bootstrapChunks;
|
|
7734
|
-
for (
|
|
7735
|
-
|
|
7736
|
-
|
|
8043
|
+
for (boundary = 0; boundary < request.length - 1; boundary++)
|
|
8044
|
+
destination.push(request[boundary]);
|
|
8045
|
+
boundary < request.length
|
|
8046
|
+
? ((boundary = request[boundary]),
|
|
7737
8047
|
(request.length = 0),
|
|
7738
|
-
(destination = destination.push(
|
|
8048
|
+
(destination = destination.push(boundary)))
|
|
7739
8049
|
: (destination = !0);
|
|
7740
8050
|
return destination && completedSegments;
|
|
7741
8051
|
}
|
|
@@ -9203,5 +9513,5 @@
|
|
|
9203
9513
|
});
|
|
9204
9514
|
});
|
|
9205
9515
|
};
|
|
9206
|
-
exports.version = "19.2.0-experimental-
|
|
9516
|
+
exports.version = "19.2.0-experimental-c4676e72-20250520";
|
|
9207
9517
|
})();
|