react-dom 19.1.0-canary-f83903bf-20250212 → 19.1.0-canary-32b0cad8-20250213

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.
@@ -4227,6 +4227,27 @@
4227
4227
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
4228
4228
  return sampleLines;
4229
4229
  }
4230
+ function formatOwnerStack(error) {
4231
+ var prevPrepareStackTrace = Error.prepareStackTrace;
4232
+ Error.prepareStackTrace = prepareStackTrace;
4233
+ error = error.stack;
4234
+ Error.prepareStackTrace = prevPrepareStackTrace;
4235
+ error.startsWith("Error: react-stack-top-frame\n") &&
4236
+ (error = error.slice(29));
4237
+ prevPrepareStackTrace = error.indexOf("\n");
4238
+ -1 !== prevPrepareStackTrace &&
4239
+ (error = error.slice(prevPrepareStackTrace + 1));
4240
+ prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4241
+ -1 !== prevPrepareStackTrace &&
4242
+ (prevPrepareStackTrace = error.lastIndexOf(
4243
+ "\n",
4244
+ prevPrepareStackTrace
4245
+ ));
4246
+ if (-1 !== prevPrepareStackTrace)
4247
+ error = error.slice(0, prevPrepareStackTrace);
4248
+ else return "";
4249
+ return error;
4250
+ }
4230
4251
  function describeComponentStackByType(type) {
4231
4252
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
4232
4253
  if ("function" === typeof type)
@@ -4266,18 +4287,6 @@
4266
4287
  }
4267
4288
  return "";
4268
4289
  }
4269
- function getStackByComponentStackNode(componentStack) {
4270
- try {
4271
- var info = "";
4272
- do
4273
- (info += describeComponentStackByType(componentStack.type)),
4274
- (componentStack = componentStack.parent);
4275
- while (componentStack);
4276
- return info;
4277
- } catch (x) {
4278
- return "\nError generating stack: " + x.message + "\n" + x.stack;
4279
- }
4280
- }
4281
4290
  function defaultErrorHandler(error) {
4282
4291
  if (
4283
4292
  "object" === typeof error &&
@@ -4401,7 +4410,9 @@
4401
4410
  null,
4402
4411
  emptyTreeContext,
4403
4412
  null,
4404
- !1
4413
+ !1,
4414
+ emptyContextObject,
4415
+ null
4405
4416
  );
4406
4417
  pushComponentStack(children);
4407
4418
  resumableState.pingedTasks.push(children);
@@ -4499,7 +4510,9 @@
4499
4510
  context,
4500
4511
  treeContext,
4501
4512
  componentStack,
4502
- isFallback
4513
+ isFallback,
4514
+ legacyContext,
4515
+ debugTask
4503
4516
  ) {
4504
4517
  request.allPendingTasks++;
4505
4518
  null === blockedBoundary
@@ -4525,6 +4538,7 @@
4525
4538
  thenableState: thenableState,
4526
4539
  isFallback: isFallback
4527
4540
  };
4541
+ task.debugTask = debugTask;
4528
4542
  abortSet.add(task);
4529
4543
  return task;
4530
4544
  }
@@ -4542,7 +4556,9 @@
4542
4556
  context,
4543
4557
  treeContext,
4544
4558
  componentStack,
4545
- isFallback
4559
+ isFallback,
4560
+ legacyContext,
4561
+ debugTask
4546
4562
  ) {
4547
4563
  request.allPendingTasks++;
4548
4564
  null === blockedBoundary
@@ -4569,6 +4585,7 @@
4569
4585
  thenableState: thenableState,
4570
4586
  isFallback: isFallback
4571
4587
  };
4588
+ task.debugTask = debugTask;
4572
4589
  abortSet.add(task);
4573
4590
  return task;
4574
4591
  }
@@ -4595,22 +4612,63 @@
4595
4612
  };
4596
4613
  }
4597
4614
  function getCurrentStackInDEV() {
4598
- return null === currentTaskInDEV ||
4599
- null === currentTaskInDEV.componentStack
4600
- ? ""
4601
- : getStackByComponentStackNode(currentTaskInDEV.componentStack);
4615
+ if (null === currentTaskInDEV || null === currentTaskInDEV.componentStack)
4616
+ return "";
4617
+ var componentStack = currentTaskInDEV.componentStack;
4618
+ try {
4619
+ var info = "";
4620
+ if ("string" === typeof componentStack.type)
4621
+ info += describeBuiltInComponentFrame(componentStack.type);
4622
+ else if ("function" === typeof componentStack.type) {
4623
+ if (!componentStack.owner) {
4624
+ var JSCompiler_temp_const = info,
4625
+ fn = componentStack.type,
4626
+ name = fn ? fn.displayName || fn.name : "";
4627
+ var JSCompiler_inline_result = name
4628
+ ? describeBuiltInComponentFrame(name)
4629
+ : "";
4630
+ info = JSCompiler_temp_const + JSCompiler_inline_result;
4631
+ }
4632
+ } else
4633
+ componentStack.owner ||
4634
+ (info += describeComponentStackByType(componentStack.type));
4635
+ for (; componentStack; )
4636
+ (JSCompiler_temp_const = null),
4637
+ null != componentStack.debugStack
4638
+ ? (JSCompiler_temp_const = formatOwnerStack(
4639
+ componentStack.debugStack
4640
+ ))
4641
+ : ((JSCompiler_inline_result = componentStack),
4642
+ null != JSCompiler_inline_result.stack &&
4643
+ (JSCompiler_temp_const =
4644
+ "string" !== typeof JSCompiler_inline_result.stack
4645
+ ? (JSCompiler_inline_result.stack = formatOwnerStack(
4646
+ JSCompiler_inline_result.stack
4647
+ ))
4648
+ : JSCompiler_inline_result.stack)),
4649
+ (componentStack = componentStack.owner) &&
4650
+ JSCompiler_temp_const &&
4651
+ (info += "\n" + JSCompiler_temp_const);
4652
+ var JSCompiler_inline_result$jscomp$0 = info;
4653
+ } catch (x) {
4654
+ JSCompiler_inline_result$jscomp$0 =
4655
+ "\nError generating stack: " + x.message + "\n" + x.stack;
4656
+ }
4657
+ return JSCompiler_inline_result$jscomp$0;
4602
4658
  }
4603
4659
  function pushServerComponentStack(task, debugInfo) {
4604
4660
  if (null != debugInfo)
4605
4661
  for (var i = 0; i < debugInfo.length; i++) {
4606
4662
  var componentInfo = debugInfo[i];
4607
4663
  "string" === typeof componentInfo.name &&
4608
- (task.componentStack = {
4664
+ void 0 !== componentInfo.debugStack &&
4665
+ ((task.componentStack = {
4609
4666
  parent: task.componentStack,
4610
4667
  type: componentInfo,
4611
4668
  owner: componentInfo.owner,
4612
- stack: null
4613
- });
4669
+ stack: componentInfo.debugStack
4670
+ }),
4671
+ (task.debugTask = componentInfo.debugTask));
4614
4672
  }
4615
4673
  }
