react-dom 19.3.0-canary-4fdf7cf2-20251003 → 19.3.0-canary-a4eb2dfa-20251006

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.
@@ -374,7 +374,8 @@ function getChildFormatContext(parentContext, type, props) {
374
374
  }
375
375
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
376
376
  ? createFormatContext(2, null, subtreeScope, null)
377
- : parentContext.tagScope !== subtreeScope
377
+ : null !== parentContext.viewTransition ||
378
+ parentContext.tagScope !== subtreeScope
378
379
  ? createFormatContext(
379
380
  parentContext.insertionMode,
380
381
  parentContext.selectedValue,
@@ -418,6 +419,31 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
418
419
  resumableState
419
420
  );
420
421
  }
422
+ function makeId(resumableState, treeId, localId) {
423
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
424
+ 0 < localId && (resumableState += "H" + localId.toString(32));
425
+ return resumableState + "_";
426
+ }
427
+ function pushViewTransitionAttributes(target, formatContext) {
428
+ formatContext = formatContext.viewTransition;
429
+ null !== formatContext &&
430
+ ("auto" !== formatContext.name &&
431
+ (pushStringAttribute(
432
+ target,
433
+ "vt-name",
434
+ 0 === formatContext.nameIdx
435
+ ? formatContext.name
436
+ : formatContext.name + "_" + formatContext.nameIdx
437
+ ),
438
+ formatContext.nameIdx++),
439
+ pushStringAttribute(target, "vt-update", formatContext.update),
440
+ "none" !== formatContext.enter &&
441
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
442
+ "none" !== formatContext.exit &&
443
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
444
+ "none" !== formatContext.share &&
445
+ pushStringAttribute(target, "vt-share", formatContext.share));
446
+ }
421
447
  var styleNameCache = new Map();
422
448
  function pushStyleAttribute(target, style) {
423
449
  if ("object" !== typeof style)
@@ -770,7 +796,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
770
796
  function styleReplacer(match, prefix, s, suffix) {
771
797
  return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
772
798
  }
773
- function pushSelfClosing(target, props, tag) {
799
+ function pushSelfClosing(target, props, tag, formatContext) {
774
800
  target.push(startChunkForTag(tag));
775
801
  for (var propKey in props)
776
802
  if (hasOwnProperty.call(props, propKey)) {
@@ -787,6 +813,7 @@ function pushSelfClosing(target, props, tag) {
787
813
  pushAttribute(target, propKey, propValue);
788
814
  }
789
815
  }
816
+ pushViewTransitionAttributes(target, formatContext);
790
817
  target.push("/>");
791
818
  return null;
792
819
  }
@@ -852,7 +879,7 @@ function pushScriptImpl(target, props) {
852
879
  target.push(endChunkForTag("script"));
853
880
  return null;
854
881
  }
855
- function pushStartSingletonElement(target, props, tag) {
882
+ function pushStartSingletonElement(target, props, tag, formatContext) {
856
883
  target.push(startChunkForTag(tag));
857
884
  var innerHTML = (tag = null),
858
885
  propKey;
@@ -871,11 +898,12 @@ function pushStartSingletonElement(target, props, tag) {
871
898
  pushAttribute(target, propKey, propValue);
872
899
  }
873
900
  }
901
+ pushViewTransitionAttributes(target, formatContext);
874
902
  target.push(">");
875
903
  pushInnerHTML(target, innerHTML, tag);
876
904
  return tag;
877
905
  }
878
- function pushStartGenericElement(target, props, tag) {
906
+ function pushStartGenericElement(target, props, tag, formatContext) {
879
907
  target.push(startChunkForTag(tag));
880
908
  var innerHTML = (tag = null),
881
909
  propKey;
@@ -894,6 +922,7 @@ function pushStartGenericElement(target, props, tag) {
894
922
  pushAttribute(target, propKey, propValue);
895
923
  }
896
924
  }
925
+ pushViewTransitionAttributes(target, formatContext);
897
926
  target.push(">");
898
927
  pushInnerHTML(target, innerHTML, tag);
899
928
  return "string" === typeof tag
@@ -953,6 +982,7 @@ function pushStartInstance(
953
982
  pushAttribute(target$jscomp$0, propKey, propValue);
954
983
  }
955
984
  }
985
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
956
986
  target$jscomp$0.push(">");
957
987
  pushInnerHTML(target$jscomp$0, innerHTML, children);
958
988
  if ("string" === typeof children) {
@@ -991,6 +1021,7 @@ function pushStartInstance(
991
1021
  );
992
1022
  }
993
1023
  }
1024
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
994
1025
  target$jscomp$0.push(">");
995
1026
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
996
1027
  return children$jscomp$0;
@@ -1080,6 +1111,7 @@ function pushStartInstance(
1080
1111
  null === value$jscomp$0 &&
1081
1112
  null !== defaultValue &&
1082
1113
  (value$jscomp$0 = defaultValue);
1114
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1083
1115
  target$jscomp$0.push(">");
1084
1116
  if (null != children$jscomp$2) {
1085
1117
  if (null != value$jscomp$0)
@@ -1174,6 +1206,7 @@ function pushStartInstance(
1174
1206
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1175
1207
  : null !== defaultValue$jscomp$0 &&
1176
1208
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1209
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1177
1210
  target$jscomp$0.push("/>");
1178
1211
  null != formData &&
1179
1212
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1232,6 +1265,7 @@ function pushStartInstance(
1232
1265
  formTarget$jscomp$0,
1233
1266
  name$jscomp$0
1234
1267
  );
1268
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1235
1269
  target$jscomp$0.push(">");
1236
1270
  null != formData$jscomp$0 &&
1237
1271
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1317,6 +1351,7 @@ function pushStartInstance(
1317
1351
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
1318
1352
  null != formTarget$jscomp$1 &&
1319
1353
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
1354
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1320
1355
  target$jscomp$0.push(">");
1321
1356
  null !== formActionName &&
1322
1357
  (target$jscomp$0.push('<input type="hidden"'),
@@ -1350,6 +1385,7 @@ function pushStartInstance(
1350
1385
  );
1351
1386
  }
1352
1387
  }
1388
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1353
1389
  target$jscomp$0.push(">");
1354
1390
  return null;
1355
1391
  case "object":
@@ -1387,6 +1423,7 @@ function pushStartInstance(
1387
1423
  );
1388
1424
  }
1389
1425
  }
1426
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1390
1427
  target$jscomp$0.push(">");
1391
1428
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1392
1429
  if ("string" === typeof children$jscomp$5) {
@@ -1658,17 +1695,33 @@ function pushStartInstance(
1658
1695
  var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1659
1696
  target$jscomp$0,
1660
1697
  props,
1661
- "meta"
1698
+ "meta",
1699
+ formatContext
1662
1700
  );
1663
1701
  else
1664
1702
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1665
1703
  (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
1666
1704
  ? null
1667
1705
  : "string" === typeof props.charSet
1668
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1706
+ ? pushSelfClosing(
1707
+ renderState.charsetChunks,
1708
+ props,
1709
+ "meta",
1710
+ formatContext
1711
+ )
1669
1712
  : "viewport" === props.name
1670
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1671
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1713
+ ? pushSelfClosing(
1714
+ renderState.viewportChunks,
1715
+ props,
1716
+ "meta",
1717
+ formatContext
1718
+ )
1719
+ : pushSelfClosing(
1720
+ renderState.hoistableChunks,
1721
+ props,
1722
+ "meta",
1723
+ formatContext
1724
+ ));
1672
1725
  return JSCompiler_inline_result$jscomp$7;
1673
1726
  case "listing":
1674
1727
  case "pre":
@@ -1695,6 +1748,7 @@ function pushStartInstance(
1695
1748
  );
1696
1749
  }
1697
1750
  }
1751
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1698
1752
  target$jscomp$0.push(">");
1699
1753
  if (null != innerHTML$jscomp$7) {
1700
1754
  if (null != children$jscomp$8)
@@ -1811,7 +1865,7 @@ function pushStartInstance(
1811
1865
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
1812
1866
  }
1813
1867
  }
1814
- return pushSelfClosing(target$jscomp$0, props, "img");
1868
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
1815
1869
  case "base":
1816
1870
  case "area":
1817
1871
  case "br":
@@ -1823,7 +1877,7 @@ function pushStartInstance(
1823
1877
  case "source":
1824
1878
  case "track":
1825
1879
  case "wbr":
1826
- return pushSelfClosing(target$jscomp$0, props, type);
1880
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
1827
1881
  case "annotation-xml":
1828
1882
  case "color-profile":
1829
1883
  case "font-face":
@@ -1843,13 +1897,15 @@ function pushStartInstance(
1843
1897
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1844
1898
  preamble.headChunks,
1845
1899
  props,
1846
- "head"
1900
+ "head",
1901
+ formatContext
1847
1902
  );
1848
1903
  } else
1849
1904
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1850
1905
  target$jscomp$0,
1851
1906
  props,
1852
- "head"
1907
+ "head",
1908
+ formatContext
1853
1909
  );
