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.
@@ -4183,6 +4183,27 @@
4183
4183
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
4184
4184
  return sampleLines;
4185
4185
  }
4186
+ function formatOwnerStack(error) {
4187
+ var prevPrepareStackTrace = Error.prepareStackTrace;
4188
+ Error.prepareStackTrace = void 0;
4189
+ error = error.stack;
4190
+ Error.prepareStackTrace = prevPrepareStackTrace;
4191
+ error.startsWith("Error: react-stack-top-frame\n") &&
4192
+ (error = error.slice(29));
4193
+ prevPrepareStackTrace = error.indexOf("\n");
4194
+ -1 !== prevPrepareStackTrace &&
4195
+ (error = error.slice(prevPrepareStackTrace + 1));
4196
+ prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4197
+ -1 !== prevPrepareStackTrace &&
4198
+ (prevPrepareStackTrace = error.lastIndexOf(
4199
+ "\n",
4200
+ prevPrepareStackTrace
4201
+ ));
4202
+ if (-1 !== prevPrepareStackTrace)
4203
+ error = error.slice(0, prevPrepareStackTrace);
4204
+ else return "";
4205
+ return error;
4206
+ }
4186
4207
  function describeComponentStackByType(type) {
4187
4208
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
4188
4209
  if ("function" === typeof type)
@@ -4222,18 +4243,6 @@
4222
4243
  }
4223
4244
  return "";
4224
4245
  }
4225
- function getStackByComponentStackNode(componentStack) {
4226
- try {
4227
- var info = "";
4228
- do
4229
- (info += describeComponentStackByType(componentStack.type)),
4230
- (componentStack = componentStack.parent);
4231
- while (componentStack);
4232
- return info;
4233
- } catch (x) {
4234
- return "\nError generating stack: " + x.message + "\n" + x.stack;
4235
- }
4236
- }
4237
4246
  function defaultErrorHandler(error) {
4238
4247
  if (
4239
4248
  "object" === typeof error &&
@@ -4348,7 +4357,9 @@
4348
4357
  null,
4349
4358
  emptyTreeContext,
4350
4359
  null,
4351
- !1
4360
+ !1,
4361
+ emptyContextObject,
4362
+ null
4352
4363
  );
4353
4364
  pushComponentStack(children);
4354
4365
  resumableState.pingedTasks.push(children);
@@ -4401,7 +4412,9 @@
4401
4412
  context,
4402
4413
  treeContext,
4403
4414
  componentStack,
4404
- isFallback
4415
+ isFallback,
4416
+ legacyContext,
4417
+ debugTask
4405
4418
  ) {
4406
4419
  request.allPendingTasks++;
4407
4420
  null === blockedBoundary
@@ -4427,6 +4440,7 @@
4427
4440
  thenableState: thenableState,
4428
4441
  isFallback: isFallback
4429
4442
  };
4443
+ task.debugTask = debugTask;
4430
4444
  abortSet.add(task);
4431
4445
  return task;
4432
4446
  }
@@ -4444,7 +4458,9 @@
4444
4458
  context,
4445
4459
  treeContext,
4446
4460
  componentStack,
4447
- isFallback
4461
+ isFallback,
4462
+ legacyContext,
4463
+ debugTask
4448
4464
  ) {
4449
4465
  request.allPendingTasks++;
4450
4466
  null === blockedBoundary
@@ -4471,6 +4487,7 @@
4471
4487
  thenableState: thenableState,
4472
4488
  isFallback: isFallback
4473
4489
  };
4490
+ task.debugTask = debugTask;
4474
4491
  abortSet.add(task);
4475
4492
  return task;
4476
4493
  }
@@ -4497,22 +4514,63 @@
4497
4514
  };
4498
4515
  }
4499
4516
  function getCurrentStackInDEV() {
4500
- return null === currentTaskInDEV ||
4501
- null === currentTaskInDEV.componentStack
4502
- ? ""
4503
- : getStackByComponentStackNode(currentTaskInDEV.componentStack);
4517
+ if (null === currentTaskInDEV || null === currentTaskInDEV.componentStack)
4518
+ return "";
4519
+ var componentStack = currentTaskInDEV.componentStack;
4520
+ try {
4521
+ var info = "";
4522
+ if ("string" === typeof componentStack.type)
4523
+ info += describeBuiltInComponentFrame(componentStack.type);
4524
+ else if ("function" === typeof componentStack.type) {
4525
+ if (!componentStack.owner) {
4526
+ var JSCompiler_temp_const = info,
4527
+ fn = componentStack.type,
4528
+ name = fn ? fn.displayName || fn.name : "";
4529
+ var JSCompiler_inline_result = name
4530
+ ? describeBuiltInComponentFrame(name)
4531
+ : "";
4532
+ info = JSCompiler_temp_const + JSCompiler_inline_result;
4533
+ }
4534
+ } else
4535
+ componentStack.owner ||
4536
+ (info += describeComponentStackByType(componentStack.type));
4537
+ for (; componentStack; )
4538
+ (JSCompiler_temp_const = null),
4539
+ null != componentStack.debugStack
4540
+ ? (JSCompiler_temp_const = formatOwnerStack(
4541
+ componentStack.debugStack
4542
+ ))
4543
+ : ((JSCompiler_inline_result = componentStack),
4544
+ null != JSCompiler_inline_result.stack &&
4545
+ (JSCompiler_temp_const =
4546
+ "string" !== typeof JSCompiler_inline_result.stack
4547
+ ? (JSCompiler_inline_result.stack = formatOwnerStack(
4548
+ JSCompiler_inline_result.stack
4549
+ ))
4550
+ : JSCompiler_inline_result.stack)),
4551
+ (componentStack = componentStack.owner) &&
4552
+ JSCompiler_temp_const &&
4553
+ (info += "\n" + JSCompiler_temp_const);
4554
+ var JSCompiler_inline_result$jscomp$0 = info;
4555
+ } catch (x) {
4556
+ JSCompiler_inline_result$jscomp$0 =
4557
+ "\nError generating stack: " + x.message + "\n" + x.stack;
4558
+ }
4559
+ return JSCompiler_inline_result$jscomp$0;
4504
4560
  }
4505
4561
  function pushServerComponentStack(task, debugInfo) {
4506
4562
  if (null != debugInfo)
4507
4563
  for (var i = 0; i < debugInfo.length; i++) {
4508
4564
  var componentInfo = debugInfo[i];
4509
4565
  "string" === typeof componentInfo.name &&
4510
- (task.componentStack = {
4566
+ void 0 !== componentInfo.debugStack &&
4567
+ ((task.componentStack = {
4511
4568
  parent: task.componentStack,
4512
4569
  type: componentInfo,
4513
4570
  owner: componentInfo.owner,
4514
- stack: null
4515
- });
4571
+ stack: componentInfo.debugStack
4572
+ }),
4573
+ (task.debugTask = componentInfo.debugTask));
4516
4574
  }
4517
4575
  }
