react-dom 19.3.0-canary-c7862584-20251006 → 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.
@@ -389,7 +389,8 @@ function getChildFormatContext(parentContext, type, props) {
389
389
  }
390
390
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
391
391
  ? createFormatContext(2, null, subtreeScope, null)
392
- : parentContext.tagScope !== subtreeScope
392
+ : null !== parentContext.viewTransition ||
393
+ parentContext.tagScope !== subtreeScope
393
394
  ? createFormatContext(
394
395
  parentContext.insertionMode,
395
396
  parentContext.selectedValue,
@@ -433,6 +434,31 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
433
434
  resumableState
434
435
  );
435
436
  }
437
+ function makeId(resumableState, treeId, localId) {
438
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
439
+ 0 < localId && (resumableState += "H" + localId.toString(32));
440
+ return resumableState + "_";
441
+ }
442
+ function pushViewTransitionAttributes(target, formatContext) {
443
+ formatContext = formatContext.viewTransition;
444
+ null !== formatContext &&
445
+ ("auto" !== formatContext.name &&
446
+ (pushStringAttribute(
447
+ target,
448
+ "vt-name",
449
+ 0 === formatContext.nameIdx
450
+ ? formatContext.name
451
+ : formatContext.name + "_" + formatContext.nameIdx
452
+ ),
453
+ formatContext.nameIdx++),
454
+ pushStringAttribute(target, "vt-update", formatContext.update),
455
+ "none" !== formatContext.enter &&
456
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
457
+ "none" !== formatContext.exit &&
458
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
459
+ "none" !== formatContext.share &&
460
+ pushStringAttribute(target, "vt-share", formatContext.share));
461
+ }
436
462
  var styleNameCache = new Map();
437
463
  function pushStyleAttribute(target, style) {
438
464
  if ("object" !== typeof style) throw Error(formatProdErrorMessage(62));
@@ -772,7 +798,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
772
798
  function styleReplacer(match, prefix, s, suffix) {
773
799
  return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
774
800
  }
775
- function pushSelfClosing(target, props, tag) {
801
+ function pushSelfClosing(target, props, tag, formatContext) {
776
802
  target.push(startChunkForTag(tag));
777
803
  for (var propKey in props)
778
804
  if (hasOwnProperty.call(props, propKey)) {
@@ -786,6 +812,7 @@ function pushSelfClosing(target, props, tag) {
786
812
  pushAttribute(target, propKey, propValue);
787
813
  }
788
814
  }
815
+ pushViewTransitionAttributes(target, formatContext);
789
816
  target.push("/>");
790
817
  return null;
791
818
  }
@@ -851,7 +878,7 @@ function pushScriptImpl(target, props) {
851
878
  target.push(endChunkForTag("script"));
852
879
  return null;
853
880
  }
854
- function pushStartSingletonElement(target, props, tag) {
881
+ function pushStartSingletonElement(target, props, tag, formatContext) {
855
882
  target.push(startChunkForTag(tag));
856
883
  var innerHTML = (tag = null),
857
884
  propKey;
@@ -870,11 +897,12 @@ function pushStartSingletonElement(target, props, tag) {
870
897
  pushAttribute(target, propKey, propValue);
871
898
  }
872
899
  }
900
+ pushViewTransitionAttributes(target, formatContext);
873
901
  target.push(">");
874
902
  pushInnerHTML(target, innerHTML, tag);
875
903
  return tag;
876
904
  }
877
- function pushStartGenericElement(target, props, tag) {
905
+ function pushStartGenericElement(target, props, tag, formatContext) {
878
906
  target.push(startChunkForTag(tag));
879
907
  var innerHTML = (tag = null),
880
908
  propKey;
@@ -893,6 +921,7 @@ function pushStartGenericElement(target, props, tag) {
893
921
  pushAttribute(target, propKey, propValue);
894
922
  }
895
923
  }
924
+ pushViewTransitionAttributes(target, formatContext);
896
925
  target.push(">");
897
926
  pushInnerHTML(target, innerHTML, tag);
898
927
  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;
@@ -1078,6 +1109,7 @@ function pushStartInstance(
1078
1109
  null === value$jscomp$0 &&
1079
1110
  null !== defaultValue &&
1080
1111
  (value$jscomp$0 = defaultValue);
1112
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1081
1113
  target$jscomp$0.push(">");
1082
1114
  if (null != children$jscomp$2) {
1083
1115
  if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92));
@@ -1167,6 +1199,7 @@ function pushStartInstance(
1167
1199
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1168
1200
  : null !== defaultValue$jscomp$0 &&
1169
1201
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1202
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1170
1203
  target$jscomp$0.push("/>");
1171
1204
  null != formData &&
1172
1205
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1225,6 +1258,7 @@ function pushStartInstance(
1225
1258
  formTarget$jscomp$0,
1226
1259
  name$jscomp$0
1227
1260
  );
1261
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1228
1262
  target$jscomp$0.push(">");
1229
1263
  null != formData$jscomp$0 &&
1230
1264
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1310,6 +1344,7 @@ function pushStartInstance(
1310
1344
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
1311
1345
  null != formTarget$jscomp$1 &&
1312
1346
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
1347
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1313
1348
  target$jscomp$0.push(">");
1314
1349
  null !== formActionName &&
1315
1350
  (target$jscomp$0.push('<input type="hidden"'),
@@ -1341,6 +1376,7 @@ function pushStartInstance(
1341
1376
  );
1342
1377
  }
1343
1378
  }
1379
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1344
1380
  target$jscomp$0.push(">");
1345
1381
  return null;
1346
1382
  case "object":
@@ -1378,6 +1414,7 @@ function pushStartInstance(
1378
1414
  );
1379
1415
  }
1380
1416
  }
1417
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1381
1418
  target$jscomp$0.push(">");
1382
1419
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1383
1420
  if ("string" === typeof children$jscomp$5) {
@@ -1649,17 +1686,33 @@ function pushStartInstance(
1649
1686
  var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1650
1687
  target$jscomp$0,
1651
1688
  props,
1652
- "meta"
1689
+ "meta",
1690
+ formatContext
1653
1691
  );
1654
1692
  else
1655
1693
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1656
1694
  (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
1657
1695
  ? null
1658
1696
  : "string" === typeof props.charSet
1659
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1697
+ ? pushSelfClosing(
1698
+ renderState.charsetChunks,
1699
+ props,
1700
+ "meta",
1701
+ formatContext
1702
+ )
1660
1703
  : "viewport" === props.name
1661
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1662
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1704
+ ? pushSelfClosing(
1705
+ renderState.viewportChunks,
1706
+ props,
1707
+ "meta",
1708
+ formatContext
1709
+ )
1710
+ : pushSelfClosing(
1711
+ renderState.hoistableChunks,
1712
+ props,
1713
+ "meta",
1714
+ formatContext
1715
+ ));
1663
1716
  return JSCompiler_inline_result$jscomp$7;
1664
1717
  case "listing":
1665
1718
  case "pre":
@@ -1686,6 +1739,7 @@ function pushStartInstance(
1686
1739
  );
1687
1740
  }
1688
1741
  }
1742
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1689
1743
  target$jscomp$0.push(">");
1690
1744
  if (null != innerHTML$jscomp$7) {
1691
1745
  if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
@@ -1797,7 +1851,7 @@ function pushStartInstance(
1797
1851
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
1798
1852
  }
1799
1853
  }
1800
- return pushSelfClosing(target$jscomp$0, props, "img");
1854
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
1801
1855
  case "base":
1802
1856
  case "area":
1803
1857
  case "br":
@@ -1809,7 +1863,7 @@ function pushStartInstance(
1809
1863
  case "source":
1810
1864
  case "track":
1811
1865
  case "wbr":
1812
- return pushSelfClosing(target$jscomp$0, props, type);
1866
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
1813
1867
  case "annotation-xml":
1814
1868
  case "color-profile":
1815
1869
  case "font-face":
@@ -1829,13 +1883,15 @@ function pushStartInstance(
1829
1883
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1830
1884
  preamble.headChunks,
1831
1885
  props,
1832
- "head"
1886
+ "head",
1887
+ formatContext
1833
1888
  );
1834
1889
  } else
1835
1890
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1836
1891
  target$jscomp$0,
1837
1892
  props,
1838
- "head"
1893
+ "head",
1894
+ formatContext
1839
1895
  );
