react-dom 19.1.0 → 19.2.4

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.
@@ -41,12 +41,17 @@
41
41
  function scriptReplacer(match, prefix, s, suffix) {
42
42
  return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
43
43
  }
44
+ function getIteratorFn(maybeIterable) {
45
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
46
+ return null;
47
+ maybeIterable =
48
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
49
+ maybeIterable["@@iterator"];
50
+ return "function" === typeof maybeIterable ? maybeIterable : null;
51
+ }
44
52
  function objectName(object) {
45
- return Object.prototype.toString
46
- .call(object)
47
- .replace(/^\[object (.*)\]$/, function (m, p0) {
48
- return p0;
49
- });
53
+ object = Object.prototype.toString.call(object);
54
+ return object.slice(8, object.length - 1);
50
55
  }
51
56
  function describeKeyForErrorMessage(key) {
52
57
  var encodedKey = JSON.stringify(key);
@@ -320,6 +325,9 @@
320
325
  );
321
326
  return content;
322
327
  }
328
+ function byteLengthOfChunk(chunk) {
329
+ return chunk.byteLength;
330
+ }
323
331
  function closeWithError(destination, error) {
324
332
  "function" === typeof destination.error
325
333
  ? destination.error(error)
@@ -804,25 +812,38 @@
804
812
  onHeaders,
805
813
  maxHeadersLength
806
814
  ) {
815
+ externalRuntimeConfig =
816
+ "string" === typeof nonce ? nonce : nonce && nonce.script;
807
817
  var inlineScriptWithNonce =
808
- void 0 === nonce
818
+ void 0 === externalRuntimeConfig
809
819
  ? startInlineScript
810
820
  : stringToPrecomputedChunk(
811
- '<script nonce="' + escapeTextForBrowser(nonce) + '">'
821
+ '<script nonce="' +
822
+ escapeTextForBrowser(externalRuntimeConfig) +
823
+ '"'
824
+ ),
825
+ nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style,
826
+ inlineStyleWithNonce =
827
+ void 0 === nonceStyle
828
+ ? startInlineStyle
829
+ : stringToPrecomputedChunk(
830
+ '<style nonce="' + escapeTextForBrowser(nonceStyle) + '"'
812
831
  ),
813
- idPrefix = resumableState.idPrefix;
814
- externalRuntimeConfig = [];
815
- var bootstrapScriptContent = resumableState.bootstrapScriptContent,
832
+ idPrefix = resumableState.idPrefix,
833
+ bootstrapChunks = [],
834
+ bootstrapScriptContent = resumableState.bootstrapScriptContent,
816
835
  bootstrapScripts = resumableState.bootstrapScripts,
817
836
  bootstrapModules = resumableState.bootstrapModules;
818
837
  void 0 !== bootstrapScriptContent &&
819
- externalRuntimeConfig.push(
820
- inlineScriptWithNonce,
838
+ (bootstrapChunks.push(inlineScriptWithNonce),
839
+ pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
840
+ bootstrapChunks.push(
841
+ endOfStartTag,
821
842
  stringToChunk(
822
843
  escapeEntireInlineScriptContent(bootstrapScriptContent)
823
844
  ),
824
845
  endInlineScript
825
- );
846
+ ));
826
847
  bootstrapScriptContent = [];
827
848
  void 0 !== importMap &&
828
849
  (bootstrapScriptContent.push(importMapScriptStart),
@@ -854,9 +875,10 @@
854
875
  segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
855
876
  boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
856
877
  startInlineScript: inlineScriptWithNonce,
878
+ startInlineStyle: inlineStyleWithNonce,
857
879
  preamble: createPreambleState(),
858
880
  externalRuntimeScript: null,
859
- bootstrapChunks: externalRuntimeConfig,
881
+ bootstrapChunks: bootstrapChunks,
860
882
  importMapChunks: bootstrapScriptContent,
861
883
  onHeaders: onHeaders,
862
884
  headers: importMap,
@@ -883,114 +905,119 @@
883
905
  scripts: new Map(),
884
906
  moduleScripts: new Map()
885
907
  },
886
- nonce: nonce,
908
+ nonce: { script: externalRuntimeConfig, style: nonceStyle },
887
909
  hoistableState: null,
888
910
  stylesToHoist: !1
889
911
  };
890
912
  if (void 0 !== bootstrapScripts)
891
- for (importMap = 0; importMap < bootstrapScripts.length; importMap++) {
892
- maxHeadersLength = bootstrapScripts[importMap];
893
- bootstrapScriptContent = idPrefix = void 0;
894
- var props = {
895
- rel: "preload",
896
- as: "script",
897
- fetchPriority: "low",
898
- nonce: nonce
899
- };
900
- "string" === typeof maxHeadersLength
901
- ? (props.href = inlineScriptWithNonce = maxHeadersLength)
902
- : ((props.href = inlineScriptWithNonce = maxHeadersLength.src),
903
- (props.integrity = bootstrapScriptContent =
904
- "string" === typeof maxHeadersLength.integrity
905
- ? maxHeadersLength.integrity
906
- : void 0),
907
- (props.crossOrigin = idPrefix =
908
- "string" === typeof maxHeadersLength ||
909
- null == maxHeadersLength.crossOrigin
910
- ? void 0
911
- : "use-credentials" === maxHeadersLength.crossOrigin
912
- ? "use-credentials"
913
- : ""));
914
- preloadBootstrapScriptOrModule(
915
- resumableState,
916
- onHeaders,
917
- inlineScriptWithNonce,
918
- props
919
- );
920
- externalRuntimeConfig.push(
921
- startScriptSrc,
922
- stringToChunk(escapeTextForBrowser(inlineScriptWithNonce))
923
- );
924
- nonce &&
925
- externalRuntimeConfig.push(
926
- scriptNonce,
927
- stringToChunk(escapeTextForBrowser(nonce))
928
- );
929
- "string" === typeof bootstrapScriptContent &&
930
- externalRuntimeConfig.push(
931
- scriptIntegirty,
932
- stringToChunk(escapeTextForBrowser(bootstrapScriptContent))
933
- );
934
- "string" === typeof idPrefix &&
935
- externalRuntimeConfig.push(
936
- scriptCrossOrigin,
937
- stringToChunk(escapeTextForBrowser(idPrefix))
938
- );
939
- externalRuntimeConfig.push(endAsyncScript);
940
- }
913
+ for (importMap = 0; importMap < bootstrapScripts.length; importMap++)
914
+ (maxHeadersLength = bootstrapScripts[importMap]),
915
+ (inlineStyleWithNonce = nonceStyle = void 0),
916
+ (idPrefix = {
917
+ rel: "preload",
918
+ as: "script",
919
+ fetchPriority: "low",
920
+ nonce: nonce
921
+ }),
922
+ "string" === typeof maxHeadersLength
923
+ ? (idPrefix.href = inlineScriptWithNonce = maxHeadersLength)
924
+ : ((idPrefix.href = inlineScriptWithNonce = maxHeadersLength.src),
925
+ (idPrefix.integrity = inlineStyleWithNonce =
926
+ "string" === typeof maxHeadersLength.integrity
927
+ ? maxHeadersLength.integrity
928
+ : void 0),
929
+ (idPrefix.crossOrigin = nonceStyle =
930
+ "string" === typeof maxHeadersLength ||
931
+ null == maxHeadersLength.crossOrigin
932
+ ? void 0
933
+ : "use-credentials" === maxHeadersLength.crossOrigin
934
+ ? "use-credentials"
935
+ : "")),
936
+ preloadBootstrapScriptOrModule(
937
+ resumableState,
938
+ onHeaders,
939
+ inlineScriptWithNonce,
940
+ idPrefix
941
+ ),
942
+ bootstrapChunks.push(
943
+ startScriptSrc,
944
+ stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
945
+ attributeEnd
946
+ ),
947
+ externalRuntimeConfig &&
948
+ bootstrapChunks.push(
949
+ scriptNonce,
950
+ stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),
951
+ attributeEnd
952
+ ),
953
+ "string" === typeof inlineStyleWithNonce &&
954
+ bootstrapChunks.push(
955
+ scriptIntegirty,
956
+ stringToChunk(escapeTextForBrowser(inlineStyleWithNonce)),
957
+ attributeEnd
958
+ ),
959
+ "string" === typeof nonceStyle &&
960
+ bootstrapChunks.push(
961
+ scriptCrossOrigin,
962
+ stringToChunk(escapeTextForBrowser(nonceStyle)),
963
+ attributeEnd
964
+ ),
965
+ pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
966
+ bootstrapChunks.push(endAsyncScript);
941
967
  if (void 0 !== bootstrapModules)
942
- for (
943
- bootstrapScripts = 0;
944
- bootstrapScripts < bootstrapModules.length;
945
- bootstrapScripts++
946
- )
947
- (importMap = bootstrapModules[bootstrapScripts]),
948
- (idPrefix = inlineScriptWithNonce = void 0),
949
- (bootstrapScriptContent = {
968
+ for (nonce = 0; nonce < bootstrapModules.length; nonce++)
969
+ (bootstrapScripts = bootstrapModules[nonce]),
970
+ (inlineScriptWithNonce = maxHeadersLength = void 0),
971
+ (nonceStyle = {
950
972
  rel: "modulepreload",
951
973
  fetchPriority: "low",
952
- nonce: nonce
974
+ nonce: externalRuntimeConfig
953
975
  }),
954
- "string" === typeof importMap
955
- ? (bootstrapScriptContent.href = maxHeadersLength = importMap)
956
- : ((bootstrapScriptContent.href = maxHeadersLength =
957
- importMap.src),
958
- (bootstrapScriptContent.integrity = idPrefix =
959
- "string" === typeof importMap.integrity
960
- ? importMap.integrity
976
+ "string" === typeof bootstrapScripts
977
+ ? (nonceStyle.href = importMap = bootstrapScripts)
978
+ : ((nonceStyle.href = importMap = bootstrapScripts.src),
979
+ (nonceStyle.integrity = inlineScriptWithNonce =
980
+ "string" === typeof bootstrapScripts.integrity
981
+ ? bootstrapScripts.integrity
961
982
  : void 0),
962
- (bootstrapScriptContent.crossOrigin = inlineScriptWithNonce =
963
- "string" === typeof importMap || null == importMap.crossOrigin
983
+ (nonceStyle.crossOrigin = maxHeadersLength =
984
+ "string" === typeof bootstrapScripts ||
985
+ null == bootstrapScripts.crossOrigin
964
986
  ? void 0
965
- : "use-credentials" === importMap.crossOrigin
987
+ : "use-credentials" === bootstrapScripts.crossOrigin
966
988
  ? "use-credentials"
967
989
  : "")),
968
990
  preloadBootstrapScriptOrModule(
969
991
  resumableState,
970
992
  onHeaders,
971
- maxHeadersLength,
972
- bootstrapScriptContent
993
+ importMap,
994
+ nonceStyle
973
995
  ),
974
- externalRuntimeConfig.push(
996
+ bootstrapChunks.push(
975
997
  startModuleSrc,
976
- stringToChunk(escapeTextForBrowser(maxHeadersLength))
998
+ stringToChunk(escapeTextForBrowser(importMap)),
999
+ attributeEnd
977
1000
  ),
978
- nonce &&
979
- externalRuntimeConfig.push(
1001
+ externalRuntimeConfig &&
1002
+ bootstrapChunks.push(
980
1003
  scriptNonce,
981
- stringToChunk(escapeTextForBrowser(nonce))
1004
+ stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),
1005
+ attributeEnd
982
1006
  ),
983
- "string" === typeof idPrefix &&
984
- externalRuntimeConfig.push(
1007
+ "string" === typeof inlineScriptWithNonce &&
1008
+ bootstrapChunks.push(
985
1009
  scriptIntegirty,
986
- stringToChunk(escapeTextForBrowser(idPrefix))
1010
+ stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
1011
+ attributeEnd
987
1012
  ),
988
- "string" === typeof inlineScriptWithNonce &&
989
- externalRuntimeConfig.push(
1013
+ "string" === typeof maxHeadersLength &&
1014
+ bootstrapChunks.push(
990
1015
  scriptCrossOrigin,
991
- stringToChunk(escapeTextForBrowser(inlineScriptWithNonce))
1016
+ stringToChunk(escapeTextForBrowser(maxHeadersLength)),
1017
+ attributeEnd
992
1018
  ),
993
- externalRuntimeConfig.push(endAsyncScript);
1019
+ pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
1020
+ bootstrapChunks.push(endAsyncScript);
994
1021
  return onHeaders;
995
1022
  }
996
1023
  function createResumableState(
@@ -1021,18 +1048,19 @@
1021
1048
  };
1022
1049
  }
1023
1050
  function createPreambleState() {
1024
- return {
1025
- htmlChunks: null,
1026
- headChunks: null,
1027
- bodyChunks: null,
1028
- contribution: NoContribution
1029
- };
1051
+ return { htmlChunks: null, headChunks: null, bodyChunks: null };
1030
1052
  }
1031
- function createFormatContext(insertionMode, selectedValue, tagScope) {
1053
+ function createFormatContext(
1054
+ insertionMode,
1055
+ selectedValue,
1056
+ tagScope,
1057
+ viewTransition
1058
+ ) {
1032
1059
  return {
1033
1060
  insertionMode: insertionMode,
1034
1061
  selectedValue: selectedValue,
1035
- tagScope: tagScope
1062
+ tagScope: tagScope,
1063
+ viewTransition: viewTransition
1036
1064
  };
1037
1065
  }
1038
1066
  function createRootFormatContext(namespaceURI) {
@@ -1043,67 +1071,62 @@
1043
1071
  ? MATHML_MODE
1044
1072
  : ROOT_HTML_MODE,
1045
1073
  null,
1046
- 0
1074
+ 0,
1075
+ null
1047
1076
  );
1048
1077
  }
1049
1078
  function getChildFormatContext(parentContext, type, props) {
1079
+ var subtreeScope = parentContext.tagScope & -25;
1050
1080
  switch (type) {
1051
1081
  case "noscript":
1052
- return createFormatContext(
1053
- HTML_MODE,
1054
- null,
1055
- parentContext.tagScope | 1
1056
- );
1082
+ return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
1057
1083
  case "select":
1058
1084
  return createFormatContext(
1059
1085
  HTML_MODE,
1060
1086
  null != props.value ? props.value : props.defaultValue,
1061
- parentContext.tagScope
1087
+ subtreeScope,
1088
+ null
1062
1089
  );
1063
1090
  case "svg":
1064
- return createFormatContext(SVG_MODE, null, parentContext.tagScope);
1091
+ return createFormatContext(SVG_MODE, null, subtreeScope, null);
1065
1092
  case "picture":
1066
- return createFormatContext(
1067
- HTML_MODE,
1068
- null,
1069
- parentContext.tagScope | 2
1070
- );
1093
+ return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
1071
1094
  case "math":
1072
- return createFormatContext(MATHML_MODE, null, parentContext.tagScope);
1095
+ return createFormatContext(MATHML_MODE, null, subtreeScope, null);
1073
1096
  case "foreignObject":
1074
- return createFormatContext(HTML_MODE, null, parentContext.tagScope);
1097
+ return createFormatContext(HTML_MODE, null, subtreeScope, null);
1075
1098
  case "table":
1076
- return createFormatContext(
1077
- HTML_TABLE_MODE,
1078
- null,
1079
- parentContext.tagScope
1080
- );
1099
+ return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
1081
1100
  case "thead":
1082
1101
  case "tbody":
1083
1102
  case "tfoot":
1084
1103
  return createFormatContext(
1085
1104
  HTML_TABLE_BODY_MODE,
1086
1105
  null,
1087
- parentContext.tagScope
1106
+ subtreeScope,
1107
+ null
1088
1108
  );
1089
1109
  case "colgroup":
1090
1110
  return createFormatContext(
1091
1111
  HTML_COLGROUP_MODE,
1092
1112
  null,
1093
- parentContext.tagScope
1113
+ subtreeScope,
1114
+ null
1094
1115
  );
1095
1116
  case "tr":
1096
1117
  return createFormatContext(
1097
1118
  HTML_TABLE_ROW_MODE,
1098
1119
  null,
1099
- parentContext.tagScope
1120
+ subtreeScope,
1121
+ null
1100
1122
  );
1101
1123
  case "head":
1102
1124
  if (parentContext.insertionMode < HTML_MODE)
1103
1125
  return createFormatContext(
1104
1126
  HTML_HEAD_MODE,
1105
1127
  null,
1106
- parentContext.tagScope
1128
+ subtreeScope,
1129
+ null
1107
1130
  );
1108
1131
  break;
1109
1132
  case "html":
@@ -1111,13 +1134,56 @@
1111
1134
  return createFormatContext(
1112
1135
  HTML_HTML_MODE,
1113
1136
  null,
1114
- parentContext.tagScope
1137
+ subtreeScope,
1138
+ null
1115
1139
  );
1116
1140
  }
1117
1141
  return parentContext.insertionMode >= HTML_TABLE_MODE ||
1118
1142
  parentContext.insertionMode < HTML_MODE
1119
- ? createFormatContext(HTML_MODE, null, parentContext.tagScope)
1120
- : parentContext;
1143
+ ? createFormatContext(HTML_MODE, null, subtreeScope, null)
1144
+ : parentContext.tagScope !== subtreeScope
1145
+ ? createFormatContext(
1146
+ parentContext.insertionMode,
1147
+ parentContext.selectedValue,
1148
+ subtreeScope,
1149
+ null
1150
+ )
1151
+ : parentContext;
1152
+ }
1153
+ function getSuspenseViewTransition(parentViewTransition) {
1154
+ return null === parentViewTransition
1155
+ ? null
1156
+ : {
1157
+ update: parentViewTransition.update,
1158
+ enter: "none",
1159
+ exit: "none",
1160
+ share: parentViewTransition.update,
1161
+ name: parentViewTransition.autoName,
1162
+ autoName: parentViewTransition.autoName,
1163
+ nameIdx: 0
1164
+ };
1165
+ }
1166
+ function getSuspenseFallbackFormatContext(resumableState, parentContext) {
1167
+ parentContext.tagScope & 32 && (resumableState.instructions |= 128);
1168
+ return createFormatContext(
1169
+ parentContext.insertionMode,
1170
+ parentContext.selectedValue,
1171
+ parentContext.tagScope | 12,
1172
+ getSuspenseViewTransition(parentContext.viewTransition)
1173
+ );
1174
+ }
1175
+ function getSuspenseContentFormatContext(resumableState, parentContext) {
1176
+ resumableState = getSuspenseViewTransition(parentContext.viewTransition);
1177
+ var subtreeScope = parentContext.tagScope | 16;
1178
+ null !== resumableState &&
1179
+ "none" !== resumableState.share &&
1180
+ (subtreeScope |= 64);
1181
+ return createFormatContext(
1182
+ parentContext.insertionMode,
1183
+ parentContext.selectedValue,
1184
+ subtreeScope,
1185
+ resumableState
1186
+ );
1121
1187
  }
1122
1188
  function pushTextInstance(target, text, renderState, textEmbedded) {
1123
1189
  if ("" === text) return textEmbedded;
@@ -1643,13 +1709,26 @@
1643
1709
  return content;
1644
1710
  }
1645
1711
  function injectFormReplayingRuntime(resumableState, renderState) {
1646
- (resumableState.instructions & 16) === NothingSent &&
1647
- ((resumableState.instructions |= 16),
1648
- renderState.bootstrapChunks.unshift(
1649
- renderState.startInlineScript,
1650
- formReplayingRuntimeScript,
1651
- endInlineScript
1652
- ));
1712
+ if ((resumableState.instructions & 16) === NothingSent) {
1713
+ resumableState.instructions |= 16;
1714
+ var preamble = renderState.preamble,
1715
+ bootstrapChunks = renderState.bootstrapChunks;
1716
+ (preamble.htmlChunks || preamble.headChunks) &&
1717
+ 0 === bootstrapChunks.length
1718
+ ? (bootstrapChunks.push(renderState.startInlineScript),
1719
+ pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
1720
+ bootstrapChunks.push(
1721
+ endOfStartTag,
1722
+ formReplayingRuntimeScript,
1723
+ endInlineScript
1724
+ ))
1725
+ : bootstrapChunks.unshift(
1726
+ renderState.startInlineScript,
1727
+ endOfStartTag,
1728
+ formReplayingRuntimeScript,
1729
+ endInlineScript
1730
+ );
1731
+ }
1653
1732
  }
1654
1733
  function pushLinkImpl(target, props) {
1655
1734
  target.push(startChunkForTag("link"));
@@ -1834,8 +1913,7 @@
1834
1913
  preambleState,
1835
1914
  hoistableState,
1836
1915
  formatContext,
1837
- textEmbedded,
1838
- isFallback
1916
+ textEmbedded
1839
1917
  ) {
1840
1918
  validateProperties$2(type, props);
1841
1919
  ("input" !== type && "textarea" !== type && "select" !== type) ||
@@ -2464,8 +2542,8 @@
2464
2542
  } else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
2465
2543
  return JSCompiler_inline_result$jscomp$3;
2466
2544
  case "title":
2467
- var insertionMode = formatContext.insertionMode,
2468
- noscriptTagInScope = !!(formatContext.tagScope & 1);
2545
+ var noscriptTagInScope = formatContext.tagScope & 1,
2546
+ isFallback = formatContext.tagScope & 4;
2469
2547
  if (hasOwnProperty.call(props, "children")) {
2470
2548
  var children$jscomp$6 = props.children,
2471
2549
  child = Array.isArray(children$jscomp$6)
@@ -2494,7 +2572,7 @@
2494
2572
  ));
2495
2573
  }
2496
2574
  if (
2497
- insertionMode === SVG_MODE ||
2575
+ formatContext.insertionMode === SVG_MODE ||
2498
2576
  noscriptTagInScope ||
2499
2577
  null != props.itemProp
2500
2578
  )
@@ -2509,12 +2587,14 @@
2509
2587
  (JSCompiler_inline_result$jscomp$4 = void 0));
2510
2588
  return JSCompiler_inline_result$jscomp$4;
2511
2589
  case "link":
2512
- var rel = props.rel,
2590
+ var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
2591
+ isFallback$jscomp$0 = formatContext.tagScope & 4,
2592
+ rel = props.rel,
2513
2593
  href = props.href,
2514
2594
  precedence = props.precedence;
2515
2595
  if (
2516
2596
  formatContext.insertionMode === SVG_MODE ||
2517
- formatContext.tagScope & 1 ||
2597
+ noscriptTagInScope$jscomp$0 ||
2518
2598
  null != props.itemProp ||
2519
2599
  "string" !== typeof rel ||
2520
2600
  "string" !== typeof href ||
@@ -2615,12 +2695,13 @@
2615
2695
  props
2616
2696
  ))
2617
2697
  : (textEmbedded && target$jscomp$0.push(textSeparator),
2618
- (JSCompiler_inline_result$jscomp$5 = isFallback
2698
+ (JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
2619
2699
  ? null
2620
2700
  : pushLinkImpl(renderState.hoistableChunks, props)));
2621
2701
  return JSCompiler_inline_result$jscomp$5;
2622
2702
  case "script":
2623
- var asyncProp = props.async;
2703
+ var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
2704
+ asyncProp = props.async;
2624
2705
  if (
2625
2706
  "string" !== typeof props.src ||
2626
2707
  !props.src ||
@@ -2630,7 +2711,7 @@
2630
2711
  props.onLoad ||
2631
2712
  props.onError ||
2632
2713
  formatContext.insertionMode === SVG_MODE ||
2633
- formatContext.tagScope & 1 ||
2714
+ noscriptTagInScope$jscomp$1 ||
2634
2715
  null != props.itemProp
2635
2716
  )
2636
2717
  var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
@@ -2668,8 +2749,7 @@
2668
2749
  }
2669
2750
  return JSCompiler_inline_result$jscomp$6;
2670
2751
  case "style":
2671
- var insertionMode$jscomp$0 = formatContext.insertionMode,
2672
- noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
2752
+ var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
2673
2753
  if (hasOwnProperty.call(props, "children")) {
2674
2754
  var children$jscomp$7 = props.children,
2675
2755
  child$jscomp$0 = Array.isArray(children$jscomp$7)
@@ -2690,10 +2770,11 @@
2690
2770
  );
2691
2771
  }
2692
2772
  var precedence$jscomp$0 = props.precedence,
2693
- href$jscomp$0 = props.href;
2773
+ href$jscomp$0 = props.href,
2774
+ nonce = props.nonce;
2694
2775
  if (
2695
- insertionMode$jscomp$0 === SVG_MODE ||
2696
- noscriptTagInScope$jscomp$0 ||
2776
+ formatContext.insertionMode === SVG_MODE ||
2777
+ noscriptTagInScope$jscomp$2 ||
2697
2778
  null != props.itemProp ||
2698
2779
  "string" !== typeof precedence$jscomp$0 ||
2699
2780
  "string" !== typeof href$jscomp$0 ||
@@ -2761,51 +2842,68 @@
2761
2842
  'React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',
2762
2843
  href$jscomp$0
2763
2844
  );
2764
- styleQueue$jscomp$0
2765
- ? styleQueue$jscomp$0.hrefs.push(
2766
- stringToChunk(escapeTextForBrowser(href$jscomp$0))
2767
- )
2768
- : ((styleQueue$jscomp$0 = {
2769
- precedence: stringToChunk(
2770
- escapeTextForBrowser(precedence$jscomp$0)
2771
- ),
2772
- rules: [],
2773
- hrefs: [stringToChunk(escapeTextForBrowser(href$jscomp$0))],
2774
- sheets: new Map()
2775
- }),
2776
- renderState.styles.set(
2845
+ styleQueue$jscomp$0 ||
2846
+ ((styleQueue$jscomp$0 = {
2847
+ precedence: stringToChunk(
2848
+ escapeTextForBrowser(precedence$jscomp$0)
2849
+ ),
2850
+ rules: [],
2851
+ hrefs: [],
2852
+ sheets: new Map()
2853
+ }),
2854
+ renderState.styles.set(
2855
+ precedence$jscomp$0,
2856
+ styleQueue$jscomp$0
2857
+ ));
2858
+ var nonceStyle = renderState.nonce.style;
2859
+ if (nonceStyle && nonceStyle !== nonce)
2860
+ console.error(
2861
+ 'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',
2862
+ precedence$jscomp$0,
2863
+ nonce,
2864
+ nonceStyle
2865
+ );
2866
+ else {
2867
+ !nonceStyle &&
2868
+ nonce &&
2869
+ console.error(
2870
+ 'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',
2777
2871
  precedence$jscomp$0,
2778
- styleQueue$jscomp$0
2779
- ));
2780
- var target = styleQueue$jscomp$0.rules,
2781
- children$jscomp$9 = null,
2782
- innerHTML$jscomp$6 = null,
2783
- propKey$jscomp$9;
2784
- for (propKey$jscomp$9 in props)
2785
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
2786
- var propValue$jscomp$9 = props[propKey$jscomp$9];
2787
- if (null != propValue$jscomp$9)
2788
- switch (propKey$jscomp$9) {
2789
- case "children":
2790
- children$jscomp$9 = propValue$jscomp$9;
2791
- break;
2792
- case "dangerouslySetInnerHTML":
2793
- innerHTML$jscomp$6 = propValue$jscomp$9;
2794
- }
2795
- }
2796
- var child$jscomp$2 = Array.isArray(children$jscomp$9)
2797
- ? 2 > children$jscomp$9.length
2798
- ? children$jscomp$9[0]
2799
- : null
2800
- : children$jscomp$9;
2801
- "function" !== typeof child$jscomp$2 &&
2802
- "symbol" !== typeof child$jscomp$2 &&
2803
- null !== child$jscomp$2 &&
2804
- void 0 !== child$jscomp$2 &&
2805
- target.push(
2806
- stringToChunk(escapeStyleTextContent(child$jscomp$2))
2872
+ nonce
2873
+ );
2874
+ styleQueue$jscomp$0.hrefs.push(
2875
+ stringToChunk(escapeTextForBrowser(href$jscomp$0))
2807
2876
  );
2808
- pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
2877
+ var target = styleQueue$jscomp$0.rules,
2878
+ children$jscomp$9 = null,
2879
+ innerHTML$jscomp$6 = null,
2880
+ propKey$jscomp$9;
2881
+ for (propKey$jscomp$9 in props)
2882
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
2883
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
2884
+ if (null != propValue$jscomp$9)
2885
+ switch (propKey$jscomp$9) {
2886
+ case "children":
2887
+ children$jscomp$9 = propValue$jscomp$9;
2888
+ break;
2889
+ case "dangerouslySetInnerHTML":
2890
+ innerHTML$jscomp$6 = propValue$jscomp$9;
2891
+ }
2892
+ }
2893
+ var child$jscomp$2 = Array.isArray(children$jscomp$9)
2894
+ ? 2 > children$jscomp$9.length
2895
+ ? children$jscomp$9[0]
2896
+ : null
2897
+ : children$jscomp$9;
2898
+ "function" !== typeof child$jscomp$2 &&
2899
+ "symbol" !== typeof child$jscomp$2 &&
2900
+ null !== child$jscomp$2 &&
2901
+ void 0 !== child$jscomp$2 &&
2902
+ target.push(
2903
+ stringToChunk(escapeStyleTextContent(child$jscomp$2))
2904
+ );
2905
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
2906
+ }
2809
2907
  }