1854
1910
  return JSCompiler_inline_result$jscomp$9;
1855
1911
  case "body":
@@ -1862,13 +1918,15 @@ function pushStartInstance(
1862
1918
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1863
1919
  preamble$jscomp$0.bodyChunks,
1864
1920
  props,
1865
- "body"
1921
+ "body",
1922
+ formatContext
1866
1923
  );
1867
1924
  } else
1868
1925
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1869
1926
  target$jscomp$0,
1870
1927
  props,
1871
- "body"
1928
+ "body",
1929
+ formatContext
1872
1930
  );
1873
1931
  return JSCompiler_inline_result$jscomp$10;
1874
1932
  case "html":
@@ -1881,13 +1939,15 @@ function pushStartInstance(
1881
1939
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1882
1940
  preamble$jscomp$1.htmlChunks,
1883
1941
  props,
1884
- "html"
1942
+ "html",
1943
+ formatContext
1885
1944
  );
1886
1945
  } else
1887
1946
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
1888
1947
  target$jscomp$0,
1889
1948
  props,
1890
- "html"
1949
+ "html",
1950
+ formatContext
1891
1951
  );
1892
1952
  return JSCompiler_inline_result$jscomp$11;
1893
1953
  default:
@@ -1937,12 +1997,13 @@ function pushStartInstance(
1937
1997
  }
1938
1998
  }
1939
1999
  }
2000
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1940
2001
  target$jscomp$0.push(">");
1941
2002
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1942
2003
  return children$jscomp$9;
1943
2004
  }
1944
2005
  }
1945
- return pushStartGenericElement(target$jscomp$0, props, type);
2006
+ return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
1946
2007
  }
1947
2008
  var endTagCache = new Map();
1948
2009
  function endChunkForTag(tag) {
@@ -2752,16 +2813,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2752
2813
  "\x3c/script>"
2753
2814
  ));
2754
2815
  bootstrapScriptContent = idPrefix + "P:";
2755
- var JSCompiler_object_inline_segmentPrefix_1673 = idPrefix + "S:";
2816
+ var JSCompiler_object_inline_segmentPrefix_1688 = idPrefix + "S:";
2756
2817
  idPrefix += "B:";