1840
1896
  return JSCompiler_inline_result$jscomp$9;
1841
1897
  case "body":
@@ -1848,13 +1904,15 @@ function pushStartInstance(
1848
1904
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1849
1905
  preamble$jscomp$0.bodyChunks,
1850
1906
  props,
1851
- "body"
1907
+ "body",
1908
+ formatContext
1852
1909
  );
1853
1910
  } else
1854
1911
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1855
1912
  target$jscomp$0,
1856
1913
  props,
1857
- "body"
1914
+ "body",
1915
+ formatContext
1858
1916
  );
1859
1917
  return JSCompiler_inline_result$jscomp$10;
1860
1918
  case "html":
@@ -1867,13 +1925,15 @@ function pushStartInstance(
1867
1925
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1868
1926
  preamble$jscomp$1.htmlChunks,
1869
1927
  props,
1870
- "html"
1928
+ "html",
1929
+ formatContext
1871
1930
  );
1872
1931
  } else
1873
1932
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
1874
1933
  target$jscomp$0,
1875
1934
  props,
1876
- "html"
1935
+ "html",
1936
+ formatContext
1877
1937
  );
1878
1938
  return JSCompiler_inline_result$jscomp$11;
1879
1939
  default:
@@ -1923,12 +1983,13 @@ function pushStartInstance(
1923
1983
  }
1924
1984
  }
1925
1985
  }
1986
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1926
1987
  target$jscomp$0.push(">");
1927
1988
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1928
1989
  return children$jscomp$9;
1929
1990
  }
1930
1991
  }
1931
- return pushStartGenericElement(target$jscomp$0, props, type);
1992
+ return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
1932
1993
  }
1933
1994
  var endTagCache = new Map();
1934
1995
  function endChunkForTag(tag) {
@@ -2733,16 +2794,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2733
2794
  "\x3c/script>"
2734
2795
  ));
2735
2796
  bootstrapScriptContent = idPrefix + "P:";
2736
- var JSCompiler_object_inline_segmentPrefix_1673 = idPrefix + "S:";
2797
+ var JSCompiler_object_inline_segmentPrefix_1688 = idPrefix + "S:";
2737
2798
  idPrefix += "B:";