2810
2908
  styleQueue$jscomp$0 &&
2811
2909
  hoistableState &&
@@ -2815,9 +2913,11 @@
2815
2913
  }
2816
2914
  return JSCompiler_inline_result$jscomp$7;
2817
2915
  case "meta":
2916
+ var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
2917
+ isFallback$jscomp$1 = formatContext.tagScope & 4;
2818
2918
  if (
2819
2919
  formatContext.insertionMode === SVG_MODE ||
2820
- formatContext.tagScope & 1 ||
2920
+ noscriptTagInScope$jscomp$3 ||
2821
2921
  null != props.itemProp
2822
2922
  )
2823
2923
  var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
@@ -2827,7 +2927,7 @@
2827
2927
  );
2828
2928
  else
2829
2929
  textEmbedded && target$jscomp$0.push(textSeparator),
2830
- (JSCompiler_inline_result$jscomp$8 = isFallback
2930
+ (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
2831
2931
  ? null
2832
2932
  : "string" === typeof props.charSet
2833
2933
  ? pushSelfClosing(renderState.charsetChunks, props, "meta")
@@ -2890,17 +2990,18 @@
2890
2990
  target$jscomp$0.push(leadingNewline);
2891
2991
  return children$jscomp$10;
2892
2992
  case "img":
2893
- var src = props.src,
2993
+ var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
2994
+ src = props.src,
2894
2995
  srcSet = props.srcSet;
2895
2996
  if (
2896
2997
  !(
2897
2998
  "lazy" === props.loading ||
2898
2999
  (!src && !srcSet) ||
2899
3000
  ("string" !== typeof src && null != src) ||
2900
- ("string" !== typeof srcSet && null != srcSet)
3001
+ ("string" !== typeof srcSet && null != srcSet) ||
3002
+ "low" === props.fetchPriority ||
3003
+ pictureOrNoScriptTagInScope
2901
3004
  ) &&
2902
- "low" !== props.fetchPriority &&
2903
- !1 === !!(formatContext.tagScope & 3) &&
2904
3005
  ("string" !== typeof src ||
2905
3006
  ":" !== src[4] ||
2906
3007
  ("d" !== src[0] && "D" !== src[0]) ||
@@ -2914,6 +3015,9 @@
2914
3015
  ("t" !== srcSet[2] && "T" !== srcSet[2]) ||
2915
3016
  ("a" !== srcSet[3] && "A" !== srcSet[3]))
2916
3017
  ) {
3018
+ null !== hoistableState &&
3019
+ formatContext.tagScope & 64 &&
3020
+ (hoistableState.suspenseyImages = !0);
2917
3021
  var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
2918
3022
  key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
2919
3023
  promotablePreloads = renderState.preloads.images,
@@ -3005,6 +3109,8 @@
3005
3109
  var preamble = preambleState || renderState.preamble;
3006
3110
  if (preamble.headChunks)
3007
3111
  throw Error("The `<head>` tag may only be rendered once.");
3112
+ null !== preambleState &&
3113
+ target$jscomp$0.push(headPreambleContributionChunk);
3008
3114
  preamble.headChunks = [];
3009
3115
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
3010
3116
  preamble.headChunks,
@@ -3023,6 +3129,8 @@
3023
3129
  var preamble$jscomp$0 = preambleState || renderState.preamble;
3024
3130
  if (preamble$jscomp$0.bodyChunks)
3025
3131
  throw Error("The `<body>` tag may only be rendered once.");
3132
+ null !== preambleState &&
3133
+ target$jscomp$0.push(bodyPreambleContributionChunk);
3026
3134
  preamble$jscomp$0.bodyChunks = [];
3027
3135
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
3028
3136
  preamble$jscomp$0.bodyChunks,
@@ -3041,6 +3149,8 @@
3041
3149
  var preamble$jscomp$1 = preambleState || renderState.preamble;
3042
3150
  if (preamble$jscomp$1.htmlChunks)
3043
3151
  throw Error("The `<html>` tag may only be rendered once.");
3152
+ null !== preambleState &&
3153
+ target$jscomp$0.push(htmlPreambleContributionChunk);
3044
3154
  preamble$jscomp$1.htmlChunks = [doctypeChunk];
3045
3155
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
3046
3156
  preamble$jscomp$1.htmlChunks,
@@ -3127,16 +3237,13 @@
3127
3237
  renderState = renderState.preamble;
3128
3238
  null === renderState.htmlChunks &&
3129
3239
  preambleState.htmlChunks &&
3130
- ((renderState.htmlChunks = preambleState.htmlChunks),
3131
- (preambleState.contribution |= 1));
3240
+ (renderState.htmlChunks = preambleState.htmlChunks);
3132
3241
  null === renderState.headChunks &&
3133
3242
  preambleState.headChunks &&
3134
- ((renderState.headChunks = preambleState.headChunks),
3135
- (preambleState.contribution |= 4));
3243
+ (renderState.headChunks = preambleState.headChunks);
3136
3244
  null === renderState.bodyChunks &&
3137
3245
  preambleState.bodyChunks &&
3138
- ((renderState.bodyChunks = preambleState.bodyChunks),
3139
- (preambleState.contribution |= 2));
3246
+ (renderState.bodyChunks = preambleState.bodyChunks);
3140
3247
  }
3141
3248
  function writeBootstrap(destination, renderState) {
3142
3249
  renderState = renderState.bootstrapChunks;
@@ -3158,13 +3265,6 @@
3158
3265
  writeChunk(destination, stringToChunk(id.toString(16)));
3159
3266
  return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
3160
3267
  }
3161
- function writePreambleContribution(destination, preambleState) {
3162
- preambleState = preambleState.contribution;
3163
- preambleState !== NoContribution &&
3164
- (writeChunk(destination, boundaryPreambleContributionChunkStart),
3165
- writeChunk(destination, stringToChunk("" + preambleState)),
3166
- writeChunk(destination, boundaryPreambleContributionChunkEnd));
3167
- }
3168
3268
  function writeStartSegment(destination, renderState, formatContext, id) {
3169
3269
  switch (formatContext.insertionMode) {
3170
3270
  case ROOT_HTML_MODE:
@@ -3298,6 +3398,7 @@
3298
3398
  );
3299
3399
  var i = 0;
3300
3400
  if (hrefs.length) {
3401
+ writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
3301
3402
  writeChunk(this, lateStyleTagResourceOpen1);
3302
3403
  writeChunk(this, styleQueue.precedence);
3303
3404
  for (
@@ -3330,7 +3431,9 @@
3330
3431
  ) {
3331
3432
  currentlyRenderingBoundaryHasStylesToHoist = !1;
3332
3433
  destinationHasCapacity = !0;
3434
+ currentlyFlushingRenderState = renderState;
3333
3435
  hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
3436
+ currentlyFlushingRenderState = null;
3334
3437
  hoistableState.stylesheets.forEach(hasStylesToHoist);
3335
3438
  currentlyRenderingBoundaryHasStylesToHoist &&
3336
3439
  (renderState.stylesToHoist = !0);
@@ -3354,6 +3457,7 @@
3354
3457
  var rules = styleQueue.rules,
3355
3458
  hrefs = styleQueue.hrefs;
3356
3459
  if (!hasStylesheets || hrefs.length) {
3460
+ writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
3357
3461
  writeChunk(this, styleTagResourceOpen1);
3358
3462
  writeChunk(this, styleQueue.precedence);
3359
3463
  styleQueue = 0;
@@ -3403,6 +3507,17 @@
3403
3507
  styleQueue.sheets.forEach(preloadLateStyle, this);
3404
3508
  styleQueue.sheets.clear();
3405
3509
  }
3510
+ function pushCompletedShellIdAttribute(target, resumableState) {
3511
+ (resumableState.instructions & SentCompletedShellId) === NothingSent &&
3512
+ ((resumableState.instructions |= SentCompletedShellId),
3513
+ target.push(
3514
+ completedShellIdAttributeStart,
3515
+ stringToChunk(
3516
+ escapeTextForBrowser("_" + resumableState.idPrefix + "R_")
3517
+ ),
3518
+ attributeEnd
3519
+ ));
3520
+ }
3406
3521
  function writeStyleResourceDependenciesInJS(destination, hoistableState) {
3407
3522
  writeChunk(destination, arrayFirstOpenBracket);
3408
3523
  var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
@@ -3519,7 +3634,7 @@
3519
3634
  );
3520
3635
  }
3521
3636
  function createHoistableState() {
3522
- return { styles: new Set(), stylesheets: new Set() };
3637
+ return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
3523
3638
  }
3524
3639
  function preloadBootstrapScriptOrModule(
3525
3640
  resumableState,
@@ -3624,6 +3739,16 @@
3624
3739
  function hoistStylesheetDependency(stylesheet) {
3625
3740
  this.stylesheets.add(stylesheet);
3626
3741
  }
3742
+ function hoistHoistables(parentState, childState) {
3743
+ childState.styles.forEach(hoistStyleQueueDependency, parentState);
3744
+ childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
3745
+ childState.suspenseyImages && (parentState.suspenseyImages = !0);
3746
+ }
3747
+ function hasSuspenseyContent(hoistableState) {
3748
+ return (
3749
+ 0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages
3750
+ );
3751
+ }
3627
3752
  function getComponentNameFromType(type) {
3628
3753
  if (null == type) return null;
3629
3754
  if ("function" === typeof type)
@@ -3656,7 +3781,7 @@
3656
3781
  case REACT_PORTAL_TYPE:
3657
3782
  return "Portal";
3658
3783
  case REACT_CONTEXT_TYPE:
3659
- return (type.displayName || "Context") + ".Provider";
3784
+ return type.displayName || "Context";
3660
3785
  case REACT_CONSUMER_TYPE:
3661
3786
  return (type._context.displayName || "Context") + ".Consumer";
3662
3787
  case REACT_FORWARD_REF_TYPE:
@@ -3805,13 +3930,12 @@
3805
3930
  x >>>= 0;
3806
3931
  return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
3807
3932
  }
3808
- function noop$2() {}
3933
+ function noop() {}
3809
3934
  function trackUsedThenable(thenableState, thenable, index) {
3810
3935
  index = thenableState[index];
3811
3936
  void 0 === index
3812
3937
  ? thenableState.push(thenable)
3813
- : index !== thenable &&
3814
- (thenable.then(noop$2, noop$2), (thenable = index));
3938
+ : index !== thenable && (thenable.then(noop, noop), (thenable = index));
3815
3939
  switch (thenable.status) {
3816
3940
  case "fulfilled":
3817
3941
  return thenable.value;
@@ -3819,7 +3943,7 @@
3819
3943
  throw thenable.reason;
3820
3944
  default:
3821
3945
  "string" === typeof thenable.status
3822
- ? thenable.then(noop$2, noop$2)
3946
+ ? thenable.then(noop, noop)
3823
3947
  : ((thenableState = thenable),
3824
3948
  (thenableState.status = "pending"),
3825
3949
  thenableState.then(
@@ -4022,6 +4146,11 @@
4022
4146
  queue.next = componentIdentity;
4023
4147
  }
4024
4148
  }
4149
+ function throwOnUseEffectEventCall() {
4150
+ throw Error(
4151
+ "A function wrapped in useEffectEvent can't be called during rendering."
4152
+ );
4153
+ }
4025
4154
  function unsupportedStartTransition() {
4026
4155
  throw Error("startTransition cannot be called during server rendering.");
4027
4156
  }
@@ -4105,7 +4234,6 @@
4105
4234
  function unsupportedRefresh() {
4106
4235
  throw Error("Cache cannot be refreshed during server rendering.");
4107
4236
  }
4108
- function noop$1() {}
4109
4237
  function disabledLog() {}
4110
4238
  function disableLogs() {
4111
4239
  if (0 === disabledDepth) {
@@ -4153,6 +4281,27 @@
4153
4281
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
4154
4282
  );
4155
4283
  }
4284
+ function formatOwnerStack(error) {
4285
+ var prevPrepareStackTrace = Error.prepareStackTrace;
4286
+ Error.prepareStackTrace = void 0;
4287
+ error = error.stack;
4288
+ Error.prepareStackTrace = prevPrepareStackTrace;
4289
+ error.startsWith("Error: react-stack-top-frame\n") &&
4290
+ (error = error.slice(29));
4291
+ prevPrepareStackTrace = error.indexOf("\n");
4292
+ -1 !== prevPrepareStackTrace &&
4293
+ (error = error.slice(prevPrepareStackTrace + 1));
4294
+ prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
4295
+ -1 !== prevPrepareStackTrace &&
4296
+ (prevPrepareStackTrace = error.lastIndexOf(
4297
+ "\n",
4298
+ prevPrepareStackTrace
4299
+ ));
4300
+ if (-1 !== prevPrepareStackTrace)
4301
+ error = error.slice(0, prevPrepareStackTrace);
4302
+ else return "";
4303
+ return error;
4304
+ }
4156
4305
  function describeBuiltInComponentFrame(name) {
4157
4306
  if (void 0 === prefix)
4158
4307
  try {
@@ -4325,27 +4474,6 @@
4325
4474
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
4326
4475
  return sampleLines;
4327
4476
  }
4328
- function formatOwnerStack(error) {
4329
- var prevPrepareStackTrace = Error.prepareStackTrace;
4330
- Error.prepareStackTrace = void 0;
4331
- error = error.stack;
4332
- Error.prepareStackTrace = prevPrepareStackTrace;
4333
- error.startsWith("Error: react-stack-top-frame\n") &&
4334
- (error = error.slice(29));
4335
- prevPrepareStackTrace = error.indexOf("\n");
4336
- -1 !== prevPrepareStackTrace &&
4337
- (error = error.slice(prevPrepareStackTrace + 1));
4338
- prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
4339
- -1 !== prevPrepareStackTrace &&
4340
- (prevPrepareStackTrace = error.lastIndexOf(
4341
- "\n",
4342
- prevPrepareStackTrace
4343
- ));
4344
- if (-1 !== prevPrepareStackTrace)
4345
- error = error.slice(0, prevPrepareStackTrace);
4346
- else return "";
4347
- return error;
4348
- }
4349
4477
  function describeComponentStackByType(type) {
4350
4478
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
4351
4479
  if ("function" === typeof type)
@@ -4369,13 +4497,26 @@
4369
4497
  }
4370
4498
  return describeComponentStackByType(type);
4371
4499
  }
4372
- if ("string" === typeof type.name)
4373
- return (
4374
- (payload = type.env),
4375
- describeBuiltInComponentFrame(
4376
- type.name + (payload ? " [" + payload + "]" : "")
4377
- )
4378
- );
4500
+ if ("string" === typeof type.name) {
4501
+ a: {
4502
+ payload = type.name;
4503
+ lazyComponent = type.env;
4504
+ type = type.debugLocation;
4505
+ if (null != type) {
4506
+ type = formatOwnerStack(type);
4507
+ var idx = type.lastIndexOf("\n");
4508
+ type = -1 === idx ? type : type.slice(idx + 1);
4509
+ if (-1 !== type.indexOf(payload)) {
4510
+ payload = "\n" + type;
4511
+ break a;
4512
+ }
4513
+ }
4514
+ payload = describeBuiltInComponentFrame(
4515
+ payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
4516
+ );
4517
+ }
4518
+ return payload;
4519
+ }
4379
4520
  }
4380
4521
  switch (type) {
4381
4522
  case REACT_SUSPENSE_LIST_TYPE:
@@ -4385,6 +4526,19 @@
4385
4526
  }
4386
4527
  return "";
4387
4528
  }
4529
+ function resetOwnerStackLimit() {
4530
+ var now = getCurrentTime();
4531
+ 1e3 < now - lastResetTime &&
4532
+ ((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
4533
+ (lastResetTime = now));
4534
+ }
4535
+ function isEligibleForOutlining(request, boundary) {
4536
+ return (
4537
+ (500 < boundary.byteSize ||
4538
+ hasSuspenseyContent(boundary.contentState)) &&
4539
+ null === boundary.contentPreamble
4540
+ );
4541
+ }
4388
4542
  function defaultErrorHandler(error) {
4389
4543
  if (
4390
4544
  "object" === typeof error &&
@@ -4405,7 +4559,7 @@
4405
4559
  : error.splice(
4406
4560
  0,
4407
4561
  0,
4408
- "%c%s%c ",
4562
+ "%c%s%c",
4409
4563
  "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
4410
4564
  " " + JSCompiler_inline_result + " ",
4411
4565
  ""
@@ -4416,7 +4570,6 @@
4416
4570
  } else console.error(error);
4417
4571
  return null;
4418
4572
  }
4419
- function noop() {}
4420
4573
  function RequestInstance(
4421
4574
  resumableState,
4422
4575
  renderState,
@@ -4442,6 +4595,7 @@
4442
4595
  this.fatalError = null;
4443
4596
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
4444
4597
  this.completedPreambleSegments = this.completedRootSegment = null;
4598
+ this.byteSize = 0;
4445
4599
  this.abortableTasks = abortSet;
4446
4600
  this.pingedTasks = [];
4447
4601
  this.clientRenderedBoundaries = [];
@@ -4471,10 +4625,7 @@
4471
4625
  onPostpone,
4472
4626
  formState
4473
4627
  ) {
4474
- var now = getCurrentTime();
4475
- 1e3 < now - lastResetTime &&
4476
- ((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
4477
- (lastResetTime = now));
4628
+ resetOwnerStackLimit();
4478
4629
  resumableState = new RequestInstance(
4479
4630
  resumableState,
4480
4631
  renderState,
@@ -4512,7 +4663,7 @@
4512
4663
  null,
4513
4664
  emptyTreeContext,
4514
4665
  null,
4515
- !1,
4666
+ null,
4516
4667
  emptyContextObject,
4517
4668
  null
4518
4669
  );
@@ -4554,70 +4705,199 @@
4554
4705
  };
4555
4706
  return children;
4556
4707
  }
4557
- function pingTask(request, task) {
4558
- request.pingedTasks.push(task);
4559
- 1 === request.pingedTasks.length &&
4560
- ((request.flushScheduled = null !== request.destination),
4561
- null !== request.trackedPostpones || 10 === request.status
4562
- ? scheduleMicrotask(function () {
4563
- return performWork(request);
4564
- })
4565
- : scheduleWork(function () {
4566
- return performWork(request);
4567
- }));
4568
- }
4569
- function createSuspenseBoundary(
4570
- request,
4571
- fallbackAbortableTasks,
4572
- contentPreamble,
4573
- fallbackPreamble
4574
- ) {
4575
- return {
4576
- status: PENDING,
4577
- rootSegmentID: -1,
4578
- parentFlushed: !1,
4579
- pendingTasks: 0,
4580
- completedSegments: [],
4581
- byteSize: 0,
4582
- fallbackAbortableTasks: fallbackAbortableTasks,
4583
- errorDigest: null,
4584
- contentState: createHoistableState(),
4585
- fallbackState: createHoistableState(),
4586
- contentPreamble: contentPreamble,
4587
- fallbackPreamble: fallbackPreamble,
4588
- trackedContentKeyPath: null,
4589
- trackedFallbackNode: null,
4590
- errorMessage: null,
4591
- errorStack: null,
4592
- errorComponentStack: null
4593
- };
4594
- }
4595
- function createRenderTask(
4596
- request,
4597
- thenableState,
4598
- node,
4599
- childIndex,
4600
- blockedBoundary,
4601
- blockedSegment,
4602
- blockedPreamble,
4603
- hoistableState,
4604
- abortSet,
4605
- keyPath,
4606
- formatContext,
4607
- context,
4608
- treeContext,
4609
- componentStack,
4610
- isFallback,
4611
- legacyContext,
4612
- debugTask
4708
+ function resumeRequest(
4709
+ children,
4710
+ postponedState,
4711
+ renderState,
4712
+ onError,
4713
+ onAllReady,
4714
+ onShellReady,
4715
+ onShellError,
4716
+ onFatalError,
4717
+ onPostpone
4613
4718
  ) {
4614
- request.allPendingTasks++;
4615
- null === blockedBoundary
4616
- ? request.pendingRootTasks++
4617
- : blockedBoundary.pendingTasks++;
4618
- var task = {
4619
- replay: null,
4620
- node: node,
4719
+ resetOwnerStackLimit();
4720
+ renderState = new RequestInstance(
4721
+ postponedState.resumableState,
4722
+ renderState,
4723
+ postponedState.rootFormatContext,
4724
+ postponedState.progressiveChunkSize,
4725
+ onError,
4726
+ onAllReady,
4727
+ onShellReady,
4728
+ onShellError,
4729
+ onFatalError,
4730
+ onPostpone,
4731
+ null
4732
+ );
4733
+ renderState.nextSegmentId = postponedState.nextSegmentId;
4734
+ if ("number" === typeof postponedState.replaySlots)
4735
+ return (
4736
+ (onError = createPendingSegment(
4737
+ renderState,
4738
+ 0,
4739
+ null,
4740
+ postponedState.rootFormatContext,
4741
+ !1,
4742
+ !1
4743
+ )),
4744
+ (onError.parentFlushed = !0),
4745
+ (children = createRenderTask(
4746
+ renderState,
4747
+ null,
4748
+ children,
4749
+ -1,
4750
+ null,
4751
+ onError,
4752
+ null,
4753
+ null,
4754
+ renderState.abortableTasks,
4755
+ null,
4756
+ postponedState.rootFormatContext,
4757
+ null,
4758
+ emptyTreeContext,
4759
+ null,
4760
+ null,
4761
+ emptyContextObject,
4762
+ null
4763
+ )),
4764
+ pushComponentStack(children),
4765
+ renderState.pingedTasks.push(children),
4766
+ renderState
4767
+ );
4768
+ children = createReplayTask(
4769
+ renderState,
4770
+ null,
4771
+ {
4772
+ nodes: postponedState.replayNodes,
4773
+ slots: postponedState.replaySlots,
4774
+ pendingTasks: 0
4775
+ },
4776
+ children,
4777
+ -1,
4778
+ null,
4779
+ null,
4780
+ renderState.abortableTasks,
4781
+ null,
4782
+ postponedState.rootFormatContext,
4783
+ null,
4784
+ emptyTreeContext,
4785
+ null,
4786
+ null,
4787
+ emptyContextObject,
4788
+ null
4789
+ );
4790
+ pushComponentStack(children);
4791
+ renderState.pingedTasks.push(children);
4792
+ return renderState;
4793
+ }
4794
+ function resumeAndPrerenderRequest(
4795
+ children,
4796
+ postponedState,
4797
+ renderState,
4798
+ onError,
4799
+ onAllReady,
4800
+ onShellReady,
4801
+ onShellError,
4802
+ onFatalError,
4803
+ onPostpone
4804
+ ) {
4805
+ children = resumeRequest(
4806
+ children,
4807
+ postponedState,
4808
+ renderState,
4809
+ onError,
4810
+ onAllReady,
4811
+ onShellReady,
4812
+ onShellError,
4813
+ onFatalError,
4814
+ onPostpone
4815
+ );
4816
+ children.trackedPostpones = {
4817
+ workingMap: new Map(),
4818
+ rootNodes: [],
4819
+ rootSlots: null
4820
+ };
4821
+ return children;
4822
+ }
4823
+ function pingTask(request, task) {
4824
+ request.pingedTasks.push(task);
4825
+ 1 === request.pingedTasks.length &&
4826
+ ((request.flushScheduled = null !== request.destination),
4827
+ null !== request.trackedPostpones || 10 === request.status
4828
+ ? scheduleMicrotask(function () {
4829
+ return performWork(request);
4830
+ })
4831
+ : scheduleWork(function () {
4832
+ return performWork(request);
4833
+ }));
4834
+ }
4835
+ function createSuspenseBoundary(
4836
+ request,
4837
+ row,
4838
+ fallbackAbortableTasks,
4839
+ contentPreamble,
4840
+ fallbackPreamble
4841
+ ) {
4842
+ fallbackAbortableTasks = {
4843
+ status: PENDING,
4844
+ rootSegmentID: -1,
4845
+ parentFlushed: !1,
4846
+ pendingTasks: 0,
4847
+ row: row,
4848
+ completedSegments: [],
4849
+ byteSize: 0,
4850
+ fallbackAbortableTasks: fallbackAbortableTasks,
4851
+ errorDigest: null,
4852
+ contentState: createHoistableState(),
4853
+ fallbackState: createHoistableState(),
4854
+ contentPreamble: contentPreamble,
4855
+ fallbackPreamble: fallbackPreamble,
4856
+ trackedContentKeyPath: null,
4857
+ trackedFallbackNode: null,
4858
+ errorMessage: null,
4859
+ errorStack: null,
4860
+ errorComponentStack: null
4861
+ };
4862
+ null !== row &&
4863
+ (row.pendingTasks++,
4864
+ (contentPreamble = row.boundaries),
4865
+ null !== contentPreamble &&
4866
+ (request.allPendingTasks++,
4867
+ fallbackAbortableTasks.pendingTasks++,
4868
+ contentPreamble.push(fallbackAbortableTasks)),
4869
+ (request = row.inheritedHoistables),
4870
+ null !== request &&
4871
+ hoistHoistables(fallbackAbortableTasks.contentState, request));
4872
+ return fallbackAbortableTasks;
4873
+ }
4874
+ function createRenderTask(
4875
+ request,
4876
+ thenableState,
4877
+ node,
4878
+ childIndex,
4879
+ blockedBoundary,
4880
+ blockedSegment,
4881
+ blockedPreamble,
4882
+ hoistableState,
4883
+ abortSet,
4884
+ keyPath,
4885
+ formatContext,
4886
+ context,
4887
+ treeContext,
4888
+ row,
4889
+ componentStack,
4890
+ legacyContext,
4891
+ debugTask
4892
+ ) {
4893
+ request.allPendingTasks++;
4894
+ null === blockedBoundary
4895
+ ? request.pendingRootTasks++
4896
+ : blockedBoundary.pendingTasks++;
4897
+ null !== row && row.pendingTasks++;
4898
+ var task = {
4899
+ replay: null,
4900
+ node: node,
4621
4901
  childIndex: childIndex,
4622
4902
  ping: function () {
4623
4903
  return pingTask(request, task);
@@ -4631,9 +4911,9 @@
4631
4911
  formatContext: formatContext,
4632
4912
  context: context,
4633
4913
  treeContext: treeContext,
4914
+ row: row,
4634
4915
  componentStack: componentStack,
4635
- thenableState: thenableState,
4636
- isFallback: isFallback
4916
+ thenableState: thenableState
4637
4917
  };
4638
4918
  task.debugTask = debugTask;
4639
4919
  abortSet.add(task);
@@ -4652,8 +4932,8 @@
4652
4932
  formatContext,
4653
4933
  context,
4654
4934
  treeContext,
4935
+ row,
4655
4936
  componentStack,
4656
- isFallback,
4657
4937
  legacyContext,
4658
4938
  debugTask
4659
4939
  ) {
@@ -4661,6 +4941,7 @@
4661
4941
  null === blockedBoundary
4662
4942
  ? request.pendingRootTasks++
4663
4943
  : blockedBoundary.pendingTasks++;
4944
+ null !== row && row.pendingTasks++;
4664
4945
  replay.pendingTasks++;
4665
4946
  var task = {
4666
4947
  replay: replay,
@@ -4678,9 +4959,9 @@
4678
4959
  formatContext: formatContext,
4679
4960
  context: context,
4680
4961
  treeContext: treeContext,
4962
+ row: row,
4681
4963
  componentStack: componentStack,
4682
- thenableState: thenableState,
4683
- isFallback: isFallback
4964
+ thenableState: thenableState
4684
4965
  };
4685
4966
  task.debugTask = debugTask;
4686
4967
  abortSet.add(task);
@@ -4753,6 +5034,27 @@
4753
5034
  }
4754
5035
  return JSCompiler_inline_result$jscomp$0;
4755
5036
  }
5037
+ function pushHaltedAwaitOnComponentStack(task, debugInfo) {
5038
+ if (null != debugInfo)
5039
+ for (var i = debugInfo.length - 1; 0 <= i; i--) {
5040
+ var info = debugInfo[i];
5041
+ if ("string" === typeof info.name) break;
5042
+ if ("number" === typeof info.time) break;
5043
+ if (null != info.awaited) {
5044
+ var bestStack = null == info.debugStack ? info.awaited : info;
5045
+ if (void 0 !== bestStack.debugStack) {
5046
+ task.componentStack = {
5047
+ parent: task.componentStack,
5048
+ type: info,
5049
+ owner: bestStack.owner,
5050
+ stack: bestStack.debugStack
5051
+ };
5052
+ task.debugTask = bestStack.debugTask;
5053
+ break;
5054
+ }
5055
+ }
5056
+ }
5057
+ }
4756
5058
  function pushServerComponentStack(task, debugInfo) {
4757
5059
  if (null != debugInfo)
4758
5060
  for (var i = 0; i < debugInfo.length; i++) {
@@ -4793,6 +5095,18 @@
4793
5095
  pushServerComponentStack(task, node._debugInfo);
4794
5096
  }
4795
5097
  }
5098
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
5099
+ componentStack
5100
+ ) {
5101
+ return null === componentStack
5102
+ ? null
5103
+ : {
5104
+ parent: componentStack.parent,
5105
+ type: "Suspense Fallback",
5106
+ owner: componentStack.owner,
5107
+ stack: componentStack.stack
5108
+ };
5109
+ }
4796
5110
  function getThrownInfo(node$jscomp$0) {
4797
5111
  var errorInfo = {};
4798
5112
  node$jscomp$0 &&
@@ -4865,6 +5179,193 @@
4865
5179
  closeWithError(request.destination, error))
4866
5180
  : ((request.status = 13), (request.fatalError = error));
4867
5181
  }
5182
+ function finishSuspenseListRow(request, row) {
5183
+ unblockSuspenseListRow(request, row.next, row.hoistables);
5184
+ }
5185
+ function unblockSuspenseListRow(
5186
+ request,
5187
+ unblockedRow,
5188
+ inheritedHoistables
5189
+ ) {
5190
+ for (; null !== unblockedRow; ) {
5191
+ null !== inheritedHoistables &&
5192
+ (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
5193
+ (unblockedRow.inheritedHoistables = inheritedHoistables));
5194
+ var unblockedBoundaries = unblockedRow.boundaries;
5195
+ if (null !== unblockedBoundaries) {
5196
+ unblockedRow.boundaries = null;
5197
+ for (var i = 0; i < unblockedBoundaries.length; i++) {
5198
+ var unblockedBoundary = unblockedBoundaries[i];
5199
+ null !== inheritedHoistables &&
5200
+ hoistHoistables(
5201
+ unblockedBoundary.contentState,
5202
+ inheritedHoistables
5203
+ );
5204
+ finishedTask(request, unblockedBoundary, null, null);
5205
+ }
5206
+ }
5207
+ unblockedRow.pendingTasks--;
5208
+ if (0 < unblockedRow.pendingTasks) break;
5209
+ inheritedHoistables = unblockedRow.hoistables;
5210
+ unblockedRow = unblockedRow.next;
5211
+ }
5212
+ }
5213
+ function tryToResolveTogetherRow(request, togetherRow) {
5214
+ var boundaries = togetherRow.boundaries;
5215
+ if (
5216
+ null !== boundaries &&
5217
+ togetherRow.pendingTasks === boundaries.length
5218
+ ) {
5219
+ for (
5220
+ var allCompleteAndInlinable = !0, i = 0;
5221
+ i < boundaries.length;
5222
+ i++
5223
+ ) {
5224
+ var rowBoundary = boundaries[i];
5225
+ if (
5226
+ 1 !== rowBoundary.pendingTasks ||
5227
+ rowBoundary.parentFlushed ||
5228
+ isEligibleForOutlining(request, rowBoundary)
5229
+ ) {
5230
+ allCompleteAndInlinable = !1;
5231
+ break;
5232
+ }
5233
+ }
5234
+ allCompleteAndInlinable &&
5235
+ unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
5236
+ }
5237
+ }
5238
+ function createSuspenseListRow(previousRow) {
5239
+ var newRow = {
5240
+ pendingTasks: 1,
5241
+ boundaries: null,
5242
+ hoistables: createHoistableState(),
5243
+ inheritedHoistables: null,
5244
+ together: !1,
5245
+ next: null
5246
+ };
5247
+ null !== previousRow &&
5248
+ 0 < previousRow.pendingTasks &&
5249
+ (newRow.pendingTasks++,
5250
+ (newRow.boundaries = []),
5251
+ (previousRow.next = newRow));
5252
+ return newRow;
5253
+ }
5254
+ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
5255
+ var prevKeyPath = task.keyPath,
5256
+ prevTreeContext = task.treeContext,
5257
+ prevRow = task.row,
5258
+ previousComponentStack = task.componentStack;
5259
+ var previousDebugTask = task.debugTask;
5260
+ pushServerComponentStack(task, task.node.props.children._debugInfo);
5261
+ task.keyPath = keyPath;
5262
+ keyPath = rows.length;
5263
+ var previousSuspenseListRow = null;
5264
+ if (null !== task.replay) {
5265
+ var resumeSlots = task.replay.slots;
5266
+ if (null !== resumeSlots && "object" === typeof resumeSlots)
5267
+ for (var n = 0; n < keyPath; n++) {
5268
+ var i =
5269
+ "backwards" !== revealOrder &&
5270
+ "unstable_legacy-backwards" !== revealOrder
5271
+ ? n
5272
+ : keyPath - 1 - n,
5273
+ node = rows[i];
5274
+ task.row = previousSuspenseListRow = createSuspenseListRow(
5275
+ previousSuspenseListRow
5276
+ );
5277
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
5278
+ var resumeSegmentID = resumeSlots[i];
5279
+ "number" === typeof resumeSegmentID
5280
+ ? (resumeNode(request, task, resumeSegmentID, node, i),
5281
+ delete resumeSlots[i])
5282
+ : renderNode(request, task, node, i);
5283
+ 0 === --previousSuspenseListRow.pendingTasks &&
5284
+ finishSuspenseListRow(request, previousSuspenseListRow);
5285
+ }
5286
+ else
5287
+ for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
5288
+ (n =
5289
+ "backwards" !== revealOrder &&
5290
+ "unstable_legacy-backwards" !== revealOrder
5291
+ ? resumeSlots
5292
+ : keyPath - 1 - resumeSlots),
5293
+ (i = rows[n]),
5294
+ warnForMissingKey(request, task, i),
5295
+ (task.row = previousSuspenseListRow =
5296
+ createSuspenseListRow(previousSuspenseListRow)),
5297
+ (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
5298
+ renderNode(request, task, i, n),
5299
+ 0 === --previousSuspenseListRow.pendingTasks &&
5300
+ finishSuspenseListRow(request, previousSuspenseListRow);
5301
+ } else if (
5302
+ "backwards" !== revealOrder &&
5303
+ "unstable_legacy-backwards" !== revealOrder
5304
+ )
5305
+ for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
5306
+ (resumeSlots = rows[revealOrder]),
5307
+ warnForMissingKey(request, task, resumeSlots),
5308
+ (task.row = previousSuspenseListRow =
5309
+ createSuspenseListRow(previousSuspenseListRow)),
5310
+ (task.treeContext = pushTreeContext(
5311
+ prevTreeContext,
5312
+ keyPath,
5313
+ revealOrder
5314
+ )),
5315
+ renderNode(request, task, resumeSlots, revealOrder),
5316
+ 0 === --previousSuspenseListRow.pendingTasks &&
5317
+ finishSuspenseListRow(request, previousSuspenseListRow);
5318
+ else {
5319
+ revealOrder = task.blockedSegment;
5320
+ resumeSlots = revealOrder.children.length;
5321
+ n = revealOrder.chunks.length;
5322
+ for (i = keyPath - 1; 0 <= i; i--) {
5323
+ node = rows[i];
5324
+ task.row = previousSuspenseListRow = createSuspenseListRow(
5325
+ previousSuspenseListRow
5326
+ );
5327
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
5328
+ resumeSegmentID = createPendingSegment(
5329
+ request,
5330
+ n,
5331
+ null,
5332
+ task.formatContext,
5333
+ 0 === i ? revealOrder.lastPushedText : !0,
5334
+ !0
5335
+ );
5336
+ revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
5337
+ task.blockedSegment = resumeSegmentID;
5338
+ warnForMissingKey(request, task, node);
5339
+ try {
5340
+ renderNode(request, task, node, i),
5341
+ resumeSegmentID.lastPushedText &&
5342
+ resumeSegmentID.textEmbedded &&
5343
+ resumeSegmentID.chunks.push(textSeparator),
5344
+ (resumeSegmentID.status = COMPLETED),
5345
+ finishedSegment(request, task.blockedBoundary, resumeSegmentID),
5346
+ 0 === --previousSuspenseListRow.pendingTasks &&
5347
+ finishSuspenseListRow(request, previousSuspenseListRow);
5348
+ } catch (thrownValue) {
5349
+ throw (
5350
+ ((resumeSegmentID.status =
5351
+ 12 === request.status ? ABORTED : ERRORED),
5352
+ thrownValue)
5353
+ );
5354
+ }
5355
+ }
5356
+ task.blockedSegment = revealOrder;
5357
+ revealOrder.lastPushedText = !1;
5358
+ }
5359
+ null !== prevRow &&
5360
+ null !== previousSuspenseListRow &&
5361
+ 0 < previousSuspenseListRow.pendingTasks &&
5362
+ (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
5363
+ task.treeContext = prevTreeContext;
5364
+ task.row = prevRow;
5365
+ task.keyPath = prevKeyPath;
5366
+ task.componentStack = previousComponentStack;
5367
+ task.debugTask = previousDebugTask;
5368
+ }
4868
5369
  function renderWithHooks(
4869
5370
  request,
4870
5371
  task,
@@ -5349,26 +5850,30 @@
5349
5850
  type.displayName || type.name || "Component"
5350
5851
  );
5351
5852
  if ("function" === typeof type.getDerivedStateFromProps) {
5352
- var _componentName2 = getComponentNameFromType(type) || "Unknown";
5353
- didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ||
5853
+ var componentName$jscomp$4 =
5854
+ getComponentNameFromType(type) || "Unknown";
5855
+ didWarnAboutGetDerivedStateOnFunctionComponent[
5856
+ componentName$jscomp$4
5857
+ ] ||
5354
5858
  (console.error(
5355
5859
  "%s: Function components do not support getDerivedStateFromProps.",
5356
- _componentName2
5860
+ componentName$jscomp$4
5357
5861
  ),
5358
- (didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] =
5359
- !0));
5862
+ (didWarnAboutGetDerivedStateOnFunctionComponent[
5863
+ componentName$jscomp$4
5864
+ ] = !0));
5360
5865
  }
5361
5866
  if (
5362
5867
  "object" === typeof type.contextType &&
5363
5868
  null !== type.contextType
5364
5869
  ) {
5365
- var _componentName3 = getComponentNameFromType(type) || "Unknown";
5366
- didWarnAboutContextTypeOnFunctionComponent[_componentName3] ||
5870
+ var _componentName2 = getComponentNameFromType(type) || "Unknown";
5871
+ didWarnAboutContextTypeOnFunctionComponent[_componentName2] ||
5367
5872
  (console.error(
5368
5873
  "%s: Function components do not support contextType.",
5369
- _componentName3
5874
+ _componentName2
5370
5875
  ),
5371
- (didWarnAboutContextTypeOnFunctionComponent[_componentName3] =
5876
+ (didWarnAboutContextTypeOnFunctionComponent[_componentName2] =
5372
5877
  !0));
5373
5878
  }
5374
5879
  finishFunctionComponent(
@@ -5402,16 +5907,15 @@
5402
5907
  task.blockedPreamble,
5403
5908
  task.hoistableState,
5404
5909
  task.formatContext,
5405
- segment.lastPushedText,
5406
- task.isFallback
5910
+ segment.lastPushedText
5407
5911
  );
5408
5912
  segment.lastPushedText = !1;
5409
- var _prevContext = task.formatContext,
5410
- _prevKeyPath2 = task.keyPath;
5913
+ var _prevContext2 = task.formatContext,
5914
+ _prevKeyPath3 = task.keyPath;
5411
5915
  task.keyPath = keyPath;
5412
5916
  if (
5413
5917
  (task.formatContext = getChildFormatContext(
5414
- _prevContext,
5918
+ _prevContext2,
5415
5919
  type,
5416
5920
  props
5417
5921
  )).insertionMode === HTML_HEAD_MODE
@@ -5425,30 +5929,21 @@
5425
5929
  !1
5426
5930
  );
5427
5931
  segment.preambleChildren.push(preambleSegment);
5428
- var preambleTask = createRenderTask(
5429
- request,
5430
- null,
5431
- _children,
5432
- -1,
5433
- task.blockedBoundary,
5434
- preambleSegment,
5435
- task.blockedPreamble,
5436
- task.hoistableState,
5437
- request.abortableTasks,
5438
- task.keyPath,
5439
- task.formatContext,
5440
- task.context,
5441
- task.treeContext,
5442
- task.componentStack,
5443
- task.isFallback,
5444
- emptyContextObject,
5445
- task.debugTask
5446
- );
5447
- pushComponentStack(preambleTask);
5448
- request.pingedTasks.push(preambleTask);
5932
+ task.blockedSegment = preambleSegment;
5933
+ try {
5934
+ (preambleSegment.status = 6),
5935
+ renderNode(request, task, _children, -1),
5936
+ preambleSegment.lastPushedText &&
5937
+ preambleSegment.textEmbedded &&
5938
+ preambleSegment.chunks.push(textSeparator),
5939
+ (preambleSegment.status = COMPLETED),
5940
+ finishedSegment(request, task.blockedBoundary, preambleSegment);
5941
+ } finally {
5942
+ task.blockedSegment = segment;
5943
+ }
5449
5944
  } else renderNode(request, task, _children, -1);
5450
- task.formatContext = _prevContext;
5451
- task.keyPath = _prevKeyPath2;
5945
+ task.formatContext = _prevContext2;
5946
+ task.keyPath = _prevKeyPath3;
5452
5947
  a: {
5453
5948
  var target = segment.chunks,
5454
5949
  resumableState = request.resumableState;
@@ -5473,19 +5968,19 @@
5473
5968
  case "wbr":
5474
5969
  break a;
5475
5970
  case "body":
5476
- if (_prevContext.insertionMode <= HTML_HTML_MODE) {
5971
+ if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
5477
5972
  resumableState.hasBody = !0;
5478
5973
  break a;
5479
5974
  }
5480
5975
  break;
5481
5976
  case "html":
5482
- if (_prevContext.insertionMode === ROOT_HTML_MODE) {
5977
+ if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
5483
5978
  resumableState.hasHtml = !0;
5484
5979
  break a;
5485
5980
  }
5486
5981
  break;
5487
5982
  case "head":
5488
- if (_prevContext.insertionMode <= HTML_HTML_MODE) break a;
5983
+ if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
5489
5984
  }
5490
5985
  target.push(endChunkForTag(type));
5491
5986
  }
@@ -5503,18 +5998,94 @@
5503
5998
  task.keyPath = prevKeyPath$jscomp$1;
5504
5999
  return;
5505
6000
  case REACT_ACTIVITY_TYPE:
5506
- if ("hidden" !== props.mode) {
5507
- var prevKeyPath$jscomp$2 = task.keyPath;
6001
+ var segment$jscomp$0 = task.blockedSegment;
6002
+ if (null === segment$jscomp$0) {
6003
+ if ("hidden" !== props.mode) {
6004
+ var prevKeyPath$jscomp$2 = task.keyPath;
6005
+ task.keyPath = keyPath;
6006
+ renderNode(request, task, props.children, -1);
6007
+ task.keyPath = prevKeyPath$jscomp$2;
6008
+ }
6009
+ } else if ("hidden" !== props.mode) {
6010
+ segment$jscomp$0.chunks.push(startActivityBoundary);
6011
+ segment$jscomp$0.lastPushedText = !1;
6012
+ var _prevKeyPath4 = task.keyPath;
5508
6013
  task.keyPath = keyPath;
5509
- renderNodeDestructive(request, task, props.children, -1);
5510
- task.keyPath = prevKeyPath$jscomp$2;
6014
+ renderNode(request, task, props.children, -1);
6015
+ task.keyPath = _prevKeyPath4;
6016
+ segment$jscomp$0.chunks.push(endActivityBoundary);
6017
+ segment$jscomp$0.lastPushedText = !1;
5511
6018
  }
5512
6019
  return;
5513
6020
  case REACT_SUSPENSE_LIST_TYPE:
5514
- var _prevKeyPath3 = task.keyPath;
5515
- task.keyPath = keyPath;
5516
- renderNodeDestructive(request, task, props.children, -1);
5517
- task.keyPath = _prevKeyPath3;
6021
+ a: {
6022
+ var children$jscomp$0 = props.children,
6023
+ revealOrder = props.revealOrder;
6024
+ if (
6025
+ "forwards" === revealOrder ||
6026
+ "backwards" === revealOrder ||
6027
+ "unstable_legacy-backwards" === revealOrder
6028
+ ) {
6029
+ if (isArrayImpl(children$jscomp$0)) {
6030
+ renderSuspenseListRows(
6031
+ request,
6032
+ task,
6033
+ keyPath,
6034
+ children$jscomp$0,
6035
+ revealOrder
6036
+ );
6037
+ break a;
6038
+ }
6039
+ var iteratorFn = getIteratorFn(children$jscomp$0);
6040
+ if (iteratorFn) {
6041
+ var iterator = iteratorFn.call(children$jscomp$0);
6042
+ if (iterator) {
6043
+ validateIterable(
6044
+ task,
6045
+ children$jscomp$0,
6046
+ -1,
6047
+ iterator,
6048
+ iteratorFn
6049
+ );
6050
+ var step = iterator.next();
6051
+ if (!step.done) {
6052
+ var rows = [];
6053
+ do rows.push(step.value), (step = iterator.next());
6054
+ while (!step.done);
6055
+ renderSuspenseListRows(
6056
+ request,
6057
+ task,
6058
+ keyPath,
6059
+ children$jscomp$0,
6060
+ revealOrder
6061
+ );
6062
+ }
6063
+ break a;
6064
+ }
6065
+ }
6066
+ }
6067
+ if ("together" === revealOrder) {
6068
+ var _prevKeyPath2 = task.keyPath,
6069
+ prevRow = task.row,
6070
+ newRow = (task.row = createSuspenseListRow(null));
6071
+ newRow.boundaries = [];
6072
+ newRow.together = !0;
6073
+ task.keyPath = keyPath;
6074
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
6075
+ 0 === --newRow.pendingTasks &&
6076
+ finishSuspenseListRow(request, newRow);
6077
+ task.keyPath = _prevKeyPath2;
6078
+ task.row = prevRow;
6079
+ null !== prevRow &&
6080
+ 0 < newRow.pendingTasks &&
6081
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
6082
+ } else {
6083
+ var prevKeyPath$jscomp$3 = task.keyPath;
6084
+ task.keyPath = keyPath;
6085
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
6086
+ task.keyPath = prevKeyPath$jscomp$3;
6087
+ }
6088
+ }
5518
6089
  return;
5519
6090
  case REACT_VIEW_TRANSITION_TYPE:
5520
6091
  case REACT_SCOPE_TYPE:
@@ -5523,16 +6094,27 @@
5523
6094
  );
5524
6095
  case REACT_SUSPENSE_TYPE:
5525
6096
  a: if (null !== task.replay) {
5526
- var _prevKeyPath = task.keyPath;
6097
+ var _prevKeyPath = task.keyPath,
6098
+ _prevContext = task.formatContext,
6099
+ _prevRow = task.row;
5527
6100
  task.keyPath = keyPath;
6101
+ task.formatContext = getSuspenseContentFormatContext(
6102
+ request.resumableState,
6103
+ _prevContext
6104
+ );
6105
+ task.row = null;
5528
6106
  var _content = props.children;
5529
6107
  try {
5530
6108
  renderNode(request, task, _content, -1);
5531
6109
  } finally {
5532
- task.keyPath = _prevKeyPath;
6110
+ (task.keyPath = _prevKeyPath),
6111
+ (task.formatContext = _prevContext),
6112
+ (task.row = _prevRow);
5533
6113
  }
5534
6114
  } else {
5535
- var prevKeyPath$jscomp$3 = task.keyPath,
6115
+ var prevKeyPath$jscomp$4 = task.keyPath,
6116
+ prevContext$jscomp$0 = task.formatContext,
6117
+ prevRow$jscomp$0 = task.row,
5536
6118
  parentBoundary = task.blockedBoundary,
5537
6119
  parentPreamble = task.blockedPreamble,
5538
6120
  parentHoistableState = task.hoistableState,
@@ -5544,12 +6126,14 @@
5544
6126
  task.formatContext.insertionMode < HTML_MODE
5545
6127
  ? createSuspenseBoundary(
5546
6128
  request,
6129
+ task.row,
5547
6130
  fallbackAbortSet,
5548
6131
  createPreambleState(),
5549
6132
  createPreambleState()
5550
6133
  )
5551
6134
  : createSuspenseBoundary(
5552
6135
  request,
6136
+ task.row,
5553
6137
  fallbackAbortSet,
5554
6138
  null,
5555
6139
  null
@@ -5576,7 +6160,8 @@
5576
6160
  );
5577
6161
  contentRootSegment.parentFlushed = !0;
5578
6162
  if (null !== request.trackedPostpones) {
5579
- var fallbackKeyPath = [
6163
+ var suspenseComponentStack = task.componentStack,
6164
+ fallbackKeyPath = [
5580
6165
  keyPath[0],
5581
6166
  "Suspense Fallback",
5582
6167
  keyPath[2]
@@ -5595,22 +6180,33 @@
5595
6180
  task.blockedSegment = boundarySegment;
5596
6181
  task.blockedPreamble = newBoundary.fallbackPreamble;
5597
6182
  task.keyPath = fallbackKeyPath;
6183
+ task.formatContext = getSuspenseFallbackFormatContext(
6184
+ request.resumableState,
6185
+ prevContext$jscomp$0
6186
+ );
6187
+ task.componentStack =
6188
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6189
+ suspenseComponentStack
6190
+ );
5598
6191
  boundarySegment.status = 6;
5599
6192
  try {
5600
6193
  renderNode(request, task, fallback, -1),
5601
6194
  boundarySegment.lastPushedText &&
5602
6195
  boundarySegment.textEmbedded &&
5603
6196
  boundarySegment.chunks.push(textSeparator),
5604
- (boundarySegment.status = COMPLETED);
6197
+ (boundarySegment.status = COMPLETED),
6198
+ finishedSegment(request, parentBoundary, boundarySegment);
5605
6199
  } catch (thrownValue) {
5606
6200
  throw (
5607
- ((boundarySegment.status = 12 === request.status ? 3 : 4),
6201
+ ((boundarySegment.status =
6202
+ 12 === request.status ? ABORTED : ERRORED),
5608
6203
  thrownValue)
5609
6204
  );
5610
6205
  } finally {
5611
6206
  (task.blockedSegment = parentSegment),
5612
6207
  (task.blockedPreamble = parentPreamble),
5613
- (task.keyPath = prevKeyPath$jscomp$3);
6208
+ (task.keyPath = prevKeyPath$jscomp$4),
6209
+ (task.formatContext = prevContext$jscomp$0);
5614
6210
  }
5615
6211
  var suspendedPrimaryTask = createRenderTask(
5616
6212
  request,
@@ -5623,11 +6219,14 @@
5623
6219
  newBoundary.contentState,
5624
6220
  task.abortSet,
5625
6221
  keyPath,
5626
- task.formatContext,
6222
+ getSuspenseContentFormatContext(
6223
+ request.resumableState,
6224
+ task.formatContext
6225
+ ),
5627
6226
  task.context,
5628
6227
  task.treeContext,
5629
- task.componentStack,
5630
- task.isFallback,
6228
+ null,
6229
+ suspenseComponentStack,
5631
6230
  emptyContextObject,
5632
6231
  task.debugTask
5633
6232
  );
@@ -5639,6 +6238,11 @@
5639
6238
  task.hoistableState = newBoundary.contentState;
5640
6239
  task.blockedSegment = contentRootSegment;
5641
6240
  task.keyPath = keyPath;
6241
+ task.formatContext = getSuspenseContentFormatContext(
6242
+ request.resumableState,
6243
+ prevContext$jscomp$0
6244
+ );
6245
+ task.row = null;
5642
6246
  contentRootSegment.status = 6;
5643
6247
  try {
5644
6248
  if (
@@ -5647,23 +6251,35 @@
5647
6251
  contentRootSegment.textEmbedded &&
5648
6252
  contentRootSegment.chunks.push(textSeparator),
5649
6253
  (contentRootSegment.status = COMPLETED),
6254
+ finishedSegment(request, newBoundary, contentRootSegment),
5650
6255
  queueCompletedSegment(newBoundary, contentRootSegment),
5651
6256
  0 === newBoundary.pendingTasks &&
5652
6257
  newBoundary.status === PENDING)
5653
6258
  ) {
5654
- newBoundary.status = COMPLETED;
5655
- 0 === request.pendingRootTasks &&
5656
- task.blockedPreamble &&
5657
- preparePreamble(request);
5658
- break a;
5659
- }
6259
+ if (
6260
+ ((newBoundary.status = COMPLETED),
6261
+ !isEligibleForOutlining(request, newBoundary))
6262
+ ) {
6263
+ null !== prevRow$jscomp$0 &&
6264
+ 0 === --prevRow$jscomp$0.pendingTasks &&
6265
+ finishSuspenseListRow(request, prevRow$jscomp$0);
6266
+ 0 === request.pendingRootTasks &&
6267
+ task.blockedPreamble &&
6268
+ preparePreamble(request);
6269
+ break a;
6270
+ }
6271
+ } else
6272
+ null !== prevRow$jscomp$0 &&
6273
+ prevRow$jscomp$0.together &&
6274
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
5660
6275
  } catch (thrownValue$2) {
5661
6276
  newBoundary.status = CLIENT_RENDERED;
5662
6277
  if (12 === request.status) {
5663
- contentRootSegment.status = 3;
6278
+ contentRootSegment.status = ABORTED;
5664
6279
  var error = request.fatalError;
5665
6280
  } else
5666
- (contentRootSegment.status = 4), (error = thrownValue$2);
6281
+ (contentRootSegment.status = ERRORED),
6282
+ (error = thrownValue$2);
5667
6283
  var thrownInfo = getThrownInfo(task.componentStack);
5668
6284
  var errorDigest = logRecoverableError(
5669
6285
  request,
@@ -5684,7 +6300,9 @@
5684
6300
  (task.blockedPreamble = parentPreamble),
5685
6301
  (task.hoistableState = parentHoistableState),
5686
6302
  (task.blockedSegment = parentSegment),
5687
- (task.keyPath = prevKeyPath$jscomp$3);
6303
+ (task.keyPath = prevKeyPath$jscomp$4),
6304
+ (task.formatContext = prevContext$jscomp$0),
6305
+ (task.row = prevRow$jscomp$0);
5688
6306
  }
5689
6307
  var suspendedFallbackTask = createRenderTask(
5690
6308
  request,
@@ -5697,11 +6315,16 @@
5697
6315
  newBoundary.fallbackState,
5698
6316
  fallbackAbortSet,
5699
6317
  [keyPath[0], "Suspense Fallback", keyPath[2]],
5700
- task.formatContext,
6318
+ getSuspenseFallbackFormatContext(
6319
+ request.resumableState,
6320
+ task.formatContext
6321
+ ),
5701
6322
  task.context,
5702
6323
  task.treeContext,
5703
- task.componentStack,
5704
- !0,
6324
+ task.row,
6325
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6326
+ task.componentStack
6327
+ ),
5705
6328
  emptyContextObject,
5706
6329
  task.debugTask
5707
6330
  );
@@ -5719,7 +6342,7 @@
5719
6342
  for (var key in props)
5720
6343
  "ref" !== key && (propsWithoutRef[key] = props[key]);
5721
6344
  } else propsWithoutRef = props;
5722
- var children$jscomp$0 = renderWithHooks(
6345
+ var children$jscomp$1 = renderWithHooks(
5723
6346
  request,
5724
6347
  task,
5725
6348
  keyPath,
@@ -5731,7 +6354,7 @@
5731
6354
  request,
5732
6355
  task,
5733
6356
  keyPath,
5734
- children$jscomp$0,
6357
+ children$jscomp$1,
5735
6358
  0 !== localIdCounter,
5736
6359
  actionStateCounter,
5737
6360
  actionStateMatchingIndex
@@ -5740,12 +6363,11 @@
5740
6363
  case REACT_MEMO_TYPE:
5741
6364
  renderElement(request, task, keyPath, type.type, props, ref);
5742
6365
  return;
5743
- case REACT_PROVIDER_TYPE:
5744
6366
  case REACT_CONTEXT_TYPE:
5745
6367
  var value$jscomp$0 = props.value,
5746
- children$jscomp$1 = props.children;
6368
+ children$jscomp$2 = props.children;
5747
6369
  var prevSnapshot = task.context;
5748
- var prevKeyPath$jscomp$4 = task.keyPath;
6370
+ var prevKeyPath$jscomp$5 = task.keyPath;
5749
6371
  var prevValue = type._currentValue;
5750
6372
  type._currentValue = value$jscomp$0;
5751
6373
  void 0 !== type._currentRenderer &&
@@ -5766,7 +6388,7 @@
5766
6388
  currentActiveSnapshot = newNode;
5767
6389
  task.context = newNode;
5768
6390
  task.keyPath = keyPath;
5769
- renderNodeDestructive(request, task, children$jscomp$1, -1);
6391
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
5770
6392
  var prevSnapshot$jscomp$0 = currentActiveSnapshot;
5771
6393
  if (null === prevSnapshot$jscomp$0)
5772
6394
  throw Error(
@@ -5788,7 +6410,7 @@
5788
6410
  var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
5789
6411
  prevSnapshot$jscomp$0.parent);
5790
6412
  task.context = JSCompiler_inline_result$jscomp$0;
5791
- task.keyPath = prevKeyPath$jscomp$4;
6413
+ task.keyPath = prevKeyPath$jscomp$5;
5792
6414
  prevSnapshot !== task.context &&
5793
6415
  console.error(
5794
6416
  "Popping the context provider did not return back to the original snapshot. This is a bug in React."
@@ -5802,10 +6424,10 @@
5802
6424
  "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
5803
6425
  );
5804
6426
  var newChildren = render(context$jscomp$0._currentValue),
5805
- prevKeyPath$jscomp$5 = task.keyPath;
6427
+ prevKeyPath$jscomp$6 = task.keyPath;
5806
6428
  task.keyPath = keyPath;
5807
6429
  renderNodeDestructive(request, task, newChildren, -1);
5808
- task.keyPath = prevKeyPath$jscomp$5;
6430
+ task.keyPath = prevKeyPath$jscomp$6;
5809
6431
  return;
5810
6432
  case REACT_LAZY_TYPE:
5811
6433
  var Component = callLazyInitInDEV(type);
@@ -5846,6 +6468,7 @@
5846
6468
  (task.blockedSegment = resumedSegment),
5847
6469
  renderNode(request, task, node, childIndex),
5848
6470
  (resumedSegment.status = COMPLETED),
6471
+ finishedSegment(request, blockedBoundary, resumedSegment),
5849
6472
  null === blockedBoundary
5850
6473
  ? (request.completedRootSegment = resumedSegment)
5851
6474
  : (queueCompletedSegment(blockedBoundary, resumedSegment),
@@ -5881,9 +6504,9 @@
5881
6504
  ">. The tree doesn't match so React will fallback to client rendering."
5882
6505
  );
5883
6506
  var childNodes = node[2];
5884
- node = node[3];
5885
- name = task.node;
5886
- task.replay = { nodes: childNodes, slots: node, pendingTasks: 1 };
6507
+ name = node[3];
6508
+ keyOrIndex = task.node;
6509
+ task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
5887
6510
  try {
5888
6511
  renderElement(request, task, keyPath, type, props, ref);
5889
6512
  if (
@@ -5900,21 +6523,26 @@
5900
6523
  null !== x &&
5901
6524
  (x === SuspenseException || "function" === typeof x.then)
5902
6525
  )
5903
- throw (task.node === name && (task.replay = replay), x);
6526
+ throw (
6527
+ (task.node === keyOrIndex
6528
+ ? (task.replay = replay)
6529
+ : childIndex.splice(i, 1),
6530
+ x)
6531
+ );
5904
6532
  task.replay.pendingTasks--;
5905
6533
  type = getThrownInfo(task.componentStack);
5906
6534
  props = request;
5907
6535
  request = task.blockedBoundary;
5908
6536
  keyPath = x;
5909
- ref = node;
5910
- node = logRecoverableError(props, keyPath, type, task.debugTask);
6537
+ ref = name;
6538
+ name = logRecoverableError(props, keyPath, type, task.debugTask);
5911
6539
  abortRemainingReplayNodes(
5912
6540
  props,
5913
6541
  request,
5914
6542
  childNodes,
5915
6543
  ref,
5916
6544
  keyPath,
5917
- node,
6545
+ name,
5918
6546
  type,
5919
6547
  !1
5920
6548
  );
@@ -5929,12 +6557,14 @@
5929
6557
  );
5930
6558
  a: {
5931
6559
  replay = void 0;
5932
- type = node[5];
5933
- ref = node[2];
5934
- name = node[3];
6560
+ name = node[5];
6561
+ type = node[2];
6562
+ ref = node[3];
5935
6563
  keyOrIndex = null === node[4] ? [] : node[4][2];
5936
6564
  node = null === node[4] ? null : node[4][3];
5937
6565
  var prevKeyPath = task.keyPath,
6566
+ prevContext = task.formatContext,
6567
+ prevRow = task.row,
5938
6568
  previousReplaySet = task.replay,
5939
6569
  parentBoundary = task.blockedBoundary,
5940
6570
  parentHoistableState = task.hoistableState,
@@ -5945,22 +6575,29 @@
5945
6575
  task.formatContext.insertionMode < HTML_MODE
5946
6576
  ? createSuspenseBoundary(
5947
6577
  request,
6578
+ task.row,
5948
6579
  fallbackAbortSet,
5949
6580
  createPreambleState(),
5950
6581
  createPreambleState()
5951
6582
  )
5952
6583
  : createSuspenseBoundary(
5953
6584
  request,
6585
+ task.row,
5954
6586
  fallbackAbortSet,
5955
6587
  null,
5956
6588
  null
5957
6589
  );
5958
6590
  props.parentFlushed = !0;
5959
- props.rootSegmentID = type;
6591
+ props.rootSegmentID = name;
5960
6592
  task.blockedBoundary = props;
5961
6593
  task.hoistableState = props.contentState;
5962
6594
  task.keyPath = keyPath;
5963
- task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
6595
+ task.formatContext = getSuspenseContentFormatContext(
6596
+ request.resumableState,
6597
+ prevContext
6598
+ );
6599
+ task.row = null;
6600
+ task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
5964
6601
  try {
5965
6602
  renderNode(request, task, content, -1);
5966
6603
  if (
@@ -5992,7 +6629,9 @@
5992
6629
  (task.blockedBoundary = parentBoundary),
5993
6630
  (task.hoistableState = parentHoistableState),
5994
6631
  (task.replay = previousReplaySet),
5995
- (task.keyPath = prevKeyPath);
6632
+ (task.keyPath = prevKeyPath),
6633
+ (task.formatContext = prevContext),
6634
+ (task.row = prevRow);
5996
6635
  }
5997
6636
  props = createReplayTask(
5998
6637
  request,
@@ -6004,11 +6643,16 @@
6004
6643
  props.fallbackState,
6005
6644
  fallbackAbortSet,
6006
6645
  [keyPath[0], "Suspense Fallback", keyPath[2]],
6007
- task.formatContext,
6646
+ getSuspenseFallbackFormatContext(
6647
+ request.resumableState,
6648
+ task.formatContext
6649
+ ),
6008
6650
  task.context,
6009
6651
  task.treeContext,
6010
- task.componentStack,
6011
- !0,
6652
+ task.row,
6653
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6654
+ task.componentStack
6655
+ ),
6012
6656
  emptyContextObject,
6013
6657
  task.debugTask
6014
6658
  );
@@ -6021,6 +6665,35 @@
6021
6665
  }
6022
6666
  }
6023
6667
  }
6668
+ function validateIterable(
6669
+ task,
6670
+ iterable,
6671
+ childIndex,
6672
+ iterator,
6673
+ iteratorFn
6674
+ ) {
6675
+ if (iterator === iterable) {
6676
+ if (
6677
+ -1 !== childIndex ||
6678
+ null === task.componentStack ||
6679
+ "function" !== typeof task.componentStack.type ||
6680
+ "[object GeneratorFunction]" !==
6681
+ Object.prototype.toString.call(task.componentStack.type) ||
6682
+ "[object Generator]" !== Object.prototype.toString.call(iterator)
6683
+ )
6684
+ didWarnAboutGenerators ||
6685
+ console.error(
6686
+ "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
6687
+ ),
6688
+ (didWarnAboutGenerators = !0);
6689
+ } else
6690
+ iterable.entries !== iteratorFn ||
6691
+ didWarnAboutMaps ||
6692
+ (console.error(
6693
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
6694
+ ),
6695
+ (didWarnAboutMaps = !0));
6696
+ }
6024
6697
  function renderNodeDestructive(request, task, node, childIndex) {
6025
6698
  null !== task.replay && "number" === typeof task.replay.slots
6026
6699
  ? resumeNode(request, task, task.replay.slots, node, childIndex)
@@ -6097,52 +6770,27 @@
6097
6770
  "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
6098
6771
  );
6099
6772
  case REACT_LAZY_TYPE:
6100
- node = callLazyInitInDEV(node);
6773
+ type = callLazyInitInDEV(node);
6101
6774
  if (12 === request.status) throw null;
6102
- renderNodeDestructive(request, task, node, childIndex);
6775
+ renderNodeDestructive(request, task, type, childIndex);
6103
6776
  return;
6104
6777
  }
6105
6778
  if (isArrayImpl(node)) {
6106
6779
  renderChildrenArray(request, task, node, childIndex);
6107
6780
  return;
6108
6781
  }
6109
- null === node || "object" !== typeof node
6110
- ? (key = null)
6111
- : ((type =
6112
- (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
6113
- node["@@iterator"]),
6114
- (key = "function" === typeof type ? type : null));
6115
- if (key && (type = key.call(node))) {
6116
- if (type === node) {
6117
- if (
6118
- -1 !== childIndex ||
6119
- null === task.componentStack ||
6120
- "function" !== typeof task.componentStack.type ||
6121
- "[object GeneratorFunction]" !==
6122
- Object.prototype.toString.call(task.componentStack.type) ||
6123
- "[object Generator]" !== Object.prototype.toString.call(type)
6124
- )
6125
- didWarnAboutGenerators ||
6126
- console.error(
6127
- "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
6128
- ),
6129
- (didWarnAboutGenerators = !0);
6130
- } else
6131
- node.entries !== key ||
6132
- didWarnAboutMaps ||
6133
- (console.error(
6134
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
6135
- ),
6136
- (didWarnAboutMaps = !0));
6137
- node = type.next();
6138
- if (!node.done) {
6139
- key = [];
6140
- do key.push(node.value), (node = type.next());
6141
- while (!node.done);
6142
- renderChildrenArray(request, task, key, childIndex);
6782
+ if ((key = getIteratorFn(node)))
6783
+ if ((type = key.call(node))) {
6784
+ validateIterable(task, node, childIndex, type, key);
6785
+ node = type.next();
6786
+ if (!node.done) {
6787
+ key = [];
6788
+ do key.push(node.value), (node = type.next());
6789
+ while (!node.done);
6790
+ renderChildrenArray(request, task, key, childIndex);
6791
+ }
6792
+ return;
6143
6793
  }
6144
- return;
6145
- }
6146
6794
  if ("function" === typeof node.then)
6147
6795
  return (
6148
6796
  (task.thenableState = null),
@@ -6201,6 +6849,69 @@
6201
6849
  ));
6202
6850
  }
6203
6851
  }
6852
+ function warnForMissingKey(request, task, child) {
6853
+ if (
6854
+ null !== child &&
6855
+ "object" === typeof child &&
6856
+ (child.$$typeof === REACT_ELEMENT_TYPE ||
6857
+ child.$$typeof === REACT_PORTAL_TYPE) &&
6858
+ child._store &&
6859
+ ((!child._store.validated && null == child.key) ||
6860
+ 2 === child._store.validated)
6861
+ ) {
6862
+ if ("object" !== typeof child._store)
6863
+ throw Error(
6864
+ "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
6865
+ );
6866
+ child._store.validated = 1;
6867
+ var didWarnForKey = request.didWarnForKey;
6868
+ null == didWarnForKey &&
6869
+ (didWarnForKey = request.didWarnForKey = new WeakSet());
6870
+ request = task.componentStack;
6871
+ if (null !== request && !didWarnForKey.has(request)) {
6872
+ didWarnForKey.add(request);
6873
+ var componentName = getComponentNameFromType(child.type);
6874
+ didWarnForKey = child._owner;
6875
+ var parentOwner = request.owner;
6876
+ request = "";
6877
+ if (parentOwner && "undefined" !== typeof parentOwner.type) {
6878
+ var name = getComponentNameFromType(parentOwner.type);
6879
+ name &&
6880
+ (request = "\n\nCheck the render method of `" + name + "`.");
6881
+ }
6882
+ request ||
6883
+ (componentName &&
6884
+ (request =
6885
+ "\n\nCheck the top-level render call using <" +
6886
+ componentName +
6887
+ ">."));
6888
+ componentName = "";
6889
+ null != didWarnForKey &&
6890
+ parentOwner !== didWarnForKey &&
6891
+ ((parentOwner = null),
6892
+ "undefined" !== typeof didWarnForKey.type
6893
+ ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
6894
+ : "string" === typeof didWarnForKey.name &&
6895
+ (parentOwner = didWarnForKey.name),
6896
+ parentOwner &&
6897
+ (componentName =
6898
+ " It was passed a child from " + parentOwner + "."));
6899
+ didWarnForKey = task.componentStack;
6900
+ task.componentStack = {
6901
+ parent: task.componentStack,
6902
+ type: child.type,
6903
+ owner: child._owner,
6904
+ stack: child._debugStack
6905
+ };
6906
+ console.error(
6907
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6908
+ request,
6909
+ componentName
6910
+ );
6911
+ task.componentStack = didWarnForKey;
6912
+ }
6913
+ }
6914
+ }
6204
6915
  function renderChildrenArray(request, task, children, childIndex) {
6205
6916
  var prevKeyPath = task.keyPath,
6206
6917
  previousComponentStack = task.componentStack;
@@ -6294,80 +7005,114 @@
6294
7005
  task.debugTask = previousDebugTask;
6295
7006
  return;
6296
7007
  }
6297
- for (j = 0; j < replayNodes; j++) {
6298
- childIndex = children[j];
6299
- resumeSlots = request;
6300
- node = task;
6301
- error = childIndex;
6302
- if (
6303
- null !== error &&
6304
- "object" === typeof error &&
6305
- (error.$$typeof === REACT_ELEMENT_TYPE ||
6306
- error.$$typeof === REACT_PORTAL_TYPE) &&
6307
- error._store &&
6308
- ((!error._store.validated && null == error.key) ||
6309
- 2 === error._store.validated)
6310
- ) {
6311
- if ("object" !== typeof error._store)
6312
- throw Error(
6313
- "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
6314
- );
6315
- error._store.validated = 1;
6316
- thrownInfo = resumeSlots.didWarnForKey;
6317
- null == thrownInfo &&
6318
- (thrownInfo = resumeSlots.didWarnForKey = new WeakSet());
6319
- resumeSlots = node.componentStack;
6320
- if (null !== resumeSlots && !thrownInfo.has(resumeSlots)) {
6321
- thrownInfo.add(resumeSlots);
6322
- var componentName = getComponentNameFromType(error.type);
6323
- thrownInfo = error._owner;
6324
- var parentOwner = resumeSlots.owner;
6325
- resumeSlots = "";
6326
- if (parentOwner && "undefined" !== typeof parentOwner.type) {
6327
- var name = getComponentNameFromType(parentOwner.type);
6328
- name &&
6329
- (resumeSlots =
6330
- "\n\nCheck the render method of `" + name + "`.");
7008
+ for (j = 0; j < replayNodes; j++)
7009
+ (childIndex = children[j]),
7010
+ warnForMissingKey(request, task, childIndex),
7011
+ (task.treeContext = pushTreeContext(replay, replayNodes, j)),
7012
+ renderNode(request, task, childIndex, j);
7013
+ task.treeContext = replay;
7014
+ task.keyPath = prevKeyPath;
7015
+ task.componentStack = previousComponentStack;
7016
+ task.debugTask = previousDebugTask;
7017
+ }
7018
+ function trackPostponedBoundary(request, trackedPostpones, boundary) {
7019
+ boundary.status = POSTPONED;
7020
+ boundary.rootSegmentID = request.nextSegmentId++;
7021
+ request = boundary.trackedContentKeyPath;
7022
+ if (null === request)
7023
+ throw Error(
7024
+ "It should not be possible to postpone at the root. This is a bug in React."
7025
+ );
7026
+ var fallbackReplayNode = boundary.trackedFallbackNode,
7027
+ children = [],
7028
+ boundaryNode = trackedPostpones.workingMap.get(request);
7029
+ if (void 0 === boundaryNode)
7030
+ return (
7031
+ (boundary = [
7032
+ request[1],
7033
+ request[2],
7034
+ children,
7035
+ null,
7036
+ fallbackReplayNode,
7037
+ boundary.rootSegmentID
7038
+ ]),
7039
+ trackedPostpones.workingMap.set(request, boundary),
7040
+ addToReplayParent(boundary, request[0], trackedPostpones),
7041
+ boundary
7042
+ );
7043
+ boundaryNode[4] = fallbackReplayNode;
7044
+ boundaryNode[5] = boundary.rootSegmentID;
7045
+ return boundaryNode;
7046
+ }
7047
+ function trackPostpone(request, trackedPostpones, task, segment) {
7048
+ segment.status = POSTPONED;
7049
+ var keyPath = task.keyPath,
7050
+ boundary = task.blockedBoundary;
7051
+ if (null === boundary)
7052
+ (segment.id = request.nextSegmentId++),
7053
+ (trackedPostpones.rootSlots = segment.id),
7054
+ null !== request.completedRootSegment &&
7055
+ (request.completedRootSegment.status = POSTPONED);
7056
+ else {
7057
+ if (null !== boundary && boundary.status === PENDING) {
7058
+ var boundaryNode = trackPostponedBoundary(
7059
+ request,
7060
+ trackedPostpones,
7061
+ boundary
7062
+ );
7063
+ if (
7064
+ boundary.trackedContentKeyPath === keyPath &&
7065
+ -1 === task.childIndex
7066
+ ) {
7067
+ -1 === segment.id &&
7068
+ (segment.id = segment.parentFlushed
7069
+ ? boundary.rootSegmentID
7070
+ : request.nextSegmentId++);
7071
+ boundaryNode[3] = segment.id;
7072
+ return;
7073
+ }
7074
+ }
7075
+ -1 === segment.id &&
7076
+ (segment.id =
7077
+ segment.parentFlushed && null !== boundary
7078
+ ? boundary.rootSegmentID
7079
+ : request.nextSegmentId++);
7080
+ if (-1 === task.childIndex)
7081
+ null === keyPath
7082
+ ? (trackedPostpones.rootSlots = segment.id)
7083
+ : ((task = trackedPostpones.workingMap.get(keyPath)),
7084
+ void 0 === task
7085
+ ? ((task = [keyPath[1], keyPath[2], [], segment.id]),
7086
+ addToReplayParent(task, keyPath[0], trackedPostpones))
7087
+ : (task[3] = segment.id));
7088
+ else {
7089
+ if (null === keyPath)
7090
+ if (((request = trackedPostpones.rootSlots), null === request))
7091
+ request = trackedPostpones.rootSlots = {};
7092
+ else {
7093
+ if ("number" === typeof request)
7094
+ throw Error(
7095
+ "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
7096
+ );
6331
7097
  }
6332
- resumeSlots ||
6333
- (componentName &&
6334
- (resumeSlots =
6335
- "\n\nCheck the top-level render call using <" +
6336
- componentName +
6337
- ">."));
6338
- componentName = "";
6339
- null != thrownInfo &&
6340
- parentOwner !== thrownInfo &&
6341
- ((parentOwner = null),
6342
- "undefined" !== typeof thrownInfo.type
6343
- ? (parentOwner = getComponentNameFromType(thrownInfo.type))
6344
- : "string" === typeof thrownInfo.name &&
6345
- (parentOwner = thrownInfo.name),
6346
- parentOwner &&
6347
- (componentName =
6348
- " It was passed a child from " + parentOwner + "."));
6349
- thrownInfo = node.componentStack;
6350
- node.componentStack = {
6351
- parent: node.componentStack,
6352
- type: error.type,
6353
- owner: error._owner,
6354
- stack: error._debugStack
6355
- };
6356
- console.error(
6357
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6358
- resumeSlots,
6359
- componentName
7098
+ else if (
7099
+ ((boundary = trackedPostpones.workingMap),
7100
+ (boundaryNode = boundary.get(keyPath)),
7101
+ void 0 === boundaryNode)
7102
+ )
7103
+ (request = {}),
7104
+ (boundaryNode = [keyPath[1], keyPath[2], [], request]),
7105
+ boundary.set(keyPath, boundaryNode),
7106
+ addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
7107
+ else if (((request = boundaryNode[3]), null === request))
7108
+ request = boundaryNode[3] = {};
7109
+ else if ("number" === typeof request)
7110
+ throw Error(
7111
+ "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
6360
7112
  );
6361
- node.componentStack = thrownInfo;
6362
- }
7113
+ request[task.childIndex] = segment.id;
6363
7114
  }
6364
- task.treeContext = pushTreeContext(replay, replayNodes, j);
6365
- renderNode(request, task, childIndex, j);
6366
7115
  }
6367
- task.treeContext = replay;
6368
- task.keyPath = prevKeyPath;
6369
- task.componentStack = previousComponentStack;
6370
- task.debugTask = previousDebugTask;
6371
7116
  }
6372
7117
  function untrackBoundary(request, boundary) {
6373
7118
  request = request.trackedPostpones;
@@ -6392,8 +7137,8 @@
6392
7137
  task.formatContext,
6393
7138
  task.context,
6394
7139
  task.treeContext,
7140
+ task.row,
6395
7141
  task.componentStack,
6396
- task.isFallback,
6397
7142
  emptyContextObject,
6398
7143
  task.debugTask
6399
7144
  );
@@ -6424,8 +7169,8 @@
6424
7169
  task.formatContext,
6425
7170
  task.context,
6426
7171
  task.treeContext,
7172
+ task.row,
6427
7173
  task.componentStack,
6428
- task.isFallback,
6429
7174
  emptyContextObject,
6430
7175
  task.debugTask
6431
7176
  );
@@ -6438,7 +7183,8 @@
6438
7183
  previousComponentStack = task.componentStack,
6439
7184
  previousDebugTask = task.debugTask,
6440
7185
  segment = task.blockedSegment;
6441
- if (null === segment)
7186
+ if (null === segment) {
7187
+ segment = task.replay;
6442
7188
  try {
6443
7189
  return renderNodeDestructive(request, task, node, childIndex);
6444
7190
  } catch (thrownValue) {
@@ -6448,10 +7194,13 @@
6448
7194
  thrownValue === SuspenseException
6449
7195
  ? getSuspendedThenable()
6450
7196
  : thrownValue),
6451
- "object" === typeof node && null !== node)
7197
+ 12 !== request.status && "object" === typeof node && null !== node)
6452
7198
  ) {
6453
7199
  if ("function" === typeof node.then) {
6454
- childIndex = getThenableStateAfterSuspending();
7200
+ childIndex =
7201
+ thrownValue === SuspenseException
7202
+ ? getThenableStateAfterSuspending()
7203
+ : null;
6455
7204
  request = spawnNewSuspendedReplayTask(
6456
7205
  request,
6457
7206
  task,
@@ -6463,12 +7212,16 @@
6463
7212
  task.keyPath = previousKeyPath;
6464
7213
  task.treeContext = previousTreeContext;
6465
7214
  task.componentStack = previousComponentStack;
7215
+ task.replay = segment;
6466
7216
  task.debugTask = previousDebugTask;
6467
7217
  switchContext(previousContext);
6468
7218
  return;
6469
7219
  }
6470
7220
  if ("Maximum call stack size exceeded" === node.message) {
6471
- node = getThenableStateAfterSuspending();
7221
+ node =
7222
+ thrownValue === SuspenseException
7223
+ ? getThenableStateAfterSuspending()
7224
+ : null;
6472
7225
  node = spawnNewSuspendedReplayTask(request, task, node);
6473
7226
  request.pingedTasks.push(node);
6474
7227
  task.formatContext = previousFormatContext;
@@ -6476,13 +7229,14 @@
6476
7229
  task.keyPath = previousKeyPath;
6477
7230
  task.treeContext = previousTreeContext;
6478
7231
  task.componentStack = previousComponentStack;
7232
+ task.replay = segment;
6479
7233
  task.debugTask = previousDebugTask;
6480
7234
  switchContext(previousContext);
6481
7235
  return;
6482
7236
  }
6483
7237
  }
6484
7238
  }
6485
- else {
7239
+ } else {
6486
7240
  var childrenLength = segment.children.length,
6487
7241
  chunkLength = segment.chunks.length;
6488
7242
  try {
@@ -6496,16 +7250,16 @@
6496
7250
  thrownValue$3 === SuspenseException
6497
7251
  ? getSuspendedThenable()
6498
7252
  : thrownValue$3),
6499
- "object" === typeof node && null !== node)
7253
+ 12 !== request.status && "object" === typeof node && null !== node)
6500
7254
  ) {
6501
7255
  if ("function" === typeof node.then) {
6502
- childIndex = getThenableStateAfterSuspending();
6503
- request = spawnNewSuspendedRenderTask(
6504
- request,
6505
- task,
6506
- childIndex
6507
- ).ping;
6508
- node.then(request, request);
7256
+ segment = node;
7257
+ node =
7258
+ thrownValue$3 === SuspenseException
7259
+ ? getThenableStateAfterSuspending()
7260
+ : null;
7261
+ request = spawnNewSuspendedRenderTask(request, task, node).ping;
7262
+ segment.then(request, request);
6509
7263
  task.formatContext = previousFormatContext;
6510
7264
  task.context = previousContext;
6511
7265
  task.keyPath = previousKeyPath;
@@ -6516,9 +7270,12 @@
6516
7270
  return;
6517
7271
  }
6518
7272
  if ("Maximum call stack size exceeded" === node.message) {
6519
- node = getThenableStateAfterSuspending();
6520
- node = spawnNewSuspendedRenderTask(request, task, node);
6521
- request.pingedTasks.push(node);
7273
+ segment =
7274
+ thrownValue$3 === SuspenseException
7275
+ ? getThenableStateAfterSuspending()
7276
+ : null;
7277
+ segment = spawnNewSuspendedRenderTask(request, task, segment);
7278
+ request.pingedTasks.push(segment);
6522
7279
  task.formatContext = previousFormatContext;
6523
7280
  task.context = previousContext;
6524
7281
  task.keyPath = previousKeyPath;
@@ -6539,9 +7296,11 @@
6539
7296
  throw node;
6540
7297
  }
6541
7298
  function abortTaskSoft(task) {
6542
- var boundary = task.blockedBoundary;
6543
- task = task.blockedSegment;
6544
- null !== task && ((task.status = 3), finishedTask(this, boundary, task));
7299
+ var boundary = task.blockedBoundary,
7300
+ segment = task.blockedSegment;
7301
+ null !== segment &&
7302
+ ((segment.status = ABORTED),
7303
+ finishedTask(this, boundary, task.row, segment));
6545
7304
  }
6546
7305
  function abortRemainingReplayNodes(
6547
7306
  request$jscomp$0,
@@ -6575,6 +7334,7 @@
6575
7334
  wasAborted = aborted,
6576
7335
  resumedBoundary = createSuspenseBoundary(
6577
7336
  request,
7337
+ null,
6578
7338
  new Set(),
6579
7339
  null,
6580
7340
  null
@@ -6619,48 +7379,83 @@
6619
7379
  segment = task.blockedSegment;
6620
7380
  if (null !== segment) {
6621
7381
  if (6 === segment.status) return;
6622
- segment.status = 3;
7382
+ segment.status = ABORTED;
6623
7383
  }
6624
- segment = getThrownInfo(task.componentStack);
7384
+ var errorInfo = getThrownInfo(task.componentStack),
7385
+ node = task.node;
7386
+ null !== node &&
7387
+ "object" === typeof node &&
7388
+ pushHaltedAwaitOnComponentStack(task, node._debugInfo);
6625
7389
  if (null === boundary) {
6626
7390
  if (13 !== request.status && request.status !== CLOSED) {
6627
7391
  boundary = task.replay;
6628
7392
  if (null === boundary) {
6629
- logRecoverableError(request, error, segment, null);
6630
- fatalError(request, error, segment, null);
7393
+ null !== request.trackedPostpones && null !== segment
7394
+ ? ((boundary = request.trackedPostpones),
7395
+ logRecoverableError(request, error, errorInfo, task.debugTask),
7396
+ trackPostpone(request, boundary, task, segment),
7397
+ finishedTask(request, null, task.row, segment))
7398
+ : (logRecoverableError(request, error, errorInfo, task.debugTask),
7399
+ fatalError(request, error, errorInfo, task.debugTask));
6631
7400
  return;
6632
7401
  }
6633
7402
  boundary.pendingTasks--;
6634
7403
  0 === boundary.pendingTasks &&
6635
7404
  0 < boundary.nodes.length &&
6636
- ((task = logRecoverableError(request, error, segment, null)),
7405
+ ((segment = logRecoverableError(request, error, errorInfo, null)),
6637
7406
  abortRemainingReplayNodes(
6638
7407
  request,
6639
7408
  null,
6640
7409
  boundary.nodes,
6641
7410
  boundary.slots,
6642
7411
  error,
6643
- task,
6644
7412
  segment,
7413
+ errorInfo,
6645
7414
  !0
6646
7415
  ));
6647
7416
  request.pendingRootTasks--;
6648
7417
  0 === request.pendingRootTasks && completeShell(request);
6649
7418
  }
6650
- } else
6651
- boundary.pendingTasks--,
6652
- boundary.status !== CLIENT_RENDERED &&
6653
- ((boundary.status = CLIENT_RENDERED),
6654
- (task = logRecoverableError(request, error, segment, null)),
6655
- (boundary.status = CLIENT_RENDERED),
6656
- encodeErrorForBoundary(boundary, task, error, segment, !0),
6657
- untrackBoundary(request, boundary),
6658
- boundary.parentFlushed &&
6659
- request.clientRenderedBoundaries.push(boundary)),
6660
- boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
6661
- return abortTask(fallbackTask, request, error);
6662
- }),
6663
- boundary.fallbackAbortableTasks.clear();
7419
+ } else {
7420
+ node = request.trackedPostpones;
7421
+ if (boundary.status !== CLIENT_RENDERED) {
7422
+ if (null !== node && null !== segment)
7423
+ return (
7424
+ logRecoverableError(request, error, errorInfo, task.debugTask),
7425
+ trackPostpone(request, node, task, segment),
7426
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7427
+ return abortTask(fallbackTask, request, error);
7428
+ }),
7429
+ boundary.fallbackAbortableTasks.clear(),
7430
+ finishedTask(request, boundary, task.row, segment)
7431
+ );
7432
+ boundary.status = CLIENT_RENDERED;
7433
+ segment = logRecoverableError(
7434
+ request,
7435
+ error,
7436
+ errorInfo,
7437
+ task.debugTask
7438
+ );
7439
+ boundary.status = CLIENT_RENDERED;
7440
+ encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
7441
+ untrackBoundary(request, boundary);
7442
+ boundary.parentFlushed &&
7443
+ request.clientRenderedBoundaries.push(boundary);
7444
+ }
7445
+ boundary.pendingTasks--;
7446
+ errorInfo = boundary.row;
7447
+ null !== errorInfo &&
7448
+ 0 === --errorInfo.pendingTasks &&
7449
+ finishSuspenseListRow(request, errorInfo);
7450
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7451
+ return abortTask(fallbackTask, request, error);
7452
+ });
7453
+ boundary.fallbackAbortableTasks.clear();
7454
+ }
7455
+ task = task.row;
7456
+ null !== task &&
7457
+ 0 === --task.pendingTasks &&
7458
+ finishSuspenseListRow(request, task);
6664
7459
  request.allPendingTasks--;