2757
- var JSCompiler_object_inline_preconnects_1687 = new Set(),
2758
- JSCompiler_object_inline_fontPreloads_1688 = new Set(),
2759
- JSCompiler_object_inline_highImagePreloads_1689 = new Set(),
2760
- JSCompiler_object_inline_styles_1690 = new Map(),
2761
- JSCompiler_object_inline_bootstrapScripts_1691 = new Set(),
2762
- JSCompiler_object_inline_scripts_1692 = new Set(),
2763
- JSCompiler_object_inline_bulkPreloads_1693 = new Set(),
2764
- JSCompiler_object_inline_preloads_1694 = {
2818
+ var JSCompiler_object_inline_preconnects_1702 = new Set(),
2819
+ JSCompiler_object_inline_fontPreloads_1703 = new Set(),
2820
+ JSCompiler_object_inline_highImagePreloads_1704 = new Set(),
2821
+ JSCompiler_object_inline_styles_1705 = new Map(),
2822
+ JSCompiler_object_inline_bootstrapScripts_1706 = new Set(),
2823
+ JSCompiler_object_inline_scripts_1707 = new Set(),
2824
+ JSCompiler_object_inline_bulkPreloads_1708 = new Set(),
2825
+ JSCompiler_object_inline_preloads_1709 = {
2765
2826
  images: new Map(),
2766
2827
  stylesheets: new Map(),
2767
2828
  scripts: new Map(),
@@ -2798,7 +2859,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2798
2859
  scriptConfig.moduleScriptResources[href] = null;
2799
2860
  scriptConfig = [];
2800
2861
  pushLinkImpl(scriptConfig, props);
2801
- JSCompiler_object_inline_bootstrapScripts_1691.add(scriptConfig);
2862
+ JSCompiler_object_inline_bootstrapScripts_1706.add(scriptConfig);
2802
2863
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
2803
2864
  "string" === typeof integrity &&
2804
2865
  bootstrapChunks.push(
@@ -2845,7 +2906,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2845
2906
  (props.moduleScriptResources[scriptConfig] = null),
2846
2907
  (props = []),
2847
2908
  pushLinkImpl(props, integrity),
2848
- JSCompiler_object_inline_bootstrapScripts_1691.add(props),
2909
+ JSCompiler_object_inline_bootstrapScripts_1706.add(props),
2849
2910
  bootstrapChunks.push(
2850
2911
  '<script type="module" src="',
2851
2912
  escapeTextForBrowser(i),
@@ -2867,7 +2928,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2867
2928
  bootstrapChunks.push(' async="">\x3c/script>');
2868
2929
  return {
2869
2930
  placeholderPrefix: bootstrapScriptContent,
2870
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1673,
2931
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1688,
2871
2932
  boundaryPrefix: idPrefix,
2872
2933
  startInlineScript: "<script",
2873
2934
  startInlineStyle: "<style",
@@ -2887,14 +2948,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2887
2948
  charsetChunks: [],
2888
2949
  viewportChunks: [],
2889
2950
  hoistableChunks: [],
2890
- preconnects: JSCompiler_object_inline_preconnects_1687,
2891
- fontPreloads: JSCompiler_object_inline_fontPreloads_1688,
2892
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1689,
2893
- styles: JSCompiler_object_inline_styles_1690,
2894
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1691,
2895
- scripts: JSCompiler_object_inline_scripts_1692,
2896
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1693,
2897
- preloads: JSCompiler_object_inline_preloads_1694,
2951
+ preconnects: JSCompiler_object_inline_preconnects_1702,
2952
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1703,
2953
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1704,
2954
+ styles: JSCompiler_object_inline_styles_1705,
2955
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1706,
2956
+ scripts: JSCompiler_object_inline_scripts_1707,
2957
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1708,
2958
+ preloads: JSCompiler_object_inline_preloads_1709,
2898
2959
  nonce: { script: void 0, style: void 0 },
2899
2960
  stylesToHoist: !1,
2900
2961
  generateStaticMarkup: generateStaticMarkup
@@ -2936,6 +2997,8 @@ function getComponentNameFromType(type) {
2936
2997
  return "SuspenseList";
2937
2998
  case REACT_ACTIVITY_TYPE:
2938
2999
  return "Activity";
3000
+ case REACT_VIEW_TRANSITION_TYPE:
3001
+ return "ViewTransition";
2939
3002
  }
2940
3003
  if ("object" === typeof type)
2941
3004
  switch (type.$$typeof) {
@@ -3049,6 +3112,11 @@ var classComponentUpdater = {
3049
3112
  enqueueForceUpdate: function () {}
3050
3113
  },
3051
3114
  emptyTreeContext = { id: 1, overflow: "" };
3115
+ function getTreeId(context) {
3116
+ var overflow = context.overflow;
3117
+ context = context.id;
3118
+ return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
3119
+ }
3052
3120
  function pushTreeContext(baseContext, totalChildren, index) {
3053
3121
  var baseIdWithLeadingBit = baseContext.id;
3054
3122
  baseContext = baseContext.overflow;
@@ -3411,24 +3479,14 @@ var HooksDispatcher = {
3411
3479
  return [!1, unsupportedStartTransition];
3412
3480
  },
3413
3481
  useId: function () {
3414
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3415
- var overflow = JSCompiler_inline_result.overflow;
3416
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3417
- JSCompiler_inline_result =
3418
- (
3419
- JSCompiler_inline_result &
3420
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3421
- ).toString(32) + overflow;
3422
- var resumableState = currentResumableState;
3482
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
3483
+ resumableState = currentResumableState;
3423
3484
  if (null === resumableState)
3424
3485
  throw Error(
3425
3486
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
3426
3487
  );
3427
- overflow = localIdCounter++;
3428
- JSCompiler_inline_result =
3429
- "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
3430
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3431
- return JSCompiler_inline_result + "_";
3488
+ var localId = localIdCounter++;
3489
+ return makeId(resumableState, treeId, localId);
3432
3490
  },
3433
3491
  useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3434
3492
  if (void 0 === getServerSnapshot)
@@ -3680,6 +3738,8 @@ function describeComponentStackByType(type) {
3680
3738
  return describeBuiltInComponentFrame("SuspenseList");
3681
3739
  case REACT_SUSPENSE_TYPE:
3682
3740
  return describeBuiltInComponentFrame("Suspense");
3741
+ case REACT_VIEW_TRANSITION_TYPE:
3742
+ return describeBuiltInComponentFrame("ViewTransition");
3683
3743
  }
3684
3744
  return "";
3685
3745
  }
@@ -4253,109 +4313,139 @@ function renderElement(request, task, keyPath, type, props, ref) {
4253
4313
  void 0 === newProps[propName$43] &&
4254
4314
  (newProps[propName$43] = defaultProps[propName$43]);
4255
4315
  }
4256
- props = newProps;
4257
- newProps = emptyContextObject;
4258
- defaultProps = type.contextType;
4259
- "object" === typeof defaultProps &&
4260
- null !== defaultProps &&
4261
- (newProps = defaultProps._currentValue2);
4262
- newProps = new type(props, newProps);
4263
- var initialState = void 0 !== newProps.state ? newProps.state : null;
4264
- newProps.updater = classComponentUpdater;
4265
- newProps.props = props;
4266
- newProps.state = initialState;
4267
- defaultProps = { queue: [], replace: !1 };
4268
- newProps._reactInternals = defaultProps;
4269
- ref = type.contextType;
4270
- newProps.context =
4271
- "object" === typeof ref && null !== ref
4272
- ? ref._currentValue2
4316
+ var JSCompiler_inline_result = newProps;
4317
+ var context = emptyContextObject,
4318
+ contextType = type.contextType;
4319
+ "object" === typeof contextType &&
4320
+ null !== contextType &&
4321
+ (context = contextType._currentValue2);
4322
+ var JSCompiler_inline_result$jscomp$0 = new type(
4323
+ JSCompiler_inline_result,
4324
+ context
4325
+ );
4326
+ var initialState =
4327
+ void 0 !== JSCompiler_inline_result$jscomp$0.state
4328
+ ? JSCompiler_inline_result$jscomp$0.state
4329
+ : null;
4330
+ JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
4331
+ JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
4332
+ JSCompiler_inline_result$jscomp$0.state = initialState;
4333
+ var internalInstance = { queue: [], replace: !1 };
4334
+ JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
4335
+ var contextType$jscomp$0 = type.contextType;
4336
+ JSCompiler_inline_result$jscomp$0.context =
4337
+ "object" === typeof contextType$jscomp$0 &&
4338
+ null !== contextType$jscomp$0
4339
+ ? contextType$jscomp$0._currentValue2
4273
4340
  : emptyContextObject;
4274
- ref = type.getDerivedStateFromProps;
4275
- "function" === typeof ref &&
4276
- ((ref = ref(props, initialState)),
4277
- (initialState =
4278
- null === ref || void 0 === ref
4341
+ var getDerivedStateFromProps = type.getDerivedStateFromProps;
4342
+ if ("function" === typeof getDerivedStateFromProps) {
4343
+ var partialState = getDerivedStateFromProps(
4344
+ JSCompiler_inline_result,
4345
+ initialState
4346
+ );
4347
+ var JSCompiler_inline_result$jscomp$1 =
4348
+ null === partialState || void 0 === partialState
4279
4349
  ? initialState
4280
- : assign({}, initialState, ref)),
4281
- (newProps.state = initialState));
4350
+ : assign({}, initialState, partialState);
4351
+ JSCompiler_inline_result$jscomp$0.state =
4352
+ JSCompiler_inline_result$jscomp$1;
4353
+ }
4282
4354
  if (
4283
4355
  "function" !== typeof type.getDerivedStateFromProps &&
4284
- "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4285
- ("function" === typeof newProps.UNSAFE_componentWillMount ||
4286
- "function" === typeof newProps.componentWillMount)
4287
- )
4356
+ "function" !==
4357
+ typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
4358
+ ("function" ===
4359
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
4360
+ "function" ===
4361
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
4362
+ ) {
4363
+ var oldState = JSCompiler_inline_result$jscomp$0.state;
4364
+ "function" ===
4365
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
4366
+ JSCompiler_inline_result$jscomp$0.componentWillMount();
4367
+ "function" ===
4368
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
4369
+ JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
4370
+ oldState !== JSCompiler_inline_result$jscomp$0.state &&
4371
+ classComponentUpdater.enqueueReplaceState(
4372
+ JSCompiler_inline_result$jscomp$0,
4373
+ JSCompiler_inline_result$jscomp$0.state,
4374
+ null
4375
+ );
4288
4376
  if (
4289
- ((type = newProps.state),
4290
- "function" === typeof newProps.componentWillMount &&
4291
- newProps.componentWillMount(),
4292
- "function" === typeof newProps.UNSAFE_componentWillMount &&
4293
- newProps.UNSAFE_componentWillMount(),
4294
- type !== newProps.state &&
4295
- classComponentUpdater.enqueueReplaceState(
4296
- newProps,
4297
- newProps.state,
4298
- null
4299
- ),
4300
- null !== defaultProps.queue && 0 < defaultProps.queue.length)
4301
- )
4302
- if (
4303
- ((type = defaultProps.queue),
4304
- (ref = defaultProps.replace),
4305
- (defaultProps.queue = null),
4306
- (defaultProps.replace = !1),
4307
- ref && 1 === type.length)
4308
- )
4309
- newProps.state = type[0];
4377
+ null !== internalInstance.queue &&
4378
+ 0 < internalInstance.queue.length
4379
+ ) {
4380
+ var oldQueue = internalInstance.queue,
4381
+ oldReplace = internalInstance.replace;
4382
+ internalInstance.queue = null;
4383
+ internalInstance.replace = !1;
4384
+ if (oldReplace && 1 === oldQueue.length)
4385
+ JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
4310
4386
  else {
4311
- defaultProps = ref ? type[0] : newProps.state;
4312
- initialState = !0;
4313
- for (ref = ref ? 1 : 0; ref < type.length; ref++)
4314
- (propName$43 = type[ref]),
4315
- (propName$43 =
4316
- "function" === typeof propName$43
4317
- ? propName$43.call(newProps, defaultProps, props, void 0)
4318
- : propName$43),
4319
- null != propName$43 &&
4320
- (initialState
4321
- ? ((initialState = !1),
4322
- (defaultProps = assign({}, defaultProps, propName$43)))
4323
- : assign(defaultProps, propName$43));
4324
- newProps.state = defaultProps;
4387
+ for (
4388
+ var nextState = oldReplace
4389
+ ? oldQueue[0]
4390
+ : JSCompiler_inline_result$jscomp$0.state,
4391
+ dontMutate = !0,
4392
+ i = oldReplace ? 1 : 0;
4393
+ i < oldQueue.length;
4394
+ i++
4395
+ ) {
4396
+ var partial = oldQueue[i],
4397
+ partialState$jscomp$0 =
4398
+ "function" === typeof partial
4399
+ ? partial.call(
4400
+ JSCompiler_inline_result$jscomp$0,
4401
+ nextState,
4402
+ JSCompiler_inline_result,
4403
+ void 0
4404
+ )
4405
+ : partial;
4406
+ null != partialState$jscomp$0 &&
4407
+ (dontMutate
4408
+ ? ((dontMutate = !1),
4409
+ (nextState = assign({}, nextState, partialState$jscomp$0)))
4410
+ : assign(nextState, partialState$jscomp$0));
4411
+ }
4412
+ JSCompiler_inline_result$jscomp$0.state = nextState;
4325
4413
  }
4326
- else defaultProps.queue = null;
4327
- type = newProps.render();
4414
+ } else internalInstance.queue = null;
4415
+ }
4416
+ var nextChildren = JSCompiler_inline_result$jscomp$0.render();
4328
4417
  if (12 === request.status) throw null;
4329
- props = task.keyPath;
4418
+ var prevKeyPath = task.keyPath;
4330
4419
  task.keyPath = keyPath;
4331
- renderNodeDestructive(request, task, type, -1);
4332
- task.keyPath = props;
4420
+ renderNodeDestructive(request, task, nextChildren, -1);
4421
+ task.keyPath = prevKeyPath;
4333
4422
  } else {
4334
- type = renderWithHooks(request, task, keyPath, type, props, void 0);
4423
+ var value = renderWithHooks(request, task, keyPath, type, props, void 0);
4335
4424
  if (12 === request.status) throw null;
4336
4425
  finishFunctionComponent(
4337
4426
  request,
4338
4427
  task,
4339
4428
  keyPath,
4340
- type,
4429
+ value,
4341
4430
  0 !== localIdCounter,
4342
4431
  actionStateCounter,
4343
4432
  actionStateMatchingIndex
4344
4433
  );
4345
4434
  }
4346
- else if ("string" === typeof type)
4347
- if (((newProps = task.blockedSegment), null === newProps))
4348
- (newProps = props.children),
4349
- (defaultProps = task.formatContext),
4350
- (initialState = task.keyPath),
4351
- (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4352
- (task.keyPath = keyPath),
4353
- renderNode(request, task, newProps, -1),
4354
- (task.formatContext = defaultProps),
4355
- (task.keyPath = initialState);
4356
- else {
4357
- initialState = pushStartInstance(
4358
- newProps.chunks,
4435
+ else if ("string" === typeof type) {
4436
+ var segment = task.blockedSegment;
4437
+ if (null === segment) {
4438
+ var children = props.children,
4439
+ prevContext = task.formatContext,
4440
+ prevKeyPath$jscomp$0 = task.keyPath;
4441
+ task.formatContext = getChildFormatContext(prevContext, type, props);
4442
+ task.keyPath = keyPath;
4443
+ renderNode(request, task, children, -1);
4444
+ task.formatContext = prevContext;
4445
+ task.keyPath = prevKeyPath$jscomp$0;
4446
+ } else {
4447
+ var children$40 = pushStartInstance(
4448
+ segment.chunks,
4359
4449
  type,
4360
4450
  props,
4361
4451
  request.resumableState,
@@ -4363,18 +4453,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
4363
4453
  task.blockedPreamble,
4364
4454
  task.hoistableState,
4365
4455
  task.formatContext,
4366
- newProps.lastPushedText
4456
+ segment.lastPushedText
4367
4457
  );
4368
- newProps.lastPushedText = !1;
4369
- defaultProps = task.formatContext;
4370
- ref = task.keyPath;
4458
+ segment.lastPushedText = !1;
4459
+ var prevContext$41 = task.formatContext,
4460
+ prevKeyPath$42 = task.keyPath;
4371
4461
  task.keyPath = keyPath;
4372
4462
  if (
4373
4463
  3 ===
4374
- (task.formatContext = getChildFormatContext(defaultProps, type, props))
4375
- .insertionMode
4464
+ (task.formatContext = getChildFormatContext(
4465
+ prevContext$41,
4466
+ type,
4467
+ props
4468
+ )).insertionMode
4376
4469
  ) {
4377
- keyPath = createPendingSegment(
4470
+ var preambleSegment = createPendingSegment(
4378
4471
  request,
4379
4472
  0,
4380
4473
  null,
@@ -4382,27 +4475,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
4382
4475
  !1,
4383
4476
  !1
4384
4477
  );
4385
- newProps.preambleChildren.push(keyPath);
4386
- task.blockedSegment = keyPath;
4478
+ segment.preambleChildren.push(preambleSegment);
4479
+ task.blockedSegment = preambleSegment;
4387
4480
  try {
4388
- (keyPath.status = 6),
4389
- renderNode(request, task, initialState, -1),
4481
+ (preambleSegment.status = 6),
4482
+ renderNode(request, task, children$40, -1),
4390
4483
  pushSegmentFinale(
4391
- keyPath.chunks,
4484
+ preambleSegment.chunks,
4392
4485
  request.renderState,
4393
- keyPath.lastPushedText,
4394
- keyPath.textEmbedded
4486
+ preambleSegment.lastPushedText,
4487
+ preambleSegment.textEmbedded
4395
4488
  ),
4396
- (keyPath.status = 1);
4489
+ (preambleSegment.status = 1);
4397
4490
  } finally {
4398
- task.blockedSegment = newProps;
4491
+ task.blockedSegment = segment;
4399
4492
  }
4400
- } else renderNode(request, task, initialState, -1);
4401
- task.formatContext = defaultProps;
4402
- task.keyPath = ref;
4493
+ } else renderNode(request, task, children$40, -1);
4494
+ task.formatContext = prevContext$41;
4495
+ task.keyPath = prevKeyPath$42;
4403
4496
  a: {
4404
- task = newProps.chunks;
4405
- request = request.resumableState;
4497
+ var target = segment.chunks,
4498
+ resumableState = request.resumableState;
4406
4499
  switch (type) {
4407
4500
  case "title":
4408
4501
  case "style":
@@ -4424,133 +4517,172 @@ function renderElement(request, task, keyPath, type, props, ref) {
4424
4517
  case "wbr":
4425
4518
  break a;
4426
4519
  case "body":
4427
- if (1 >= defaultProps.insertionMode) {
4428
- request.hasBody = !0;
4520
+ if (1 >= prevContext$41.insertionMode) {
4521
+ resumableState.hasBody = !0;
4429
4522
  break a;
4430
4523
  }
4431
4524
  break;
4432
4525
  case "html":
4433
- if (0 === defaultProps.insertionMode) {
4434
- request.hasHtml = !0;
4526
+ if (0 === prevContext$41.insertionMode) {
4527
+ resumableState.hasHtml = !0;
4435
4528
  break a;
4436
4529
  }
4437
4530
  break;
4438
4531
  case "head":
4439
- if (1 >= defaultProps.insertionMode) break a;
4532
+ if (1 >= prevContext$41.insertionMode) break a;
4440
4533
  }
4441
- task.push(endChunkForTag(type));
4534
+ target.push(endChunkForTag(type));
4442
4535
  }
4443
- newProps.lastPushedText = !1;
4536
+ segment.lastPushedText = !1;
4444
4537
  }
4445
- else {
4538
+ } else {
4446
4539
  switch (type) {
4447
4540
  case REACT_LEGACY_HIDDEN_TYPE:
4448
4541
  case REACT_STRICT_MODE_TYPE:
4449
4542
  case REACT_PROFILER_TYPE:
4450
4543
  case REACT_FRAGMENT_TYPE:
4451
- type = task.keyPath;
4544
+ var prevKeyPath$jscomp$1 = task.keyPath;
4452
4545
  task.keyPath = keyPath;
4453
4546
  renderNodeDestructive(request, task, props.children, -1);
4454
- task.keyPath = type;
4547
+ task.keyPath = prevKeyPath$jscomp$1;
4455
4548
  return;
4456
4549
  case REACT_ACTIVITY_TYPE:
4457
- type = task.blockedSegment;
4458
- null === type
4459
- ? "hidden" !== props.mode &&
4460
- ((type = task.keyPath),
4461
- (task.keyPath = keyPath),
4462
- renderNode(request, task, props.children, -1),
4463
- (task.keyPath = type))
4464
- : "hidden" !== props.mode &&
4465
- (request.renderState.generateStaticMarkup ||
4466
- type.chunks.push("\x3c!--&--\x3e"),
4467
- (type.lastPushedText = !1),
4468
- (newProps = task.keyPath),
4469
- (task.keyPath = keyPath),
4470
- renderNode(request, task, props.children, -1),
4471
- (task.keyPath = newProps),
4472
- request.renderState.generateStaticMarkup ||
4473
- type.chunks.push("\x3c!--/&--\x3e"),
4474
- (type.lastPushedText = !1));
4550
+ var segment$jscomp$0 = task.blockedSegment;
4551
+ if (null === segment$jscomp$0) {
4552
+ if ("hidden" !== props.mode) {
4553
+ var prevKeyPath$jscomp$2 = task.keyPath;
4554
+ task.keyPath = keyPath;
4555
+ renderNode(request, task, props.children, -1);
4556
+ task.keyPath = prevKeyPath$jscomp$2;
4557
+ }
4558
+ } else if ("hidden" !== props.mode) {
4559
+ request.renderState.generateStaticMarkup ||
4560
+ segment$jscomp$0.chunks.push("\x3c!--&--\x3e");
4561
+ segment$jscomp$0.lastPushedText = !1;
4562
+ var prevKeyPath$45 = task.keyPath;
4563
+ task.keyPath = keyPath;
4564
+ renderNode(request, task, props.children, -1);
4565
+ task.keyPath = prevKeyPath$45;
4566
+ request.renderState.generateStaticMarkup ||
4567
+ segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
4568
+ segment$jscomp$0.lastPushedText = !1;
4569
+ }
4475
4570
  return;
4476
4571
  case REACT_SUSPENSE_LIST_TYPE:
4477
4572
  a: {
4478
- type = props.children;
4479
- props = props.revealOrder;
4573
+ var children$jscomp$0 = props.children,
4574
+ revealOrder = props.revealOrder;
4480
4575
  if (
4481
- "forwards" === props ||
4482
- "backwards" === props ||
4483
- "unstable_legacy-backwards" === props
4576
+ "forwards" === revealOrder ||
4577
+ "backwards" === revealOrder ||
4578
+ "unstable_legacy-backwards" === revealOrder
4484
4579
  ) {
4485
- if (isArrayImpl(type)) {
4486
- renderSuspenseListRows(request, task, keyPath, type, props);
4580
+ if (isArrayImpl(children$jscomp$0)) {
4581
+ renderSuspenseListRows(
4582
+ request,
4583
+ task,
4584
+ keyPath,
4585
+ children$jscomp$0,
4586
+ revealOrder
4587
+ );
4487
4588
  break a;
4488
4589
  }
4489
- if ((newProps = getIteratorFn(type)))
4490
- if ((newProps = newProps.call(type))) {
4491
- defaultProps = newProps.next();
4492
- if (!defaultProps.done) {
4493
- do defaultProps = newProps.next();
4494
- while (!defaultProps.done);
4495
- renderSuspenseListRows(request, task, keyPath, type, props);
4590
+ var iteratorFn = getIteratorFn(children$jscomp$0);
4591
+ if (iteratorFn) {
4592
+ var iterator = iteratorFn.call(children$jscomp$0);
4593
+ if (iterator) {
4594
+ var step = iterator.next();
4595
+ if (!step.done) {
4596
+ do step = iterator.next();
4597
+ while (!step.done);
4598
+ renderSuspenseListRows(
4599
+ request,
4600
+ task,
4601
+ keyPath,
4602
+ children$jscomp$0,
4603
+ revealOrder
4604
+ );
4496
4605
  }
4497
4606
  break a;
4498
4607
  }
4608
+ }
4609
+ }
4610
+ if ("together" === revealOrder) {
4611
+ var prevKeyPath$39 = task.keyPath,
4612
+ prevRow = task.row,
4613
+ newRow = (task.row = createSuspenseListRow(null));
4614
+ newRow.boundaries = [];
4615
+ newRow.together = !0;
4616
+ task.keyPath = keyPath;
4617
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4618
+ 0 === --newRow.pendingTasks &&
4619
+ finishSuspenseListRow(request, newRow);
4620
+ task.keyPath = prevKeyPath$39;
4621
+ task.row = prevRow;
4622
+ null !== prevRow &&
4623
+ 0 < newRow.pendingTasks &&
4624
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
4625
+ } else {
4626
+ var prevKeyPath$jscomp$3 = task.keyPath;
4627
+ task.keyPath = keyPath;
4628
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4629
+ task.keyPath = prevKeyPath$jscomp$3;
4499
4630
  }
4500
- "together" === props
4501
- ? ((props = task.keyPath),
4502
- (newProps = task.row),
4503
- (defaultProps = task.row = createSuspenseListRow(null)),
4504
- (defaultProps.boundaries = []),
4505
- (defaultProps.together = !0),
4506
- (task.keyPath = keyPath),
4507
- renderNodeDestructive(request, task, type, -1),
4508
- 0 === --defaultProps.pendingTasks &&
4509
- finishSuspenseListRow(request, defaultProps),
4510
- (task.keyPath = props),
4511
- (task.row = newProps),
4512
- null !== newProps &&
4513
- 0 < defaultProps.pendingTasks &&
4514
- (newProps.pendingTasks++, (defaultProps.next = newProps)))
4515
- : ((props = task.keyPath),
4516
- (task.keyPath = keyPath),
4517
- renderNodeDestructive(request, task, type, -1),
4518
- (task.keyPath = props));
4519
4631
  }
4520
4632
  return;
4521
4633
  case REACT_VIEW_TRANSITION_TYPE:
4634
+ var prevContext$jscomp$0 = task.formatContext,
4635
+ prevKeyPath$jscomp$4 = task.keyPath;
4636
+ var resumableState$jscomp$0 = request.resumableState;
4637
+ if (null == props.name || "auto" === props.name) {
4638
+ var treeId = getTreeId(task.treeContext);
4639
+ makeId(resumableState$jscomp$0, treeId, 0);
4640
+ }
4641
+ task.formatContext = prevContext$jscomp$0;
4642
+ task.keyPath = keyPath;
4643
+ if (null != props.name && "auto" !== props.name)
4644
+ renderNodeDestructive(request, task, props.children, -1);
4645
+ else {
4646
+ var prevTreeContext = task.treeContext;
4647
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
4648
+ renderNode(request, task, props.children, -1);
4649
+ task.treeContext = prevTreeContext;
4650
+ }
4651
+ task.formatContext = prevContext$jscomp$0;
4652
+ task.keyPath = prevKeyPath$jscomp$4;
4653
+ return;
4522
4654
  case REACT_SCOPE_TYPE:
4523
4655
  throw Error("ReactDOMServer does not yet support scope components.");
4524
4656
  case REACT_SUSPENSE_TYPE:
4525
4657
  a: if (null !== task.replay) {
4526
- type = task.keyPath;
4527
- newProps = task.formatContext;
4528
- defaultProps = task.row;
4658
+ var prevKeyPath$26 = task.keyPath,
4659
+ prevContext$27 = task.formatContext,
4660
+ prevRow$28 = task.row;
4529
4661
  task.keyPath = keyPath;
4530
4662
  task.formatContext = getSuspenseContentFormatContext(
4531
4663
  request.resumableState,
4532
- newProps
4664
+ prevContext$27
4533
4665
  );
4534
4666
  task.row = null;
4535
- keyPath = props.children;
4667
+ var content$29 = props.children;
4536
4668
  try {
4537
- renderNode(request, task, keyPath, -1);
4669
+ renderNode(request, task, content$29, -1);
4538
4670
  } finally {
4539
- (task.keyPath = type),
4540
- (task.formatContext = newProps),
4541
- (task.row = defaultProps);
4671
+ (task.keyPath = prevKeyPath$26),
4672
+ (task.formatContext = prevContext$27),
4673
+ (task.row = prevRow$28);
4542
4674
  }
4543
4675
  } else {
4544
- type = task.keyPath;
4545
- ref = task.formatContext;
4546
- var prevRow = task.row,
4547
- parentBoundary = task.blockedBoundary;
4548
- propName$43 = task.blockedPreamble;
4549
- var parentHoistableState = task.hoistableState;
4550
- propName = task.blockedSegment;
4551
- var fallback = props.fallback;
4552
- props = props.children;
4553
- var fallbackAbortSet = new Set();
4676
+ var prevKeyPath$jscomp$5 = task.keyPath,
4677
+ prevContext$jscomp$1 = task.formatContext,
4678
+ prevRow$jscomp$0 = task.row,
4679
+ parentBoundary = task.blockedBoundary,
4680
+ parentPreamble = task.blockedPreamble,
4681
+ parentHoistableState = task.hoistableState,
4682
+ parentSegment = task.blockedSegment,
4683
+ fallback = props.fallback,
4684
+ content = props.children,
4685
+ fallbackAbortSet = new Set();
4554
4686
  var newBoundary = createSuspenseBoundary(
4555
4687
  request,
4556
4688
  task.row,
@@ -4562,14 +4694,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
4562
4694
  (newBoundary.trackedContentKeyPath = keyPath);
4563
4695
  var boundarySegment = createPendingSegment(
4564
4696
  request,
4565
- propName.chunks.length,
4697
+ parentSegment.chunks.length,
4566
4698
  newBoundary,
4567
4699
  task.formatContext,
4568
4700
  !1,
4569
4701
  !1
4570
4702
  );
4571
- propName.children.push(boundarySegment);
4572
- propName.lastPushedText = !1;
4703
+ parentSegment.children.push(boundarySegment);
4704
+ parentSegment.lastPushedText = !1;
4573
4705
  var contentRootSegment = createPendingSegment(
4574
4706
  request,
4575
4707
  0,
@@ -4580,20 +4712,30 @@ function renderElement(request, task, keyPath, type, props, ref) {
4580
4712
  );
4581
4713
  contentRootSegment.parentFlushed = !0;
4582
4714
  if (null !== request.trackedPostpones) {
4583
- newProps = task.componentStack;
4584
- defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4585
- initialState = [defaultProps[1], defaultProps[2], [], null];
4586
- request.trackedPostpones.workingMap.set(defaultProps, initialState);
4587
- newBoundary.trackedFallbackNode = initialState;
4715
+ var suspenseComponentStack = task.componentStack,
4716
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
4717
+ fallbackReplayNode = [
4718
+ fallbackKeyPath[1],
4719
+ fallbackKeyPath[2],
4720
+ [],
4721
+ null
4722
+ ];
4723
+ request.trackedPostpones.workingMap.set(
4724
+ fallbackKeyPath,
4725
+ fallbackReplayNode
4726
+ );
4727
+ newBoundary.trackedFallbackNode = fallbackReplayNode;
4588
4728
  task.blockedSegment = boundarySegment;
4589
4729
  task.blockedPreamble = newBoundary.fallbackPreamble;
4590
- task.keyPath = defaultProps;
4730
+ task.keyPath = fallbackKeyPath;
4591
4731
  task.formatContext = getSuspenseFallbackFormatContext(
4592
4732
  request.resumableState,
4593
- ref
4733
+ prevContext$jscomp$1
4594
4734
  );
4595
4735
  task.componentStack =
4596
- replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
4736
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4737
+ suspenseComponentStack
4738
+ );
4597
4739
  boundarySegment.status = 6;
4598
4740
  try {
4599
4741
  renderNode(request, task, fallback, -1),
@@ -4610,15 +4752,15 @@ function renderElement(request, task, keyPath, type, props, ref) {
4610
4752
  thrownValue)
4611
4753
  );
4612
4754
  } finally {
4613
- (task.blockedSegment = propName),
4614
- (task.blockedPreamble = propName$43),
4615
- (task.keyPath = type),
4616
- (task.formatContext = ref);
4755
+ (task.blockedSegment = parentSegment),
4756
+ (task.blockedPreamble = parentPreamble),
4757
+ (task.keyPath = prevKeyPath$jscomp$5),
4758
+ (task.formatContext = prevContext$jscomp$1);
4617
4759
  }
4618
- task = createRenderTask(
4760
+ var suspendedPrimaryTask = createRenderTask(
4619
4761
  request,
4620
4762
  null,
4621
- props,
4763
+ content,
4622
4764
  -1,
4623
4765
  newBoundary,
4624
4766
  contentRootSegment,
@@ -4633,10 +4775,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4633
4775
  task.context,
4634
4776
  task.treeContext,
4635
4777
  null,
4636
- newProps
4778
+ suspenseComponentStack
4637
4779
  );
4638
- pushComponentStack(task);
4639
- request.pingedTasks.push(task);
4780
+ pushComponentStack(suspendedPrimaryTask);
4781
+ request.pingedTasks.push(suspendedPrimaryTask);
4640
4782
  } else {
4641
4783
  task.blockedBoundary = newBoundary;
4642
4784
  task.blockedPreamble = newBoundary.contentPreamble;
@@ -4645,13 +4787,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
4645
4787
  task.keyPath = keyPath;
4646
4788
  task.formatContext = getSuspenseContentFormatContext(
4647
4789
  request.resumableState,
4648
- ref
4790
+ prevContext$jscomp$1
4649
4791
  );
4650
4792
  task.row = null;
4651
4793
  contentRootSegment.status = 6;
4652
4794
  try {
4653
4795
  if (
4654
- (renderNode(request, task, props, -1),
4796
+ (renderNode(request, task, content, -1),
4655
4797
  pushSegmentFinale(
4656
4798
  contentRootSegment.chunks,
4657
4799
  request.renderState,
@@ -4666,43 +4808,38 @@ function renderElement(request, task, keyPath, type, props, ref) {
4666
4808
  ((newBoundary.status = 1),
4667
4809
  !isEligibleForOutlining(request, newBoundary))
4668
4810
  ) {
4669
- null !== prevRow &&
4670
- 0 === --prevRow.pendingTasks &&
4671
- finishSuspenseListRow(request, prevRow);
4811
+ null !== prevRow$jscomp$0 &&
4812
+ 0 === --prevRow$jscomp$0.pendingTasks &&
4813
+ finishSuspenseListRow(request, prevRow$jscomp$0);
4672
4814
  0 === request.pendingRootTasks &&
4673
4815
  task.blockedPreamble &&
4674
4816
  preparePreamble(request);
4675
4817
  break a;
4676
4818
  }
4677
4819
  } else
4678
- null !== prevRow &&
4679
- prevRow.together &&
4680
- tryToResolveTogetherRow(request, prevRow);
4820
+ null !== prevRow$jscomp$0 &&
4821
+ prevRow$jscomp$0.together &&
4822
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
4681
4823
  } catch (thrownValue$30) {
4682
- (newBoundary.status = 4),
4683
- 12 === request.status
4684
- ? ((contentRootSegment.status = 3),
4685
- (newProps = request.fatalError))
4686
- : ((contentRootSegment.status = 4),
4687
- (newProps = thrownValue$30)),
4688
- (defaultProps = getThrownInfo(task.componentStack)),
4689
- (initialState = logRecoverableError(
4690
- request,
4691
- newProps,
4692
- defaultProps
4693
- )),
4694
- (newBoundary.errorDigest = initialState),
4695
- untrackBoundary(request, newBoundary);
4824
+ newBoundary.status = 4;
4825
+ if (12 === request.status) {
4826
+ contentRootSegment.status = 3;
4827
+ var error = request.fatalError;
4828
+ } else (contentRootSegment.status = 4), (error = thrownValue$30);
4829
+ var thrownInfo = getThrownInfo(task.componentStack);
4830
+ var errorDigest = logRecoverableError(request, error, thrownInfo);
4831
+ newBoundary.errorDigest = errorDigest;
4832
+ untrackBoundary(request, newBoundary);
4696
4833
  } finally {
4697
4834
  (task.blockedBoundary = parentBoundary),
4698
- (task.blockedPreamble = propName$43),
4835
+ (task.blockedPreamble = parentPreamble),
4699
4836
  (task.hoistableState = parentHoistableState),
4700
- (task.blockedSegment = propName),
4701
- (task.keyPath = type),
4702
- (task.formatContext = ref),
4703
- (task.row = prevRow);
4837
+ (task.blockedSegment = parentSegment),
4838
+ (task.keyPath = prevKeyPath$jscomp$5),
4839
+ (task.formatContext = prevContext$jscomp$1),
4840
+ (task.row = prevRow$jscomp$0);
4704
4841
  }
4705
- task = createRenderTask(
4842
+ var suspendedFallbackTask = createRenderTask(
4706
4843
  request,
4707
4844
  null,
4708
4845
  fallback,
@@ -4724,8 +4861,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4724
4861
  task.componentStack
4725
4862
  )
4726
4863
  );
4727
- pushComponentStack(task);
4728
- request.pingedTasks.push(task);
4864
+ pushComponentStack(suspendedFallbackTask);
4865
+ request.pingedTasks.push(suspendedFallbackTask);
4729
4866
  }
4730
4867
  }
4731
4868
  return;
@@ -4733,23 +4870,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
4733
4870
  if ("object" === typeof type && null !== type)
4734
4871
  switch (type.$$typeof) {
4735
4872
  case REACT_FORWARD_REF_TYPE:
4736
- if ("ref" in props)
4737
- for (fallback in ((newProps = {}), props))
4738
- "ref" !== fallback && (newProps[fallback] = props[fallback]);
4739
- else newProps = props;
4740
- type = renderWithHooks(
4873
+ if ("ref" in props) {
4874
+ var propsWithoutRef = {};
4875
+ for (var key in props)
4876
+ "ref" !== key && (propsWithoutRef[key] = props[key]);
4877
+ } else propsWithoutRef = props;
4878
+ var children$jscomp$1 = renderWithHooks(
4741
4879
  request,
4742
4880
  task,
4743
4881
  keyPath,
4744
4882
  type.render,
4745
- newProps,
4883
+ propsWithoutRef,
4746
4884
  ref
4747
4885
  );
4748
4886
  finishFunctionComponent(
4749
4887
  request,
4750
4888
  task,
4751
4889
  keyPath,
4752
- type,
4890
+ children$jscomp$1,
4753
4891
  0 !== localIdCounter,
4754
4892
  actionStateCounter,
4755
4893
  actionStateMatchingIndex
@@ -4759,45 +4897,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
4759
4897
  renderElement(request, task, keyPath, type.type, props, ref);
4760
4898
  return;
4761
4899
  case REACT_CONTEXT_TYPE:
4762
- defaultProps = props.children;
4763
- newProps = task.keyPath;
4764
- props = props.value;
4765
- initialState = type._currentValue2;
4766
- type._currentValue2 = props;
4767
- ref = currentActiveSnapshot;
4768
- currentActiveSnapshot = type = {
4769
- parent: ref,
4770
- depth: null === ref ? 0 : ref.depth + 1,
4771
- context: type,
4772
- parentValue: initialState,
4773
- value: props
4774
- };
4775
- task.context = type;
4900
+ var children$jscomp$2 = props.children,
4901
+ prevKeyPath$jscomp$6 = task.keyPath,
4902
+ nextValue = props.value;
4903
+ var prevValue = type._currentValue2;
4904
+ type._currentValue2 = nextValue;
4905
+ var prevNode = currentActiveSnapshot,
4906
+ newNode = {
4907
+ parent: prevNode,
4908
+ depth: null === prevNode ? 0 : prevNode.depth + 1,
4909
+ context: type,
4910
+ parentValue: prevValue,
4911
+ value: nextValue
4912
+ };
4913
+ currentActiveSnapshot = newNode;
4914
+ task.context = newNode;
4776
4915
  task.keyPath = keyPath;
4777
- renderNodeDestructive(request, task, defaultProps, -1);
4778
- request = currentActiveSnapshot;
4779
- if (null === request)
4916
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
4917
+ var prevSnapshot = currentActiveSnapshot;
4918
+ if (null === prevSnapshot)
4780
4919
  throw Error(
4781
4920
  "Tried to pop a Context at the root of the app. This is a bug in React."
4782
4921
  );
4783
- request.context._currentValue2 = request.parentValue;
4784
- request = currentActiveSnapshot = request.parent;
4785
- task.context = request;
4786
- task.keyPath = newProps;
4922
+ prevSnapshot.context._currentValue2 = prevSnapshot.parentValue;
4923
+ var JSCompiler_inline_result$jscomp$2 = (currentActiveSnapshot =
4924
+ prevSnapshot.parent);
4925
+ task.context = JSCompiler_inline_result$jscomp$2;
4926
+ task.keyPath = prevKeyPath$jscomp$6;
4787
4927
  return;
4788
4928
  case REACT_CONSUMER_TYPE:
4789
- props = props.children;
4790
- type = props(type._context._currentValue2);
4791
- props = task.keyPath;
4929
+ var render = props.children,
4930
+ newChildren = render(type._context._currentValue2),
4931
+ prevKeyPath$jscomp$7 = task.keyPath;
4792
4932
  task.keyPath = keyPath;
4793
- renderNodeDestructive(request, task, type, -1);
4794
- task.keyPath = props;
4933
+ renderNodeDestructive(request, task, newChildren, -1);
4934
+ task.keyPath = prevKeyPath$jscomp$7;
4795
4935
  return;
4796
4936
  case REACT_LAZY_TYPE:
4797
- newProps = type._init;
4798
- type = newProps(type._payload);
4937
+ var init = type._init;
4938
+ var Component = init(type._payload);
4799
4939
  if (12 === request.status) throw null;
4800
- renderElement(request, task, keyPath, type, props, ref);
4940
+ renderElement(request, task, keyPath, Component, props, ref);
4801
4941
  return;
4802
4942
  }
4803
4943
  throw Error(
@@ -6208,7 +6348,8 @@ function flushCompletedBoundary(request, destination, boundary) {
6208
6348
  request = request.renderState;
6209
6349
  i = boundary.rootSegmentID;
6210
6350
  boundary = boundary.contentState;
6211
- var requiresStyleInsertion = request.stylesToHoist;
6351
+ var requiresStyleInsertion = request.stylesToHoist,
6352
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
6212
6353
  request.stylesToHoist = !1;
6213
6354
  destination.push(request.startInlineScript);
6214
6355
  destination.push(">");
@@ -6223,6 +6364,12 @@ function flushCompletedBoundary(request, destination, boundary) {
6223
6364
  destination.push(
6224
6365
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6225
6366
  )),
6367
+ requiresViewTransitions &&
6368
+ 0 === (completedSegments.instructions & 256) &&
6369
+ ((completedSegments.instructions |= 256),
6370
+ destination.push(
6371
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
6372
+ )),
6226
6373
  0 === (completedSegments.instructions & 8)
6227
6374
  ? ((completedSegments.instructions |= 8),
6228
6375
  destination.push(
@@ -6234,6 +6381,12 @@ function flushCompletedBoundary(request, destination, boundary) {
6234
6381
  destination.push(
6235
6382
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6236
6383
  )),
6384
+ requiresViewTransitions &&
6385
+ 0 === (completedSegments.instructions & 256) &&
6386
+ ((completedSegments.instructions |= 256),
6387
+ destination.push(
6388
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
6389
+ )),
6237
6390
  destination.push('$RC("'));
6238
6391
  completedSegments = i.toString(16);
6239
6392
  destination.push(request.boundaryPrefix);
@@ -6690,4 +6843,4 @@ exports.renderToString = function (children, options) {
6690
6843
  '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'
6691
6844
  );
6692
6845
  };
6693
- exports.version = "19.3.0-canary-4fdf7cf2-20251003";
6846
+ exports.version = "19.3.0-canary-a4eb2dfa-20251006";