2738
- var JSCompiler_object_inline_preconnects_1687 = new Set(),
2739
- JSCompiler_object_inline_fontPreloads_1688 = new Set(),
2740
- JSCompiler_object_inline_highImagePreloads_1689 = new Set(),
2741
- JSCompiler_object_inline_styles_1690 = new Map(),
2742
- JSCompiler_object_inline_bootstrapScripts_1691 = new Set(),
2743
- JSCompiler_object_inline_scripts_1692 = new Set(),
2744
- JSCompiler_object_inline_bulkPreloads_1693 = new Set(),
2745
- JSCompiler_object_inline_preloads_1694 = {
2799
+ var JSCompiler_object_inline_preconnects_1702 = new Set(),
2800
+ JSCompiler_object_inline_fontPreloads_1703 = new Set(),
2801
+ JSCompiler_object_inline_highImagePreloads_1704 = new Set(),
2802
+ JSCompiler_object_inline_styles_1705 = new Map(),
2803
+ JSCompiler_object_inline_bootstrapScripts_1706 = new Set(),
2804
+ JSCompiler_object_inline_scripts_1707 = new Set(),
2805
+ JSCompiler_object_inline_bulkPreloads_1708 = new Set(),
2806
+ JSCompiler_object_inline_preloads_1709 = {
2746
2807
  images: new Map(),
2747
2808
  stylesheets: new Map(),
2748
2809
  scripts: new Map(),
@@ -2779,7 +2840,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2779
2840
  scriptConfig.moduleScriptResources[href] = null;
2780
2841
  scriptConfig = [];
2781
2842
  pushLinkImpl(scriptConfig, props);
2782
- JSCompiler_object_inline_bootstrapScripts_1691.add(scriptConfig);
2843
+ JSCompiler_object_inline_bootstrapScripts_1706.add(scriptConfig);
2783
2844
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
2784
2845
  "string" === typeof integrity &&
2785
2846
  bootstrapChunks.push(
@@ -2826,7 +2887,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2826
2887
  (props.moduleScriptResources[scriptConfig] = null),
2827
2888
  (props = []),
2828
2889
  pushLinkImpl(props, integrity),
2829
- JSCompiler_object_inline_bootstrapScripts_1691.add(props),
2890
+ JSCompiler_object_inline_bootstrapScripts_1706.add(props),
2830
2891
  bootstrapChunks.push(
2831
2892
  '<script type="module" src="',
2832
2893
  escapeTextForBrowser(i),
@@ -2848,7 +2909,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2848
2909
  bootstrapChunks.push(' async="">\x3c/script>');
2849
2910
  return {
2850
2911
  placeholderPrefix: bootstrapScriptContent,
2851
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1673,
2912
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1688,
2852
2913
  boundaryPrefix: idPrefix,
2853
2914
  startInlineScript: "<script",
2854
2915
  startInlineStyle: "<style",
@@ -2868,14 +2929,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2868
2929
  charsetChunks: [],
2869
2930
  viewportChunks: [],
2870
2931
  hoistableChunks: [],
2871
- preconnects: JSCompiler_object_inline_preconnects_1687,
2872
- fontPreloads: JSCompiler_object_inline_fontPreloads_1688,
2873
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1689,
2874
- styles: JSCompiler_object_inline_styles_1690,
2875
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1691,
2876
- scripts: JSCompiler_object_inline_scripts_1692,
2877
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1693,
2878
- preloads: JSCompiler_object_inline_preloads_1694,
2932
+ preconnects: JSCompiler_object_inline_preconnects_1702,
2933
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1703,
2934
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1704,
2935
+ styles: JSCompiler_object_inline_styles_1705,
2936
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1706,
2937
+ scripts: JSCompiler_object_inline_scripts_1707,
2938
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1708,
2939
+ preloads: JSCompiler_object_inline_preloads_1709,
2879
2940
  nonce: { script: void 0, style: void 0 },
2880
2941
  stylesToHoist: !1,
2881
2942
  generateStaticMarkup: generateStaticMarkup
@@ -2917,6 +2978,8 @@ function getComponentNameFromType(type) {
2917
2978
  return "SuspenseList";
2918
2979
  case REACT_ACTIVITY_TYPE:
2919
2980
  return "Activity";
2981
+ case REACT_VIEW_TRANSITION_TYPE:
2982
+ return "ViewTransition";
2920
2983
  }
2921
2984
  if ("object" === typeof type)
2922
2985
  switch (type.$$typeof) {
@@ -3018,6 +3081,11 @@ var classComponentUpdater = {
3018
3081
  enqueueForceUpdate: function () {}
3019
3082
  },
3020
3083
  emptyTreeContext = { id: 1, overflow: "" };
3084
+ function getTreeId(context) {
3085
+ var overflow = context.overflow;
3086
+ context = context.id;
3087
+ return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
3088
+ }
3021
3089
  function pushTreeContext(baseContext, totalChildren, index) {
3022
3090
  var baseIdWithLeadingBit = baseContext.id;
3023
3091
  baseContext = baseContext.overflow;
@@ -3367,21 +3435,11 @@ var HooksDispatcher = {
3367
3435
  return [!1, unsupportedStartTransition];
3368
3436
  },
3369
3437
  useId: function () {
3370
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3371
- var overflow = JSCompiler_inline_result.overflow;
3372
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3373
- JSCompiler_inline_result =
3374
- (
3375
- JSCompiler_inline_result &
3376
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3377
- ).toString(32) + overflow;
3378
- var resumableState = currentResumableState;
3438
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
3439
+ resumableState = currentResumableState;
3379
3440
  if (null === resumableState) throw Error(formatProdErrorMessage(404));
3380
- overflow = localIdCounter++;
3381
- JSCompiler_inline_result =
3382
- "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
3383
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3384
- return JSCompiler_inline_result + "_";
3441
+ var localId = localIdCounter++;
3442
+ return makeId(resumableState, treeId, localId);
3385
3443
  },
3386
3444
  useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3387
3445
  if (void 0 === getServerSnapshot)
@@ -3631,6 +3689,8 @@ function describeComponentStackByType(type) {
3631
3689
  return describeBuiltInComponentFrame("SuspenseList");
3632
3690
  case REACT_SUSPENSE_TYPE:
3633
3691
  return describeBuiltInComponentFrame("Suspense");
3692
+ case REACT_VIEW_TRANSITION_TYPE:
3693
+ return describeBuiltInComponentFrame("ViewTransition");
3634
3694
  }
3635
3695
  return "";
3636
3696
  }
@@ -4204,109 +4264,139 @@ function renderElement(request, task, keyPath, type, props, ref) {
4204
4264
  void 0 === newProps[propName$43] &&
4205
4265
  (newProps[propName$43] = defaultProps[propName$43]);
4206
4266
  }
4207
- props = newProps;
4208
- newProps = emptyContextObject;
4209
- defaultProps = type.contextType;
4210
- "object" === typeof defaultProps &&
4211
- null !== defaultProps &&
4212
- (newProps = defaultProps._currentValue2);
4213
- newProps = new type(props, newProps);
4214
- var initialState = void 0 !== newProps.state ? newProps.state : null;
4215
- newProps.updater = classComponentUpdater;
4216
- newProps.props = props;
4217
- newProps.state = initialState;
4218
- defaultProps = { queue: [], replace: !1 };
4219
- newProps._reactInternals = defaultProps;
4220
- ref = type.contextType;
4221
- newProps.context =
4222
- "object" === typeof ref && null !== ref
4223
- ? ref._currentValue2
4267
+ var JSCompiler_inline_result = newProps;
4268
+ var context = emptyContextObject,
4269
+ contextType = type.contextType;
4270
+ "object" === typeof contextType &&
4271
+ null !== contextType &&
4272
+ (context = contextType._currentValue2);
4273
+ var JSCompiler_inline_result$jscomp$0 = new type(
4274
+ JSCompiler_inline_result,
4275
+ context
4276
+ );
4277
+ var initialState =
4278
+ void 0 !== JSCompiler_inline_result$jscomp$0.state
4279
+ ? JSCompiler_inline_result$jscomp$0.state
4280
+ : null;
4281
+ JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
4282
+ JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
4283
+ JSCompiler_inline_result$jscomp$0.state = initialState;
4284
+ var internalInstance = { queue: [], replace: !1 };
4285
+ JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
4286
+ var contextType$jscomp$0 = type.contextType;
4287
+ JSCompiler_inline_result$jscomp$0.context =
4288
+ "object" === typeof contextType$jscomp$0 &&
4289
+ null !== contextType$jscomp$0
4290
+ ? contextType$jscomp$0._currentValue2
4224
4291
  : emptyContextObject;
4225
- ref = type.getDerivedStateFromProps;
4226
- "function" === typeof ref &&
4227
- ((ref = ref(props, initialState)),
4228
- (initialState =
4229
- null === ref || void 0 === ref
4292
+ var getDerivedStateFromProps = type.getDerivedStateFromProps;
4293
+ if ("function" === typeof getDerivedStateFromProps) {
4294
+ var partialState = getDerivedStateFromProps(
4295
+ JSCompiler_inline_result,
4296
+ initialState
4297
+ );
4298
+ var JSCompiler_inline_result$jscomp$1 =
4299
+ null === partialState || void 0 === partialState
4230
4300
  ? initialState
4231
- : assign({}, initialState, ref)),
4232
- (newProps.state = initialState));
4301
+ : assign({}, initialState, partialState);
4302
+ JSCompiler_inline_result$jscomp$0.state =
4303
+ JSCompiler_inline_result$jscomp$1;
4304
+ }
4233
4305
  if (
4234
4306
  "function" !== typeof type.getDerivedStateFromProps &&
4235
- "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4236
- ("function" === typeof newProps.UNSAFE_componentWillMount ||
4237
- "function" === typeof newProps.componentWillMount)
4238
- )
4307
+ "function" !==
4308
+ typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
4309
+ ("function" ===
4310
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
4311
+ "function" ===
4312
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
4313
+ ) {
4314
+ var oldState = JSCompiler_inline_result$jscomp$0.state;
4315
+ "function" ===
4316
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
4317
+ JSCompiler_inline_result$jscomp$0.componentWillMount();
4318
+ "function" ===
4319
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
4320
+ JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
4321
+ oldState !== JSCompiler_inline_result$jscomp$0.state &&
4322
+ classComponentUpdater.enqueueReplaceState(
4323
+ JSCompiler_inline_result$jscomp$0,
4324
+ JSCompiler_inline_result$jscomp$0.state,
4325
+ null
4326
+ );
4239
4327
  if (
4240
- ((type = newProps.state),
4241
- "function" === typeof newProps.componentWillMount &&
4242
- newProps.componentWillMount(),
4243
- "function" === typeof newProps.UNSAFE_componentWillMount &&
4244
- newProps.UNSAFE_componentWillMount(),
4245
- type !== newProps.state &&
4246
- classComponentUpdater.enqueueReplaceState(
4247
- newProps,
4248
- newProps.state,
4249
- null
4250
- ),
4251
- null !== defaultProps.queue && 0 < defaultProps.queue.length)
4252
- )
4253
- if (
4254
- ((type = defaultProps.queue),
4255
- (ref = defaultProps.replace),
4256
- (defaultProps.queue = null),
4257
- (defaultProps.replace = !1),
4258
- ref && 1 === type.length)
4259
- )
4260
- newProps.state = type[0];
4328
+ null !== internalInstance.queue &&
4329
+ 0 < internalInstance.queue.length
4330
+ ) {
4331
+ var oldQueue = internalInstance.queue,
4332
+ oldReplace = internalInstance.replace;
4333
+ internalInstance.queue = null;
4334
+ internalInstance.replace = !1;
4335
+ if (oldReplace && 1 === oldQueue.length)
4336
+ JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
4261
4337
  else {
4262
- defaultProps = ref ? type[0] : newProps.state;
4263
- initialState = !0;
4264
- for (ref = ref ? 1 : 0; ref < type.length; ref++)
4265
- (propName$43 = type[ref]),
4266
- (propName$43 =
4267
- "function" === typeof propName$43
4268
- ? propName$43.call(newProps, defaultProps, props, void 0)
4269
- : propName$43),
4270
- null != propName$43 &&
4271
- (initialState
4272
- ? ((initialState = !1),
4273
- (defaultProps = assign({}, defaultProps, propName$43)))
4274
- : assign(defaultProps, propName$43));
4275
- newProps.state = defaultProps;
4338
+ for (
4339
+ var nextState = oldReplace
4340
+ ? oldQueue[0]
4341
+ : JSCompiler_inline_result$jscomp$0.state,
4342
+ dontMutate = !0,
4343
+ i = oldReplace ? 1 : 0;
4344
+ i < oldQueue.length;
4345
+ i++
4346
+ ) {
4347
+ var partial = oldQueue[i],
4348
+ partialState$jscomp$0 =
4349
+ "function" === typeof partial
4350
+ ? partial.call(
4351
+ JSCompiler_inline_result$jscomp$0,
4352
+ nextState,
4353
+ JSCompiler_inline_result,
4354
+ void 0
4355
+ )
4356
+ : partial;
4357
+ null != partialState$jscomp$0 &&
4358
+ (dontMutate
4359
+ ? ((dontMutate = !1),
4360
+ (nextState = assign({}, nextState, partialState$jscomp$0)))
4361
+ : assign(nextState, partialState$jscomp$0));
4362
+ }
4363
+ JSCompiler_inline_result$jscomp$0.state = nextState;
4276
4364
  }
4277
- else defaultProps.queue = null;
4278
- type = newProps.render();
4365
+ } else internalInstance.queue = null;
4366
+ }
4367
+ var nextChildren = JSCompiler_inline_result$jscomp$0.render();
4279
4368
  if (12 === request.status) throw null;
4280
- props = task.keyPath;
4369
+ var prevKeyPath = task.keyPath;
4281
4370
  task.keyPath = keyPath;
4282
- renderNodeDestructive(request, task, type, -1);
4283
- task.keyPath = props;
4371
+ renderNodeDestructive(request, task, nextChildren, -1);
4372
+ task.keyPath = prevKeyPath;
4284
4373
  } else {
4285
- type = renderWithHooks(request, task, keyPath, type, props, void 0);
4374
+ var value = renderWithHooks(request, task, keyPath, type, props, void 0);
4286
4375
  if (12 === request.status) throw null;
4287
4376
  finishFunctionComponent(
4288
4377
  request,
4289
4378
  task,
4290
4379
  keyPath,
4291
- type,
4380
+ value,
4292
4381
  0 !== localIdCounter,
4293
4382
  actionStateCounter,
4294
4383
  actionStateMatchingIndex
4295
4384
  );
4296
4385
  }
4297
- else if ("string" === typeof type)
4298
- if (((newProps = task.blockedSegment), null === newProps))
4299
- (newProps = props.children),
4300
- (defaultProps = task.formatContext),
4301
- (initialState = task.keyPath),
4302
- (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4303
- (task.keyPath = keyPath),
4304
- renderNode(request, task, newProps, -1),
4305
- (task.formatContext = defaultProps),
4306
- (task.keyPath = initialState);
4307
- else {
4308
- initialState = pushStartInstance(
4309
- newProps.chunks,
4386
+ else if ("string" === typeof type) {
4387
+ var segment = task.blockedSegment;
4388
+ if (null === segment) {
4389
+ var children = props.children,
4390
+ prevContext = task.formatContext,
4391
+ prevKeyPath$jscomp$0 = task.keyPath;
4392
+ task.formatContext = getChildFormatContext(prevContext, type, props);
4393
+ task.keyPath = keyPath;
4394
+ renderNode(request, task, children, -1);
4395
+ task.formatContext = prevContext;
4396
+ task.keyPath = prevKeyPath$jscomp$0;
4397
+ } else {
4398
+ var children$40 = pushStartInstance(
4399
+ segment.chunks,
4310
4400
  type,
4311
4401
  props,
4312
4402
  request.resumableState,
@@ -4314,18 +4404,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
4314
4404
  task.blockedPreamble,
4315
4405
  task.hoistableState,
4316
4406
  task.formatContext,
4317
- newProps.lastPushedText
4407
+ segment.lastPushedText
4318
4408
  );
4319
- newProps.lastPushedText = !1;
4320
- defaultProps = task.formatContext;
4321
- ref = task.keyPath;
4409
+ segment.lastPushedText = !1;
4410
+ var prevContext$41 = task.formatContext,
4411
+ prevKeyPath$42 = task.keyPath;
4322
4412
  task.keyPath = keyPath;
4323
4413
  if (
4324
4414
  3 ===
4325
- (task.formatContext = getChildFormatContext(defaultProps, type, props))
4326
- .insertionMode
4415
+ (task.formatContext = getChildFormatContext(
4416
+ prevContext$41,
4417
+ type,
4418
+ props
4419
+ )).insertionMode
4327
4420
  ) {
4328
- keyPath = createPendingSegment(
4421
+ var preambleSegment = createPendingSegment(
4329
4422
  request,
4330
4423
  0,
4331
4424
  null,
@@ -4333,27 +4426,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
4333
4426
  !1,
4334
4427
  !1
4335
4428
  );
4336
- newProps.preambleChildren.push(keyPath);
4337
- task.blockedSegment = keyPath;
4429
+ segment.preambleChildren.push(preambleSegment);
4430
+ task.blockedSegment = preambleSegment;
4338
4431
  try {
4339
- (keyPath.status = 6),
4340
- renderNode(request, task, initialState, -1),
4432
+ (preambleSegment.status = 6),
4433
+ renderNode(request, task, children$40, -1),
4341
4434
  pushSegmentFinale(
4342
- keyPath.chunks,
4435
+ preambleSegment.chunks,
4343
4436
  request.renderState,
4344
- keyPath.lastPushedText,
4345
- keyPath.textEmbedded
4437
+ preambleSegment.lastPushedText,
4438
+ preambleSegment.textEmbedded
4346
4439
  ),
4347
- (keyPath.status = 1);
4440
+ (preambleSegment.status = 1);
4348
4441
  } finally {
4349
- task.blockedSegment = newProps;
4442
+ task.blockedSegment = segment;
4350
4443
  }
4351
- } else renderNode(request, task, initialState, -1);
4352
- task.formatContext = defaultProps;
4353
- task.keyPath = ref;
4444
+ } else renderNode(request, task, children$40, -1);
4445
+ task.formatContext = prevContext$41;
4446
+ task.keyPath = prevKeyPath$42;
4354
4447
  a: {
4355
- task = newProps.chunks;
4356
- request = request.resumableState;
4448
+ var target = segment.chunks,
4449
+ resumableState = request.resumableState;
4357
4450
  switch (type) {
4358
4451
  case "title":
4359
4452
  case "style":
@@ -4375,133 +4468,172 @@ function renderElement(request, task, keyPath, type, props, ref) {
4375
4468
  case "wbr":
4376
4469
  break a;
4377
4470
  case "body":
4378
- if (1 >= defaultProps.insertionMode) {
4379
- request.hasBody = !0;
4471
+ if (1 >= prevContext$41.insertionMode) {
4472
+ resumableState.hasBody = !0;
4380
4473
  break a;
4381
4474
  }
4382
4475
  break;
4383
4476
  case "html":
4384
- if (0 === defaultProps.insertionMode) {
4385
- request.hasHtml = !0;
4477
+ if (0 === prevContext$41.insertionMode) {
4478
+ resumableState.hasHtml = !0;
4386
4479
  break a;
4387
4480
  }
4388
4481
  break;
4389
4482
  case "head":
4390
- if (1 >= defaultProps.insertionMode) break a;
4483
+ if (1 >= prevContext$41.insertionMode) break a;
4391
4484
  }
4392
- task.push(endChunkForTag(type));
4485
+ target.push(endChunkForTag(type));
4393
4486
  }
4394
- newProps.lastPushedText = !1;
4487
+ segment.lastPushedText = !1;
4395
4488
  }
4396
- else {
4489
+ } else {
4397
4490
  switch (type) {
4398
4491
  case REACT_LEGACY_HIDDEN_TYPE:
4399
4492
  case REACT_STRICT_MODE_TYPE:
4400
4493
  case REACT_PROFILER_TYPE:
4401
4494
  case REACT_FRAGMENT_TYPE:
4402
- type = task.keyPath;
4495
+ var prevKeyPath$jscomp$1 = task.keyPath;
4403
4496
  task.keyPath = keyPath;
4404
4497
  renderNodeDestructive(request, task, props.children, -1);
4405
- task.keyPath = type;
4498
+ task.keyPath = prevKeyPath$jscomp$1;
4406
4499
  return;
4407
4500
  case REACT_ACTIVITY_TYPE:
4408
- type = task.blockedSegment;
4409
- null === type
4410
- ? "hidden" !== props.mode &&
4411
- ((type = task.keyPath),
4412
- (task.keyPath = keyPath),
4413
- renderNode(request, task, props.children, -1),
4414
- (task.keyPath = type))
4415
- : "hidden" !== props.mode &&
4416
- (request.renderState.generateStaticMarkup ||
4417
- type.chunks.push("\x3c!--&--\x3e"),
4418
- (type.lastPushedText = !1),
4419
- (newProps = task.keyPath),
4420
- (task.keyPath = keyPath),
4421
- renderNode(request, task, props.children, -1),
4422
- (task.keyPath = newProps),
4423
- request.renderState.generateStaticMarkup ||
4424
- type.chunks.push("\x3c!--/&--\x3e"),
4425
- (type.lastPushedText = !1));
4501
+ var segment$jscomp$0 = task.blockedSegment;
4502
+ if (null === segment$jscomp$0) {
4503
+ if ("hidden" !== props.mode) {
4504
+ var prevKeyPath$jscomp$2 = task.keyPath;
4505
+ task.keyPath = keyPath;
4506
+ renderNode(request, task, props.children, -1);
4507
+ task.keyPath = prevKeyPath$jscomp$2;
4508
+ }
4509
+ } else if ("hidden" !== props.mode) {
4510
+ request.renderState.generateStaticMarkup ||
4511
+ segment$jscomp$0.chunks.push("\x3c!--&--\x3e");
4512
+ segment$jscomp$0.lastPushedText = !1;
4513
+ var prevKeyPath$45 = task.keyPath;
4514
+ task.keyPath = keyPath;
4515
+ renderNode(request, task, props.children, -1);
4516
+ task.keyPath = prevKeyPath$45;
4517
+ request.renderState.generateStaticMarkup ||
4518
+ segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
4519
+ segment$jscomp$0.lastPushedText = !1;
4520
+ }
4426
4521
  return;
4427
4522
  case REACT_SUSPENSE_LIST_TYPE:
4428
4523
  a: {
4429
- type = props.children;
4430
- props = props.revealOrder;
4524
+ var children$jscomp$0 = props.children,
4525
+ revealOrder = props.revealOrder;
4431
4526
  if (
4432
- "forwards" === props ||
4433
- "backwards" === props ||
4434
- "unstable_legacy-backwards" === props
4527
+ "forwards" === revealOrder ||
4528
+ "backwards" === revealOrder ||
4529
+ "unstable_legacy-backwards" === revealOrder
4435
4530
  ) {
4436
- if (isArrayImpl(type)) {
4437
- renderSuspenseListRows(request, task, keyPath, type, props);
4531
+ if (isArrayImpl(children$jscomp$0)) {
4532
+ renderSuspenseListRows(
4533
+ request,
4534
+ task,
4535
+ keyPath,
4536
+ children$jscomp$0,
4537
+ revealOrder
4538
+ );
4438
4539
  break a;
4439
4540
  }
4440
- if ((newProps = getIteratorFn(type)))
4441
- if ((newProps = newProps.call(type))) {
4442
- defaultProps = newProps.next();
4443
- if (!defaultProps.done) {
4444
- do defaultProps = newProps.next();
4445
- while (!defaultProps.done);
4446
- renderSuspenseListRows(request, task, keyPath, type, props);
4541
+ var iteratorFn = getIteratorFn(children$jscomp$0);
4542
+ if (iteratorFn) {
4543
+ var iterator = iteratorFn.call(children$jscomp$0);
4544
+ if (iterator) {
4545
+ var step = iterator.next();
4546
+ if (!step.done) {
4547
+ do step = iterator.next();
4548
+ while (!step.done);
4549
+ renderSuspenseListRows(
4550
+ request,
4551
+ task,
4552
+ keyPath,
4553
+ children$jscomp$0,
4554
+ revealOrder
4555
+ );
4447
4556
  }
4448
4557
  break a;
4449
4558
  }
4559
+ }
4560
+ }
4561
+ if ("together" === revealOrder) {
4562
+ var prevKeyPath$39 = task.keyPath,
4563
+ prevRow = task.row,
4564
+ newRow = (task.row = createSuspenseListRow(null));
4565
+ newRow.boundaries = [];
4566
+ newRow.together = !0;
4567
+ task.keyPath = keyPath;
4568
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4569
+ 0 === --newRow.pendingTasks &&
4570
+ finishSuspenseListRow(request, newRow);
4571
+ task.keyPath = prevKeyPath$39;
4572
+ task.row = prevRow;
4573
+ null !== prevRow &&
4574
+ 0 < newRow.pendingTasks &&
4575
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
4576
+ } else {
4577
+ var prevKeyPath$jscomp$3 = task.keyPath;
4578
+ task.keyPath = keyPath;
4579
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4580
+ task.keyPath = prevKeyPath$jscomp$3;
4450
4581
  }
4451
- "together" === props
4452
- ? ((props = task.keyPath),
4453
- (newProps = task.row),
4454
- (defaultProps = task.row = createSuspenseListRow(null)),
4455
- (defaultProps.boundaries = []),
4456
- (defaultProps.together = !0),
4457
- (task.keyPath = keyPath),
4458
- renderNodeDestructive(request, task, type, -1),
4459
- 0 === --defaultProps.pendingTasks &&
4460
- finishSuspenseListRow(request, defaultProps),
4461
- (task.keyPath = props),
4462
- (task.row = newProps),
4463
- null !== newProps &&
4464
- 0 < defaultProps.pendingTasks &&
4465
- (newProps.pendingTasks++, (defaultProps.next = newProps)))
4466
- : ((props = task.keyPath),
4467
- (task.keyPath = keyPath),
4468
- renderNodeDestructive(request, task, type, -1),
4469
- (task.keyPath = props));
4470
4582
  }
4471
4583
  return;
4472
4584
  case REACT_VIEW_TRANSITION_TYPE:
4585
+ var prevContext$jscomp$0 = task.formatContext,
4586
+ prevKeyPath$jscomp$4 = task.keyPath;
4587
+ var resumableState$jscomp$0 = request.resumableState;
4588
+ if (null == props.name || "auto" === props.name) {
4589
+ var treeId = getTreeId(task.treeContext);
4590
+ makeId(resumableState$jscomp$0, treeId, 0);
4591
+ }
4592
+ task.formatContext = prevContext$jscomp$0;
4593
+ task.keyPath = keyPath;
4594
+ if (null != props.name && "auto" !== props.name)
4595
+ renderNodeDestructive(request, task, props.children, -1);
4596
+ else {
4597
+ var prevTreeContext = task.treeContext;
4598
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
4599
+ renderNode(request, task, props.children, -1);
4600
+ task.treeContext = prevTreeContext;
4601
+ }
4602
+ task.formatContext = prevContext$jscomp$0;
4603
+ task.keyPath = prevKeyPath$jscomp$4;
4604
+ return;
4473
4605
  case REACT_SCOPE_TYPE:
4474
4606
  throw Error(formatProdErrorMessage(343));
4475
4607
  case REACT_SUSPENSE_TYPE:
4476
4608
  a: if (null !== task.replay) {
4477
- type = task.keyPath;
4478
- newProps = task.formatContext;
4479
- defaultProps = task.row;
4609
+ var prevKeyPath$26 = task.keyPath,
4610
+ prevContext$27 = task.formatContext,
4611
+ prevRow$28 = task.row;
4480
4612
  task.keyPath = keyPath;
4481
4613
  task.formatContext = getSuspenseContentFormatContext(
4482
4614
  request.resumableState,
4483
- newProps
4615
+ prevContext$27
4484
4616
  );
4485
4617
  task.row = null;
4486
- keyPath = props.children;
4618
+ var content$29 = props.children;
4487
4619
  try {
4488
- renderNode(request, task, keyPath, -1);
4620
+ renderNode(request, task, content$29, -1);
4489
4621
  } finally {
4490
- (task.keyPath = type),
4491
- (task.formatContext = newProps),
4492
- (task.row = defaultProps);
4622
+ (task.keyPath = prevKeyPath$26),
4623
+ (task.formatContext = prevContext$27),
4624
+ (task.row = prevRow$28);
4493
4625
  }
4494
4626
  } else {
4495
- type = task.keyPath;
4496
- ref = task.formatContext;
4497
- var prevRow = task.row,
4498
- parentBoundary = task.blockedBoundary;
4499
- propName$43 = task.blockedPreamble;
4500
- var parentHoistableState = task.hoistableState;
4501
- propName = task.blockedSegment;
4502
- var fallback = props.fallback;
4503
- props = props.children;
4504
- var fallbackAbortSet = new Set();
4627
+ var prevKeyPath$jscomp$5 = task.keyPath,
4628
+ prevContext$jscomp$1 = task.formatContext,
4629
+ prevRow$jscomp$0 = task.row,
4630
+ parentBoundary = task.blockedBoundary,
4631
+ parentPreamble = task.blockedPreamble,
4632
+ parentHoistableState = task.hoistableState,
4633
+ parentSegment = task.blockedSegment,
4634
+ fallback = props.fallback,
4635
+ content = props.children,
4636
+ fallbackAbortSet = new Set();
4505
4637
  var newBoundary = createSuspenseBoundary(
4506
4638
  request,
4507
4639
  task.row,
@@ -4513,14 +4645,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
4513
4645
  (newBoundary.trackedContentKeyPath = keyPath);
4514
4646
  var boundarySegment = createPendingSegment(
4515
4647
  request,
4516
- propName.chunks.length,
4648
+ parentSegment.chunks.length,
4517
4649
  newBoundary,
4518
4650
  task.formatContext,
4519
4651
  !1,
4520
4652
  !1
4521
4653
  );
4522
- propName.children.push(boundarySegment);
4523
- propName.lastPushedText = !1;
4654
+ parentSegment.children.push(boundarySegment);
4655
+ parentSegment.lastPushedText = !1;
4524
4656
  var contentRootSegment = createPendingSegment(
4525
4657
  request,
4526
4658
  0,
@@ -4531,20 +4663,30 @@ function renderElement(request, task, keyPath, type, props, ref) {
4531
4663
  );
4532
4664
  contentRootSegment.parentFlushed = !0;
4533
4665
  if (null !== request.trackedPostpones) {
4534
- newProps = task.componentStack;
4535
- defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4536
- initialState = [defaultProps[1], defaultProps[2], [], null];
4537
- request.trackedPostpones.workingMap.set(defaultProps, initialState);
4538
- newBoundary.trackedFallbackNode = initialState;
4666
+ var suspenseComponentStack = task.componentStack,
4667
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
4668
+ fallbackReplayNode = [
4669
+ fallbackKeyPath[1],
4670
+ fallbackKeyPath[2],
4671
+ [],
4672
+ null
4673
+ ];
4674
+ request.trackedPostpones.workingMap.set(
4675
+ fallbackKeyPath,
4676
+ fallbackReplayNode
4677
+ );
4678
+ newBoundary.trackedFallbackNode = fallbackReplayNode;
4539
4679
  task.blockedSegment = boundarySegment;
4540
4680
  task.blockedPreamble = newBoundary.fallbackPreamble;
4541
- task.keyPath = defaultProps;
4681
+ task.keyPath = fallbackKeyPath;
4542
4682
  task.formatContext = getSuspenseFallbackFormatContext(
4543
4683
  request.resumableState,
4544
- ref
4684
+ prevContext$jscomp$1
4545
4685
  );
4546
4686
  task.componentStack =
4547
- replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
4687
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4688
+ suspenseComponentStack
4689
+ );
4548
4690
  boundarySegment.status = 6;
4549
4691
  try {
4550
4692
  renderNode(request, task, fallback, -1),
@@ -4561,15 +4703,15 @@ function renderElement(request, task, keyPath, type, props, ref) {
4561
4703
  thrownValue)
4562
4704
  );
4563
4705
  } finally {
4564
- (task.blockedSegment = propName),
4565
- (task.blockedPreamble = propName$43),
4566
- (task.keyPath = type),
4567
- (task.formatContext = ref);
4706
+ (task.blockedSegment = parentSegment),
4707
+ (task.blockedPreamble = parentPreamble),
4708
+ (task.keyPath = prevKeyPath$jscomp$5),
4709
+ (task.formatContext = prevContext$jscomp$1);
4568
4710
  }
4569
- task = createRenderTask(
4711
+ var suspendedPrimaryTask = createRenderTask(
4570
4712
  request,
4571
4713
  null,
4572
- props,
4714
+ content,
4573
4715
  -1,
4574
4716
  newBoundary,
4575
4717
  contentRootSegment,
@@ -4584,10 +4726,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4584
4726
  task.context,
4585
4727
  task.treeContext,
4586
4728
  null,
4587
- newProps
4729
+ suspenseComponentStack
4588
4730
  );
4589
- pushComponentStack(task);
4590
- request.pingedTasks.push(task);
4731
+ pushComponentStack(suspendedPrimaryTask);
4732
+ request.pingedTasks.push(suspendedPrimaryTask);
4591
4733
  } else {
4592
4734
  task.blockedBoundary = newBoundary;
4593
4735
  task.blockedPreamble = newBoundary.contentPreamble;
@@ -4596,13 +4738,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
4596
4738
  task.keyPath = keyPath;
4597
4739
  task.formatContext = getSuspenseContentFormatContext(
4598
4740
  request.resumableState,
4599
- ref
4741
+ prevContext$jscomp$1
4600
4742
  );
4601
4743
  task.row = null;
4602
4744
  contentRootSegment.status = 6;
4603
4745
  try {
4604
4746
  if (
4605
- (renderNode(request, task, props, -1),
4747
+ (renderNode(request, task, content, -1),
4606
4748
  pushSegmentFinale(
4607
4749
  contentRootSegment.chunks,
4608
4750
  request.renderState,
@@ -4617,43 +4759,38 @@ function renderElement(request, task, keyPath, type, props, ref) {
4617
4759
  ((newBoundary.status = 1),
4618
4760
  !isEligibleForOutlining(request, newBoundary))
4619
4761
  ) {
4620
- null !== prevRow &&
4621
- 0 === --prevRow.pendingTasks &&
4622
- finishSuspenseListRow(request, prevRow);
4762
+ null !== prevRow$jscomp$0 &&
4763
+ 0 === --prevRow$jscomp$0.pendingTasks &&
4764
+ finishSuspenseListRow(request, prevRow$jscomp$0);
4623
4765
  0 === request.pendingRootTasks &&
4624
4766
  task.blockedPreamble &&
4625
4767
  preparePreamble(request);
4626
4768
  break a;
4627
4769
  }
4628
4770
  } else
4629
- null !== prevRow &&
4630
- prevRow.together &&
4631
- tryToResolveTogetherRow(request, prevRow);
4771
+ null !== prevRow$jscomp$0 &&
4772
+ prevRow$jscomp$0.together &&
4773
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
4632
4774
  } catch (thrownValue$30) {
4633
- (newBoundary.status = 4),
4634
- 12 === request.status
4635
- ? ((contentRootSegment.status = 3),
4636
- (newProps = request.fatalError))
4637
- : ((contentRootSegment.status = 4),
4638
- (newProps = thrownValue$30)),
4639
- (defaultProps = getThrownInfo(task.componentStack)),
4640
- (initialState = logRecoverableError(
4641
- request,
4642
- newProps,
4643
- defaultProps
4644
- )),
4645
- (newBoundary.errorDigest = initialState),
4646
- untrackBoundary(request, newBoundary);
4775
+ newBoundary.status = 4;
4776
+ if (12 === request.status) {
4777
+ contentRootSegment.status = 3;
4778
+ var error = request.fatalError;
4779
+ } else (contentRootSegment.status = 4), (error = thrownValue$30);
4780
+ var thrownInfo = getThrownInfo(task.componentStack);
4781
+ var errorDigest = logRecoverableError(request, error, thrownInfo);
4782
+ newBoundary.errorDigest = errorDigest;
4783
+ untrackBoundary(request, newBoundary);
4647
4784
  } finally {
4648
4785
  (task.blockedBoundary = parentBoundary),
4649
- (task.blockedPreamble = propName$43),
4786
+ (task.blockedPreamble = parentPreamble),
4650
4787
  (task.hoistableState = parentHoistableState),
4651
- (task.blockedSegment = propName),
4652
- (task.keyPath = type),
4653
- (task.formatContext = ref),
4654
- (task.row = prevRow);
4788
+ (task.blockedSegment = parentSegment),
4789
+ (task.keyPath = prevKeyPath$jscomp$5),
4790
+ (task.formatContext = prevContext$jscomp$1),
4791
+ (task.row = prevRow$jscomp$0);
4655
4792
  }
4656
- task = createRenderTask(
4793
+ var suspendedFallbackTask = createRenderTask(
4657
4794
  request,
4658
4795
  null,
4659
4796
  fallback,
@@ -4675,8 +4812,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4675
4812
  task.componentStack
4676
4813
  )
4677
4814
  );
4678
- pushComponentStack(task);
4679
- request.pingedTasks.push(task);
4815
+ pushComponentStack(suspendedFallbackTask);
4816
+ request.pingedTasks.push(suspendedFallbackTask);
4680
4817
  }
4681
4818
  }
4682
4819
  return;
@@ -4684,23 +4821,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
4684
4821
  if ("object" === typeof type && null !== type)
4685
4822
  switch (type.$$typeof) {
4686
4823
  case REACT_FORWARD_REF_TYPE:
4687
- if ("ref" in props)
4688
- for (fallback in ((newProps = {}), props))
4689
- "ref" !== fallback && (newProps[fallback] = props[fallback]);
4690
- else newProps = props;
4691
- type = renderWithHooks(
4824
+ if ("ref" in props) {
4825
+ var propsWithoutRef = {};
4826
+ for (var key in props)
4827
+ "ref" !== key && (propsWithoutRef[key] = props[key]);
4828
+ } else propsWithoutRef = props;
4829
+ var children$jscomp$1 = renderWithHooks(
4692
4830
  request,
4693
4831
  task,
4694
4832
  keyPath,
4695
4833
  type.render,
4696
- newProps,
4834
+ propsWithoutRef,
4697
4835
  ref
4698
4836
  );
4699
4837
  finishFunctionComponent(
4700
4838
  request,
4701
4839
  task,
4702
4840
  keyPath,
4703
- type,
4841
+ children$jscomp$1,
4704
4842
  0 !== localIdCounter,
4705
4843
  actionStateCounter,
4706
4844
  actionStateMatchingIndex
@@ -4710,42 +4848,44 @@ function renderElement(request, task, keyPath, type, props, ref) {
4710
4848
  renderElement(request, task, keyPath, type.type, props, ref);
4711
4849
  return;
4712
4850
  case REACT_CONTEXT_TYPE:
4713
- defaultProps = props.children;
4714
- newProps = task.keyPath;
4715
- props = props.value;
4716
- initialState = type._currentValue2;
4717
- type._currentValue2 = props;
4718
- ref = currentActiveSnapshot;
4719
- currentActiveSnapshot = type = {
4720
- parent: ref,
4721
- depth: null === ref ? 0 : ref.depth + 1,
4722
- context: type,
4723
- parentValue: initialState,
4724
- value: props
4725
- };
4726
- task.context = type;
4851
+ var children$jscomp$2 = props.children,
4852
+ prevKeyPath$jscomp$6 = task.keyPath,
4853
+ nextValue = props.value;
4854
+ var prevValue = type._currentValue2;
4855
+ type._currentValue2 = nextValue;
4856
+ var prevNode = currentActiveSnapshot,
4857
+ newNode = {
4858
+ parent: prevNode,
4859
+ depth: null === prevNode ? 0 : prevNode.depth + 1,
4860
+ context: type,
4861
+ parentValue: prevValue,
4862
+ value: nextValue
4863
+ };
4864
+ currentActiveSnapshot = newNode;
4865
+ task.context = newNode;
4727
4866
  task.keyPath = keyPath;
4728
- renderNodeDestructive(request, task, defaultProps, -1);
4729
- request = currentActiveSnapshot;
4730
- if (null === request) throw Error(formatProdErrorMessage(403));
4731
- request.context._currentValue2 = request.parentValue;
4732
- request = currentActiveSnapshot = request.parent;
4733
- task.context = request;
4734
- task.keyPath = newProps;
4867
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
4868
+ var prevSnapshot = currentActiveSnapshot;
4869
+ if (null === prevSnapshot) throw Error(formatProdErrorMessage(403));
4870
+ prevSnapshot.context._currentValue2 = prevSnapshot.parentValue;
4871
+ var JSCompiler_inline_result$jscomp$2 = (currentActiveSnapshot =
4872
+ prevSnapshot.parent);
4873
+ task.context = JSCompiler_inline_result$jscomp$2;
4874
+ task.keyPath = prevKeyPath$jscomp$6;
4735
4875
  return;
4736
4876
  case REACT_CONSUMER_TYPE:
4737
- props = props.children;
4738
- type = props(type._context._currentValue2);
4739
- props = task.keyPath;
4877
+ var render = props.children,
4878
+ newChildren = render(type._context._currentValue2),
4879
+ prevKeyPath$jscomp$7 = task.keyPath;
4740
4880
  task.keyPath = keyPath;
4741
- renderNodeDestructive(request, task, type, -1);
4742
- task.keyPath = props;
4881
+ renderNodeDestructive(request, task, newChildren, -1);
4882
+ task.keyPath = prevKeyPath$jscomp$7;
4743
4883
  return;
4744
4884
  case REACT_LAZY_TYPE:
4745
- newProps = type._init;
4746
- type = newProps(type._payload);
4885
+ var init = type._init;
4886
+ var Component = init(type._payload);
4747
4887
  if (12 === request.status) throw null;
4748
- renderElement(request, task, keyPath, type, props, ref);
4888
+ renderElement(request, task, keyPath, Component, props, ref);
4749
4889
  return;
4750
4890
  }
4751
4891
  throw Error(
@@ -6124,7 +6264,8 @@ function flushCompletedBoundary(request, destination, boundary) {
6124
6264
  request = request.renderState;
6125
6265
  i = boundary.rootSegmentID;
6126
6266
  boundary = boundary.contentState;
6127
- var requiresStyleInsertion = request.stylesToHoist;
6267
+ var requiresStyleInsertion = request.stylesToHoist,
6268
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
6128
6269
  request.stylesToHoist = !1;
6129
6270
  destination.push(request.startInlineScript);
6130
6271
  destination.push(">");
@@ -6139,6 +6280,12 @@ function flushCompletedBoundary(request, destination, boundary) {
6139
6280
  destination.push(
6140
6281
  '$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)};'
6141
6282
  )),
6283
+ requiresViewTransitions &&
6284
+ 0 === (completedSegments.instructions & 256) &&
6285
+ ((completedSegments.instructions |= 256),
6286
+ destination.push(
6287
+ '$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);'
6288
+ )),
6142
6289
  0 === (completedSegments.instructions & 8)
6143
6290
  ? ((completedSegments.instructions |= 8),
6144
6291
  destination.push(
@@ -6150,6 +6297,12 @@ function flushCompletedBoundary(request, destination, boundary) {
6150
6297
  destination.push(
6151
6298
  '$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)};'
6152
6299
  )),
6300
+ requiresViewTransitions &&
6301
+ 0 === (completedSegments.instructions & 256) &&
6302
+ ((completedSegments.instructions |= 256),
6303
+ destination.push(
6304
+ '$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);'
6305
+ )),
6153
6306
  destination.push('$RC("'));
6154
6307
  completedSegments = i.toString(16);
6155
6308
  destination.push(request.boundaryPrefix);
@@ -6601,4 +6754,4 @@ exports.renderToString = function (children, options) {
6601
6754
  '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 "renderToReadableStream" which supports Suspense on the server'
6602
6755
  );
6603
6756
  };
6604
- exports.version = "19.3.0-canary-c7862584-20251006";
6757
+ exports.version = "19.3.0-canary-a4eb2dfa-20251006";