6665
7460
  0 === request.allPendingTasks && completeAll(request);
6666
7461
  }
@@ -6758,11 +7553,28 @@
6758
7553
  var childSegment = segment.children[0];
6759
7554
  childSegment.id = segment.id;
6760
7555
  childSegment.parentFlushed = !0;
6761
- childSegment.status === COMPLETED &&
7556
+ (childSegment.status !== COMPLETED &&
7557
+ childSegment.status !== ABORTED &&
7558
+ childSegment.status !== ERRORED) ||
6762
7559
  queueCompletedSegment(boundary, childSegment);
6763
7560
  } else boundary.completedSegments.push(segment);
6764
7561
  }
6765
- function finishedTask(request, boundary, segment) {
7562
+ function finishedSegment(request, boundary, segment) {
7563
+ if (null !== byteLengthOfChunk) {
7564
+ segment = segment.chunks;
7565
+ for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
7566
+ segmentByteSize += segment[i].byteLength;
7567
+ null === boundary
7568
+ ? (request.byteSize += segmentByteSize)
7569
+ : (boundary.byteSize += segmentByteSize);
7570
+ }
7571
+ }
7572
+ function finishedTask(request, boundary, row, segment) {
7573
+ null !== row &&
7574
+ (0 === --row.pendingTasks
7575
+ ? finishSuspenseListRow(request, row)
7576
+ : row.together && tryToResolveTogetherRow(request, row));
7577
+ request.allPendingTasks--;
6766
7578
  if (null === boundary) {
6767
7579
  if (null !== segment && segment.parentFlushed) {
6768
7580
  if (null !== request.completedRootSegment)
@@ -6773,35 +7585,72 @@
6773
7585
  }
6774
7586
  request.pendingRootTasks--;
6775
7587
  0 === request.pendingRootTasks && completeShell(request);
6776
- } else
6777
- boundary.pendingTasks--,
6778
- boundary.status !== CLIENT_RENDERED &&
6779
- (0 === boundary.pendingTasks
6780
- ? (boundary.status === PENDING && (boundary.status = COMPLETED),
6781
- null !== segment &&
6782
- segment.parentFlushed &&
6783
- segment.status === COMPLETED &&
6784
- queueCompletedSegment(boundary, segment),
6785
- boundary.parentFlushed &&
6786
- request.completedBoundaries.push(boundary),
6787
- boundary.status === COMPLETED &&
6788
- (boundary.fallbackAbortableTasks.forEach(
6789
- abortTaskSoft,
6790
- request
6791
- ),
6792
- boundary.fallbackAbortableTasks.clear(),
6793
- 0 === request.pendingRootTasks &&
6794
- null === request.trackedPostpones &&
6795
- null !== boundary.contentPreamble &&
6796
- preparePreamble(request)))
6797
- : null !== segment &&
6798
- segment.parentFlushed &&
6799
- segment.status === COMPLETED &&
6800
- (queueCompletedSegment(boundary, segment),
6801
- 1 === boundary.completedSegments.length &&
6802
- boundary.parentFlushed &&
6803
- request.partialBoundaries.push(boundary)));
6804
- request.allPendingTasks--;
7588
+ } else if ((boundary.pendingTasks--, boundary.status !== CLIENT_RENDERED))
7589
+ if (0 === boundary.pendingTasks)
7590
+ if (
7591
+ (boundary.status === PENDING && (boundary.status = COMPLETED),
7592
+ null !== segment &&
7593
+ segment.parentFlushed &&
7594
+ (segment.status === COMPLETED || segment.status === ABORTED) &&
7595
+ queueCompletedSegment(boundary, segment),
7596
+ boundary.parentFlushed &&
7597
+ request.completedBoundaries.push(boundary),
7598
+ boundary.status === COMPLETED)
7599
+ )
7600
+ (row = boundary.row),
7601
+ null !== row &&
7602
+ hoistHoistables(row.hoistables, boundary.contentState),
7603
+ isEligibleForOutlining(request, boundary) ||
7604
+ (boundary.fallbackAbortableTasks.forEach(
7605
+ abortTaskSoft,
7606
+ request
7607
+ ),
7608
+ boundary.fallbackAbortableTasks.clear(),
7609
+ null !== row &&
7610
+ 0 === --row.pendingTasks &&
7611
+ finishSuspenseListRow(request, row)),
7612
+ 0 === request.pendingRootTasks &&
7613
+ null === request.trackedPostpones &&
7614
+ null !== boundary.contentPreamble &&
7615
+ preparePreamble(request);
7616
+ else {
7617
+ if (
7618
+ boundary.status === POSTPONED &&
7619
+ ((boundary = boundary.row), null !== boundary)
7620
+ ) {
7621
+ if (null !== request.trackedPostpones) {
7622
+ row = request.trackedPostpones;
7623
+ var postponedRow = boundary.next;
7624
+ if (
7625
+ null !== postponedRow &&
7626
+ ((segment = postponedRow.boundaries), null !== segment)
7627
+ )
7628
+ for (
7629
+ postponedRow.boundaries = null, postponedRow = 0;
7630
+ postponedRow < segment.length;
7631
+ postponedRow++
7632
+ ) {
7633
+ var postponedBoundary = segment[postponedRow];
7634
+ trackPostponedBoundary(request, row, postponedBoundary);
7635
+ finishedTask(request, postponedBoundary, null, null);
7636
+ }
7637
+ }
7638
+ 0 === --boundary.pendingTasks &&
7639
+ finishSuspenseListRow(request, boundary);
7640
+ }
7641
+ }
7642
+ else
7643
+ null === segment ||
7644
+ !segment.parentFlushed ||
7645
+ (segment.status !== COMPLETED && segment.status !== ABORTED) ||
7646
+ (queueCompletedSegment(boundary, segment),
7647
+ 1 === boundary.completedSegments.length &&
7648
+ boundary.parentFlushed &&
7649
+ request.partialBoundaries.push(boundary)),
7650
+ (boundary = boundary.row),
7651
+ null !== boundary &&
7652
+ boundary.together &&
7653
+ tryToResolveTogetherRow(request, boundary);
6805
7654
  0 === request.allPendingTasks && completeAll(request);
6806
7655
  }