4616
4674
  function pushComponentStack(task) {
@@ -4619,13 +4677,15 @@
4619
4677
  switch (node.$$typeof) {
4620
4678
  case REACT_ELEMENT_TYPE:
4621
4679
  var type = node.type,
4622
- owner = node._owner;
4680
+ owner = node._owner,
4681
+ stack = node._debugStack;
4623
4682
  pushServerComponentStack(task, node._debugInfo);
4683
+ task.debugTask = node._debugTask;
4624
4684
  task.componentStack = {
4625
4685
  parent: task.componentStack,
4626
4686
  type: type,
4627
4687
  owner: owner,
4628
- stack: null
4688
+ stack: stack
4629
4689
  };
4630
4690
  break;
4631
4691
  case REACT_LAZY_TYPE:
@@ -4636,14 +4696,24 @@
4636
4696
  pushServerComponentStack(task, node._debugInfo);
4637
4697
  }
4638
4698
  }
4639
- function getThrownInfo(node) {
4699
+ function getThrownInfo(node$jscomp$0) {
4640
4700
  var errorInfo = {};
4641
- node &&
4701
+ node$jscomp$0 &&
4642
4702
  Object.defineProperty(errorInfo, "componentStack", {
4643
4703
  configurable: !0,
4644
4704
  enumerable: !0,
4645
4705
  get: function () {
4646
- var stack = getStackByComponentStackNode(node);
4706
+ try {
4707
+ var info = "",
4708
+ node = node$jscomp$0;
4709
+ do
4710
+ (info += describeComponentStackByType(node.type)),
4711
+ (node = node.parent);
4712
+ while (node);
4713
+ var stack = info;
4714
+ } catch (x) {
4715
+ stack = "\nError generating stack: " + x.message + "\n" + x.stack;
4716
+ }
4647
4717
  Object.defineProperty(errorInfo, "componentStack", {
4648
4718
  value: stack
4649
4719
  });
@@ -4674,9 +4744,11 @@
4674
4744
  boundary.errorStack = null !== error ? wasAborted + error : null;
4675
4745
  boundary.errorComponentStack = thrownInfo.componentStack;
4676
4746
  }
4677
- function logRecoverableError(request, error, errorInfo) {
4747
+ function logRecoverableError(request, error, errorInfo, debugTask) {
4678
4748
  request = request.onError;
4679
- error = request(error, errorInfo);
4749
+ error = debugTask
4750
+ ? debugTask.run(request.bind(null, error, errorInfo))
4751
+ : request(error, errorInfo);
4680
4752
  if (null != error && "string" !== typeof error)
4681
4753
  console.error(
4682
4754
  'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',
@@ -4684,11 +4756,13 @@
4684
4756
  );
4685
4757
  else return error;
4686
4758
  }
4687
- function fatalError(request, error) {
4688
- var onShellError = request.onShellError,
4689
- onFatalError = request.onFatalError;
4690
- onShellError(error);
4691
- onFatalError(error);
4759
+ function fatalError(request, error, errorInfo, debugTask) {
4760
+ errorInfo = request.onShellError;
4761
+ var onFatalError = request.onFatalError;
4762
+ debugTask
4763
+ ? (debugTask.run(errorInfo.bind(null, error)),
4764
+ debugTask.run(onFatalError.bind(null, error)))
4765
+ : (errorInfo(error), onFatalError(error));
4692
4766
  null !== request.destination
4693
4767
  ? ((request.status = CLOSED), request.destination.destroy(error))
4694
4768
  : ((request.status = 13), (request.fatalError = error));
@@ -5268,7 +5342,9 @@
5268
5342
  task.context,
5269
5343
  task.treeContext,
5270
5344
  task.componentStack,
5271
- task.isFallback
5345
+ task.isFallback,
5346
+ emptyContextObject,
5347
+ task.debugTask
5272
5348
  );
5273
5349
  pushComponentStack(preambleTask);
5274
5350
  request.pingedTasks.push(preambleTask);
@@ -5453,7 +5529,9 @@
5453
5529
  task.context,
5454
5530
  task.treeContext,
5455
5531
  task.componentStack,
5456
- task.isFallback
5532
+ task.isFallback,
5533
+ emptyContextObject,
5534
+ task.debugTask
5457
5535
  );
5458
5536
  pushComponentStack(suspendedPrimaryTask);
5459
5537
  request.pingedTasks.push(suspendedPrimaryTask);
@@ -5492,7 +5570,8 @@
5492
5570
  var errorDigest = logRecoverableError(
5493
5571
  request,
5494
5572
  error,
5495
- thrownInfo
5573
+ thrownInfo,
5574
+ task.debugTask
5496
5575
  );
5497
5576
  encodeErrorForBoundary(
5498
5577
  newBoundary,
@@ -5524,7 +5603,9 @@
5524
5603
  task.context,
5525
5604
  task.treeContext,
5526
5605
  task.componentStack,
5527
- !0
5606
+ !0,
5607
+ emptyContextObject,
5608
+ task.debugTask
5528
5609
  );
5529
5610
  pushComponentStack(suspendedFallbackTask);
5530
5611
  request.pingedTasks.push(suspendedFallbackTask);
@@ -5676,15 +5757,183 @@
5676
5757
  (task.replay = prevReplay), (task.blockedSegment = null);
5677
5758
  }
5678
5759
  }
5760
+ function replayElement(
5761
+ request,
5762
+ task,
5763
+ keyPath,
5764
+ name,
5765
+ keyOrIndex,
5766
+ childIndex,
5767
+ type,
5768
+ props,
5769
+ ref,
5770
+ replay
5771
+ ) {
5772
+ childIndex = replay.nodes;
5773
+ for (var i = 0; i < childIndex.length; i++) {
5774
+ var node = childIndex[i];
5775
+ if (keyOrIndex === node[1]) {
5776
+ if (4 === node.length) {
5777
+ if (null !== name && name !== node[0])
5778
+ throw Error(
5779
+ "Expected the resume to render <" +
5780
+ node[0] +
5781
+ "> in this slot but instead it rendered <" +
5782
+ name +
5783
+ ">. The tree doesn't match so React will fallback to client rendering."
5784
+ );
5785
+ var childNodes = node[2];
5786
+ node = node[3];
5787
+ name = task.node;
5788
+ task.replay = { nodes: childNodes, slots: node, pendingTasks: 1 };
5789
+ try {
5790
+ renderElement(request, task, keyPath, type, props, ref);
5791
+ if (
5792
+ 1 === task.replay.pendingTasks &&
5793
+ 0 < task.replay.nodes.length
5794
+ )
5795
+ throw Error(
5796
+ "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5797
+ );
5798
+ task.replay.pendingTasks--;
5799
+ } catch (x) {
5800
+ if (
5801
+ "object" === typeof x &&
5802
+ null !== x &&
5803
+ (x === SuspenseException || "function" === typeof x.then)
5804
+ )
5805
+ throw (task.node === name && (task.replay = replay), x);
5806
+ task.replay.pendingTasks--;
5807
+ type = getThrownInfo(task.componentStack);
5808
+ props = request;
5809
+ request = task.blockedBoundary;
5810
+ keyPath = x;
5811
+ ref = node;
5812
+ node = logRecoverableError(props, keyPath, type, task.debugTask);
5813
+ abortRemainingReplayNodes(
5814
+ props,
5815
+ request,
5816
+ childNodes,
5817
+ ref,
5818
+ keyPath,
5819
+ node,
5820
+ type,
5821
+ !1
5822
+ );
5823
+ }
5824
+ task.replay = replay;
5825
+ } else {
5826
+ if (type !== REACT_SUSPENSE_TYPE)
5827
+ throw Error(
5828
+ "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
5829
+ (getComponentNameFromType(type) || "Unknown") +
5830
+ ">. The tree doesn't match so React will fallback to client rendering."
5831
+ );
5832
+ a: {
5833
+ replay = void 0;
5834
+ type = node[5];
5835
+ ref = node[2];
5836
+ name = node[3];
5837
+ keyOrIndex = null === node[4] ? [] : node[4][2];
5838
+ node = null === node[4] ? null : node[4][3];
5839
+ var prevKeyPath = task.keyPath,
5840
+ previousReplaySet = task.replay,
5841
+ parentBoundary = task.blockedBoundary,
5842
+ parentHoistableState = task.hoistableState,
5843
+ content = props.children,
5844
+ fallback = props.fallback,
5845
+ fallbackAbortSet = new Set();
5846
+ props =
5847
+ task.formatContext.insertionMode < HTML_MODE
5848
+ ? createSuspenseBoundary(
5849
+ request,
5850
+ fallbackAbortSet,
5851
+ createPreambleState(),
5852
+ createPreambleState()
5853
+ )
5854
+ : createSuspenseBoundary(
5855
+ request,
5856
+ fallbackAbortSet,
5857
+ null,
5858
+ null
5859
+ );
5860
+ props.parentFlushed = !0;
5861
+ props.rootSegmentID = type;
5862
+ task.blockedBoundary = props;
5863
+ task.hoistableState = props.contentState;
5864
+ task.keyPath = keyPath;
5865
+ task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
5866
+ try {
5867
+ renderNode(request, task, content, -1);
5868
+ if (
5869
+ 1 === task.replay.pendingTasks &&
5870
+ 0 < task.replay.nodes.length
5871
+ )
5872
+ throw Error(
5873
+ "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5874
+ );
5875
+ task.replay.pendingTasks--;
5876
+ if (0 === props.pendingTasks && props.status === PENDING) {
5877
+ props.status = COMPLETED;
5878
+ request.completedBoundaries.push(props);
5879
+ break a;
5880
+ }
5881
+ } catch (error) {
5882
+ (props.status = CLIENT_RENDERED),
5883
+ (childNodes = getThrownInfo(task.componentStack)),
5884
+ (replay = logRecoverableError(
5885
+ request,
5886
+ error,
5887
+ childNodes,
5888
+ task.debugTask
5889
+ )),
5890
+ encodeErrorForBoundary(props, replay, error, childNodes, !1),
5891
+ task.replay.pendingTasks--,
5892
+ request.clientRenderedBoundaries.push(props);
5893
+ } finally {
5894
+ (task.blockedBoundary = parentBoundary),
5895
+ (task.hoistableState = parentHoistableState),
5896
+ (task.replay = previousReplaySet),
5897
+ (task.keyPath = prevKeyPath);
5898
+ }
5899
+ props = createReplayTask(
5900
+ request,
5901
+ null,
5902
+ { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
5903
+ fallback,
5904
+ -1,
5905
+ parentBoundary,
5906
+ props.fallbackState,
5907
+ fallbackAbortSet,
5908
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
5909
+ task.formatContext,
5910
+ task.context,
5911
+ task.treeContext,
5912
+ task.componentStack,
5913
+ !0,
5914
+ emptyContextObject,
5915
+ task.debugTask
5916
+ );
5917
+ pushComponentStack(props);
5918
+ request.pingedTasks.push(props);
5919
+ }
5920
+ }
5921
+ childIndex.splice(i, 1);
5922
+ break;
5923
+ }
5924
+ }
5925
+ }
5679
5926
  function renderNodeDestructive(request, task, node, childIndex) {
5680
5927
  null !== task.replay && "number" === typeof task.replay.slots
5681
5928
  ? resumeNode(request, task, task.replay.slots, node, childIndex)
5682
5929
  : ((task.node = node),
5683
5930
  (task.childIndex = childIndex),
5684
5931
  (node = task.componentStack),
5932
+ (childIndex = task.debugTask),
5685
5933
  pushComponentStack(task),
5686
5934
  retryNode(request, task),
5687
- (task.componentStack = node));
5935
+ (task.componentStack = node),
5936
+ (task.debugTask = childIndex));
5688
5937
  }
5689
5938
  function retryNode(request, task) {
5690
5939
  var node = task.node,
@@ -5694,178 +5943,56 @@
5694
5943
  switch (node.$$typeof) {
5695
5944
  case REACT_ELEMENT_TYPE:
5696
5945
  var type = node.type,
5697
- key = node.key,
5698
- props = node.props;
5699
- node = props.ref;
5700
- var ref = void 0 !== node ? node : null,
5701
- name = getComponentNameFromType(type),
5702
- keyOrIndex =
5703
- null == key ? (-1 === childIndex ? 0 : childIndex) : key,
5704
- keyPath = [task.keyPath, name, keyOrIndex];
5705
- if (null !== task.replay) {
5706
- var replay = task.replay;
5707
- childIndex = replay.nodes;
5708
- for (node = 0; node < childIndex.length; node++)
5709
- if (((key = childIndex[node]), keyOrIndex === key[1])) {
5710
- if (4 === key.length) {
5711
- if (null !== name && name !== key[0])
5712
- throw Error(
5713
- "Expected the resume to render <" +
5714
- key[0] +
5715
- "> in this slot but instead it rendered <" +
5716
- name +
5717
- ">. The tree doesn't match so React will fallback to client rendering."
5718
- );
5719
- var childNodes = key[2];
5720
- key = key[3];
5721
- name = task.node;
5722
- task.replay = {
5723
- nodes: childNodes,
5724
- slots: key,
5725
- pendingTasks: 1
5726
- };
5727
- try {
5728
- renderElement(request, task, keyPath, type, props, ref);
5729
- if (
5730
- 1 === task.replay.pendingTasks &&
5731
- 0 < task.replay.nodes.length
5732
- )
5733
- throw Error(
5734
- "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5735
- );
5736
- task.replay.pendingTasks--;
5737
- } catch (x) {
5738
- if (
5739
- "object" === typeof x &&
5740
- null !== x &&
5741
- (x === SuspenseException ||
5742
- "function" === typeof x.then)
5743
- )
5744
- throw (
5745
- (task.node === name && (task.replay = replay), x)
5746
- );
5747
- task.replay.pendingTasks--;
5748
- props = getThrownInfo(task.componentStack);
5749
- erroredReplay(
5750
- request,
5751
- task.blockedBoundary,
5752
- x,
5753
- props,
5754
- childNodes,
5755
- key
5756
- );
5757
- }
5758
- task.replay = replay;
5759
- } else {
5760
- if (type !== REACT_SUSPENSE_TYPE)
5761
- throw Error(
5762
- "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
5763
- (getComponentNameFromType(type) || "Unknown") +
5764
- ">. The tree doesn't match so React will fallback to client rendering."
5765
- );
5766
- a: {
5767
- type = void 0;
5768
- ref = key[5];
5769
- replay = key[2];
5770
- name = key[3];
5771
- keyOrIndex = null === key[4] ? [] : key[4][2];
5772
- key = null === key[4] ? null : key[4][3];
5773
- var prevKeyPath = task.keyPath,
5774
- previousReplaySet = task.replay,
5775
- parentBoundary = task.blockedBoundary,
5776
- parentHoistableState = task.hoistableState,
5777
- content = props.children,
5778
- fallback = props.fallback,
5779
- fallbackAbortSet = new Set();
5780
- props =
5781
- task.formatContext.insertionMode < HTML_MODE
5782
- ? createSuspenseBoundary(
5783
- request,
5784
- fallbackAbortSet,
5785
- createPreambleState(),
5786
- createPreambleState()
5787
- )
5788
- : createSuspenseBoundary(
5789
- request,
5790
- fallbackAbortSet,
5791
- null,
5792
- null
5793
- );
5794
- props.parentFlushed = !0;
5795
- props.rootSegmentID = ref;
5796
- task.blockedBoundary = props;
5797
- task.hoistableState = props.contentState;
5798
- task.keyPath = keyPath;
5799
- task.replay = {
5800
- nodes: replay,
5801
- slots: name,
5802
- pendingTasks: 1
5803
- };
5804
- try {
5805
- renderNode(request, task, content, -1);
5806
- if (
5807
- 1 === task.replay.pendingTasks &&
5808
- 0 < task.replay.nodes.length
5809
- )
5810
- throw Error(
5811
- "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5812
- );
5813
- task.replay.pendingTasks--;
5814
- if (
5815
- 0 === props.pendingTasks &&
5816
- props.status === PENDING
5817
- ) {
5818
- props.status = COMPLETED;
5819
- request.completedBoundaries.push(props);
5820
- break a;
5821
- }
5822
- } catch (error) {
5823
- (props.status = CLIENT_RENDERED),
5824
- (childNodes = getThrownInfo(task.componentStack)),
5825
- (type = logRecoverableError(
5826
- request,
5827
- error,
5828
- childNodes
5829
- )),
5830
- encodeErrorForBoundary(
5831
- props,
5832
- type,
5833
- error,
5834
- childNodes,
5835
- !1
5836
- ),
5837
- task.replay.pendingTasks--,
5838
- request.clientRenderedBoundaries.push(props);
5839
- } finally {
5840
- (task.blockedBoundary = parentBoundary),
5841
- (task.hoistableState = parentHoistableState),
5842
- (task.replay = previousReplaySet),
5843
- (task.keyPath = prevKeyPath);
5844
- }
5845
- childNodes = createReplayTask(
5846
- request,
5847
- null,
5848
- { nodes: keyOrIndex, slots: key, pendingTasks: 0 },
5849
- fallback,
5850
- -1,
5851
- parentBoundary,
5852
- props.fallbackState,
5853
- fallbackAbortSet,
5854
- [keyPath[0], "Suspense Fallback", keyPath[2]],
5855
- task.formatContext,
5856
- task.context,
5857
- task.treeContext,
5858
- task.componentStack,
5859
- !0
5860
- );
5861
- pushComponentStack(childNodes);
5862
- request.pingedTasks.push(childNodes);
5863
- }
5864
- }
5865
- childIndex.splice(node, 1);
5866
- break;
5867
- }
5868
- } else renderElement(request, task, keyPath, type, props, ref);
5946
+ key = node.key;
5947
+ node = node.props;
5948
+ var refProp = node.ref;
5949
+ refProp = void 0 !== refProp ? refProp : null;
5950
+ var debugTask = task.debugTask,
5951
+ name = getComponentNameFromType(type);
5952
+ key = null == key ? (-1 === childIndex ? 0 : childIndex) : key;
5953
+ var keyPath = [task.keyPath, name, key];
5954
+ null !== task.replay
5955
+ ? debugTask
5956
+ ? debugTask.run(
5957
+ replayElement.bind(
5958
+ null,
5959
+ request,
5960
+ task,
5961
+ keyPath,
5962
+ name,
5963
+ key,
5964
+ childIndex,
5965
+ type,
5966
+ node,
5967
+ refProp,
5968
+ task.replay
5969
+ )
5970
+ )
5971
+ : replayElement(
5972
+ request,
5973
+ task,
5974
+ keyPath,
5975
+ name,
5976
+ key,
5977
+ childIndex,
5978
+ type,
5979
+ node,
5980
+ refProp,
5981
+ task.replay
5982
+ )
5983
+ : debugTask
5984
+ ? debugTask.run(
5985
+ renderElement.bind(
5986
+ null,
5987
+ request,
5988
+ task,
5989
+ keyPath,
5990
+ type,
5991
+ node,
5992
+ refProp
5993
+ )
5994
+ )
5995
+ : renderElement(request, task, keyPath, type, node, refProp);
5869
5996
  return;
5870
5997
  case REACT_PORTAL_TYPE:
5871
5998
  throw Error(
@@ -5882,21 +6009,20 @@
5882
6009
  return;
5883
6010
  }
5884
6011
  null === node || "object" !== typeof node
5885
- ? (props = null)
5886
- : ((childNodes =
6012
+ ? (key = null)
6013
+ : ((type =
5887
6014
  (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
5888
6015
  node["@@iterator"]),
5889
- (props = "function" === typeof childNodes ? childNodes : null));
5890
- if (props && (childNodes = props.call(node))) {
5891
- if (childNodes === node) {
6016
+ (key = "function" === typeof type ? type : null));
6017
+ if (key && (type = key.call(node))) {
6018
+ if (type === node) {
5892
6019
  if (
5893
6020
  -1 !== childIndex ||
5894
6021
  null === task.componentStack ||
5895
6022
  "function" !== typeof task.componentStack.type ||
5896
6023
  "[object GeneratorFunction]" !==
5897
6024
  Object.prototype.toString.call(task.componentStack.type) ||
5898
- "[object Generator]" !==
5899
- Object.prototype.toString.call(childNodes)
6025
+ "[object Generator]" !== Object.prototype.toString.call(type)
5900
6026
  )
5901
6027
  didWarnAboutGenerators ||
5902
6028
  console.error(
@@ -5904,18 +6030,18 @@
5904
6030
  ),
5905
6031
  (didWarnAboutGenerators = !0);
5906
6032
  } else
5907
- node.entries !== props ||
6033
+ node.entries !== key ||
5908
6034
  didWarnAboutMaps ||
5909
6035
  (console.error(
5910
6036
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
5911
6037
  ),
5912
6038
  (didWarnAboutMaps = !0));
5913
- node = childNodes.next();
6039
+ node = type.next();
5914
6040
  if (!node.done) {
5915
- props = [];
5916
- do props.push(node.value), (node = childNodes.next());
6041
+ key = [];
6042
+ do key.push(node.value), (node = type.next());
5917
6043
  while (!node.done);
5918
- renderChildrenArray(request, task, props, childIndex);
6044
+ renderChildrenArray(request, task, key, childIndex);
5919
6045
  }
5920
6046
  return;
5921
6047
  }
@@ -5936,39 +6062,39 @@
5936
6062
  node._currentValue,
5937
6063
  childIndex
5938
6064
  );
5939
- childIndex = Object.prototype.toString.call(node);
6065
+ request = Object.prototype.toString.call(node);
5940
6066
  throw Error(
5941
6067
  "Objects are not valid as a React child (found: " +
5942
- ("[object Object]" === childIndex
6068
+ ("[object Object]" === request
5943
6069
  ? "object with keys {" + Object.keys(node).join(", ") + "}"
5944
- : childIndex) +
6070
+ : request) +
5945
6071
  "). If you meant to render a collection of children, use an array instead."
5946
6072
  );
5947
6073
  }
5948
6074
  "string" === typeof node
5949
- ? ((childIndex = task.blockedSegment),
5950
- null !== childIndex &&
5951
- (childIndex.lastPushedText = pushTextInstance(
5952
- childIndex.chunks,
6075
+ ? ((task = task.blockedSegment),
6076
+ null !== task &&
6077
+ (task.lastPushedText = pushTextInstance(
6078
+ task.chunks,
5953
6079
  node,
5954
6080
  request.renderState,
5955
- childIndex.lastPushedText
6081
+ task.lastPushedText
5956
6082
  )))
5957
6083
  : "number" === typeof node || "bigint" === typeof node
5958
- ? ((childIndex = task.blockedSegment),
5959
- null !== childIndex &&
5960
- (childIndex.lastPushedText = pushTextInstance(
5961
- childIndex.chunks,
6084
+ ? ((task = task.blockedSegment),
6085
+ null !== task &&
6086
+ (task.lastPushedText = pushTextInstance(
6087
+ task.chunks,
5962
6088
  "" + node,
5963
6089
  request.renderState,
5964
- childIndex.lastPushedText
6090
+ task.lastPushedText
5965
6091
  )))
5966
6092
  : ("function" === typeof node &&
5967
- ((childIndex = node.displayName || node.name || "Component"),
6093
+ ((request = node.displayName || node.name || "Component"),
5968
6094
  console.error(
5969
6095
  "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",
5970
- childIndex,
5971
- childIndex
6096
+ request,
6097
+ request
5972
6098
  )),
5973
6099
  "symbol" === typeof node &&
5974
6100
  console.error(
@@ -5977,9 +6103,10 @@
5977
6103
  ));
5978
6104
  }
5979
6105
  }
5980
- function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6106
+ function renderChildrenArray(request, task, children, childIndex) {
5981
6107
  var prevKeyPath = task.keyPath,
5982
6108
  previousComponentStack = task.componentStack;
6109
+ var previousDebugTask = task.debugTask;
5983
6110
  pushServerComponentStack(task, task.node._debugInfo);
5984
6111
  if (
5985
6112
  -1 !== childIndex &&
@@ -5997,7 +6124,7 @@
5997
6124
  node = node[3];
5998
6125
  task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
5999
6126
  try {
6000
- renderChildrenArray(request$jscomp$0, task, children, -1);
6127
+ renderChildrenArray(request, task, children, -1);
6001
6128
  if (
6002
6129
  1 === task.replay.pendingTasks &&
6003
6130
  0 < task.replay.nodes.length
@@ -6014,14 +6141,25 @@
6014
6141
  )
6015
6142
  throw x;
6016
6143
  task.replay.pendingTasks--;
6017
- children = getThrownInfo(task.componentStack);
6018
- erroredReplay(
6019
- request$jscomp$0,
6020
- task.blockedBoundary,
6021
- x,
6144
+ var thrownInfo = getThrownInfo(task.componentStack);
6145
+ children = task.blockedBoundary;
6146
+ var error = x,
6147
+ resumeSlots = node;
6148
+ node = logRecoverableError(
6149
+ request,
6150
+ error,
6151
+ thrownInfo,
6152
+ task.debugTask
6153
+ );
6154
+ abortRemainingReplayNodes(
6155
+ request,
6022
6156
  children,
6023
6157
  childIndex,
6024
- node
6158
+ resumeSlots,
6159
+ error,
6160
+ node,
6161
+ thrownInfo,
6162
+ !1
6025
6163
  );
6026
6164
  }
6027
6165
  task.replay = replay;
@@ -6031,6 +6169,7 @@
6031
6169
  }
6032
6170
  task.keyPath = prevKeyPath;
6033
6171
  task.componentStack = previousComponentStack;
6172
+ task.debugTask = previousDebugTask;
6034
6173
  return;
6035
6174
  }
6036
6175
  replay = task.treeContext;
@@ -6039,98 +6178,98 @@
6039
6178
  null !== task.replay &&
6040
6179
  ((j = task.replay.slots), null !== j && "object" === typeof j)
6041
6180
  ) {
6042
- for (childIndex = 0; childIndex < replayNodes; childIndex++) {
6043
- node = children[childIndex];
6044
- task.treeContext = pushTreeContext(replay, replayNodes, childIndex);
6045
- var resumeSegmentID = j[childIndex];
6046
- "number" === typeof resumeSegmentID
6047
- ? (resumeNode(
6048
- request$jscomp$0,
6049
- task,
6050
- resumeSegmentID,
6051
- node,
6052
- childIndex
6053
- ),
6054
- delete j[childIndex])
6055
- : renderNode(request$jscomp$0, task, node, childIndex);
6056
- }
6181
+ for (childIndex = 0; childIndex < replayNodes; childIndex++)
6182
+ (node = children[childIndex]),
6183
+ (task.treeContext = pushTreeContext(
6184
+ replay,
6185
+ replayNodes,
6186
+ childIndex
6187
+ )),
6188
+ (error = j[childIndex]),
6189
+ "number" === typeof error
6190
+ ? (resumeNode(request, task, error, node, childIndex),
6191
+ delete j[childIndex])
6192
+ : renderNode(request, task, node, childIndex);
6057
6193
  task.treeContext = replay;
6058
6194
  task.keyPath = prevKeyPath;
6059
6195
  task.componentStack = previousComponentStack;
6196
+ task.debugTask = previousDebugTask;
6060
6197
  return;
6061
6198
  }
6062
6199
  for (j = 0; j < replayNodes; j++) {
6063
6200
  childIndex = children[j];
6064
- var request = request$jscomp$0;
6201
+ resumeSlots = request;
6065
6202
  node = task;
6066
- resumeSegmentID = childIndex;
6203
+ error = childIndex;
6067
6204
  if (
6068
- null !== resumeSegmentID &&
6069
- "object" === typeof resumeSegmentID &&
6070
- (resumeSegmentID.$$typeof === REACT_ELEMENT_TYPE ||
6071
- resumeSegmentID.$$typeof === REACT_PORTAL_TYPE) &&
6072
- resumeSegmentID._store &&
6073
- ((!resumeSegmentID._store.validated && null == resumeSegmentID.key) ||
6074
- 2 === resumeSegmentID._store.validated)
6205
+ null !== error &&
6206
+ "object" === typeof error &&
6207
+ (error.$$typeof === REACT_ELEMENT_TYPE ||
6208
+ error.$$typeof === REACT_PORTAL_TYPE) &&
6209
+ error._store &&
6210
+ ((!error._store.validated && null == error.key) ||
6211
+ 2 === error._store.validated)
6075
6212
  ) {
6076
- if ("object" !== typeof resumeSegmentID._store)
6213
+ if ("object" !== typeof error._store)
6077
6214
  throw Error(
6078
6215
  "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
6079
6216
  );
6080
- resumeSegmentID._store.validated = 1;
6081
- var didWarnForKey = request.didWarnForKey;
6082
- null == didWarnForKey &&
6083
- (didWarnForKey = request.didWarnForKey = new WeakSet());
6084
- request = node.componentStack;
6085
- if (null !== request && !didWarnForKey.has(request)) {
6086
- didWarnForKey.add(request);
6087
- var componentName = getComponentNameFromType(resumeSegmentID.type);
6088
- didWarnForKey = resumeSegmentID._owner;
6089
- var parentOwner = request.owner;
6090
- request = "";
6217
+ error._store.validated = 1;
6218
+ thrownInfo = resumeSlots.didWarnForKey;
6219
+ null == thrownInfo &&
6220
+ (thrownInfo = resumeSlots.didWarnForKey = new WeakSet());
6221
+ resumeSlots = node.componentStack;
6222
+ if (null !== resumeSlots && !thrownInfo.has(resumeSlots)) {
6223
+ thrownInfo.add(resumeSlots);
6224
+ var componentName = getComponentNameFromType(error.type);
6225
+ thrownInfo = error._owner;
6226
+ var parentOwner = resumeSlots.owner;
6227
+ resumeSlots = "";
6091
6228
  if (parentOwner && "undefined" !== typeof parentOwner.type) {
6092
6229
  var name = getComponentNameFromType(parentOwner.type);
6093
6230
  name &&
6094
- (request = "\n\nCheck the render method of `" + name + "`.");
6231
+ (resumeSlots =
6232
+ "\n\nCheck the render method of `" + name + "`.");
6095
6233
  }
6096
- request ||
6234
+ resumeSlots ||
6097
6235
  (componentName &&
6098
- (request =
6236
+ (resumeSlots =
6099
6237
  "\n\nCheck the top-level render call using <" +
6100
6238
  componentName +
6101
6239
  ">."));
6102
6240
  componentName = "";
6103
- null != didWarnForKey &&
6104
- parentOwner !== didWarnForKey &&
6241
+ null != thrownInfo &&
6242
+ parentOwner !== thrownInfo &&
6105
6243
  ((parentOwner = null),
6106
- "undefined" !== typeof didWarnForKey.type
6107
- ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
6108
- : "string" === typeof didWarnForKey.name &&
6109
- (parentOwner = didWarnForKey.name),
6244
+ "undefined" !== typeof thrownInfo.type
6245
+ ? (parentOwner = getComponentNameFromType(thrownInfo.type))
6246
+ : "string" === typeof thrownInfo.name &&
6247
+ (parentOwner = thrownInfo.name),
6110
6248
  parentOwner &&
6111
6249
  (componentName =
6112
6250
  " It was passed a child from " + parentOwner + "."));
6113
- didWarnForKey = node.componentStack;
6251
+ thrownInfo = node.componentStack;
6114
6252
  node.componentStack = {
6115
6253
  parent: node.componentStack,
6116
- type: resumeSegmentID.type,
6117
- owner: resumeSegmentID._owner,
6118
- stack: null
6254
+ type: error.type,
6255
+ owner: error._owner,
6256
+ stack: error._debugStack
6119
6257
  };
6120
6258
  console.error(
6121
6259
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6122
- request,
6260
+ resumeSlots,
6123
6261
  componentName
6124
6262
  );
6125
- node.componentStack = didWarnForKey;
6263
+ node.componentStack = thrownInfo;
6126
6264
  }
6127
6265
  }
6128
6266
  task.treeContext = pushTreeContext(replay, replayNodes, j);
6129
- renderNode(request$jscomp$0, task, childIndex, j);
6267
+ renderNode(request, task, childIndex, j);
6130
6268
  }
6131
6269
  task.treeContext = replay;
6132
6270
  task.keyPath = prevKeyPath;
6133
6271
  task.componentStack = previousComponentStack;
6272
+ task.debugTask = previousDebugTask;
6134
6273
  }
6135
6274
  function untrackBoundary(request, boundary) {
6136
6275
  request = request.trackedPostpones;
@@ -6156,7 +6295,9 @@
6156
6295
  task.context,
6157
6296
  task.treeContext,
6158
6297
  task.componentStack,
6159
- task.isFallback
6298
+ task.isFallback,
6299
+ emptyContextObject,
6300
+ task.debugTask
6160
6301
  );
6161
6302
  }
6162
6303
  function spawnNewSuspendedRenderTask(request, task, thenableState) {
@@ -6186,7 +6327,9 @@
6186
6327
  task.context,
6187
6328
  task.treeContext,
6188
6329
  task.componentStack,
6189
- task.isFallback
6330
+ task.isFallback,
6331
+ emptyContextObject,
6332
+ task.debugTask
6190
6333
  );
6191
6334
  }
6192
6335
  function renderNode(request, task, node, childIndex) {
@@ -6195,6 +6338,7 @@
6195
6338
  previousKeyPath = task.keyPath,
6196
6339
  previousTreeContext = task.treeContext,
6197
6340
  previousComponentStack = task.componentStack,
6341
+ previousDebugTask = task.debugTask,
6198
6342
  segment = task.blockedSegment;
6199
6343
  if (null === segment)
6200
6344
  try {
@@ -6221,6 +6365,7 @@
6221
6365
  task.keyPath = previousKeyPath;
6222
6366
  task.treeContext = previousTreeContext;
6223
6367
  task.componentStack = previousComponentStack;
6368
+ task.debugTask = previousDebugTask;
6224
6369
  switchContext(previousContext);
6225
6370
  return;
6226
6371
  }
@@ -6233,6 +6378,7 @@
6233
6378
  task.keyPath = previousKeyPath;
6234
6379
  task.treeContext = previousTreeContext;
6235
6380
  task.componentStack = previousComponentStack;
6381
+ task.debugTask = previousDebugTask;
6236
6382
  switchContext(previousContext);
6237
6383
  return;
6238
6384
  }
@@ -6267,6 +6413,7 @@
6267
6413
  task.keyPath = previousKeyPath;
6268
6414
  task.treeContext = previousTreeContext;
6269
6415
  task.componentStack = previousComponentStack;
6416
+ task.debugTask = previousDebugTask;
6270
6417
  switchContext(previousContext);
6271
6418
  return;
6272
6419
  }
@@ -6279,6 +6426,7 @@
6279
6426
  task.keyPath = previousKeyPath;
6280
6427
  task.treeContext = previousTreeContext;
6281
6428
  task.componentStack = previousComponentStack;
6429
+ task.debugTask = previousDebugTask;
6282
6430
  switchContext(previousContext);
6283
6431
  return;
6284
6432
  }
@@ -6292,26 +6440,6 @@
6292
6440
  switchContext(previousContext);
6293
6441
  throw node;
6294
6442
  }
6295
- function erroredReplay(
6296
- request,
6297
- boundary,
6298
- error,
6299
- errorInfo,
6300
- replayNodes,
6301
- resumeSlots
6302
- ) {
6303
- var errorDigest = logRecoverableError(request, error, errorInfo);
6304
- abortRemainingReplayNodes(
6305
- request,
6306
- boundary,
6307
- replayNodes,
6308
- resumeSlots,
6309
- error,
6310
- errorDigest,
6311
- errorInfo,
6312
- !1
6313
- );
6314
- }
6315
6443
  function abortTaskSoft(task) {
6316
6444
  var boundary = task.blockedBoundary;
6317
6445
  task = task.blockedSegment;
@@ -6400,14 +6528,14 @@
6400
6528
  if (13 !== request.status && request.status !== CLOSED) {
6401
6529
  boundary = task.replay;
6402
6530
  if (null === boundary) {
6403
- logRecoverableError(request, error, segment);
6404
- fatalError(request, error);
6531
+ logRecoverableError(request, error, segment, null);
6532
+ fatalError(request, error, segment, null);
6405
6533
  return;
6406
6534
  }
6407
6535
  boundary.pendingTasks--;
6408
6536
  0 === boundary.pendingTasks &&
6409
6537
  0 < boundary.nodes.length &&
6410
- ((task = logRecoverableError(request, error, segment)),
6538
+ ((task = logRecoverableError(request, error, segment, null)),
6411
6539
  abortRemainingReplayNodes(
6412
6540
  request,
6413
6541
  null,
@@ -6425,7 +6553,7 @@
6425
6553
  boundary.pendingTasks--,
6426
6554
  boundary.status !== CLIENT_RENDERED &&
6427
6555
  ((boundary.status = CLIENT_RENDERED),
6428
- (task = logRecoverableError(request, error, segment)),
6556
+ (task = logRecoverableError(request, error, segment, null)),
6429
6557
  (boundary.status = CLIENT_RENDERED),
6430
6558
  encodeErrorForBoundary(boundary, task, error, segment, !0),
6431
6559
  untrackBoundary(request, boundary),
@@ -6500,7 +6628,7 @@
6500
6628
  }
6501
6629
  }
6502
6630
  } catch (error) {
6503
- logRecoverableError(request, error, {});
6631
+ logRecoverableError(request, error, {}, null);
6504
6632
  }
6505
6633
  }
6506
6634
  function completeShell(request) {
@@ -6578,10 +6706,10 @@
6578
6706
  request.allPendingTasks--;
6579
6707
  0 === request.allPendingTasks && completeAll(request);
6580
6708
  }
6581
- function performWork(request$jscomp$1) {
6709
+ function performWork(request$jscomp$2) {
6582
6710
  if (
6583
- request$jscomp$1.status !== CLOSED &&
6584
- 13 !== request$jscomp$1.status
6711
+ request$jscomp$2.status !== CLOSED &&
6712
+ 13 !== request$jscomp$2.status
6585
6713
  ) {
6586
6714
  var prevContext = currentActiveSnapshot,
6587
6715
  prevDispatcher = ReactSharedInternals.H;
@@ -6589,16 +6717,16 @@
6589
6717
  var prevAsyncDispatcher = ReactSharedInternals.A;
6590
6718
  ReactSharedInternals.A = DefaultAsyncDispatcher;
6591
6719
  var prevRequest = currentRequest;
6592
- currentRequest = request$jscomp$1;
6720
+ currentRequest = request$jscomp$2;
6593
6721
  var prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
6594
6722
  ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
6595
6723
  var prevResumableState = currentResumableState;
6596
- currentResumableState = request$jscomp$1.resumableState;
6724
+ currentResumableState = request$jscomp$2.resumableState;
6597
6725
  try {
6598
- var pingedTasks = request$jscomp$1.pingedTasks,
6726
+ var pingedTasks = request$jscomp$2.pingedTasks,
6599
6727
  i;
6600
6728
  for (i = 0; i < pingedTasks.length; i++) {
6601
- var request = request$jscomp$1,
6729
+ var request = request$jscomp$2,
6602
6730
  task = pingedTasks[i],
6603
6731
  segment = task.blockedSegment;
6604
6732
  if (null === segment) {
@@ -6646,16 +6774,32 @@
6646
6774
  } else {
6647
6775
  request.replay.pendingTasks--;
6648
6776
  request.abortSet.delete(request);
6649
- var errorInfo = getThrownInfo(request.componentStack);
6650
- erroredReplay(
6651
- request$jscomp$0,
6652
- request.blockedBoundary,
6653
- 12 === request$jscomp$0.status
6654
- ? request$jscomp$0.fatalError
6655
- : x,
6656
- errorInfo,
6657
- request.replay.nodes,
6658
- request.replay.slots
6777
+ var errorInfo = getThrownInfo(request.componentStack),
6778
+ errorDigest = void 0,
6779
+ request$jscomp$1 = request$jscomp$0,
6780
+ boundary = request.blockedBoundary,
6781
+ error$jscomp$0 =
6782
+ 12 === request$jscomp$0.status
6783
+ ? request$jscomp$0.fatalError
6784
+ : x,
6785
+ errorInfo$jscomp$0 = errorInfo,
6786
+ replayNodes = request.replay.nodes,
6787
+ resumeSlots = request.replay.slots;
6788
+ errorDigest = logRecoverableError(
6789
+ request$jscomp$1,
6790
+ error$jscomp$0,
6791
+ errorInfo$jscomp$0,
6792
+ request.debugTask
6793
+ );
6794
+ abortRemainingReplayNodes(
6795
+ request$jscomp$1,
6796
+ boundary,
6797
+ replayNodes,
6798
+ resumeSlots,
6799
+ error$jscomp$0,
6800
+ errorDigest,
6801
+ errorInfo$jscomp$0,
6802
+ !1
6659
6803
  );
6660
6804
  request$jscomp$0.pendingRootTasks--;
6661
6805
  0 === request$jscomp$0.pendingRootTasks &&
@@ -6668,98 +6812,107 @@
6668
6812
  currentTaskInDEV = prevTaskInDEV;
6669
6813
  }
6670
6814
  }
6671
- } else {
6672
- request$jscomp$0 = prevTaskInDEV = void 0;
6673
- var task$jscomp$0 = task,
6674
- segment$jscomp$0 = segment;
6675
- if (segment$jscomp$0.status === PENDING) {
6676
- segment$jscomp$0.status = 6;
6677
- switchContext(task$jscomp$0.context);
6678
- request$jscomp$0 = currentTaskInDEV;
6679
- currentTaskInDEV = task$jscomp$0;
6680
- var childrenLength = segment$jscomp$0.children.length,
6681
- chunkLength = segment$jscomp$0.chunks.length;
6682
- try {
6683
- retryNode(request, task$jscomp$0),
6684
- segment$jscomp$0.lastPushedText &&
6685
- segment$jscomp$0.textEmbedded &&
6686
- segment$jscomp$0.chunks.push(textSeparator),
6687
- task$jscomp$0.abortSet.delete(task$jscomp$0),
6688
- (segment$jscomp$0.status = COMPLETED),
6689
- finishedTask(
6690
- request,
6691
- task$jscomp$0.blockedBoundary,
6692
- segment$jscomp$0
6693
- );
6694
- } catch (thrownValue) {
6695
- resetHooksState();
6696
- segment$jscomp$0.children.length = childrenLength;
6697
- segment$jscomp$0.chunks.length = chunkLength;
6698
- var x$jscomp$0 =
6699
- thrownValue === SuspenseException
6700
- ? getSuspendedThenable()
6701
- : 12 === request.status
6702
- ? request.fatalError
6703
- : thrownValue;
6704
- if (
6705
- "object" === typeof x$jscomp$0 &&
6706
- null !== x$jscomp$0 &&
6707
- "function" === typeof x$jscomp$0.then
6708
- ) {
6709
- segment$jscomp$0.status = PENDING;
6710
- task$jscomp$0.thenableState =
6711
- getThenableStateAfterSuspending();
6712
- var ping$jscomp$0 = task$jscomp$0.ping;
6713
- x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
6714
- } else {
6715
- var errorInfo$jscomp$0 = getThrownInfo(
6716
- task$jscomp$0.componentStack
6717
- );
6718
- task$jscomp$0.abortSet.delete(task$jscomp$0);
6719
- segment$jscomp$0.status = 4;
6720
- var boundary = task$jscomp$0.blockedBoundary;
6721
- prevTaskInDEV = logRecoverableError(
6722
- request,
6723
- x$jscomp$0,
6724
- errorInfo$jscomp$0
6725
- );
6726
- null === boundary
6727
- ? fatalError(request, x$jscomp$0)
6728
- : (boundary.pendingTasks--,
6729
- boundary.status !== CLIENT_RENDERED &&
6730
- ((boundary.status = CLIENT_RENDERED),
6731
- encodeErrorForBoundary(
6732
- boundary,
6733
- prevTaskInDEV,
6734
- x$jscomp$0,
6735
- errorInfo$jscomp$0,
6736
- !1
6815
+ } else if (
6816
+ ((request$jscomp$0 = prevTaskInDEV = void 0),
6817
+ (errorDigest = task),
6818
+ (request$jscomp$1 = segment),
6819
+ request$jscomp$1.status === PENDING)
6820
+ ) {
6821
+ request$jscomp$1.status = 6;
6822
+ switchContext(errorDigest.context);
6823
+ request$jscomp$0 = currentTaskInDEV;
6824
+ currentTaskInDEV = errorDigest;
6825
+ var childrenLength = request$jscomp$1.children.length,
6826
+ chunkLength = request$jscomp$1.chunks.length;
6827
+ try {
6828
+ retryNode(request, errorDigest),
6829
+ request$jscomp$1.lastPushedText &&
6830
+ request$jscomp$1.textEmbedded &&
6831
+ request$jscomp$1.chunks.push(textSeparator),
6832
+ errorDigest.abortSet.delete(errorDigest),
6833
+ (request$jscomp$1.status = COMPLETED),
6834
+ finishedTask(
6835
+ request,
6836
+ errorDigest.blockedBoundary,
6837
+ request$jscomp$1
6838
+ );
6839
+ } catch (thrownValue) {
6840
+ resetHooksState();
6841
+ request$jscomp$1.children.length = childrenLength;
6842
+ request$jscomp$1.chunks.length = chunkLength;
6843
+ var x$jscomp$0 =
6844
+ thrownValue === SuspenseException
6845
+ ? getSuspendedThenable()
6846
+ : 12 === request.status
6847
+ ? request.fatalError
6848
+ : thrownValue;
6849
+ if (
6850
+ "object" === typeof x$jscomp$0 &&
6851
+ null !== x$jscomp$0 &&
6852
+ "function" === typeof x$jscomp$0.then
6853
+ ) {
6854
+ request$jscomp$1.status = PENDING;
6855
+ errorDigest.thenableState = getThenableStateAfterSuspending();
6856
+ var ping$jscomp$0 = errorDigest.ping;
6857
+ x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
6858
+ } else {
6859
+ var errorInfo$jscomp$1 = getThrownInfo(
6860
+ errorDigest.componentStack
6861
+ );
6862
+ errorDigest.abortSet.delete(errorDigest);
6863
+ request$jscomp$1.status = 4;
6864
+ var boundary$jscomp$0 = errorDigest.blockedBoundary,
6865
+ debugTask = errorDigest.debugTask;
6866
+ prevTaskInDEV = logRecoverableError(
6867
+ request,
6868
+ x$jscomp$0,
6869
+ errorInfo$jscomp$1,
6870
+ debugTask
6871
+ );
6872
+ null === boundary$jscomp$0
6873
+ ? fatalError(
6874
+ request,
6875
+ x$jscomp$0,
6876
+ errorInfo$jscomp$1,
6877
+ debugTask
6878
+ )
6879
+ : (boundary$jscomp$0.pendingTasks--,
6880
+ boundary$jscomp$0.status !== CLIENT_RENDERED &&
6881
+ ((boundary$jscomp$0.status = CLIENT_RENDERED),
6882
+ encodeErrorForBoundary(
6883
+ boundary$jscomp$0,
6884
+ prevTaskInDEV,
6885
+ x$jscomp$0,
6886
+ errorInfo$jscomp$1,
6887
+ !1
6888
+ ),
6889
+ untrackBoundary(request, boundary$jscomp$0),
6890
+ boundary$jscomp$0.parentFlushed &&
6891
+ request.clientRenderedBoundaries.push(
6892
+ boundary$jscomp$0
6737
6893
  ),
6738
- untrackBoundary(request, boundary),
6739
- boundary.parentFlushed &&
6740
- request.clientRenderedBoundaries.push(boundary),
6741
- 0 === request.pendingRootTasks &&
6742
- null === request.trackedPostpones &&
6743
- null !== boundary.contentPreamble &&
6744
- preparePreamble(request)));
6745
- request.allPendingTasks--;
6746
- 0 === request.allPendingTasks && completeAll(request);
6747
- }
6748
- } finally {
6749
- currentTaskInDEV = request$jscomp$0;
6894
+ 0 === request.pendingRootTasks &&
6895
+ null === request.trackedPostpones &&
6896
+ null !== boundary$jscomp$0.contentPreamble &&
6897
+ preparePreamble(request)));
6898
+ request.allPendingTasks--;
6899
+ 0 === request.allPendingTasks && completeAll(request);
6750
6900
  }
6901
+ } finally {
6902
+ currentTaskInDEV = request$jscomp$0;
6751
6903
  }
6752
6904
  }
6753
6905
  }
6754
6906
  pingedTasks.splice(0, i);
6755
- null !== request$jscomp$1.destination &&
6907
+ null !== request$jscomp$2.destination &&
6756
6908
  flushCompletedQueues(
6757
- request$jscomp$1,
6758
- request$jscomp$1.destination
6909
+ request$jscomp$2,
6910
+ request$jscomp$2.destination
6759
6911
  );
6760
6912
  } catch (error) {
6761
- logRecoverableError(request$jscomp$1, error, {}),
6762
- fatalError(request$jscomp$1, error);
6913
+ (pingedTasks = {}),
6914
+ logRecoverableError(request$jscomp$2, error, pingedTasks, null),
6915
+ fatalError(request$jscomp$2, error, pingedTasks, null);
6763
6916
  } finally {
6764
6917
  (currentResumableState = prevResumableState),
6765
6918
  (ReactSharedInternals.H = prevDispatcher),
@@ -7449,7 +7602,9 @@
7449
7602
  try {
7450
7603
  flushCompletedQueues(request, destination);
7451
7604
  } catch (error) {
7452
- logRecoverableError(request, error, {}), fatalError(request, error);
7605
+ (destination = {}),
7606
+ logRecoverableError(request, error, destination, null),
7607
+ fatalError(request, error, destination, null);
7453
7608
  }
7454
7609
  }
7455
7610
  }
@@ -7475,16 +7630,18 @@
7475
7630
  null !== request.destination &&
7476
7631
  flushCompletedQueues(request, request.destination);
7477
7632
  } catch (error$4) {
7478
- logRecoverableError(request, error$4, {}), fatalError(request, error$4);
7633
+ (reason = {}),
7634
+ logRecoverableError(request, error$4, reason, null),
7635
+ fatalError(request, error$4, reason, null);
7479
7636
  }
7480
7637
  }
7481
7638
  function ensureCorrectIsomorphicReactVersion() {
7482
7639
  var isomorphicReactPackageVersion = React.version;
7483
- if ("19.1.0-canary-f83903bf-20250212" !== isomorphicReactPackageVersion)
7640
+ if ("19.1.0-canary-32b0cad8-20250213" !== isomorphicReactPackageVersion)
7484
7641
  throw Error(
7485
7642
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7486
7643
  (isomorphicReactPackageVersion +
7487
- "\n - react-dom: 19.1.0-canary-f83903bf-20250212\nLearn more: https://react.dev/warnings/version-mismatch")
7644
+ "\n - react-dom: 19.1.0-canary-32b0cad8-20250213\nLearn more: https://react.dev/warnings/version-mismatch")
7488
7645
  );
7489
7646
  }
7490
7647
  function createDrainHandler(destination, request) {
@@ -9133,5 +9290,5 @@
9133
9290
  }
9134
9291
  };
9135
9292
  };
9136
- exports.version = "19.1.0-canary-f83903bf-20250212";
9293
+ exports.version = "19.1.0-canary-32b0cad8-20250213";
9137
9294
  })();