react-dom 19.1.0-canary-62208bee-20250102 → 19.1.0-canary-3b009b4c-20250102
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.
- package/cjs/react-dom-client.development.js +512 -501
- package/cjs/react-dom-client.production.js +432 -420
- package/cjs/react-dom-profiling.development.js +512 -501
- package/cjs/react-dom-profiling.profiling.js +470 -464
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -841,41 +841,6 @@
|
|
841
841
|
}
|
842
842
|
return hook.checkDCE ? !0 : !1;
|
843
843
|
}
|
844
|
-
function onCommitRoot$1(root, eventPriority) {
|
845
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
846
|
-
try {
|
847
|
-
var didError = 128 === (root.current.flags & 128);
|
848
|
-
switch (eventPriority) {
|
849
|
-
case DiscreteEventPriority:
|
850
|
-
var schedulerPriority = ImmediatePriority;
|
851
|
-
break;
|
852
|
-
case ContinuousEventPriority:
|
853
|
-
schedulerPriority = UserBlockingPriority;
|
854
|
-
break;
|
855
|
-
case DefaultEventPriority:
|
856
|
-
schedulerPriority = NormalPriority$1;
|
857
|
-
break;
|
858
|
-
case IdleEventPriority:
|
859
|
-
schedulerPriority = IdlePriority;
|
860
|
-
break;
|
861
|
-
default:
|
862
|
-
schedulerPriority = NormalPriority$1;
|
863
|
-
}
|
864
|
-
injectedHook.onCommitFiberRoot(
|
865
|
-
rendererID,
|
866
|
-
root,
|
867
|
-
schedulerPriority,
|
868
|
-
didError
|
869
|
-
);
|
870
|
-
} catch (err) {
|
871
|
-
hasLoggedError ||
|
872
|
-
((hasLoggedError = !0),
|
873
|
-
console.error(
|
874
|
-
"React instrumentation encountered an error: %s",
|
875
|
-
err
|
876
|
-
));
|
877
|
-
}
|
878
|
-
}
|
879
844
|
function setIsStrictModeForDevtools(newIsStrictMode) {
|
880
845
|
"function" === typeof log$1 &&
|
881
846
|
unstable_setDisableYieldValue(newIsStrictMode);
|
@@ -1004,14 +969,13 @@
|
|
1004
969
|
);
|
1005
970
|
}
|
1006
971
|
}
|
1007
|
-
function getNextLanes(root, wipLanes) {
|
972
|
+
function getNextLanes(root, wipLanes, rootHasPendingCommit) {
|
1008
973
|
var pendingLanes = root.pendingLanes;
|
1009
974
|
if (0 === pendingLanes) return 0;
|
1010
975
|
var nextLanes = 0,
|
1011
976
|
suspendedLanes = root.suspendedLanes,
|
1012
|
-
pingedLanes = root.pingedLanes
|
1013
|
-
|
1014
|
-
root = 0 !== root.finishedLanes;
|
977
|
+
pingedLanes = root.pingedLanes;
|
978
|
+
root = root.warmLanes;
|
1015
979
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
1016
980
|
0 !== nonIdlePendingLanes
|
1017
981
|
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
|
@@ -1020,28 +984,29 @@
|
|
1020
984
|
: ((pingedLanes &= nonIdlePendingLanes),
|
1021
985
|
0 !== pingedLanes
|
1022
986
|
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1023
|
-
:
|
1024
|
-
((
|
1025
|
-
0 !==
|
1026
|
-
(nextLanes =
|
987
|
+
: rootHasPendingCommit ||
|
988
|
+
((rootHasPendingCommit = nonIdlePendingLanes & ~root),
|
989
|
+
0 !== rootHasPendingCommit &&
|
990
|
+
(nextLanes =
|
991
|
+
getHighestPriorityLanes(rootHasPendingCommit)))))
|
1027
992
|
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
1028
993
|
0 !== nonIdlePendingLanes
|
1029
994
|
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
1030
995
|
: 0 !== pingedLanes
|
1031
996
|
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1032
|
-
:
|
1033
|
-
((
|
1034
|
-
0 !==
|
1035
|
-
(nextLanes = getHighestPriorityLanes(
|
997
|
+
: rootHasPendingCommit ||
|
998
|
+
((rootHasPendingCommit = pendingLanes & ~root),
|
999
|
+
0 !== rootHasPendingCommit &&
|
1000
|
+
(nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
|
1036
1001
|
return 0 === nextLanes
|
1037
1002
|
? 0
|
1038
1003
|
: 0 !== wipLanes &&
|
1039
1004
|
wipLanes !== nextLanes &&
|
1040
1005
|
0 === (wipLanes & suspendedLanes) &&
|
1041
1006
|
((suspendedLanes = nextLanes & -nextLanes),
|
1042
|
-
(
|
1043
|
-
suspendedLanes >=
|
1044
|
-
(32 === suspendedLanes && 0 !== (
|
1007
|
+
(rootHasPendingCommit = wipLanes & -wipLanes),
|
1008
|
+
suspendedLanes >= rootHasPendingCommit ||
|
1009
|
+
(32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176)))
|
1045
1010
|
? wipLanes
|
1046
1011
|
: nextLanes;
|
1047
1012
|
}
|
@@ -3615,100 +3580,6 @@
|
|
3615
3580
|
"true" === elem.contentEditable)
|
3616
3581
|
);
|
3617
3582
|
}
|
3618
|
-
function restoreSelection(priorSelectionInformation, containerInfo) {
|
3619
|
-
var curFocusedElem = getActiveElementDeep(containerInfo);
|
3620
|
-
containerInfo = priorSelectionInformation.focusedElem;
|
3621
|
-
var priorSelectionRange = priorSelectionInformation.selectionRange;
|
3622
|
-
if (
|
3623
|
-
curFocusedElem !== containerInfo &&
|
3624
|
-
containerInfo &&
|
3625
|
-
containerInfo.ownerDocument &&
|
3626
|
-
containsNode(containerInfo.ownerDocument.documentElement, containerInfo)
|
3627
|
-
) {
|
3628
|
-
if (
|
3629
|
-
null !== priorSelectionRange &&
|
3630
|
-
hasSelectionCapabilities(containerInfo)
|
3631
|
-
)
|
3632
|
-
if (
|
3633
|
-
((priorSelectionInformation = priorSelectionRange.start),
|
3634
|
-
(curFocusedElem = priorSelectionRange.end),
|
3635
|
-
void 0 === curFocusedElem &&
|
3636
|
-
(curFocusedElem = priorSelectionInformation),
|
3637
|
-
"selectionStart" in containerInfo)
|
3638
|
-
)
|
3639
|
-
(containerInfo.selectionStart = priorSelectionInformation),
|
3640
|
-
(containerInfo.selectionEnd = Math.min(
|
3641
|
-
curFocusedElem,
|
3642
|
-
containerInfo.value.length
|
3643
|
-
));
|
3644
|
-
else if (
|
3645
|
-
((curFocusedElem =
|
3646
|
-
((priorSelectionInformation =
|
3647
|
-
containerInfo.ownerDocument || document) &&
|
3648
|
-
priorSelectionInformation.defaultView) ||
|
3649
|
-
window),
|
3650
|
-
curFocusedElem.getSelection)
|
3651
|
-
) {
|
3652
|
-
curFocusedElem = curFocusedElem.getSelection();
|
3653
|
-
var length = containerInfo.textContent.length,
|
3654
|
-
start = Math.min(priorSelectionRange.start, length);
|
3655
|
-
priorSelectionRange =
|
3656
|
-
void 0 === priorSelectionRange.end
|
3657
|
-
? start
|
3658
|
-
: Math.min(priorSelectionRange.end, length);
|
3659
|
-
!curFocusedElem.extend &&
|
3660
|
-
start > priorSelectionRange &&
|
3661
|
-
((length = priorSelectionRange),
|
3662
|
-
(priorSelectionRange = start),
|
3663
|
-
(start = length));
|
3664
|
-
length = getNodeForCharacterOffset(containerInfo, start);
|
3665
|
-
var endMarker = getNodeForCharacterOffset(
|
3666
|
-
containerInfo,
|
3667
|
-
priorSelectionRange
|
3668
|
-
);
|
3669
|
-
length &&
|
3670
|
-
endMarker &&
|
3671
|
-
(1 !== curFocusedElem.rangeCount ||
|
3672
|
-
curFocusedElem.anchorNode !== length.node ||
|
3673
|
-
curFocusedElem.anchorOffset !== length.offset ||
|
3674
|
-
curFocusedElem.focusNode !== endMarker.node ||
|
3675
|
-
curFocusedElem.focusOffset !== endMarker.offset) &&
|
3676
|
-
((priorSelectionInformation =
|
3677
|
-
priorSelectionInformation.createRange()),
|
3678
|
-
priorSelectionInformation.setStart(length.node, length.offset),
|
3679
|
-
curFocusedElem.removeAllRanges(),
|
3680
|
-
start > priorSelectionRange
|
3681
|
-
? (curFocusedElem.addRange(priorSelectionInformation),
|
3682
|
-
curFocusedElem.extend(endMarker.node, endMarker.offset))
|
3683
|
-
: (priorSelectionInformation.setEnd(
|
3684
|
-
endMarker.node,
|
3685
|
-
endMarker.offset
|
3686
|
-
),
|
3687
|
-
curFocusedElem.addRange(priorSelectionInformation)));
|
3688
|
-
}
|
3689
|
-
priorSelectionInformation = [];
|
3690
|
-
for (
|
3691
|
-
curFocusedElem = containerInfo;
|
3692
|
-
(curFocusedElem = curFocusedElem.parentNode);
|
3693
|
-
|
3694
|
-
)
|
3695
|
-
1 === curFocusedElem.nodeType &&
|
3696
|
-
priorSelectionInformation.push({
|
3697
|
-
element: curFocusedElem,
|
3698
|
-
left: curFocusedElem.scrollLeft,
|
3699
|
-
top: curFocusedElem.scrollTop
|
3700
|
-
});
|
3701
|
-
"function" === typeof containerInfo.focus && containerInfo.focus();
|
3702
|
-
for (
|
3703
|
-
containerInfo = 0;
|
3704
|
-
containerInfo < priorSelectionInformation.length;
|
3705
|
-
containerInfo++
|
3706
|
-
)
|
3707
|
-
(curFocusedElem = priorSelectionInformation[containerInfo]),
|
3708
|
-
(curFocusedElem.element.scrollLeft = curFocusedElem.left),
|
3709
|
-
(curFocusedElem.element.scrollTop = curFocusedElem.top);
|
3710
|
-
}
|
3711
|
-
}
|
3712
3583
|
function constructSelectEvent(
|
3713
3584
|
dispatchQueue,
|
3714
3585
|
nativeEvent,
|
@@ -5381,7 +5252,7 @@
|
|
5381
5252
|
null;
|
5382
5253
|
hookTypesUpdateIndexDev = -1;
|
5383
5254
|
null !== current &&
|
5384
|
-
(current.flags &
|
5255
|
+
(current.flags & 29360128) !== (workInProgress.flags & 29360128) &&
|
5385
5256
|
console.error(
|
5386
5257
|
"Internal React error: Expected static flag was missing. Please notify the React team."
|
5387
5258
|
);
|
@@ -8523,14 +8394,14 @@
|
|
8523
8394
|
if (null === ref)
|
8524
8395
|
null !== current &&
|
8525
8396
|
null !== current.ref &&
|
8526
|
-
(workInProgress.flags |=
|
8397
|
+
(workInProgress.flags |= 4194816);
|
8527
8398
|
else {
|
8528
8399
|
if ("function" !== typeof ref && "object" !== typeof ref)
|
8529
8400
|
throw Error(
|
8530
8401
|
"Expected ref to be a function, an object returned by React.createRef(), or undefined/null."
|
8531
8402
|
);
|
8532
8403
|
if (null === current || current.ref !== ref)
|
8533
|
-
workInProgress.flags |=
|
8404
|
+
workInProgress.flags |= 4194816;
|
8534
8405
|
}
|
8535
8406
|
}
|
8536
8407
|
function updateFunctionComponent(
|
@@ -9230,32 +9101,32 @@
|
|
9230
9101
|
return current;
|
9231
9102
|
}
|
9232
9103
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
9233
|
-
var
|
9234
|
-
var
|
9104
|
+
var JSCompiler_object_inline_digest_2355;
|
9105
|
+
var JSCompiler_object_inline_stack_2356 = workInProgress.pendingProps;
|
9235
9106
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
9236
|
-
var
|
9107
|
+
var JSCompiler_object_inline_componentStack_2357 = !1;
|
9237
9108
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
9238
|
-
(
|
9239
|
-
(
|
9109
|
+
(JSCompiler_object_inline_digest_2355 = didSuspend) ||
|
9110
|
+
(JSCompiler_object_inline_digest_2355 =
|
9240
9111
|
null !== current && null === current.memoizedState
|
9241
9112
|
? !1
|
9242
9113
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
9243
|
-
|
9244
|
-
((
|
9114
|
+
JSCompiler_object_inline_digest_2355 &&
|
9115
|
+
((JSCompiler_object_inline_componentStack_2357 = !0),
|
9245
9116
|
(workInProgress.flags &= -129));
|
9246
|
-
|
9117
|
+
JSCompiler_object_inline_digest_2355 = 0 !== (workInProgress.flags & 32);
|
9247
9118
|
workInProgress.flags &= -33;
|
9248
9119
|
if (null === current) {
|
9249
9120
|
if (isHydrating) {
|
9250
|
-
|
9121
|
+
JSCompiler_object_inline_componentStack_2357
|
9251
9122
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
9252
9123
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
9253
9124
|
if (isHydrating) {
|
9254
|
-
var
|
9125
|
+
var JSCompiler_object_inline_message_2354 = nextHydratableInstance;
|
9255
9126
|
var JSCompiler_temp;
|
9256
|
-
if (!(JSCompiler_temp = !
|
9127
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2354)) {
|
9257
9128
|
c: {
|
9258
|
-
var instance =
|
9129
|
+
var instance = JSCompiler_object_inline_message_2354;
|
9259
9130
|
for (
|
9260
9131
|
JSCompiler_temp = rootOrSingletonContext;
|
9261
9132
|
8 !== instance.nodeType;
|
@@ -9297,77 +9168,77 @@
|
|
9297
9168
|
JSCompiler_temp &&
|
9298
9169
|
(warnNonHydratedInstance(
|
9299
9170
|
workInProgress,
|
9300
|
-
|
9171
|
+
JSCompiler_object_inline_message_2354
|
9301
9172
|
),
|
9302
9173
|
throwOnHydrationMismatch(workInProgress));
|
9303
9174
|
}
|
9304
|
-
|
9175
|
+
JSCompiler_object_inline_message_2354 = workInProgress.memoizedState;
|
9305
9176
|
if (
|
9306
|
-
null !==
|
9307
|
-
((
|
9308
|
-
|
9309
|
-
null !==
|
9177
|
+
null !== JSCompiler_object_inline_message_2354 &&
|
9178
|
+
((JSCompiler_object_inline_message_2354 =
|
9179
|
+
JSCompiler_object_inline_message_2354.dehydrated),
|
9180
|
+
null !== JSCompiler_object_inline_message_2354)
|
9310
9181
|
)
|
9311
9182
|
return (
|
9312
|
-
isSuspenseInstanceFallback(
|
9183
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2354)
|
9313
9184
|
? (workInProgress.lanes = 32)
|
9314
9185
|
: (workInProgress.lanes = 536870912),
|
9315
9186
|
null
|
9316
9187
|
);
|
9317
9188
|
popSuspenseHandler(workInProgress);
|
9318
9189
|
}
|
9319
|
-
|
9320
|
-
|
9321
|
-
|
9322
|
-
|
9323
|
-
if (
|
9190
|
+
JSCompiler_object_inline_message_2354 =
|
9191
|
+
JSCompiler_object_inline_stack_2356.children;
|
9192
|
+
JSCompiler_object_inline_stack_2356 =
|
9193
|
+
JSCompiler_object_inline_stack_2356.fallback;
|
9194
|
+
if (JSCompiler_object_inline_componentStack_2357)
|
9324
9195
|
return (
|
9325
9196
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9326
|
-
(
|
9197
|
+
(JSCompiler_object_inline_componentStack_2357 =
|
9327
9198
|
workInProgress.mode),
|
9328
|
-
(
|
9199
|
+
(JSCompiler_object_inline_message_2354 =
|
9329
9200
|
mountWorkInProgressOffscreenFiber(
|
9330
9201
|
{
|
9331
9202
|
mode: "hidden",
|
9332
|
-
children:
|
9203
|
+
children: JSCompiler_object_inline_message_2354
|
9333
9204
|
},
|
9334
|
-
|
9205
|
+
JSCompiler_object_inline_componentStack_2357
|
9335
9206
|
)),
|
9336
|
-
(
|
9337
|
-
|
9338
|
-
|
9207
|
+
(JSCompiler_object_inline_stack_2356 = createFiberFromFragment(
|
9208
|
+
JSCompiler_object_inline_stack_2356,
|
9209
|
+
JSCompiler_object_inline_componentStack_2357,
|
9339
9210
|
renderLanes,
|
9340
9211
|
null
|
9341
9212
|
)),
|
9342
|
-
(
|
9343
|
-
(
|
9344
|
-
(
|
9345
|
-
|
9346
|
-
(workInProgress.child =
|
9347
|
-
(
|
9213
|
+
(JSCompiler_object_inline_message_2354.return = workInProgress),
|
9214
|
+
(JSCompiler_object_inline_stack_2356.return = workInProgress),
|
9215
|
+
(JSCompiler_object_inline_message_2354.sibling =
|
9216
|
+
JSCompiler_object_inline_stack_2356),
|
9217
|
+
(workInProgress.child = JSCompiler_object_inline_message_2354),
|
9218
|
+
(JSCompiler_object_inline_componentStack_2357 =
|
9348
9219
|
workInProgress.child),
|
9349
|
-
(
|
9220
|
+
(JSCompiler_object_inline_componentStack_2357.memoizedState =
|
9350
9221
|
mountSuspenseOffscreenState(renderLanes)),
|
9351
|
-
(
|
9222
|
+
(JSCompiler_object_inline_componentStack_2357.childLanes =
|
9352
9223
|
getRemainingWorkInPrimaryTree(
|
9353
9224
|
current,
|
9354
|
-
|
9225
|
+
JSCompiler_object_inline_digest_2355,
|
9355
9226
|
renderLanes
|
9356
9227
|
)),
|
9357
9228
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9358
|
-
|
9229
|
+
JSCompiler_object_inline_stack_2356
|
9359
9230
|
);
|
9360
9231
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9361
9232
|
return mountSuspensePrimaryChildren(
|
9362
9233
|
workInProgress,
|
9363
|
-
|
9234
|
+
JSCompiler_object_inline_message_2354
|
9364
9235
|
);
|
9365
9236
|
}
|
9366
9237
|
var prevState = current.memoizedState;
|
9367
9238
|
if (
|
9368
9239
|
null !== prevState &&
|
9369
|
-
((
|
9370
|
-
null !==
|
9240
|
+
((JSCompiler_object_inline_message_2354 = prevState.dehydrated),
|
9241
|
+
null !== JSCompiler_object_inline_message_2354)
|
9371
9242
|
) {
|
9372
9243
|
if (didSuspend)
|
9373
9244
|
workInProgress.flags & 256
|
@@ -9384,94 +9255,94 @@
|
|
9384
9255
|
(workInProgress.flags |= 128),
|
9385
9256
|
(workInProgress = null))
|
9386
9257
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
9387
|
-
(
|
9388
|
-
|
9389
|
-
(
|
9390
|
-
(
|
9258
|
+
(JSCompiler_object_inline_componentStack_2357 =
|
9259
|
+
JSCompiler_object_inline_stack_2356.fallback),
|
9260
|
+
(JSCompiler_object_inline_message_2354 = workInProgress.mode),
|
9261
|
+
(JSCompiler_object_inline_stack_2356 =
|
9391
9262
|
mountWorkInProgressOffscreenFiber(
|
9392
9263
|
{
|
9393
9264
|
mode: "visible",
|
9394
|
-
children:
|
9265
|
+
children: JSCompiler_object_inline_stack_2356.children
|
9395
9266
|
},
|
9396
|
-
|
9267
|
+
JSCompiler_object_inline_message_2354
|
9397
9268
|
)),
|
9398
|
-
(
|
9269
|
+
(JSCompiler_object_inline_componentStack_2357 =
|
9399
9270
|
createFiberFromFragment(
|
9400
|
-
|
9401
|
-
|
9271
|
+
JSCompiler_object_inline_componentStack_2357,
|
9272
|
+
JSCompiler_object_inline_message_2354,
|
9402
9273
|
renderLanes,
|
9403
9274
|
null
|
9404
9275
|
)),
|
9405
|
-
(
|
9406
|
-
(
|
9407
|
-
(
|
9276
|
+
(JSCompiler_object_inline_componentStack_2357.flags |= 2),
|
9277
|
+
(JSCompiler_object_inline_stack_2356.return = workInProgress),
|
9278
|
+
(JSCompiler_object_inline_componentStack_2357.return =
|
9408
9279
|
workInProgress),
|
9409
|
-
(
|
9410
|
-
|
9411
|
-
(workInProgress.child =
|
9280
|
+
(JSCompiler_object_inline_stack_2356.sibling =
|
9281
|
+
JSCompiler_object_inline_componentStack_2357),
|
9282
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2356),
|
9412
9283
|
reconcileChildFibers(
|
9413
9284
|
workInProgress,
|
9414
9285
|
current.child,
|
9415
9286
|
null,
|
9416
9287
|
renderLanes
|
9417
9288
|
),
|
9418
|
-
(
|
9419
|
-
(
|
9289
|
+
(JSCompiler_object_inline_stack_2356 = workInProgress.child),
|
9290
|
+
(JSCompiler_object_inline_stack_2356.memoizedState =
|
9420
9291
|
mountSuspenseOffscreenState(renderLanes)),
|
9421
|
-
(
|
9292
|
+
(JSCompiler_object_inline_stack_2356.childLanes =
|
9422
9293
|
getRemainingWorkInPrimaryTree(
|
9423
9294
|
current,
|
9424
|
-
|
9295
|
+
JSCompiler_object_inline_digest_2355,
|
9425
9296
|
renderLanes
|
9426
9297
|
)),
|
9427
9298
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9428
9299
|
(workInProgress =
|
9429
|
-
|
9300
|
+
JSCompiler_object_inline_componentStack_2357));
|
9430
9301
|
else if (
|
9431
9302
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
9432
9303
|
isHydrating &&
|
9433
9304
|
console.error(
|
9434
9305
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
9435
9306
|
),
|
9436
|
-
isSuspenseInstanceFallback(
|
9307
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2354))
|
9437
9308
|
) {
|
9438
|
-
|
9439
|
-
|
9440
|
-
|
9441
|
-
if (
|
9442
|
-
JSCompiler_temp =
|
9443
|
-
var message =
|
9444
|
-
instance =
|
9445
|
-
var componentStack =
|
9309
|
+
JSCompiler_object_inline_digest_2355 =
|
9310
|
+
JSCompiler_object_inline_message_2354.nextSibling &&
|
9311
|
+
JSCompiler_object_inline_message_2354.nextSibling.dataset;
|
9312
|
+
if (JSCompiler_object_inline_digest_2355) {
|
9313
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2355.dgst;
|
9314
|
+
var message = JSCompiler_object_inline_digest_2355.msg;
|
9315
|
+
instance = JSCompiler_object_inline_digest_2355.stck;
|
9316
|
+
var componentStack = JSCompiler_object_inline_digest_2355.cstck;
|
9446
9317
|
}
|
9447
|
-
|
9448
|
-
|
9449
|
-
|
9450
|
-
JSCompiler_temp =
|
9318
|
+
JSCompiler_object_inline_message_2354 = message;
|
9319
|
+
JSCompiler_object_inline_digest_2355 = JSCompiler_temp;
|
9320
|
+
JSCompiler_object_inline_stack_2356 = instance;
|
9321
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2357 =
|
9451
9322
|
componentStack;
|
9452
|
-
|
9453
|
-
|
9454
|
-
? Error(
|
9323
|
+
JSCompiler_object_inline_componentStack_2357 =
|
9324
|
+
JSCompiler_object_inline_message_2354
|
9325
|
+
? Error(JSCompiler_object_inline_message_2354)
|
9455
9326
|
: Error(
|
9456
9327
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
9457
9328
|
);
|
9458
|
-
|
9459
|
-
|
9460
|
-
|
9461
|
-
|
9462
|
-
|
9329
|
+
JSCompiler_object_inline_componentStack_2357.stack =
|
9330
|
+
JSCompiler_object_inline_stack_2356 || "";
|
9331
|
+
JSCompiler_object_inline_componentStack_2357.digest =
|
9332
|
+
JSCompiler_object_inline_digest_2355;
|
9333
|
+
JSCompiler_object_inline_digest_2355 =
|
9463
9334
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
9464
|
-
|
9465
|
-
value:
|
9335
|
+
JSCompiler_object_inline_stack_2356 = {
|
9336
|
+
value: JSCompiler_object_inline_componentStack_2357,
|
9466
9337
|
source: null,
|
9467
|
-
stack:
|
9338
|
+
stack: JSCompiler_object_inline_digest_2355
|
9468
9339
|
};
|
9469
|
-
"string" === typeof
|
9340
|
+
"string" === typeof JSCompiler_object_inline_digest_2355 &&
|
9470
9341
|
CapturedStacks.set(
|
9471
|
-
|
9472
|
-
|
9342
|
+
JSCompiler_object_inline_componentStack_2357,
|
9343
|
+
JSCompiler_object_inline_stack_2356
|
9473
9344
|
);
|
9474
|
-
queueHydrationError(
|
9345
|
+
queueHydrationError(JSCompiler_object_inline_stack_2356);
|
9475
9346
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9476
9347
|
current,
|
9477
9348
|
workInProgress,
|
@@ -9485,44 +9356,44 @@
|
|
9485
9356
|
renderLanes,
|
9486
9357
|
!1
|
9487
9358
|
),
|
9488
|
-
(
|
9359
|
+
(JSCompiler_object_inline_digest_2355 =
|
9489
9360
|
0 !== (renderLanes & current.childLanes)),
|
9490
|
-
didReceiveUpdate ||
|
9361
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2355)
|
9491
9362
|
) {
|
9492
|
-
|
9363
|
+
JSCompiler_object_inline_digest_2355 = workInProgressRoot;
|
9493
9364
|
if (
|
9494
|
-
null !==
|
9495
|
-
((
|
9496
|
-
(
|
9497
|
-
0 !== (
|
9365
|
+
null !== JSCompiler_object_inline_digest_2355 &&
|
9366
|
+
((JSCompiler_object_inline_stack_2356 = renderLanes & -renderLanes),
|
9367
|
+
(JSCompiler_object_inline_stack_2356 =
|
9368
|
+
0 !== (JSCompiler_object_inline_stack_2356 & 42)
|
9498
9369
|
? 1
|
9499
9370
|
: getBumpedLaneForHydrationByLane(
|
9500
|
-
|
9371
|
+
JSCompiler_object_inline_stack_2356
|
9501
9372
|
)),
|
9502
|
-
(
|
9373
|
+
(JSCompiler_object_inline_stack_2356 =
|
9503
9374
|
0 !==
|
9504
|
-
(
|
9505
|
-
(
|
9375
|
+
(JSCompiler_object_inline_stack_2356 &
|
9376
|
+
(JSCompiler_object_inline_digest_2355.suspendedLanes |
|
9506
9377
|
renderLanes))
|
9507
9378
|
? 0
|
9508
|
-
:
|
9509
|
-
0 !==
|
9510
|
-
|
9379
|
+
: JSCompiler_object_inline_stack_2356),
|
9380
|
+
0 !== JSCompiler_object_inline_stack_2356 &&
|
9381
|
+
JSCompiler_object_inline_stack_2356 !== prevState.retryLane)
|
9511
9382
|
)
|
9512
9383
|
throw (
|
9513
|
-
((prevState.retryLane =
|
9384
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2356),
|
9514
9385
|
enqueueConcurrentRenderForLane(
|
9515
9386
|
current,
|
9516
|
-
|
9387
|
+
JSCompiler_object_inline_stack_2356
|
9517
9388
|
),
|
9518
9389
|
scheduleUpdateOnFiber(
|
9519
|
-
|
9390
|
+
JSCompiler_object_inline_digest_2355,
|
9520
9391
|
current,
|
9521
|
-
|
9392
|
+
JSCompiler_object_inline_stack_2356
|
9522
9393
|
),
|
9523
9394
|
SelectiveHydrationException)
|
9524
9395
|
);
|
9525
|
-
|
9396
|
+
JSCompiler_object_inline_message_2354.data ===
|
9526
9397
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
9527
9398
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9528
9399
|
current,
|
@@ -9530,14 +9401,14 @@
|
|
9530
9401
|
renderLanes
|
9531
9402
|
);
|
9532
9403
|
} else
|
9533
|
-
|
9404
|
+
JSCompiler_object_inline_message_2354.data ===
|
9534
9405
|
SUSPENSE_PENDING_START_DATA
|
9535
9406
|
? ((workInProgress.flags |= 192),
|
9536
9407
|
(workInProgress.child = current.child),
|
9537
9408
|
(workInProgress = null))
|
9538
9409
|
: ((current = prevState.treeContext),
|
9539
9410
|
(nextHydratableInstance = getNextHydratable(
|
9540
|
-
|
9411
|
+
JSCompiler_object_inline_message_2354.nextSibling
|
9541
9412
|
)),
|
9542
9413
|
(hydrationParentFiber = workInProgress),
|
9543
9414
|
(isHydrating = !0),
|
@@ -9555,57 +9426,57 @@
|
|
9555
9426
|
(treeContextProvider = workInProgress)),
|
9556
9427
|
(workInProgress = mountSuspensePrimaryChildren(
|
9557
9428
|
workInProgress,
|
9558
|
-
|
9429
|
+
JSCompiler_object_inline_stack_2356.children
|
9559
9430
|
)),
|
9560
9431
|
(workInProgress.flags |= 4096));
|
9561
9432
|
return workInProgress;
|
9562
9433
|
}
|
9563
|
-
if (
|
9434
|
+
if (JSCompiler_object_inline_componentStack_2357)
|
9564
9435
|
return (
|
9565
9436
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9566
|
-
(
|
9567
|
-
|
9568
|
-
(
|
9437
|
+
(JSCompiler_object_inline_componentStack_2357 =
|
9438
|
+
JSCompiler_object_inline_stack_2356.fallback),
|
9439
|
+
(JSCompiler_object_inline_message_2354 = workInProgress.mode),
|
9569
9440
|
(JSCompiler_temp = current.child),
|
9570
9441
|
(instance = JSCompiler_temp.sibling),
|
9571
|
-
(
|
9442
|
+
(JSCompiler_object_inline_stack_2356 = createWorkInProgress(
|
9572
9443
|
JSCompiler_temp,
|
9573
9444
|
{
|
9574
9445
|
mode: "hidden",
|
9575
|
-
children:
|
9446
|
+
children: JSCompiler_object_inline_stack_2356.children
|
9576
9447
|
}
|
9577
9448
|
)),
|
9578
|
-
(
|
9579
|
-
JSCompiler_temp.subtreeFlags &
|
9449
|
+
(JSCompiler_object_inline_stack_2356.subtreeFlags =
|
9450
|
+
JSCompiler_temp.subtreeFlags & 29360128),
|
9580
9451
|
null !== instance
|
9581
|
-
? (
|
9452
|
+
? (JSCompiler_object_inline_componentStack_2357 =
|
9582
9453
|
createWorkInProgress(
|
9583
9454
|
instance,
|
9584
|
-
|
9455
|
+
JSCompiler_object_inline_componentStack_2357
|
9585
9456
|
))
|
9586
|
-
: ((
|
9457
|
+
: ((JSCompiler_object_inline_componentStack_2357 =
|
9587
9458
|
createFiberFromFragment(
|
9588
|
-
|
9589
|
-
|
9459
|
+
JSCompiler_object_inline_componentStack_2357,
|
9460
|
+
JSCompiler_object_inline_message_2354,
|
9590
9461
|
renderLanes,
|
9591
9462
|
null
|
9592
9463
|
)),
|
9593
|
-
(
|
9594
|
-
(
|
9464
|
+
(JSCompiler_object_inline_componentStack_2357.flags |= 2)),
|
9465
|
+
(JSCompiler_object_inline_componentStack_2357.return =
|
9595
9466
|
workInProgress),
|
9596
|
-
(
|
9597
|
-
(
|
9598
|
-
|
9599
|
-
(workInProgress.child =
|
9600
|
-
(
|
9601
|
-
|
9602
|
-
(
|
9603
|
-
(
|
9604
|
-
null ===
|
9605
|
-
? (
|
9467
|
+
(JSCompiler_object_inline_stack_2356.return = workInProgress),
|
9468
|
+
(JSCompiler_object_inline_stack_2356.sibling =
|
9469
|
+
JSCompiler_object_inline_componentStack_2357),
|
9470
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2356),
|
9471
|
+
(JSCompiler_object_inline_stack_2356 =
|
9472
|
+
JSCompiler_object_inline_componentStack_2357),
|
9473
|
+
(JSCompiler_object_inline_componentStack_2357 = workInProgress.child),
|
9474
|
+
(JSCompiler_object_inline_message_2354 = current.child.memoizedState),
|
9475
|
+
null === JSCompiler_object_inline_message_2354
|
9476
|
+
? (JSCompiler_object_inline_message_2354 =
|
9606
9477
|
mountSuspenseOffscreenState(renderLanes))
|
9607
9478
|
: ((JSCompiler_temp =
|
9608
|
-
|
9479
|
+
JSCompiler_object_inline_message_2354.cachePool),
|
9609
9480
|
null !== JSCompiler_temp
|
9610
9481
|
? ((instance = CacheContext._currentValue),
|
9611
9482
|
(JSCompiler_temp =
|
@@ -9613,37 +9484,37 @@
|
|
9613
9484
|
? { parent: instance, pool: instance }
|
9614
9485
|
: JSCompiler_temp))
|
9615
9486
|
: (JSCompiler_temp = getSuspendedCache()),
|
9616
|
-
(
|
9487
|
+
(JSCompiler_object_inline_message_2354 = {
|
9617
9488
|
baseLanes:
|
9618
|
-
|
9489
|
+
JSCompiler_object_inline_message_2354.baseLanes | renderLanes,
|
9619
9490
|
cachePool: JSCompiler_temp
|
9620
9491
|
})),
|
9621
|
-
(
|
9622
|
-
|
9623
|
-
(
|
9492
|
+
(JSCompiler_object_inline_componentStack_2357.memoizedState =
|
9493
|
+
JSCompiler_object_inline_message_2354),
|
9494
|
+
(JSCompiler_object_inline_componentStack_2357.childLanes =
|
9624
9495
|
getRemainingWorkInPrimaryTree(
|
9625
9496
|
current,
|
9626
|
-
|
9497
|
+
JSCompiler_object_inline_digest_2355,
|
9627
9498
|
renderLanes
|
9628
9499
|
)),
|
9629
9500
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9630
|
-
|
9501
|
+
JSCompiler_object_inline_stack_2356
|
9631
9502
|
);
|
9632
9503
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9633
9504
|
renderLanes = current.child;
|
9634
9505
|
current = renderLanes.sibling;
|
9635
9506
|
renderLanes = createWorkInProgress(renderLanes, {
|
9636
9507
|
mode: "visible",
|
9637
|
-
children:
|
9508
|
+
children: JSCompiler_object_inline_stack_2356.children
|
9638
9509
|
});
|
9639
9510
|
renderLanes.return = workInProgress;
|
9640
9511
|
renderLanes.sibling = null;
|
9641
9512
|
null !== current &&
|
9642
|
-
((
|
9643
|
-
null ===
|
9513
|
+
((JSCompiler_object_inline_digest_2355 = workInProgress.deletions),
|
9514
|
+
null === JSCompiler_object_inline_digest_2355
|
9644
9515
|
? ((workInProgress.deletions = [current]),
|
9645
9516
|
(workInProgress.flags |= 16))
|
9646
|
-
:
|
9517
|
+
: JSCompiler_object_inline_digest_2355.push(current));
|
9647
9518
|
workInProgress.child = renderLanes;
|
9648
9519
|
workInProgress.memoizedState = null;
|
9649
9520
|
return renderLanes;
|
@@ -11341,7 +11212,7 @@
|
|
11341
11212
|
if (
|
11342
11213
|
((firstChild = nextEffect),
|
11343
11214
|
(root = firstChild.child),
|
11344
|
-
0 !== (firstChild.subtreeFlags &
|
11215
|
+
0 !== (firstChild.subtreeFlags & 1024) && null !== root)
|
11345
11216
|
)
|
11346
11217
|
(root.return = firstChild), (nextEffect = root);
|
11347
11218
|
else
|
@@ -11400,9 +11271,6 @@
|
|
11400
11271
|
}
|
11401
11272
|
nextEffect = firstChild.return;
|
11402
11273
|
}
|
11403
|
-
firstChild = shouldFireAfterActiveInstanceBlur;
|
11404
|
-
shouldFireAfterActiveInstanceBlur = !1;
|
11405
|
-
return firstChild;
|
11406
11274
|
}
|
11407
11275
|
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
11408
11276
|
var flags = finishedWork.flags;
|
@@ -11877,12 +11745,6 @@
|
|
11877
11745
|
}
|
11878
11746
|
});
|
11879
11747
|
}
|
11880
|
-
function commitMutationEffects(root, finishedWork, committedLanes) {
|
11881
|
-
inProgressLanes = committedLanes;
|
11882
|
-
inProgressRoot = root;
|
11883
|
-
commitMutationEffectsOnFiber(finishedWork, root);
|
11884
|
-
inProgressRoot = inProgressLanes = null;
|
11885
|
-
}
|
11886
11748
|
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
11887
11749
|
var deletions = parentFiber.deletions;
|
11888
11750
|
if (null !== deletions)
|
@@ -12410,12 +12272,6 @@
|
|
12410
12272
|
parentFiber = parentFiber.sibling;
|
12411
12273
|
}
|
12412
12274
|
}
|
12413
|
-
function commitLayoutEffects(finishedWork, root, committedLanes) {
|
12414
|
-
inProgressLanes = committedLanes;
|
12415
|
-
inProgressRoot = root;
|
12416
|
-
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
|
12417
|
-
inProgressRoot = inProgressLanes = null;
|
12418
|
-
}
|
12419
12275
|
function recursivelyTraverseLayoutEffects(root, parentFiber) {
|
12420
12276
|
if (parentFiber.subtreeFlags & 8772)
|
12421
12277
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
@@ -12662,6 +12518,14 @@
|
|
12662
12518
|
flags & 2048 &&
|
12663
12519
|
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
|
12664
12520
|
break;
|
12521
|
+
case 1:
|
12522
|
+
recursivelyTraversePassiveMountEffects(
|
12523
|
+
finishedRoot,
|
12524
|
+
finishedWork,
|
12525
|
+
committedLanes,
|
12526
|
+
committedTransitions
|
12527
|
+
);
|
12528
|
+
break;
|
12665
12529
|
case 3:
|
12666
12530
|
var prevEffectDuration = pushNestedEffectDurations();
|
12667
12531
|
recursivelyTraversePassiveMountEffects(
|
@@ -13179,7 +13043,7 @@
|
|
13179
13043
|
(workInProgress.deletions = null),
|
13180
13044
|
(workInProgress.actualDuration = -0),
|
13181
13045
|
(workInProgress.actualStartTime = -1.1));
|
13182
|
-
workInProgress.flags = current.flags &
|
13046
|
+
workInProgress.flags = current.flags & 29360128;
|
13183
13047
|
workInProgress.childLanes = current.childLanes;
|
13184
13048
|
workInProgress.lanes = current.lanes;
|
13185
13049
|
workInProgress.child = current.child;
|
@@ -13217,7 +13081,7 @@
|
|
13217
13081
|
return workInProgress;
|
13218
13082
|
}
|
13219
13083
|
function resetWorkInProgress(workInProgress, renderLanes) {
|
13220
|
-
workInProgress.flags &=
|
13084
|
+
workInProgress.flags &= 29360130;
|
13221
13085
|
var current = workInProgress.alternate;
|
13222
13086
|
null === current
|
13223
13087
|
? ((workInProgress.childLanes = 0),
|
@@ -13536,8 +13400,8 @@
|
|
13536
13400
|
|
13537
13401
|
)
|
13538
13402
|
(newChildLanes |= _child2.lanes | _child2.childLanes),
|
13539
|
-
(subtreeFlags |= _child2.subtreeFlags &
|
13540
|
-
(subtreeFlags |= _child2.flags &
|
13403
|
+
(subtreeFlags |= _child2.subtreeFlags & 29360128),
|
13404
|
+
(subtreeFlags |= _child2.flags & 29360128),
|
13541
13405
|
(_treeBaseDuration += _child2.treeBaseDuration),
|
13542
13406
|
(_child2 = _child2.sibling);
|
13543
13407
|
completedWork.treeBaseDuration = _treeBaseDuration;
|
@@ -13549,8 +13413,8 @@
|
|
13549
13413
|
)
|
13550
13414
|
(newChildLanes |=
|
13551
13415
|
_treeBaseDuration.lanes | _treeBaseDuration.childLanes),
|
13552
|
-
(subtreeFlags |= _treeBaseDuration.subtreeFlags &
|
13553
|
-
(subtreeFlags |= _treeBaseDuration.flags &
|
13416
|
+
(subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128),
|
13417
|
+
(subtreeFlags |= _treeBaseDuration.flags & 29360128),
|
13554
13418
|
(_treeBaseDuration.return = completedWork),
|
13555
13419
|
(_treeBaseDuration = _treeBaseDuration.sibling);
|
13556
13420
|
else if ((completedWork.mode & ProfileMode) !== NoMode) {
|
@@ -14459,21 +14323,17 @@
|
|
14459
14323
|
default:
|
14460
14324
|
throw Error("Unknown root exit status.");
|
14461
14325
|
}
|
14462
|
-
shouldTimeSlice.finishedWork = forceSync;
|
14463
|
-
shouldTimeSlice.finishedLanes = lanes;
|
14464
14326
|
if (null !== ReactSharedInternals.actQueue)
|
14465
14327
|
commitRoot(
|
14466
14328
|
shouldTimeSlice,
|
14329
|
+
forceSync,
|
14330
|
+
lanes,
|
14467
14331
|
workInProgressRootRecoverableErrors,
|
14468
14332
|
workInProgressTransitions,
|
14469
14333
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
14470
14334
|
workInProgressDeferredLane,
|
14471
14335
|
workInProgressRootInterleavedUpdatedLanes,
|
14472
|
-
workInProgressSuspendedRetryLanes
|
14473
|
-
exitStatus,
|
14474
|
-
IMMEDIATE_COMMIT,
|
14475
|
-
renderStartTime,
|
14476
|
-
0
|
14336
|
+
workInProgressSuspendedRetryLanes
|
14477
14337
|
);
|
14478
14338
|
else {
|
14479
14339
|
if (
|
@@ -14490,7 +14350,7 @@
|
|
14490
14350
|
workInProgressDeferredLane,
|
14491
14351
|
!workInProgressRootDidSkipSuspendedSiblings
|
14492
14352
|
);
|
14493
|
-
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14353
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
|
14494
14354
|
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14495
14355
|
commitRootWhenReady.bind(
|
14496
14356
|
null,
|
@@ -14552,8 +14412,12 @@
|
|
14552
14412
|
completedRenderStartTime,
|
14553
14413
|
completedRenderEndTime
|
14554
14414
|
) {
|
14555
|
-
|
14556
|
-
|
14415
|
+
root.timeoutHandle = noTimeout;
|
14416
|
+
suspendedCommitReason = finishedWork.subtreeFlags;
|
14417
|
+
if (
|
14418
|
+
suspendedCommitReason & 8192 ||
|
14419
|
+
16785408 === (suspendedCommitReason & 16785408)
|
14420
|
+
)
|
14557
14421
|
if (
|
14558
14422
|
((suspendedState = {
|
14559
14423
|
stylesheets: null,
|
@@ -14561,13 +14425,15 @@
|
|
14561
14425
|
unsuspend: noop$1
|
14562
14426
|
}),
|
14563
14427
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
14564
|
-
(
|
14565
|
-
null !==
|
14428
|
+
(suspendedCommitReason = waitForCommitToBeReady()),
|
14429
|
+
null !== suspendedCommitReason)
|
14566
14430
|
) {
|
14567
|
-
root.cancelPendingCommit =
|
14431
|
+
root.cancelPendingCommit = suspendedCommitReason(
|
14568
14432
|
commitRoot.bind(
|
14569
14433
|
null,
|
14570
14434
|
root,
|
14435
|
+
finishedWork,
|
14436
|
+
lanes,
|
14571
14437
|
recoverableErrors,
|
14572
14438
|
transitions,
|
14573
14439
|
didIncludeRenderPhaseUpdate,
|
@@ -14590,16 +14456,14 @@
|
|
14590
14456
|
}
|
14591
14457
|
commitRoot(
|
14592
14458
|
root,
|
14459
|
+
finishedWork,
|
14460
|
+
lanes,
|
14593
14461
|
recoverableErrors,
|
14594
14462
|
transitions,
|
14595
14463
|
didIncludeRenderPhaseUpdate,
|
14596
14464
|
spawnedLane,
|
14597
14465
|
updatedLanes,
|
14598
|
-
suspendedRetryLanes
|
14599
|
-
exitStatus,
|
14600
|
-
suspendedCommitReason,
|
14601
|
-
completedRenderStartTime,
|
14602
|
-
completedRenderEndTime
|
14466
|
+
suspendedRetryLanes
|
14603
14467
|
);
|
14604
14468
|
}
|
14605
14469
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
@@ -14680,8 +14544,6 @@
|
|
14680
14544
|
}
|
14681
14545
|
}
|
14682
14546
|
function prepareFreshStack(root, lanes) {
|
14683
|
-
root.finishedWork = null;
|
14684
|
-
root.finishedLanes = 0;
|
14685
14547
|
var timeoutHandle = root.timeoutHandle;
|
14686
14548
|
timeoutHandle !== noTimeout &&
|
14687
14549
|
((root.timeoutHandle = noTimeout), cancelTimeout(timeoutHandle));
|
@@ -15037,7 +14899,7 @@
|
|
15037
14899
|
}
|
15038
14900
|
null !== ReactSharedInternals.actQueue
|
15039
14901
|
? workLoopSync()
|
15040
|
-
:
|
14902
|
+
: workLoopConcurrentByScheduler();
|
15041
14903
|
break;
|
15042
14904
|
} catch (thrownValue$9) {
|
15043
14905
|
handleThrow(root, thrownValue$9);
|
@@ -15060,7 +14922,7 @@
|
|
15060
14922
|
finishQueueingConcurrentUpdates();
|
15061
14923
|
return workInProgressRootExitStatus;
|
15062
14924
|
}
|
15063
|
-
function
|
14925
|
+
function workLoopConcurrentByScheduler() {
|
15064
14926
|
for (; null !== workInProgress && !shouldYield(); )
|
15065
14927
|
performUnitOfWork(workInProgress);
|
15066
14928
|
}
|
@@ -15261,169 +15123,315 @@
|
|
15261
15123
|
}
|
15262
15124
|
function commitRoot(
|
15263
15125
|
root,
|
15126
|
+
finishedWork,
|
15127
|
+
lanes,
|
15264
15128
|
recoverableErrors,
|
15265
15129
|
transitions,
|
15266
15130
|
didIncludeRenderPhaseUpdate,
|
15267
15131
|
spawnedLane,
|
15268
15132
|
updatedLanes,
|
15269
|
-
suspendedRetryLanes,
|
15270
|
-
exitStatus,
|
15271
|
-
suspendedCommitReason,
|
15272
|
-
completedRenderStartTime,
|
15273
|
-
completedRenderEndTime
|
15274
|
-
) {
|
15275
|
-
var prevTransition = ReactSharedInternals.T,
|
15276
|
-
previousUpdateLanePriority = ReactDOMSharedInternals.p;
|
15277
|
-
try {
|
15278
|
-
(ReactDOMSharedInternals.p = DiscreteEventPriority),
|
15279
|
-
(ReactSharedInternals.T = null),
|
15280
|
-
commitRootImpl(
|
15281
|
-
root,
|
15282
|
-
recoverableErrors,
|
15283
|
-
transitions,
|
15284
|
-
didIncludeRenderPhaseUpdate,
|
15285
|
-
previousUpdateLanePriority,
|
15286
|
-
spawnedLane,
|
15287
|
-
updatedLanes,
|
15288
|
-
suspendedRetryLanes,
|
15289
|
-
exitStatus,
|
15290
|
-
suspendedCommitReason,
|
15291
|
-
completedRenderStartTime,
|
15292
|
-
completedRenderEndTime
|
15293
|
-
);
|
15294
|
-
} finally {
|
15295
|
-
(ReactSharedInternals.T = prevTransition),
|
15296
|
-
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
|
15297
|
-
}
|
15298
|
-
}
|
15299
|
-
function commitRootImpl(
|
15300
|
-
root,
|
15301
|
-
recoverableErrors,
|
15302
|
-
transitions,
|
15303
|
-
didIncludeRenderPhaseUpdate,
|
15304
|
-
renderPriorityLevel,
|
15305
|
-
spawnedLane,
|
15306
|
-
updatedLanes,
|
15307
15133
|
suspendedRetryLanes
|
15308
15134
|
) {
|
15135
|
+
root.cancelPendingCommit = null;
|
15309
15136
|
do flushPassiveEffects();
|
15310
15137
|
while (null !== rootWithPendingPassiveEffects);
|
15311
15138
|
ReactStrictModeWarnings.flushLegacyContextWarning();
|
15312
15139
|
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
|
15313
15140
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
15314
15141
|
throw Error("Should not already be working.");
|
15315
|
-
var finishedWork = root.finishedWork;
|
15316
|
-
didIncludeRenderPhaseUpdate = root.finishedLanes;
|
15317
15142
|
null !== injectedProfilingHooks &&
|
15318
15143
|
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
15319
|
-
injectedProfilingHooks.markCommitStarted(
|
15320
|
-
if (null === finishedWork)
|
15321
|
-
|
15322
|
-
|
15323
|
-
|
15324
|
-
|
15325
|
-
|
15326
|
-
|
15327
|
-
|
15328
|
-
|
15329
|
-
|
15144
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
15145
|
+
if (null === finishedWork) markCommitStopped();
|
15146
|
+
else {
|
15147
|
+
0 === lanes &&
|
15148
|
+
console.error(
|
15149
|
+
"finishedLanes should not be empty during a commit. This is a bug in React."
|
15150
|
+
);
|
15151
|
+
if (finishedWork === root.current)
|
15152
|
+
throw Error(
|
15153
|
+
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
|
15154
|
+
);
|
15155
|
+
didIncludeRenderPhaseUpdate =
|
15156
|
+
finishedWork.lanes | finishedWork.childLanes;
|
15157
|
+
didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
|
15158
|
+
markRootFinished(
|
15159
|
+
root,
|
15160
|
+
lanes,
|
15161
|
+
didIncludeRenderPhaseUpdate,
|
15162
|
+
spawnedLane,
|
15163
|
+
updatedLanes,
|
15164
|
+
suspendedRetryLanes
|
15330
15165
|
);
|
15331
|
-
|
15332
|
-
|
15333
|
-
|
15334
|
-
|
15335
|
-
|
15336
|
-
|
15337
|
-
|
15338
|
-
|
15339
|
-
|
15340
|
-
|
15341
|
-
|
15342
|
-
|
15343
|
-
|
15344
|
-
|
15345
|
-
|
15346
|
-
|
15347
|
-
|
15348
|
-
|
15349
|
-
|
15350
|
-
|
15351
|
-
|
15352
|
-
|
15353
|
-
|
15354
|
-
|
15355
|
-
|
15356
|
-
|
15357
|
-
|
15358
|
-
|
15359
|
-
|
15360
|
-
|
15361
|
-
|
15362
|
-
|
15363
|
-
|
15364
|
-
|
15365
|
-
|
15366
|
-
|
15367
|
-
|
15368
|
-
|
15369
|
-
|
15370
|
-
|
15371
|
-
|
15372
|
-
|
15373
|
-
|
15374
|
-
|
15375
|
-
|
15376
|
-
|
15377
|
-
|
15378
|
-
|
15166
|
+
root === workInProgressRoot &&
|
15167
|
+
((workInProgress = workInProgressRoot = null),
|
15168
|
+
(workInProgressRootRenderLanes = 0));
|
15169
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15170
|
+
0 !== (finishedWork.flags & 10256)
|
15171
|
+
? ((pendingPassiveEffectsRemainingLanes =
|
15172
|
+
didIncludeRenderPhaseUpdate),
|
15173
|
+
(pendingPassiveTransitions = transitions),
|
15174
|
+
(root.callbackNode = null),
|
15175
|
+
(root.callbackPriority = 0),
|
15176
|
+
scheduleCallback$1(NormalPriority$1, function () {
|
15177
|
+
flushPassiveEffects(!0);
|
15178
|
+
return null;
|
15179
|
+
}))
|
15180
|
+
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
15181
|
+
commitStartTime = now();
|
15182
|
+
transitions = 0 !== (finishedWork.flags & 13878);
|
15183
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
|
15184
|
+
transitions = ReactSharedInternals.T;
|
15185
|
+
ReactSharedInternals.T = null;
|
15186
|
+
spawnedLane = ReactDOMSharedInternals.p;
|
15187
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15188
|
+
updatedLanes = executionContext;
|
15189
|
+
executionContext |= CommitContext;
|
15190
|
+
try {
|
15191
|
+
commitBeforeMutationEffects(root, finishedWork);
|
15192
|
+
} finally {
|
15193
|
+
(executionContext = updatedLanes),
|
15194
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15195
|
+
(ReactSharedInternals.T = transitions);
|
15196
|
+
}
|
15197
|
+
}
|
15198
|
+
flushMutationEffects(root, finishedWork, lanes);
|
15199
|
+
flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
|
15200
|
+
}
|
15201
|
+
}
|
15202
|
+
function flushMutationEffects(root, finishedWork, lanes) {
|
15203
|
+
var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
15204
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
|
15205
|
+
rootMutationHasEffect = ReactSharedInternals.T;
|
15206
|
+
ReactSharedInternals.T = null;
|
15207
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15208
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15209
|
+
var prevExecutionContext = executionContext;
|
15210
|
+
executionContext |= CommitContext;
|
15211
|
+
try {
|
15212
|
+
inProgressLanes = lanes;
|
15213
|
+
inProgressRoot = root;
|
15214
|
+
commitMutationEffectsOnFiber(finishedWork, root);
|
15215
|
+
inProgressRoot = inProgressLanes = null;
|
15216
|
+
lanes = selectionInformation;
|
15217
|
+
var curFocusedElem = getActiveElementDeep(root.containerInfo),
|
15218
|
+
priorFocusedElem = lanes.focusedElem,
|
15219
|
+
priorSelectionRange = lanes.selectionRange;
|
15220
|
+
if (
|
15221
|
+
curFocusedElem !== priorFocusedElem &&
|
15222
|
+
priorFocusedElem &&
|
15223
|
+
priorFocusedElem.ownerDocument &&
|
15224
|
+
containsNode(
|
15225
|
+
priorFocusedElem.ownerDocument.documentElement,
|
15226
|
+
priorFocusedElem
|
15227
|
+
)
|
15228
|
+
) {
|
15229
|
+
if (
|
15230
|
+
null !== priorSelectionRange &&
|
15231
|
+
hasSelectionCapabilities(priorFocusedElem)
|
15232
|
+
) {
|
15233
|
+
var start = priorSelectionRange.start,
|
15234
|
+
end = priorSelectionRange.end;
|
15235
|
+
void 0 === end && (end = start);
|
15236
|
+
if ("selectionStart" in priorFocusedElem)
|
15237
|
+
(priorFocusedElem.selectionStart = start),
|
15238
|
+
(priorFocusedElem.selectionEnd = Math.min(
|
15239
|
+
end,
|
15240
|
+
priorFocusedElem.value.length
|
15241
|
+
));
|
15242
|
+
else {
|
15243
|
+
var doc = priorFocusedElem.ownerDocument || document,
|
15244
|
+
win = (doc && doc.defaultView) || window;
|
15245
|
+
if (win.getSelection) {
|
15246
|
+
var selection = win.getSelection(),
|
15247
|
+
length = priorFocusedElem.textContent.length,
|
15248
|
+
start$jscomp$0 = Math.min(
|
15249
|
+
priorSelectionRange.start,
|
15250
|
+
length
|
15251
|
+
),
|
15252
|
+
end$jscomp$0 =
|
15253
|
+
void 0 === priorSelectionRange.end
|
15254
|
+
? start$jscomp$0
|
15255
|
+
: Math.min(priorSelectionRange.end, length);
|
15256
|
+
!selection.extend &&
|
15257
|
+
start$jscomp$0 > end$jscomp$0 &&
|
15258
|
+
((curFocusedElem = end$jscomp$0),
|
15259
|
+
(end$jscomp$0 = start$jscomp$0),
|
15260
|
+
(start$jscomp$0 = curFocusedElem));
|
15261
|
+
var startMarker = getNodeForCharacterOffset(
|
15262
|
+
priorFocusedElem,
|
15263
|
+
start$jscomp$0
|
15264
|
+
),
|
15265
|
+
endMarker = getNodeForCharacterOffset(
|
15266
|
+
priorFocusedElem,
|
15267
|
+
end$jscomp$0
|
15268
|
+
);
|
15269
|
+
if (
|
15270
|
+
startMarker &&
|
15271
|
+
endMarker &&
|
15272
|
+
(1 !== selection.rangeCount ||
|
15273
|
+
selection.anchorNode !== startMarker.node ||
|
15274
|
+
selection.anchorOffset !== startMarker.offset ||
|
15275
|
+
selection.focusNode !== endMarker.node ||
|
15276
|
+
selection.focusOffset !== endMarker.offset)
|
15277
|
+
) {
|
15278
|
+
var range = doc.createRange();
|
15279
|
+
range.setStart(startMarker.node, startMarker.offset);
|
15280
|
+
selection.removeAllRanges();
|
15281
|
+
start$jscomp$0 > end$jscomp$0
|
15282
|
+
? (selection.addRange(range),
|
15283
|
+
selection.extend(endMarker.node, endMarker.offset))
|
15284
|
+
: (range.setEnd(endMarker.node, endMarker.offset),
|
15285
|
+
selection.addRange(range));
|
15286
|
+
}
|
15287
|
+
}
|
15288
|
+
}
|
15289
|
+
}
|
15290
|
+
doc = [];
|
15291
|
+
for (
|
15292
|
+
selection = priorFocusedElem;
|
15293
|
+
(selection = selection.parentNode);
|
15294
|
+
|
15295
|
+
)
|
15296
|
+
1 === selection.nodeType &&
|
15297
|
+
doc.push({
|
15298
|
+
element: selection,
|
15299
|
+
left: selection.scrollLeft,
|
15300
|
+
top: selection.scrollTop
|
15301
|
+
});
|
15302
|
+
"function" === typeof priorFocusedElem.focus &&
|
15303
|
+
priorFocusedElem.focus();
|
15304
|
+
for (
|
15305
|
+
priorFocusedElem = 0;
|
15306
|
+
priorFocusedElem < doc.length;
|
15307
|
+
priorFocusedElem++
|
15308
|
+
) {
|
15309
|
+
var info = doc[priorFocusedElem];
|
15310
|
+
info.element.scrollLeft = info.left;
|
15311
|
+
info.element.scrollTop = info.top;
|
15312
|
+
}
|
15313
|
+
}
|
15314
|
+
_enabled = !!eventsEnabled;
|
15315
|
+
selectionInformation = eventsEnabled = null;
|
15316
|
+
} finally {
|
15317
|
+
(executionContext = prevExecutionContext),
|
15318
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15319
|
+
(ReactSharedInternals.T = rootMutationHasEffect);
|
15320
|
+
}
|
15321
|
+
}
|
15322
|
+
root.current = finishedWork;
|
15323
|
+
}
|
15324
|
+
function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
|
15325
|
+
var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
|
15326
|
+
if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
|
15327
|
+
rootHasLayoutEffect = ReactSharedInternals.T;
|
15328
|
+
ReactSharedInternals.T = null;
|
15329
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15330
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15331
|
+
var prevExecutionContext = executionContext;
|
15332
|
+
executionContext |= CommitContext;
|
15333
|
+
try {
|
15379
15334
|
null !== injectedProfilingHooks &&
|
15380
15335
|
"function" ===
|
15381
15336
|
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15382
|
-
injectedProfilingHooks.markLayoutEffectsStarted(
|
15383
|
-
|
15337
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes),
|
15338
|
+
(inProgressLanes = lanes),
|
15339
|
+
(inProgressRoot = root),
|
15340
|
+
commitLayoutEffectOnFiber(
|
15341
|
+
root,
|
15342
|
+
finishedWork.alternate,
|
15343
|
+
finishedWork
|
15384
15344
|
),
|
15385
|
-
|
15386
|
-
|
15387
|
-
|
15388
|
-
|
15389
|
-
|
15390
|
-
|
15391
|
-
(executionContext =
|
15392
|
-
|
15393
|
-
|
15394
|
-
|
15395
|
-
|
15396
|
-
|
15397
|
-
|
15398
|
-
|
15399
|
-
|
15345
|
+
(inProgressRoot = inProgressLanes = null),
|
15346
|
+
null !== injectedProfilingHooks &&
|
15347
|
+
"function" ===
|
15348
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15349
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
15350
|
+
} finally {
|
15351
|
+
(executionContext = prevExecutionContext),
|
15352
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15353
|
+
(ReactSharedInternals.T = rootHasLayoutEffect);
|
15354
|
+
}
|
15355
|
+
}
|
15356
|
+
requestPaint();
|
15357
|
+
(rootHasLayoutEffect =
|
15358
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15359
|
+
0 !== (finishedWork.flags & 10256))
|
15360
|
+
? ((rootWithPendingPassiveEffects = root),
|
15361
|
+
(pendingPassiveEffectsLanes = lanes))
|
15362
|
+
: (releaseRootPooledCache(root, root.pendingLanes),
|
15400
15363
|
(nestedPassiveUpdateCount = 0),
|
15401
15364
|
(rootWithPassiveNestedUpdates = null));
|
15402
|
-
|
15403
|
-
0 ===
|
15404
|
-
|
15405
|
-
|
15365
|
+
previousPriority = root.pendingLanes;
|
15366
|
+
0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
|
15367
|
+
rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
|
15368
|
+
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
15369
|
+
finishedWork = finishedWork.stateNode;
|
15370
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
15371
|
+
try {
|
15372
|
+
var didError = 128 === (finishedWork.current.flags & 128);
|
15373
|
+
switch (rootHasLayoutEffect) {
|
15374
|
+
case DiscreteEventPriority:
|
15375
|
+
var schedulerPriority = ImmediatePriority;
|
15376
|
+
break;
|
15377
|
+
case ContinuousEventPriority:
|
15378
|
+
schedulerPriority = UserBlockingPriority;
|
15379
|
+
break;
|
15380
|
+
case DefaultEventPriority:
|
15381
|
+
schedulerPriority = NormalPriority$1;
|
15382
|
+
break;
|
15383
|
+
case IdleEventPriority:
|
15384
|
+
schedulerPriority = IdlePriority;
|
15385
|
+
break;
|
15386
|
+
default:
|
15387
|
+
schedulerPriority = NormalPriority$1;
|
15388
|
+
}
|
15389
|
+
injectedHook.onCommitFiberRoot(
|
15390
|
+
rendererID,
|
15391
|
+
finishedWork,
|
15392
|
+
schedulerPriority,
|
15393
|
+
didError
|
15394
|
+
);
|
15395
|
+
} catch (err) {
|
15396
|
+
hasLoggedError ||
|
15397
|
+
((hasLoggedError = !0),
|
15398
|
+
console.error(
|
15399
|
+
"React instrumentation encountered an error: %s",
|
15400
|
+
err
|
15401
|
+
));
|
15402
|
+
}
|
15406
15403
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
15407
15404
|
onCommitRoot();
|
15408
|
-
if (null !== recoverableErrors)
|
15409
|
-
|
15410
|
-
|
15411
|
-
|
15412
|
-
|
15413
|
-
|
15414
|
-
|
15415
|
-
|
15405
|
+
if (null !== recoverableErrors) {
|
15406
|
+
didError = ReactSharedInternals.T;
|
15407
|
+
schedulerPriority = ReactDOMSharedInternals.p;
|
15408
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15409
|
+
ReactSharedInternals.T = null;
|
15410
|
+
try {
|
15411
|
+
var onRecoverableError = root.onRecoverableError;
|
15412
|
+
for (
|
15413
|
+
finishedWork = 0;
|
15414
|
+
finishedWork < recoverableErrors.length;
|
15415
|
+
finishedWork++
|
15416
|
+
) {
|
15417
|
+
var recoverableError = recoverableErrors[finishedWork],
|
15418
|
+
errorInfo = makeErrorInfo(recoverableError.stack);
|
15416
15419
|
runWithFiberInDEV(
|
15417
|
-
|
15418
|
-
|
15419
|
-
|
15420
|
-
|
15420
|
+
recoverableError.source,
|
15421
|
+
onRecoverableError,
|
15422
|
+
recoverableError.value,
|
15423
|
+
errorInfo
|
15421
15424
|
);
|
15425
|
+
}
|
15426
|
+
} finally {
|
15427
|
+
(ReactSharedInternals.T = didError),
|
15428
|
+
(ReactDOMSharedInternals.p = schedulerPriority);
|
15429
|
+
}
|
15430
|
+
}
|
15422
15431
|
0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
|
15423
15432
|
ensureRootIsScheduled(root);
|
15424
|
-
|
15425
|
-
0 !== (
|
15426
|
-
0 !== (remainingLanes & 42)
|
15433
|
+
previousPriority = root.pendingLanes;
|
15434
|
+
0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
|
15427
15435
|
? ((nestedUpdateScheduled = !0),
|
15428
15436
|
root === rootWithNestedUpdates
|
15429
15437
|
? nestedUpdateCount++
|
@@ -15431,7 +15439,6 @@
|
|
15431
15439
|
: (nestedUpdateCount = 0);
|
15432
15440
|
flushSyncWorkAcrossRoots_impl(0, !1);
|
15433
15441
|
markCommitStopped();
|
15434
|
-
return null;
|
15435
15442
|
}
|
15436
15443
|
function makeErrorInfo(componentStack) {
|
15437
15444
|
componentStack = { componentStack: componentStack };
|
@@ -15796,11 +15803,9 @@
|
|
15796
15803
|
mightHavePendingSyncWork = !0;
|
15797
15804
|
null !== ReactSharedInternals.actQueue
|
15798
15805
|
? didScheduleMicrotask_act ||
|
15799
|
-
((didScheduleMicrotask_act = !0),
|
15800
|
-
scheduleImmediateTask(processRootScheduleInMicrotask))
|
15806
|
+
((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask())
|
15801
15807
|
: didScheduleMicrotask ||
|
15802
|
-
((didScheduleMicrotask = !0),
|
15803
|
-
scheduleImmediateTask(processRootScheduleInMicrotask));
|
15808
|
+
((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
|
15804
15809
|
}
|
15805
15810
|
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
15806
15811
|
if (!isFlushingWork && mightHavePendingSyncWork) {
|
@@ -15832,7 +15837,9 @@
|
|
15832
15837
|
(nextLanes = workInProgressRootRenderLanes),
|
15833
15838
|
(nextLanes = getNextLanes(
|
15834
15839
|
root,
|
15835
|
-
root === workInProgressRoot ? nextLanes : 0
|
15840
|
+
root === workInProgressRoot ? nextLanes : 0,
|
15841
|
+
null !== root.cancelPendingCommit ||
|
15842
|
+
root.timeoutHandle !== noTimeout
|
15836
15843
|
)),
|
15837
15844
|
0 === (nextLanes & 3) ||
|
15838
15845
|
checkIfRootIsPrerendering(root, nextLanes) ||
|
@@ -15844,6 +15851,9 @@
|
|
15844
15851
|
isFlushingWork = !1;
|
15845
15852
|
}
|
15846
15853
|
}
|
15854
|
+
function processRootScheduleInImmediateTask() {
|
15855
|
+
processRootScheduleInMicrotask();
|
15856
|
+
}
|
15847
15857
|
function processRootScheduleInMicrotask() {
|
15848
15858
|
mightHavePendingSyncWork =
|
15849
15859
|
didScheduleMicrotask_act =
|
@@ -15895,7 +15905,8 @@
|
|
15895
15905
|
suspendedLanes = workInProgressRootRenderLanes;
|
15896
15906
|
suspendedLanes = getNextLanes(
|
15897
15907
|
root,
|
15898
|
-
root === currentTime ? suspendedLanes : 0
|
15908
|
+
root === currentTime ? suspendedLanes : 0,
|
15909
|
+
null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
|
15899
15910
|
);
|
15900
15911
|
pingedLanes = root.callbackNode;
|
15901
15912
|
if (
|
@@ -15959,7 +15970,10 @@
|
|
15959
15970
|
workInProgressRootRenderLanes;
|
15960
15971
|
workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
15961
15972
|
root,
|
15962
|
-
root === workInProgressRoot
|
15973
|
+
root === workInProgressRoot
|
15974
|
+
? workInProgressRootRenderLanes$jscomp$0
|
15975
|
+
: 0,
|
15976
|
+
null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
|
15963
15977
|
);
|
15964
15978
|
if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
|
15965
15979
|
performWorkOnRoot(
|
@@ -15984,16 +15998,19 @@
|
|
15984
15998
|
null !== callbackNode &&
|
15985
15999
|
cancelCallback$1(callbackNode);
|
15986
16000
|
}
|
15987
|
-
function
|
16001
|
+
function scheduleImmediateRootScheduleTask() {
|
15988
16002
|
null !== ReactSharedInternals.actQueue &&
|
15989
16003
|
ReactSharedInternals.actQueue.push(function () {
|
15990
|
-
|
16004
|
+
processRootScheduleInMicrotask();
|
15991
16005
|
return null;
|
15992
16006
|
});
|
15993
16007
|
scheduleMicrotask(function () {
|
15994
16008
|
(executionContext & (RenderContext | CommitContext)) !== NoContext
|
15995
|
-
? scheduleCallback$3(
|
15996
|
-
|
16009
|
+
? scheduleCallback$3(
|
16010
|
+
ImmediatePriority,
|
16011
|
+
processRootScheduleInImmediateTask
|
16012
|
+
)
|
16013
|
+
: processRootScheduleInMicrotask();
|
15997
16014
|
});
|
15998
16015
|
}
|
15999
16016
|
function requestTransitionLane() {
|
@@ -20173,11 +20190,7 @@
|
|
20173
20190
|
) {
|
20174
20191
|
this.tag = 1;
|
20175
20192
|
this.containerInfo = containerInfo;
|
20176
|
-
this.
|
20177
|
-
this.pingCache =
|
20178
|
-
this.current =
|
20179
|
-
this.pendingChildren =
|
20180
|
-
null;
|
20193
|
+
this.pingCache = this.current = this.pendingChildren = null;
|
20181
20194
|
this.timeoutHandle = noTimeout;
|
20182
20195
|
this.callbackNode =
|
20183
20196
|
this.next =
|
@@ -20190,7 +20203,6 @@
|
|
20190
20203
|
this.entangledLanes =
|
20191
20204
|
this.shellSuspendCounter =
|
20192
20205
|
this.errorRecoveryDisabledLanes =
|
20193
|
-
this.finishedLanes =
|
20194
20206
|
this.expiredLanes =
|
20195
20207
|
this.warmLanes =
|
20196
20208
|
this.pingedLanes =
|
@@ -23939,7 +23951,6 @@
|
|
23939
23951
|
nextEffect = null,
|
23940
23952
|
inProgressLanes = null,
|
23941
23953
|
inProgressRoot = null,
|
23942
|
-
shouldFireAfterActiveInstanceBlur = !1,
|
23943
23954
|
hostParent = null,
|
23944
23955
|
hostParentIsContainer = !1,
|
23945
23956
|
currentHoistableRoot = null,
|
@@ -24571,11 +24582,11 @@
|
|
24571
24582
|
};
|
24572
24583
|
(function () {
|
24573
24584
|
var isomorphicReactPackageVersion = React.version;
|
24574
|
-
if ("19.1.0-canary-
|
24585
|
+
if ("19.1.0-canary-3b009b4c-20250102" !== isomorphicReactPackageVersion)
|
24575
24586
|
throw Error(
|
24576
24587
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24577
24588
|
(isomorphicReactPackageVersion +
|
24578
|
-
"\n - react-dom: 19.1.0-canary-
|
24589
|
+
"\n - react-dom: 19.1.0-canary-3b009b4c-20250102\nLearn more: https://react.dev/warnings/version-mismatch")
|
24579
24590
|
);
|
24580
24591
|
})();
|
24581
24592
|
("function" === typeof Map &&
|
@@ -24612,10 +24623,10 @@
|
|
24612
24623
|
!(function () {
|
24613
24624
|
var internals = {
|
24614
24625
|
bundleType: 1,
|
24615
|
-
version: "19.1.0-canary-
|
24626
|
+
version: "19.1.0-canary-3b009b4c-20250102",
|
24616
24627
|
rendererPackageName: "react-dom",
|
24617
24628
|
currentDispatcherRef: ReactSharedInternals,
|
24618
|
-
reconcilerVersion: "19.1.0-canary-
|
24629
|
+
reconcilerVersion: "19.1.0-canary-3b009b4c-20250102"
|
24619
24630
|
};
|
24620
24631
|
internals.overrideHookState = overrideHookState;
|
24621
24632
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25091,7 +25102,7 @@
|
|
25091
25102
|
exports.useFormStatus = function () {
|
25092
25103
|
return resolveDispatcher().useHostTransitionStatus();
|
25093
25104
|
};
|
25094
|
-
exports.version = "19.1.0-canary-
|
25105
|
+
exports.version = "19.1.0-canary-3b009b4c-20250102";
|
25095
25106
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25096
25107
|
"function" ===
|
25097
25108
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|