6807
7656
  function performWork(request$jscomp$2) {
@@ -6854,7 +7703,12 @@
6854
7703
  );
6855
7704
  request.replay.pendingTasks--;
6856
7705
  request.abortSet.delete(request);
6857
- finishedTask(request$jscomp$0, request.blockedBoundary, null);
7706
+ finishedTask(
7707
+ request$jscomp$0,
7708
+ request.blockedBoundary,
7709
+ request.row,
7710
+ null
7711
+ );
6858
7712
  } catch (thrownValue) {
6859
7713
  resetHooksState();
6860
7714
  var x =
@@ -6868,7 +7722,10 @@
6868
7722
  ) {
6869
7723
  var ping = request.ping;
6870
7724
  x.then(ping, ping);
6871
- request.thenableState = getThenableStateAfterSuspending();
7725
+ request.thenableState =
7726
+ thrownValue === SuspenseException
7727
+ ? getThenableStateAfterSuspending()
7728
+ : null;
6872
7729
  } else {
6873
7730
  request.replay.pendingTasks--;
6874
7731
  request.abortSet.delete(request);
@@ -6929,9 +7786,15 @@
6929
7786
  request$jscomp$1.chunks.push(textSeparator),
6930
7787
  errorDigest.abortSet.delete(errorDigest),
6931
7788
  (request$jscomp$1.status = COMPLETED),
7789
+ finishedSegment(
7790
+ request,
7791
+ errorDigest.blockedBoundary,
7792
+ request$jscomp$1
7793
+ ),
6932
7794
  finishedTask(
6933
7795
  request,
6934
7796
  errorDigest.blockedBoundary,
7797
+ errorDigest.row,
6935
7798
  request$jscomp$1
6936
7799
  );
6937
7800
  } catch (thrownValue) {
@@ -6945,12 +7808,40 @@
6945
7808
  ? request.fatalError
6946
7809
  : thrownValue;
6947
7810
  if (
7811
+ 12 === request.status &&
7812
+ null !== request.trackedPostpones
7813
+ ) {
7814
+ var trackedPostpones = request.trackedPostpones,
7815
+ thrownInfo = getThrownInfo(errorDigest.componentStack);
7816
+ errorDigest.abortSet.delete(errorDigest);
7817
+ logRecoverableError(
7818
+ request,
7819
+ x$jscomp$0,
7820
+ thrownInfo,
7821
+ errorDigest.debugTask
7822
+ );
7823
+ trackPostpone(
7824
+ request,
7825
+ trackedPostpones,
7826
+ errorDigest,
7827
+ request$jscomp$1
7828
+ );
7829
+ finishedTask(
7830
+ request,
7831
+ errorDigest.blockedBoundary,
7832
+ errorDigest.row,
7833
+ request$jscomp$1
7834
+ );
7835
+ } else if (
6948
7836
  "object" === typeof x$jscomp$0 &&
6949
7837
  null !== x$jscomp$0 &&
6950
7838
  "function" === typeof x$jscomp$0.then
6951
7839
  ) {
6952
7840
  request$jscomp$1.status = PENDING;
6953
- errorDigest.thenableState = getThenableStateAfterSuspending();
7841
+ errorDigest.thenableState =
7842
+ thrownValue === SuspenseException
7843
+ ? getThenableStateAfterSuspending()
7844
+ : null;
6954
7845
  var ping$jscomp$0 = errorDigest.ping;
6955
7846
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
6956
7847
  } else {
@@ -6958,42 +7849,51 @@
6958
7849
  errorDigest.componentStack
6959
7850
  );
6960
7851
  errorDigest.abortSet.delete(errorDigest);
6961
- request$jscomp$1.status = 4;
7852
+ request$jscomp$1.status = ERRORED;
6962
7853
  var boundary$jscomp$0 = errorDigest.blockedBoundary,
7854
+ row = errorDigest.row,
6963
7855
  debugTask = errorDigest.debugTask;
7856
+ null !== row &&
7857
+ 0 === --row.pendingTasks &&
7858
+ finishSuspenseListRow(request, row);
7859
+ request.allPendingTasks--;
6964
7860
  prevTaskInDEV = logRecoverableError(
6965
7861
  request,
6966
7862
  x$jscomp$0,
6967
7863
  errorInfo$jscomp$1,
6968
7864
  debugTask
6969
7865
  );
6970
- null === boundary$jscomp$0
6971
- ? fatalError(
6972
- request,
6973
- x$jscomp$0,
6974
- errorInfo$jscomp$1,
6975
- debugTask
6976
- )
6977
- : (boundary$jscomp$0.pendingTasks--,
6978
- boundary$jscomp$0.status !== CLIENT_RENDERED &&
6979
- ((boundary$jscomp$0.status = CLIENT_RENDERED),
6980
- encodeErrorForBoundary(
6981
- boundary$jscomp$0,
6982
- prevTaskInDEV,
6983
- x$jscomp$0,
6984
- errorInfo$jscomp$1,
6985
- !1
6986
- ),
6987
- untrackBoundary(request, boundary$jscomp$0),
6988
- boundary$jscomp$0.parentFlushed &&
6989
- request.clientRenderedBoundaries.push(
6990
- boundary$jscomp$0
6991
- ),
6992
- 0 === request.pendingRootTasks &&
6993
- null === request.trackedPostpones &&
6994
- null !== boundary$jscomp$0.contentPreamble &&
6995
- preparePreamble(request)));
6996
- request.allPendingTasks--;
7866
+ if (null === boundary$jscomp$0)
7867
+ fatalError(
7868
+ request,
7869
+ x$jscomp$0,
7870
+ errorInfo$jscomp$1,
7871
+ debugTask
7872
+ );
7873
+ else if (
7874
+ (boundary$jscomp$0.pendingTasks--,
7875
+ boundary$jscomp$0.status !== CLIENT_RENDERED)
7876
+ ) {
7877
+ boundary$jscomp$0.status = CLIENT_RENDERED;
7878
+ encodeErrorForBoundary(
7879
+ boundary$jscomp$0,
7880
+ prevTaskInDEV,
7881
+ x$jscomp$0,
7882
+ errorInfo$jscomp$1,
7883
+ !1
7884
+ );
7885
+ untrackBoundary(request, boundary$jscomp$0);
7886
+ var boundaryRow = boundary$jscomp$0.row;
7887
+ null !== boundaryRow &&
7888
+ 0 === --boundaryRow.pendingTasks &&
7889
+ finishSuspenseListRow(request, boundaryRow);
7890
+ boundary$jscomp$0.parentFlushed &&
7891
+ request.clientRenderedBoundaries.push(boundary$jscomp$0);
7892
+ 0 === request.pendingRootTasks &&
7893
+ null === request.trackedPostpones &&
7894
+ null !== boundary$jscomp$0.contentPreamble &&
7895
+ preparePreamble(request);
7896
+ }
6997
7897
  0 === request.allPendingTasks && completeAll(request);
6998
7898
  }
