react-dom 19.1.0-canary-056073de-20250109 → 19.1.0-canary-cabd8a0e-20250113
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 +829 -820
- package/cjs/react-dom-client.production.js +364 -357
- package/cjs/react-dom-profiling.development.js +829 -820
- package/cjs/react-dom-profiling.profiling.js +364 -357
- 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
|
@@ -3643,6 +3643,24 @@
|
|
|
3643
3643
|
topLevelEventsToReactNames.set(domEventName, reactName);
|
|
3644
3644
|
registerTwoPhaseEvent(reactName, [domEventName]);
|
|
3645
3645
|
}
|
|
3646
|
+
function createCapturedValueAtFiber(value, source) {
|
|
3647
|
+
if ("object" === typeof value && null !== value) {
|
|
3648
|
+
var existing = CapturedStacks.get(value);
|
|
3649
|
+
if (void 0 !== existing) return existing;
|
|
3650
|
+
source = {
|
|
3651
|
+
value: value,
|
|
3652
|
+
source: source,
|
|
3653
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
3654
|
+
};
|
|
3655
|
+
CapturedStacks.set(value, source);
|
|
3656
|
+
return source;
|
|
3657
|
+
}
|
|
3658
|
+
return {
|
|
3659
|
+
value: value,
|
|
3660
|
+
source: source,
|
|
3661
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
3662
|
+
};
|
|
3663
|
+
}
|
|
3646
3664
|
function finishQueueingConcurrentUpdates() {
|
|
3647
3665
|
for (
|
|
3648
3666
|
var endIndex = concurrentQueuesIndex,
|
|
@@ -4502,23 +4520,128 @@
|
|
|
4502
4520
|
cache.controller.abort();
|
|
4503
4521
|
});
|
|
4504
4522
|
}
|
|
4505
|
-
function
|
|
4506
|
-
if (
|
|
4507
|
-
var
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
CapturedStacks.set(value, source);
|
|
4515
|
-
return source;
|
|
4523
|
+
function warnOnInvalidCallback(callback) {
|
|
4524
|
+
if (null !== callback && "function" !== typeof callback) {
|
|
4525
|
+
var key = String(callback);
|
|
4526
|
+
didWarnOnInvalidCallback.has(key) ||
|
|
4527
|
+
(didWarnOnInvalidCallback.add(key),
|
|
4528
|
+
console.error(
|
|
4529
|
+
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
|
4530
|
+
callback
|
|
4531
|
+
));
|
|
4516
4532
|
}
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4533
|
+
}
|
|
4534
|
+
function applyDerivedStateFromProps(
|
|
4535
|
+
workInProgress,
|
|
4536
|
+
ctor,
|
|
4537
|
+
getDerivedStateFromProps,
|
|
4538
|
+
nextProps
|
|
4539
|
+
) {
|
|
4540
|
+
var prevState = workInProgress.memoizedState,
|
|
4541
|
+
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4542
|
+
if (workInProgress.mode & StrictLegacyMode) {
|
|
4543
|
+
setIsStrictModeForDevtools(!0);
|
|
4544
|
+
try {
|
|
4545
|
+
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4546
|
+
} finally {
|
|
4547
|
+
setIsStrictModeForDevtools(!1);
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4550
|
+
void 0 === partialState &&
|
|
4551
|
+
((ctor = getComponentNameFromType(ctor) || "Component"),
|
|
4552
|
+
didWarnAboutUndefinedDerivedState.has(ctor) ||
|
|
4553
|
+
(didWarnAboutUndefinedDerivedState.add(ctor),
|
|
4554
|
+
console.error(
|
|
4555
|
+
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
|
4556
|
+
ctor
|
|
4557
|
+
)));
|
|
4558
|
+
prevState =
|
|
4559
|
+
null === partialState || void 0 === partialState
|
|
4560
|
+
? prevState
|
|
4561
|
+
: assign({}, prevState, partialState);
|
|
4562
|
+
workInProgress.memoizedState = prevState;
|
|
4563
|
+
0 === workInProgress.lanes &&
|
|
4564
|
+
(workInProgress.updateQueue.baseState = prevState);
|
|
4565
|
+
}
|
|
4566
|
+
function checkShouldComponentUpdate(
|
|
4567
|
+
workInProgress,
|
|
4568
|
+
ctor,
|
|
4569
|
+
oldProps,
|
|
4570
|
+
newProps,
|
|
4571
|
+
oldState,
|
|
4572
|
+
newState,
|
|
4573
|
+
nextContext
|
|
4574
|
+
) {
|
|
4575
|
+
var instance = workInProgress.stateNode;
|
|
4576
|
+
if ("function" === typeof instance.shouldComponentUpdate) {
|
|
4577
|
+
oldProps = instance.shouldComponentUpdate(
|
|
4578
|
+
newProps,
|
|
4579
|
+
newState,
|
|
4580
|
+
nextContext
|
|
4581
|
+
);
|
|
4582
|
+
if (workInProgress.mode & StrictLegacyMode) {
|
|
4583
|
+
setIsStrictModeForDevtools(!0);
|
|
4584
|
+
try {
|
|
4585
|
+
oldProps = instance.shouldComponentUpdate(
|
|
4586
|
+
newProps,
|
|
4587
|
+
newState,
|
|
4588
|
+
nextContext
|
|
4589
|
+
);
|
|
4590
|
+
} finally {
|
|
4591
|
+
setIsStrictModeForDevtools(!1);
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
void 0 === oldProps &&
|
|
4595
|
+
console.error(
|
|
4596
|
+
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
|
4597
|
+
getComponentNameFromType(ctor) || "Component"
|
|
4598
|
+
);
|
|
4599
|
+
return oldProps;
|
|
4600
|
+
}
|
|
4601
|
+
return ctor.prototype && ctor.prototype.isPureReactComponent
|
|
4602
|
+
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
|
|
4603
|
+
: !0;
|
|
4604
|
+
}
|
|
4605
|
+
function callComponentWillReceiveProps(
|
|
4606
|
+
workInProgress,
|
|
4607
|
+
instance,
|
|
4608
|
+
newProps,
|
|
4609
|
+
nextContext
|
|
4610
|
+
) {
|
|
4611
|
+
var oldState = instance.state;
|
|
4612
|
+
"function" === typeof instance.componentWillReceiveProps &&
|
|
4613
|
+
instance.componentWillReceiveProps(newProps, nextContext);
|
|
4614
|
+
"function" === typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
4615
|
+
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
|
4616
|
+
instance.state !== oldState &&
|
|
4617
|
+
((workInProgress =
|
|
4618
|
+
getComponentNameFromFiber(workInProgress) || "Component"),
|
|
4619
|
+
didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
|
|
4620
|
+
(didWarnAboutStateAssignmentForComponent.add(workInProgress),
|
|
4621
|
+
console.error(
|
|
4622
|
+
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
4623
|
+
workInProgress
|
|
4624
|
+
)),
|
|
4625
|
+
classComponentUpdater.enqueueReplaceState(
|
|
4626
|
+
instance,
|
|
4627
|
+
instance.state,
|
|
4628
|
+
null
|
|
4629
|
+
));
|
|
4630
|
+
}
|
|
4631
|
+
function resolveClassComponentProps(Component, baseProps) {
|
|
4632
|
+
var newProps = baseProps;
|
|
4633
|
+
if ("ref" in baseProps) {
|
|
4634
|
+
newProps = {};
|
|
4635
|
+
for (var propName in baseProps)
|
|
4636
|
+
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
|
4637
|
+
}
|
|
4638
|
+
if ((Component = Component.defaultProps)) {
|
|
4639
|
+
newProps === baseProps && (newProps = assign({}, newProps));
|
|
4640
|
+
for (var _propName in Component)
|
|
4641
|
+
void 0 === newProps[_propName] &&
|
|
4642
|
+
(newProps[_propName] = Component[_propName]);
|
|
4643
|
+
}
|
|
4644
|
+
return newProps;
|
|
4522
4645
|
}
|
|
4523
4646
|
function pushTreeFork(workInProgress, totalChildren) {
|
|
4524
4647
|
warnIfNotHydrating();
|
|
@@ -4582,496 +4705,127 @@
|
|
|
4582
4705
|
"Expected to be hydrating. This is a bug in React. Please file an issue."
|
|
4583
4706
|
);
|
|
4584
4707
|
}
|
|
4585
|
-
function
|
|
4586
|
-
|
|
4587
|
-
if (null === hydrationDiffRootDEV)
|
|
4588
|
-
hydrationDiffRootDEV = {
|
|
4589
|
-
fiber: fiber,
|
|
4590
|
-
children: [],
|
|
4591
|
-
serverProps: void 0,
|
|
4592
|
-
serverTail: [],
|
|
4593
|
-
distanceFromLeaf: distanceFromLeaf
|
|
4594
|
-
};
|
|
4595
|
-
else {
|
|
4596
|
-
if (hydrationDiffRootDEV.fiber !== fiber)
|
|
4597
|
-
throw Error(
|
|
4598
|
-
"Saw multiple hydration diff roots in a pass. This is a bug in React."
|
|
4599
|
-
);
|
|
4600
|
-
hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf &&
|
|
4601
|
-
(hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf);
|
|
4602
|
-
}
|
|
4603
|
-
return hydrationDiffRootDEV;
|
|
4604
|
-
}
|
|
4605
|
-
var siblings = buildHydrationDiffNode(
|
|
4606
|
-
fiber.return,
|
|
4607
|
-
distanceFromLeaf + 1
|
|
4608
|
-
).children;
|
|
4609
|
-
if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber)
|
|
4610
|
-
return (
|
|
4611
|
-
(siblings = siblings[siblings.length - 1]),
|
|
4612
|
-
siblings.distanceFromLeaf > distanceFromLeaf &&
|
|
4613
|
-
(siblings.distanceFromLeaf = distanceFromLeaf),
|
|
4614
|
-
siblings
|
|
4615
|
-
);
|
|
4616
|
-
distanceFromLeaf = {
|
|
4617
|
-
fiber: fiber,
|
|
4618
|
-
children: [],
|
|
4619
|
-
serverProps: void 0,
|
|
4620
|
-
serverTail: [],
|
|
4621
|
-
distanceFromLeaf: distanceFromLeaf
|
|
4622
|
-
};
|
|
4623
|
-
siblings.push(distanceFromLeaf);
|
|
4624
|
-
return distanceFromLeaf;
|
|
4625
|
-
}
|
|
4626
|
-
function warnNonHydratedInstance(fiber, rejectedCandidate) {
|
|
4627
|
-
didSuspendOrErrorDEV ||
|
|
4628
|
-
((fiber = buildHydrationDiffNode(fiber, 0)),
|
|
4629
|
-
(fiber.serverProps = null),
|
|
4630
|
-
null !== rejectedCandidate &&
|
|
4631
|
-
((rejectedCandidate =
|
|
4632
|
-
describeHydratableInstanceForDevWarnings(rejectedCandidate)),
|
|
4633
|
-
fiber.serverTail.push(rejectedCandidate)));
|
|
4708
|
+
function createThenableState() {
|
|
4709
|
+
return { didWarnAboutUncachedPromise: !1, thenables: [] };
|
|
4634
4710
|
}
|
|
4635
|
-
function
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
null !== diffRoot &&
|
|
4639
|
-
((hydrationDiffRootDEV = null), (diff = describeDiff(diffRoot)));
|
|
4640
|
-
queueHydrationError(
|
|
4641
|
-
createCapturedValueAtFiber(
|
|
4642
|
-
Error(
|
|
4643
|
-
"Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" +
|
|
4644
|
-
diff
|
|
4645
|
-
),
|
|
4646
|
-
fiber
|
|
4647
|
-
)
|
|
4648
|
-
);
|
|
4649
|
-
throw HydrationMismatchException;
|
|
4711
|
+
function isThenableResolved(thenable) {
|
|
4712
|
+
thenable = thenable.status;
|
|
4713
|
+
return "fulfilled" === thenable || "rejected" === thenable;
|
|
4650
4714
|
}
|
|
4651
|
-
function
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
case "
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
break;
|
|
4676
|
-
case "img":
|
|
4677
|
-
case "image":
|
|
4678
|
-
case "link":
|
|
4679
|
-
listenToNonDelegatedEvent("error", didHydrate);
|
|
4680
|
-
listenToNonDelegatedEvent("load", didHydrate);
|
|
4681
|
-
break;
|
|
4682
|
-
case "details":
|
|
4683
|
-
listenToNonDelegatedEvent("toggle", didHydrate);
|
|
4684
|
-
break;
|
|
4685
|
-
case "input":
|
|
4686
|
-
checkControlledValueProps("input", props);
|
|
4687
|
-
listenToNonDelegatedEvent("invalid", didHydrate);
|
|
4688
|
-
validateInputProps(didHydrate, props);
|
|
4689
|
-
initInput(
|
|
4690
|
-
didHydrate,
|
|
4691
|
-
props.value,
|
|
4692
|
-
props.defaultValue,
|
|
4693
|
-
props.checked,
|
|
4694
|
-
props.defaultChecked,
|
|
4695
|
-
props.type,
|
|
4696
|
-
props.name,
|
|
4697
|
-
!0
|
|
4715
|
+
function noop$4() {}
|
|
4716
|
+
function trackUsedThenable(thenableState, thenable, index) {
|
|
4717
|
+
null !== ReactSharedInternals.actQueue &&
|
|
4718
|
+
(ReactSharedInternals.didUsePromise = !0);
|
|
4719
|
+
var trackedThenables = thenableState.thenables;
|
|
4720
|
+
index = trackedThenables[index];
|
|
4721
|
+
void 0 === index
|
|
4722
|
+
? trackedThenables.push(thenable)
|
|
4723
|
+
: index !== thenable &&
|
|
4724
|
+
(thenableState.didWarnAboutUncachedPromise ||
|
|
4725
|
+
((thenableState.didWarnAboutUncachedPromise = !0),
|
|
4726
|
+
console.error(
|
|
4727
|
+
"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework."
|
|
4728
|
+
)),
|
|
4729
|
+
thenable.then(noop$4, noop$4),
|
|
4730
|
+
(thenable = index));
|
|
4731
|
+
switch (thenable.status) {
|
|
4732
|
+
case "fulfilled":
|
|
4733
|
+
return thenable.value;
|
|
4734
|
+
case "rejected":
|
|
4735
|
+
throw (
|
|
4736
|
+
((thenableState = thenable.reason),
|
|
4737
|
+
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
4738
|
+
thenableState)
|
|
4698
4739
|
);
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4740
|
+
default:
|
|
4741
|
+
if ("string" === typeof thenable.status)
|
|
4742
|
+
thenable.then(noop$4, noop$4);
|
|
4743
|
+
else {
|
|
4744
|
+
thenableState = workInProgressRoot;
|
|
4745
|
+
if (
|
|
4746
|
+
null !== thenableState &&
|
|
4747
|
+
100 < thenableState.shellSuspendCounter
|
|
4748
|
+
)
|
|
4749
|
+
throw Error(
|
|
4750
|
+
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
4751
|
+
);
|
|
4752
|
+
thenableState = thenable;
|
|
4753
|
+
thenableState.status = "pending";
|
|
4754
|
+
thenableState.then(
|
|
4755
|
+
function (fulfilledValue) {
|
|
4756
|
+
if ("pending" === thenable.status) {
|
|
4757
|
+
var fulfilledThenable = thenable;
|
|
4758
|
+
fulfilledThenable.status = "fulfilled";
|
|
4759
|
+
fulfilledThenable.value = fulfilledValue;
|
|
4760
|
+
}
|
|
4761
|
+
},
|
|
4762
|
+
function (error) {
|
|
4763
|
+
if ("pending" === thenable.status) {
|
|
4764
|
+
var rejectedThenable = thenable;
|
|
4765
|
+
rejectedThenable.status = "rejected";
|
|
4766
|
+
rejectedThenable.reason = error;
|
|
4767
|
+
}
|
|
4768
|
+
}
|
|
4769
|
+
);
|
|
4770
|
+
}
|
|
4771
|
+
switch (thenable.status) {
|
|
4772
|
+
case "fulfilled":
|
|
4773
|
+
return thenable.value;
|
|
4774
|
+
case "rejected":
|
|
4775
|
+
throw (
|
|
4776
|
+
((thenableState = thenable.reason),
|
|
4777
|
+
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
4778
|
+
thenableState)
|
|
4779
|
+
);
|
|
4780
|
+
}
|
|
4781
|
+
suspendedThenable = thenable;
|
|
4782
|
+
needsToResetSuspendedThenableDEV = !0;
|
|
4783
|
+
throw SuspenseException;
|
|
4720
4784
|
}
|
|
4721
|
-
type = props.children;
|
|
4722
|
-
("string" !== typeof type &&
|
|
4723
|
-
"number" !== typeof type &&
|
|
4724
|
-
"bigint" !== typeof type) ||
|
|
4725
|
-
didHydrate.textContent === "" + type ||
|
|
4726
|
-
!0 === props.suppressHydrationWarning ||
|
|
4727
|
-
checkForUnmatchedText(didHydrate.textContent, type)
|
|
4728
|
-
? (null != props.popover &&
|
|
4729
|
-
(listenToNonDelegatedEvent("beforetoggle", didHydrate),
|
|
4730
|
-
listenToNonDelegatedEvent("toggle", didHydrate)),
|
|
4731
|
-
null != props.onScroll &&
|
|
4732
|
-
listenToNonDelegatedEvent("scroll", didHydrate),
|
|
4733
|
-
null != props.onScrollEnd &&
|
|
4734
|
-
listenToNonDelegatedEvent("scrollend", didHydrate),
|
|
4735
|
-
null != props.onClick && (didHydrate.onclick = noop$2),
|
|
4736
|
-
(didHydrate = !0))
|
|
4737
|
-
: (didHydrate = !1);
|
|
4738
|
-
didHydrate || throwOnHydrationMismatch(fiber);
|
|
4739
|
-
}
|
|
4740
|
-
function popToNextHostParent(fiber) {
|
|
4741
|
-
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
|
|
4742
|
-
switch (hydrationParentFiber.tag) {
|
|
4743
|
-
case 3:
|
|
4744
|
-
case 27:
|
|
4745
|
-
rootOrSingletonContext = !0;
|
|
4746
|
-
return;
|
|
4747
|
-
case 5:
|
|
4748
|
-
case 13:
|
|
4749
|
-
rootOrSingletonContext = !1;
|
|
4750
|
-
return;
|
|
4751
|
-
default:
|
|
4752
|
-
hydrationParentFiber = hydrationParentFiber.return;
|
|
4753
|
-
}
|
|
4754
4785
|
}
|
|
4755
|
-
function
|
|
4756
|
-
if (
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
(JSCompiler_temp =
|
|
4765
|
-
!("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
|
|
4766
|
-
shouldSetTextContent(fiber.type, fiber.memoizedProps));
|
|
4767
|
-
JSCompiler_temp = !JSCompiler_temp;
|
|
4768
|
-
}
|
|
4769
|
-
JSCompiler_temp && (shouldClear = !0);
|
|
4770
|
-
if (shouldClear && nextHydratableInstance) {
|
|
4771
|
-
for (shouldClear = nextHydratableInstance; shouldClear; ) {
|
|
4772
|
-
JSCompiler_temp = buildHydrationDiffNode(fiber, 0);
|
|
4773
|
-
var description =
|
|
4774
|
-
describeHydratableInstanceForDevWarnings(shouldClear);
|
|
4775
|
-
JSCompiler_temp.serverTail.push(description);
|
|
4776
|
-
shouldClear =
|
|
4777
|
-
"Suspense" === description.type
|
|
4778
|
-
? getNextHydratableInstanceAfterSuspenseInstance(shouldClear)
|
|
4779
|
-
: getNextHydratable(shouldClear.nextSibling);
|
|
4780
|
-
}
|
|
4781
|
-
throwOnHydrationMismatch(fiber);
|
|
4782
|
-
}
|
|
4783
|
-
popToNextHostParent(fiber);
|
|
4784
|
-
if (13 === fiber.tag) {
|
|
4785
|
-
fiber = fiber.memoizedState;
|
|
4786
|
-
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
4787
|
-
if (!fiber)
|
|
4788
|
-
throw Error(
|
|
4789
|
-
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
|
|
4790
|
-
);
|
|
4791
|
-
nextHydratableInstance =
|
|
4792
|
-
getNextHydratableInstanceAfterSuspenseInstance(fiber);
|
|
4793
|
-
} else
|
|
4794
|
-
nextHydratableInstance = hydrationParentFiber
|
|
4795
|
-
? getNextHydratable(fiber.stateNode.nextSibling)
|
|
4796
|
-
: null;
|
|
4797
|
-
return !0;
|
|
4786
|
+
function getSuspendedThenable() {
|
|
4787
|
+
if (null === suspendedThenable)
|
|
4788
|
+
throw Error(
|
|
4789
|
+
"Expected a suspended thenable. This is a bug in React. Please file an issue."
|
|
4790
|
+
);
|
|
4791
|
+
var thenable = suspendedThenable;
|
|
4792
|
+
suspendedThenable = null;
|
|
4793
|
+
needsToResetSuspendedThenableDEV = !1;
|
|
4794
|
+
return thenable;
|
|
4798
4795
|
}
|
|
4799
|
-
function
|
|
4800
|
-
|
|
4801
|
-
|
|
4796
|
+
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
|
|
4797
|
+
if (
|
|
4798
|
+
rejectedReason === SuspenseException ||
|
|
4799
|
+
rejectedReason === SuspenseActionException
|
|
4800
|
+
)
|
|
4801
|
+
throw Error(
|
|
4802
|
+
"Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
4803
|
+
);
|
|
4802
4804
|
}
|
|
4803
|
-
function
|
|
4804
|
-
var
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
: workInProgressRootRecoverableErrors.push.apply(
|
|
4809
|
-
workInProgressRootRecoverableErrors,
|
|
4810
|
-
queuedErrors
|
|
4811
|
-
),
|
|
4812
|
-
(hydrationErrors = null));
|
|
4813
|
-
return queuedErrors;
|
|
4805
|
+
function pushHiddenContext(fiber, context) {
|
|
4806
|
+
var prevEntangledRenderLanes = entangledRenderLanes;
|
|
4807
|
+
push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber);
|
|
4808
|
+
push(currentTreeHiddenStackCursor, context, fiber);
|
|
4809
|
+
entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes;
|
|
4814
4810
|
}
|
|
4815
|
-
function
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4811
|
+
function reuseHiddenContextOnStack(fiber) {
|
|
4812
|
+
push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber);
|
|
4813
|
+
push(
|
|
4814
|
+
currentTreeHiddenStackCursor,
|
|
4815
|
+
currentTreeHiddenStackCursor.current,
|
|
4816
|
+
fiber
|
|
4817
|
+
);
|
|
4819
4818
|
}
|
|
4820
|
-
function
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
(diffRoot = describeDiff(diffRoot)),
|
|
4825
|
-
console.error(
|
|
4826
|
-
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
|
|
4827
|
-
"https://react.dev/link/hydration-mismatch",
|
|
4828
|
-
diffRoot
|
|
4829
|
-
));
|
|
4819
|
+
function popHiddenContext(fiber) {
|
|
4820
|
+
entangledRenderLanes = prevEntangledRenderLanesCursor.current;
|
|
4821
|
+
pop(currentTreeHiddenStackCursor, fiber);
|
|
4822
|
+
pop(prevEntangledRenderLanesCursor, fiber);
|
|
4830
4823
|
}
|
|
4831
|
-
function
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
console.error(
|
|
4837
|
-
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
|
4838
|
-
callback
|
|
4839
|
-
));
|
|
4840
|
-
}
|
|
4841
|
-
}
|
|
4842
|
-
function applyDerivedStateFromProps(
|
|
4843
|
-
workInProgress,
|
|
4844
|
-
ctor,
|
|
4845
|
-
getDerivedStateFromProps,
|
|
4846
|
-
nextProps
|
|
4847
|
-
) {
|
|
4848
|
-
var prevState = workInProgress.memoizedState,
|
|
4849
|
-
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4850
|
-
if (workInProgress.mode & StrictLegacyMode) {
|
|
4851
|
-
setIsStrictModeForDevtools(!0);
|
|
4852
|
-
try {
|
|
4853
|
-
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4854
|
-
} finally {
|
|
4855
|
-
setIsStrictModeForDevtools(!1);
|
|
4856
|
-
}
|
|
4857
|
-
}
|
|
4858
|
-
void 0 === partialState &&
|
|
4859
|
-
((ctor = getComponentNameFromType(ctor) || "Component"),
|
|
4860
|
-
didWarnAboutUndefinedDerivedState.has(ctor) ||
|
|
4861
|
-
(didWarnAboutUndefinedDerivedState.add(ctor),
|
|
4862
|
-
console.error(
|
|
4863
|
-
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
|
4864
|
-
ctor
|
|
4865
|
-
)));
|
|
4866
|
-
prevState =
|
|
4867
|
-
null === partialState || void 0 === partialState
|
|
4868
|
-
? prevState
|
|
4869
|
-
: assign({}, prevState, partialState);
|
|
4870
|
-
workInProgress.memoizedState = prevState;
|
|
4871
|
-
0 === workInProgress.lanes &&
|
|
4872
|
-
(workInProgress.updateQueue.baseState = prevState);
|
|
4873
|
-
}
|
|
4874
|
-
function checkShouldComponentUpdate(
|
|
4875
|
-
workInProgress,
|
|
4876
|
-
ctor,
|
|
4877
|
-
oldProps,
|
|
4878
|
-
newProps,
|
|
4879
|
-
oldState,
|
|
4880
|
-
newState,
|
|
4881
|
-
nextContext
|
|
4882
|
-
) {
|
|
4883
|
-
var instance = workInProgress.stateNode;
|
|
4884
|
-
if ("function" === typeof instance.shouldComponentUpdate) {
|
|
4885
|
-
oldProps = instance.shouldComponentUpdate(
|
|
4886
|
-
newProps,
|
|
4887
|
-
newState,
|
|
4888
|
-
nextContext
|
|
4889
|
-
);
|
|
4890
|
-
if (workInProgress.mode & StrictLegacyMode) {
|
|
4891
|
-
setIsStrictModeForDevtools(!0);
|
|
4892
|
-
try {
|
|
4893
|
-
oldProps = instance.shouldComponentUpdate(
|
|
4894
|
-
newProps,
|
|
4895
|
-
newState,
|
|
4896
|
-
nextContext
|
|
4897
|
-
);
|
|
4898
|
-
} finally {
|
|
4899
|
-
setIsStrictModeForDevtools(!1);
|
|
4900
|
-
}
|
|
4901
|
-
}
|
|
4902
|
-
void 0 === oldProps &&
|
|
4903
|
-
console.error(
|
|
4904
|
-
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
|
4905
|
-
getComponentNameFromType(ctor) || "Component"
|
|
4906
|
-
);
|
|
4907
|
-
return oldProps;
|
|
4908
|
-
}
|
|
4909
|
-
return ctor.prototype && ctor.prototype.isPureReactComponent
|
|
4910
|
-
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
|
|
4911
|
-
: !0;
|
|
4912
|
-
}
|
|
4913
|
-
function callComponentWillReceiveProps(
|
|
4914
|
-
workInProgress,
|
|
4915
|
-
instance,
|
|
4916
|
-
newProps,
|
|
4917
|
-
nextContext
|
|
4918
|
-
) {
|
|
4919
|
-
var oldState = instance.state;
|
|
4920
|
-
"function" === typeof instance.componentWillReceiveProps &&
|
|
4921
|
-
instance.componentWillReceiveProps(newProps, nextContext);
|
|
4922
|
-
"function" === typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
4923
|
-
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
|
4924
|
-
instance.state !== oldState &&
|
|
4925
|
-
((workInProgress =
|
|
4926
|
-
getComponentNameFromFiber(workInProgress) || "Component"),
|
|
4927
|
-
didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
|
|
4928
|
-
(didWarnAboutStateAssignmentForComponent.add(workInProgress),
|
|
4929
|
-
console.error(
|
|
4930
|
-
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
4931
|
-
workInProgress
|
|
4932
|
-
)),
|
|
4933
|
-
classComponentUpdater.enqueueReplaceState(
|
|
4934
|
-
instance,
|
|
4935
|
-
instance.state,
|
|
4936
|
-
null
|
|
4937
|
-
));
|
|
4938
|
-
}
|
|
4939
|
-
function resolveClassComponentProps(Component, baseProps) {
|
|
4940
|
-
var newProps = baseProps;
|
|
4941
|
-
if ("ref" in baseProps) {
|
|
4942
|
-
newProps = {};
|
|
4943
|
-
for (var propName in baseProps)
|
|
4944
|
-
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
|
4945
|
-
}
|
|
4946
|
-
if ((Component = Component.defaultProps)) {
|
|
4947
|
-
newProps === baseProps && (newProps = assign({}, newProps));
|
|
4948
|
-
for (var _propName in Component)
|
|
4949
|
-
void 0 === newProps[_propName] &&
|
|
4950
|
-
(newProps[_propName] = Component[_propName]);
|
|
4951
|
-
}
|
|
4952
|
-
return newProps;
|
|
4953
|
-
}
|
|
4954
|
-
function createThenableState() {
|
|
4955
|
-
return { didWarnAboutUncachedPromise: !1, thenables: [] };
|
|
4956
|
-
}
|
|
4957
|
-
function isThenableResolved(thenable) {
|
|
4958
|
-
thenable = thenable.status;
|
|
4959
|
-
return "fulfilled" === thenable || "rejected" === thenable;
|
|
4960
|
-
}
|
|
4961
|
-
function noop$4() {}
|
|
4962
|
-
function trackUsedThenable(thenableState, thenable, index) {
|
|
4963
|
-
null !== ReactSharedInternals.actQueue &&
|
|
4964
|
-
(ReactSharedInternals.didUsePromise = !0);
|
|
4965
|
-
var trackedThenables = thenableState.thenables;
|
|
4966
|
-
index = trackedThenables[index];
|
|
4967
|
-
void 0 === index
|
|
4968
|
-
? trackedThenables.push(thenable)
|
|
4969
|
-
: index !== thenable &&
|
|
4970
|
-
(thenableState.didWarnAboutUncachedPromise ||
|
|
4971
|
-
((thenableState.didWarnAboutUncachedPromise = !0),
|
|
4972
|
-
console.error(
|
|
4973
|
-
"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework."
|
|
4974
|
-
)),
|
|
4975
|
-
thenable.then(noop$4, noop$4),
|
|
4976
|
-
(thenable = index));
|
|
4977
|
-
switch (thenable.status) {
|
|
4978
|
-
case "fulfilled":
|
|
4979
|
-
return thenable.value;
|
|
4980
|
-
case "rejected":
|
|
4981
|
-
throw (
|
|
4982
|
-
((thenableState = thenable.reason),
|
|
4983
|
-
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
4984
|
-
thenableState)
|
|
4985
|
-
);
|
|
4986
|
-
default:
|
|
4987
|
-
if ("string" === typeof thenable.status)
|
|
4988
|
-
thenable.then(noop$4, noop$4);
|
|
4989
|
-
else {
|
|
4990
|
-
thenableState = workInProgressRoot;
|
|
4991
|
-
if (
|
|
4992
|
-
null !== thenableState &&
|
|
4993
|
-
100 < thenableState.shellSuspendCounter
|
|
4994
|
-
)
|
|
4995
|
-
throw Error(
|
|
4996
|
-
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
4997
|
-
);
|
|
4998
|
-
thenableState = thenable;
|
|
4999
|
-
thenableState.status = "pending";
|
|
5000
|
-
thenableState.then(
|
|
5001
|
-
function (fulfilledValue) {
|
|
5002
|
-
if ("pending" === thenable.status) {
|
|
5003
|
-
var fulfilledThenable = thenable;
|
|
5004
|
-
fulfilledThenable.status = "fulfilled";
|
|
5005
|
-
fulfilledThenable.value = fulfilledValue;
|
|
5006
|
-
}
|
|
5007
|
-
},
|
|
5008
|
-
function (error) {
|
|
5009
|
-
if ("pending" === thenable.status) {
|
|
5010
|
-
var rejectedThenable = thenable;
|
|
5011
|
-
rejectedThenable.status = "rejected";
|
|
5012
|
-
rejectedThenable.reason = error;
|
|
5013
|
-
}
|
|
5014
|
-
}
|
|
5015
|
-
);
|
|
5016
|
-
}
|
|
5017
|
-
switch (thenable.status) {
|
|
5018
|
-
case "fulfilled":
|
|
5019
|
-
return thenable.value;
|
|
5020
|
-
case "rejected":
|
|
5021
|
-
throw (
|
|
5022
|
-
((thenableState = thenable.reason),
|
|
5023
|
-
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
5024
|
-
thenableState)
|
|
5025
|
-
);
|
|
5026
|
-
}
|
|
5027
|
-
suspendedThenable = thenable;
|
|
5028
|
-
needsToResetSuspendedThenableDEV = !0;
|
|
5029
|
-
throw SuspenseException;
|
|
5030
|
-
}
|
|
5031
|
-
}
|
|
5032
|
-
function getSuspendedThenable() {
|
|
5033
|
-
if (null === suspendedThenable)
|
|
5034
|
-
throw Error(
|
|
5035
|
-
"Expected a suspended thenable. This is a bug in React. Please file an issue."
|
|
5036
|
-
);
|
|
5037
|
-
var thenable = suspendedThenable;
|
|
5038
|
-
suspendedThenable = null;
|
|
5039
|
-
needsToResetSuspendedThenableDEV = !1;
|
|
5040
|
-
return thenable;
|
|
5041
|
-
}
|
|
5042
|
-
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
|
|
5043
|
-
if (
|
|
5044
|
-
rejectedReason === SuspenseException ||
|
|
5045
|
-
rejectedReason === SuspenseActionException
|
|
5046
|
-
)
|
|
5047
|
-
throw Error(
|
|
5048
|
-
"Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
5049
|
-
);
|
|
5050
|
-
}
|
|
5051
|
-
function pushHiddenContext(fiber, context) {
|
|
5052
|
-
var prevEntangledRenderLanes = entangledRenderLanes;
|
|
5053
|
-
push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber);
|
|
5054
|
-
push(currentTreeHiddenStackCursor, context, fiber);
|
|
5055
|
-
entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes;
|
|
5056
|
-
}
|
|
5057
|
-
function reuseHiddenContextOnStack(fiber) {
|
|
5058
|
-
push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber);
|
|
5059
|
-
push(
|
|
5060
|
-
currentTreeHiddenStackCursor,
|
|
5061
|
-
currentTreeHiddenStackCursor.current,
|
|
5062
|
-
fiber
|
|
5063
|
-
);
|
|
5064
|
-
}
|
|
5065
|
-
function popHiddenContext(fiber) {
|
|
5066
|
-
entangledRenderLanes = prevEntangledRenderLanesCursor.current;
|
|
5067
|
-
pop(currentTreeHiddenStackCursor, fiber);
|
|
5068
|
-
pop(prevEntangledRenderLanesCursor, fiber);
|
|
5069
|
-
}
|
|
5070
|
-
function peekCacheFromPool() {
|
|
5071
|
-
var cacheResumedFromPreviousRender = resumedCache.current;
|
|
5072
|
-
return null !== cacheResumedFromPreviousRender
|
|
5073
|
-
? cacheResumedFromPreviousRender
|
|
5074
|
-
: workInProgressRoot.pooledCache;
|
|
4824
|
+
function peekCacheFromPool() {
|
|
4825
|
+
var cacheResumedFromPreviousRender = resumedCache.current;
|
|
4826
|
+
return null !== cacheResumedFromPreviousRender
|
|
4827
|
+
? cacheResumedFromPreviousRender
|
|
4828
|
+
: workInProgressRoot.pooledCache;
|
|
5075
4829
|
}
|
|
5076
4830
|
function pushTransition(offscreenWorkInProgress, prevCachePool) {
|
|
5077
4831
|
null === prevCachePool
|
|
@@ -9102,32 +8856,32 @@
|
|
|
9102
8856
|
return current;
|
|
9103
8857
|
}
|
|
9104
8858
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
9105
|
-
var
|
|
9106
|
-
var
|
|
8859
|
+
var JSCompiler_object_inline_digest_2400;
|
|
8860
|
+
var JSCompiler_object_inline_stack_2401 = workInProgress.pendingProps;
|
|
9107
8861
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
|
9108
|
-
var
|
|
8862
|
+
var JSCompiler_object_inline_componentStack_2402 = !1;
|
|
9109
8863
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
|
9110
|
-
(
|
|
9111
|
-
(
|
|
8864
|
+
(JSCompiler_object_inline_digest_2400 = didSuspend) ||
|
|
8865
|
+
(JSCompiler_object_inline_digest_2400 =
|
|
9112
8866
|
null !== current && null === current.memoizedState
|
|
9113
8867
|
? !1
|
|
9114
8868
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
|
9115
|
-
|
|
9116
|
-
((
|
|
8869
|
+
JSCompiler_object_inline_digest_2400 &&
|
|
8870
|
+
((JSCompiler_object_inline_componentStack_2402 = !0),
|
|
9117
8871
|
(workInProgress.flags &= -129));
|
|
9118
|
-
|
|
8872
|
+
JSCompiler_object_inline_digest_2400 = 0 !== (workInProgress.flags & 32);
|
|
9119
8873
|
workInProgress.flags &= -33;
|
|
9120
8874
|
if (null === current) {
|
|
9121
8875
|
if (isHydrating) {
|
|
9122
|
-
|
|
8876
|
+
JSCompiler_object_inline_componentStack_2402
|
|
9123
8877
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
|
9124
8878
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
|
9125
8879
|
if (isHydrating) {
|
|
9126
|
-
var
|
|
8880
|
+
var JSCompiler_object_inline_message_2399 = nextHydratableInstance;
|
|
9127
8881
|
var JSCompiler_temp;
|
|
9128
|
-
if (!(JSCompiler_temp = !
|
|
8882
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2399)) {
|
|
9129
8883
|
c: {
|
|
9130
|
-
var instance =
|
|
8884
|
+
var instance = JSCompiler_object_inline_message_2399;
|
|
9131
8885
|
for (
|
|
9132
8886
|
JSCompiler_temp = rootOrSingletonContext;
|
|
9133
8887
|
8 !== instance.nodeType;
|
|
@@ -9169,77 +8923,77 @@
|
|
|
9169
8923
|
JSCompiler_temp &&
|
|
9170
8924
|
(warnNonHydratedInstance(
|
|
9171
8925
|
workInProgress,
|
|
9172
|
-
|
|
8926
|
+
JSCompiler_object_inline_message_2399
|
|
9173
8927
|
),
|
|
9174
8928
|
throwOnHydrationMismatch(workInProgress));
|
|
9175
8929
|
}
|
|
9176
|
-
|
|
8930
|
+
JSCompiler_object_inline_message_2399 = workInProgress.memoizedState;
|
|
9177
8931
|
if (
|
|
9178
|
-
null !==
|
|
9179
|
-
((
|
|
9180
|
-
|
|
9181
|
-
null !==
|
|
8932
|
+
null !== JSCompiler_object_inline_message_2399 &&
|
|
8933
|
+
((JSCompiler_object_inline_message_2399 =
|
|
8934
|
+
JSCompiler_object_inline_message_2399.dehydrated),
|
|
8935
|
+
null !== JSCompiler_object_inline_message_2399)
|
|
9182
8936
|
)
|
|
9183
8937
|
return (
|
|
9184
|
-
isSuspenseInstanceFallback(
|
|
8938
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2399)
|
|
9185
8939
|
? (workInProgress.lanes = 32)
|
|
9186
8940
|
: (workInProgress.lanes = 536870912),
|
|
9187
8941
|
null
|
|
9188
8942
|
);
|
|
9189
8943
|
popSuspenseHandler(workInProgress);
|
|
9190
8944
|
}
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
if (
|
|
8945
|
+
JSCompiler_object_inline_message_2399 =
|
|
8946
|
+
JSCompiler_object_inline_stack_2401.children;
|
|
8947
|
+
JSCompiler_object_inline_stack_2401 =
|
|
8948
|
+
JSCompiler_object_inline_stack_2401.fallback;
|
|
8949
|
+
if (JSCompiler_object_inline_componentStack_2402)
|
|
9196
8950
|
return (
|
|
9197
8951
|
reuseSuspenseHandlerOnStack(workInProgress),
|
|
9198
|
-
(
|
|
8952
|
+
(JSCompiler_object_inline_componentStack_2402 =
|
|
9199
8953
|
workInProgress.mode),
|
|
9200
|
-
(
|
|
8954
|
+
(JSCompiler_object_inline_message_2399 =
|
|
9201
8955
|
mountWorkInProgressOffscreenFiber(
|
|
9202
8956
|
{
|
|
9203
8957
|
mode: "hidden",
|
|
9204
|
-
children:
|
|
8958
|
+
children: JSCompiler_object_inline_message_2399
|
|
9205
8959
|
},
|
|
9206
|
-
|
|
8960
|
+
JSCompiler_object_inline_componentStack_2402
|
|
9207
8961
|
)),
|
|
9208
|
-
(
|
|
9209
|
-
|
|
9210
|
-
|
|
8962
|
+
(JSCompiler_object_inline_stack_2401 = createFiberFromFragment(
|
|
8963
|
+
JSCompiler_object_inline_stack_2401,
|
|
8964
|
+
JSCompiler_object_inline_componentStack_2402,
|
|
9211
8965
|
renderLanes,
|
|
9212
8966
|
null
|
|
9213
8967
|
)),
|
|
9214
|
-
(
|
|
9215
|
-
(
|
|
9216
|
-
(
|
|
9217
|
-
|
|
9218
|
-
(workInProgress.child =
|
|
9219
|
-
(
|
|
8968
|
+
(JSCompiler_object_inline_message_2399.return = workInProgress),
|
|
8969
|
+
(JSCompiler_object_inline_stack_2401.return = workInProgress),
|
|
8970
|
+
(JSCompiler_object_inline_message_2399.sibling =
|
|
8971
|
+
JSCompiler_object_inline_stack_2401),
|
|
8972
|
+
(workInProgress.child = JSCompiler_object_inline_message_2399),
|
|
8973
|
+
(JSCompiler_object_inline_componentStack_2402 =
|
|
9220
8974
|
workInProgress.child),
|
|
9221
|
-
(
|
|
8975
|
+
(JSCompiler_object_inline_componentStack_2402.memoizedState =
|
|
9222
8976
|
mountSuspenseOffscreenState(renderLanes)),
|
|
9223
|
-
(
|
|
8977
|
+
(JSCompiler_object_inline_componentStack_2402.childLanes =
|
|
9224
8978
|
getRemainingWorkInPrimaryTree(
|
|
9225
8979
|
current,
|
|
9226
|
-
|
|
8980
|
+
JSCompiler_object_inline_digest_2400,
|
|
9227
8981
|
renderLanes
|
|
9228
8982
|
)),
|
|
9229
8983
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
9230
|
-
|
|
8984
|
+
JSCompiler_object_inline_stack_2401
|
|
9231
8985
|
);
|
|
9232
8986
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
9233
8987
|
return mountSuspensePrimaryChildren(
|
|
9234
8988
|
workInProgress,
|
|
9235
|
-
|
|
8989
|
+
JSCompiler_object_inline_message_2399
|
|
9236
8990
|
);
|
|
9237
8991
|
}
|
|
9238
8992
|
var prevState = current.memoizedState;
|
|
9239
8993
|
if (
|
|
9240
8994
|
null !== prevState &&
|
|
9241
|
-
((
|
|
9242
|
-
null !==
|
|
8995
|
+
((JSCompiler_object_inline_message_2399 = prevState.dehydrated),
|
|
8996
|
+
null !== JSCompiler_object_inline_message_2399)
|
|
9243
8997
|
) {
|
|
9244
8998
|
if (didSuspend)
|
|
9245
8999
|
workInProgress.flags & 256
|
|
@@ -9256,94 +9010,94 @@
|
|
|
9256
9010
|
(workInProgress.flags |= 128),
|
|
9257
9011
|
(workInProgress = null))
|
|
9258
9012
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
|
9259
|
-
(
|
|
9260
|
-
|
|
9261
|
-
(
|
|
9262
|
-
(
|
|
9013
|
+
(JSCompiler_object_inline_componentStack_2402 =
|
|
9014
|
+
JSCompiler_object_inline_stack_2401.fallback),
|
|
9015
|
+
(JSCompiler_object_inline_message_2399 = workInProgress.mode),
|
|
9016
|
+
(JSCompiler_object_inline_stack_2401 =
|
|
9263
9017
|
mountWorkInProgressOffscreenFiber(
|
|
9264
9018
|
{
|
|
9265
9019
|
mode: "visible",
|
|
9266
|
-
children:
|
|
9020
|
+
children: JSCompiler_object_inline_stack_2401.children
|
|
9267
9021
|
},
|
|
9268
|
-
|
|
9022
|
+
JSCompiler_object_inline_message_2399
|
|
9269
9023
|
)),
|
|
9270
|
-
(
|
|
9024
|
+
(JSCompiler_object_inline_componentStack_2402 =
|
|
9271
9025
|
createFiberFromFragment(
|
|
9272
|
-
|
|
9273
|
-
|
|
9026
|
+
JSCompiler_object_inline_componentStack_2402,
|
|
9027
|
+
JSCompiler_object_inline_message_2399,
|
|
9274
9028
|
renderLanes,
|
|
9275
9029
|
null
|
|
9276
9030
|
)),
|
|
9277
|
-
(
|
|
9278
|
-
(
|
|
9279
|
-
(
|
|
9031
|
+
(JSCompiler_object_inline_componentStack_2402.flags |= 2),
|
|
9032
|
+
(JSCompiler_object_inline_stack_2401.return = workInProgress),
|
|
9033
|
+
(JSCompiler_object_inline_componentStack_2402.return =
|
|
9280
9034
|
workInProgress),
|
|
9281
|
-
(
|
|
9282
|
-
|
|
9283
|
-
(workInProgress.child =
|
|
9035
|
+
(JSCompiler_object_inline_stack_2401.sibling =
|
|
9036
|
+
JSCompiler_object_inline_componentStack_2402),
|
|
9037
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2401),
|
|
9284
9038
|
reconcileChildFibers(
|
|
9285
9039
|
workInProgress,
|
|
9286
9040
|
current.child,
|
|
9287
9041
|
null,
|
|
9288
9042
|
renderLanes
|
|
9289
9043
|
),
|
|
9290
|
-
(
|
|
9291
|
-
(
|
|
9044
|
+
(JSCompiler_object_inline_stack_2401 = workInProgress.child),
|
|
9045
|
+
(JSCompiler_object_inline_stack_2401.memoizedState =
|
|
9292
9046
|
mountSuspenseOffscreenState(renderLanes)),
|
|
9293
|
-
(
|
|
9047
|
+
(JSCompiler_object_inline_stack_2401.childLanes =
|
|
9294
9048
|
getRemainingWorkInPrimaryTree(
|
|
9295
9049
|
current,
|
|
9296
|
-
|
|
9050
|
+
JSCompiler_object_inline_digest_2400,
|
|
9297
9051
|
renderLanes
|
|
9298
9052
|
)),
|
|
9299
9053
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
9300
9054
|
(workInProgress =
|
|
9301
|
-
|
|
9055
|
+
JSCompiler_object_inline_componentStack_2402));
|
|
9302
9056
|
else if (
|
|
9303
9057
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
|
9304
9058
|
isHydrating &&
|
|
9305
9059
|
console.error(
|
|
9306
9060
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
|
9307
9061
|
),
|
|
9308
|
-
isSuspenseInstanceFallback(
|
|
9062
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2399))
|
|
9309
9063
|
) {
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
if (
|
|
9314
|
-
JSCompiler_temp =
|
|
9315
|
-
var message =
|
|
9316
|
-
instance =
|
|
9317
|
-
var componentStack =
|
|
9064
|
+
JSCompiler_object_inline_digest_2400 =
|
|
9065
|
+
JSCompiler_object_inline_message_2399.nextSibling &&
|
|
9066
|
+
JSCompiler_object_inline_message_2399.nextSibling.dataset;
|
|
9067
|
+
if (JSCompiler_object_inline_digest_2400) {
|
|
9068
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2400.dgst;
|
|
9069
|
+
var message = JSCompiler_object_inline_digest_2400.msg;
|
|
9070
|
+
instance = JSCompiler_object_inline_digest_2400.stck;
|
|
9071
|
+
var componentStack = JSCompiler_object_inline_digest_2400.cstck;
|
|
9318
9072
|
}
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
JSCompiler_temp =
|
|
9073
|
+
JSCompiler_object_inline_message_2399 = message;
|
|
9074
|
+
JSCompiler_object_inline_digest_2400 = JSCompiler_temp;
|
|
9075
|
+
JSCompiler_object_inline_stack_2401 = instance;
|
|
9076
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2402 =
|
|
9323
9077
|
componentStack;
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
? Error(
|
|
9078
|
+
JSCompiler_object_inline_componentStack_2402 =
|
|
9079
|
+
JSCompiler_object_inline_message_2399
|
|
9080
|
+
? Error(JSCompiler_object_inline_message_2399)
|
|
9327
9081
|
: Error(
|
|
9328
9082
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
|
9329
9083
|
);
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9084
|
+
JSCompiler_object_inline_componentStack_2402.stack =
|
|
9085
|
+
JSCompiler_object_inline_stack_2401 || "";
|
|
9086
|
+
JSCompiler_object_inline_componentStack_2402.digest =
|
|
9087
|
+
JSCompiler_object_inline_digest_2400;
|
|
9088
|
+
JSCompiler_object_inline_digest_2400 =
|
|
9335
9089
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
|
9336
|
-
|
|
9337
|
-
value:
|
|
9090
|
+
JSCompiler_object_inline_stack_2401 = {
|
|
9091
|
+
value: JSCompiler_object_inline_componentStack_2402,
|
|
9338
9092
|
source: null,
|
|
9339
|
-
stack:
|
|
9093
|
+
stack: JSCompiler_object_inline_digest_2400
|
|
9340
9094
|
};
|
|
9341
|
-
"string" === typeof
|
|
9095
|
+
"string" === typeof JSCompiler_object_inline_digest_2400 &&
|
|
9342
9096
|
CapturedStacks.set(
|
|
9343
|
-
|
|
9344
|
-
|
|
9097
|
+
JSCompiler_object_inline_componentStack_2402,
|
|
9098
|
+
JSCompiler_object_inline_stack_2401
|
|
9345
9099
|
);
|
|
9346
|
-
queueHydrationError(
|
|
9100
|
+
queueHydrationError(JSCompiler_object_inline_stack_2401);
|
|
9347
9101
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
9348
9102
|
current,
|
|
9349
9103
|
workInProgress,
|
|
@@ -9357,44 +9111,44 @@
|
|
|
9357
9111
|
renderLanes,
|
|
9358
9112
|
!1
|
|
9359
9113
|
),
|
|
9360
|
-
(
|
|
9114
|
+
(JSCompiler_object_inline_digest_2400 =
|
|
9361
9115
|
0 !== (renderLanes & current.childLanes)),
|
|
9362
|
-
didReceiveUpdate ||
|
|
9116
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2400)
|
|
9363
9117
|
) {
|
|
9364
|
-
|
|
9118
|
+
JSCompiler_object_inline_digest_2400 = workInProgressRoot;
|
|
9365
9119
|
if (
|
|
9366
|
-
null !==
|
|
9367
|
-
((
|
|
9368
|
-
(
|
|
9369
|
-
0 !== (
|
|
9120
|
+
null !== JSCompiler_object_inline_digest_2400 &&
|
|
9121
|
+
((JSCompiler_object_inline_stack_2401 = renderLanes & -renderLanes),
|
|
9122
|
+
(JSCompiler_object_inline_stack_2401 =
|
|
9123
|
+
0 !== (JSCompiler_object_inline_stack_2401 & 42)
|
|
9370
9124
|
? 1
|
|
9371
9125
|
: getBumpedLaneForHydrationByLane(
|
|
9372
|
-
|
|
9126
|
+
JSCompiler_object_inline_stack_2401
|
|
9373
9127
|
)),
|
|
9374
|
-
(
|
|
9128
|
+
(JSCompiler_object_inline_stack_2401 =
|
|
9375
9129
|
0 !==
|
|
9376
|
-
(
|
|
9377
|
-
(
|
|
9130
|
+
(JSCompiler_object_inline_stack_2401 &
|
|
9131
|
+
(JSCompiler_object_inline_digest_2400.suspendedLanes |
|
|
9378
9132
|
renderLanes))
|
|
9379
9133
|
? 0
|
|
9380
|
-
:
|
|
9381
|
-
0 !==
|
|
9382
|
-
|
|
9134
|
+
: JSCompiler_object_inline_stack_2401),
|
|
9135
|
+
0 !== JSCompiler_object_inline_stack_2401 &&
|
|
9136
|
+
JSCompiler_object_inline_stack_2401 !== prevState.retryLane)
|
|
9383
9137
|
)
|
|
9384
9138
|
throw (
|
|
9385
|
-
((prevState.retryLane =
|
|
9139
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2401),
|
|
9386
9140
|
enqueueConcurrentRenderForLane(
|
|
9387
9141
|
current,
|
|
9388
|
-
|
|
9142
|
+
JSCompiler_object_inline_stack_2401
|
|
9389
9143
|
),
|
|
9390
9144
|
scheduleUpdateOnFiber(
|
|
9391
|
-
|
|
9145
|
+
JSCompiler_object_inline_digest_2400,
|
|
9392
9146
|
current,
|
|
9393
|
-
|
|
9147
|
+
JSCompiler_object_inline_stack_2401
|
|
9394
9148
|
),
|
|
9395
9149
|
SelectiveHydrationException)
|
|
9396
9150
|
);
|
|
9397
|
-
|
|
9151
|
+
JSCompiler_object_inline_message_2399.data ===
|
|
9398
9152
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
|
9399
9153
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
9400
9154
|
current,
|
|
@@ -9402,14 +9156,14 @@
|
|
|
9402
9156
|
renderLanes
|
|
9403
9157
|
);
|
|
9404
9158
|
} else
|
|
9405
|
-
|
|
9159
|
+
JSCompiler_object_inline_message_2399.data ===
|
|
9406
9160
|
SUSPENSE_PENDING_START_DATA
|
|
9407
9161
|
? ((workInProgress.flags |= 192),
|
|
9408
9162
|
(workInProgress.child = current.child),
|
|
9409
9163
|
(workInProgress = null))
|
|
9410
9164
|
: ((current = prevState.treeContext),
|
|
9411
9165
|
(nextHydratableInstance = getNextHydratable(
|
|
9412
|
-
|
|
9166
|
+
JSCompiler_object_inline_message_2399.nextSibling
|
|
9413
9167
|
)),
|
|
9414
9168
|
(hydrationParentFiber = workInProgress),
|
|
9415
9169
|
(isHydrating = !0),
|
|
@@ -9427,57 +9181,57 @@
|
|
|
9427
9181
|
(treeContextProvider = workInProgress)),
|
|
9428
9182
|
(workInProgress = mountSuspensePrimaryChildren(
|
|
9429
9183
|
workInProgress,
|
|
9430
|
-
|
|
9184
|
+
JSCompiler_object_inline_stack_2401.children
|
|
9431
9185
|
)),
|
|
9432
9186
|
(workInProgress.flags |= 4096));
|
|
9433
9187
|
return workInProgress;
|
|
9434
9188
|
}
|
|
9435
|
-
if (
|
|
9189
|
+
if (JSCompiler_object_inline_componentStack_2402)
|
|
9436
9190
|
return (
|
|
9437
9191
|
reuseSuspenseHandlerOnStack(workInProgress),
|
|
9438
|
-
(
|
|
9439
|
-
|
|
9440
|
-
(
|
|
9192
|
+
(JSCompiler_object_inline_componentStack_2402 =
|
|
9193
|
+
JSCompiler_object_inline_stack_2401.fallback),
|
|
9194
|
+
(JSCompiler_object_inline_message_2399 = workInProgress.mode),
|
|
9441
9195
|
(JSCompiler_temp = current.child),
|
|
9442
9196
|
(instance = JSCompiler_temp.sibling),
|
|
9443
|
-
(
|
|
9197
|
+
(JSCompiler_object_inline_stack_2401 = createWorkInProgress(
|
|
9444
9198
|
JSCompiler_temp,
|
|
9445
9199
|
{
|
|
9446
9200
|
mode: "hidden",
|
|
9447
|
-
children:
|
|
9201
|
+
children: JSCompiler_object_inline_stack_2401.children
|
|
9448
9202
|
}
|
|
9449
9203
|
)),
|
|
9450
|
-
(
|
|
9204
|
+
(JSCompiler_object_inline_stack_2401.subtreeFlags =
|
|
9451
9205
|
JSCompiler_temp.subtreeFlags & 65011712),
|
|
9452
9206
|
null !== instance
|
|
9453
|
-
? (
|
|
9207
|
+
? (JSCompiler_object_inline_componentStack_2402 =
|
|
9454
9208
|
createWorkInProgress(
|
|
9455
9209
|
instance,
|
|
9456
|
-
|
|
9210
|
+
JSCompiler_object_inline_componentStack_2402
|
|
9457
9211
|
))
|
|
9458
|
-
: ((
|
|
9212
|
+
: ((JSCompiler_object_inline_componentStack_2402 =
|
|
9459
9213
|
createFiberFromFragment(
|
|
9460
|
-
|
|
9461
|
-
|
|
9214
|
+
JSCompiler_object_inline_componentStack_2402,
|
|
9215
|
+
JSCompiler_object_inline_message_2399,
|
|
9462
9216
|
renderLanes,
|
|
9463
9217
|
null
|
|
9464
9218
|
)),
|
|
9465
|
-
(
|
|
9466
|
-
(
|
|
9219
|
+
(JSCompiler_object_inline_componentStack_2402.flags |= 2)),
|
|
9220
|
+
(JSCompiler_object_inline_componentStack_2402.return =
|
|
9467
9221
|
workInProgress),
|
|
9468
|
-
(
|
|
9469
|
-
(
|
|
9470
|
-
|
|
9471
|
-
(workInProgress.child =
|
|
9472
|
-
(
|
|
9473
|
-
|
|
9474
|
-
(
|
|
9475
|
-
(
|
|
9476
|
-
null ===
|
|
9477
|
-
? (
|
|
9222
|
+
(JSCompiler_object_inline_stack_2401.return = workInProgress),
|
|
9223
|
+
(JSCompiler_object_inline_stack_2401.sibling =
|
|
9224
|
+
JSCompiler_object_inline_componentStack_2402),
|
|
9225
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2401),
|
|
9226
|
+
(JSCompiler_object_inline_stack_2401 =
|
|
9227
|
+
JSCompiler_object_inline_componentStack_2402),
|
|
9228
|
+
(JSCompiler_object_inline_componentStack_2402 = workInProgress.child),
|
|
9229
|
+
(JSCompiler_object_inline_message_2399 = current.child.memoizedState),
|
|
9230
|
+
null === JSCompiler_object_inline_message_2399
|
|
9231
|
+
? (JSCompiler_object_inline_message_2399 =
|
|
9478
9232
|
mountSuspenseOffscreenState(renderLanes))
|
|
9479
9233
|
: ((JSCompiler_temp =
|
|
9480
|
-
|
|
9234
|
+
JSCompiler_object_inline_message_2399.cachePool),
|
|
9481
9235
|
null !== JSCompiler_temp
|
|
9482
9236
|
? ((instance = CacheContext._currentValue),
|
|
9483
9237
|
(JSCompiler_temp =
|
|
@@ -9485,37 +9239,37 @@
|
|
|
9485
9239
|
? { parent: instance, pool: instance }
|
|
9486
9240
|
: JSCompiler_temp))
|
|
9487
9241
|
: (JSCompiler_temp = getSuspendedCache()),
|
|
9488
|
-
(
|
|
9242
|
+
(JSCompiler_object_inline_message_2399 = {
|
|
9489
9243
|
baseLanes:
|
|
9490
|
-
|
|
9244
|
+
JSCompiler_object_inline_message_2399.baseLanes | renderLanes,
|
|
9491
9245
|
cachePool: JSCompiler_temp
|
|
9492
9246
|
})),
|
|
9493
|
-
(
|
|
9494
|
-
|
|
9495
|
-
(
|
|
9247
|
+
(JSCompiler_object_inline_componentStack_2402.memoizedState =
|
|
9248
|
+
JSCompiler_object_inline_message_2399),
|
|
9249
|
+
(JSCompiler_object_inline_componentStack_2402.childLanes =
|
|
9496
9250
|
getRemainingWorkInPrimaryTree(
|
|
9497
9251
|
current,
|
|
9498
|
-
|
|
9252
|
+
JSCompiler_object_inline_digest_2400,
|
|
9499
9253
|
renderLanes
|
|
9500
9254
|
)),
|
|
9501
9255
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
9502
|
-
|
|
9256
|
+
JSCompiler_object_inline_stack_2401
|
|
9503
9257
|
);
|
|
9504
9258
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
9505
9259
|
renderLanes = current.child;
|
|
9506
9260
|
current = renderLanes.sibling;
|
|
9507
9261
|
renderLanes = createWorkInProgress(renderLanes, {
|
|
9508
9262
|
mode: "visible",
|
|
9509
|
-
children:
|
|
9263
|
+
children: JSCompiler_object_inline_stack_2401.children
|
|
9510
9264
|
});
|
|
9511
9265
|
renderLanes.return = workInProgress;
|
|
9512
9266
|
renderLanes.sibling = null;
|
|
9513
9267
|
null !== current &&
|
|
9514
|
-
((
|
|
9515
|
-
null ===
|
|
9268
|
+
((JSCompiler_object_inline_digest_2400 = workInProgress.deletions),
|
|
9269
|
+
null === JSCompiler_object_inline_digest_2400
|
|
9516
9270
|
? ((workInProgress.deletions = [current]),
|
|
9517
9271
|
(workInProgress.flags |= 16))
|
|
9518
|
-
:
|
|
9272
|
+
: JSCompiler_object_inline_digest_2400.push(current));
|
|
9519
9273
|
workInProgress.child = renderLanes;
|
|
9520
9274
|
workInProgress.memoizedState = null;
|
|
9521
9275
|
return renderLanes;
|
|
@@ -10878,15 +10632,24 @@
|
|
|
10878
10632
|
function commitAttachRef(finishedWork) {
|
|
10879
10633
|
var ref = finishedWork.ref;
|
|
10880
10634
|
if (null !== ref) {
|
|
10881
|
-
|
|
10635
|
+
switch (finishedWork.tag) {
|
|
10636
|
+
case 26:
|
|
10637
|
+
case 27:
|
|
10638
|
+
case 5:
|
|
10639
|
+
var instanceToUse = finishedWork.stateNode;
|
|
10640
|
+
break;
|
|
10641
|
+
default:
|
|
10642
|
+
instanceToUse = finishedWork.stateNode;
|
|
10643
|
+
}
|
|
10882
10644
|
if ("function" === typeof ref)
|
|
10883
10645
|
if (shouldProfile(finishedWork))
|
|
10884
10646
|
try {
|
|
10885
|
-
startEffectTimer(),
|
|
10647
|
+
startEffectTimer(),
|
|
10648
|
+
(finishedWork.refCleanup = ref(instanceToUse));
|
|
10886
10649
|
} finally {
|
|
10887
10650
|
recordEffectDuration();
|
|
10888
10651
|
}
|
|
10889
|
-
else finishedWork.refCleanup = ref(
|
|
10652
|
+
else finishedWork.refCleanup = ref(instanceToUse);
|
|
10890
10653
|
else
|
|
10891
10654
|
"string" === typeof ref
|
|
10892
10655
|
? console.error("String refs are no longer supported.")
|
|
@@ -10895,7 +10658,7 @@
|
|
|
10895
10658
|
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
|
10896
10659
|
getComponentNameFromFiber(finishedWork)
|
|
10897
10660
|
),
|
|
10898
|
-
(ref.current =
|
|
10661
|
+
(ref.current = instanceToUse);
|
|
10899
10662
|
}
|
|
10900
10663
|
}
|
|
10901
10664
|
function safelyAttachRef(current, nearestMountedAncestor) {
|
|
@@ -13185,144 +12948,390 @@
|
|
|
13185
12948
|
case REACT_OFFSCREEN_TYPE:
|
|
13186
12949
|
return createFiberFromOffscreen(pendingProps, mode, lanes, key);
|
|
13187
12950
|
default:
|
|
13188
|
-
if ("object" === typeof type && null !== type)
|
|
13189
|
-
switch (type.$$typeof) {
|
|
13190
|
-
case REACT_PROVIDER_TYPE:
|
|
13191
|
-
case REACT_CONTEXT_TYPE:
|
|
13192
|
-
fiberTag = 10;
|
|
13193
|
-
break a;
|
|
13194
|
-
case REACT_CONSUMER_TYPE:
|
|
13195
|
-
fiberTag = 9;
|
|
13196
|
-
break a;
|
|
13197
|
-
case REACT_FORWARD_REF_TYPE:
|
|
13198
|
-
fiberTag = 11;
|
|
13199
|
-
resolvedType = resolveForwardRefForHotReloading(resolvedType);
|
|
13200
|
-
break a;
|
|
13201
|
-
case REACT_MEMO_TYPE:
|
|
13202
|
-
fiberTag = 14;
|
|
13203
|
-
break a;
|
|
13204
|
-
case REACT_LAZY_TYPE:
|
|
13205
|
-
fiberTag = 16;
|
|
13206
|
-
resolvedType = null;
|
|
13207
|
-
break a;
|
|
13208
|
-
}
|
|
13209
|
-
resolvedType = "";
|
|
13210
|
-
if (
|
|
13211
|
-
void 0 === type ||
|
|
13212
|
-
("object" === typeof type &&
|
|
13213
|
-
null !== type &&
|
|
13214
|
-
0 === Object.keys(type).length)
|
|
13215
|
-
)
|
|
13216
|
-
resolvedType +=
|
|
13217
|
-
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
13218
|
-
null === type
|
|
13219
|
-
? (pendingProps = "null")
|
|
13220
|
-
: isArrayImpl(type)
|
|
13221
|
-
? (pendingProps = "array")
|
|
13222
|
-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
|
13223
|
-
? ((pendingProps =
|
|
13224
|
-
"<" +
|
|
13225
|
-
(getComponentNameFromType(type.type) || "Unknown") +
|
|
13226
|
-
" />"),
|
|
13227
|
-
(resolvedType =
|
|
13228
|
-
" Did you accidentally export a JSX literal instead of a component?"))
|
|
13229
|
-
: (pendingProps = typeof type);
|
|
13230
|
-
(fiberTag = owner ? getComponentNameFromOwner(owner) : null) &&
|
|
13231
|
-
(resolvedType +=
|
|
13232
|
-
"\n\nCheck the render method of `" + fiberTag + "`.");
|
|
13233
|
-
fiberTag = 29;
|
|
13234
|
-
pendingProps = Error(
|
|
13235
|
-
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
13236
|
-
(pendingProps + "." + resolvedType)
|
|
13237
|
-
);
|
|
13238
|
-
resolvedType = null;
|
|
12951
|
+
if ("object" === typeof type && null !== type)
|
|
12952
|
+
switch (type.$$typeof) {
|
|
12953
|
+
case REACT_PROVIDER_TYPE:
|
|
12954
|
+
case REACT_CONTEXT_TYPE:
|
|
12955
|
+
fiberTag = 10;
|
|
12956
|
+
break a;
|
|
12957
|
+
case REACT_CONSUMER_TYPE:
|
|
12958
|
+
fiberTag = 9;
|
|
12959
|
+
break a;
|
|
12960
|
+
case REACT_FORWARD_REF_TYPE:
|
|
12961
|
+
fiberTag = 11;
|
|
12962
|
+
resolvedType = resolveForwardRefForHotReloading(resolvedType);
|
|
12963
|
+
break a;
|
|
12964
|
+
case REACT_MEMO_TYPE:
|
|
12965
|
+
fiberTag = 14;
|
|
12966
|
+
break a;
|
|
12967
|
+
case REACT_LAZY_TYPE:
|
|
12968
|
+
fiberTag = 16;
|
|
12969
|
+
resolvedType = null;
|
|
12970
|
+
break a;
|
|
12971
|
+
}
|
|
12972
|
+
resolvedType = "";
|
|
12973
|
+
if (
|
|
12974
|
+
void 0 === type ||
|
|
12975
|
+
("object" === typeof type &&
|
|
12976
|
+
null !== type &&
|
|
12977
|
+
0 === Object.keys(type).length)
|
|
12978
|
+
)
|
|
12979
|
+
resolvedType +=
|
|
12980
|
+
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
12981
|
+
null === type
|
|
12982
|
+
? (pendingProps = "null")
|
|
12983
|
+
: isArrayImpl(type)
|
|
12984
|
+
? (pendingProps = "array")
|
|
12985
|
+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
|
12986
|
+
? ((pendingProps =
|
|
12987
|
+
"<" +
|
|
12988
|
+
(getComponentNameFromType(type.type) || "Unknown") +
|
|
12989
|
+
" />"),
|
|
12990
|
+
(resolvedType =
|
|
12991
|
+
" Did you accidentally export a JSX literal instead of a component?"))
|
|
12992
|
+
: (pendingProps = typeof type);
|
|
12993
|
+
(fiberTag = owner ? getComponentNameFromOwner(owner) : null) &&
|
|
12994
|
+
(resolvedType +=
|
|
12995
|
+
"\n\nCheck the render method of `" + fiberTag + "`.");
|
|
12996
|
+
fiberTag = 29;
|
|
12997
|
+
pendingProps = Error(
|
|
12998
|
+
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
12999
|
+
(pendingProps + "." + resolvedType)
|
|
13000
|
+
);
|
|
13001
|
+
resolvedType = null;
|
|
13002
|
+
}
|
|
13003
|
+
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
13004
|
+
key.elementType = type;
|
|
13005
|
+
key.type = resolvedType;
|
|
13006
|
+
key.lanes = lanes;
|
|
13007
|
+
key._debugOwner = owner;
|
|
13008
|
+
return key;
|
|
13009
|
+
}
|
|
13010
|
+
function createFiberFromElement(element, mode, lanes) {
|
|
13011
|
+
mode = createFiberFromTypeAndProps(
|
|
13012
|
+
element.type,
|
|
13013
|
+
element.key,
|
|
13014
|
+
element.props,
|
|
13015
|
+
element._owner,
|
|
13016
|
+
mode,
|
|
13017
|
+
lanes
|
|
13018
|
+
);
|
|
13019
|
+
mode._debugOwner = element._owner;
|
|
13020
|
+
return mode;
|
|
13021
|
+
}
|
|
13022
|
+
function createFiberFromFragment(elements, mode, lanes, key) {
|
|
13023
|
+
elements = createFiber(7, elements, key, mode);
|
|
13024
|
+
elements.lanes = lanes;
|
|
13025
|
+
return elements;
|
|
13026
|
+
}
|
|
13027
|
+
function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
|
|
13028
|
+
pendingProps = createFiber(22, pendingProps, key, mode);
|
|
13029
|
+
pendingProps.elementType = REACT_OFFSCREEN_TYPE;
|
|
13030
|
+
pendingProps.lanes = lanes;
|
|
13031
|
+
var primaryChildInstance = {
|
|
13032
|
+
_visibility: OffscreenVisible,
|
|
13033
|
+
_pendingVisibility: OffscreenVisible,
|
|
13034
|
+
_pendingMarkers: null,
|
|
13035
|
+
_retryCache: null,
|
|
13036
|
+
_transitions: null,
|
|
13037
|
+
_current: null,
|
|
13038
|
+
detach: function () {
|
|
13039
|
+
var instance = primaryChildInstance,
|
|
13040
|
+
fiber = instance._current;
|
|
13041
|
+
if (null === fiber)
|
|
13042
|
+
throw Error(
|
|
13043
|
+
"Calling Offscreen.detach before instance handle has been set."
|
|
13044
|
+
);
|
|
13045
|
+
if (0 === (instance._pendingVisibility & OffscreenDetached)) {
|
|
13046
|
+
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13047
|
+
null !== root &&
|
|
13048
|
+
((instance._pendingVisibility |= OffscreenDetached),
|
|
13049
|
+
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13050
|
+
}
|
|
13051
|
+
},
|
|
13052
|
+
attach: function () {
|
|
13053
|
+
var instance = primaryChildInstance,
|
|
13054
|
+
fiber = instance._current;
|
|
13055
|
+
if (null === fiber)
|
|
13056
|
+
throw Error(
|
|
13057
|
+
"Calling Offscreen.detach before instance handle has been set."
|
|
13058
|
+
);
|
|
13059
|
+
if (0 !== (instance._pendingVisibility & OffscreenDetached)) {
|
|
13060
|
+
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13061
|
+
null !== root &&
|
|
13062
|
+
((instance._pendingVisibility &= ~OffscreenDetached),
|
|
13063
|
+
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13064
|
+
}
|
|
13065
|
+
}
|
|
13066
|
+
};
|
|
13067
|
+
pendingProps.stateNode = primaryChildInstance;
|
|
13068
|
+
return pendingProps;
|
|
13069
|
+
}
|
|
13070
|
+
function createFiberFromText(content, mode, lanes) {
|
|
13071
|
+
content = createFiber(6, content, null, mode);
|
|
13072
|
+
content.lanes = lanes;
|
|
13073
|
+
return content;
|
|
13074
|
+
}
|
|
13075
|
+
function createFiberFromPortal(portal, mode, lanes) {
|
|
13076
|
+
mode = createFiber(
|
|
13077
|
+
4,
|
|
13078
|
+
null !== portal.children ? portal.children : [],
|
|
13079
|
+
portal.key,
|
|
13080
|
+
mode
|
|
13081
|
+
);
|
|
13082
|
+
mode.lanes = lanes;
|
|
13083
|
+
mode.stateNode = {
|
|
13084
|
+
containerInfo: portal.containerInfo,
|
|
13085
|
+
pendingChildren: null,
|
|
13086
|
+
implementation: portal.implementation
|
|
13087
|
+
};
|
|
13088
|
+
return mode;
|
|
13089
|
+
}
|
|
13090
|
+
function buildHydrationDiffNode(fiber, distanceFromLeaf) {
|
|
13091
|
+
if (null === fiber.return) {
|
|
13092
|
+
if (null === hydrationDiffRootDEV)
|
|
13093
|
+
hydrationDiffRootDEV = {
|
|
13094
|
+
fiber: fiber,
|
|
13095
|
+
children: [],
|
|
13096
|
+
serverProps: void 0,
|
|
13097
|
+
serverTail: [],
|
|
13098
|
+
distanceFromLeaf: distanceFromLeaf
|
|
13099
|
+
};
|
|
13100
|
+
else {
|
|
13101
|
+
if (hydrationDiffRootDEV.fiber !== fiber)
|
|
13102
|
+
throw Error(
|
|
13103
|
+
"Saw multiple hydration diff roots in a pass. This is a bug in React."
|
|
13104
|
+
);
|
|
13105
|
+
hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf &&
|
|
13106
|
+
(hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf);
|
|
13107
|
+
}
|
|
13108
|
+
return hydrationDiffRootDEV;
|
|
13109
|
+
}
|
|
13110
|
+
var siblings = buildHydrationDiffNode(
|
|
13111
|
+
fiber.return,
|
|
13112
|
+
distanceFromLeaf + 1
|
|
13113
|
+
).children;
|
|
13114
|
+
if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber)
|
|
13115
|
+
return (
|
|
13116
|
+
(siblings = siblings[siblings.length - 1]),
|
|
13117
|
+
siblings.distanceFromLeaf > distanceFromLeaf &&
|
|
13118
|
+
(siblings.distanceFromLeaf = distanceFromLeaf),
|
|
13119
|
+
siblings
|
|
13120
|
+
);
|
|
13121
|
+
distanceFromLeaf = {
|
|
13122
|
+
fiber: fiber,
|
|
13123
|
+
children: [],
|
|
13124
|
+
serverProps: void 0,
|
|
13125
|
+
serverTail: [],
|
|
13126
|
+
distanceFromLeaf: distanceFromLeaf
|
|
13127
|
+
};
|
|
13128
|
+
siblings.push(distanceFromLeaf);
|
|
13129
|
+
return distanceFromLeaf;
|
|
13130
|
+
}
|
|
13131
|
+
function warnNonHydratedInstance(fiber, rejectedCandidate) {
|
|
13132
|
+
didSuspendOrErrorDEV ||
|
|
13133
|
+
((fiber = buildHydrationDiffNode(fiber, 0)),
|
|
13134
|
+
(fiber.serverProps = null),
|
|
13135
|
+
null !== rejectedCandidate &&
|
|
13136
|
+
((rejectedCandidate =
|
|
13137
|
+
describeHydratableInstanceForDevWarnings(rejectedCandidate)),
|
|
13138
|
+
fiber.serverTail.push(rejectedCandidate)));
|
|
13139
|
+
}
|
|
13140
|
+
function throwOnHydrationMismatch(fiber) {
|
|
13141
|
+
var diff = "",
|
|
13142
|
+
diffRoot = hydrationDiffRootDEV;
|
|
13143
|
+
null !== diffRoot &&
|
|
13144
|
+
((hydrationDiffRootDEV = null), (diff = describeDiff(diffRoot)));
|
|
13145
|
+
queueHydrationError(
|
|
13146
|
+
createCapturedValueAtFiber(
|
|
13147
|
+
Error(
|
|
13148
|
+
"Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" +
|
|
13149
|
+
diff
|
|
13150
|
+
),
|
|
13151
|
+
fiber
|
|
13152
|
+
)
|
|
13153
|
+
);
|
|
13154
|
+
throw HydrationMismatchException;
|
|
13155
|
+
}
|
|
13156
|
+
function prepareToHydrateHostInstance(fiber) {
|
|
13157
|
+
var didHydrate = fiber.stateNode;
|
|
13158
|
+
var type = fiber.type,
|
|
13159
|
+
props = fiber.memoizedProps;
|
|
13160
|
+
didHydrate[internalInstanceKey] = fiber;
|
|
13161
|
+
didHydrate[internalPropsKey] = props;
|
|
13162
|
+
validatePropertiesInDevelopment(type, props);
|
|
13163
|
+
switch (type) {
|
|
13164
|
+
case "dialog":
|
|
13165
|
+
listenToNonDelegatedEvent("cancel", didHydrate);
|
|
13166
|
+
listenToNonDelegatedEvent("close", didHydrate);
|
|
13167
|
+
break;
|
|
13168
|
+
case "iframe":
|
|
13169
|
+
case "object":
|
|
13170
|
+
case "embed":
|
|
13171
|
+
listenToNonDelegatedEvent("load", didHydrate);
|
|
13172
|
+
break;
|
|
13173
|
+
case "video":
|
|
13174
|
+
case "audio":
|
|
13175
|
+
for (type = 0; type < mediaEventTypes.length; type++)
|
|
13176
|
+
listenToNonDelegatedEvent(mediaEventTypes[type], didHydrate);
|
|
13177
|
+
break;
|
|
13178
|
+
case "source":
|
|
13179
|
+
listenToNonDelegatedEvent("error", didHydrate);
|
|
13180
|
+
break;
|
|
13181
|
+
case "img":
|
|
13182
|
+
case "image":
|
|
13183
|
+
case "link":
|
|
13184
|
+
listenToNonDelegatedEvent("error", didHydrate);
|
|
13185
|
+
listenToNonDelegatedEvent("load", didHydrate);
|
|
13186
|
+
break;
|
|
13187
|
+
case "details":
|
|
13188
|
+
listenToNonDelegatedEvent("toggle", didHydrate);
|
|
13189
|
+
break;
|
|
13190
|
+
case "input":
|
|
13191
|
+
checkControlledValueProps("input", props);
|
|
13192
|
+
listenToNonDelegatedEvent("invalid", didHydrate);
|
|
13193
|
+
validateInputProps(didHydrate, props);
|
|
13194
|
+
initInput(
|
|
13195
|
+
didHydrate,
|
|
13196
|
+
props.value,
|
|
13197
|
+
props.defaultValue,
|
|
13198
|
+
props.checked,
|
|
13199
|
+
props.defaultChecked,
|
|
13200
|
+
props.type,
|
|
13201
|
+
props.name,
|
|
13202
|
+
!0
|
|
13203
|
+
);
|
|
13204
|
+
track(didHydrate);
|
|
13205
|
+
break;
|
|
13206
|
+
case "option":
|
|
13207
|
+
validateOptionProps(didHydrate, props);
|
|
13208
|
+
break;
|
|
13209
|
+
case "select":
|
|
13210
|
+
checkControlledValueProps("select", props);
|
|
13211
|
+
listenToNonDelegatedEvent("invalid", didHydrate);
|
|
13212
|
+
validateSelectProps(didHydrate, props);
|
|
13213
|
+
break;
|
|
13214
|
+
case "textarea":
|
|
13215
|
+
checkControlledValueProps("textarea", props),
|
|
13216
|
+
listenToNonDelegatedEvent("invalid", didHydrate),
|
|
13217
|
+
validateTextareaProps(didHydrate, props),
|
|
13218
|
+
initTextarea(
|
|
13219
|
+
didHydrate,
|
|
13220
|
+
props.value,
|
|
13221
|
+
props.defaultValue,
|
|
13222
|
+
props.children
|
|
13223
|
+
),
|
|
13224
|
+
track(didHydrate);
|
|
13225
|
+
}
|
|
13226
|
+
type = props.children;
|
|
13227
|
+
("string" !== typeof type &&
|
|
13228
|
+
"number" !== typeof type &&
|
|
13229
|
+
"bigint" !== typeof type) ||
|
|
13230
|
+
didHydrate.textContent === "" + type ||
|
|
13231
|
+
!0 === props.suppressHydrationWarning ||
|
|
13232
|
+
checkForUnmatchedText(didHydrate.textContent, type)
|
|
13233
|
+
? (null != props.popover &&
|
|
13234
|
+
(listenToNonDelegatedEvent("beforetoggle", didHydrate),
|
|
13235
|
+
listenToNonDelegatedEvent("toggle", didHydrate)),
|
|
13236
|
+
null != props.onScroll &&
|
|
13237
|
+
listenToNonDelegatedEvent("scroll", didHydrate),
|
|
13238
|
+
null != props.onScrollEnd &&
|
|
13239
|
+
listenToNonDelegatedEvent("scrollend", didHydrate),
|
|
13240
|
+
null != props.onClick && (didHydrate.onclick = noop$2),
|
|
13241
|
+
(didHydrate = !0))
|
|
13242
|
+
: (didHydrate = !1);
|
|
13243
|
+
didHydrate || throwOnHydrationMismatch(fiber);
|
|
13244
|
+
}
|
|
13245
|
+
function popToNextHostParent(fiber) {
|
|
13246
|
+
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
|
|
13247
|
+
switch (hydrationParentFiber.tag) {
|
|
13248
|
+
case 3:
|
|
13249
|
+
case 27:
|
|
13250
|
+
rootOrSingletonContext = !0;
|
|
13251
|
+
return;
|
|
13252
|
+
case 5:
|
|
13253
|
+
case 13:
|
|
13254
|
+
rootOrSingletonContext = !1;
|
|
13255
|
+
return;
|
|
13256
|
+
default:
|
|
13257
|
+
hydrationParentFiber = hydrationParentFiber.return;
|
|
13239
13258
|
}
|
|
13240
|
-
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
13241
|
-
key.elementType = type;
|
|
13242
|
-
key.type = resolvedType;
|
|
13243
|
-
key.lanes = lanes;
|
|
13244
|
-
key._debugOwner = owner;
|
|
13245
|
-
return key;
|
|
13246
13259
|
}
|
|
13247
|
-
function
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13260
|
+
function popHydrationState(fiber) {
|
|
13261
|
+
if (fiber !== hydrationParentFiber) return !1;
|
|
13262
|
+
if (!isHydrating)
|
|
13263
|
+
return popToNextHostParent(fiber), (isHydrating = !0), !1;
|
|
13264
|
+
var shouldClear = !1,
|
|
13265
|
+
JSCompiler_temp;
|
|
13266
|
+
if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
|
|
13267
|
+
if ((JSCompiler_temp = 5 === fiber.tag))
|
|
13268
|
+
(JSCompiler_temp = fiber.type),
|
|
13269
|
+
(JSCompiler_temp =
|
|
13270
|
+
!("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
|
|
13271
|
+
shouldSetTextContent(fiber.type, fiber.memoizedProps));
|
|
13272
|
+
JSCompiler_temp = !JSCompiler_temp;
|
|
13273
|
+
}
|
|
13274
|
+
JSCompiler_temp && (shouldClear = !0);
|
|
13275
|
+
if (shouldClear && nextHydratableInstance) {
|
|
13276
|
+
for (shouldClear = nextHydratableInstance; shouldClear; ) {
|
|
13277
|
+
JSCompiler_temp = buildHydrationDiffNode(fiber, 0);
|
|
13278
|
+
var description =
|
|
13279
|
+
describeHydratableInstanceForDevWarnings(shouldClear);
|
|
13280
|
+
JSCompiler_temp.serverTail.push(description);
|
|
13281
|
+
shouldClear =
|
|
13282
|
+
"Suspense" === description.type
|
|
13283
|
+
? getNextHydratableInstanceAfterSuspenseInstance(shouldClear)
|
|
13284
|
+
: getNextHydratable(shouldClear.nextSibling);
|
|
13285
|
+
}
|
|
13286
|
+
throwOnHydrationMismatch(fiber);
|
|
13287
|
+
}
|
|
13288
|
+
popToNextHostParent(fiber);
|
|
13289
|
+
if (13 === fiber.tag) {
|
|
13290
|
+
fiber = fiber.memoizedState;
|
|
13291
|
+
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
13292
|
+
if (!fiber)
|
|
13293
|
+
throw Error(
|
|
13294
|
+
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
|
|
13295
|
+
);
|
|
13296
|
+
nextHydratableInstance =
|
|
13297
|
+
getNextHydratableInstanceAfterSuspenseInstance(fiber);
|
|
13298
|
+
} else
|
|
13299
|
+
nextHydratableInstance = hydrationParentFiber
|
|
13300
|
+
? getNextHydratable(fiber.stateNode.nextSibling)
|
|
13301
|
+
: null;
|
|
13302
|
+
return !0;
|
|
13258
13303
|
}
|
|
13259
|
-
function
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
return elements;
|
|
13304
|
+
function resetHydrationState() {
|
|
13305
|
+
nextHydratableInstance = hydrationParentFiber = null;
|
|
13306
|
+
didSuspendOrErrorDEV = isHydrating = !1;
|
|
13263
13307
|
}
|
|
13264
|
-
function
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
detach: function () {
|
|
13276
|
-
var instance = primaryChildInstance,
|
|
13277
|
-
fiber = instance._current;
|
|
13278
|
-
if (null === fiber)
|
|
13279
|
-
throw Error(
|
|
13280
|
-
"Calling Offscreen.detach before instance handle has been set."
|
|
13281
|
-
);
|
|
13282
|
-
if (0 === (instance._pendingVisibility & OffscreenDetached)) {
|
|
13283
|
-
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13284
|
-
null !== root &&
|
|
13285
|
-
((instance._pendingVisibility |= OffscreenDetached),
|
|
13286
|
-
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13287
|
-
}
|
|
13288
|
-
},
|
|
13289
|
-
attach: function () {
|
|
13290
|
-
var instance = primaryChildInstance,
|
|
13291
|
-
fiber = instance._current;
|
|
13292
|
-
if (null === fiber)
|
|
13293
|
-
throw Error(
|
|
13294
|
-
"Calling Offscreen.detach before instance handle has been set."
|
|
13295
|
-
);
|
|
13296
|
-
if (0 !== (instance._pendingVisibility & OffscreenDetached)) {
|
|
13297
|
-
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13298
|
-
null !== root &&
|
|
13299
|
-
((instance._pendingVisibility &= ~OffscreenDetached),
|
|
13300
|
-
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13301
|
-
}
|
|
13302
|
-
}
|
|
13303
|
-
};
|
|
13304
|
-
pendingProps.stateNode = primaryChildInstance;
|
|
13305
|
-
return pendingProps;
|
|
13308
|
+
function upgradeHydrationErrorsToRecoverable() {
|
|
13309
|
+
var queuedErrors = hydrationErrors;
|
|
13310
|
+
null !== queuedErrors &&
|
|
13311
|
+
(null === workInProgressRootRecoverableErrors
|
|
13312
|
+
? (workInProgressRootRecoverableErrors = queuedErrors)
|
|
13313
|
+
: workInProgressRootRecoverableErrors.push.apply(
|
|
13314
|
+
workInProgressRootRecoverableErrors,
|
|
13315
|
+
queuedErrors
|
|
13316
|
+
),
|
|
13317
|
+
(hydrationErrors = null));
|
|
13318
|
+
return queuedErrors;
|
|
13306
13319
|
}
|
|
13307
|
-
function
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13320
|
+
function queueHydrationError(error) {
|
|
13321
|
+
null === hydrationErrors
|
|
13322
|
+
? (hydrationErrors = [error])
|
|
13323
|
+
: hydrationErrors.push(error);
|
|
13311
13324
|
}
|
|
13312
|
-
function
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
pendingChildren: null,
|
|
13323
|
-
implementation: portal.implementation
|
|
13324
|
-
};
|
|
13325
|
-
return mode;
|
|
13325
|
+
function emitPendingHydrationWarnings() {
|
|
13326
|
+
var diffRoot = hydrationDiffRootDEV;
|
|
13327
|
+
null !== diffRoot &&
|
|
13328
|
+
((hydrationDiffRootDEV = null),
|
|
13329
|
+
(diffRoot = describeDiff(diffRoot)),
|
|
13330
|
+
console.error(
|
|
13331
|
+
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
|
|
13332
|
+
"https://react.dev/link/hydration-mismatch",
|
|
13333
|
+
diffRoot
|
|
13334
|
+
));
|
|
13326
13335
|
}
|
|
13327
13336
|
function markUpdate(workInProgress) {
|
|
13328
13337
|
workInProgress.flags |= 4;
|
|
@@ -22320,6 +22329,7 @@
|
|
|
22320
22329
|
"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(
|
|
22321
22330
|
" "
|
|
22322
22331
|
),
|
|
22332
|
+
CapturedStacks = new WeakMap(),
|
|
22323
22333
|
OffscreenVisible = 1,
|
|
22324
22334
|
OffscreenDetached = 2,
|
|
22325
22335
|
OffscreenPassiveEffectsConnected = 4,
|
|
@@ -22396,26 +22406,6 @@
|
|
|
22396
22406
|
_currentRenderer: null,
|
|
22397
22407
|
_currentRenderer2: null
|
|
22398
22408
|
},
|
|
22399
|
-
CapturedStacks = new WeakMap(),
|
|
22400
|
-
forkStack = [],
|
|
22401
|
-
forkStackIndex = 0,
|
|
22402
|
-
treeForkProvider = null,
|
|
22403
|
-
treeForkCount = 0,
|
|
22404
|
-
idStack = [],
|
|
22405
|
-
idStackIndex = 0,
|
|
22406
|
-
treeContextProvider = null,
|
|
22407
|
-
treeContextId = 1,
|
|
22408
|
-
treeContextOverflow = "",
|
|
22409
|
-
hydrationParentFiber = null,
|
|
22410
|
-
nextHydratableInstance = null,
|
|
22411
|
-
isHydrating = !1,
|
|
22412
|
-
didSuspendOrErrorDEV = !1,
|
|
22413
|
-
hydrationDiffRootDEV = null,
|
|
22414
|
-
hydrationErrors = null,
|
|
22415
|
-
rootOrSingletonContext = !1,
|
|
22416
|
-
HydrationMismatchException = Error(
|
|
22417
|
-
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
|
|
22418
|
-
),
|
|
22419
22409
|
ReactStrictModeWarnings = {
|
|
22420
22410
|
recordUnsafeLifecycleWarnings: function () {},
|
|
22421
22411
|
flushPendingUnsafeLifecycleWarnings: function () {},
|
|
@@ -22670,6 +22660,15 @@
|
|
|
22670
22660
|
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
|
22671
22661
|
}
|
|
22672
22662
|
},
|
|
22663
|
+
forkStack = [],
|
|
22664
|
+
forkStackIndex = 0,
|
|
22665
|
+
treeForkProvider = null,
|
|
22666
|
+
treeForkCount = 0,
|
|
22667
|
+
idStack = [],
|
|
22668
|
+
idStackIndex = 0,
|
|
22669
|
+
treeContextProvider = null,
|
|
22670
|
+
treeContextId = 1,
|
|
22671
|
+
treeContextOverflow = "",
|
|
22673
22672
|
SuspenseException = Error(
|
|
22674
22673
|
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
|
|
22675
22674
|
),
|
|
@@ -23989,19 +23988,29 @@
|
|
|
23989
23988
|
} catch (e$7) {
|
|
23990
23989
|
hasBadMapPolyfill = !0;
|
|
23991
23990
|
}
|
|
23992
|
-
var
|
|
23993
|
-
|
|
23994
|
-
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
|
|
23998
|
-
|
|
23999
|
-
|
|
24000
|
-
|
|
24001
|
-
|
|
24002
|
-
|
|
24003
|
-
|
|
24004
|
-
|
|
23991
|
+
var hydrationParentFiber = null,
|
|
23992
|
+
nextHydratableInstance = null,
|
|
23993
|
+
isHydrating = !1,
|
|
23994
|
+
didSuspendOrErrorDEV = !1,
|
|
23995
|
+
hydrationDiffRootDEV = null,
|
|
23996
|
+
hydrationErrors = null,
|
|
23997
|
+
rootOrSingletonContext = !1,
|
|
23998
|
+
HydrationMismatchException = Error(
|
|
23999
|
+
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
|
|
24000
|
+
),
|
|
24001
|
+
DefaultAsyncDispatcher = {
|
|
24002
|
+
getCacheForType: function (resourceType) {
|
|
24003
|
+
var cache = readContext(CacheContext),
|
|
24004
|
+
cacheForType = cache.data.get(resourceType);
|
|
24005
|
+
void 0 === cacheForType &&
|
|
24006
|
+
((cacheForType = resourceType()),
|
|
24007
|
+
cache.data.set(resourceType, cacheForType));
|
|
24008
|
+
return cacheForType;
|
|
24009
|
+
},
|
|
24010
|
+
getOwner: function () {
|
|
24011
|
+
return current;
|
|
24012
|
+
}
|
|
24013
|
+
};
|
|
24005
24014
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
24006
24015
|
var symbolFor = Symbol.for;
|
|
24007
24016
|
symbolFor("selector.component");
|
|
@@ -24618,11 +24627,11 @@
|
|
|
24618
24627
|
};
|
|
24619
24628
|
(function () {
|
|
24620
24629
|
var isomorphicReactPackageVersion = React.version;
|
|
24621
|
-
if ("19.1.0-canary-
|
|
24630
|
+
if ("19.1.0-canary-cabd8a0e-20250113" !== isomorphicReactPackageVersion)
|
|
24622
24631
|
throw Error(
|
|
24623
24632
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
24624
24633
|
(isomorphicReactPackageVersion +
|
|
24625
|
-
"\n - react-dom: 19.1.0-canary-
|
|
24634
|
+
"\n - react-dom: 19.1.0-canary-cabd8a0e-20250113\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
24626
24635
|
);
|
|
24627
24636
|
})();
|
|
24628
24637
|
("function" === typeof Map &&
|
|
@@ -24659,10 +24668,10 @@
|
|
|
24659
24668
|
!(function () {
|
|
24660
24669
|
var internals = {
|
|
24661
24670
|
bundleType: 1,
|
|
24662
|
-
version: "19.1.0-canary-
|
|
24671
|
+
version: "19.1.0-canary-cabd8a0e-20250113",
|
|
24663
24672
|
rendererPackageName: "react-dom",
|
|
24664
24673
|
currentDispatcherRef: ReactSharedInternals,
|
|
24665
|
-
reconcilerVersion: "19.1.0-canary-
|
|
24674
|
+
reconcilerVersion: "19.1.0-canary-cabd8a0e-20250113"
|
|
24666
24675
|
};
|
|
24667
24676
|
internals.overrideHookState = overrideHookState;
|
|
24668
24677
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
|
@@ -25138,7 +25147,7 @@
|
|
|
25138
25147
|
exports.useFormStatus = function () {
|
|
25139
25148
|
return resolveDispatcher().useHostTransitionStatus();
|
|
25140
25149
|
};
|
|
25141
|
-
exports.version = "19.1.0-canary-
|
|
25150
|
+
exports.version = "19.1.0-canary-cabd8a0e-20250113";
|
|
25142
25151
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
25143
25152
|
"function" ===
|
|
25144
25153
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|