react-dom 19.1.0-canary-3ce77d55-20250106 → 19.1.0-canary-42687267-20250108
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 +524 -509
- package/cjs/react-dom-client.production.js +413 -382
- package/cjs/react-dom-profiling.development.js +524 -509
- package/cjs/react-dom-profiling.profiling.js +458 -427
- 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
@@ -97,13 +97,14 @@
|
|
97
97
|
}
|
98
98
|
function scheduleRoot(root, element) {
|
99
99
|
root.context === emptyContextObject &&
|
100
|
-
(
|
100
|
+
(updateContainerImpl(root.current, 2, element, root, null, null),
|
101
|
+
flushSyncWork$1());
|
101
102
|
}
|
102
103
|
function scheduleRefresh(root, update) {
|
103
104
|
if (null !== resolveFamily) {
|
104
105
|
var staleFamilies = update.staleFamilies;
|
105
106
|
update = update.updatedFamilies;
|
106
|
-
|
107
|
+
flushPendingEffects();
|
107
108
|
scheduleFibersWithFamiliesRecursively(
|
108
109
|
root.current,
|
109
110
|
update,
|
@@ -9093,32 +9094,32 @@
|
|
9093
9094
|
return current;
|
9094
9095
|
}
|
9095
9096
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
9096
|
-
var
|
9097
|
-
var
|
9097
|
+
var JSCompiler_object_inline_digest_2362;
|
9098
|
+
var JSCompiler_object_inline_stack_2363 = workInProgress.pendingProps;
|
9098
9099
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
9099
|
-
var
|
9100
|
+
var JSCompiler_object_inline_componentStack_2364 = !1;
|
9100
9101
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
9101
|
-
(
|
9102
|
-
(
|
9102
|
+
(JSCompiler_object_inline_digest_2362 = didSuspend) ||
|
9103
|
+
(JSCompiler_object_inline_digest_2362 =
|
9103
9104
|
null !== current && null === current.memoizedState
|
9104
9105
|
? !1
|
9105
9106
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
9106
|
-
|
9107
|
-
((
|
9107
|
+
JSCompiler_object_inline_digest_2362 &&
|
9108
|
+
((JSCompiler_object_inline_componentStack_2364 = !0),
|
9108
9109
|
(workInProgress.flags &= -129));
|
9109
|
-
|
9110
|
+
JSCompiler_object_inline_digest_2362 = 0 !== (workInProgress.flags & 32);
|
9110
9111
|
workInProgress.flags &= -33;
|
9111
9112
|
if (null === current) {
|
9112
9113
|
if (isHydrating) {
|
9113
|
-
|
9114
|
+
JSCompiler_object_inline_componentStack_2364
|
9114
9115
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
9115
9116
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
9116
9117
|
if (isHydrating) {
|
9117
|
-
var
|
9118
|
+
var JSCompiler_object_inline_message_2361 = nextHydratableInstance;
|
9118
9119
|
var JSCompiler_temp;
|
9119
|
-
if (!(JSCompiler_temp = !
|
9120
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2361)) {
|
9120
9121
|
c: {
|
9121
|
-
var instance =
|
9122
|
+
var instance = JSCompiler_object_inline_message_2361;
|
9122
9123
|
for (
|
9123
9124
|
JSCompiler_temp = rootOrSingletonContext;
|
9124
9125
|
8 !== instance.nodeType;
|
@@ -9160,77 +9161,77 @@
|
|
9160
9161
|
JSCompiler_temp &&
|
9161
9162
|
(warnNonHydratedInstance(
|
9162
9163
|
workInProgress,
|
9163
|
-
|
9164
|
+
JSCompiler_object_inline_message_2361
|
9164
9165
|
),
|
9165
9166
|
throwOnHydrationMismatch(workInProgress));
|
9166
9167
|
}
|
9167
|
-
|
9168
|
+
JSCompiler_object_inline_message_2361 = workInProgress.memoizedState;
|
9168
9169
|
if (
|
9169
|
-
null !==
|
9170
|
-
((
|
9171
|
-
|
9172
|
-
null !==
|
9170
|
+
null !== JSCompiler_object_inline_message_2361 &&
|
9171
|
+
((JSCompiler_object_inline_message_2361 =
|
9172
|
+
JSCompiler_object_inline_message_2361.dehydrated),
|
9173
|
+
null !== JSCompiler_object_inline_message_2361)
|
9173
9174
|
)
|
9174
9175
|
return (
|
9175
|
-
isSuspenseInstanceFallback(
|
9176
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2361)
|
9176
9177
|
? (workInProgress.lanes = 32)
|
9177
9178
|
: (workInProgress.lanes = 536870912),
|
9178
9179
|
null
|
9179
9180
|
);
|
9180
9181
|
popSuspenseHandler(workInProgress);
|
9181
9182
|
}
|
9182
|
-
|
9183
|
-
|
9184
|
-
|
9185
|
-
|
9186
|
-
if (
|
9183
|
+
JSCompiler_object_inline_message_2361 =
|
9184
|
+
JSCompiler_object_inline_stack_2363.children;
|
9185
|
+
JSCompiler_object_inline_stack_2363 =
|
9186
|
+
JSCompiler_object_inline_stack_2363.fallback;
|
9187
|
+
if (JSCompiler_object_inline_componentStack_2364)
|
9187
9188
|
return (
|
9188
9189
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9189
|
-
(
|
9190
|
+
(JSCompiler_object_inline_componentStack_2364 =
|
9190
9191
|
workInProgress.mode),
|
9191
|
-
(
|
9192
|
+
(JSCompiler_object_inline_message_2361 =
|
9192
9193
|
mountWorkInProgressOffscreenFiber(
|
9193
9194
|
{
|
9194
9195
|
mode: "hidden",
|
9195
|
-
children:
|
9196
|
+
children: JSCompiler_object_inline_message_2361
|
9196
9197
|
},
|
9197
|
-
|
9198
|
+
JSCompiler_object_inline_componentStack_2364
|
9198
9199
|
)),
|
9199
|
-
(
|
9200
|
-
|
9201
|
-
|
9200
|
+
(JSCompiler_object_inline_stack_2363 = createFiberFromFragment(
|
9201
|
+
JSCompiler_object_inline_stack_2363,
|
9202
|
+
JSCompiler_object_inline_componentStack_2364,
|
9202
9203
|
renderLanes,
|
9203
9204
|
null
|
9204
9205
|
)),
|
9205
|
-
(
|
9206
|
-
(
|
9207
|
-
(
|
9208
|
-
|
9209
|
-
(workInProgress.child =
|
9210
|
-
(
|
9206
|
+
(JSCompiler_object_inline_message_2361.return = workInProgress),
|
9207
|
+
(JSCompiler_object_inline_stack_2363.return = workInProgress),
|
9208
|
+
(JSCompiler_object_inline_message_2361.sibling =
|
9209
|
+
JSCompiler_object_inline_stack_2363),
|
9210
|
+
(workInProgress.child = JSCompiler_object_inline_message_2361),
|
9211
|
+
(JSCompiler_object_inline_componentStack_2364 =
|
9211
9212
|
workInProgress.child),
|
9212
|
-
(
|
9213
|
+
(JSCompiler_object_inline_componentStack_2364.memoizedState =
|
9213
9214
|
mountSuspenseOffscreenState(renderLanes)),
|
9214
|
-
(
|
9215
|
+
(JSCompiler_object_inline_componentStack_2364.childLanes =
|
9215
9216
|
getRemainingWorkInPrimaryTree(
|
9216
9217
|
current,
|
9217
|
-
|
9218
|
+
JSCompiler_object_inline_digest_2362,
|
9218
9219
|
renderLanes
|
9219
9220
|
)),
|
9220
9221
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9221
|
-
|
9222
|
+
JSCompiler_object_inline_stack_2363
|
9222
9223
|
);
|
9223
9224
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9224
9225
|
return mountSuspensePrimaryChildren(
|
9225
9226
|
workInProgress,
|
9226
|
-
|
9227
|
+
JSCompiler_object_inline_message_2361
|
9227
9228
|
);
|
9228
9229
|
}
|
9229
9230
|
var prevState = current.memoizedState;
|
9230
9231
|
if (
|
9231
9232
|
null !== prevState &&
|
9232
|
-
((
|
9233
|
-
null !==
|
9233
|
+
((JSCompiler_object_inline_message_2361 = prevState.dehydrated),
|
9234
|
+
null !== JSCompiler_object_inline_message_2361)
|
9234
9235
|
) {
|
9235
9236
|
if (didSuspend)
|
9236
9237
|
workInProgress.flags & 256
|
@@ -9247,94 +9248,94 @@
|
|
9247
9248
|
(workInProgress.flags |= 128),
|
9248
9249
|
(workInProgress = null))
|
9249
9250
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
9250
|
-
(
|
9251
|
-
|
9252
|
-
(
|
9253
|
-
(
|
9251
|
+
(JSCompiler_object_inline_componentStack_2364 =
|
9252
|
+
JSCompiler_object_inline_stack_2363.fallback),
|
9253
|
+
(JSCompiler_object_inline_message_2361 = workInProgress.mode),
|
9254
|
+
(JSCompiler_object_inline_stack_2363 =
|
9254
9255
|
mountWorkInProgressOffscreenFiber(
|
9255
9256
|
{
|
9256
9257
|
mode: "visible",
|
9257
|
-
children:
|
9258
|
+
children: JSCompiler_object_inline_stack_2363.children
|
9258
9259
|
},
|
9259
|
-
|
9260
|
+
JSCompiler_object_inline_message_2361
|
9260
9261
|
)),
|
9261
|
-
(
|
9262
|
+
(JSCompiler_object_inline_componentStack_2364 =
|
9262
9263
|
createFiberFromFragment(
|
9263
|
-
|
9264
|
-
|
9264
|
+
JSCompiler_object_inline_componentStack_2364,
|
9265
|
+
JSCompiler_object_inline_message_2361,
|
9265
9266
|
renderLanes,
|
9266
9267
|
null
|
9267
9268
|
)),
|
9268
|
-
(
|
9269
|
-
(
|
9270
|
-
(
|
9269
|
+
(JSCompiler_object_inline_componentStack_2364.flags |= 2),
|
9270
|
+
(JSCompiler_object_inline_stack_2363.return = workInProgress),
|
9271
|
+
(JSCompiler_object_inline_componentStack_2364.return =
|
9271
9272
|
workInProgress),
|
9272
|
-
(
|
9273
|
-
|
9274
|
-
(workInProgress.child =
|
9273
|
+
(JSCompiler_object_inline_stack_2363.sibling =
|
9274
|
+
JSCompiler_object_inline_componentStack_2364),
|
9275
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2363),
|
9275
9276
|
reconcileChildFibers(
|
9276
9277
|
workInProgress,
|
9277
9278
|
current.child,
|
9278
9279
|
null,
|
9279
9280
|
renderLanes
|
9280
9281
|
),
|
9281
|
-
(
|
9282
|
-
(
|
9282
|
+
(JSCompiler_object_inline_stack_2363 = workInProgress.child),
|
9283
|
+
(JSCompiler_object_inline_stack_2363.memoizedState =
|
9283
9284
|
mountSuspenseOffscreenState(renderLanes)),
|
9284
|
-
(
|
9285
|
+
(JSCompiler_object_inline_stack_2363.childLanes =
|
9285
9286
|
getRemainingWorkInPrimaryTree(
|
9286
9287
|
current,
|
9287
|
-
|
9288
|
+
JSCompiler_object_inline_digest_2362,
|
9288
9289
|
renderLanes
|
9289
9290
|
)),
|
9290
9291
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9291
9292
|
(workInProgress =
|
9292
|
-
|
9293
|
+
JSCompiler_object_inline_componentStack_2364));
|
9293
9294
|
else if (
|
9294
9295
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
9295
9296
|
isHydrating &&
|
9296
9297
|
console.error(
|
9297
9298
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
9298
9299
|
),
|
9299
|
-
isSuspenseInstanceFallback(
|
9300
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2361))
|
9300
9301
|
) {
|
9301
|
-
|
9302
|
-
|
9303
|
-
|
9304
|
-
if (
|
9305
|
-
JSCompiler_temp =
|
9306
|
-
var message =
|
9307
|
-
instance =
|
9308
|
-
var componentStack =
|
9302
|
+
JSCompiler_object_inline_digest_2362 =
|
9303
|
+
JSCompiler_object_inline_message_2361.nextSibling &&
|
9304
|
+
JSCompiler_object_inline_message_2361.nextSibling.dataset;
|
9305
|
+
if (JSCompiler_object_inline_digest_2362) {
|
9306
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2362.dgst;
|
9307
|
+
var message = JSCompiler_object_inline_digest_2362.msg;
|
9308
|
+
instance = JSCompiler_object_inline_digest_2362.stck;
|
9309
|
+
var componentStack = JSCompiler_object_inline_digest_2362.cstck;
|
9309
9310
|
}
|
9310
|
-
|
9311
|
-
|
9312
|
-
|
9313
|
-
JSCompiler_temp =
|
9311
|
+
JSCompiler_object_inline_message_2361 = message;
|
9312
|
+
JSCompiler_object_inline_digest_2362 = JSCompiler_temp;
|
9313
|
+
JSCompiler_object_inline_stack_2363 = instance;
|
9314
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2364 =
|
9314
9315
|
componentStack;
|
9315
|
-
|
9316
|
-
|
9317
|
-
? Error(
|
9316
|
+
JSCompiler_object_inline_componentStack_2364 =
|
9317
|
+
JSCompiler_object_inline_message_2361
|
9318
|
+
? Error(JSCompiler_object_inline_message_2361)
|
9318
9319
|
: Error(
|
9319
9320
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
9320
9321
|
);
|
9321
|
-
|
9322
|
-
|
9323
|
-
|
9324
|
-
|
9325
|
-
|
9322
|
+
JSCompiler_object_inline_componentStack_2364.stack =
|
9323
|
+
JSCompiler_object_inline_stack_2363 || "";
|
9324
|
+
JSCompiler_object_inline_componentStack_2364.digest =
|
9325
|
+
JSCompiler_object_inline_digest_2362;
|
9326
|
+
JSCompiler_object_inline_digest_2362 =
|
9326
9327
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
9327
|
-
|
9328
|
-
value:
|
9328
|
+
JSCompiler_object_inline_stack_2363 = {
|
9329
|
+
value: JSCompiler_object_inline_componentStack_2364,
|
9329
9330
|
source: null,
|
9330
|
-
stack:
|
9331
|
+
stack: JSCompiler_object_inline_digest_2362
|
9331
9332
|
};
|
9332
|
-
"string" === typeof
|
9333
|
+
"string" === typeof JSCompiler_object_inline_digest_2362 &&
|
9333
9334
|
CapturedStacks.set(
|
9334
|
-
|
9335
|
-
|
9335
|
+
JSCompiler_object_inline_componentStack_2364,
|
9336
|
+
JSCompiler_object_inline_stack_2363
|
9336
9337
|
);
|
9337
|
-
queueHydrationError(
|
9338
|
+
queueHydrationError(JSCompiler_object_inline_stack_2363);
|
9338
9339
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9339
9340
|
current,
|
9340
9341
|
workInProgress,
|
@@ -9348,44 +9349,44 @@
|
|
9348
9349
|
renderLanes,
|
9349
9350
|
!1
|
9350
9351
|
),
|
9351
|
-
(
|
9352
|
+
(JSCompiler_object_inline_digest_2362 =
|
9352
9353
|
0 !== (renderLanes & current.childLanes)),
|
9353
|
-
didReceiveUpdate ||
|
9354
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2362)
|
9354
9355
|
) {
|
9355
|
-
|
9356
|
+
JSCompiler_object_inline_digest_2362 = workInProgressRoot;
|
9356
9357
|
if (
|
9357
|
-
null !==
|
9358
|
-
((
|
9359
|
-
(
|
9360
|
-
0 !== (
|
9358
|
+
null !== JSCompiler_object_inline_digest_2362 &&
|
9359
|
+
((JSCompiler_object_inline_stack_2363 = renderLanes & -renderLanes),
|
9360
|
+
(JSCompiler_object_inline_stack_2363 =
|
9361
|
+
0 !== (JSCompiler_object_inline_stack_2363 & 42)
|
9361
9362
|
? 1
|
9362
9363
|
: getBumpedLaneForHydrationByLane(
|
9363
|
-
|
9364
|
+
JSCompiler_object_inline_stack_2363
|
9364
9365
|
)),
|
9365
|
-
(
|
9366
|
+
(JSCompiler_object_inline_stack_2363 =
|
9366
9367
|
0 !==
|
9367
|
-
(
|
9368
|
-
(
|
9368
|
+
(JSCompiler_object_inline_stack_2363 &
|
9369
|
+
(JSCompiler_object_inline_digest_2362.suspendedLanes |
|
9369
9370
|
renderLanes))
|
9370
9371
|
? 0
|
9371
|
-
:
|
9372
|
-
0 !==
|
9373
|
-
|
9372
|
+
: JSCompiler_object_inline_stack_2363),
|
9373
|
+
0 !== JSCompiler_object_inline_stack_2363 &&
|
9374
|
+
JSCompiler_object_inline_stack_2363 !== prevState.retryLane)
|
9374
9375
|
)
|
9375
9376
|
throw (
|
9376
|
-
((prevState.retryLane =
|
9377
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2363),
|
9377
9378
|
enqueueConcurrentRenderForLane(
|
9378
9379
|
current,
|
9379
|
-
|
9380
|
+
JSCompiler_object_inline_stack_2363
|
9380
9381
|
),
|
9381
9382
|
scheduleUpdateOnFiber(
|
9382
|
-
|
9383
|
+
JSCompiler_object_inline_digest_2362,
|
9383
9384
|
current,
|
9384
|
-
|
9385
|
+
JSCompiler_object_inline_stack_2363
|
9385
9386
|
),
|
9386
9387
|
SelectiveHydrationException)
|
9387
9388
|
);
|
9388
|
-
|
9389
|
+
JSCompiler_object_inline_message_2361.data ===
|
9389
9390
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
9390
9391
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9391
9392
|
current,
|
@@ -9393,14 +9394,14 @@
|
|
9393
9394
|
renderLanes
|
9394
9395
|
);
|
9395
9396
|
} else
|
9396
|
-
|
9397
|
+
JSCompiler_object_inline_message_2361.data ===
|
9397
9398
|
SUSPENSE_PENDING_START_DATA
|
9398
9399
|
? ((workInProgress.flags |= 192),
|
9399
9400
|
(workInProgress.child = current.child),
|
9400
9401
|
(workInProgress = null))
|
9401
9402
|
: ((current = prevState.treeContext),
|
9402
9403
|
(nextHydratableInstance = getNextHydratable(
|
9403
|
-
|
9404
|
+
JSCompiler_object_inline_message_2361.nextSibling
|
9404
9405
|
)),
|
9405
9406
|
(hydrationParentFiber = workInProgress),
|
9406
9407
|
(isHydrating = !0),
|
@@ -9418,57 +9419,57 @@
|
|
9418
9419
|
(treeContextProvider = workInProgress)),
|
9419
9420
|
(workInProgress = mountSuspensePrimaryChildren(
|
9420
9421
|
workInProgress,
|
9421
|
-
|
9422
|
+
JSCompiler_object_inline_stack_2363.children
|
9422
9423
|
)),
|
9423
9424
|
(workInProgress.flags |= 4096));
|
9424
9425
|
return workInProgress;
|
9425
9426
|
}
|
9426
|
-
if (
|
9427
|
+
if (JSCompiler_object_inline_componentStack_2364)
|
9427
9428
|
return (
|
9428
9429
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9429
|
-
(
|
9430
|
-
|
9431
|
-
(
|
9430
|
+
(JSCompiler_object_inline_componentStack_2364 =
|
9431
|
+
JSCompiler_object_inline_stack_2363.fallback),
|
9432
|
+
(JSCompiler_object_inline_message_2361 = workInProgress.mode),
|
9432
9433
|
(JSCompiler_temp = current.child),
|
9433
9434
|
(instance = JSCompiler_temp.sibling),
|
9434
|
-
(
|
9435
|
+
(JSCompiler_object_inline_stack_2363 = createWorkInProgress(
|
9435
9436
|
JSCompiler_temp,
|
9436
9437
|
{
|
9437
9438
|
mode: "hidden",
|
9438
|
-
children:
|
9439
|
+
children: JSCompiler_object_inline_stack_2363.children
|
9439
9440
|
}
|
9440
9441
|
)),
|
9441
|
-
(
|
9442
|
+
(JSCompiler_object_inline_stack_2363.subtreeFlags =
|
9442
9443
|
JSCompiler_temp.subtreeFlags & 29360128),
|
9443
9444
|
null !== instance
|
9444
|
-
? (
|
9445
|
+
? (JSCompiler_object_inline_componentStack_2364 =
|
9445
9446
|
createWorkInProgress(
|
9446
9447
|
instance,
|
9447
|
-
|
9448
|
+
JSCompiler_object_inline_componentStack_2364
|
9448
9449
|
))
|
9449
|
-
: ((
|
9450
|
+
: ((JSCompiler_object_inline_componentStack_2364 =
|
9450
9451
|
createFiberFromFragment(
|
9451
|
-
|
9452
|
-
|
9452
|
+
JSCompiler_object_inline_componentStack_2364,
|
9453
|
+
JSCompiler_object_inline_message_2361,
|
9453
9454
|
renderLanes,
|
9454
9455
|
null
|
9455
9456
|
)),
|
9456
|
-
(
|
9457
|
-
(
|
9457
|
+
(JSCompiler_object_inline_componentStack_2364.flags |= 2)),
|
9458
|
+
(JSCompiler_object_inline_componentStack_2364.return =
|
9458
9459
|
workInProgress),
|
9459
|
-
(
|
9460
|
-
(
|
9461
|
-
|
9462
|
-
(workInProgress.child =
|
9463
|
-
(
|
9464
|
-
|
9465
|
-
(
|
9466
|
-
(
|
9467
|
-
null ===
|
9468
|
-
? (
|
9460
|
+
(JSCompiler_object_inline_stack_2363.return = workInProgress),
|
9461
|
+
(JSCompiler_object_inline_stack_2363.sibling =
|
9462
|
+
JSCompiler_object_inline_componentStack_2364),
|
9463
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2363),
|
9464
|
+
(JSCompiler_object_inline_stack_2363 =
|
9465
|
+
JSCompiler_object_inline_componentStack_2364),
|
9466
|
+
(JSCompiler_object_inline_componentStack_2364 = workInProgress.child),
|
9467
|
+
(JSCompiler_object_inline_message_2361 = current.child.memoizedState),
|
9468
|
+
null === JSCompiler_object_inline_message_2361
|
9469
|
+
? (JSCompiler_object_inline_message_2361 =
|
9469
9470
|
mountSuspenseOffscreenState(renderLanes))
|
9470
9471
|
: ((JSCompiler_temp =
|
9471
|
-
|
9472
|
+
JSCompiler_object_inline_message_2361.cachePool),
|
9472
9473
|
null !== JSCompiler_temp
|
9473
9474
|
? ((instance = CacheContext._currentValue),
|
9474
9475
|
(JSCompiler_temp =
|
@@ -9476,37 +9477,37 @@
|
|
9476
9477
|
? { parent: instance, pool: instance }
|
9477
9478
|
: JSCompiler_temp))
|
9478
9479
|
: (JSCompiler_temp = getSuspendedCache()),
|
9479
|
-
(
|
9480
|
+
(JSCompiler_object_inline_message_2361 = {
|
9480
9481
|
baseLanes:
|
9481
|
-
|
9482
|
+
JSCompiler_object_inline_message_2361.baseLanes | renderLanes,
|
9482
9483
|
cachePool: JSCompiler_temp
|
9483
9484
|
})),
|
9484
|
-
(
|
9485
|
-
|
9486
|
-
(
|
9485
|
+
(JSCompiler_object_inline_componentStack_2364.memoizedState =
|
9486
|
+
JSCompiler_object_inline_message_2361),
|
9487
|
+
(JSCompiler_object_inline_componentStack_2364.childLanes =
|
9487
9488
|
getRemainingWorkInPrimaryTree(
|
9488
9489
|
current,
|
9489
|
-
|
9490
|
+
JSCompiler_object_inline_digest_2362,
|
9490
9491
|
renderLanes
|
9491
9492
|
)),
|
9492
9493
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9493
|
-
|
9494
|
+
JSCompiler_object_inline_stack_2363
|
9494
9495
|
);
|
9495
9496
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9496
9497
|
renderLanes = current.child;
|
9497
9498
|
current = renderLanes.sibling;
|
9498
9499
|
renderLanes = createWorkInProgress(renderLanes, {
|
9499
9500
|
mode: "visible",
|
9500
|
-
children:
|
9501
|
+
children: JSCompiler_object_inline_stack_2363.children
|
9501
9502
|
});
|
9502
9503
|
renderLanes.return = workInProgress;
|
9503
9504
|
renderLanes.sibling = null;
|
9504
9505
|
null !== current &&
|
9505
|
-
((
|
9506
|
-
null ===
|
9506
|
+
((JSCompiler_object_inline_digest_2362 = workInProgress.deletions),
|
9507
|
+
null === JSCompiler_object_inline_digest_2362
|
9507
9508
|
? ((workInProgress.deletions = [current]),
|
9508
9509
|
(workInProgress.flags |= 16))
|
9509
|
-
:
|
9510
|
+
: JSCompiler_object_inline_digest_2362.push(current));
|
9510
9511
|
workInProgress.child = renderLanes;
|
9511
9512
|
workInProgress.memoizedState = null;
|
9512
9513
|
return renderLanes;
|
@@ -15123,8 +15124,8 @@
|
|
15123
15124
|
suspendedRetryLanes
|
15124
15125
|
) {
|
15125
15126
|
root.cancelPendingCommit = null;
|
15126
|
-
do
|
15127
|
-
while (
|
15127
|
+
do flushPendingEffects();
|
15128
|
+
while (pendingEffectsStatus !== NO_PENDING_EFFECTS);
|
15128
15129
|
ReactStrictModeWarnings.flushLegacyContextWarning();
|
15129
15130
|
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
|
15130
15131
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
@@ -15156,12 +15157,15 @@
|
|
15156
15157
|
root === workInProgressRoot &&
|
15157
15158
|
((workInProgress = workInProgressRoot = null),
|
15158
15159
|
(workInProgressRootRenderLanes = 0));
|
15160
|
+
pendingFinishedWork = finishedWork;
|
15161
|
+
pendingEffectsRoot = root;
|
15162
|
+
pendingEffectsLanes = lanes;
|
15163
|
+
pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;
|
15164
|
+
pendingPassiveTransitions = transitions;
|
15165
|
+
pendingRecoverableErrors = recoverableErrors;
|
15159
15166
|
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15160
15167
|
0 !== (finishedWork.flags & 10256)
|
15161
|
-
? ((
|
15162
|
-
didIncludeRenderPhaseUpdate),
|
15163
|
-
(pendingPassiveTransitions = transitions),
|
15164
|
-
(root.callbackNode = null),
|
15168
|
+
? ((root.callbackNode = null),
|
15165
15169
|
(root.callbackPriority = 0),
|
15166
15170
|
scheduleCallback$1(NormalPriority$1, function () {
|
15167
15171
|
flushPassiveEffects(!0);
|
@@ -15169,266 +15173,289 @@
|
|
15169
15173
|
}))
|
15170
15174
|
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
15171
15175
|
commitStartTime = now();
|
15172
|
-
|
15173
|
-
if (0 !== (finishedWork.subtreeFlags & 13878) ||
|
15174
|
-
|
15176
|
+
lanes = 0 !== (finishedWork.flags & 13878);
|
15177
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) {
|
15178
|
+
lanes = ReactSharedInternals.T;
|
15175
15179
|
ReactSharedInternals.T = null;
|
15176
|
-
|
15180
|
+
recoverableErrors = ReactDOMSharedInternals.p;
|
15177
15181
|
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15178
|
-
|
15182
|
+
transitions = executionContext;
|
15179
15183
|
executionContext |= CommitContext;
|
15180
15184
|
try {
|
15181
15185
|
commitBeforeMutationEffects(root, finishedWork);
|
15182
15186
|
} finally {
|
15183
|
-
(executionContext =
|
15184
|
-
(ReactDOMSharedInternals.p =
|
15185
|
-
(ReactSharedInternals.T =
|
15187
|
+
(executionContext = transitions),
|
15188
|
+
(ReactDOMSharedInternals.p = recoverableErrors),
|
15189
|
+
(ReactSharedInternals.T = lanes);
|
15186
15190
|
}
|
15187
15191
|
}
|
15188
|
-
|
15189
|
-
|
15190
|
-
|
15191
|
-
|
15192
|
-
|
15193
|
-
|
15194
|
-
if (
|
15195
|
-
|
15196
|
-
|
15197
|
-
|
15198
|
-
|
15199
|
-
|
15200
|
-
|
15201
|
-
|
15202
|
-
|
15203
|
-
|
15204
|
-
|
15205
|
-
|
15206
|
-
|
15207
|
-
|
15208
|
-
|
15209
|
-
|
15210
|
-
|
15211
|
-
|
15212
|
-
|
15213
|
-
|
15214
|
-
|
15215
|
-
|
15216
|
-
|
15217
|
-
|
15218
|
-
|
15192
|
+
pendingEffectsStatus = PENDING_MUTATION_PHASE;
|
15193
|
+
flushMutationEffects();
|
15194
|
+
flushLayoutEffects();
|
15195
|
+
}
|
15196
|
+
}
|
15197
|
+
function flushMutationEffects() {
|
15198
|
+
if (pendingEffectsStatus === PENDING_MUTATION_PHASE) {
|
15199
|
+
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
15200
|
+
var root = pendingEffectsRoot,
|
15201
|
+
finishedWork = pendingFinishedWork,
|
15202
|
+
lanes = pendingEffectsLanes,
|
15203
|
+
rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
15204
|
+
if (
|
15205
|
+
0 !== (finishedWork.subtreeFlags & 13878) ||
|
15206
|
+
rootMutationHasEffect
|
15207
|
+
) {
|
15208
|
+
rootMutationHasEffect = ReactSharedInternals.T;
|
15209
|
+
ReactSharedInternals.T = null;
|
15210
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15211
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15212
|
+
var prevExecutionContext = executionContext;
|
15213
|
+
executionContext |= CommitContext;
|
15214
|
+
try {
|
15215
|
+
inProgressLanes = lanes;
|
15216
|
+
inProgressRoot = root;
|
15217
|
+
commitMutationEffectsOnFiber(finishedWork, root);
|
15218
|
+
inProgressRoot = inProgressLanes = null;
|
15219
|
+
lanes = selectionInformation;
|
15220
|
+
var curFocusedElem = getActiveElementDeep(root.containerInfo),
|
15221
|
+
priorFocusedElem = lanes.focusedElem,
|
15222
|
+
priorSelectionRange = lanes.selectionRange;
|
15219
15223
|
if (
|
15220
|
-
|
15221
|
-
|
15224
|
+
curFocusedElem !== priorFocusedElem &&
|
15225
|
+
priorFocusedElem &&
|
15226
|
+
priorFocusedElem.ownerDocument &&
|
15227
|
+
containsNode(
|
15228
|
+
priorFocusedElem.ownerDocument.documentElement,
|
15229
|
+
priorFocusedElem
|
15230
|
+
)
|
15222
15231
|
) {
|
15223
|
-
|
15224
|
-
|
15225
|
-
|
15226
|
-
|
15227
|
-
|
15228
|
-
|
15229
|
-
|
15230
|
-
|
15231
|
-
)
|
15232
|
-
|
15233
|
-
|
15234
|
-
|
15235
|
-
|
15236
|
-
|
15237
|
-
|
15238
|
-
|
15239
|
-
|
15240
|
-
|
15241
|
-
|
15242
|
-
|
15243
|
-
|
15244
|
-
|
15245
|
-
|
15246
|
-
|
15247
|
-
|
15248
|
-
|
15249
|
-
|
15250
|
-
|
15251
|
-
|
15252
|
-
|
15253
|
-
start$jscomp$0
|
15254
|
-
|
15255
|
-
|
15256
|
-
|
15257
|
-
|
15258
|
-
|
15259
|
-
|
15260
|
-
|
15261
|
-
|
15262
|
-
|
15263
|
-
|
15264
|
-
|
15265
|
-
|
15266
|
-
|
15267
|
-
|
15268
|
-
|
15269
|
-
|
15270
|
-
|
15271
|
-
|
15272
|
-
|
15273
|
-
|
15274
|
-
|
15275
|
-
|
15232
|
+
if (
|
15233
|
+
null !== priorSelectionRange &&
|
15234
|
+
hasSelectionCapabilities(priorFocusedElem)
|
15235
|
+
) {
|
15236
|
+
var start = priorSelectionRange.start,
|
15237
|
+
end = priorSelectionRange.end;
|
15238
|
+
void 0 === end && (end = start);
|
15239
|
+
if ("selectionStart" in priorFocusedElem)
|
15240
|
+
(priorFocusedElem.selectionStart = start),
|
15241
|
+
(priorFocusedElem.selectionEnd = Math.min(
|
15242
|
+
end,
|
15243
|
+
priorFocusedElem.value.length
|
15244
|
+
));
|
15245
|
+
else {
|
15246
|
+
var doc = priorFocusedElem.ownerDocument || document,
|
15247
|
+
win = (doc && doc.defaultView) || window;
|
15248
|
+
if (win.getSelection) {
|
15249
|
+
var selection = win.getSelection(),
|
15250
|
+
length = priorFocusedElem.textContent.length,
|
15251
|
+
start$jscomp$0 = Math.min(
|
15252
|
+
priorSelectionRange.start,
|
15253
|
+
length
|
15254
|
+
),
|
15255
|
+
end$jscomp$0 =
|
15256
|
+
void 0 === priorSelectionRange.end
|
15257
|
+
? start$jscomp$0
|
15258
|
+
: Math.min(priorSelectionRange.end, length);
|
15259
|
+
!selection.extend &&
|
15260
|
+
start$jscomp$0 > end$jscomp$0 &&
|
15261
|
+
((curFocusedElem = end$jscomp$0),
|
15262
|
+
(end$jscomp$0 = start$jscomp$0),
|
15263
|
+
(start$jscomp$0 = curFocusedElem));
|
15264
|
+
var startMarker = getNodeForCharacterOffset(
|
15265
|
+
priorFocusedElem,
|
15266
|
+
start$jscomp$0
|
15267
|
+
),
|
15268
|
+
endMarker = getNodeForCharacterOffset(
|
15269
|
+
priorFocusedElem,
|
15270
|
+
end$jscomp$0
|
15271
|
+
);
|
15272
|
+
if (
|
15273
|
+
startMarker &&
|
15274
|
+
endMarker &&
|
15275
|
+
(1 !== selection.rangeCount ||
|
15276
|
+
selection.anchorNode !== startMarker.node ||
|
15277
|
+
selection.anchorOffset !== startMarker.offset ||
|
15278
|
+
selection.focusNode !== endMarker.node ||
|
15279
|
+
selection.focusOffset !== endMarker.offset)
|
15280
|
+
) {
|
15281
|
+
var range = doc.createRange();
|
15282
|
+
range.setStart(startMarker.node, startMarker.offset);
|
15283
|
+
selection.removeAllRanges();
|
15284
|
+
start$jscomp$0 > end$jscomp$0
|
15285
|
+
? (selection.addRange(range),
|
15286
|
+
selection.extend(endMarker.node, endMarker.offset))
|
15287
|
+
: (range.setEnd(endMarker.node, endMarker.offset),
|
15288
|
+
selection.addRange(range));
|
15289
|
+
}
|
15276
15290
|
}
|
15277
15291
|
}
|
15278
15292
|
}
|
15279
|
-
|
15280
|
-
|
15281
|
-
|
15282
|
-
|
15283
|
-
(selection = selection.parentNode);
|
15293
|
+
doc = [];
|
15294
|
+
for (
|
15295
|
+
selection = priorFocusedElem;
|
15296
|
+
(selection = selection.parentNode);
|
15284
15297
|
|
15285
|
-
|
15286
|
-
|
15287
|
-
|
15288
|
-
|
15289
|
-
|
15290
|
-
|
15291
|
-
|
15292
|
-
|
15293
|
-
|
15294
|
-
|
15295
|
-
|
15296
|
-
|
15297
|
-
|
15298
|
-
|
15299
|
-
|
15300
|
-
|
15301
|
-
|
15298
|
+
)
|
15299
|
+
1 === selection.nodeType &&
|
15300
|
+
doc.push({
|
15301
|
+
element: selection,
|
15302
|
+
left: selection.scrollLeft,
|
15303
|
+
top: selection.scrollTop
|
15304
|
+
});
|
15305
|
+
"function" === typeof priorFocusedElem.focus &&
|
15306
|
+
priorFocusedElem.focus();
|
15307
|
+
for (
|
15308
|
+
priorFocusedElem = 0;
|
15309
|
+
priorFocusedElem < doc.length;
|
15310
|
+
priorFocusedElem++
|
15311
|
+
) {
|
15312
|
+
var info = doc[priorFocusedElem];
|
15313
|
+
info.element.scrollLeft = info.left;
|
15314
|
+
info.element.scrollTop = info.top;
|
15315
|
+
}
|
15302
15316
|
}
|
15317
|
+
_enabled = !!eventsEnabled;
|
15318
|
+
selectionInformation = eventsEnabled = null;
|
15319
|
+
} finally {
|
15320
|
+
(executionContext = prevExecutionContext),
|
15321
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15322
|
+
(ReactSharedInternals.T = rootMutationHasEffect);
|
15303
15323
|
}
|
15304
|
-
_enabled = !!eventsEnabled;
|
15305
|
-
selectionInformation = eventsEnabled = null;
|
15306
|
-
} finally {
|
15307
|
-
(executionContext = prevExecutionContext),
|
15308
|
-
(ReactDOMSharedInternals.p = previousPriority),
|
15309
|
-
(ReactSharedInternals.T = rootMutationHasEffect);
|
15310
15324
|
}
|
15311
|
-
|
15312
|
-
|
15313
|
-
|
15314
|
-
|
15315
|
-
|
15316
|
-
if (
|
15317
|
-
|
15318
|
-
|
15319
|
-
|
15320
|
-
|
15321
|
-
|
15322
|
-
|
15323
|
-
|
15324
|
-
|
15325
|
-
|
15326
|
-
|
15327
|
-
|
15328
|
-
|
15329
|
-
|
15330
|
-
|
15331
|
-
root,
|
15332
|
-
finishedWork.alternate,
|
15333
|
-
finishedWork
|
15334
|
-
),
|
15335
|
-
(inProgressRoot = inProgressLanes = null),
|
15325
|
+
root.current = finishedWork;
|
15326
|
+
pendingEffectsStatus = PENDING_LAYOUT_PHASE;
|
15327
|
+
}
|
15328
|
+
}
|
15329
|
+
function flushLayoutEffects() {
|
15330
|
+
if (pendingEffectsStatus === PENDING_LAYOUT_PHASE) {
|
15331
|
+
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
15332
|
+
var root = pendingEffectsRoot,
|
15333
|
+
finishedWork = pendingFinishedWork,
|
15334
|
+
lanes = pendingEffectsLanes,
|
15335
|
+
recoverableErrors = pendingRecoverableErrors,
|
15336
|
+
rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
|
15337
|
+
if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
|
15338
|
+
rootHasLayoutEffect = ReactSharedInternals.T;
|
15339
|
+
ReactSharedInternals.T = null;
|
15340
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15341
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15342
|
+
var prevExecutionContext = executionContext;
|
15343
|
+
executionContext |= CommitContext;
|
15344
|
+
try {
|
15336
15345
|
null !== injectedProfilingHooks &&
|
15337
15346
|
"function" ===
|
15338
|
-
typeof injectedProfilingHooks.
|
15339
|
-
injectedProfilingHooks.
|
15340
|
-
|
15341
|
-
|
15342
|
-
|
15343
|
-
|
15344
|
-
|
15345
|
-
|
15346
|
-
|
15347
|
-
|
15348
|
-
|
15349
|
-
|
15350
|
-
|
15351
|
-
|
15352
|
-
|
15353
|
-
|
15354
|
-
|
15355
|
-
|
15356
|
-
0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
|
15357
|
-
rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
|
15358
|
-
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
15359
|
-
finishedWork = finishedWork.stateNode;
|
15360
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
15361
|
-
try {
|
15362
|
-
var didError = 128 === (finishedWork.current.flags & 128);
|
15363
|
-
switch (rootHasLayoutEffect) {
|
15364
|
-
case DiscreteEventPriority:
|
15365
|
-
var schedulerPriority = ImmediatePriority;
|
15366
|
-
break;
|
15367
|
-
case ContinuousEventPriority:
|
15368
|
-
schedulerPriority = UserBlockingPriority;
|
15369
|
-
break;
|
15370
|
-
case DefaultEventPriority:
|
15371
|
-
schedulerPriority = NormalPriority$1;
|
15372
|
-
break;
|
15373
|
-
case IdleEventPriority:
|
15374
|
-
schedulerPriority = IdlePriority;
|
15375
|
-
break;
|
15376
|
-
default:
|
15377
|
-
schedulerPriority = NormalPriority$1;
|
15347
|
+
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15348
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes),
|
15349
|
+
(inProgressLanes = lanes),
|
15350
|
+
(inProgressRoot = root),
|
15351
|
+
commitLayoutEffectOnFiber(
|
15352
|
+
root,
|
15353
|
+
finishedWork.alternate,
|
15354
|
+
finishedWork
|
15355
|
+
),
|
15356
|
+
(inProgressRoot = inProgressLanes = null),
|
15357
|
+
null !== injectedProfilingHooks &&
|
15358
|
+
"function" ===
|
15359
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15360
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
15361
|
+
} finally {
|
15362
|
+
(executionContext = prevExecutionContext),
|
15363
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15364
|
+
(ReactSharedInternals.T = rootHasLayoutEffect);
|
15378
15365
|
}
|
15379
|
-
injectedHook.onCommitFiberRoot(
|
15380
|
-
rendererID,
|
15381
|
-
finishedWork,
|
15382
|
-
schedulerPriority,
|
15383
|
-
didError
|
15384
|
-
);
|
15385
|
-
} catch (err) {
|
15386
|
-
hasLoggedError ||
|
15387
|
-
((hasLoggedError = !0),
|
15388
|
-
console.error(
|
15389
|
-
"React instrumentation encountered an error: %s",
|
15390
|
-
err
|
15391
|
-
));
|
15392
15366
|
}
|
15393
|
-
|
15394
|
-
|
15395
|
-
|
15396
|
-
|
15397
|
-
|
15398
|
-
|
15399
|
-
|
15400
|
-
|
15401
|
-
|
15402
|
-
|
15403
|
-
|
15404
|
-
|
15405
|
-
|
15406
|
-
|
15407
|
-
|
15408
|
-
|
15409
|
-
|
15410
|
-
|
15411
|
-
|
15412
|
-
|
15413
|
-
|
15367
|
+
requestPaint();
|
15368
|
+
(rootHasLayoutEffect =
|
15369
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15370
|
+
0 !== (finishedWork.flags & 10256))
|
15371
|
+
? (pendingEffectsStatus = PENDING_PASSIVE_PHASE)
|
15372
|
+
: ((pendingEffectsStatus = NO_PENDING_EFFECTS),
|
15373
|
+
(pendingEffectsRoot = null),
|
15374
|
+
releaseRootPooledCache(root, root.pendingLanes),
|
15375
|
+
(nestedPassiveUpdateCount = 0),
|
15376
|
+
(rootWithPassiveNestedUpdates = null));
|
15377
|
+
previousPriority = root.pendingLanes;
|
15378
|
+
0 === previousPriority &&
|
15379
|
+
(legacyErrorBoundariesThatAlreadyFailed = null);
|
15380
|
+
rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
|
15381
|
+
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
15382
|
+
finishedWork = finishedWork.stateNode;
|
15383
|
+
if (
|
15384
|
+
injectedHook &&
|
15385
|
+
"function" === typeof injectedHook.onCommitFiberRoot
|
15386
|
+
)
|
15387
|
+
try {
|
15388
|
+
var didError = 128 === (finishedWork.current.flags & 128);
|
15389
|
+
switch (rootHasLayoutEffect) {
|
15390
|
+
case DiscreteEventPriority:
|
15391
|
+
var schedulerPriority = ImmediatePriority;
|
15392
|
+
break;
|
15393
|
+
case ContinuousEventPriority:
|
15394
|
+
schedulerPriority = UserBlockingPriority;
|
15395
|
+
break;
|
15396
|
+
case DefaultEventPriority:
|
15397
|
+
schedulerPriority = NormalPriority$1;
|
15398
|
+
break;
|
15399
|
+
case IdleEventPriority:
|
15400
|
+
schedulerPriority = IdlePriority;
|
15401
|
+
break;
|
15402
|
+
default:
|
15403
|
+
schedulerPriority = NormalPriority$1;
|
15404
|
+
}
|
15405
|
+
injectedHook.onCommitFiberRoot(
|
15406
|
+
rendererID,
|
15407
|
+
finishedWork,
|
15408
|
+
schedulerPriority,
|
15409
|
+
didError
|
15414
15410
|
);
|
15411
|
+
} catch (err) {
|
15412
|
+
hasLoggedError ||
|
15413
|
+
((hasLoggedError = !0),
|
15414
|
+
console.error(
|
15415
|
+
"React instrumentation encountered an error: %s",
|
15416
|
+
err
|
15417
|
+
));
|
15418
|
+
}
|
15419
|
+
isDevToolsPresent && root.memoizedUpdaters.clear();
|
15420
|
+
onCommitRoot();
|
15421
|
+
if (null !== recoverableErrors) {
|
15422
|
+
didError = ReactSharedInternals.T;
|
15423
|
+
schedulerPriority = ReactDOMSharedInternals.p;
|
15424
|
+
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15425
|
+
ReactSharedInternals.T = null;
|
15426
|
+
try {
|
15427
|
+
var onRecoverableError = root.onRecoverableError;
|
15428
|
+
for (
|
15429
|
+
finishedWork = 0;
|
15430
|
+
finishedWork < recoverableErrors.length;
|
15431
|
+
finishedWork++
|
15432
|
+
) {
|
15433
|
+
var recoverableError = recoverableErrors[finishedWork],
|
15434
|
+
errorInfo = makeErrorInfo(recoverableError.stack);
|
15435
|
+
runWithFiberInDEV(
|
15436
|
+
recoverableError.source,
|
15437
|
+
onRecoverableError,
|
15438
|
+
recoverableError.value,
|
15439
|
+
errorInfo
|
15440
|
+
);
|
15441
|
+
}
|
15442
|
+
} finally {
|
15443
|
+
(ReactSharedInternals.T = didError),
|
15444
|
+
(ReactDOMSharedInternals.p = schedulerPriority);
|
15415
15445
|
}
|
15416
|
-
} finally {
|
15417
|
-
(ReactSharedInternals.T = didError),
|
15418
|
-
(ReactDOMSharedInternals.p = schedulerPriority);
|
15419
15446
|
}
|
15447
|
+
0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
|
15448
|
+
ensureRootIsScheduled(root);
|
15449
|
+
previousPriority = root.pendingLanes;
|
15450
|
+
0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
|
15451
|
+
? ((nestedUpdateScheduled = !0),
|
15452
|
+
root === rootWithNestedUpdates
|
15453
|
+
? nestedUpdateCount++
|
15454
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
15455
|
+
: (nestedUpdateCount = 0);
|
15456
|
+
flushSyncWorkAcrossRoots_impl(0, !1);
|
15457
|
+
markCommitStopped();
|
15420
15458
|
}
|
15421
|
-
0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
|
15422
|
-
ensureRootIsScheduled(root);
|
15423
|
-
previousPriority = root.pendingLanes;
|
15424
|
-
0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
|
15425
|
-
? ((nestedUpdateScheduled = !0),
|
15426
|
-
root === rootWithNestedUpdates
|
15427
|
-
? nestedUpdateCount++
|
15428
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
15429
|
-
: (nestedUpdateCount = 0);
|
15430
|
-
flushSyncWorkAcrossRoots_impl(0, !1);
|
15431
|
-
markCommitStopped();
|
15432
15459
|
}
|
15433
15460
|
function makeErrorInfo(componentStack) {
|
15434
15461
|
componentStack = { componentStack: componentStack };
|
@@ -15447,94 +15474,87 @@
|
|
15447
15474
|
null != remainingLanes &&
|
15448
15475
|
((root.pooledCache = null), releaseCache(remainingLanes)));
|
15449
15476
|
}
|
15477
|
+
function flushPendingEffects(wasDelayedCommit) {
|
15478
|
+
flushMutationEffects();
|
15479
|
+
flushLayoutEffects();
|
15480
|
+
return flushPassiveEffects(wasDelayedCommit);
|
15481
|
+
}
|
15450
15482
|
function flushPassiveEffects() {
|
15451
|
-
if (
|
15452
|
-
|
15453
|
-
|
15454
|
-
|
15455
|
-
|
15456
|
-
|
15457
|
-
|
15458
|
-
|
15459
|
-
|
15460
|
-
|
15461
|
-
|
15462
|
-
|
15463
|
-
|
15464
|
-
|
15465
|
-
|
15466
|
-
|
15467
|
-
|
15468
|
-
|
15469
|
-
|
15470
|
-
|
15471
|
-
|
15472
|
-
|
15473
|
-
|
15474
|
-
|
15475
|
-
|
15476
|
-
|
15477
|
-
|
15478
|
-
|
15479
|
-
|
15480
|
-
|
15481
|
-
|
15482
|
-
|
15483
|
-
|
15484
|
-
|
15485
|
-
|
15486
|
-
|
15487
|
-
|
15488
|
-
|
15489
|
-
|
15490
|
-
|
15491
|
-
|
15492
|
-
|
15493
|
-
|
15494
|
-
|
15495
|
-
|
15496
|
-
|
15497
|
-
|
15498
|
-
|
15499
|
-
|
15500
|
-
|
15501
|
-
|
15502
|
-
|
15503
|
-
|
15504
|
-
|
15505
|
-
|
15506
|
-
|
15507
|
-
|
15508
|
-
|
15509
|
-
|
15510
|
-
|
15511
|
-
|
15512
|
-
|
15513
|
-
|
15514
|
-
|
15515
|
-
|
15516
|
-
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
|
15517
|
-
} catch (err) {
|
15518
|
-
hasLoggedError ||
|
15519
|
-
((hasLoggedError = !0),
|
15520
|
-
console.error(
|
15521
|
-
"React instrumentation encountered an error: %s",
|
15522
|
-
err
|
15523
|
-
));
|
15524
|
-
}
|
15525
|
-
var stateNode = root$jscomp$0.current.stateNode;
|
15526
|
-
stateNode.effectDuration = 0;
|
15527
|
-
stateNode.passiveEffectDuration = 0;
|
15528
|
-
JSCompiler_inline_result = !0;
|
15483
|
+
if (pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return !1;
|
15484
|
+
var root = pendingEffectsRoot,
|
15485
|
+
remainingLanes = pendingEffectsRemainingLanes;
|
15486
|
+
pendingEffectsRemainingLanes = 0;
|
15487
|
+
var renderPriority = lanesToEventPriority(pendingEffectsLanes),
|
15488
|
+
priority =
|
15489
|
+
0 === DefaultEventPriority || DefaultEventPriority > renderPriority
|
15490
|
+
? DefaultEventPriority
|
15491
|
+
: renderPriority;
|
15492
|
+
renderPriority = ReactSharedInternals.T;
|
15493
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
15494
|
+
try {
|
15495
|
+
ReactDOMSharedInternals.p = priority;
|
15496
|
+
ReactSharedInternals.T = null;
|
15497
|
+
priority = pendingPassiveTransitions;
|
15498
|
+
pendingPassiveTransitions = null;
|
15499
|
+
var root$jscomp$0 = pendingEffectsRoot,
|
15500
|
+
lanes = pendingEffectsLanes;
|
15501
|
+
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
15502
|
+
pendingEffectsRoot = null;
|
15503
|
+
pendingEffectsLanes = 0;
|
15504
|
+
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
15505
|
+
throw Error("Cannot flush passive effects while already rendering.");
|
15506
|
+
isFlushingPassiveEffects = !0;
|
15507
|
+
didScheduleUpdateDuringPassiveEffects = !1;
|
15508
|
+
null !== injectedProfilingHooks &&
|
15509
|
+
"function" ===
|
15510
|
+
typeof injectedProfilingHooks.markPassiveEffectsStarted &&
|
15511
|
+
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
15512
|
+
var prevExecutionContext = executionContext;
|
15513
|
+
executionContext |= CommitContext;
|
15514
|
+
commitPassiveUnmountOnFiber(root$jscomp$0.current);
|
15515
|
+
commitPassiveMountOnFiber(
|
15516
|
+
root$jscomp$0,
|
15517
|
+
root$jscomp$0.current,
|
15518
|
+
lanes,
|
15519
|
+
priority
|
15520
|
+
);
|
15521
|
+
null !== injectedProfilingHooks &&
|
15522
|
+
"function" ===
|
15523
|
+
typeof injectedProfilingHooks.markPassiveEffectsStopped &&
|
15524
|
+
injectedProfilingHooks.markPassiveEffectsStopped();
|
15525
|
+
commitDoubleInvokeEffectsInDEV(root$jscomp$0);
|
15526
|
+
executionContext = prevExecutionContext;
|
15527
|
+
flushSyncWorkAcrossRoots_impl(0, !1);
|
15528
|
+
didScheduleUpdateDuringPassiveEffects
|
15529
|
+
? root$jscomp$0 === rootWithPassiveNestedUpdates
|
15530
|
+
? nestedPassiveUpdateCount++
|
15531
|
+
: ((nestedPassiveUpdateCount = 0),
|
15532
|
+
(rootWithPassiveNestedUpdates = root$jscomp$0))
|
15533
|
+
: (nestedPassiveUpdateCount = 0);
|
15534
|
+
didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = !1;
|
15535
|
+
if (
|
15536
|
+
injectedHook &&
|
15537
|
+
"function" === typeof injectedHook.onPostCommitFiberRoot
|
15538
|
+
)
|
15539
|
+
try {
|
15540
|
+
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
|
15541
|
+
} catch (err) {
|
15542
|
+
hasLoggedError ||
|
15543
|
+
((hasLoggedError = !0),
|
15544
|
+
console.error(
|
15545
|
+
"React instrumentation encountered an error: %s",
|
15546
|
+
err
|
15547
|
+
));
|
15529
15548
|
}
|
15530
|
-
|
15531
|
-
|
15532
|
-
|
15533
|
-
|
15534
|
-
|
15535
|
-
|
15549
|
+
var stateNode = root$jscomp$0.current.stateNode;
|
15550
|
+
stateNode.effectDuration = 0;
|
15551
|
+
stateNode.passiveEffectDuration = 0;
|
15552
|
+
return !0;
|
15553
|
+
} finally {
|
15554
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
15555
|
+
(ReactSharedInternals.T = renderPriority),
|
15556
|
+
releaseRootPooledCache(root, remainingLanes);
|
15536
15557
|
}
|
15537
|
-
return !1;
|
15538
15558
|
}
|
15539
15559
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
15540
15560
|
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
@@ -15953,8 +15973,13 @@
|
|
15953
15973
|
}
|
15954
15974
|
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
15955
15975
|
nestedUpdateScheduled = currentUpdateIsNested = !1;
|
15976
|
+
if (
|
15977
|
+
pendingEffectsStatus !== NO_PENDING_EFFECTS &&
|
15978
|
+
pendingEffectsStatus !== PENDING_PASSIVE_PHASE
|
15979
|
+
)
|
15980
|
+
return (root.callbackNode = null), (root.callbackPriority = 0), null;
|
15956
15981
|
var originalCallbackNode = root.callbackNode;
|
15957
|
-
if (
|
15982
|
+
if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode)
|
15958
15983
|
return null;
|
15959
15984
|
var workInProgressRootRenderLanes$jscomp$0 =
|
15960
15985
|
workInProgressRootRenderLanes;
|
@@ -15978,7 +16003,7 @@
|
|
15978
16003
|
: null;
|
15979
16004
|
}
|
15980
16005
|
function performSyncWorkOnRoot(root, lanes) {
|
15981
|
-
if (
|
16006
|
+
if (flushPendingEffects()) return null;
|
15982
16007
|
currentUpdateIsNested = nestedUpdateScheduled;
|
15983
16008
|
nestedUpdateScheduled = !1;
|
15984
16009
|
performWorkOnRoot(root, lanes, !0);
|
@@ -20262,23 +20287,6 @@
|
|
20262
20287
|
parentComponent = emptyContextObject;
|
20263
20288
|
return parentComponent;
|
20264
20289
|
}
|
20265
|
-
function updateContainerSync(
|
20266
|
-
element,
|
20267
|
-
container,
|
20268
|
-
parentComponent,
|
20269
|
-
callback
|
20270
|
-
) {
|
20271
|
-
0 === container.tag && flushPassiveEffects();
|
20272
|
-
updateContainerImpl(
|
20273
|
-
container.current,
|
20274
|
-
2,
|
20275
|
-
element,
|
20276
|
-
container,
|
20277
|
-
parentComponent,
|
20278
|
-
callback
|
20279
|
-
);
|
20280
|
-
return 2;
|
20281
|
-
}
|
20282
20290
|
function updateContainerImpl(
|
20283
20291
|
rootFiber,
|
20284
20292
|
lane,
|
@@ -23976,10 +23984,20 @@
|
|
23976
23984
|
RENDER_TIMEOUT_MS = 500,
|
23977
23985
|
workInProgressTransitions = null,
|
23978
23986
|
legacyErrorBoundariesThatAlreadyFailed = null,
|
23979
|
-
|
23980
|
-
|
23981
|
-
|
23987
|
+
IMMEDIATE_COMMIT = 0,
|
23988
|
+
SUSPENDED_COMMIT = 1,
|
23989
|
+
THROTTLED_COMMIT = 2,
|
23990
|
+
NO_PENDING_EFFECTS = 0,
|
23991
|
+
PENDING_MUTATION_PHASE = 1,
|
23992
|
+
PENDING_LAYOUT_PHASE = 2,
|
23993
|
+
PENDING_PASSIVE_PHASE = 3,
|
23994
|
+
pendingEffectsStatus = 0,
|
23995
|
+
pendingEffectsRoot = null,
|
23996
|
+
pendingFinishedWork = null,
|
23997
|
+
pendingEffectsLanes = 0,
|
23998
|
+
pendingEffectsRemainingLanes = 0,
|
23982
23999
|
pendingPassiveTransitions = null,
|
24000
|
+
pendingRecoverableErrors = null,
|
23983
24001
|
NESTED_UPDATE_LIMIT = 50,
|
23984
24002
|
nestedUpdateCount = 0,
|
23985
24003
|
rootWithNestedUpdates = null,
|
@@ -23989,9 +24007,6 @@
|
|
23989
24007
|
nestedPassiveUpdateCount = 0,
|
23990
24008
|
rootWithPassiveNestedUpdates = null,
|
23991
24009
|
isRunningInsertionEffect = !1,
|
23992
|
-
IMMEDIATE_COMMIT = 0,
|
23993
|
-
SUSPENDED_COMMIT = 1,
|
23994
|
-
THROTTLED_COMMIT = 2,
|
23995
24010
|
didWarnStateUpdateForNotYetMountedComponent = null,
|
23996
24011
|
didWarnAboutUpdateInRender = !1;
|
23997
24012
|
var didWarnAboutUpdateInRenderForAnotherComponent = new Set();
|
@@ -24503,7 +24518,7 @@
|
|
24503
24518
|
console.error(
|
24504
24519
|
"Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."
|
24505
24520
|
);
|
24506
|
-
|
24521
|
+
updateContainerImpl(args.current, 2, null, args, null, null);
|
24507
24522
|
flushSyncWork$1();
|
24508
24523
|
container[internalContainerInstanceKey] = null;
|
24509
24524
|
}
|
@@ -24527,11 +24542,11 @@
|
|
24527
24542
|
};
|
24528
24543
|
(function () {
|
24529
24544
|
var isomorphicReactPackageVersion = React.version;
|
24530
|
-
if ("19.1.0-canary-
|
24545
|
+
if ("19.1.0-canary-42687267-20250108" !== isomorphicReactPackageVersion)
|
24531
24546
|
throw Error(
|
24532
24547
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24533
24548
|
(isomorphicReactPackageVersion +
|
24534
|
-
"\n - react-dom: 19.1.0-canary-
|
24549
|
+
"\n - react-dom: 19.1.0-canary-42687267-20250108\nLearn more: https://react.dev/warnings/version-mismatch")
|
24535
24550
|
);
|
24536
24551
|
})();
|
24537
24552
|
("function" === typeof Map &&
|
@@ -24568,10 +24583,10 @@
|
|
24568
24583
|
!(function () {
|
24569
24584
|
var internals = {
|
24570
24585
|
bundleType: 1,
|
24571
|
-
version: "19.1.0-canary-
|
24586
|
+
version: "19.1.0-canary-42687267-20250108",
|
24572
24587
|
rendererPackageName: "react-dom",
|
24573
24588
|
currentDispatcherRef: ReactSharedInternals,
|
24574
|
-
reconcilerVersion: "19.1.0-canary-
|
24589
|
+
reconcilerVersion: "19.1.0-canary-42687267-20250108"
|
24575
24590
|
};
|
24576
24591
|
internals.overrideHookState = overrideHookState;
|
24577
24592
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -24717,7 +24732,7 @@
|
|
24717
24732
|
listenToAllSupportedEvents(container);
|
24718
24733
|
return new ReactDOMHydrationRoot(initialChildren);
|
24719
24734
|
};
|
24720
|
-
exports.version = "19.1.0-canary-
|
24735
|
+
exports.version = "19.1.0-canary-42687267-20250108";
|
24721
24736
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
24722
24737
|
"function" ===
|
24723
24738
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|