6999
7899
  } finally {
@@ -7055,6 +7955,7 @@
7055
7955
  switch (boundary.status) {
7056
7956
  case COMPLETED:
7057
7957
  hoistPreambleState(request.renderState, preamble);
7958
+ request.byteSize += boundary.byteSize;
7058
7959
  segment = boundary.completedSegments[0];
7059
7960
  if (!segment)
7060
7961
  throw Error(
@@ -7087,17 +7988,17 @@
7087
7988
  null === request.completedPreambleSegments
7088
7989
  ) {
7089
7990
  var collectedPreambleSegments = [],
7991
+ originalRequestByteSize = request.byteSize,
7090
7992
  hasPendingPreambles = preparePreambleFromSegment(
7091
7993
  request,
7092
7994
  request.completedRootSegment,
7093
7995
  collectedPreambleSegments
7094
7996
  ),
7095
7997
  preamble = request.renderState.preamble;
7096
- if (
7097
- !1 === hasPendingPreambles ||
7098
- (preamble.headChunks && preamble.bodyChunks)
7099
- )
7100
- request.completedPreambleSegments = collectedPreambleSegments;
7998
+ !1 === hasPendingPreambles ||
7999
+ (preamble.headChunks && preamble.bodyChunks)
8000
+ ? (request.completedPreambleSegments = collectedPreambleSegments)
8001
+ : (request.byteSize = originalRequestByteSize);
7101
8002
  }
7102
8003
  }
7103
8004
  function flushSubtree(request, destination, segment, hoistableState) {
@@ -7133,6 +8034,8 @@
7133
8034
  chunkIdx < chunks.length &&
7134
8035
  (r = writeChunkAndReturn(destination, chunks[chunkIdx]));
7135
8036
  return r;
8037
+ case ABORTED:
8038
+ return !0;
7136
8039
  default:
7137
8040
  throw Error(
7138
8041
  "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
@@ -7145,18 +8048,19 @@
7145
8048
  return flushSubtree(request, destination, segment, hoistableState);
7146
8049
  boundary.parentFlushed = !0;
7147
8050
  if (boundary.status === CLIENT_RENDERED) {
7148
- var errorDigest = boundary.errorDigest,
7149
- errorMessage = boundary.errorMessage,
7150
- errorStack = boundary.errorStack,
7151
- errorComponentStack = boundary.errorComponentStack;
8051
+ var row = boundary.row;
8052
+ null !== row &&
8053
+ 0 === --row.pendingTasks &&
8054
+ finishSuspenseListRow(request, row);
8055
+ row = boundary.errorDigest;
8056
+ var errorMessage = boundary.errorMessage,
8057
+ errorStack = boundary.errorStack;
8058
+ boundary = boundary.errorComponentStack;
7152
8059
  writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
7153
8060
  writeChunk(destination, clientRenderedSuspenseBoundaryError1);
7154
- errorDigest &&
8061
+ row &&
7155
8062
  (writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
7156
- writeChunk(
7157
- destination,
7158
- stringToChunk(escapeTextForBrowser(errorDigest))
7159
- ),
8063
+ writeChunk(destination, stringToChunk(escapeTextForBrowser(row))),
7160
8064
  writeChunk(
7161
8065
  destination,
7162
8066
  clientRenderedSuspenseBoundaryErrorAttrInterstitial
@@ -7181,11 +8085,11 @@
7181
8085
  destination,
7182
8086
  clientRenderedSuspenseBoundaryErrorAttrInterstitial
7183
8087
  ));
7184
- errorComponentStack &&
8088
+ boundary &&
7185
8089
  (writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
7186
8090
  writeChunk(
7187
8091
  destination,
7188
- stringToChunk(escapeTextForBrowser(errorComponentStack))
8092
+ stringToChunk(escapeTextForBrowser(boundary))
7189
8093
  ),
7190
8094
  writeChunk(
7191
8095
  destination,
@@ -7193,14 +8097,9 @@
7193
8097
  ));
7194
8098
  writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
7195
8099
  flushSubtree(request, destination, segment, hoistableState);
7196
- (request = boundary.fallbackPreamble) &&
7197
- writePreambleContribution(destination, request);
7198
- return writeChunkAndReturn(destination, endSuspenseBoundary);
7199
- }
7200
- if (boundary.status !== COMPLETED)
7201
- return (
7202
- boundary.status === PENDING &&
7203
- (boundary.rootSegmentID = request.nextSegmentId++),
8100
+ } else if (boundary.status !== COMPLETED)
8101
+ boundary.status === PENDING &&
8102
+ (boundary.rootSegmentID = request.nextSegmentId++),
7204
8103
  0 < boundary.completedSegments.length &&
7205
8104
  request.partialBoundaries.push(boundary),
7206
8105
  writeStartPendingSuspenseBoundary(
@@ -7209,40 +8108,39 @@
7209
8108
  boundary.rootSegmentID
7210
8109
  ),
7211
8110
  hoistableState &&
7212
- ((boundary = boundary.fallbackState),
7213
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7214
- boundary.stylesheets.forEach(
7215
- hoistStylesheetDependency,
7216
- hoistableState
7217
- )),
7218
- flushSubtree(request, destination, segment, hoistableState),
7219
- writeChunkAndReturn(destination, endSuspenseBoundary)
7220
- );
7221
- if (boundary.byteSize > request.progressiveChunkSize)
7222
- return (
7223
- (boundary.rootSegmentID = request.nextSegmentId++),
8111
+ hoistHoistables(hoistableState, boundary.fallbackState),
8112
+ flushSubtree(request, destination, segment, hoistableState);
8113
+ else if (
8114
+ !flushingPartialBoundaries &&
8115
+ isEligibleForOutlining(request, boundary) &&
8116
+ (flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
8117
+ hasSuspenseyContent(boundary.contentState))
8118
+ )
8119
+ (boundary.rootSegmentID = request.nextSegmentId++),
7224
8120
  request.completedBoundaries.push(boundary),
7225
8121
  writeStartPendingSuspenseBoundary(
7226
8122
  destination,
7227
8123
  request.renderState,
7228
8124
  boundary.rootSegmentID
7229
8125
  ),
7230
- flushSubtree(request, destination, segment, hoistableState),
7231
- writeChunkAndReturn(destination, endSuspenseBoundary)
7232
- );
7233
- hoistableState &&
7234
- ((segment = boundary.contentState),
7235
- segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
7236
- segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
7237
- writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
7238
- segment = boundary.completedSegments;
7239
- if (1 !== segment.length)
7240
- throw Error(
7241
- "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
7242
- );
7243
- flushSegment(request, destination, segment[0], hoistableState);
7244
- (request = boundary.contentPreamble) &&
7245
- writePreambleContribution(destination, request);
8126
+ flushSubtree(request, destination, segment, hoistableState);
8127
+ else {
8128
+ flushedByteSize += boundary.byteSize;
8129
+ hoistableState &&
8130
+ hoistHoistables(hoistableState, boundary.contentState);
8131
+ segment = boundary.row;
8132
+ null !== segment &&
8133
+ isEligibleForOutlining(request, boundary) &&
8134
+ 0 === --segment.pendingTasks &&
8135
+ finishSuspenseListRow(request, segment);
8136
+ writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
8137
+ segment = boundary.completedSegments;
8138
+ if (1 !== segment.length)
8139
+ throw Error(
8140
+ "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
8141
+ );
8142
+ flushSegment(request, destination, segment[0], hoistableState);
8143
+ }
7246
8144
  return writeChunkAndReturn(destination, endSuspenseBoundary);
7247
8145
  }
7248
8146
  function flushSegmentContainer(
@@ -7261,6 +8159,7 @@
7261
8159
  return writeEndSegment(destination, segment.parentFormatContext);
7262
8160
  }
7263
8161
  function flushCompletedBoundary(request, destination, boundary) {
8162
+ flushedByteSize = boundary.byteSize;
7264
8163
  for (
7265
8164
  var completedSegments = boundary.completedSegments, i = 0;
7266
8165
  i < completedSegments.length;
@@ -7273,6 +8172,11 @@
7273
8172
  completedSegments[i]
7274
8173
  );
7275
8174
  completedSegments.length = 0;
8175
+ completedSegments = boundary.row;
8176
+ null !== completedSegments &&
8177
+ isEligibleForOutlining(request, boundary) &&
8178
+ 0 === --completedSegments.pendingTasks &&
8179
+ finishSuspenseListRow(request, completedSegments);
7276
8180
  writeHoistablesForBoundary(
7277
8181
  destination,
7278
8182
  boundary.contentState,
@@ -7285,27 +8189,29 @@
7285
8189
  var requiresStyleInsertion = request.stylesToHoist;
7286
8190
  request.stylesToHoist = !1;
7287
8191
  writeChunk(destination, request.startInlineScript);
8192
+ writeChunk(destination, endOfStartTag);
7288
8193
  requiresStyleInsertion
7289
- ? (completedSegments.instructions & SentCompleteBoundaryFunction) ===
8194
+ ? ((completedSegments.instructions & SentClientRenderFunction) ===
8195
+ NothingSent &&
8196
+ ((completedSegments.instructions |= SentClientRenderFunction),
8197
+ writeChunk(destination, clientRenderScriptFunctionOnly)),
8198
+ (completedSegments.instructions & SentCompleteBoundaryFunction) ===
8199
+ NothingSent &&
8200
+ ((completedSegments.instructions |= SentCompleteBoundaryFunction),
8201
+ writeChunk(destination, completeBoundaryScriptFunctionOnly)),
8202
+ (completedSegments.instructions & SentStyleInsertionFunction) ===
7290
8203
  NothingSent
7291
- ? ((completedSegments.instructions =
7292
- completedSegments.instructions |
7293
- SentStyleInsertionFunction |
7294
- SentCompleteBoundaryFunction),
7295
- writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
7296
- : (completedSegments.instructions & SentStyleInsertionFunction) ===
7297
- NothingSent
7298
8204
  ? ((completedSegments.instructions |= SentStyleInsertionFunction),
7299
8205
  writeChunk(
7300
8206
  destination,
7301
8207
  completeBoundaryWithStylesScript1FullPartial
7302
8208
  ))
7303
- : writeChunk(destination, completeBoundaryWithStylesScript1Partial)
7304
- : (completedSegments.instructions & SentCompleteBoundaryFunction) ===
7305
- NothingSent
7306
- ? ((completedSegments.instructions |= SentCompleteBoundaryFunction),
7307
- writeChunk(destination, completeBoundaryScript1Full))
7308
- : writeChunk(destination, completeBoundaryScript1Partial);
8209
+ : writeChunk(destination, completeBoundaryWithStylesScript1Partial))
8210
+ : ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
8211
+ NothingSent &&
8212
+ ((completedSegments.instructions |= SentCompleteBoundaryFunction),
8213
+ writeChunk(destination, completeBoundaryScriptFunctionOnly)),
8214
+ writeChunk(destination, completeBoundaryScript1Partial));
7309
8215
  completedSegments = stringToChunk(i.toString(16));
7310
8216
  writeChunk(destination, request.boundaryPrefix);
7311
8217
  writeChunk(destination, completedSegments);
@@ -7351,6 +8257,7 @@
7351
8257
  boundary = request.resumableState;
7352
8258
  request = request.renderState;
7353
8259
  writeChunk(destination, request.startInlineScript);
8260
+ writeChunk(destination, endOfStartTag);
7354
8261
  (boundary.instructions & SentCompleteSegmentFunction) === NothingSent
7355
8262
  ? ((boundary.instructions |= SentCompleteSegmentFunction),
7356
8263
  writeChunk(destination, completeSegmentScript1Full))
@@ -7375,7 +8282,9 @@
7375
8282
  if (completedRootSegment.status === POSTPONED) return;
7376
8283
  var completedPreambleSegments = request.completedPreambleSegments;
7377
8284
  if (null === completedPreambleSegments) return;
7378
- var renderState = request.renderState,
8285
+ flushedByteSize = request.byteSize;
8286
+ var resumableState = request.resumableState,
8287
+ renderState = request.renderState,
7379
8288
  preamble = renderState.preamble,
7380
8289
  htmlChunks = preamble.htmlChunks,
7381
8290
  headChunks = preamble.headChunks,
@@ -7418,7 +8327,9 @@
7418
8327
  renderState.fontPreloads.clear();
7419
8328
  renderState.highImagePreloads.forEach(flushResource, destination);
7420
8329
  renderState.highImagePreloads.clear();
8330
+ currentlyFlushingRenderState = renderState;
7421
8331
  renderState.styles.forEach(flushStylesInPreamble, destination);
8332
+ currentlyFlushingRenderState = null;
7422
8333
  var importMapChunks = renderState.importMapChunks;
7423
8334
  for (
7424
8335
  i$jscomp$0 = 0;
@@ -7432,6 +8343,9 @@
7432
8343
  renderState.scripts.clear();
7433
8344
  renderState.bulkPreloads.forEach(flushResource, destination);
7434
8345
  renderState.bulkPreloads.clear();
8346
+ htmlChunks ||
8347
+ headChunks ||
8348
+ (resumableState.instructions |= SentCompletedShellId);
7435
8349
  var hoistableChunks = renderState.hoistableChunks;
7436
8350
  for (
7437
8351
  i$jscomp$0 = 0;
@@ -7440,13 +8354,17 @@
7440
8354
  )
7441
8355
  writeChunk(destination, hoistableChunks[i$jscomp$0]);
7442
8356
  for (
7443
- renderState = hoistableChunks.length = 0;
7444
- renderState < completedPreambleSegments.length;
7445
- renderState++
8357
+ resumableState = hoistableChunks.length = 0;
8358
+ resumableState < completedPreambleSegments.length;
8359
+ resumableState++
7446
8360
  ) {
7447
- var segments = completedPreambleSegments[renderState];
7448
- for (preamble = 0; preamble < segments.length; preamble++)
7449
- flushSegment(request, destination, segments[preamble], null);
8361
+ var segments = completedPreambleSegments[resumableState];
8362
+ for (
8363
+ renderState = 0;
8364
+ renderState < segments.length;
8365
+ renderState++
8366
+ )
8367
+ flushSegment(request, destination, segments[renderState], null);
7450
8368
  }
7451
8369
  var preamble$jscomp$0 = request.renderState.preamble,
7452
8370
  headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
@@ -7462,11 +8380,46 @@
7462
8380
  writeChunk(destination, bodyChunks[completedPreambleSegments]);
7463
8381
  flushSegment(request, destination, completedRootSegment, null);
7464
8382
  request.completedRootSegment = null;
7465
- writeBootstrap(destination, request.renderState);
8383
+ var renderState$jscomp$0 = request.renderState;
8384
+ if (
8385
+ 0 !== request.allPendingTasks ||
8386
+ 0 !== request.clientRenderedBoundaries.length ||
8387
+ 0 !== request.completedBoundaries.length ||
8388
+ (null !== request.trackedPostpones &&
8389
+ (0 !== request.trackedPostpones.rootNodes.length ||
8390
+ null !== request.trackedPostpones.rootSlots))
8391
+ ) {
8392
+ var resumableState$jscomp$0 = request.resumableState;
8393
+ if (
8394
+ (resumableState$jscomp$0.instructions & SentMarkShellTime) ===
8395
+ NothingSent
8396
+ ) {
8397
+ resumableState$jscomp$0.instructions |= SentMarkShellTime;
8398
+ writeChunk(destination, renderState$jscomp$0.startInlineScript);
8399
+ if (
8400
+ (resumableState$jscomp$0.instructions &
8401
+ SentCompletedShellId) ===
8402
+ NothingSent
8403
+ ) {
8404
+ resumableState$jscomp$0.instructions |= SentCompletedShellId;
8405
+ var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
8406
+ writeChunk(destination, completedShellIdAttributeStart);
8407
+ writeChunk(
8408
+ destination,
8409
+ stringToChunk(escapeTextForBrowser(shellId))
8410
+ );
8411
+ writeChunk(destination, attributeEnd);
8412
+ }
8413
+ writeChunk(destination, endOfStartTag);
8414
+ writeChunk(destination, shellTimeRuntimeScript);
8415
+ writeChunkAndReturn(destination, endInlineScript);
8416
+ }
8417
+ }
8418
+ writeBootstrap(destination, renderState$jscomp$0);
7466
8419
  }
7467
- var renderState$jscomp$0 = request.renderState;
8420
+ var renderState$jscomp$1 = request.renderState;
7468
8421
  completedRootSegment = 0;
7469
- var viewportChunks$jscomp$0 = renderState$jscomp$0.viewportChunks;
8422
+ var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
7470
8423
  for (
7471
8424
  completedRootSegment = 0;
7472
8425
  completedRootSegment < viewportChunks$jscomp$0.length;
@@ -7477,21 +8430,21 @@
7477
8430
  viewportChunks$jscomp$0[completedRootSegment]
7478
8431
  );
7479
8432
  viewportChunks$jscomp$0.length = 0;
7480
- renderState$jscomp$0.preconnects.forEach(flushResource, destination);
7481
- renderState$jscomp$0.preconnects.clear();
7482
- renderState$jscomp$0.fontPreloads.forEach(flushResource, destination);
7483
- renderState$jscomp$0.fontPreloads.clear();
7484
- renderState$jscomp$0.highImagePreloads.forEach(
8433
+ renderState$jscomp$1.preconnects.forEach(flushResource, destination);
8434
+ renderState$jscomp$1.preconnects.clear();
8435
+ renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
8436
+ renderState$jscomp$1.fontPreloads.clear();
8437
+ renderState$jscomp$1.highImagePreloads.forEach(
7485
8438
  flushResource,
7486
8439
  destination
7487
8440
  );
7488
- renderState$jscomp$0.highImagePreloads.clear();
7489
- renderState$jscomp$0.styles.forEach(preloadLateStyles, destination);
7490
- renderState$jscomp$0.scripts.forEach(flushResource, destination);
7491
- renderState$jscomp$0.scripts.clear();
7492
- renderState$jscomp$0.bulkPreloads.forEach(flushResource, destination);
7493
- renderState$jscomp$0.bulkPreloads.clear();
7494
- var hoistableChunks$jscomp$0 = renderState$jscomp$0.hoistableChunks;
8441
+ renderState$jscomp$1.highImagePreloads.clear();
8442
+ renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
8443
+ renderState$jscomp$1.scripts.forEach(flushResource, destination);
8444
+ renderState$jscomp$1.scripts.clear();
8445
+ renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
8446
+ renderState$jscomp$1.bulkPreloads.clear();
8447
+ var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
7495
8448
  for (
7496
8449
  completedRootSegment = 0;
7497
8450
  completedRootSegment < hoistableChunks$jscomp$0.length;
@@ -7505,29 +8458,32 @@
7505
8458
  var clientRenderedBoundaries = request.clientRenderedBoundaries;
7506
8459
  for (i = 0; i < clientRenderedBoundaries.length; i++) {
7507
8460
  var boundary = clientRenderedBoundaries[i];
7508
- renderState$jscomp$0 = destination;
7509
- var resumableState = request.resumableState,
7510
- renderState$jscomp$1 = request.renderState,
8461
+ renderState$jscomp$1 = destination;
8462
+ var resumableState$jscomp$1 = request.resumableState,
8463
+ renderState$jscomp$2 = request.renderState,
7511
8464
  id = boundary.rootSegmentID,
7512
8465
  errorDigest = boundary.errorDigest,
7513
8466
  errorMessage = boundary.errorMessage,
7514
8467
  errorStack = boundary.errorStack,
7515
8468
  errorComponentStack = boundary.errorComponentStack;
7516
8469
  writeChunk(
7517
- renderState$jscomp$0,
7518
- renderState$jscomp$1.startInlineScript
8470
+ renderState$jscomp$1,
8471
+ renderState$jscomp$2.startInlineScript
7519
8472
  );
7520
- (resumableState.instructions & SentClientRenderFunction) ===
8473
+ writeChunk(renderState$jscomp$1, endOfStartTag);
8474
+ (resumableState$jscomp$1.instructions &
8475
+ SentClientRenderFunction) ===
7521
8476
  NothingSent
7522
- ? ((resumableState.instructions |= SentClientRenderFunction),
7523
- writeChunk(renderState$jscomp$0, clientRenderScript1Full))
7524
- : writeChunk(renderState$jscomp$0, clientRenderScript1Partial);
8477
+ ? ((resumableState$jscomp$1.instructions |=
8478
+ SentClientRenderFunction),
8479
+ writeChunk(renderState$jscomp$1, clientRenderScript1Full))
8480
+ : writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
7525
8481
  writeChunk(
7526
- renderState$jscomp$0,
7527
- renderState$jscomp$1.boundaryPrefix
8482
+ renderState$jscomp$1,
8483
+ renderState$jscomp$2.boundaryPrefix
7528
8484
  );
7529
- writeChunk(renderState$jscomp$0, stringToChunk(id.toString(16)));
7530
- writeChunk(renderState$jscomp$0, clientRenderScript1A);
8485
+ writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
8486
+ writeChunk(renderState$jscomp$1, clientRenderScript1A);
7531
8487
  if (
7532
8488
  errorDigest ||
7533
8489
  errorMessage ||
@@ -7535,50 +8491,50 @@
7535
8491
  errorComponentStack
7536
8492
  )
7537
8493
  writeChunk(
7538
- renderState$jscomp$0,
8494
+ renderState$jscomp$1,
7539
8495
  clientRenderErrorScriptArgInterstitial
7540
8496
  ),
7541
8497
  writeChunk(
7542
- renderState$jscomp$0,
8498
+ renderState$jscomp$1,
7543
8499
  stringToChunk(
7544
8500
  escapeJSStringsForInstructionScripts(errorDigest || "")
7545
8501
  )
7546
8502
  );
7547
8503
  if (errorMessage || errorStack || errorComponentStack)
7548
8504
  writeChunk(
7549
- renderState$jscomp$0,
8505
+ renderState$jscomp$1,
7550
8506
  clientRenderErrorScriptArgInterstitial
7551
8507
  ),
7552
8508
  writeChunk(
7553
- renderState$jscomp$0,
8509
+ renderState$jscomp$1,
7554
8510
  stringToChunk(
7555
8511
  escapeJSStringsForInstructionScripts(errorMessage || "")
7556
8512
  )
7557
8513
  );
7558
8514
  if (errorStack || errorComponentStack)
7559
8515
  writeChunk(
7560
- renderState$jscomp$0,
8516
+ renderState$jscomp$1,
7561
8517
  clientRenderErrorScriptArgInterstitial
7562
8518
  ),
7563
8519
  writeChunk(
7564
- renderState$jscomp$0,
8520
+ renderState$jscomp$1,
7565
8521
  stringToChunk(
7566
8522
  escapeJSStringsForInstructionScripts(errorStack || "")
7567
8523
  )
7568
8524
  );
7569
8525
  errorComponentStack &&
7570
8526
  (writeChunk(
7571
- renderState$jscomp$0,
8527
+ renderState$jscomp$1,
7572
8528
  clientRenderErrorScriptArgInterstitial
7573
8529
  ),
7574
8530
  writeChunk(
7575
- renderState$jscomp$0,
8531
+ renderState$jscomp$1,
7576
8532
  stringToChunk(
7577
8533
  escapeJSStringsForInstructionScripts(errorComponentStack)
7578
8534
  )
7579
8535
  ));
7580
8536
  var JSCompiler_inline_result = writeChunkAndReturn(
7581
- renderState$jscomp$0,
8537
+ renderState$jscomp$1,
7582
8538
  clientRenderScriptEnd
7583
8539
  );
7584
8540
  if (!JSCompiler_inline_result) {
@@ -7607,13 +8563,15 @@
7607
8563
  completeWriting(destination);
7608
8564
  currentView = new Uint8Array(2048);
7609
8565
  writtenBytes = 0;
8566
+ flushingPartialBoundaries = !0;
7610
8567
  var partialBoundaries = request.partialBoundaries;
7611
8568
  for (i = 0; i < partialBoundaries.length; i++) {
7612
8569
  a: {
7613
8570
  clientRenderedBoundaries = request;
7614
8571
  boundary = destination;
7615
- var boundary$jscomp$0 = partialBoundaries[i],
7616
- completedSegments = boundary$jscomp$0.completedSegments;
8572
+ var boundary$jscomp$0 = partialBoundaries[i];
8573
+ flushedByteSize = boundary$jscomp$0.byteSize;
8574
+ var completedSegments = boundary$jscomp$0.completedSegments;
7617
8575
  for (
7618
8576
  JSCompiler_inline_result = 0;
7619
8577
  JSCompiler_inline_result < completedSegments.length;
@@ -7633,6 +8591,17 @@
7633
8591
  break a;
7634
8592
  }
7635
8593
  completedSegments.splice(0, JSCompiler_inline_result);
8594
+ var row = boundary$jscomp$0.row;
8595
+ null !== row &&
8596
+ row.together &&
8597
+ 1 === boundary$jscomp$0.pendingTasks &&
8598
+ (1 === row.pendingTasks
8599
+ ? unblockSuspenseListRow(
8600
+ clientRenderedBoundaries,
8601
+ row,
8602
+ row.hoistables
8603
+ )
8604
+ : row.pendingTasks--);
7636
8605
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
7637
8606
  boundary,
7638
8607
  boundary$jscomp$0.contentState,
@@ -7647,6 +8616,7 @@
7647
8616
  }
7648
8617
  }
7649
8618
  partialBoundaries.splice(0, i);
8619
+ flushingPartialBoundaries = !1;
7650
8620
  var largeBoundaries = request.completedBoundaries;
7651
8621
  for (i = 0; i < largeBoundaries.length; i++)
7652
8622
  if (
@@ -7660,23 +8630,23 @@
7660
8630
  largeBoundaries.splice(0, i);
7661
8631
  }
7662
8632
  } finally {
7663
- 0 === request.allPendingTasks &&
7664
- 0 === request.pingedTasks.length &&
7665
- 0 === request.clientRenderedBoundaries.length &&
7666
- 0 === request.completedBoundaries.length
7667
- ? ((request.flushScheduled = !1),
7668
- (i = request.resumableState),
7669
- i.hasBody && writeChunk(destination, endChunkForTag("body")),
7670
- i.hasHtml && writeChunk(destination, endChunkForTag("html")),
7671
- completeWriting(destination),
7672
- 0 !== request.abortableTasks.size &&
7673
- console.error(
7674
- "There was still abortable task at the root when we closed. This is a bug in React."
7675
- ),
7676
- (request.status = CLOSED),
7677
- destination.close(),
7678
- (request.destination = null))
7679
- : completeWriting(destination);
8633
+ (flushingPartialBoundaries = !1),
8634
+ 0 === request.allPendingTasks &&
8635
+ 0 === request.clientRenderedBoundaries.length &&
8636
+ 0 === request.completedBoundaries.length
8637
+ ? ((request.flushScheduled = !1),
8638
+ (i = request.resumableState),
8639
+ i.hasBody && writeChunk(destination, endChunkForTag("body")),
8640
+ i.hasHtml && writeChunk(destination, endChunkForTag("html")),
8641
+ completeWriting(destination),
8642
+ 0 !== request.abortableTasks.size &&
8643
+ console.error(
8644
+ "There was still abortable task at the root when we closed. This is a bug in React."
8645
+ ),
8646
+ (request.status = CLOSED),
8647
+ destination.close(),
8648
+ (request.destination = null))
8649
+ : completeWriting(destination);
7680
8650
  }
7681
8651
  }
7682
8652
  function startWork(request) {
@@ -7732,7 +8702,17 @@
7732
8702
  : reason;
7733
8703
  request.fatalError = error;
7734
8704
  abortableTasks.forEach(function (task) {
7735
- return abortTask(task, request, error);
8705
+ var prevTaskInDEV = currentTaskInDEV,
8706
+ prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
8707
+ currentTaskInDEV = task;
8708
+ ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
8709
+ try {
8710
+ abortTask(task, request, error);
8711
+ } finally {
8712
+ (currentTaskInDEV = prevTaskInDEV),
8713
+ (ReactSharedInternals.getCurrentStack =
8714
+ prevGetCurrentStackImpl);
8715
+ }
7736
8716
  });
7737
8717
  abortableTasks.clear();
7738
8718
  }
@@ -7744,13 +8724,71 @@
7744
8724
  fatalError(request, error$4, reason, null);
7745
8725
  }
7746
8726
  }
8727
+ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
8728
+ if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
8729
+ else {
8730
+ var workingMap = trackedPostpones.workingMap,
8731
+ parentNode = workingMap.get(parentKeyPath);
8732
+ void 0 === parentNode &&
8733
+ ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
8734
+ workingMap.set(parentKeyPath, parentNode),
8735
+ addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
8736
+ parentNode[2].push(node);
8737
+ }
8738
+ }
8739
+ function getPostponedState(request) {
8740
+ var trackedPostpones = request.trackedPostpones;
8741
+ if (
8742
+ null === trackedPostpones ||
8743
+ (0 === trackedPostpones.rootNodes.length &&
8744
+ null === trackedPostpones.rootSlots)
8745
+ )
8746
+ return (request.trackedPostpones = null);
8747
+ if (
8748
+ null === request.completedRootSegment ||
8749
+ (request.completedRootSegment.status !== POSTPONED &&
8750
+ null !== request.completedPreambleSegments)
8751
+ ) {
8752
+ var nextSegmentId = request.nextSegmentId;
8753
+ var replaySlots = trackedPostpones.rootSlots;
8754
+ var resumableState = request.resumableState;
8755
+ resumableState.bootstrapScriptContent = void 0;
8756
+ resumableState.bootstrapScripts = void 0;
8757
+ resumableState.bootstrapModules = void 0;
8758
+ } else {
8759
+ nextSegmentId = 0;
8760
+ replaySlots = -1;
8761
+ resumableState = request.resumableState;
8762
+ var renderState = request.renderState;
8763
+ resumableState.nextFormID = 0;
8764
+ resumableState.hasBody = !1;
8765
+ resumableState.hasHtml = !1;
8766
+ resumableState.unknownResources = { font: renderState.resets.font };
8767
+ resumableState.dnsResources = renderState.resets.dns;
8768
+ resumableState.connectResources = renderState.resets.connect;
8769
+ resumableState.imageResources = renderState.resets.image;
8770
+ resumableState.styleResources = renderState.resets.style;
8771
+ resumableState.scriptResources = {};
8772
+ resumableState.moduleUnknownResources = {};
8773
+ resumableState.moduleScriptResources = {};
8774
+ resumableState.instructions = NothingSent;
8775
+ }
8776
+ return {
8777
+ nextSegmentId: nextSegmentId,
8778
+ rootFormatContext: request.rootFormatContext,
8779
+ progressiveChunkSize: request.progressiveChunkSize,
8780
+ resumableState: request.resumableState,
8781
+ replayNodes: trackedPostpones.rootNodes,
8782
+ replaySlots: replaySlots
8783
+ };
8784
+ }
7747
8785
  function ensureCorrectIsomorphicReactVersion() {
7748
8786
  var isomorphicReactPackageVersion = React.version;
7749
- if ("19.1.0" !== isomorphicReactPackageVersion)
8787
+ if ("19.2.4" !== isomorphicReactPackageVersion)
7750
8788
  throw Error(
7751
8789
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7752
8790
  (isomorphicReactPackageVersion +
7753
- "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
8791
+ "\n - react-dom: 19.2.4\nLearn more: https://react.dev/warnings/version-mismatch")
7754
8792
  );
7755
8793
  }
7756
8794
  var React = require("react"),
@@ -7760,7 +8798,6 @@
7760
8798
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
7761
8799
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
7762
8800
  REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
7763
- REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
7764
8801
  REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
7765
8802
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
7766
8803
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
@@ -7946,7 +8983,11 @@
7946
8983
  "aria-rowcount": 0,
7947
8984
  "aria-rowindex": 0,
7948
8985
  "aria-rowspan": 0,
7949
- "aria-setsize": 0
8986
+ "aria-setsize": 0,
8987
+ "aria-braillelabel": 0,
8988
+ "aria-brailleroledescription": 0,
8989
+ "aria-colindextext": 0,
8990
+ "aria-rowindextext": 0
7950
8991
  },
7951
8992
  warnedProperties$1 = {},
7952
8993
  rARIA$1 = RegExp(
@@ -8839,26 +9880,29 @@
8839
9880
  SentCompleteBoundaryFunction = 2,
8840
9881
  SentClientRenderFunction = 4,
8841
9882
  SentStyleInsertionFunction = 8,
9883
+ SentCompletedShellId = 32,
9884
+ SentMarkShellTime = 64,
8842
9885
  EXISTS = null,
8843
9886
  PRELOAD_NO_CREDS = [];
8844
9887
  Object.freeze(PRELOAD_NO_CREDS);
9888
+ var currentlyFlushingRenderState = null;
8845
9889
  stringToPrecomputedChunk('"></template>');
8846
- var startInlineScript = stringToPrecomputedChunk("<script>"),
9890
+ var startInlineScript = stringToPrecomputedChunk("<script"),
8847
9891
  endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
8848
9892
  startScriptSrc = stringToPrecomputedChunk('<script src="'),
8849
9893
  startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
8850
- scriptNonce = stringToPrecomputedChunk('" nonce="'),
8851
- scriptIntegirty = stringToPrecomputedChunk('" integrity="'),
8852
- scriptCrossOrigin = stringToPrecomputedChunk('" crossorigin="'),
8853
- endAsyncScript = stringToPrecomputedChunk('" async="">\x3c/script>'),
9894
+ scriptNonce = stringToPrecomputedChunk(' nonce="'),
9895
+ scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
9896
+ scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
9897
+ endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
9898
+ startInlineStyle = stringToPrecomputedChunk("<style"),
8854
9899
  scriptRegex = /(<\/|<)(s)(cript)/gi,
8855
9900
  importMapScriptStart = stringToPrecomputedChunk(
8856
9901
  '<script type="importmap">'
8857
9902
  ),
8858
9903
  importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
8859
9904
  var didWarnForNewBooleanPropsWithEmptyValue = {};
8860
- var NoContribution = 0,
8861
- ROOT_HTML_MODE = 0,
9905
+ var ROOT_HTML_MODE = 0,
8862
9906
  HTML_HTML_MODE = 1,
8863
9907
  HTML_MODE = 2,
8864
9908
  HTML_HEAD_MODE = 3,
@@ -8903,13 +9947,24 @@
8903
9947
  formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
8904
9948
  formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e"),
8905
9949
  styleRegex = /(<\/|<)(s)(tyle)/gi,
9950
+ headPreambleContributionChunk =
9951
+ stringToPrecomputedChunk("\x3c!--head--\x3e"),
9952
+ bodyPreambleContributionChunk =
9953
+ stringToPrecomputedChunk("\x3c!--body--\x3e"),
9954
+ htmlPreambleContributionChunk =
9955
+ stringToPrecomputedChunk("\x3c!--html--\x3e"),
8906
9956
  leadingNewline = stringToPrecomputedChunk("\n"),
8907
9957
  VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
8908
9958
  validatedTagCache = new Map(),
8909
9959
  doctypeChunk = stringToPrecomputedChunk("<!DOCTYPE html>"),
8910
9960
  endTagCache = new Map(),
9961
+ shellTimeRuntimeScript = stringToPrecomputedChunk(
9962
+ "requestAnimationFrame(function(){$RT=performance.now()});"
9963
+ ),
8911
9964
  placeholder1 = stringToPrecomputedChunk('<template id="'),
8912
9965
  placeholder2 = stringToPrecomputedChunk('"></template>'),
9966
+ startActivityBoundary = stringToPrecomputedChunk("\x3c!--&--\x3e"),
9967
+ endActivityBoundary = stringToPrecomputedChunk("\x3c!--/&--\x3e"),
8913
9968
  startCompletedSuspenseBoundary =
8914
9969
  stringToPrecomputedChunk("\x3c!--$--\x3e"),
8915
9970
  startPendingSuspenseBoundary1 = stringToPrecomputedChunk(
@@ -8933,9 +9988,6 @@
8933
9988
  stringToPrecomputedChunk(' data-cstck="'),
8934
9989
  clientRenderedSuspenseBoundaryError2 =
8935
9990
  stringToPrecomputedChunk("></template>"),
8936
- boundaryPreambleContributionChunkStart =
8937
- stringToPrecomputedChunk("\x3c!--"),
8938
- boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e"),
8939
9991
  startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
8940
9992
  startSegmentHTML2 = stringToPrecomputedChunk('">'),
8941
9993
  endSegmentHTML = stringToPrecomputedChunk("</div>"),
@@ -8973,15 +10025,15 @@
8973
10025
  completeSegmentScriptEnd = stringToPrecomputedChunk('")\x3c/script>');
8974
10026
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
8975
10027
  stringToPrecomputedChunk('" data-pid="');
8976
- var completeBoundaryScript1Full = stringToPrecomputedChunk(
8977
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
8978
- ),
8979
- completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
8980
- completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
8981
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
8982
- ),
10028
+ var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
10029
+ '$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)};'
10030
+ );
10031
+ stringToChunk(
10032
+ '$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);'
10033
+ );
10034
+ var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
8983
10035
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
8984
- '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
10036
+ '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
8985
10037
  ),
8986
10038
  completeBoundaryWithStylesScript1Partial =
8987
10039
  stringToPrecomputedChunk('$RR("'),
@@ -8993,7 +10045,10 @@
8993
10045
  stringToPrecomputedChunk('<template data-rri="" data-bid="');
8994
10046
  stringToPrecomputedChunk('" data-sid="');
8995
10047
  stringToPrecomputedChunk('" data-sty="');
8996
- var clientRenderScript1Full = stringToPrecomputedChunk(
10048
+ var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
10049
+ '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
10050
+ ),
10051
+ clientRenderScript1Full = stringToPrecomputedChunk(
8997
10052
  '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
8998
10053
  ),
8999
10054
  clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
@@ -9008,7 +10063,7 @@
9008
10063
  var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g,
9009
10064
  regexForJSStringsInScripts = /[&><\u2028\u2029]/g,
9010
10065
  lateStyleTagResourceOpen1 = stringToPrecomputedChunk(
9011
- '<style media="not all" data-precedence="'
10066
+ ' media="not all" data-precedence="'
9012
10067
  ),
9013
10068
  lateStyleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
9014
10069
  lateStyleTagResourceOpen3 = stringToPrecomputedChunk('">'),
@@ -9016,13 +10071,14 @@
9016
10071
  currentlyRenderingBoundaryHasStylesToHoist = !1,
9017
10072
  destinationHasCapacity = !0,
9018
10073
  stylesheetFlushingQueue = [],
9019
- styleTagResourceOpen1 = stringToPrecomputedChunk(
9020
- '<style data-precedence="'
9021
- ),
10074
+ styleTagResourceOpen1 = stringToPrecomputedChunk(' data-precedence="'),
9022
10075
  styleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
9023
10076
  spaceSeparator = stringToPrecomputedChunk(" "),
9024
10077
  styleTagResourceOpen3 = stringToPrecomputedChunk('">'),
9025
- styleTagResourceClose = stringToPrecomputedChunk("</style>"),
10078
+ styleTagResourceClose = stringToPrecomputedChunk("</style>");
10079
+ stringToPrecomputedChunk('<link rel="expect" href="#');
10080
+ stringToPrecomputedChunk('" blocking="render"/>');
10081
+ var completedShellIdAttributeStart = stringToPrecomputedChunk(' id="'),
9026
10082
  arrayFirstOpenBracket = stringToPrecomputedChunk("["),
9027
10083
  arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
9028
10084
  arrayInterstitial = stringToPrecomputedChunk(","),
@@ -9136,16 +10192,16 @@
9136
10192
  currentHookNameInDev = "useState";
9137
10193
  return useReducer(basicStateReducer, initialState);
9138
10194
  },