4518
4576
  function pushComponentStack(task) {
@@ -4521,13 +4579,15 @@
4521
4579
  switch (node.$$typeof) {
4522
4580
  case REACT_ELEMENT_TYPE:
4523
4581
  var type = node.type,
4524
- owner = node._owner;
4582
+ owner = node._owner,
4583
+ stack = node._debugStack;
4525
4584
  pushServerComponentStack(task, node._debugInfo);
4585
+ task.debugTask = node._debugTask;
4526
4586
  task.componentStack = {
4527
4587
  parent: task.componentStack,
4528
4588
  type: type,
4529
4589
  owner: owner,
4530
- stack: null
4590
+ stack: stack
4531
4591
  };
4532
4592
  break;
4533
4593
  case REACT_LAZY_TYPE:
@@ -4538,14 +4598,24 @@
4538
4598
  pushServerComponentStack(task, node._debugInfo);
4539
4599
  }
4540
4600
  }
4541
- function getThrownInfo(node) {
4601
+ function getThrownInfo(node$jscomp$0) {
4542
4602
  var errorInfo = {};
4543
- node &&
4603
+ node$jscomp$0 &&
4544
4604
  Object.defineProperty(errorInfo, "componentStack", {
4545
4605
  configurable: !0,
4546
4606
  enumerable: !0,
4547
4607
  get: function () {
4548
- var stack = getStackByComponentStackNode(node);
4608
+ try {
4609
+ var info = "",
4610
+ node = node$jscomp$0;
4611
+ do
4612
+ (info += describeComponentStackByType(node.type)),
4613
+ (node = node.parent);
4614
+ while (node);
4615
+ var stack = info;
4616
+ } catch (x) {
4617
+ stack = "\nError generating stack: " + x.message + "\n" + x.stack;
4618
+ }
4549
4619
  Object.defineProperty(errorInfo, "componentStack", {
4550
4620
  value: stack
4551
4621
  });
@@ -4576,9 +4646,11 @@
4576
4646
  boundary.errorStack = null !== error ? wasAborted + error : null;
4577
4647
  boundary.errorComponentStack = thrownInfo.componentStack;
4578
4648
  }
4579
- function logRecoverableError(request, error, errorInfo) {
4649
+ function logRecoverableError(request, error, errorInfo, debugTask) {
4580
4650
  request = request.onError;
4581
- error = request(error, errorInfo);
4651
+ error = debugTask
4652
+ ? debugTask.run(request.bind(null, error, errorInfo))
4653
+ : request(error, errorInfo);
4582
4654
  if (null != error && "string" !== typeof error)
4583
4655
  console.error(
4584
4656
  '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',
@@ -4586,11 +4658,13 @@
4586
4658
  );
4587
4659
  else return error;
4588
4660
  }
4589
- function fatalError(request, error) {
4590
- var onShellError = request.onShellError,
4591
- onFatalError = request.onFatalError;
4592
- onShellError(error);
4593
- onFatalError(error);
4661
+ function fatalError(request, error, errorInfo, debugTask) {
4662
+ errorInfo = request.onShellError;
4663
+ var onFatalError = request.onFatalError;
4664
+ debugTask
4665
+ ? (debugTask.run(errorInfo.bind(null, error)),
4666
+ debugTask.run(onFatalError.bind(null, error)))
4667
+ : (errorInfo(error), onFatalError(error));
4594
4668
  null !== request.destination
4595
4669
  ? ((request.status = CLOSED), request.destination.destroy(error))
4596
4670
  : ((request.status = 13), (request.fatalError = error));
@@ -5170,7 +5244,9 @@
5170
5244
  task.context,
5171
5245
  task.treeContext,
5172
5246
  task.componentStack,
5173
- task.isFallback
5247
+ task.isFallback,
5248
+ emptyContextObject,
5249
+ task.debugTask
5174
5250
  );
5175
5251
  pushComponentStack(preambleTask);
5176
5252
  request.pingedTasks.push(preambleTask);
@@ -5358,7 +5434,9 @@
5358
5434
  task.context,
5359
5435
  task.treeContext,
5360
5436
  task.componentStack,
5361
- task.isFallback
5437
+ task.isFallback,
5438
+ emptyContextObject,
5439
+ task.debugTask
5362
5440
  );
5363
5441
  pushComponentStack(suspendedPrimaryTask);
5364
5442
  request.pingedTasks.push(suspendedPrimaryTask);
@@ -5400,7 +5478,8 @@
5400
5478
  var errorDigest = logRecoverableError(
5401
5479
  request,
5402
5480
  error,
5403
- thrownInfo
5481
+ thrownInfo,
5482
+ task.debugTask
5404
5483
  );
5405
5484
  encodeErrorForBoundary(
5406
5485
  newBoundary,
@@ -5432,7 +5511,9 @@
5432
5511
  task.context,
5433
5512
  task.treeContext,
5434
5513
  task.componentStack,
5435
- !0
5514
+ !0,
5515
+ emptyContextObject,
5516
+ task.debugTask
5436
5517
  );
5437
5518
  pushComponentStack(suspendedFallbackTask);
5438
5519
  request.pingedTasks.push(suspendedFallbackTask);
@@ -5584,15 +5665,183 @@
5584
5665
  (task.replay = prevReplay), (task.blockedSegment = null);
5585
5666
  }
5586
5667
  }
5668
+ function replayElement(
5669
+ request,
5670
+ task,
5671
+ keyPath,
5672
+ name,
5673
+ keyOrIndex,
5674
+ childIndex,
5675
+ type,
5676
+ props,
5677
+ ref,
5678
+ replay
5679
+ ) {
5680
+ childIndex = replay.nodes;
5681
+ for (var i = 0; i < childIndex.length; i++) {
5682
+ var node = childIndex[i];
5683
+ if (keyOrIndex === node[1]) {
5684
+ if (4 === node.length) {
5685
+ if (null !== name && name !== node[0])
5686
+ throw Error(
5687
+ "Expected the resume to render <" +
5688
+ node[0] +
5689
+ "> in this slot but instead it rendered <" +
5690
+ name +
5691
+ ">. The tree doesn't match so React will fallback to client rendering."
5692
+ );
5693
+ var childNodes = node[2];
5694
+ node = node[3];
5695
+ name = task.node;
5696
+ task.replay = { nodes: childNodes, slots: node, pendingTasks: 1 };
5697
+ try {
5698
+ renderElement(request, task, keyPath, type, props, ref);
5699
+ if (
5700
+ 1 === task.replay.pendingTasks &&
5701
+ 0 < task.replay.nodes.length
5702
+ )
5703
+ throw Error(
5704
+ "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5705
+ );
5706
+ task.replay.pendingTasks--;
5707
+ } catch (x) {
5708
+ if (
5709
+ "object" === typeof x &&
5710
+ null !== x &&
5711
+ (x === SuspenseException || "function" === typeof x.then)
5712
+ )
5713
+ throw (task.node === name && (task.replay = replay), x);
5714
+ task.replay.pendingTasks--;
5715
+ type = getThrownInfo(task.componentStack);
5716
+ props = request;
5717
+ request = task.blockedBoundary;
5718
+ keyPath = x;
5719
+ ref = node;
5720
+ node = logRecoverableError(props, keyPath, type, task.debugTask);
5721
+ abortRemainingReplayNodes(
5722
+ props,
5723
+ request,
5724
+ childNodes,
5725
+ ref,
5726
+ keyPath,
5727
+ node,
5728
+ type,
5729
+ !1
5730
+ );
5731
+ }
5732
+ task.replay = replay;
5733
+ } else {
5734
+ if (type !== REACT_SUSPENSE_TYPE)
5735
+ throw Error(
5736
+ "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
5737
+ (getComponentNameFromType(type) || "Unknown") +
5738
+ ">. The tree doesn't match so React will fallback to client rendering."
5739
+ );
5740
+ a: {
5741
+ replay = void 0;
5742
+ type = node[5];
5743
+ ref = node[2];
5744
+ name = node[3];
5745
+ keyOrIndex = null === node[4] ? [] : node[4][2];
5746
+ node = null === node[4] ? null : node[4][3];
5747
+ var prevKeyPath = task.keyPath,
5748
+ previousReplaySet = task.replay,
5749
+ parentBoundary = task.blockedBoundary,
5750
+ parentHoistableState = task.hoistableState,
5751
+ content = props.children,
5752
+ fallback = props.fallback,
5753
+ fallbackAbortSet = new Set();
5754
+ props =
5755
+ task.formatContext.insertionMode < HTML_MODE
5756
+ ? createSuspenseBoundary(
5757
+ request,
5758
+ fallbackAbortSet,
5759
+ createPreambleState(),
5760
+ createPreambleState()
5761
+ )
5762
+ : createSuspenseBoundary(
5763
+ request,
5764
+ fallbackAbortSet,
5765
+ null,
5766
+ null
5767
+ );
5768
+ props.parentFlushed = !0;
5769
+ props.rootSegmentID = type;
5770
+ task.blockedBoundary = props;
5771
+ task.hoistableState = props.contentState;
5772
+ task.keyPath = keyPath;
5773
+ task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
5774
+ try {
5775
+ renderNode(request, task, content, -1);
5776
+ if (
5777
+ 1 === task.replay.pendingTasks &&
5778
+ 0 < task.replay.nodes.length
5779
+ )
5780
+ throw Error(
5781
+ "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5782
+ );
5783
+ task.replay.pendingTasks--;
5784
+ if (0 === props.pendingTasks && props.status === PENDING) {
5785
+ props.status = COMPLETED;
5786
+ request.completedBoundaries.push(props);
5787
+ break a;
5788
+ }
5789
+ } catch (error) {
5790
+ (props.status = CLIENT_RENDERED),
5791
+ (childNodes = getThrownInfo(task.componentStack)),
5792
+ (replay = logRecoverableError(
5793
+ request,
5794
+ error,
5795
+ childNodes,
5796
+ task.debugTask
5797
+ )),
5798
+ encodeErrorForBoundary(props, replay, error, childNodes, !1),
5799
+ task.replay.pendingTasks--,
5800
+ request.clientRenderedBoundaries.push(props);
5801
+ } finally {
5802
+ (task.blockedBoundary = parentBoundary),
5803
+ (task.hoistableState = parentHoistableState),
5804
+ (task.replay = previousReplaySet),
5805
+ (task.keyPath = prevKeyPath);
5806
+ }
5807
+ props = createReplayTask(
5808
+ request,
5809
+ null,
5810
+ { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
5811
+ fallback,
5812
+ -1,
5813
+ parentBoundary,
5814
+ props.fallbackState,
5815
+ fallbackAbortSet,
5816
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
5817
+ task.formatContext,
5818
+ task.context,
5819
+ task.treeContext,
5820
+ task.componentStack,
5821
+ !0,
5822
+ emptyContextObject,
5823
+ task.debugTask
5824
+ );
5825
+ pushComponentStack(props);
5826
+ request.pingedTasks.push(props);
5827
+ }
5828
+ }
5829
+ childIndex.splice(i, 1);
5830
+ break;
5831
+ }
5832
+ }
5833
+ }
5587
5834
  function renderNodeDestructive(request, task, node, childIndex) {
5588
5835
  null !== task.replay && "number" === typeof task.replay.slots
5589
5836
  ? resumeNode(request, task, task.replay.slots, node, childIndex)
5590
5837
  : ((task.node = node),
5591
5838
  (task.childIndex = childIndex),
5592
5839
  (node = task.componentStack),
5840
+ (childIndex = task.debugTask),
5593
5841
  pushComponentStack(task),
5594
5842
  retryNode(request, task),
5595
- (task.componentStack = node));
5843
+ (task.componentStack = node),
5844
+ (task.debugTask = childIndex));
5596
5845
  }
5597
5846
  function retryNode(request, task) {
5598
5847
  var node = task.node,
@@ -5602,178 +5851,56 @@
5602
5851
  switch (node.$$typeof) {
5603
5852
  case REACT_ELEMENT_TYPE:
5604
5853
  var type = node.type,
5605
- key = node.key,
5606
- props = node.props;
5607
- node = props.ref;
5608
- var ref = void 0 !== node ? node : null,
5609
- name = getComponentNameFromType(type),
5610
- keyOrIndex =
5611
- null == key ? (-1 === childIndex ? 0 : childIndex) : key,
5612
- keyPath = [task.keyPath, name, keyOrIndex];
5613
- if (null !== task.replay) {
5614
- var replay = task.replay;
5615
- childIndex = replay.nodes;
5616
- for (node = 0; node < childIndex.length; node++)
5617
- if (((key = childIndex[node]), keyOrIndex === key[1])) {
5618
- if (4 === key.length) {
5619
- if (null !== name && name !== key[0])
5620
- throw Error(
5621
- "Expected the resume to render <" +
5622
- key[0] +
5623
- "> in this slot but instead it rendered <" +
5624
- name +
5625
- ">. The tree doesn't match so React will fallback to client rendering."
5626
- );
5627
- var childNodes = key[2];
5628
- key = key[3];
5629
- name = task.node;
5630
- task.replay = {
5631
- nodes: childNodes,
5632
- slots: key,
5633
- pendingTasks: 1
5634
- };
5635
- try {
5636
- renderElement(request, task, keyPath, type, props, ref);
5637
- if (
5638
- 1 === task.replay.pendingTasks &&
5639
- 0 < task.replay.nodes.length
5640
- )
5641
- throw Error(
5642
- "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5643
- );
5644
- task.replay.pendingTasks--;
5645
- } catch (x) {
5646
- if (
5647
- "object" === typeof x &&
5648
- null !== x &&
5649
- (x === SuspenseException ||
5650
- "function" === typeof x.then)
5651
- )
5652
- throw (
5653
- (task.node === name && (task.replay = replay), x)
5654
- );
5655
- task.replay.pendingTasks--;
5656
- props = getThrownInfo(task.componentStack);
5657
- erroredReplay(
5658
- request,
5659
- task.blockedBoundary,
5660
- x,
5661
- props,
5662
- childNodes,
5663
- key
5664
- );
5665
- }
5666
- task.replay = replay;
5667
- } else {
5668
- if (type !== REACT_SUSPENSE_TYPE)
5669
- throw Error(
5670
- "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
5671
- (getComponentNameFromType(type) || "Unknown") +
5672
- ">. The tree doesn't match so React will fallback to client rendering."
5673
- );
5674
- a: {
5675
- type = void 0;
5676
- ref = key[5];
5677
- replay = key[2];
5678
- name = key[3];
5679
- keyOrIndex = null === key[4] ? [] : key[4][2];
5680
- key = null === key[4] ? null : key[4][3];
5681
- var prevKeyPath = task.keyPath,
5682
- previousReplaySet = task.replay,
5683
- parentBoundary = task.blockedBoundary,
5684
- parentHoistableState = task.hoistableState,
5685
- content = props.children,
5686
- fallback = props.fallback,
5687
- fallbackAbortSet = new Set();
5688
- props =
5689
- task.formatContext.insertionMode < HTML_MODE
5690
- ? createSuspenseBoundary(
5691
- request,
5692
- fallbackAbortSet,
5693
- createPreambleState(),
5694
- createPreambleState()
5695
- )
5696
- : createSuspenseBoundary(
5697
- request,
5698
- fallbackAbortSet,
5699
- null,
5700
- null
5701
- );
5702
- props.parentFlushed = !0;
5703
- props.rootSegmentID = ref;
5704
- task.blockedBoundary = props;
5705
- task.hoistableState = props.contentState;
5706
- task.keyPath = keyPath;
5707
- task.replay = {
5708
- nodes: replay,
5709
- slots: name,
5710
- pendingTasks: 1
5711
- };
5712
- try {
5713
- renderNode(request, task, content, -1);
5714
- if (
5715
- 1 === task.replay.pendingTasks &&
5716
- 0 < task.replay.nodes.length
5717
- )
5718
- throw Error(
5719
- "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5720
- );
5721
- task.replay.pendingTasks--;
5722
- if (
5723
- 0 === props.pendingTasks &&
5724
- props.status === PENDING
5725
- ) {
5726
- props.status = COMPLETED;
5727
- request.completedBoundaries.push(props);
5728
- break a;
5729
- }
5730
- } catch (error) {
5731
- (props.status = CLIENT_RENDERED),
5732
- (childNodes = getThrownInfo(task.componentStack)),
5733
- (type = logRecoverableError(
5734
- request,
5735
- error,
5736
- childNodes
5737
- )),
5738
- encodeErrorForBoundary(
5739
- props,
5740
- type,
5741
- error,
5742
- childNodes,
5743
- !1
5744
- ),
5745
- task.replay.pendingTasks--,
5746
- request.clientRenderedBoundaries.push(props);
5747
- } finally {
5748
- (task.blockedBoundary = parentBoundary),
5749
- (task.hoistableState = parentHoistableState),
5750
- (task.replay = previousReplaySet),
5751
- (task.keyPath = prevKeyPath);
5752
- }
5753
- childNodes = createReplayTask(
5754
- request,
5755
- null,
5756
- { nodes: keyOrIndex, slots: key, pendingTasks: 0 },
5757
- fallback,
5758
- -1,
5759
- parentBoundary,
5760
- props.fallbackState,
5761
- fallbackAbortSet,
5762
- [keyPath[0], "Suspense Fallback", keyPath[2]],
5763
- task.formatContext,
5764
- task.context,
5765
- task.treeContext,
5766
- task.componentStack,
5767
- !0
5768
- );
5769
- pushComponentStack(childNodes);
5770
- request.pingedTasks.push(childNodes);
5771
- }
5772
- }
5773
- childIndex.splice(node, 1);
5774
- break;
5775
- }
5776
- } else renderElement(request, task, keyPath, type, props, ref);
5854
+ key = node.key;
5855
+ node = node.props;
5856
+ var refProp = node.ref;
5857
+ refProp = void 0 !== refProp ? refProp : null;
5858
+ var debugTask = task.debugTask,
5859
+ name = getComponentNameFromType(type);
5860
+ key = null == key ? (-1 === childIndex ? 0 : childIndex) : key;
5861
+ var keyPath = [task.keyPath, name, key];
5862
+ null !== task.replay
5863
+ ? debugTask
5864
+ ? debugTask.run(
5865
+ replayElement.bind(
5866
+ null,
5867
+ request,
5868
+ task,
5869
+ keyPath,
5870
+ name,
5871
+ key,
5872
+ childIndex,
5873
+ type,
5874
+ node,
5875
+ refProp,
5876
+ task.replay
5877
+ )
5878
+ )
5879
+ : replayElement(
5880
+ request,
5881
+ task,
5882
+ keyPath,
5883
+ name,
5884
+ key,
5885
+ childIndex,
5886
+ type,
5887
+ node,
5888
+ refProp,
5889
+ task.replay
5890
+ )
5891
+ : debugTask
5892
+ ? debugTask.run(
5893
+ renderElement.bind(
5894
+ null,
5895
+ request,
5896
+ task,
5897
+ keyPath,
5898
+ type,
5899
+ node,
5900
+ refProp
5901
+ )
5902
+ )
5903
+ : renderElement(request, task, keyPath, type, node, refProp);
5777
5904
  return;
5778
5905
  case REACT_PORTAL_TYPE:
5779
5906
  throw Error(
@@ -5790,21 +5917,20 @@
5790
5917
  return;
5791
5918
  }
5792
5919
  null === node || "object" !== typeof node
5793
- ? (props = null)
5794
- : ((childNodes =
5920
+ ? (key = null)
5921
+ : ((type =
5795
5922
  (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
5796
5923
  node["@@iterator"]),
5797
- (props = "function" === typeof childNodes ? childNodes : null));
5798
- if (props && (childNodes = props.call(node))) {
5799
- if (childNodes === node) {
5924
+ (key = "function" === typeof type ? type : null));
5925
+ if (key && (type = key.call(node))) {
5926
+ if (type === node) {
5800
5927
  if (
5801
5928
  -1 !== childIndex ||
5802
5929
  null === task.componentStack ||
5803
5930
  "function" !== typeof task.componentStack.type ||
5804
5931
  "[object GeneratorFunction]" !==
5805
5932
  Object.prototype.toString.call(task.componentStack.type) ||
5806
- "[object Generator]" !==
5807
- Object.prototype.toString.call(childNodes)
5933
+ "[object Generator]" !== Object.prototype.toString.call(type)
5808
5934
  )
5809
5935
  didWarnAboutGenerators ||
5810
5936
  console.error(
@@ -5812,18 +5938,18 @@
5812
5938
  ),
5813
5939
  (didWarnAboutGenerators = !0);
5814
5940
  } else
5815
- node.entries !== props ||
5941
+ node.entries !== key ||
5816
5942
  didWarnAboutMaps ||
5817
5943
  (console.error(
5818
5944
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
5819
5945
  ),
5820
5946
  (didWarnAboutMaps = !0));
5821
- node = childNodes.next();
5947
+ node = type.next();
5822
5948
  if (!node.done) {
5823
- props = [];
5824
- do props.push(node.value), (node = childNodes.next());
5949
+ key = [];
5950
+ do key.push(node.value), (node = type.next());
5825
5951
  while (!node.done);
5826
- renderChildrenArray(request, task, props, childIndex);
5952
+ renderChildrenArray(request, task, key, childIndex);
5827
5953
  }
5828
5954
  return;
5829
5955
  }
@@ -5844,39 +5970,39 @@
5844
5970
  node._currentValue2,
5845
5971
  childIndex
5846
5972
  );
5847
- childIndex = Object.prototype.toString.call(node);
5973
+ request = Object.prototype.toString.call(node);
5848
5974
  throw Error(
5849
5975
  "Objects are not valid as a React child (found: " +
5850
- ("[object Object]" === childIndex
5976
+ ("[object Object]" === request
5851
5977
  ? "object with keys {" + Object.keys(node).join(", ") + "}"
5852
- : childIndex) +
5978
+ : request) +
5853
5979
  "). If you meant to render a collection of children, use an array instead."
5854
5980
  );
5855
5981
  }
5856
5982
  "string" === typeof node
5857
- ? ((childIndex = task.blockedSegment),
5858
- null !== childIndex &&
5859
- (childIndex.lastPushedText = pushTextInstance(
5860
- childIndex.chunks,
5983
+ ? ((task = task.blockedSegment),
5984
+ null !== task &&
5985
+ (task.lastPushedText = pushTextInstance(
5986
+ task.chunks,
5861
5987
  node,
5862
5988
  request.renderState,
5863
- childIndex.lastPushedText
5989
+ task.lastPushedText
5864
5990
  )))
5865
5991
  : "number" === typeof node || "bigint" === typeof node
5866
- ? ((childIndex = task.blockedSegment),
5867
- null !== childIndex &&
5868
- (childIndex.lastPushedText = pushTextInstance(
5869
- childIndex.chunks,
5992
+ ? ((task = task.blockedSegment),
5993
+ null !== task &&
5994
+ (task.lastPushedText = pushTextInstance(
5995
+ task.chunks,
5870
5996
  "" + node,
5871
5997
  request.renderState,
5872
- childIndex.lastPushedText
5998
+ task.lastPushedText
5873
5999
  )))
5874
6000
  : ("function" === typeof node &&
5875
- ((childIndex = node.displayName || node.name || "Component"),
6001
+ ((request = node.displayName || node.name || "Component"),
5876
6002
  console.error(
5877
6003
  "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.",
5878
- childIndex,
5879
- childIndex
6004
+ request,
6005
+ request
5880
6006
  )),
5881
6007
  "symbol" === typeof node &&
5882
6008
  console.error(
@@ -5885,9 +6011,10 @@
5885
6011
  ));
5886
6012
  }
5887
6013
  }
5888
- function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6014
+ function renderChildrenArray(request, task, children, childIndex) {
5889
6015
  var prevKeyPath = task.keyPath,
5890
6016
  previousComponentStack = task.componentStack;
6017
+ var previousDebugTask = task.debugTask;
5891
6018
  pushServerComponentStack(task, task.node._debugInfo);
5892
6019
  if (
5893
6020
  -1 !== childIndex &&
@@ -5905,7 +6032,7 @@
5905
6032
  node = node[3];
5906
6033
  task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
5907
6034
  try {
5908
- renderChildrenArray(request$jscomp$0, task, children, -1);
6035
+ renderChildrenArray(request, task, children, -1);
5909
6036
  if (
5910
6037
  1 === task.replay.pendingTasks &&
5911
6038
  0 < task.replay.nodes.length
@@ -5922,14 +6049,25 @@
5922
6049
  )
5923
6050
  throw x;
5924
6051
  task.replay.pendingTasks--;
5925
- children = getThrownInfo(task.componentStack);
5926
- erroredReplay(
5927
- request$jscomp$0,
5928
- task.blockedBoundary,
5929
- x,
6052
+ var thrownInfo = getThrownInfo(task.componentStack);
6053
+ children = task.blockedBoundary;
6054
+ var error = x,
6055
+ resumeSlots = node;
6056
+ node = logRecoverableError(
6057
+ request,
6058
+ error,
6059
+ thrownInfo,
6060
+ task.debugTask
6061
+ );
6062
+ abortRemainingReplayNodes(
6063
+ request,
5930
6064
  children,
5931
6065
  childIndex,
5932
- node
6066
+ resumeSlots,
6067
+ error,
6068
+ node,
6069
+ thrownInfo,
6070
+ !1
5933
6071
  );
5934
6072
  }
5935
6073
  task.replay = replay;
@@ -5939,6 +6077,7 @@
5939
6077
  }
5940
6078
  task.keyPath = prevKeyPath;
5941
6079
  task.componentStack = previousComponentStack;
6080
+ task.debugTask = previousDebugTask;
5942
6081
  return;
5943
6082
  }
5944
6083
  replay = task.treeContext;
@@ -5947,98 +6086,98 @@
5947
6086
  null !== task.replay &&
5948
6087
  ((j = task.replay.slots), null !== j && "object" === typeof j)
5949
6088
  ) {
5950
- for (childIndex = 0; childIndex < replayNodes; childIndex++) {
5951
- node = children[childIndex];
5952
- task.treeContext = pushTreeContext(replay, replayNodes, childIndex);
5953
- var resumeSegmentID = j[childIndex];
5954
- "number" === typeof resumeSegmentID
5955
- ? (resumeNode(
5956
- request$jscomp$0,
5957
- task,
5958
- resumeSegmentID,
5959
- node,
5960
- childIndex
5961
- ),
5962
- delete j[childIndex])
5963
- : renderNode(request$jscomp$0, task, node, childIndex);
5964
- }
6089
+ for (childIndex = 0; childIndex < replayNodes; childIndex++)
6090
+ (node = children[childIndex]),
6091
+ (task.treeContext = pushTreeContext(
6092
+ replay,
6093
+ replayNodes,
6094
+ childIndex
6095
+ )),
6096
+ (error = j[childIndex]),
6097
+ "number" === typeof error
6098
+ ? (resumeNode(request, task, error, node, childIndex),
6099
+ delete j[childIndex])
6100
+ : renderNode(request, task, node, childIndex);
5965
6101
  task.treeContext = replay;
5966
6102
  task.keyPath = prevKeyPath;
5967
6103
  task.componentStack = previousComponentStack;
6104
+ task.debugTask = previousDebugTask;
5968
6105
  return;
5969
6106
  }
5970
6107
  for (j = 0; j < replayNodes; j++) {
5971
6108
  childIndex = children[j];
5972
- var request = request$jscomp$0;
6109
+ resumeSlots = request;
5973
6110
  node = task;
5974
- resumeSegmentID = childIndex;
6111
+ error = childIndex;
5975
6112
  if (
5976
- null !== resumeSegmentID &&
5977
- "object" === typeof resumeSegmentID &&
5978
- (resumeSegmentID.$$typeof === REACT_ELEMENT_TYPE ||
5979
- resumeSegmentID.$$typeof === REACT_PORTAL_TYPE) &&
5980
- resumeSegmentID._store &&
5981
- ((!resumeSegmentID._store.validated && null == resumeSegmentID.key) ||
5982
- 2 === resumeSegmentID._store.validated)
6113
+ null !== error &&
6114
+ "object" === typeof error &&
6115
+ (error.$$typeof === REACT_ELEMENT_TYPE ||
6116
+ error.$$typeof === REACT_PORTAL_TYPE) &&
6117
+ error._store &&
6118
+ ((!error._store.validated && null == error.key) ||
6119
+ 2 === error._store.validated)
5983
6120
  ) {
5984
- if ("object" !== typeof resumeSegmentID._store)
6121
+ if ("object" !== typeof error._store)
5985
6122
  throw Error(
5986
6123
  "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
5987
6124
  );
5988
- resumeSegmentID._store.validated = 1;
5989
- var didWarnForKey = request.didWarnForKey;
5990
- null == didWarnForKey &&
5991
- (didWarnForKey = request.didWarnForKey = new WeakSet());
5992
- request = node.componentStack;
5993
- if (null !== request && !didWarnForKey.has(request)) {
5994
- didWarnForKey.add(request);
5995
- var componentName = getComponentNameFromType(resumeSegmentID.type);
5996
- didWarnForKey = resumeSegmentID._owner;
5997
- var parentOwner = request.owner;
5998
- request = "";
6125
+ error._store.validated = 1;
6126
+ thrownInfo = resumeSlots.didWarnForKey;
6127
+ null == thrownInfo &&
6128
+ (thrownInfo = resumeSlots.didWarnForKey = new WeakSet());
6129
+ resumeSlots = node.componentStack;
6130
+ if (null !== resumeSlots && !thrownInfo.has(resumeSlots)) {
6131
+ thrownInfo.add(resumeSlots);
6132
+ var componentName = getComponentNameFromType(error.type);
6133
+ thrownInfo = error._owner;
6134
+ var parentOwner = resumeSlots.owner;
6135
+ resumeSlots = "";
5999
6136
  if (parentOwner && "undefined" !== typeof parentOwner.type) {
6000
6137
  var name = getComponentNameFromType(parentOwner.type);
6001
6138
  name &&
6002
- (request = "\n\nCheck the render method of `" + name + "`.");
6139
+ (resumeSlots =
6140
+ "\n\nCheck the render method of `" + name + "`.");
6003
6141
  }
6004
- request ||
6142
+ resumeSlots ||
6005
6143
  (componentName &&
6006
- (request =
6144
+ (resumeSlots =
6007
6145
  "\n\nCheck the top-level render call using <" +
6008
6146
  componentName +
6009
6147
  ">."));
6010
6148
  componentName = "";
6011
- null != didWarnForKey &&
6012
- parentOwner !== didWarnForKey &&
6149
+ null != thrownInfo &&
6150
+ parentOwner !== thrownInfo &&
6013
6151
  ((parentOwner = null),
6014
- "undefined" !== typeof didWarnForKey.type
6015
- ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
6016
- : "string" === typeof didWarnForKey.name &&
6017
- (parentOwner = didWarnForKey.name),
6152
+ "undefined" !== typeof thrownInfo.type
6153
+ ? (parentOwner = getComponentNameFromType(thrownInfo.type))
6154
+ : "string" === typeof thrownInfo.name &&
6155
+ (parentOwner = thrownInfo.name),
6018
6156
  parentOwner &&
6019
6157
  (componentName =
6020
6158
  " It was passed a child from " + parentOwner + "."));
6021
- didWarnForKey = node.componentStack;
6159
+ thrownInfo = node.componentStack;
6022
6160
  node.componentStack = {
6023
6161
  parent: node.componentStack,
6024
- type: resumeSegmentID.type,
6025
- owner: resumeSegmentID._owner,
6026
- stack: null
6162
+ type: error.type,
6163
+ owner: error._owner,
6164
+ stack: error._debugStack
6027
6165
  };
6028
6166
  console.error(
6029
6167
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6030
- request,
6168
+ resumeSlots,
6031
6169
  componentName
6032
6170
  );
6033
- node.componentStack = didWarnForKey;
6171
+ node.componentStack = thrownInfo;
6034
6172
  }
6035
6173
  }
6036
6174
  task.treeContext = pushTreeContext(replay, replayNodes, j);
6037
- renderNode(request$jscomp$0, task, childIndex, j);
6175
+ renderNode(request, task, childIndex, j);
6038
6176
  }
6039
6177
  task.treeContext = replay;
6040
6178
  task.keyPath = prevKeyPath;
6041
6179
  task.componentStack = previousComponentStack;
6180
+ task.debugTask = previousDebugTask;
6042
6181
  }
6043
6182
  function untrackBoundary(request, boundary) {
6044
6183
  request = request.trackedPostpones;
@@ -6064,7 +6203,9 @@
6064
6203
  task.context,
6065
6204
  task.treeContext,
6066
6205
  task.componentStack,
6067
- task.isFallback
6206
+ task.isFallback,
6207
+ emptyContextObject,
6208
+ task.debugTask
6068
6209
  );
6069
6210
  }
6070
6211
  function spawnNewSuspendedRenderTask(request, task, thenableState) {
@@ -6094,7 +6235,9 @@
6094
6235
  task.context,
6095
6236
  task.treeContext,
6096
6237
  task.componentStack,
6097
- task.isFallback
6238
+ task.isFallback,
6239
+ emptyContextObject,
6240
+ task.debugTask
6098
6241
  );
6099
6242
  }
6100
6243
  function renderNode(request, task, node, childIndex) {
@@ -6103,6 +6246,7 @@
6103
6246
  previousKeyPath = task.keyPath,
6104
6247
  previousTreeContext = task.treeContext,
6105
6248
  previousComponentStack = task.componentStack,
6249
+ previousDebugTask = task.debugTask,
6106
6250
  segment = task.blockedSegment;
6107
6251
  if (null === segment)
6108
6252
  try {
@@ -6129,6 +6273,7 @@
6129
6273
  task.keyPath = previousKeyPath;
6130
6274
  task.treeContext = previousTreeContext;
6131
6275
  task.componentStack = previousComponentStack;
6276
+ task.debugTask = previousDebugTask;
6132
6277
  switchContext(previousContext);
6133
6278
  return;
6134
6279
  }
@@ -6141,6 +6286,7 @@
6141
6286
  task.keyPath = previousKeyPath;
6142
6287
  task.treeContext = previousTreeContext;
6143
6288
  task.componentStack = previousComponentStack;
6289
+ task.debugTask = previousDebugTask;
6144
6290
  switchContext(previousContext);
6145
6291
  return;
6146
6292
  }
@@ -6175,6 +6321,7 @@
6175
6321
  task.keyPath = previousKeyPath;
6176
6322
  task.treeContext = previousTreeContext;
6177
6323
  task.componentStack = previousComponentStack;
6324
+ task.debugTask = previousDebugTask;
6178
6325
  switchContext(previousContext);
6179
6326
  return;
6180
6327
  }
@@ -6187,6 +6334,7 @@
6187
6334
  task.keyPath = previousKeyPath;
6188
6335
  task.treeContext = previousTreeContext;
6189
6336
  task.componentStack = previousComponentStack;
6337
+ task.debugTask = previousDebugTask;
6190
6338
  switchContext(previousContext);
6191
6339
  return;
6192
6340
  }
@@ -6200,26 +6348,6 @@
6200
6348
  switchContext(previousContext);
6201
6349
  throw node;
6202
6350
  }
6203
- function erroredReplay(
6204
- request,
6205
- boundary,
6206
- error,
6207
- errorInfo,
6208
- replayNodes,
6209
- resumeSlots
6210
- ) {
6211
- var errorDigest = logRecoverableError(request, error, errorInfo);
6212
- abortRemainingReplayNodes(
6213
- request,
6214
- boundary,
6215
- replayNodes,
6216
- resumeSlots,
6217
- error,
6218
- errorDigest,
6219
- errorInfo,
6220
- !1
6221
- );
6222
- }
6223
6351
  function abortTaskSoft(task) {
6224
6352
  var boundary = task.blockedBoundary;
6225
6353
  task = task.blockedSegment;
@@ -6308,14 +6436,14 @@
6308
6436
  if (13 !== request.status && request.status !== CLOSED) {
6309
6437
  boundary = task.replay;
6310
6438
  if (null === boundary) {
6311
- logRecoverableError(request, error, segment);
6312
- fatalError(request, error);
6439
+ logRecoverableError(request, error, segment, null);
6440
+ fatalError(request, error, segment, null);
6313
6441
  return;
6314
6442
  }
6315
6443
  boundary.pendingTasks--;
6316
6444
  0 === boundary.pendingTasks &&
6317
6445
  0 < boundary.nodes.length &&
6318
- ((task = logRecoverableError(request, error, segment)),
6446
+ ((task = logRecoverableError(request, error, segment, null)),
6319
6447
  abortRemainingReplayNodes(
6320
6448
  request,
6321
6449
  null,
@@ -6333,7 +6461,7 @@
6333
6461
  boundary.pendingTasks--,
6334
6462
  boundary.status !== CLIENT_RENDERED &&
6335
6463
  ((boundary.status = CLIENT_RENDERED),
6336
- (task = logRecoverableError(request, error, segment)),
6464
+ (task = logRecoverableError(request, error, segment, null)),
6337
6465
  (boundary.status = CLIENT_RENDERED),
6338
6466
  encodeErrorForBoundary(boundary, task, error, segment, !0),
6339
6467
  untrackBoundary(request, boundary),
@@ -6408,7 +6536,7 @@
6408
6536
  }
6409
6537
  }
6410
6538
  } catch (error) {
6411
- logRecoverableError(request, error, {});
6539
+ logRecoverableError(request, error, {}, null);
6412
6540
  }
6413
6541
  }
6414
6542
  function completeShell(request) {
@@ -6486,10 +6614,10 @@
6486
6614
  request.allPendingTasks--;
6487
6615
  0 === request.allPendingTasks && completeAll(request);
6488
6616
  }
6489
- function performWork(request$jscomp$1) {
6617
+ function performWork(request$jscomp$2) {
6490
6618
  if (
6491
- request$jscomp$1.status !== CLOSED &&
6492
- 13 !== request$jscomp$1.status
6619
+ request$jscomp$2.status !== CLOSED &&
6620
+ 13 !== request$jscomp$2.status
6493
6621
  ) {
6494
6622
  var prevContext = currentActiveSnapshot,
6495
6623
  prevDispatcher = ReactSharedInternals.H;
@@ -6497,16 +6625,16 @@
6497
6625
  var prevAsyncDispatcher = ReactSharedInternals.A;
6498
6626
  ReactSharedInternals.A = DefaultAsyncDispatcher;
6499
6627
  var prevRequest = currentRequest;
6500
- currentRequest = request$jscomp$1;
6628
+ currentRequest = request$jscomp$2;
6501
6629
  var prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
6502
6630
  ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
6503
6631
  var prevResumableState = currentResumableState;
6504
- currentResumableState = request$jscomp$1.resumableState;
6632
+ currentResumableState = request$jscomp$2.resumableState;
6505
6633
  try {
6506
- var pingedTasks = request$jscomp$1.pingedTasks,
6634
+ var pingedTasks = request$jscomp$2.pingedTasks,
6507
6635
  i;
6508
6636
  for (i = 0; i < pingedTasks.length; i++) {
6509
- var request = request$jscomp$1,
6637
+ var request = request$jscomp$2,
6510
6638
  task = pingedTasks[i],
6511
6639
  segment = task.blockedSegment;
6512
6640
  if (null === segment) {
@@ -6554,16 +6682,32 @@
6554
6682
  } else {
6555
6683
  request.replay.pendingTasks--;
6556
6684
  request.abortSet.delete(request);
6557
- var errorInfo = getThrownInfo(request.componentStack);
6558
- erroredReplay(
6559
- request$jscomp$0,
6560
- request.blockedBoundary,
6561
- 12 === request$jscomp$0.status
6562
- ? request$jscomp$0.fatalError
6563
- : x,
6564
- errorInfo,
6565
- request.replay.nodes,
6566
- request.replay.slots
6685
+ var errorInfo = getThrownInfo(request.componentStack),
6686
+ errorDigest = void 0,
6687
+ request$jscomp$1 = request$jscomp$0,
6688
+ boundary = request.blockedBoundary,
6689
+ error$jscomp$0 =
6690
+ 12 === request$jscomp$0.status
6691
+ ? request$jscomp$0.fatalError
6692
+ : x,
6693
+ errorInfo$jscomp$0 = errorInfo,
6694
+ replayNodes = request.replay.nodes,
6695
+ resumeSlots = request.replay.slots;
6696
+ errorDigest = logRecoverableError(
6697
+ request$jscomp$1,
6698
+ error$jscomp$0,
6699
+ errorInfo$jscomp$0,
6700
+ request.debugTask
6701
+ );
6702
+ abortRemainingReplayNodes(
6703
+ request$jscomp$1,
6704
+ boundary,
6705
+ replayNodes,
6706
+ resumeSlots,
6707
+ error$jscomp$0,
6708
+ errorDigest,
6709
+ errorInfo$jscomp$0,
6710
+ !1
6567
6711
  );
6568
6712
  request$jscomp$0.pendingRootTasks--;
6569
6713
  0 === request$jscomp$0.pendingRootTasks &&
@@ -6576,101 +6720,110 @@
6576
6720
  currentTaskInDEV = prevTaskInDEV;
6577
6721
  }
6578
6722
  }
6579
- } else {
6580
- request$jscomp$0 = prevTaskInDEV = void 0;
6581
- var task$jscomp$0 = task,
6582
- segment$jscomp$0 = segment;
6583
- if (segment$jscomp$0.status === PENDING) {
6584
- segment$jscomp$0.status = 6;
6585
- switchContext(task$jscomp$0.context);
6586
- request$jscomp$0 = currentTaskInDEV;
6587
- currentTaskInDEV = task$jscomp$0;
6588
- var childrenLength = segment$jscomp$0.children.length,
6589
- chunkLength = segment$jscomp$0.chunks.length;
6590
- try {
6591
- retryNode(request, task$jscomp$0),
6592
- pushSegmentFinale(
6593
- segment$jscomp$0.chunks,
6594
- request.renderState,
6595
- segment$jscomp$0.lastPushedText,
6596
- segment$jscomp$0.textEmbedded
6597
- ),
6598
- task$jscomp$0.abortSet.delete(task$jscomp$0),
6599
- (segment$jscomp$0.status = COMPLETED),
6600
- finishedTask(
6601
- request,
6602
- task$jscomp$0.blockedBoundary,
6603
- segment$jscomp$0
6604
- );
6605
- } catch (thrownValue) {
6606
- resetHooksState();
6607
- segment$jscomp$0.children.length = childrenLength;
6608
- segment$jscomp$0.chunks.length = chunkLength;
6609
- var x$jscomp$0 =
6610
- thrownValue === SuspenseException
6611
- ? getSuspendedThenable()
6612
- : 12 === request.status
6613
- ? request.fatalError
6614
- : thrownValue;
6615
- if (
6616
- "object" === typeof x$jscomp$0 &&
6617
- null !== x$jscomp$0 &&
6618
- "function" === typeof x$jscomp$0.then
6619
- ) {
6620
- segment$jscomp$0.status = PENDING;
6621
- task$jscomp$0.thenableState =
6622
- getThenableStateAfterSuspending();
6623
- var ping$jscomp$0 = task$jscomp$0.ping;
6624
- x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
6625
- } else {
6626
- var errorInfo$jscomp$0 = getThrownInfo(
6627
- task$jscomp$0.componentStack
6628
- );
6629
- task$jscomp$0.abortSet.delete(task$jscomp$0);
6630
- segment$jscomp$0.status = 4;
6631
- var boundary = task$jscomp$0.blockedBoundary;
6632
- prevTaskInDEV = logRecoverableError(
6633
- request,
6634
- x$jscomp$0,
6635
- errorInfo$jscomp$0
6636
- );
6637
- null === boundary
6638
- ? fatalError(request, x$jscomp$0)
6639
- : (boundary.pendingTasks--,
6640
- boundary.status !== CLIENT_RENDERED &&
6641
- ((boundary.status = CLIENT_RENDERED),
6642
- encodeErrorForBoundary(
6643
- boundary,
6644
- prevTaskInDEV,
6645
- x$jscomp$0,
6646
- errorInfo$jscomp$0,
6647
- !1
6723
+ } else if (
6724
+ ((request$jscomp$0 = prevTaskInDEV = void 0),
6725
+ (errorDigest = task),
6726
+ (request$jscomp$1 = segment),
6727
+ request$jscomp$1.status === PENDING)
6728
+ ) {
6729
+ request$jscomp$1.status = 6;
6730
+ switchContext(errorDigest.context);
6731
+ request$jscomp$0 = currentTaskInDEV;
6732
+ currentTaskInDEV = errorDigest;
6733
+ var childrenLength = request$jscomp$1.children.length,
6734
+ chunkLength = request$jscomp$1.chunks.length;
6735
+ try {
6736
+ retryNode(request, errorDigest),
6737
+ pushSegmentFinale(
6738
+ request$jscomp$1.chunks,
6739
+ request.renderState,
6740
+ request$jscomp$1.lastPushedText,
6741
+ request$jscomp$1.textEmbedded
6742
+ ),
6743
+ errorDigest.abortSet.delete(errorDigest),
6744
+ (request$jscomp$1.status = COMPLETED),
6745
+ finishedTask(
6746
+ request,
6747
+ errorDigest.blockedBoundary,
6748
+ request$jscomp$1
6749
+ );
6750
+ } catch (thrownValue) {
6751
+ resetHooksState();
6752
+ request$jscomp$1.children.length = childrenLength;
6753
+ request$jscomp$1.chunks.length = chunkLength;
6754
+ var x$jscomp$0 =
6755
+ thrownValue === SuspenseException
6756
+ ? getSuspendedThenable()
6757
+ : 12 === request.status
6758
+ ? request.fatalError
6759
+ : thrownValue;
6760
+ if (
6761
+ "object" === typeof x$jscomp$0 &&
6762
+ null !== x$jscomp$0 &&
6763
+ "function" === typeof x$jscomp$0.then
6764
+ ) {
6765
+ request$jscomp$1.status = PENDING;
6766
+ errorDigest.thenableState = getThenableStateAfterSuspending();
6767
+ var ping$jscomp$0 = errorDigest.ping;
6768
+ x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
6769
+ } else {
6770
+ var errorInfo$jscomp$1 = getThrownInfo(
6771
+ errorDigest.componentStack
6772
+ );
6773
+ errorDigest.abortSet.delete(errorDigest);
6774
+ request$jscomp$1.status = 4;
6775
+ var boundary$jscomp$0 = errorDigest.blockedBoundary,
6776
+ debugTask = errorDigest.debugTask;
6777
+ prevTaskInDEV = logRecoverableError(
6778
+ request,
6779
+ x$jscomp$0,
6780
+ errorInfo$jscomp$1,
6781
+ debugTask
6782
+ );
6783
+ null === boundary$jscomp$0
6784
+ ? fatalError(
6785
+ request,
6786
+ x$jscomp$0,
6787
+ errorInfo$jscomp$1,
6788
+ debugTask
6789
+ )
6790
+ : (boundary$jscomp$0.pendingTasks--,
6791
+ boundary$jscomp$0.status !== CLIENT_RENDERED &&
6792
+ ((boundary$jscomp$0.status = CLIENT_RENDERED),
6793
+ encodeErrorForBoundary(
6794
+ boundary$jscomp$0,
6795
+ prevTaskInDEV,
6796
+ x$jscomp$0,
6797
+ errorInfo$jscomp$1,
6798
+ !1
6799
+ ),
6800
+ untrackBoundary(request, boundary$jscomp$0),
6801
+ boundary$jscomp$0.parentFlushed &&
6802
+ request.clientRenderedBoundaries.push(
6803
+ boundary$jscomp$0
6648
6804
  ),
6649
- untrackBoundary(request, boundary),
6650
- boundary.parentFlushed &&
6651
- request.clientRenderedBoundaries.push(boundary),
6652
- 0 === request.pendingRootTasks &&
6653
- null === request.trackedPostpones &&
6654
- null !== boundary.contentPreamble &&
6655
- preparePreamble(request)));
6656
- request.allPendingTasks--;
6657
- 0 === request.allPendingTasks && completeAll(request);
6658
- }
6659
- } finally {
6660
- currentTaskInDEV = request$jscomp$0;
6805
+ 0 === request.pendingRootTasks &&
6806
+ null === request.trackedPostpones &&
6807
+ null !== boundary$jscomp$0.contentPreamble &&
6808
+ preparePreamble(request)));
6809
+ request.allPendingTasks--;
6810
+ 0 === request.allPendingTasks && completeAll(request);
6661
6811
  }
6812
+ } finally {
6813
+ currentTaskInDEV = request$jscomp$0;
6662
6814
  }
6663
6815
  }
6664
6816
  }
6665
6817
  pingedTasks.splice(0, i);
6666
- null !== request$jscomp$1.destination &&
6818
+ null !== request$jscomp$2.destination &&
6667
6819
  flushCompletedQueues(
6668
- request$jscomp$1,
6669
- request$jscomp$1.destination
6820
+ request$jscomp$2,
6821
+ request$jscomp$2.destination
6670
6822
  );
6671
6823
  } catch (error) {
6672
- logRecoverableError(request$jscomp$1, error, {}),
6673
- fatalError(request$jscomp$1, error);
6824
+ (pingedTasks = {}),
6825
+ logRecoverableError(request$jscomp$2, error, pingedTasks, null),
6826
+ fatalError(request$jscomp$2, error, pingedTasks, null);
6674
6827
  } finally {
6675
6828
  (currentResumableState = prevResumableState),
6676
6829
  (ReactSharedInternals.H = prevDispatcher),
@@ -7330,7 +7483,9 @@
7330
7483
  try {
7331
7484
  flushCompletedQueues(request, destination);
7332
7485
  } catch (error) {
7333
- logRecoverableError(request, error, {}), fatalError(request, error);
7486
+ (destination = {}),
7487
+ logRecoverableError(request, error, destination, null),
7488
+ fatalError(request, error, destination, null);
7334
7489
  }
7335
7490
  }
7336
7491
  }
@@ -7356,7 +7511,9 @@
7356
7511
  null !== request.destination &&
7357
7512
  flushCompletedQueues(request, request.destination);
7358
7513
  } catch (error$4) {
7359
- logRecoverableError(request, error$4, {}), fatalError(request, error$4);
7514
+ (reason = {}),
7515
+ logRecoverableError(request, error$4, reason, null),
7516
+ fatalError(request, error$4, reason, null);
7360
7517
  }
7361
7518
  }
7362
7519
  function onError() {}
@@ -8851,5 +9008,5 @@
8851
9008
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
8852
9009
  );
8853
9010
  };
8854
- exports.version = "19.1.0-canary-f83903bf-20250212";
9011
+ exports.version = "19.1.0-canary-32b0cad8-20250213";
8855
9012
  })();