9139
- useInsertionEffect: noop$1,
9140
- useLayoutEffect: noop$1,
10195
+ useInsertionEffect: noop,
10196
+ useLayoutEffect: noop,
9141
10197
  useCallback: function (callback, deps) {
9142
10198
  return useMemo(function () {
9143
10199
  return callback;
9144
10200
  }, deps);
9145
10201
  },
9146
- useImperativeHandle: noop$1,
9147
- useEffect: noop$1,
9148
- useDebugValue: noop$1,
10202
+ useImperativeHandle: noop,
10203
+ useEffect: noop,
10204
+ useDebugValue: noop,
9149
10205
  useDeferredValue: function (value, initialValue) {
9150
10206
  resolveCurrentlyRenderingComponent();
9151
10207
  return void 0 !== initialValue ? initialValue : value;
@@ -9166,9 +10222,9 @@
9166
10222
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
9167
10223
  );
9168
10224
  overflow = localIdCounter++;
9169
- treeId = "\u00ab" + resumableState.idPrefix + "R" + treeId;
10225
+ treeId = "_" + resumableState.idPrefix + "R_" + treeId;
9170
10226
  0 < overflow && (treeId += "H" + overflow.toString(32));
9171
- return treeId + "\u00bb";
10227
+ return treeId + "_";
9172
10228
  },
9173
10229
  useSyncExternalStore: function (
9174
10230
  subscribe,
@@ -9198,6 +10254,9 @@
9198
10254
  },
9199
10255
  useCacheRefresh: function () {
9200
10256
  return unsupportedRefresh;
10257
+ },
10258
+ useEffectEvent: function () {
10259
+ return throwOnUseEffectEventCall;
9201
10260
  }
9202
10261
  },
9203
10262
  currentResumableState = null,
@@ -9206,6 +10265,9 @@
9206
10265
  getCacheForType: function () {
9207
10266
  throw Error("Not implemented.");
9208
10267
  },
10268
+ cacheSignal: function () {
10269
+ throw Error("Not implemented.");
10270
+ },
9209
10271
  getOwner: function () {
9210
10272
  return null === currentTaskInDEV
9211
10273
  ? null
@@ -9228,26 +10290,26 @@
9228
10290
  "function" === typeof WeakMap ? WeakMap : Map
9229
10291
  )();
9230
10292
  var callComponent = {
9231
- "react-stack-bottom-frame": function (Component, props, secondArg) {
10293
+ react_stack_bottom_frame: function (Component, props, secondArg) {
9232
10294
  return Component(props, secondArg);
9233
10295
  }
9234
10296
  },
9235
10297
  callComponentInDEV =
9236
- callComponent["react-stack-bottom-frame"].bind(callComponent),
10298
+ callComponent.react_stack_bottom_frame.bind(callComponent),
9237
10299
  callRender = {
9238
- "react-stack-bottom-frame": function (instance) {
10300
+ react_stack_bottom_frame: function (instance) {
9239
10301
  return instance.render();
9240
10302
  }
9241
10303
  },
9242
- callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender),
10304
+ callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
9243
10305
  callLazyInit = {
9244
- "react-stack-bottom-frame": function (lazy) {
10306
+ react_stack_bottom_frame: function (lazy) {
9245
10307
  var init = lazy._init;
9246
10308
  return init(lazy._payload);
9247
10309
  }
9248
10310
  },
9249
10311
  callLazyInitInDEV =
9250
- callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
10312
+ callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
9251
10313
  lastResetTime = 0;
9252
10314
  if (
9253
10315
  "object" === typeof performance &&
@@ -9267,6 +10329,8 @@
9267
10329
  PENDING = 0,
9268
10330
  COMPLETED = 1,
9269
10331
  FLUSHED = 2,
10332
+ ABORTED = 3,
10333
+ ERRORED = 4,
9270
10334
  POSTPONED = 5,
9271
10335
  CLOSED = 14,
9272
10336
  currentRequest = null,
@@ -9276,7 +10340,9 @@
9276
10340
  didWarnAboutGetDerivedStateOnFunctionComponent = {},
9277
10341
  didWarnAboutReassigningProps = !1,
9278
10342
  didWarnAboutGenerators = !1,
9279
- didWarnAboutMaps = !1;
10343
+ didWarnAboutMaps = !1,
10344
+ flushedByteSize = 0,
10345
+ flushingPartialBoundaries = !1;
9280
10346
  ensureCorrectIsomorphicReactVersion();
9281
10347
  ensureCorrectIsomorphicReactVersion();
9282
10348
  exports.prerender = function (children, options) {
@@ -9309,22 +10375,24 @@
9309
10375
  options ? options.progressiveChunkSize : void 0,
9310
10376
  options ? options.onError : void 0,
9311
10377
  function () {
9312
- var result = {
9313
- prelude: new ReadableStream(
9314
- {
9315
- type: "bytes",
9316
- pull: function (controller) {
9317
- startFlowing(request, controller);
9318
- },
9319
- cancel: function (reason) {
9320
- request.destination = null;
9321
- abort(request, reason);
9322
- }
10378
+ var stream = new ReadableStream(
10379
+ {
10380
+ type: "bytes",
10381
+ pull: function (controller) {
10382
+ startFlowing(request, controller);
9323
10383
  },
9324
- { highWaterMark: 0 }
9325
- )
10384
+ cancel: function (reason) {
10385
+ request.destination = null;
10386
+ abort(request, reason);
10387
+ }
10388
+ },
10389
+ { highWaterMark: 0 }
10390
+ );
10391
+ stream = {
10392
+ postponed: getPostponedState(request),
10393
+ prelude: stream
9326
10394
  };
9327
- resolve(result);
10395
+ resolve(stream);
9328
10396
  },
9329
10397
  void 0,
9330
10398
  void 0,
@@ -9420,5 +10488,114 @@
9420
10488
  startWork(request);
9421
10489
  });
9422
10490
  };
9423
- exports.version = "19.1.0";
10491
+ exports.resume = function (children, postponedState, options) {
10492
+ return new Promise(function (resolve, reject) {
10493
+ var onFatalError,
10494
+ onAllReady,
10495
+ allReady = new Promise(function (res, rej) {
10496
+ onAllReady = res;
10497
+ onFatalError = rej;
10498
+ }),
10499
+ request = resumeRequest(
10500
+ children,
10501
+ postponedState,
10502
+ createRenderState(
10503
+ postponedState.resumableState,
10504
+ options ? options.nonce : void 0,
10505
+ void 0,
10506
+ void 0,
10507
+ void 0,
10508
+ void 0
10509
+ ),
10510
+ options ? options.onError : void 0,
10511
+ onAllReady,
10512
+ function () {
10513
+ var stream = new ReadableStream(
10514
+ {
10515
+ type: "bytes",
10516
+ pull: function (controller) {
10517
+ startFlowing(request, controller);
10518
+ },
10519
+ cancel: function (reason) {
10520
+ request.destination = null;
10521
+ abort(request, reason);
10522
+ }
10523
+ },
10524
+ { highWaterMark: 0 }
10525
+ );
10526
+ stream.allReady = allReady;
10527
+ resolve(stream);
10528
+ },
10529
+ function (error) {
10530
+ allReady.catch(function () {});
10531
+ reject(error);
10532
+ },
10533
+ onFatalError,
10534
+ options ? options.onPostpone : void 0
10535
+ );
10536
+ if (options && options.signal) {
10537
+ var signal = options.signal;
10538
+ if (signal.aborted) abort(request, signal.reason);
10539
+ else {
10540
+ var listener = function () {
10541
+ abort(request, signal.reason);
10542
+ signal.removeEventListener("abort", listener);
10543
+ };
10544
+ signal.addEventListener("abort", listener);
10545
+ }
10546
+ }
10547
+ startWork(request);
10548
+ });
10549
+ };
10550
+ exports.resumeAndPrerender = function (children, postponedState, options) {
10551
+ return new Promise(function (resolve, reject) {
10552
+ var request = resumeAndPrerenderRequest(
10553
+ children,
10554
+ postponedState,
10555
+ createRenderState(
10556
+ postponedState.resumableState,
10557
+ void 0,
10558
+ void 0,
10559
+ void 0,
10560
+ void 0,
10561
+ void 0
10562
+ ),
10563
+ options ? options.onError : void 0,
10564
+ function () {
10565
+ var stream = new ReadableStream(
10566
+ {
10567
+ type: "bytes",
10568
+ pull: function (controller) {
10569
+ startFlowing(request, controller);
10570
+ },
10571
+ cancel: function (reason) {
10572
+ request.destination = null;
10573
+ abort(request, reason);
10574
+ }
10575
+ },
10576
+ { highWaterMark: 0 }
10577
+ );
10578
+ stream = { postponed: getPostponedState(request), prelude: stream };
10579
+ resolve(stream);
10580
+ },
10581
+ void 0,
10582
+ void 0,
10583
+ reject,
10584
+ options ? options.onPostpone : void 0
10585
+ );
10586
+ if (options && options.signal) {
10587
+ var signal = options.signal;
10588
+ if (signal.aborted) abort(request, signal.reason);
10589
+ else {
10590
+ var listener = function () {
10591
+ abort(request, signal.reason);
10592
+ signal.removeEventListener("abort", listener);
10593
+ };
10594
+ signal.addEventListener("abort", listener);
10595
+ }
10596
+ }
10597
+ startWork(request);
10598
+ });
10599
+ };
10600
+ exports.version = "19.2.4";
9424
10601
  })();