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.
- package/cjs/react-dom-client.development.js +8914 -5783
- package/cjs/react-dom-client.production.js +4167 -3511
- package/cjs/react-dom-profiling.development.js +8921 -5795
- package/cjs/react-dom-profiling.profiling.js +5894 -4044
- package/cjs/react-dom-server-legacy.browser.development.js +1508 -666
- package/cjs/react-dom-server-legacy.browser.production.js +1228 -517
- package/cjs/react-dom-server-legacy.node.development.js +1508 -666
- package/cjs/react-dom-server-legacy.node.production.js +1237 -517
- package/cjs/react-dom-server.browser.development.js +1997 -820
- package/cjs/react-dom-server.browser.production.js +1626 -600
- package/cjs/react-dom-server.bun.development.js +1586 -720
- package/cjs/react-dom-server.bun.production.js +1355 -577
- package/cjs/react-dom-server.edge.development.js +1997 -820
- package/cjs/react-dom-server.edge.production.js +1638 -603
- package/cjs/react-dom-server.node.development.js +2240 -755
- package/cjs/react-dom-server.node.production.js +1928 -593
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
- package/server.browser.js +1 -3
- package/server.bun.js +1 -3
- package/server.edge.js +1 -3
- package/server.node.js +3 -3
- package/static.node.js +2 -0
|
@@ -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
|
-
|
|
46
|
-
|
|
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);
|
|
@@ -316,6 +321,9 @@
|
|
|
316
321
|
);
|
|
317
322
|
return content;
|
|
318
323
|
}
|
|
324
|
+
function byteLengthOfChunk(chunk) {
|
|
325
|
+
return chunk.byteLength;
|
|
326
|
+
}
|
|
319
327
|
function closeWithError(destination, error) {
|
|
320
328
|
"function" === typeof destination.error
|
|
321
329
|
? destination.error(error)
|
|
@@ -800,25 +808,38 @@
|
|
|
800
808
|
onHeaders,
|
|
801
809
|
maxHeadersLength
|
|
802
810
|
) {
|
|
811
|
+
externalRuntimeConfig =
|
|
812
|
+
"string" === typeof nonce ? nonce : nonce && nonce.script;
|
|
803
813
|
var inlineScriptWithNonce =
|
|
804
|
-
void 0 ===
|
|
814
|
+
void 0 === externalRuntimeConfig
|
|
805
815
|
? startInlineScript
|
|
806
816
|
: stringToPrecomputedChunk(
|
|
807
|
-
'<script nonce="' +
|
|
817
|
+
'<script nonce="' +
|
|
818
|
+
escapeTextForBrowser(externalRuntimeConfig) +
|
|
819
|
+
'"'
|
|
820
|
+
),
|
|
821
|
+
nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style,
|
|
822
|
+
inlineStyleWithNonce =
|
|
823
|
+
void 0 === nonceStyle
|
|
824
|
+
? startInlineStyle
|
|
825
|
+
: stringToPrecomputedChunk(
|
|
826
|
+
'<style nonce="' + escapeTextForBrowser(nonceStyle) + '"'
|
|
808
827
|
),
|
|
809
|
-
idPrefix = resumableState.idPrefix
|
|
810
|
-
|
|
811
|
-
|
|
828
|
+
idPrefix = resumableState.idPrefix,
|
|
829
|
+
bootstrapChunks = [],
|
|
830
|
+
bootstrapScriptContent = resumableState.bootstrapScriptContent,
|
|
812
831
|
bootstrapScripts = resumableState.bootstrapScripts,
|
|
813
832
|
bootstrapModules = resumableState.bootstrapModules;
|
|
814
833
|
void 0 !== bootstrapScriptContent &&
|
|
815
|
-
|
|
816
|
-
|
|
834
|
+
(bootstrapChunks.push(inlineScriptWithNonce),
|
|
835
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
836
|
+
bootstrapChunks.push(
|
|
837
|
+
endOfStartTag,
|
|
817
838
|
stringToChunk(
|
|
818
839
|
escapeEntireInlineScriptContent(bootstrapScriptContent)
|
|
819
840
|
),
|
|
820
841
|
endInlineScript
|
|
821
|
-
);
|
|
842
|
+
));
|
|
822
843
|
bootstrapScriptContent = [];
|
|
823
844
|
void 0 !== importMap &&
|
|
824
845
|
(bootstrapScriptContent.push(importMapScriptStart),
|
|
@@ -850,9 +871,10 @@
|
|
|
850
871
|
segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
|
|
851
872
|
boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
|
|
852
873
|
startInlineScript: inlineScriptWithNonce,
|
|
874
|
+
startInlineStyle: inlineStyleWithNonce,
|
|
853
875
|
preamble: createPreambleState(),
|
|
854
876
|
externalRuntimeScript: null,
|
|
855
|
-
bootstrapChunks:
|
|
877
|
+
bootstrapChunks: bootstrapChunks,
|
|
856
878
|
importMapChunks: bootstrapScriptContent,
|
|
857
879
|
onHeaders: onHeaders,
|
|
858
880
|
headers: importMap,
|
|
@@ -879,114 +901,119 @@
|
|
|
879
901
|
scripts: new Map(),
|
|
880
902
|
moduleScripts: new Map()
|
|
881
903
|
},
|
|
882
|
-
nonce:
|
|
904
|
+
nonce: { script: externalRuntimeConfig, style: nonceStyle },
|
|
883
905
|
hoistableState: null,
|
|
884
906
|
stylesToHoist: !1
|
|
885
907
|
};
|
|
886
908
|
if (void 0 !== bootstrapScripts)
|
|
887
|
-
for (importMap = 0; importMap < bootstrapScripts.length; importMap++)
|
|
888
|
-
maxHeadersLength = bootstrapScripts[importMap]
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
externalRuntimeConfig
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
909
|
+
for (importMap = 0; importMap < bootstrapScripts.length; importMap++)
|
|
910
|
+
(maxHeadersLength = bootstrapScripts[importMap]),
|
|
911
|
+
(inlineStyleWithNonce = nonceStyle = void 0),
|
|
912
|
+
(idPrefix = {
|
|
913
|
+
rel: "preload",
|
|
914
|
+
as: "script",
|
|
915
|
+
fetchPriority: "low",
|
|
916
|
+
nonce: nonce
|
|
917
|
+
}),
|
|
918
|
+
"string" === typeof maxHeadersLength
|
|
919
|
+
? (idPrefix.href = inlineScriptWithNonce = maxHeadersLength)
|
|
920
|
+
: ((idPrefix.href = inlineScriptWithNonce = maxHeadersLength.src),
|
|
921
|
+
(idPrefix.integrity = inlineStyleWithNonce =
|
|
922
|
+
"string" === typeof maxHeadersLength.integrity
|
|
923
|
+
? maxHeadersLength.integrity
|
|
924
|
+
: void 0),
|
|
925
|
+
(idPrefix.crossOrigin = nonceStyle =
|
|
926
|
+
"string" === typeof maxHeadersLength ||
|
|
927
|
+
null == maxHeadersLength.crossOrigin
|
|
928
|
+
? void 0
|
|
929
|
+
: "use-credentials" === maxHeadersLength.crossOrigin
|
|
930
|
+
? "use-credentials"
|
|
931
|
+
: "")),
|
|
932
|
+
preloadBootstrapScriptOrModule(
|
|
933
|
+
resumableState,
|
|
934
|
+
onHeaders,
|
|
935
|
+
inlineScriptWithNonce,
|
|
936
|
+
idPrefix
|
|
937
|
+
),
|
|
938
|
+
bootstrapChunks.push(
|
|
939
|
+
startScriptSrc,
|
|
940
|
+
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
|
|
941
|
+
attributeEnd
|
|
942
|
+
),
|
|
943
|
+
externalRuntimeConfig &&
|
|
944
|
+
bootstrapChunks.push(
|
|
945
|
+
scriptNonce,
|
|
946
|
+
stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),
|
|
947
|
+
attributeEnd
|
|
948
|
+
),
|
|
949
|
+
"string" === typeof inlineStyleWithNonce &&
|
|
950
|
+
bootstrapChunks.push(
|
|
951
|
+
scriptIntegirty,
|
|
952
|
+
stringToChunk(escapeTextForBrowser(inlineStyleWithNonce)),
|
|
953
|
+
attributeEnd
|
|
954
|
+
),
|
|
955
|
+
"string" === typeof nonceStyle &&
|
|
956
|
+
bootstrapChunks.push(
|
|
957
|
+
scriptCrossOrigin,
|
|
958
|
+
stringToChunk(escapeTextForBrowser(nonceStyle)),
|
|
959
|
+
attributeEnd
|
|
960
|
+
),
|
|
961
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
962
|
+
bootstrapChunks.push(endAsyncScript);
|
|
937
963
|
if (void 0 !== bootstrapModules)
|
|
938
|
-
for (
|
|
939
|
-
bootstrapScripts =
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
)
|
|
943
|
-
(importMap = bootstrapModules[bootstrapScripts]),
|
|
944
|
-
(idPrefix = inlineScriptWithNonce = void 0),
|
|
945
|
-
(bootstrapScriptContent = {
|
|
964
|
+
for (nonce = 0; nonce < bootstrapModules.length; nonce++)
|
|
965
|
+
(bootstrapScripts = bootstrapModules[nonce]),
|
|
966
|
+
(inlineScriptWithNonce = maxHeadersLength = void 0),
|
|
967
|
+
(nonceStyle = {
|
|
946
968
|
rel: "modulepreload",
|
|
947
969
|
fetchPriority: "low",
|
|
948
|
-
nonce:
|
|
970
|
+
nonce: externalRuntimeConfig
|
|
949
971
|
}),
|
|
950
|
-
"string" === typeof
|
|
951
|
-
? (
|
|
952
|
-
: ((
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
? importMap.integrity
|
|
972
|
+
"string" === typeof bootstrapScripts
|
|
973
|
+
? (nonceStyle.href = importMap = bootstrapScripts)
|
|
974
|
+
: ((nonceStyle.href = importMap = bootstrapScripts.src),
|
|
975
|
+
(nonceStyle.integrity = inlineScriptWithNonce =
|
|
976
|
+
"string" === typeof bootstrapScripts.integrity
|
|
977
|
+
? bootstrapScripts.integrity
|
|
957
978
|
: void 0),
|
|
958
|
-
(
|
|
959
|
-
"string" === typeof
|
|
979
|
+
(nonceStyle.crossOrigin = maxHeadersLength =
|
|
980
|
+
"string" === typeof bootstrapScripts ||
|
|
981
|
+
null == bootstrapScripts.crossOrigin
|
|
960
982
|
? void 0
|
|
961
|
-
: "use-credentials" ===
|
|
983
|
+
: "use-credentials" === bootstrapScripts.crossOrigin
|
|
962
984
|
? "use-credentials"
|
|
963
985
|
: "")),
|
|
964
986
|
preloadBootstrapScriptOrModule(
|
|
965
987
|
resumableState,
|
|
966
988
|
onHeaders,
|
|
967
|
-
|
|
968
|
-
|
|
989
|
+
importMap,
|
|
990
|
+
nonceStyle
|
|
969
991
|
),
|
|
970
|
-
|
|
992
|
+
bootstrapChunks.push(
|
|
971
993
|
startModuleSrc,
|
|
972
|
-
stringToChunk(escapeTextForBrowser(
|
|
994
|
+
stringToChunk(escapeTextForBrowser(importMap)),
|
|
995
|
+
attributeEnd
|
|
973
996
|
),
|
|
974
|
-
|
|
975
|
-
|
|
997
|
+
externalRuntimeConfig &&
|
|
998
|
+
bootstrapChunks.push(
|
|
976
999
|
scriptNonce,
|
|
977
|
-
stringToChunk(escapeTextForBrowser(
|
|
1000
|
+
stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),
|
|
1001
|
+
attributeEnd
|
|
978
1002
|
),
|
|
979
|
-
"string" === typeof
|
|
980
|
-
|
|
1003
|
+
"string" === typeof inlineScriptWithNonce &&
|
|
1004
|
+
bootstrapChunks.push(
|
|
981
1005
|
scriptIntegirty,
|
|
982
|
-
stringToChunk(escapeTextForBrowser(
|
|
1006
|
+
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
|
|
1007
|
+
attributeEnd
|
|
983
1008
|
),
|
|
984
|
-
"string" === typeof
|
|
985
|
-
|
|
1009
|
+
"string" === typeof maxHeadersLength &&
|
|
1010
|
+
bootstrapChunks.push(
|
|
986
1011
|
scriptCrossOrigin,
|
|
987
|
-
stringToChunk(escapeTextForBrowser(
|
|
1012
|
+
stringToChunk(escapeTextForBrowser(maxHeadersLength)),
|
|
1013
|
+
attributeEnd
|
|
988
1014
|
),
|
|
989
|
-
|
|
1015
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
1016
|
+
bootstrapChunks.push(endAsyncScript);
|
|
990
1017
|
return onHeaders;
|
|
991
1018
|
}
|
|
992
1019
|
function createResumableState(
|
|
@@ -1017,18 +1044,19 @@
|
|
|
1017
1044
|
};
|
|
1018
1045
|
}
|
|
1019
1046
|
function createPreambleState() {
|
|
1020
|
-
return {
|
|
1021
|
-
htmlChunks: null,
|
|
1022
|
-
headChunks: null,
|
|
1023
|
-
bodyChunks: null,
|
|
1024
|
-
contribution: NoContribution
|
|
1025
|
-
};
|
|
1047
|
+
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
|
1026
1048
|
}
|
|
1027
|
-
function createFormatContext(
|
|
1049
|
+
function createFormatContext(
|
|
1050
|
+
insertionMode,
|
|
1051
|
+
selectedValue,
|
|
1052
|
+
tagScope,
|
|
1053
|
+
viewTransition
|
|
1054
|
+
) {
|
|
1028
1055
|
return {
|
|
1029
1056
|
insertionMode: insertionMode,
|
|
1030
1057
|
selectedValue: selectedValue,
|
|
1031
|
-
tagScope: tagScope
|
|
1058
|
+
tagScope: tagScope,
|
|
1059
|
+
viewTransition: viewTransition
|
|
1032
1060
|
};
|
|
1033
1061
|
}
|
|
1034
1062
|
function createRootFormatContext(namespaceURI) {
|
|
@@ -1039,67 +1067,62 @@
|
|
|
1039
1067
|
? MATHML_MODE
|
|
1040
1068
|
: ROOT_HTML_MODE,
|
|
1041
1069
|
null,
|
|
1042
|
-
0
|
|
1070
|
+
0,
|
|
1071
|
+
null
|
|
1043
1072
|
);
|
|
1044
1073
|
}
|
|
1045
1074
|
function getChildFormatContext(parentContext, type, props) {
|
|
1075
|
+
var subtreeScope = parentContext.tagScope & -25;
|
|
1046
1076
|
switch (type) {
|
|
1047
1077
|
case "noscript":
|
|
1048
|
-
return createFormatContext(
|
|
1049
|
-
HTML_MODE,
|
|
1050
|
-
null,
|
|
1051
|
-
parentContext.tagScope | 1
|
|
1052
|
-
);
|
|
1078
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
|
|
1053
1079
|
case "select":
|
|
1054
1080
|
return createFormatContext(
|
|
1055
1081
|
HTML_MODE,
|
|
1056
1082
|
null != props.value ? props.value : props.defaultValue,
|
|
1057
|
-
|
|
1083
|
+
subtreeScope,
|
|
1084
|
+
null
|
|
1058
1085
|
);
|
|
1059
1086
|
case "svg":
|
|
1060
|
-
return createFormatContext(SVG_MODE, null,
|
|
1087
|
+
return createFormatContext(SVG_MODE, null, subtreeScope, null);
|
|
1061
1088
|
case "picture":
|
|
1062
|
-
return createFormatContext(
|
|
1063
|
-
HTML_MODE,
|
|
1064
|
-
null,
|
|
1065
|
-
parentContext.tagScope | 2
|
|
1066
|
-
);
|
|
1089
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
|
|
1067
1090
|
case "math":
|
|
1068
|
-
return createFormatContext(MATHML_MODE, null,
|
|
1091
|
+
return createFormatContext(MATHML_MODE, null, subtreeScope, null);
|
|
1069
1092
|
case "foreignObject":
|
|
1070
|
-
return createFormatContext(HTML_MODE, null,
|
|
1093
|
+
return createFormatContext(HTML_MODE, null, subtreeScope, null);
|
|
1071
1094
|
case "table":
|
|
1072
|
-
return createFormatContext(
|
|
1073
|
-
HTML_TABLE_MODE,
|
|
1074
|
-
null,
|
|
1075
|
-
parentContext.tagScope
|
|
1076
|
-
);
|
|
1095
|
+
return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
|
|
1077
1096
|
case "thead":
|
|
1078
1097
|
case "tbody":
|
|
1079
1098
|
case "tfoot":
|
|
1080
1099
|
return createFormatContext(
|
|
1081
1100
|
HTML_TABLE_BODY_MODE,
|
|
1082
1101
|
null,
|
|
1083
|
-
|
|
1102
|
+
subtreeScope,
|
|
1103
|
+
null
|
|
1084
1104
|
);
|
|
1085
1105
|
case "colgroup":
|
|
1086
1106
|
return createFormatContext(
|
|
1087
1107
|
HTML_COLGROUP_MODE,
|
|
1088
1108
|
null,
|
|
1089
|
-
|
|
1109
|
+
subtreeScope,
|
|
1110
|
+
null
|
|
1090
1111
|
);
|
|
1091
1112
|
case "tr":
|
|
1092
1113
|
return createFormatContext(
|
|
1093
1114
|
HTML_TABLE_ROW_MODE,
|
|
1094
1115
|
null,
|
|
1095
|
-
|
|
1116
|
+
subtreeScope,
|
|
1117
|
+
null
|
|
1096
1118
|
);
|
|
1097
1119
|
case "head":
|
|
1098
1120
|
if (parentContext.insertionMode < HTML_MODE)
|
|
1099
1121
|
return createFormatContext(
|
|
1100
1122
|
HTML_HEAD_MODE,
|
|
1101
1123
|
null,
|
|
1102
|
-
|
|
1124
|
+
subtreeScope,
|
|
1125
|
+
null
|
|
1103
1126
|
);
|
|
1104
1127
|
break;
|
|
1105
1128
|
case "html":
|
|
@@ -1107,13 +1130,56 @@
|
|
|
1107
1130
|
return createFormatContext(
|
|
1108
1131
|
HTML_HTML_MODE,
|
|
1109
1132
|
null,
|
|
1110
|
-
|
|
1133
|
+
subtreeScope,
|
|
1134
|
+
null
|
|
1111
1135
|
);
|
|
1112
1136
|
}
|
|
1113
1137
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
|
1114
1138
|
parentContext.insertionMode < HTML_MODE
|
|
1115
|
-
? createFormatContext(HTML_MODE, null,
|
|
1116
|
-
: parentContext
|
|
1139
|
+
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
|
1140
|
+
: parentContext.tagScope !== subtreeScope
|
|
1141
|
+
? createFormatContext(
|
|
1142
|
+
parentContext.insertionMode,
|
|
1143
|
+
parentContext.selectedValue,
|
|
1144
|
+
subtreeScope,
|
|
1145
|
+
null
|
|
1146
|
+
)
|
|
1147
|
+
: parentContext;
|
|
1148
|
+
}
|
|
1149
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
|
1150
|
+
return null === parentViewTransition
|
|
1151
|
+
? null
|
|
1152
|
+
: {
|
|
1153
|
+
update: parentViewTransition.update,
|
|
1154
|
+
enter: "none",
|
|
1155
|
+
exit: "none",
|
|
1156
|
+
share: parentViewTransition.update,
|
|
1157
|
+
name: parentViewTransition.autoName,
|
|
1158
|
+
autoName: parentViewTransition.autoName,
|
|
1159
|
+
nameIdx: 0
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
|
1163
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
|
1164
|
+
return createFormatContext(
|
|
1165
|
+
parentContext.insertionMode,
|
|
1166
|
+
parentContext.selectedValue,
|
|
1167
|
+
parentContext.tagScope | 12,
|
|
1168
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
|
1169
|
+
);
|
|
1170
|
+
}
|
|
1171
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
1172
|
+
resumableState = getSuspenseViewTransition(parentContext.viewTransition);
|
|
1173
|
+
var subtreeScope = parentContext.tagScope | 16;
|
|
1174
|
+
null !== resumableState &&
|
|
1175
|
+
"none" !== resumableState.share &&
|
|
1176
|
+
(subtreeScope |= 64);
|
|
1177
|
+
return createFormatContext(
|
|
1178
|
+
parentContext.insertionMode,
|
|
1179
|
+
parentContext.selectedValue,
|
|
1180
|
+
subtreeScope,
|
|
1181
|
+
resumableState
|
|
1182
|
+
);
|
|
1117
1183
|
}
|
|
1118
1184
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
1119
1185
|
if ("" === text) return textEmbedded;
|
|
@@ -1639,13 +1705,26 @@
|
|
|
1639
1705
|
return content;
|
|
1640
1706
|
}
|
|
1641
1707
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
1642
|
-
(resumableState.instructions & 16) === NothingSent
|
|
1643
|
-
|
|
1644
|
-
renderState.
|
|
1645
|
-
renderState.
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1708
|
+
if ((resumableState.instructions & 16) === NothingSent) {
|
|
1709
|
+
resumableState.instructions |= 16;
|
|
1710
|
+
var preamble = renderState.preamble,
|
|
1711
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
|
1712
|
+
(preamble.htmlChunks || preamble.headChunks) &&
|
|
1713
|
+
0 === bootstrapChunks.length
|
|
1714
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
|
1715
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
1716
|
+
bootstrapChunks.push(
|
|
1717
|
+
endOfStartTag,
|
|
1718
|
+
formReplayingRuntimeScript,
|
|
1719
|
+
endInlineScript
|
|
1720
|
+
))
|
|
1721
|
+
: bootstrapChunks.unshift(
|
|
1722
|
+
renderState.startInlineScript,
|
|
1723
|
+
endOfStartTag,
|
|
1724
|
+
formReplayingRuntimeScript,
|
|
1725
|
+
endInlineScript
|
|
1726
|
+
);
|
|
1727
|
+
}
|
|
1649
1728
|
}
|
|
1650
1729
|
function pushLinkImpl(target, props) {
|
|
1651
1730
|
target.push(startChunkForTag("link"));
|
|
@@ -1830,8 +1909,7 @@
|
|
|
1830
1909
|
preambleState,
|
|
1831
1910
|
hoistableState,
|
|
1832
1911
|
formatContext,
|
|
1833
|
-
textEmbedded
|
|
1834
|
-
isFallback
|
|
1912
|
+
textEmbedded
|
|
1835
1913
|
) {
|
|
1836
1914
|
validateProperties$2(type, props);
|
|
1837
1915
|
("input" !== type && "textarea" !== type && "select" !== type) ||
|
|
@@ -2460,8 +2538,8 @@
|
|
|
2460
2538
|
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
|
2461
2539
|
return JSCompiler_inline_result$jscomp$3;
|
|
2462
2540
|
case "title":
|
|
2463
|
-
var
|
|
2464
|
-
|
|
2541
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
|
2542
|
+
isFallback = formatContext.tagScope & 4;
|
|
2465
2543
|
if (hasOwnProperty.call(props, "children")) {
|
|
2466
2544
|
var children$jscomp$6 = props.children,
|
|
2467
2545
|
child = Array.isArray(children$jscomp$6)
|
|
@@ -2490,7 +2568,7 @@
|
|
|
2490
2568
|
));
|
|
2491
2569
|
}
|
|
2492
2570
|
if (
|
|
2493
|
-
insertionMode === SVG_MODE ||
|
|
2571
|
+
formatContext.insertionMode === SVG_MODE ||
|
|
2494
2572
|
noscriptTagInScope ||
|
|
2495
2573
|
null != props.itemProp
|
|
2496
2574
|
)
|
|
@@ -2505,12 +2583,14 @@
|
|
|
2505
2583
|
(JSCompiler_inline_result$jscomp$4 = void 0));
|
|
2506
2584
|
return JSCompiler_inline_result$jscomp$4;
|
|
2507
2585
|
case "link":
|
|
2508
|
-
var
|
|
2586
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
|
2587
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
|
2588
|
+
rel = props.rel,
|
|
2509
2589
|
href = props.href,
|
|
2510
2590
|
precedence = props.precedence;
|
|
2511
2591
|
if (
|
|
2512
2592
|
formatContext.insertionMode === SVG_MODE ||
|
|
2513
|
-
|
|
2593
|
+
noscriptTagInScope$jscomp$0 ||
|
|
2514
2594
|
null != props.itemProp ||
|
|
2515
2595
|
"string" !== typeof rel ||
|
|
2516
2596
|
"string" !== typeof href ||
|
|
@@ -2611,12 +2691,13 @@
|
|
|
2611
2691
|
props
|
|
2612
2692
|
))
|
|
2613
2693
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2614
|
-
(JSCompiler_inline_result$jscomp$5 = isFallback
|
|
2694
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
|
|
2615
2695
|
? null
|
|
2616
2696
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
2617
2697
|
return JSCompiler_inline_result$jscomp$5;
|
|
2618
2698
|
case "script":
|
|
2619
|
-
var
|
|
2699
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
|
2700
|
+
asyncProp = props.async;
|
|
2620
2701
|
if (
|
|
2621
2702
|
"string" !== typeof props.src ||
|
|
2622
2703
|
!props.src ||
|
|
@@ -2626,7 +2707,7 @@
|
|
|
2626
2707
|
props.onLoad ||
|
|
2627
2708
|
props.onError ||
|
|
2628
2709
|
formatContext.insertionMode === SVG_MODE ||
|
|
2629
|
-
|
|
2710
|
+
noscriptTagInScope$jscomp$1 ||
|
|
2630
2711
|
null != props.itemProp
|
|
2631
2712
|
)
|
|
2632
2713
|
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
|
@@ -2664,8 +2745,7 @@
|
|
|
2664
2745
|
}
|
|
2665
2746
|
return JSCompiler_inline_result$jscomp$6;
|
|
2666
2747
|
case "style":
|
|
2667
|
-
var
|
|
2668
|
-
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
|
2748
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
|
|
2669
2749
|
if (hasOwnProperty.call(props, "children")) {
|
|
2670
2750
|
var children$jscomp$7 = props.children,
|
|
2671
2751
|
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
|
@@ -2686,10 +2766,11 @@
|
|
|
2686
2766
|
);
|
|
2687
2767
|
}
|
|
2688
2768
|
var precedence$jscomp$0 = props.precedence,
|
|
2689
|
-
href$jscomp$0 = props.href
|
|
2769
|
+
href$jscomp$0 = props.href,
|
|
2770
|
+
nonce = props.nonce;
|
|
2690
2771
|
if (
|
|
2691
|
-
insertionMode
|
|
2692
|
-
noscriptTagInScope$jscomp$
|
|
2772
|
+
formatContext.insertionMode === SVG_MODE ||
|
|
2773
|
+
noscriptTagInScope$jscomp$2 ||
|
|
2693
2774
|
null != props.itemProp ||
|
|
2694
2775
|
"string" !== typeof precedence$jscomp$0 ||
|
|
2695
2776
|
"string" !== typeof href$jscomp$0 ||
|
|
@@ -2757,51 +2838,68 @@
|
|
|
2757
2838
|
'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.',
|
|
2758
2839
|
href$jscomp$0
|
|
2759
2840
|
);
|
|
2760
|
-
styleQueue$jscomp$0
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2841
|
+
styleQueue$jscomp$0 ||
|
|
2842
|
+
((styleQueue$jscomp$0 = {
|
|
2843
|
+
precedence: stringToChunk(
|
|
2844
|
+
escapeTextForBrowser(precedence$jscomp$0)
|
|
2845
|
+
),
|
|
2846
|
+
rules: [],
|
|
2847
|
+
hrefs: [],
|
|
2848
|
+
sheets: new Map()
|
|
2849
|
+
}),
|
|
2850
|
+
renderState.styles.set(
|
|
2851
|
+
precedence$jscomp$0,
|
|
2852
|
+
styleQueue$jscomp$0
|
|
2853
|
+
));
|
|
2854
|
+
var nonceStyle = renderState.nonce.style;
|
|
2855
|
+
if (nonceStyle && nonceStyle !== nonce)
|
|
2856
|
+
console.error(
|
|
2857
|
+
'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.',
|
|
2858
|
+
precedence$jscomp$0,
|
|
2859
|
+
nonce,
|
|
2860
|
+
nonceStyle
|
|
2861
|
+
);
|
|
2862
|
+
else {
|
|
2863
|
+
!nonceStyle &&
|
|
2864
|
+
nonce &&
|
|
2865
|
+
console.error(
|
|
2866
|
+
'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.',
|
|
2773
2867
|
precedence$jscomp$0,
|
|
2774
|
-
|
|
2775
|
-
)
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
innerHTML$jscomp$6 = null,
|
|
2779
|
-
propKey$jscomp$9;
|
|
2780
|
-
for (propKey$jscomp$9 in props)
|
|
2781
|
-
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
2782
|
-
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
2783
|
-
if (null != propValue$jscomp$9)
|
|
2784
|
-
switch (propKey$jscomp$9) {
|
|
2785
|
-
case "children":
|
|
2786
|
-
children$jscomp$9 = propValue$jscomp$9;
|
|
2787
|
-
break;
|
|
2788
|
-
case "dangerouslySetInnerHTML":
|
|
2789
|
-
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
var child$jscomp$2 = Array.isArray(children$jscomp$9)
|
|
2793
|
-
? 2 > children$jscomp$9.length
|
|
2794
|
-
? children$jscomp$9[0]
|
|
2795
|
-
: null
|
|
2796
|
-
: children$jscomp$9;
|
|
2797
|
-
"function" !== typeof child$jscomp$2 &&
|
|
2798
|
-
"symbol" !== typeof child$jscomp$2 &&
|
|
2799
|
-
null !== child$jscomp$2 &&
|
|
2800
|
-
void 0 !== child$jscomp$2 &&
|
|
2801
|
-
target.push(
|
|
2802
|
-
stringToChunk(escapeStyleTextContent(child$jscomp$2))
|
|
2868
|
+
nonce
|
|
2869
|
+
);
|
|
2870
|
+
styleQueue$jscomp$0.hrefs.push(
|
|
2871
|
+
stringToChunk(escapeTextForBrowser(href$jscomp$0))
|
|
2803
2872
|
);
|
|
2804
|
-
|
|
2873
|
+
var target = styleQueue$jscomp$0.rules,
|
|
2874
|
+
children$jscomp$9 = null,
|
|
2875
|
+
innerHTML$jscomp$6 = null,
|
|
2876
|
+
propKey$jscomp$9;
|
|
2877
|
+
for (propKey$jscomp$9 in props)
|
|
2878
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
2879
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
2880
|
+
if (null != propValue$jscomp$9)
|
|
2881
|
+
switch (propKey$jscomp$9) {
|
|
2882
|
+
case "children":
|
|
2883
|
+
children$jscomp$9 = propValue$jscomp$9;
|
|
2884
|
+
break;
|
|
2885
|
+
case "dangerouslySetInnerHTML":
|
|
2886
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
var child$jscomp$2 = Array.isArray(children$jscomp$9)
|
|
2890
|
+
? 2 > children$jscomp$9.length
|
|
2891
|
+
? children$jscomp$9[0]
|
|
2892
|
+
: null
|
|
2893
|
+
: children$jscomp$9;
|
|
2894
|
+
"function" !== typeof child$jscomp$2 &&
|
|
2895
|
+
"symbol" !== typeof child$jscomp$2 &&
|
|
2896
|
+
null !== child$jscomp$2 &&
|
|
2897
|
+
void 0 !== child$jscomp$2 &&
|
|
2898
|
+
target.push(
|
|
2899
|
+
stringToChunk(escapeStyleTextContent(child$jscomp$2))
|
|
2900
|
+
);
|
|
2901
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
|
|
2902
|
+
}
|
|
2805
2903
|
}
|
|
2806
2904
|
styleQueue$jscomp$0 &&
|
|
2807
2905
|
hoistableState &&
|
|
@@ -2811,9 +2909,11 @@
|
|
|
2811
2909
|
}
|
|
2812
2910
|
return JSCompiler_inline_result$jscomp$7;
|
|
2813
2911
|
case "meta":
|
|
2912
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
|
2913
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
|
2814
2914
|
if (
|
|
2815
2915
|
formatContext.insertionMode === SVG_MODE ||
|
|
2816
|
-
|
|
2916
|
+
noscriptTagInScope$jscomp$3 ||
|
|
2817
2917
|
null != props.itemProp
|
|
2818
2918
|
)
|
|
2819
2919
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
|
@@ -2823,7 +2923,7 @@
|
|
|
2823
2923
|
);
|
|
2824
2924
|
else
|
|
2825
2925
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2826
|
-
(JSCompiler_inline_result$jscomp$8 = isFallback
|
|
2926
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
|
2827
2927
|
? null
|
|
2828
2928
|
: "string" === typeof props.charSet
|
|
2829
2929
|
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
|
@@ -2886,17 +2986,18 @@
|
|
|
2886
2986
|
target$jscomp$0.push(leadingNewline);
|
|
2887
2987
|
return children$jscomp$10;
|
|
2888
2988
|
case "img":
|
|
2889
|
-
var
|
|
2989
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
|
2990
|
+
src = props.src,
|
|
2890
2991
|
srcSet = props.srcSet;
|
|
2891
2992
|
if (
|
|
2892
2993
|
!(
|
|
2893
2994
|
"lazy" === props.loading ||
|
|
2894
2995
|
(!src && !srcSet) ||
|
|
2895
2996
|
("string" !== typeof src && null != src) ||
|
|
2896
|
-
("string" !== typeof srcSet && null != srcSet)
|
|
2997
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
|
2998
|
+
"low" === props.fetchPriority ||
|
|
2999
|
+
pictureOrNoScriptTagInScope
|
|
2897
3000
|
) &&
|
|
2898
|
-
"low" !== props.fetchPriority &&
|
|
2899
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
|
2900
3001
|
("string" !== typeof src ||
|
|
2901
3002
|
":" !== src[4] ||
|
|
2902
3003
|
("d" !== src[0] && "D" !== src[0]) ||
|
|
@@ -2910,6 +3011,9 @@
|
|
|
2910
3011
|
("t" !== srcSet[2] && "T" !== srcSet[2]) ||
|
|
2911
3012
|
("a" !== srcSet[3] && "A" !== srcSet[3]))
|
|
2912
3013
|
) {
|
|
3014
|
+
null !== hoistableState &&
|
|
3015
|
+
formatContext.tagScope & 64 &&
|
|
3016
|
+
(hoistableState.suspenseyImages = !0);
|
|
2913
3017
|
var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
|
|
2914
3018
|
key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
|
|
2915
3019
|
promotablePreloads = renderState.preloads.images,
|
|
@@ -3001,6 +3105,8 @@
|
|
|
3001
3105
|
var preamble = preambleState || renderState.preamble;
|
|
3002
3106
|
if (preamble.headChunks)
|
|
3003
3107
|
throw Error("The `<head>` tag may only be rendered once.");
|
|
3108
|
+
null !== preambleState &&
|
|
3109
|
+
target$jscomp$0.push(headPreambleContributionChunk);
|
|
3004
3110
|
preamble.headChunks = [];
|
|
3005
3111
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
3006
3112
|
preamble.headChunks,
|
|
@@ -3019,6 +3125,8 @@
|
|
|
3019
3125
|
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
|
3020
3126
|
if (preamble$jscomp$0.bodyChunks)
|
|
3021
3127
|
throw Error("The `<body>` tag may only be rendered once.");
|
|
3128
|
+
null !== preambleState &&
|
|
3129
|
+
target$jscomp$0.push(bodyPreambleContributionChunk);
|
|
3022
3130
|
preamble$jscomp$0.bodyChunks = [];
|
|
3023
3131
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
3024
3132
|
preamble$jscomp$0.bodyChunks,
|
|
@@ -3037,6 +3145,8 @@
|
|
|
3037
3145
|
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
|
3038
3146
|
if (preamble$jscomp$1.htmlChunks)
|
|
3039
3147
|
throw Error("The `<html>` tag may only be rendered once.");
|
|
3148
|
+
null !== preambleState &&
|
|
3149
|
+
target$jscomp$0.push(htmlPreambleContributionChunk);
|
|
3040
3150
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
|
3041
3151
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
3042
3152
|
preamble$jscomp$1.htmlChunks,
|
|
@@ -3123,16 +3233,13 @@
|
|
|
3123
3233
|
renderState = renderState.preamble;
|
|
3124
3234
|
null === renderState.htmlChunks &&
|
|
3125
3235
|
preambleState.htmlChunks &&
|
|
3126
|
-
(
|
|
3127
|
-
(preambleState.contribution |= 1));
|
|
3236
|
+
(renderState.htmlChunks = preambleState.htmlChunks);
|
|
3128
3237
|
null === renderState.headChunks &&
|
|
3129
3238
|
preambleState.headChunks &&
|
|
3130
|
-
(
|
|
3131
|
-
(preambleState.contribution |= 4));
|
|
3239
|
+
(renderState.headChunks = preambleState.headChunks);
|
|
3132
3240
|
null === renderState.bodyChunks &&
|
|
3133
3241
|
preambleState.bodyChunks &&
|
|
3134
|
-
(
|
|
3135
|
-
(preambleState.contribution |= 2));
|
|
3242
|
+
(renderState.bodyChunks = preambleState.bodyChunks);
|
|
3136
3243
|
}
|
|
3137
3244
|
function writeBootstrap(destination, renderState) {
|
|
3138
3245
|
renderState = renderState.bootstrapChunks;
|
|
@@ -3154,13 +3261,6 @@
|
|
|
3154
3261
|
writeChunk(destination, stringToChunk(id.toString(16)));
|
|
3155
3262
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
|
3156
3263
|
}
|
|
3157
|
-
function writePreambleContribution(destination, preambleState) {
|
|
3158
|
-
preambleState = preambleState.contribution;
|
|
3159
|
-
preambleState !== NoContribution &&
|
|
3160
|
-
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
|
3161
|
-
writeChunk(destination, stringToChunk("" + preambleState)),
|
|
3162
|
-
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
|
3163
|
-
}
|
|
3164
3264
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
|
3165
3265
|
switch (formatContext.insertionMode) {
|
|
3166
3266
|
case ROOT_HTML_MODE:
|
|
@@ -3294,6 +3394,7 @@
|
|
|
3294
3394
|
);
|
|
3295
3395
|
var i = 0;
|
|
3296
3396
|
if (hrefs.length) {
|
|
3397
|
+
writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
|
|
3297
3398
|
writeChunk(this, lateStyleTagResourceOpen1);
|
|
3298
3399
|
writeChunk(this, styleQueue.precedence);
|
|
3299
3400
|
for (
|
|
@@ -3326,7 +3427,9 @@
|
|
|
3326
3427
|
) {
|
|
3327
3428
|
currentlyRenderingBoundaryHasStylesToHoist = !1;
|
|
3328
3429
|
destinationHasCapacity = !0;
|
|
3430
|
+
currentlyFlushingRenderState = renderState;
|
|
3329
3431
|
hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
|
|
3432
|
+
currentlyFlushingRenderState = null;
|
|
3330
3433
|
hoistableState.stylesheets.forEach(hasStylesToHoist);
|
|
3331
3434
|
currentlyRenderingBoundaryHasStylesToHoist &&
|
|
3332
3435
|
(renderState.stylesToHoist = !0);
|
|
@@ -3350,6 +3453,7 @@
|
|
|
3350
3453
|
var rules = styleQueue.rules,
|
|
3351
3454
|
hrefs = styleQueue.hrefs;
|
|
3352
3455
|
if (!hasStylesheets || hrefs.length) {
|
|
3456
|
+
writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
|
|
3353
3457
|
writeChunk(this, styleTagResourceOpen1);
|
|
3354
3458
|
writeChunk(this, styleQueue.precedence);
|
|
3355
3459
|
styleQueue = 0;
|
|
@@ -3399,6 +3503,17 @@
|
|
|
3399
3503
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
3400
3504
|
styleQueue.sheets.clear();
|
|
3401
3505
|
}
|
|
3506
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
3507
|
+
(resumableState.instructions & SentCompletedShellId) === NothingSent &&
|
|
3508
|
+
((resumableState.instructions |= SentCompletedShellId),
|
|
3509
|
+
target.push(
|
|
3510
|
+
completedShellIdAttributeStart,
|
|
3511
|
+
stringToChunk(
|
|
3512
|
+
escapeTextForBrowser("_" + resumableState.idPrefix + "R_")
|
|
3513
|
+
),
|
|
3514
|
+
attributeEnd
|
|
3515
|
+
));
|
|
3516
|
+
}
|
|
3402
3517
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
3403
3518
|
writeChunk(destination, arrayFirstOpenBracket);
|
|
3404
3519
|
var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
|
|
@@ -3515,7 +3630,7 @@
|
|
|
3515
3630
|
);
|
|
3516
3631
|
}
|
|
3517
3632
|
function createHoistableState() {
|
|
3518
|
-
return { styles: new Set(), stylesheets: new Set() };
|
|
3633
|
+
return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
|
|
3519
3634
|
}
|
|
3520
3635
|
function preloadBootstrapScriptOrModule(
|
|
3521
3636
|
resumableState,
|
|
@@ -3620,6 +3735,16 @@
|
|
|
3620
3735
|
function hoistStylesheetDependency(stylesheet) {
|
|
3621
3736
|
this.stylesheets.add(stylesheet);
|
|
3622
3737
|
}
|
|
3738
|
+
function hoistHoistables(parentState, childState) {
|
|
3739
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
|
3740
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
|
3741
|
+
childState.suspenseyImages && (parentState.suspenseyImages = !0);
|
|
3742
|
+
}
|
|
3743
|
+
function hasSuspenseyContent(hoistableState) {
|
|
3744
|
+
return (
|
|
3745
|
+
0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages
|
|
3746
|
+
);
|
|
3747
|
+
}
|
|
3623
3748
|
function getComponentNameFromType(type) {
|
|
3624
3749
|
if (null == type) return null;
|
|
3625
3750
|
if ("function" === typeof type)
|
|
@@ -3652,7 +3777,7 @@
|
|
|
3652
3777
|
case REACT_PORTAL_TYPE:
|
|
3653
3778
|
return "Portal";
|
|
3654
3779
|
case REACT_CONTEXT_TYPE:
|
|
3655
|
-
return
|
|
3780
|
+
return type.displayName || "Context";
|
|
3656
3781
|
case REACT_CONSUMER_TYPE:
|
|
3657
3782
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
3658
3783
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -3801,13 +3926,12 @@
|
|
|
3801
3926
|
x >>>= 0;
|
|
3802
3927
|
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
3803
3928
|
}
|
|
3804
|
-
function noop
|
|
3929
|
+
function noop() {}
|
|
3805
3930
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
3806
3931
|
index = thenableState[index];
|
|
3807
3932
|
void 0 === index
|
|
3808
3933
|
? thenableState.push(thenable)
|
|
3809
|
-
: index !== thenable &&
|
|
3810
|
-
(thenable.then(noop$2, noop$2), (thenable = index));
|
|
3934
|
+
: index !== thenable && (thenable.then(noop, noop), (thenable = index));
|
|
3811
3935
|
switch (thenable.status) {
|
|
3812
3936
|
case "fulfilled":
|
|
3813
3937
|
return thenable.value;
|
|
@@ -3815,7 +3939,7 @@
|
|
|
3815
3939
|
throw thenable.reason;
|
|
3816
3940
|
default:
|
|
3817
3941
|
"string" === typeof thenable.status
|
|
3818
|
-
? thenable.then(noop
|
|
3942
|
+
? thenable.then(noop, noop)
|
|
3819
3943
|
: ((thenableState = thenable),
|
|
3820
3944
|
(thenableState.status = "pending"),
|
|
3821
3945
|
thenableState.then(
|
|
@@ -4018,6 +4142,11 @@
|
|
|
4018
4142
|
queue.next = componentIdentity;
|
|
4019
4143
|
}
|
|
4020
4144
|
}
|
|
4145
|
+
function throwOnUseEffectEventCall() {
|
|
4146
|
+
throw Error(
|
|
4147
|
+
"A function wrapped in useEffectEvent can't be called during rendering."
|
|
4148
|
+
);
|
|
4149
|
+
}
|
|
4021
4150
|
function unsupportedStartTransition() {
|
|
4022
4151
|
throw Error("startTransition cannot be called during server rendering.");
|
|
4023
4152
|
}
|
|
@@ -4101,7 +4230,6 @@
|
|
|
4101
4230
|
function unsupportedRefresh() {
|
|
4102
4231
|
throw Error("Cache cannot be refreshed during server rendering.");
|
|
4103
4232
|
}
|
|
4104
|
-
function noop$1() {}
|
|
4105
4233
|
function disabledLog() {}
|
|
4106
4234
|
function disableLogs() {
|
|
4107
4235
|
if (0 === disabledDepth) {
|
|
@@ -4155,6 +4283,27 @@
|
|
|
4155
4283
|
error += "\n at " + structuredStackTrace[i].toString();
|
|
4156
4284
|
return error;
|
|
4157
4285
|
}
|
|
4286
|
+
function formatOwnerStack(error) {
|
|
4287
|
+
var prevPrepareStackTrace = Error.prepareStackTrace;
|
|
4288
|
+
Error.prepareStackTrace = prepareStackTrace;
|
|
4289
|
+
error = error.stack;
|
|
4290
|
+
Error.prepareStackTrace = prevPrepareStackTrace;
|
|
4291
|
+
error.startsWith("Error: react-stack-top-frame\n") &&
|
|
4292
|
+
(error = error.slice(29));
|
|
4293
|
+
prevPrepareStackTrace = error.indexOf("\n");
|
|
4294
|
+
-1 !== prevPrepareStackTrace &&
|
|
4295
|
+
(error = error.slice(prevPrepareStackTrace + 1));
|
|
4296
|
+
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
|
|
4297
|
+
-1 !== prevPrepareStackTrace &&
|
|
4298
|
+
(prevPrepareStackTrace = error.lastIndexOf(
|
|
4299
|
+
"\n",
|
|
4300
|
+
prevPrepareStackTrace
|
|
4301
|
+
));
|
|
4302
|
+
if (-1 !== prevPrepareStackTrace)
|
|
4303
|
+
error = error.slice(0, prevPrepareStackTrace);
|
|
4304
|
+
else return "";
|
|
4305
|
+
return error;
|
|
4306
|
+
}
|
|
4158
4307
|
function describeBuiltInComponentFrame(name) {
|
|
4159
4308
|
if (void 0 === prefix)
|
|
4160
4309
|
try {
|
|
@@ -4327,27 +4476,6 @@
|
|
|
4327
4476
|
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
|
4328
4477
|
return sampleLines;
|
|
4329
4478
|
}
|
|
4330
|
-
function formatOwnerStack(error) {
|
|
4331
|
-
var prevPrepareStackTrace = Error.prepareStackTrace;
|
|
4332
|
-
Error.prepareStackTrace = prepareStackTrace;
|
|
4333
|
-
error = error.stack;
|
|
4334
|
-
Error.prepareStackTrace = prevPrepareStackTrace;
|
|
4335
|
-
error.startsWith("Error: react-stack-top-frame\n") &&
|
|
4336
|
-
(error = error.slice(29));
|
|
4337
|
-
prevPrepareStackTrace = error.indexOf("\n");
|
|
4338
|
-
-1 !== prevPrepareStackTrace &&
|
|
4339
|
-
(error = error.slice(prevPrepareStackTrace + 1));
|
|
4340
|
-
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
|
|
4341
|
-
-1 !== prevPrepareStackTrace &&
|
|
4342
|
-
(prevPrepareStackTrace = error.lastIndexOf(
|
|
4343
|
-
"\n",
|
|
4344
|
-
prevPrepareStackTrace
|
|
4345
|
-
));
|
|
4346
|
-
if (-1 !== prevPrepareStackTrace)
|
|
4347
|
-
error = error.slice(0, prevPrepareStackTrace);
|
|
4348
|
-
else return "";
|
|
4349
|
-
return error;
|
|
4350
|
-
}
|
|
4351
4479
|
function describeComponentStackByType(type) {
|
|
4352
4480
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
4353
4481
|
if ("function" === typeof type)
|
|
@@ -4371,13 +4499,26 @@
|
|
|
4371
4499
|
}
|
|
4372
4500
|
return describeComponentStackByType(type);
|
|
4373
4501
|
}
|
|
4374
|
-
if ("string" === typeof type.name)
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
)
|
|
4380
|
-
|
|
4502
|
+
if ("string" === typeof type.name) {
|
|
4503
|
+
a: {
|
|
4504
|
+
payload = type.name;
|
|
4505
|
+
lazyComponent = type.env;
|
|
4506
|
+
type = type.debugLocation;
|
|
4507
|
+
if (null != type) {
|
|
4508
|
+
type = formatOwnerStack(type);
|
|
4509
|
+
var idx = type.lastIndexOf("\n");
|
|
4510
|
+
type = -1 === idx ? type : type.slice(idx + 1);
|
|
4511
|
+
if (-1 !== type.indexOf(payload)) {
|
|
4512
|
+
payload = "\n" + type;
|
|
4513
|
+
break a;
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4516
|
+
payload = describeBuiltInComponentFrame(
|
|
4517
|
+
payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
|
|
4518
|
+
);
|
|
4519
|
+
}
|
|
4520
|
+
return payload;
|
|
4521
|
+
}
|
|
4381
4522
|
}
|
|
4382
4523
|
switch (type) {
|
|
4383
4524
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
@@ -4387,6 +4528,19 @@
|
|
|
4387
4528
|
}
|
|
4388
4529
|
return "";
|
|
4389
4530
|
}
|
|
4531
|
+
function resetOwnerStackLimit() {
|
|
4532
|
+
var now = getCurrentTime();
|
|
4533
|
+
1e3 < now - lastResetTime &&
|
|
4534
|
+
((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
|
|
4535
|
+
(lastResetTime = now));
|
|
4536
|
+
}
|
|
4537
|
+
function isEligibleForOutlining(request, boundary) {
|
|
4538
|
+
return (
|
|
4539
|
+
(500 < boundary.byteSize ||
|
|
4540
|
+
hasSuspenseyContent(boundary.contentState)) &&
|
|
4541
|
+
null === boundary.contentPreamble
|
|
4542
|
+
);
|
|
4543
|
+
}
|
|
4390
4544
|
function defaultErrorHandler(error) {
|
|
4391
4545
|
if (
|
|
4392
4546
|
"object" === typeof error &&
|
|
@@ -4407,7 +4561,7 @@
|
|
|
4407
4561
|
: error.splice(
|
|
4408
4562
|
0,
|
|
4409
4563
|
0,
|
|
4410
|
-
"\u001b[0m\u001b[7m%c%s\u001b[0m%c
|
|
4564
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c",
|
|
4411
4565
|
"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",
|
|
4412
4566
|
" " + JSCompiler_inline_result + " ",
|
|
4413
4567
|
""
|
|
@@ -4418,7 +4572,6 @@
|
|
|
4418
4572
|
} else console.error(error);
|
|
4419
4573
|
return null;
|
|
4420
4574
|
}
|
|
4421
|
-
function noop() {}
|
|
4422
4575
|
function RequestInstance(
|
|
4423
4576
|
resumableState,
|
|
4424
4577
|
renderState,
|
|
@@ -4444,6 +4597,7 @@
|
|
|
4444
4597
|
this.fatalError = null;
|
|
4445
4598
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4446
4599
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
4600
|
+
this.byteSize = 0;
|
|
4447
4601
|
this.abortableTasks = abortSet;
|
|
4448
4602
|
this.pingedTasks = [];
|
|
4449
4603
|
this.clientRenderedBoundaries = [];
|
|
@@ -4473,10 +4627,7 @@
|
|
|
4473
4627
|
onPostpone,
|
|
4474
4628
|
formState
|
|
4475
4629
|
) {
|
|
4476
|
-
|
|
4477
|
-
1e3 < now - lastResetTime &&
|
|
4478
|
-
((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
|
|
4479
|
-
(lastResetTime = now));
|
|
4630
|
+
resetOwnerStackLimit();
|
|
4480
4631
|
resumableState = new RequestInstance(
|
|
4481
4632
|
resumableState,
|
|
4482
4633
|
renderState,
|
|
@@ -4514,7 +4665,7 @@
|
|
|
4514
4665
|
null,
|
|
4515
4666
|
emptyTreeContext,
|
|
4516
4667
|
null,
|
|
4517
|
-
|
|
4668
|
+
null,
|
|
4518
4669
|
emptyContextObject,
|
|
4519
4670
|
null
|
|
4520
4671
|
);
|
|
@@ -4556,75 +4707,204 @@
|
|
|
4556
4707
|
};
|
|
4557
4708
|
return children;
|
|
4558
4709
|
}
|
|
4559
|
-
function
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
1 === request.pingedTasks.length &&
|
|
4570
|
-
((request.flushScheduled = null !== request.destination),
|
|
4571
|
-
null !== request.trackedPostpones || 10 === request.status
|
|
4572
|
-
? scheduleMicrotask(function () {
|
|
4573
|
-
return performWork(request);
|
|
4574
|
-
})
|
|
4575
|
-
: setTimeout(function () {
|
|
4576
|
-
return performWork(request);
|
|
4577
|
-
}, 0));
|
|
4578
|
-
}
|
|
4579
|
-
function createSuspenseBoundary(
|
|
4580
|
-
request,
|
|
4581
|
-
fallbackAbortableTasks,
|
|
4582
|
-
contentPreamble,
|
|
4583
|
-
fallbackPreamble
|
|
4710
|
+
function resumeRequest(
|
|
4711
|
+
children,
|
|
4712
|
+
postponedState,
|
|
4713
|
+
renderState,
|
|
4714
|
+
onError,
|
|
4715
|
+
onAllReady,
|
|
4716
|
+
onShellReady,
|
|
4717
|
+
onShellError,
|
|
4718
|
+
onFatalError,
|
|
4719
|
+
onPostpone
|
|
4584
4720
|
) {
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4721
|
+
resetOwnerStackLimit();
|
|
4722
|
+
renderState = new RequestInstance(
|
|
4723
|
+
postponedState.resumableState,
|
|
4724
|
+
renderState,
|
|
4725
|
+
postponedState.rootFormatContext,
|
|
4726
|
+
postponedState.progressiveChunkSize,
|
|
4727
|
+
onError,
|
|
4728
|
+
onAllReady,
|
|
4729
|
+
onShellReady,
|
|
4730
|
+
onShellError,
|
|
4731
|
+
onFatalError,
|
|
4732
|
+
onPostpone,
|
|
4733
|
+
null
|
|
4734
|
+
);
|
|
4735
|
+
renderState.nextSegmentId = postponedState.nextSegmentId;
|
|
4736
|
+
if ("number" === typeof postponedState.replaySlots)
|
|
4737
|
+
return (
|
|
4738
|
+
(onError = createPendingSegment(
|
|
4739
|
+
renderState,
|
|
4740
|
+
0,
|
|
4741
|
+
null,
|
|
4742
|
+
postponedState.rootFormatContext,
|
|
4743
|
+
!1,
|
|
4744
|
+
!1
|
|
4745
|
+
)),
|
|
4746
|
+
(onError.parentFlushed = !0),
|
|
4747
|
+
(children = createRenderTask(
|
|
4748
|
+
renderState,
|
|
4749
|
+
null,
|
|
4750
|
+
children,
|
|
4751
|
+
-1,
|
|
4752
|
+
null,
|
|
4753
|
+
onError,
|
|
4754
|
+
null,
|
|
4755
|
+
null,
|
|
4756
|
+
renderState.abortableTasks,
|
|
4757
|
+
null,
|
|
4758
|
+
postponedState.rootFormatContext,
|
|
4759
|
+
null,
|
|
4760
|
+
emptyTreeContext,
|
|
4761
|
+
null,
|
|
4762
|
+
null,
|
|
4763
|
+
emptyContextObject,
|
|
4764
|
+
null
|
|
4765
|
+
)),
|
|
4766
|
+
pushComponentStack(children),
|
|
4767
|
+
renderState.pingedTasks.push(children),
|
|
4768
|
+
renderState
|
|
4769
|
+
);
|
|
4770
|
+
children = createReplayTask(
|
|
4771
|
+
renderState,
|
|
4772
|
+
null,
|
|
4773
|
+
{
|
|
4774
|
+
nodes: postponedState.replayNodes,
|
|
4775
|
+
slots: postponedState.replaySlots,
|
|
4776
|
+
pendingTasks: 0
|
|
4777
|
+
},
|
|
4778
|
+
children,
|
|
4779
|
+
-1,
|
|
4780
|
+
null,
|
|
4781
|
+
null,
|
|
4782
|
+
renderState.abortableTasks,
|
|
4783
|
+
null,
|
|
4784
|
+
postponedState.rootFormatContext,
|
|
4785
|
+
null,
|
|
4786
|
+
emptyTreeContext,
|
|
4787
|
+
null,
|
|
4788
|
+
null,
|
|
4789
|
+
emptyContextObject,
|
|
4790
|
+
null
|
|
4791
|
+
);
|
|
4792
|
+
pushComponentStack(children);
|
|
4793
|
+
renderState.pingedTasks.push(children);
|
|
4794
|
+
return renderState;
|
|
4795
|
+
}
|
|
4796
|
+
function resumeAndPrerenderRequest(
|
|
4797
|
+
children,
|
|
4798
|
+
postponedState,
|
|
4799
|
+
renderState,
|
|
4800
|
+
onError,
|
|
4801
|
+
onAllReady,
|
|
4802
|
+
onShellReady,
|
|
4803
|
+
onShellError,
|
|
4804
|
+
onFatalError,
|
|
4805
|
+
onPostpone
|
|
4806
|
+
) {
|
|
4807
|
+
children = resumeRequest(
|
|
4808
|
+
children,
|
|
4809
|
+
postponedState,
|
|
4810
|
+
renderState,
|
|
4811
|
+
onError,
|
|
4812
|
+
onAllReady,
|
|
4813
|
+
onShellReady,
|
|
4814
|
+
onShellError,
|
|
4815
|
+
onFatalError,
|
|
4816
|
+
onPostpone
|
|
4817
|
+
);
|
|
4818
|
+
children.trackedPostpones = {
|
|
4819
|
+
workingMap: new Map(),
|
|
4820
|
+
rootNodes: [],
|
|
4821
|
+
rootSlots: null
|
|
4822
|
+
};
|
|
4823
|
+
return children;
|
|
4824
|
+
}
|
|
4825
|
+
function resolveRequest() {
|
|
4826
|
+
if (currentRequest) return currentRequest;
|
|
4827
|
+
if (supportsRequestStorage) {
|
|
4828
|
+
var store = requestStorage.getStore();
|
|
4829
|
+
if (store) return store;
|
|
4830
|
+
}
|
|
4831
|
+
return null;
|
|
4832
|
+
}
|
|
4833
|
+
function pingTask(request, task) {
|
|
4834
|
+
request.pingedTasks.push(task);
|
|
4835
|
+
1 === request.pingedTasks.length &&
|
|
4836
|
+
((request.flushScheduled = null !== request.destination),
|
|
4837
|
+
null !== request.trackedPostpones || 10 === request.status
|
|
4838
|
+
? scheduleMicrotask(function () {
|
|
4839
|
+
return performWork(request);
|
|
4840
|
+
})
|
|
4841
|
+
: setTimeout(function () {
|
|
4842
|
+
return performWork(request);
|
|
4843
|
+
}, 0));
|
|
4844
|
+
}
|
|
4845
|
+
function createSuspenseBoundary(
|
|
4846
|
+
request,
|
|
4847
|
+
row,
|
|
4848
|
+
fallbackAbortableTasks,
|
|
4849
|
+
contentPreamble,
|
|
4850
|
+
fallbackPreamble
|
|
4851
|
+
) {
|
|
4852
|
+
fallbackAbortableTasks = {
|
|
4853
|
+
status: PENDING,
|
|
4854
|
+
rootSegmentID: -1,
|
|
4855
|
+
parentFlushed: !1,
|
|
4856
|
+
pendingTasks: 0,
|
|
4857
|
+
row: row,
|
|
4858
|
+
completedSegments: [],
|
|
4859
|
+
byteSize: 0,
|
|
4860
|
+
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
4861
|
+
errorDigest: null,
|
|
4862
|
+
contentState: createHoistableState(),
|
|
4863
|
+
fallbackState: createHoistableState(),
|
|
4864
|
+
contentPreamble: contentPreamble,
|
|
4865
|
+
fallbackPreamble: fallbackPreamble,
|
|
4866
|
+
trackedContentKeyPath: null,
|
|
4867
|
+
trackedFallbackNode: null,
|
|
4868
|
+
errorMessage: null,
|
|
4869
|
+
errorStack: null,
|
|
4870
|
+
errorComponentStack: null
|
|
4871
|
+
};
|
|
4872
|
+
null !== row &&
|
|
4873
|
+
(row.pendingTasks++,
|
|
4874
|
+
(contentPreamble = row.boundaries),
|
|
4875
|
+
null !== contentPreamble &&
|
|
4876
|
+
(request.allPendingTasks++,
|
|
4877
|
+
fallbackAbortableTasks.pendingTasks++,
|
|
4878
|
+
contentPreamble.push(fallbackAbortableTasks)),
|
|
4879
|
+
(request = row.inheritedHoistables),
|
|
4880
|
+
null !== request &&
|
|
4881
|
+
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
|
4882
|
+
return fallbackAbortableTasks;
|
|
4883
|
+
}
|
|
4884
|
+
function createRenderTask(
|
|
4885
|
+
request,
|
|
4886
|
+
thenableState,
|
|
4887
|
+
node,
|
|
4888
|
+
childIndex,
|
|
4889
|
+
blockedBoundary,
|
|
4890
|
+
blockedSegment,
|
|
4891
|
+
blockedPreamble,
|
|
4892
|
+
hoistableState,
|
|
4893
|
+
abortSet,
|
|
4894
|
+
keyPath,
|
|
4895
|
+
formatContext,
|
|
4896
|
+
context,
|
|
4897
|
+
treeContext,
|
|
4898
|
+
row,
|
|
4899
|
+
componentStack,
|
|
4900
|
+
legacyContext,
|
|
4901
|
+
debugTask
|
|
4623
4902
|
) {
|
|
4624
4903
|
request.allPendingTasks++;
|
|
4625
4904
|
null === blockedBoundary
|
|
4626
4905
|
? request.pendingRootTasks++
|
|
4627
4906
|
: blockedBoundary.pendingTasks++;
|
|
4907
|
+
null !== row && row.pendingTasks++;
|
|
4628
4908
|
var task = {
|
|
4629
4909
|
replay: null,
|
|
4630
4910
|
node: node,
|
|
@@ -4641,9 +4921,9 @@
|
|
|
4641
4921
|
formatContext: formatContext,
|
|
4642
4922
|
context: context,
|
|
4643
4923
|
treeContext: treeContext,
|
|
4924
|
+
row: row,
|
|
4644
4925
|
componentStack: componentStack,
|
|
4645
|
-
thenableState: thenableState
|
|
4646
|
-
isFallback: isFallback
|
|
4926
|
+
thenableState: thenableState
|
|
4647
4927
|
};
|
|
4648
4928
|
task.debugTask = debugTask;
|
|
4649
4929
|
abortSet.add(task);
|
|
@@ -4662,8 +4942,8 @@
|
|
|
4662
4942
|
formatContext,
|
|
4663
4943
|
context,
|
|
4664
4944
|
treeContext,
|
|
4945
|
+
row,
|
|
4665
4946
|
componentStack,
|
|
4666
|
-
isFallback,
|
|
4667
4947
|
legacyContext,
|
|
4668
4948
|
debugTask
|
|
4669
4949
|
) {
|
|
@@ -4671,6 +4951,7 @@
|
|
|
4671
4951
|
null === blockedBoundary
|
|
4672
4952
|
? request.pendingRootTasks++
|
|
4673
4953
|
: blockedBoundary.pendingTasks++;
|
|
4954
|
+
null !== row && row.pendingTasks++;
|
|
4674
4955
|
replay.pendingTasks++;
|
|
4675
4956
|
var task = {
|
|
4676
4957
|
replay: replay,
|
|
@@ -4688,9 +4969,9 @@
|
|
|
4688
4969
|
formatContext: formatContext,
|
|
4689
4970
|
context: context,
|
|
4690
4971
|
treeContext: treeContext,
|
|
4972
|
+
row: row,
|
|
4691
4973
|
componentStack: componentStack,
|
|
4692
|
-
thenableState: thenableState
|
|
4693
|
-
isFallback: isFallback
|
|
4974
|
+
thenableState: thenableState
|
|
4694
4975
|
};
|
|
4695
4976
|
task.debugTask = debugTask;
|
|
4696
4977
|
abortSet.add(task);
|
|
@@ -4763,6 +5044,27 @@
|
|
|
4763
5044
|
}
|
|
4764
5045
|
return JSCompiler_inline_result$jscomp$0;
|
|
4765
5046
|
}
|
|
5047
|
+
function pushHaltedAwaitOnComponentStack(task, debugInfo) {
|
|
5048
|
+
if (null != debugInfo)
|
|
5049
|
+
for (var i = debugInfo.length - 1; 0 <= i; i--) {
|
|
5050
|
+
var info = debugInfo[i];
|
|
5051
|
+
if ("string" === typeof info.name) break;
|
|
5052
|
+
if ("number" === typeof info.time) break;
|
|
5053
|
+
if (null != info.awaited) {
|
|
5054
|
+
var bestStack = null == info.debugStack ? info.awaited : info;
|
|
5055
|
+
if (void 0 !== bestStack.debugStack) {
|
|
5056
|
+
task.componentStack = {
|
|
5057
|
+
parent: task.componentStack,
|
|
5058
|
+
type: info,
|
|
5059
|
+
owner: bestStack.owner,
|
|
5060
|
+
stack: bestStack.debugStack
|
|
5061
|
+
};
|
|
5062
|
+
task.debugTask = bestStack.debugTask;
|
|
5063
|
+
break;
|
|
5064
|
+
}
|
|
5065
|
+
}
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
4766
5068
|
function pushServerComponentStack(task, debugInfo) {
|
|
4767
5069
|
if (null != debugInfo)
|
|
4768
5070
|
for (var i = 0; i < debugInfo.length; i++) {
|
|
@@ -4803,6 +5105,18 @@
|
|
|
4803
5105
|
pushServerComponentStack(task, node._debugInfo);
|
|
4804
5106
|
}
|
|
4805
5107
|
}
|
|
5108
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5109
|
+
componentStack
|
|
5110
|
+
) {
|
|
5111
|
+
return null === componentStack
|
|
5112
|
+
? null
|
|
5113
|
+
: {
|
|
5114
|
+
parent: componentStack.parent,
|
|
5115
|
+
type: "Suspense Fallback",
|
|
5116
|
+
owner: componentStack.owner,
|
|
5117
|
+
stack: componentStack.stack
|
|
5118
|
+
};
|
|
5119
|
+
}
|
|
4806
5120
|
function getThrownInfo(node$jscomp$0) {
|
|
4807
5121
|
var errorInfo = {};
|
|
4808
5122
|
node$jscomp$0 &&
|
|
@@ -4875,6 +5189,193 @@
|
|
|
4875
5189
|
closeWithError(request.destination, error))
|
|
4876
5190
|
: ((request.status = 13), (request.fatalError = error));
|
|
4877
5191
|
}
|
|
5192
|
+
function finishSuspenseListRow(request, row) {
|
|
5193
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
|
5194
|
+
}
|
|
5195
|
+
function unblockSuspenseListRow(
|
|
5196
|
+
request,
|
|
5197
|
+
unblockedRow,
|
|
5198
|
+
inheritedHoistables
|
|
5199
|
+
) {
|
|
5200
|
+
for (; null !== unblockedRow; ) {
|
|
5201
|
+
null !== inheritedHoistables &&
|
|
5202
|
+
(hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
|
|
5203
|
+
(unblockedRow.inheritedHoistables = inheritedHoistables));
|
|
5204
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
|
5205
|
+
if (null !== unblockedBoundaries) {
|
|
5206
|
+
unblockedRow.boundaries = null;
|
|
5207
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
|
5208
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
|
5209
|
+
null !== inheritedHoistables &&
|
|
5210
|
+
hoistHoistables(
|
|
5211
|
+
unblockedBoundary.contentState,
|
|
5212
|
+
inheritedHoistables
|
|
5213
|
+
);
|
|
5214
|
+
finishedTask(request, unblockedBoundary, null, null);
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
unblockedRow.pendingTasks--;
|
|
5218
|
+
if (0 < unblockedRow.pendingTasks) break;
|
|
5219
|
+
inheritedHoistables = unblockedRow.hoistables;
|
|
5220
|
+
unblockedRow = unblockedRow.next;
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5223
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
|
5224
|
+
var boundaries = togetherRow.boundaries;
|
|
5225
|
+
if (
|
|
5226
|
+
null !== boundaries &&
|
|
5227
|
+
togetherRow.pendingTasks === boundaries.length
|
|
5228
|
+
) {
|
|
5229
|
+
for (
|
|
5230
|
+
var allCompleteAndInlinable = !0, i = 0;
|
|
5231
|
+
i < boundaries.length;
|
|
5232
|
+
i++
|
|
5233
|
+
) {
|
|
5234
|
+
var rowBoundary = boundaries[i];
|
|
5235
|
+
if (
|
|
5236
|
+
1 !== rowBoundary.pendingTasks ||
|
|
5237
|
+
rowBoundary.parentFlushed ||
|
|
5238
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
5239
|
+
) {
|
|
5240
|
+
allCompleteAndInlinable = !1;
|
|
5241
|
+
break;
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
allCompleteAndInlinable &&
|
|
5245
|
+
unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5248
|
+
function createSuspenseListRow(previousRow) {
|
|
5249
|
+
var newRow = {
|
|
5250
|
+
pendingTasks: 1,
|
|
5251
|
+
boundaries: null,
|
|
5252
|
+
hoistables: createHoistableState(),
|
|
5253
|
+
inheritedHoistables: null,
|
|
5254
|
+
together: !1,
|
|
5255
|
+
next: null
|
|
5256
|
+
};
|
|
5257
|
+
null !== previousRow &&
|
|
5258
|
+
0 < previousRow.pendingTasks &&
|
|
5259
|
+
(newRow.pendingTasks++,
|
|
5260
|
+
(newRow.boundaries = []),
|
|
5261
|
+
(previousRow.next = newRow));
|
|
5262
|
+
return newRow;
|
|
5263
|
+
}
|
|
5264
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
5265
|
+
var prevKeyPath = task.keyPath,
|
|
5266
|
+
prevTreeContext = task.treeContext,
|
|
5267
|
+
prevRow = task.row,
|
|
5268
|
+
previousComponentStack = task.componentStack;
|
|
5269
|
+
var previousDebugTask = task.debugTask;
|
|
5270
|
+
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
|
5271
|
+
task.keyPath = keyPath;
|
|
5272
|
+
keyPath = rows.length;
|
|
5273
|
+
var previousSuspenseListRow = null;
|
|
5274
|
+
if (null !== task.replay) {
|
|
5275
|
+
var resumeSlots = task.replay.slots;
|
|
5276
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
|
5277
|
+
for (var n = 0; n < keyPath; n++) {
|
|
5278
|
+
var i =
|
|
5279
|
+
"backwards" !== revealOrder &&
|
|
5280
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
5281
|
+
? n
|
|
5282
|
+
: keyPath - 1 - n,
|
|
5283
|
+
node = rows[i];
|
|
5284
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
5285
|
+
previousSuspenseListRow
|
|
5286
|
+
);
|
|
5287
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
|
5288
|
+
var resumeSegmentID = resumeSlots[i];
|
|
5289
|
+
"number" === typeof resumeSegmentID
|
|
5290
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
|
5291
|
+
delete resumeSlots[i])
|
|
5292
|
+
: renderNode(request, task, node, i);
|
|
5293
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5294
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5295
|
+
}
|
|
5296
|
+
else
|
|
5297
|
+
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
|
5298
|
+
(n =
|
|
5299
|
+
"backwards" !== revealOrder &&
|
|
5300
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
5301
|
+
? resumeSlots
|
|
5302
|
+
: keyPath - 1 - resumeSlots),
|
|
5303
|
+
(i = rows[n]),
|
|
5304
|
+
warnForMissingKey(request, task, i),
|
|
5305
|
+
(task.row = previousSuspenseListRow =
|
|
5306
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
5307
|
+
(task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
|
|
5308
|
+
renderNode(request, task, i, n),
|
|
5309
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5310
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5311
|
+
} else if (
|
|
5312
|
+
"backwards" !== revealOrder &&
|
|
5313
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
5314
|
+
)
|
|
5315
|
+
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
|
5316
|
+
(resumeSlots = rows[revealOrder]),
|
|
5317
|
+
warnForMissingKey(request, task, resumeSlots),
|
|
5318
|
+
(task.row = previousSuspenseListRow =
|
|
5319
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
5320
|
+
(task.treeContext = pushTreeContext(
|
|
5321
|
+
prevTreeContext,
|
|
5322
|
+
keyPath,
|
|
5323
|
+
revealOrder
|
|
5324
|
+
)),
|
|
5325
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
|
5326
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5327
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5328
|
+
else {
|
|
5329
|
+
revealOrder = task.blockedSegment;
|
|
5330
|
+
resumeSlots = revealOrder.children.length;
|
|
5331
|
+
n = revealOrder.chunks.length;
|
|
5332
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
|
5333
|
+
node = rows[i];
|
|
5334
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
5335
|
+
previousSuspenseListRow
|
|
5336
|
+
);
|
|
5337
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
|
5338
|
+
resumeSegmentID = createPendingSegment(
|
|
5339
|
+
request,
|
|
5340
|
+
n,
|
|
5341
|
+
null,
|
|
5342
|
+
task.formatContext,
|
|
5343
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
|
5344
|
+
!0
|
|
5345
|
+
);
|
|
5346
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
|
5347
|
+
task.blockedSegment = resumeSegmentID;
|
|
5348
|
+
warnForMissingKey(request, task, node);
|
|
5349
|
+
try {
|
|
5350
|
+
renderNode(request, task, node, i),
|
|
5351
|
+
resumeSegmentID.lastPushedText &&
|
|
5352
|
+
resumeSegmentID.textEmbedded &&
|
|
5353
|
+
resumeSegmentID.chunks.push(textSeparator),
|
|
5354
|
+
(resumeSegmentID.status = COMPLETED),
|
|
5355
|
+
finishedSegment(request, task.blockedBoundary, resumeSegmentID),
|
|
5356
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5357
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5358
|
+
} catch (thrownValue) {
|
|
5359
|
+
throw (
|
|
5360
|
+
((resumeSegmentID.status =
|
|
5361
|
+
12 === request.status ? ABORTED : ERRORED),
|
|
5362
|
+
thrownValue)
|
|
5363
|
+
);
|
|
5364
|
+
}
|
|
5365
|
+
}
|
|
5366
|
+
task.blockedSegment = revealOrder;
|
|
5367
|
+
revealOrder.lastPushedText = !1;
|
|
5368
|
+
}
|
|
5369
|
+
null !== prevRow &&
|
|
5370
|
+
null !== previousSuspenseListRow &&
|
|
5371
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
|
5372
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
|
5373
|
+
task.treeContext = prevTreeContext;
|
|
5374
|
+
task.row = prevRow;
|
|
5375
|
+
task.keyPath = prevKeyPath;
|
|
5376
|
+
task.componentStack = previousComponentStack;
|
|
5377
|
+
task.debugTask = previousDebugTask;
|
|
5378
|
+
}
|
|
4878
5379
|
function renderWithHooks(
|
|
4879
5380
|
request,
|
|
4880
5381
|
task,
|
|
@@ -5359,26 +5860,30 @@
|
|
|
5359
5860
|
type.displayName || type.name || "Component"
|
|
5360
5861
|
);
|
|
5361
5862
|
if ("function" === typeof type.getDerivedStateFromProps) {
|
|
5362
|
-
var
|
|
5363
|
-
|
|
5863
|
+
var componentName$jscomp$4 =
|
|
5864
|
+
getComponentNameFromType(type) || "Unknown";
|
|
5865
|
+
didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5866
|
+
componentName$jscomp$4
|
|
5867
|
+
] ||
|
|
5364
5868
|
(console.error(
|
|
5365
5869
|
"%s: Function components do not support getDerivedStateFromProps.",
|
|
5366
|
-
|
|
5870
|
+
componentName$jscomp$4
|
|
5367
5871
|
),
|
|
5368
|
-
(didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5369
|
-
|
|
5872
|
+
(didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5873
|
+
componentName$jscomp$4
|
|
5874
|
+
] = !0));
|
|
5370
5875
|
}
|
|
5371
5876
|
if (
|
|
5372
5877
|
"object" === typeof type.contextType &&
|
|
5373
5878
|
null !== type.contextType
|
|
5374
5879
|
) {
|
|
5375
|
-
var
|
|
5376
|
-
didWarnAboutContextTypeOnFunctionComponent[
|
|
5880
|
+
var _componentName2 = getComponentNameFromType(type) || "Unknown";
|
|
5881
|
+
didWarnAboutContextTypeOnFunctionComponent[_componentName2] ||
|
|
5377
5882
|
(console.error(
|
|
5378
5883
|
"%s: Function components do not support contextType.",
|
|
5379
|
-
|
|
5884
|
+
_componentName2
|
|
5380
5885
|
),
|
|
5381
|
-
(didWarnAboutContextTypeOnFunctionComponent[
|
|
5886
|
+
(didWarnAboutContextTypeOnFunctionComponent[_componentName2] =
|
|
5382
5887
|
!0));
|
|
5383
5888
|
}
|
|
5384
5889
|
finishFunctionComponent(
|
|
@@ -5412,16 +5917,15 @@
|
|
|
5412
5917
|
task.blockedPreamble,
|
|
5413
5918
|
task.hoistableState,
|
|
5414
5919
|
task.formatContext,
|
|
5415
|
-
segment.lastPushedText
|
|
5416
|
-
task.isFallback
|
|
5920
|
+
segment.lastPushedText
|
|
5417
5921
|
);
|
|
5418
5922
|
segment.lastPushedText = !1;
|
|
5419
|
-
var
|
|
5420
|
-
|
|
5923
|
+
var _prevContext2 = task.formatContext,
|
|
5924
|
+
_prevKeyPath3 = task.keyPath;
|
|
5421
5925
|
task.keyPath = keyPath;
|
|
5422
5926
|
if (
|
|
5423
5927
|
(task.formatContext = getChildFormatContext(
|
|
5424
|
-
|
|
5928
|
+
_prevContext2,
|
|
5425
5929
|
type,
|
|
5426
5930
|
props
|
|
5427
5931
|
)).insertionMode === HTML_HEAD_MODE
|
|
@@ -5435,30 +5939,21 @@
|
|
|
5435
5939
|
!1
|
|
5436
5940
|
);
|
|
5437
5941
|
segment.preambleChildren.push(preambleSegment);
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
task.
|
|
5449
|
-
|
|
5450
|
-
task.context,
|
|
5451
|
-
task.treeContext,
|
|
5452
|
-
task.componentStack,
|
|
5453
|
-
task.isFallback,
|
|
5454
|
-
emptyContextObject,
|
|
5455
|
-
task.debugTask
|
|
5456
|
-
);
|
|
5457
|
-
pushComponentStack(preambleTask);
|
|
5458
|
-
request.pingedTasks.push(preambleTask);
|
|
5942
|
+
task.blockedSegment = preambleSegment;
|
|
5943
|
+
try {
|
|
5944
|
+
(preambleSegment.status = 6),
|
|
5945
|
+
renderNode(request, task, _children, -1),
|
|
5946
|
+
preambleSegment.lastPushedText &&
|
|
5947
|
+
preambleSegment.textEmbedded &&
|
|
5948
|
+
preambleSegment.chunks.push(textSeparator),
|
|
5949
|
+
(preambleSegment.status = COMPLETED),
|
|
5950
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
|
5951
|
+
} finally {
|
|
5952
|
+
task.blockedSegment = segment;
|
|
5953
|
+
}
|
|
5459
5954
|
} else renderNode(request, task, _children, -1);
|
|
5460
|
-
task.formatContext =
|
|
5461
|
-
task.keyPath =
|
|
5955
|
+
task.formatContext = _prevContext2;
|
|
5956
|
+
task.keyPath = _prevKeyPath3;
|
|
5462
5957
|
a: {
|
|
5463
5958
|
var target = segment.chunks,
|
|
5464
5959
|
resumableState = request.resumableState;
|
|
@@ -5483,19 +5978,19 @@
|
|
|
5483
5978
|
case "wbr":
|
|
5484
5979
|
break a;
|
|
5485
5980
|
case "body":
|
|
5486
|
-
if (
|
|
5981
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
|
|
5487
5982
|
resumableState.hasBody = !0;
|
|
5488
5983
|
break a;
|
|
5489
5984
|
}
|
|
5490
5985
|
break;
|
|
5491
5986
|
case "html":
|
|
5492
|
-
if (
|
|
5987
|
+
if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
|
|
5493
5988
|
resumableState.hasHtml = !0;
|
|
5494
5989
|
break a;
|
|
5495
5990
|
}
|
|
5496
5991
|
break;
|
|
5497
5992
|
case "head":
|
|
5498
|
-
if (
|
|
5993
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
|
|
5499
5994
|
}
|
|
5500
5995
|
target.push(endChunkForTag(type));
|
|
5501
5996
|
}
|
|
@@ -5513,18 +6008,94 @@
|
|
|
5513
6008
|
task.keyPath = prevKeyPath$jscomp$1;
|
|
5514
6009
|
return;
|
|
5515
6010
|
case REACT_ACTIVITY_TYPE:
|
|
5516
|
-
|
|
5517
|
-
|
|
6011
|
+
var segment$jscomp$0 = task.blockedSegment;
|
|
6012
|
+
if (null === segment$jscomp$0) {
|
|
6013
|
+
if ("hidden" !== props.mode) {
|
|
6014
|
+
var prevKeyPath$jscomp$2 = task.keyPath;
|
|
6015
|
+
task.keyPath = keyPath;
|
|
6016
|
+
renderNode(request, task, props.children, -1);
|
|
6017
|
+
task.keyPath = prevKeyPath$jscomp$2;
|
|
6018
|
+
}
|
|
6019
|
+
} else if ("hidden" !== props.mode) {
|
|
6020
|
+
segment$jscomp$0.chunks.push(startActivityBoundary);
|
|
6021
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
6022
|
+
var _prevKeyPath4 = task.keyPath;
|
|
5518
6023
|
task.keyPath = keyPath;
|
|
5519
|
-
|
|
5520
|
-
task.keyPath =
|
|
6024
|
+
renderNode(request, task, props.children, -1);
|
|
6025
|
+
task.keyPath = _prevKeyPath4;
|
|
6026
|
+
segment$jscomp$0.chunks.push(endActivityBoundary);
|
|
6027
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5521
6028
|
}
|
|
5522
6029
|
return;
|
|
5523
6030
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
6031
|
+
a: {
|
|
6032
|
+
var children$jscomp$0 = props.children,
|
|
6033
|
+
revealOrder = props.revealOrder;
|
|
6034
|
+
if (
|
|
6035
|
+
"forwards" === revealOrder ||
|
|
6036
|
+
"backwards" === revealOrder ||
|
|
6037
|
+
"unstable_legacy-backwards" === revealOrder
|
|
6038
|
+
) {
|
|
6039
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
6040
|
+
renderSuspenseListRows(
|
|
6041
|
+
request,
|
|
6042
|
+
task,
|
|
6043
|
+
keyPath,
|
|
6044
|
+
children$jscomp$0,
|
|
6045
|
+
revealOrder
|
|
6046
|
+
);
|
|
6047
|
+
break a;
|
|
6048
|
+
}
|
|
6049
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
6050
|
+
if (iteratorFn) {
|
|
6051
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
6052
|
+
if (iterator) {
|
|
6053
|
+
validateIterable(
|
|
6054
|
+
task,
|
|
6055
|
+
children$jscomp$0,
|
|
6056
|
+
-1,
|
|
6057
|
+
iterator,
|
|
6058
|
+
iteratorFn
|
|
6059
|
+
);
|
|
6060
|
+
var step = iterator.next();
|
|
6061
|
+
if (!step.done) {
|
|
6062
|
+
var rows = [];
|
|
6063
|
+
do rows.push(step.value), (step = iterator.next());
|
|
6064
|
+
while (!step.done);
|
|
6065
|
+
renderSuspenseListRows(
|
|
6066
|
+
request,
|
|
6067
|
+
task,
|
|
6068
|
+
keyPath,
|
|
6069
|
+
children$jscomp$0,
|
|
6070
|
+
revealOrder
|
|
6071
|
+
);
|
|
6072
|
+
}
|
|
6073
|
+
break a;
|
|
6074
|
+
}
|
|
6075
|
+
}
|
|
6076
|
+
}
|
|
6077
|
+
if ("together" === revealOrder) {
|
|
6078
|
+
var _prevKeyPath2 = task.keyPath,
|
|
6079
|
+
prevRow = task.row,
|
|
6080
|
+
newRow = (task.row = createSuspenseListRow(null));
|
|
6081
|
+
newRow.boundaries = [];
|
|
6082
|
+
newRow.together = !0;
|
|
6083
|
+
task.keyPath = keyPath;
|
|
6084
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
6085
|
+
0 === --newRow.pendingTasks &&
|
|
6086
|
+
finishSuspenseListRow(request, newRow);
|
|
6087
|
+
task.keyPath = _prevKeyPath2;
|
|
6088
|
+
task.row = prevRow;
|
|
6089
|
+
null !== prevRow &&
|
|
6090
|
+
0 < newRow.pendingTasks &&
|
|
6091
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
|
6092
|
+
} else {
|
|
6093
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
6094
|
+
task.keyPath = keyPath;
|
|
6095
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
6096
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
6097
|
+
}
|
|
6098
|
+
}
|
|
5528
6099
|
return;
|
|
5529
6100
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
5530
6101
|
case REACT_SCOPE_TYPE:
|
|
@@ -5533,16 +6104,27 @@
|
|
|
5533
6104
|
);
|
|
5534
6105
|
case REACT_SUSPENSE_TYPE:
|
|
5535
6106
|
a: if (null !== task.replay) {
|
|
5536
|
-
var _prevKeyPath = task.keyPath
|
|
6107
|
+
var _prevKeyPath = task.keyPath,
|
|
6108
|
+
_prevContext = task.formatContext,
|
|
6109
|
+
_prevRow = task.row;
|
|
5537
6110
|
task.keyPath = keyPath;
|
|
6111
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
6112
|
+
request.resumableState,
|
|
6113
|
+
_prevContext
|
|
6114
|
+
);
|
|
6115
|
+
task.row = null;
|
|
5538
6116
|
var _content = props.children;
|
|
5539
6117
|
try {
|
|
5540
6118
|
renderNode(request, task, _content, -1);
|
|
5541
6119
|
} finally {
|
|
5542
|
-
task.keyPath = _prevKeyPath
|
|
6120
|
+
(task.keyPath = _prevKeyPath),
|
|
6121
|
+
(task.formatContext = _prevContext),
|
|
6122
|
+
(task.row = _prevRow);
|
|
5543
6123
|
}
|
|
5544
6124
|
} else {
|
|
5545
|
-
var prevKeyPath$jscomp$
|
|
6125
|
+
var prevKeyPath$jscomp$4 = task.keyPath,
|
|
6126
|
+
prevContext$jscomp$0 = task.formatContext,
|
|
6127
|
+
prevRow$jscomp$0 = task.row,
|
|
5546
6128
|
parentBoundary = task.blockedBoundary,
|
|
5547
6129
|
parentPreamble = task.blockedPreamble,
|
|
5548
6130
|
parentHoistableState = task.hoistableState,
|
|
@@ -5554,12 +6136,14 @@
|
|
|
5554
6136
|
task.formatContext.insertionMode < HTML_MODE
|
|
5555
6137
|
? createSuspenseBoundary(
|
|
5556
6138
|
request,
|
|
6139
|
+
task.row,
|
|
5557
6140
|
fallbackAbortSet,
|
|
5558
6141
|
createPreambleState(),
|
|
5559
6142
|
createPreambleState()
|
|
5560
6143
|
)
|
|
5561
6144
|
: createSuspenseBoundary(
|
|
5562
6145
|
request,
|
|
6146
|
+
task.row,
|
|
5563
6147
|
fallbackAbortSet,
|
|
5564
6148
|
null,
|
|
5565
6149
|
null
|
|
@@ -5586,7 +6170,8 @@
|
|
|
5586
6170
|
);
|
|
5587
6171
|
contentRootSegment.parentFlushed = !0;
|
|
5588
6172
|
if (null !== request.trackedPostpones) {
|
|
5589
|
-
var
|
|
6173
|
+
var suspenseComponentStack = task.componentStack,
|
|
6174
|
+
fallbackKeyPath = [
|
|
5590
6175
|
keyPath[0],
|
|
5591
6176
|
"Suspense Fallback",
|
|
5592
6177
|
keyPath[2]
|
|
@@ -5605,22 +6190,33 @@
|
|
|
5605
6190
|
task.blockedSegment = boundarySegment;
|
|
5606
6191
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
5607
6192
|
task.keyPath = fallbackKeyPath;
|
|
6193
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
|
6194
|
+
request.resumableState,
|
|
6195
|
+
prevContext$jscomp$0
|
|
6196
|
+
);
|
|
6197
|
+
task.componentStack =
|
|
6198
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
6199
|
+
suspenseComponentStack
|
|
6200
|
+
);
|
|
5608
6201
|
boundarySegment.status = 6;
|
|
5609
6202
|
try {
|
|
5610
6203
|
renderNode(request, task, fallback, -1),
|
|
5611
6204
|
boundarySegment.lastPushedText &&
|
|
5612
6205
|
boundarySegment.textEmbedded &&
|
|
5613
6206
|
boundarySegment.chunks.push(textSeparator),
|
|
5614
|
-
(boundarySegment.status = COMPLETED)
|
|
6207
|
+
(boundarySegment.status = COMPLETED),
|
|
6208
|
+
finishedSegment(request, parentBoundary, boundarySegment);
|
|
5615
6209
|
} catch (thrownValue) {
|
|
5616
6210
|
throw (
|
|
5617
|
-
((boundarySegment.status =
|
|
6211
|
+
((boundarySegment.status =
|
|
6212
|
+
12 === request.status ? ABORTED : ERRORED),
|
|
5618
6213
|
thrownValue)
|
|
5619
6214
|
);
|
|
5620
6215
|
} finally {
|
|
5621
6216
|
(task.blockedSegment = parentSegment),
|
|
5622
6217
|
(task.blockedPreamble = parentPreamble),
|
|
5623
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
6218
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
|
6219
|
+
(task.formatContext = prevContext$jscomp$0);
|
|
5624
6220
|
}
|
|
5625
6221
|
var suspendedPrimaryTask = createRenderTask(
|
|
5626
6222
|
request,
|
|
@@ -5633,11 +6229,14 @@
|
|
|
5633
6229
|
newBoundary.contentState,
|
|
5634
6230
|
task.abortSet,
|
|
5635
6231
|
keyPath,
|
|
5636
|
-
|
|
6232
|
+
getSuspenseContentFormatContext(
|
|
6233
|
+
request.resumableState,
|
|
6234
|
+
task.formatContext
|
|
6235
|
+
),
|
|
5637
6236
|
task.context,
|
|
5638
6237
|
task.treeContext,
|
|
5639
|
-
|
|
5640
|
-
|
|
6238
|
+
null,
|
|
6239
|
+
suspenseComponentStack,
|
|
5641
6240
|
emptyContextObject,
|
|
5642
6241
|
task.debugTask
|
|
5643
6242
|
);
|
|
@@ -5649,6 +6248,11 @@
|
|
|
5649
6248
|
task.hoistableState = newBoundary.contentState;
|
|
5650
6249
|
task.blockedSegment = contentRootSegment;
|
|
5651
6250
|
task.keyPath = keyPath;
|
|
6251
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
6252
|
+
request.resumableState,
|
|
6253
|
+
prevContext$jscomp$0
|
|
6254
|
+
);
|
|
6255
|
+
task.row = null;
|
|
5652
6256
|
contentRootSegment.status = 6;
|
|
5653
6257
|
try {
|
|
5654
6258
|
if (
|
|
@@ -5657,23 +6261,35 @@
|
|
|
5657
6261
|
contentRootSegment.textEmbedded &&
|
|
5658
6262
|
contentRootSegment.chunks.push(textSeparator),
|
|
5659
6263
|
(contentRootSegment.status = COMPLETED),
|
|
6264
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
|
5660
6265
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
5661
6266
|
0 === newBoundary.pendingTasks &&
|
|
5662
6267
|
newBoundary.status === PENDING)
|
|
5663
6268
|
) {
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
6269
|
+
if (
|
|
6270
|
+
((newBoundary.status = COMPLETED),
|
|
6271
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
6272
|
+
) {
|
|
6273
|
+
null !== prevRow$jscomp$0 &&
|
|
6274
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
6275
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
|
6276
|
+
0 === request.pendingRootTasks &&
|
|
6277
|
+
task.blockedPreamble &&
|
|
6278
|
+
preparePreamble(request);
|
|
6279
|
+
break a;
|
|
6280
|
+
}
|
|
6281
|
+
} else
|
|
6282
|
+
null !== prevRow$jscomp$0 &&
|
|
6283
|
+
prevRow$jscomp$0.together &&
|
|
6284
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
|
5670
6285
|
} catch (thrownValue$2) {
|
|
5671
6286
|
newBoundary.status = CLIENT_RENDERED;
|
|
5672
6287
|
if (12 === request.status) {
|
|
5673
|
-
contentRootSegment.status =
|
|
6288
|
+
contentRootSegment.status = ABORTED;
|
|
5674
6289
|
var error = request.fatalError;
|
|
5675
6290
|
} else
|
|
5676
|
-
(contentRootSegment.status =
|
|
6291
|
+
(contentRootSegment.status = ERRORED),
|
|
6292
|
+
(error = thrownValue$2);
|
|
5677
6293
|
var thrownInfo = getThrownInfo(task.componentStack);
|
|
5678
6294
|
var errorDigest = logRecoverableError(
|
|
5679
6295
|
request,
|
|
@@ -5694,7 +6310,9 @@
|
|
|
5694
6310
|
(task.blockedPreamble = parentPreamble),
|
|
5695
6311
|
(task.hoistableState = parentHoistableState),
|
|
5696
6312
|
(task.blockedSegment = parentSegment),
|
|
5697
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
6313
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
|
6314
|
+
(task.formatContext = prevContext$jscomp$0),
|
|
6315
|
+
(task.row = prevRow$jscomp$0);
|
|
5698
6316
|
}
|
|
5699
6317
|
var suspendedFallbackTask = createRenderTask(
|
|
5700
6318
|
request,
|
|
@@ -5707,11 +6325,16 @@
|
|
|
5707
6325
|
newBoundary.fallbackState,
|
|
5708
6326
|
fallbackAbortSet,
|
|
5709
6327
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5710
|
-
|
|
6328
|
+
getSuspenseFallbackFormatContext(
|
|
6329
|
+
request.resumableState,
|
|
6330
|
+
task.formatContext
|
|
6331
|
+
),
|
|
5711
6332
|
task.context,
|
|
5712
6333
|
task.treeContext,
|
|
5713
|
-
task.
|
|
5714
|
-
|
|
6334
|
+
task.row,
|
|
6335
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
6336
|
+
task.componentStack
|
|
6337
|
+
),
|
|
5715
6338
|
emptyContextObject,
|
|
5716
6339
|
task.debugTask
|
|
5717
6340
|
);
|
|
@@ -5729,7 +6352,7 @@
|
|
|
5729
6352
|
for (var key in props)
|
|
5730
6353
|
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
5731
6354
|
} else propsWithoutRef = props;
|
|
5732
|
-
var children$jscomp$
|
|
6355
|
+
var children$jscomp$1 = renderWithHooks(
|
|
5733
6356
|
request,
|
|
5734
6357
|
task,
|
|
5735
6358
|
keyPath,
|
|
@@ -5741,7 +6364,7 @@
|
|
|
5741
6364
|
request,
|
|
5742
6365
|
task,
|
|
5743
6366
|
keyPath,
|
|
5744
|
-
children$jscomp$
|
|
6367
|
+
children$jscomp$1,
|
|
5745
6368
|
0 !== localIdCounter,
|
|
5746
6369
|
actionStateCounter,
|
|
5747
6370
|
actionStateMatchingIndex
|
|
@@ -5750,12 +6373,11 @@
|
|
|
5750
6373
|
case REACT_MEMO_TYPE:
|
|
5751
6374
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
5752
6375
|
return;
|
|
5753
|
-
case REACT_PROVIDER_TYPE:
|
|
5754
6376
|
case REACT_CONTEXT_TYPE:
|
|
5755
6377
|
var value$jscomp$0 = props.value,
|
|
5756
|
-
children$jscomp$
|
|
6378
|
+
children$jscomp$2 = props.children;
|
|
5757
6379
|
var prevSnapshot = task.context;
|
|
5758
|
-
var prevKeyPath$jscomp$
|
|
6380
|
+
var prevKeyPath$jscomp$5 = task.keyPath;
|
|
5759
6381
|
var prevValue = type._currentValue;
|
|
5760
6382
|
type._currentValue = value$jscomp$0;
|
|
5761
6383
|
void 0 !== type._currentRenderer &&
|
|
@@ -5776,7 +6398,7 @@
|
|
|
5776
6398
|
currentActiveSnapshot = newNode;
|
|
5777
6399
|
task.context = newNode;
|
|
5778
6400
|
task.keyPath = keyPath;
|
|
5779
|
-
renderNodeDestructive(request, task, children$jscomp$
|
|
6401
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
5780
6402
|
var prevSnapshot$jscomp$0 = currentActiveSnapshot;
|
|
5781
6403
|
if (null === prevSnapshot$jscomp$0)
|
|
5782
6404
|
throw Error(
|
|
@@ -5798,7 +6420,7 @@
|
|
|
5798
6420
|
var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
|
|
5799
6421
|
prevSnapshot$jscomp$0.parent);
|
|
5800
6422
|
task.context = JSCompiler_inline_result$jscomp$0;
|
|
5801
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6423
|
+
task.keyPath = prevKeyPath$jscomp$5;
|
|
5802
6424
|
prevSnapshot !== task.context &&
|
|
5803
6425
|
console.error(
|
|
5804
6426
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
|
@@ -5812,10 +6434,10 @@
|
|
|
5812
6434
|
"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."
|
|
5813
6435
|
);
|
|
5814
6436
|
var newChildren = render(context$jscomp$0._currentValue),
|
|
5815
|
-
prevKeyPath$jscomp$
|
|
6437
|
+
prevKeyPath$jscomp$6 = task.keyPath;
|
|
5816
6438
|
task.keyPath = keyPath;
|
|
5817
6439
|
renderNodeDestructive(request, task, newChildren, -1);
|
|
5818
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6440
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
5819
6441
|
return;
|
|
5820
6442
|
case REACT_LAZY_TYPE:
|
|
5821
6443
|
var Component = callLazyInitInDEV(type);
|
|
@@ -5856,6 +6478,7 @@
|
|
|
5856
6478
|
(task.blockedSegment = resumedSegment),
|
|
5857
6479
|
renderNode(request, task, node, childIndex),
|
|
5858
6480
|
(resumedSegment.status = COMPLETED),
|
|
6481
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
|
5859
6482
|
null === blockedBoundary
|
|
5860
6483
|
? (request.completedRootSegment = resumedSegment)
|
|
5861
6484
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
|
@@ -5891,9 +6514,9 @@
|
|
|
5891
6514
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
5892
6515
|
);
|
|
5893
6516
|
var childNodes = node[2];
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
task.replay = { nodes: childNodes, slots:
|
|
6517
|
+
name = node[3];
|
|
6518
|
+
keyOrIndex = task.node;
|
|
6519
|
+
task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
|
|
5897
6520
|
try {
|
|
5898
6521
|
renderElement(request, task, keyPath, type, props, ref);
|
|
5899
6522
|
if (
|
|
@@ -5910,21 +6533,26 @@
|
|
|
5910
6533
|
null !== x &&
|
|
5911
6534
|
(x === SuspenseException || "function" === typeof x.then)
|
|
5912
6535
|
)
|
|
5913
|
-
throw (
|
|
6536
|
+
throw (
|
|
6537
|
+
(task.node === keyOrIndex
|
|
6538
|
+
? (task.replay = replay)
|
|
6539
|
+
: childIndex.splice(i, 1),
|
|
6540
|
+
x)
|
|
6541
|
+
);
|
|
5914
6542
|
task.replay.pendingTasks--;
|
|
5915
6543
|
type = getThrownInfo(task.componentStack);
|
|
5916
6544
|
props = request;
|
|
5917
6545
|
request = task.blockedBoundary;
|
|
5918
6546
|
keyPath = x;
|
|
5919
|
-
ref =
|
|
5920
|
-
|
|
6547
|
+
ref = name;
|
|
6548
|
+
name = logRecoverableError(props, keyPath, type, task.debugTask);
|
|
5921
6549
|
abortRemainingReplayNodes(
|
|
5922
6550
|
props,
|
|
5923
6551
|
request,
|
|
5924
6552
|
childNodes,
|
|
5925
6553
|
ref,
|
|
5926
6554
|
keyPath,
|
|
5927
|
-
|
|
6555
|
+
name,
|
|
5928
6556
|
type,
|
|
5929
6557
|
!1
|
|
5930
6558
|
);
|
|
@@ -5939,12 +6567,14 @@
|
|
|
5939
6567
|
);
|
|
5940
6568
|
a: {
|
|
5941
6569
|
replay = void 0;
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
6570
|
+
name = node[5];
|
|
6571
|
+
type = node[2];
|
|
6572
|
+
ref = node[3];
|
|
5945
6573
|
keyOrIndex = null === node[4] ? [] : node[4][2];
|
|
5946
6574
|
node = null === node[4] ? null : node[4][3];
|
|
5947
6575
|
var prevKeyPath = task.keyPath,
|
|
6576
|
+
prevContext = task.formatContext,
|
|
6577
|
+
prevRow = task.row,
|
|
5948
6578
|
previousReplaySet = task.replay,
|
|
5949
6579
|
parentBoundary = task.blockedBoundary,
|
|
5950
6580
|
parentHoistableState = task.hoistableState,
|
|
@@ -5955,22 +6585,29 @@
|
|
|
5955
6585
|
task.formatContext.insertionMode < HTML_MODE
|
|
5956
6586
|
? createSuspenseBoundary(
|
|
5957
6587
|
request,
|
|
6588
|
+
task.row,
|
|
5958
6589
|
fallbackAbortSet,
|
|
5959
6590
|
createPreambleState(),
|
|
5960
6591
|
createPreambleState()
|
|
5961
6592
|
)
|
|
5962
6593
|
: createSuspenseBoundary(
|
|
5963
6594
|
request,
|
|
6595
|
+
task.row,
|
|
5964
6596
|
fallbackAbortSet,
|
|
5965
6597
|
null,
|
|
5966
6598
|
null
|
|
5967
6599
|
);
|
|
5968
6600
|
props.parentFlushed = !0;
|
|
5969
|
-
props.rootSegmentID =
|
|
6601
|
+
props.rootSegmentID = name;
|
|
5970
6602
|
task.blockedBoundary = props;
|
|
5971
6603
|
task.hoistableState = props.contentState;
|
|
5972
6604
|
task.keyPath = keyPath;
|
|
5973
|
-
task.
|
|
6605
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
6606
|
+
request.resumableState,
|
|
6607
|
+
prevContext
|
|
6608
|
+
);
|
|
6609
|
+
task.row = null;
|
|
6610
|
+
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
|
5974
6611
|
try {
|
|
5975
6612
|
renderNode(request, task, content, -1);
|
|
5976
6613
|
if (
|
|
@@ -6002,7 +6639,9 @@
|
|
|
6002
6639
|
(task.blockedBoundary = parentBoundary),
|
|
6003
6640
|
(task.hoistableState = parentHoistableState),
|
|
6004
6641
|
(task.replay = previousReplaySet),
|
|
6005
|
-
(task.keyPath = prevKeyPath)
|
|
6642
|
+
(task.keyPath = prevKeyPath),
|
|
6643
|
+
(task.formatContext = prevContext),
|
|
6644
|
+
(task.row = prevRow);
|
|
6006
6645
|
}
|
|
6007
6646
|
props = createReplayTask(
|
|
6008
6647
|
request,
|
|
@@ -6014,11 +6653,16 @@
|
|
|
6014
6653
|
props.fallbackState,
|
|
6015
6654
|
fallbackAbortSet,
|
|
6016
6655
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
6017
|
-
|
|
6656
|
+
getSuspenseFallbackFormatContext(
|
|
6657
|
+
request.resumableState,
|
|
6658
|
+
task.formatContext
|
|
6659
|
+
),
|
|
6018
6660
|
task.context,
|
|
6019
6661
|
task.treeContext,
|
|
6020
|
-
task.
|
|
6021
|
-
|
|
6662
|
+
task.row,
|
|
6663
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
6664
|
+
task.componentStack
|
|
6665
|
+
),
|
|
6022
6666
|
emptyContextObject,
|
|
6023
6667
|
task.debugTask
|
|
6024
6668
|
);
|
|
@@ -6031,6 +6675,35 @@
|
|
|
6031
6675
|
}
|
|
6032
6676
|
}
|
|
6033
6677
|
}
|
|
6678
|
+
function validateIterable(
|
|
6679
|
+
task,
|
|
6680
|
+
iterable,
|
|
6681
|
+
childIndex,
|
|
6682
|
+
iterator,
|
|
6683
|
+
iteratorFn
|
|
6684
|
+
) {
|
|
6685
|
+
if (iterator === iterable) {
|
|
6686
|
+
if (
|
|
6687
|
+
-1 !== childIndex ||
|
|
6688
|
+
null === task.componentStack ||
|
|
6689
|
+
"function" !== typeof task.componentStack.type ||
|
|
6690
|
+
"[object GeneratorFunction]" !==
|
|
6691
|
+
Object.prototype.toString.call(task.componentStack.type) ||
|
|
6692
|
+
"[object Generator]" !== Object.prototype.toString.call(iterator)
|
|
6693
|
+
)
|
|
6694
|
+
didWarnAboutGenerators ||
|
|
6695
|
+
console.error(
|
|
6696
|
+
"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."
|
|
6697
|
+
),
|
|
6698
|
+
(didWarnAboutGenerators = !0);
|
|
6699
|
+
} else
|
|
6700
|
+
iterable.entries !== iteratorFn ||
|
|
6701
|
+
didWarnAboutMaps ||
|
|
6702
|
+
(console.error(
|
|
6703
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
6704
|
+
),
|
|
6705
|
+
(didWarnAboutMaps = !0));
|
|
6706
|
+
}
|
|
6034
6707
|
function renderNodeDestructive(request, task, node, childIndex) {
|
|
6035
6708
|
null !== task.replay && "number" === typeof task.replay.slots
|
|
6036
6709
|
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
@@ -6107,52 +6780,27 @@
|
|
|
6107
6780
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
|
6108
6781
|
);
|
|
6109
6782
|
case REACT_LAZY_TYPE:
|
|
6110
|
-
|
|
6783
|
+
type = callLazyInitInDEV(node);
|
|
6111
6784
|
if (12 === request.status) throw null;
|
|
6112
|
-
renderNodeDestructive(request, task,
|
|
6785
|
+
renderNodeDestructive(request, task, type, childIndex);
|
|
6113
6786
|
return;
|
|
6114
6787
|
}
|
|
6115
6788
|
if (isArrayImpl(node)) {
|
|
6116
6789
|
renderChildrenArray(request, task, node, childIndex);
|
|
6117
6790
|
return;
|
|
6118
6791
|
}
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
"function" !== typeof task.componentStack.type ||
|
|
6131
|
-
"[object GeneratorFunction]" !==
|
|
6132
|
-
Object.prototype.toString.call(task.componentStack.type) ||
|
|
6133
|
-
"[object Generator]" !== Object.prototype.toString.call(type)
|
|
6134
|
-
)
|
|
6135
|
-
didWarnAboutGenerators ||
|
|
6136
|
-
console.error(
|
|
6137
|
-
"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."
|
|
6138
|
-
),
|
|
6139
|
-
(didWarnAboutGenerators = !0);
|
|
6140
|
-
} else
|
|
6141
|
-
node.entries !== key ||
|
|
6142
|
-
didWarnAboutMaps ||
|
|
6143
|
-
(console.error(
|
|
6144
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
6145
|
-
),
|
|
6146
|
-
(didWarnAboutMaps = !0));
|
|
6147
|
-
node = type.next();
|
|
6148
|
-
if (!node.done) {
|
|
6149
|
-
key = [];
|
|
6150
|
-
do key.push(node.value), (node = type.next());
|
|
6151
|
-
while (!node.done);
|
|
6152
|
-
renderChildrenArray(request, task, key, childIndex);
|
|
6792
|
+
if ((key = getIteratorFn(node)))
|
|
6793
|
+
if ((type = key.call(node))) {
|
|
6794
|
+
validateIterable(task, node, childIndex, type, key);
|
|
6795
|
+
node = type.next();
|
|
6796
|
+
if (!node.done) {
|
|
6797
|
+
key = [];
|
|
6798
|
+
do key.push(node.value), (node = type.next());
|
|
6799
|
+
while (!node.done);
|
|
6800
|
+
renderChildrenArray(request, task, key, childIndex);
|
|
6801
|
+
}
|
|
6802
|
+
return;
|
|
6153
6803
|
}
|
|
6154
|
-
return;
|
|
6155
|
-
}
|
|
6156
6804
|
if ("function" === typeof node.then)
|
|
6157
6805
|
return (
|
|
6158
6806
|
(task.thenableState = null),
|
|
@@ -6211,6 +6859,69 @@
|
|
|
6211
6859
|
));
|
|
6212
6860
|
}
|
|
6213
6861
|
}
|
|
6862
|
+
function warnForMissingKey(request, task, child) {
|
|
6863
|
+
if (
|
|
6864
|
+
null !== child &&
|
|
6865
|
+
"object" === typeof child &&
|
|
6866
|
+
(child.$$typeof === REACT_ELEMENT_TYPE ||
|
|
6867
|
+
child.$$typeof === REACT_PORTAL_TYPE) &&
|
|
6868
|
+
child._store &&
|
|
6869
|
+
((!child._store.validated && null == child.key) ||
|
|
6870
|
+
2 === child._store.validated)
|
|
6871
|
+
) {
|
|
6872
|
+
if ("object" !== typeof child._store)
|
|
6873
|
+
throw Error(
|
|
6874
|
+
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
|
6875
|
+
);
|
|
6876
|
+
child._store.validated = 1;
|
|
6877
|
+
var didWarnForKey = request.didWarnForKey;
|
|
6878
|
+
null == didWarnForKey &&
|
|
6879
|
+
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
|
6880
|
+
request = task.componentStack;
|
|
6881
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
|
6882
|
+
didWarnForKey.add(request);
|
|
6883
|
+
var componentName = getComponentNameFromType(child.type);
|
|
6884
|
+
didWarnForKey = child._owner;
|
|
6885
|
+
var parentOwner = request.owner;
|
|
6886
|
+
request = "";
|
|
6887
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6888
|
+
var name = getComponentNameFromType(parentOwner.type);
|
|
6889
|
+
name &&
|
|
6890
|
+
(request = "\n\nCheck the render method of `" + name + "`.");
|
|
6891
|
+
}
|
|
6892
|
+
request ||
|
|
6893
|
+
(componentName &&
|
|
6894
|
+
(request =
|
|
6895
|
+
"\n\nCheck the top-level render call using <" +
|
|
6896
|
+
componentName +
|
|
6897
|
+
">."));
|
|
6898
|
+
componentName = "";
|
|
6899
|
+
null != didWarnForKey &&
|
|
6900
|
+
parentOwner !== didWarnForKey &&
|
|
6901
|
+
((parentOwner = null),
|
|
6902
|
+
"undefined" !== typeof didWarnForKey.type
|
|
6903
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
|
6904
|
+
: "string" === typeof didWarnForKey.name &&
|
|
6905
|
+
(parentOwner = didWarnForKey.name),
|
|
6906
|
+
parentOwner &&
|
|
6907
|
+
(componentName =
|
|
6908
|
+
" It was passed a child from " + parentOwner + "."));
|
|
6909
|
+
didWarnForKey = task.componentStack;
|
|
6910
|
+
task.componentStack = {
|
|
6911
|
+
parent: task.componentStack,
|
|
6912
|
+
type: child.type,
|
|
6913
|
+
owner: child._owner,
|
|
6914
|
+
stack: child._debugStack
|
|
6915
|
+
};
|
|
6916
|
+
console.error(
|
|
6917
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
6918
|
+
request,
|
|
6919
|
+
componentName
|
|
6920
|
+
);
|
|
6921
|
+
task.componentStack = didWarnForKey;
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
}
|
|
6214
6925
|
function renderChildrenArray(request, task, children, childIndex) {
|
|
6215
6926
|
var prevKeyPath = task.keyPath,
|
|
6216
6927
|
previousComponentStack = task.componentStack;
|
|
@@ -6304,80 +7015,114 @@
|
|
|
6304
7015
|
task.debugTask = previousDebugTask;
|
|
6305
7016
|
return;
|
|
6306
7017
|
}
|
|
6307
|
-
for (j = 0; j < replayNodes; j++)
|
|
6308
|
-
childIndex = children[j]
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
7018
|
+
for (j = 0; j < replayNodes; j++)
|
|
7019
|
+
(childIndex = children[j]),
|
|
7020
|
+
warnForMissingKey(request, task, childIndex),
|
|
7021
|
+
(task.treeContext = pushTreeContext(replay, replayNodes, j)),
|
|
7022
|
+
renderNode(request, task, childIndex, j);
|
|
7023
|
+
task.treeContext = replay;
|
|
7024
|
+
task.keyPath = prevKeyPath;
|
|
7025
|
+
task.componentStack = previousComponentStack;
|
|
7026
|
+
task.debugTask = previousDebugTask;
|
|
7027
|
+
}
|
|
7028
|
+
function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
7029
|
+
boundary.status = POSTPONED;
|
|
7030
|
+
boundary.rootSegmentID = request.nextSegmentId++;
|
|
7031
|
+
request = boundary.trackedContentKeyPath;
|
|
7032
|
+
if (null === request)
|
|
7033
|
+
throw Error(
|
|
7034
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
|
7035
|
+
);
|
|
7036
|
+
var fallbackReplayNode = boundary.trackedFallbackNode,
|
|
7037
|
+
children = [],
|
|
7038
|
+
boundaryNode = trackedPostpones.workingMap.get(request);
|
|
7039
|
+
if (void 0 === boundaryNode)
|
|
7040
|
+
return (
|
|
7041
|
+
(boundary = [
|
|
7042
|
+
request[1],
|
|
7043
|
+
request[2],
|
|
7044
|
+
children,
|
|
7045
|
+
null,
|
|
7046
|
+
fallbackReplayNode,
|
|
7047
|
+
boundary.rootSegmentID
|
|
7048
|
+
]),
|
|
7049
|
+
trackedPostpones.workingMap.set(request, boundary),
|
|
7050
|
+
addToReplayParent(boundary, request[0], trackedPostpones),
|
|
7051
|
+
boundary
|
|
7052
|
+
);
|
|
7053
|
+
boundaryNode[4] = fallbackReplayNode;
|
|
7054
|
+
boundaryNode[5] = boundary.rootSegmentID;
|
|
7055
|
+
return boundaryNode;
|
|
7056
|
+
}
|
|
7057
|
+
function trackPostpone(request, trackedPostpones, task, segment) {
|
|
7058
|
+
segment.status = POSTPONED;
|
|
7059
|
+
var keyPath = task.keyPath,
|
|
7060
|
+
boundary = task.blockedBoundary;
|
|
7061
|
+
if (null === boundary)
|
|
7062
|
+
(segment.id = request.nextSegmentId++),
|
|
7063
|
+
(trackedPostpones.rootSlots = segment.id),
|
|
7064
|
+
null !== request.completedRootSegment &&
|
|
7065
|
+
(request.completedRootSegment.status = POSTPONED);
|
|
7066
|
+
else {
|
|
7067
|
+
if (null !== boundary && boundary.status === PENDING) {
|
|
7068
|
+
var boundaryNode = trackPostponedBoundary(
|
|
7069
|
+
request,
|
|
7070
|
+
trackedPostpones,
|
|
7071
|
+
boundary
|
|
7072
|
+
);
|
|
7073
|
+
if (
|
|
7074
|
+
boundary.trackedContentKeyPath === keyPath &&
|
|
7075
|
+
-1 === task.childIndex
|
|
7076
|
+
) {
|
|
7077
|
+
-1 === segment.id &&
|
|
7078
|
+
(segment.id = segment.parentFlushed
|
|
7079
|
+
? boundary.rootSegmentID
|
|
7080
|
+
: request.nextSegmentId++);
|
|
7081
|
+
boundaryNode[3] = segment.id;
|
|
7082
|
+
return;
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
-1 === segment.id &&
|
|
7086
|
+
(segment.id =
|
|
7087
|
+
segment.parentFlushed && null !== boundary
|
|
7088
|
+
? boundary.rootSegmentID
|
|
7089
|
+
: request.nextSegmentId++);
|
|
7090
|
+
if (-1 === task.childIndex)
|
|
7091
|
+
null === keyPath
|
|
7092
|
+
? (trackedPostpones.rootSlots = segment.id)
|
|
7093
|
+
: ((task = trackedPostpones.workingMap.get(keyPath)),
|
|
7094
|
+
void 0 === task
|
|
7095
|
+
? ((task = [keyPath[1], keyPath[2], [], segment.id]),
|
|
7096
|
+
addToReplayParent(task, keyPath[0], trackedPostpones))
|
|
7097
|
+
: (task[3] = segment.id));
|
|
7098
|
+
else {
|
|
7099
|
+
if (null === keyPath)
|
|
7100
|
+
if (((request = trackedPostpones.rootSlots), null === request))
|
|
7101
|
+
request = trackedPostpones.rootSlots = {};
|
|
7102
|
+
else {
|
|
7103
|
+
if ("number" === typeof request)
|
|
7104
|
+
throw Error(
|
|
7105
|
+
"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."
|
|
7106
|
+
);
|
|
6341
7107
|
}
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
parentOwner &&
|
|
6357
|
-
(componentName =
|
|
6358
|
-
" It was passed a child from " + parentOwner + "."));
|
|
6359
|
-
thrownInfo = node.componentStack;
|
|
6360
|
-
node.componentStack = {
|
|
6361
|
-
parent: node.componentStack,
|
|
6362
|
-
type: error.type,
|
|
6363
|
-
owner: error._owner,
|
|
6364
|
-
stack: error._debugStack
|
|
6365
|
-
};
|
|
6366
|
-
console.error(
|
|
6367
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
6368
|
-
resumeSlots,
|
|
6369
|
-
componentName
|
|
7108
|
+
else if (
|
|
7109
|
+
((boundary = trackedPostpones.workingMap),
|
|
7110
|
+
(boundaryNode = boundary.get(keyPath)),
|
|
7111
|
+
void 0 === boundaryNode)
|
|
7112
|
+
)
|
|
7113
|
+
(request = {}),
|
|
7114
|
+
(boundaryNode = [keyPath[1], keyPath[2], [], request]),
|
|
7115
|
+
boundary.set(keyPath, boundaryNode),
|
|
7116
|
+
addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
|
|
7117
|
+
else if (((request = boundaryNode[3]), null === request))
|
|
7118
|
+
request = boundaryNode[3] = {};
|
|
7119
|
+
else if ("number" === typeof request)
|
|
7120
|
+
throw Error(
|
|
7121
|
+
"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."
|
|
6370
7122
|
);
|
|
6371
|
-
|
|
6372
|
-
}
|
|
7123
|
+
request[task.childIndex] = segment.id;
|
|
6373
7124
|
}
|
|
6374
|
-
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
|
6375
|
-
renderNode(request, task, childIndex, j);
|
|
6376
7125
|
}
|
|
6377
|
-
task.treeContext = replay;
|
|
6378
|
-
task.keyPath = prevKeyPath;
|
|
6379
|
-
task.componentStack = previousComponentStack;
|
|
6380
|
-
task.debugTask = previousDebugTask;
|
|
6381
7126
|
}
|
|
6382
7127
|
function untrackBoundary(request, boundary) {
|
|
6383
7128
|
request = request.trackedPostpones;
|
|
@@ -6402,8 +7147,8 @@
|
|
|
6402
7147
|
task.formatContext,
|
|
6403
7148
|
task.context,
|
|
6404
7149
|
task.treeContext,
|
|
7150
|
+
task.row,
|
|
6405
7151
|
task.componentStack,
|
|
6406
|
-
task.isFallback,
|
|
6407
7152
|
emptyContextObject,
|
|
6408
7153
|
task.debugTask
|
|
6409
7154
|
);
|
|
@@ -6434,8 +7179,8 @@
|
|
|
6434
7179
|
task.formatContext,
|
|
6435
7180
|
task.context,
|
|
6436
7181
|
task.treeContext,
|
|
7182
|
+
task.row,
|
|
6437
7183
|
task.componentStack,
|
|
6438
|
-
task.isFallback,
|
|
6439
7184
|
emptyContextObject,
|
|
6440
7185
|
task.debugTask
|
|
6441
7186
|
);
|
|
@@ -6448,7 +7193,8 @@
|
|
|
6448
7193
|
previousComponentStack = task.componentStack,
|
|
6449
7194
|
previousDebugTask = task.debugTask,
|
|
6450
7195
|
segment = task.blockedSegment;
|
|
6451
|
-
if (null === segment)
|
|
7196
|
+
if (null === segment) {
|
|
7197
|
+
segment = task.replay;
|
|
6452
7198
|
try {
|
|
6453
7199
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
6454
7200
|
} catch (thrownValue) {
|
|
@@ -6458,10 +7204,13 @@
|
|
|
6458
7204
|
thrownValue === SuspenseException
|
|
6459
7205
|
? getSuspendedThenable()
|
|
6460
7206
|
: thrownValue),
|
|
6461
|
-
"object" === typeof node && null !== node)
|
|
7207
|
+
12 !== request.status && "object" === typeof node && null !== node)
|
|
6462
7208
|
) {
|
|
6463
7209
|
if ("function" === typeof node.then) {
|
|
6464
|
-
childIndex =
|
|
7210
|
+
childIndex =
|
|
7211
|
+
thrownValue === SuspenseException
|
|
7212
|
+
? getThenableStateAfterSuspending()
|
|
7213
|
+
: null;
|
|
6465
7214
|
request = spawnNewSuspendedReplayTask(
|
|
6466
7215
|
request,
|
|
6467
7216
|
task,
|
|
@@ -6473,12 +7222,16 @@
|
|
|
6473
7222
|
task.keyPath = previousKeyPath;
|
|
6474
7223
|
task.treeContext = previousTreeContext;
|
|
6475
7224
|
task.componentStack = previousComponentStack;
|
|
7225
|
+
task.replay = segment;
|
|
6476
7226
|
task.debugTask = previousDebugTask;
|
|
6477
7227
|
switchContext(previousContext);
|
|
6478
7228
|
return;
|
|
6479
7229
|
}
|
|
6480
7230
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6481
|
-
node =
|
|
7231
|
+
node =
|
|
7232
|
+
thrownValue === SuspenseException
|
|
7233
|
+
? getThenableStateAfterSuspending()
|
|
7234
|
+
: null;
|
|
6482
7235
|
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
6483
7236
|
request.pingedTasks.push(node);
|
|
6484
7237
|
task.formatContext = previousFormatContext;
|
|
@@ -6486,13 +7239,14 @@
|
|
|
6486
7239
|
task.keyPath = previousKeyPath;
|
|
6487
7240
|
task.treeContext = previousTreeContext;
|
|
6488
7241
|
task.componentStack = previousComponentStack;
|
|
7242
|
+
task.replay = segment;
|
|
6489
7243
|
task.debugTask = previousDebugTask;
|
|
6490
7244
|
switchContext(previousContext);
|
|
6491
7245
|
return;
|
|
6492
7246
|
}
|
|
6493
7247
|
}
|
|
6494
7248
|
}
|
|
6495
|
-
else {
|
|
7249
|
+
} else {
|
|
6496
7250
|
var childrenLength = segment.children.length,
|
|
6497
7251
|
chunkLength = segment.chunks.length;
|
|
6498
7252
|
try {
|
|
@@ -6506,16 +7260,16 @@
|
|
|
6506
7260
|
thrownValue$3 === SuspenseException
|
|
6507
7261
|
? getSuspendedThenable()
|
|
6508
7262
|
: thrownValue$3),
|
|
6509
|
-
"object" === typeof node && null !== node)
|
|
7263
|
+
12 !== request.status && "object" === typeof node && null !== node)
|
|
6510
7264
|
) {
|
|
6511
7265
|
if ("function" === typeof node.then) {
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
).ping;
|
|
6518
|
-
|
|
7266
|
+
segment = node;
|
|
7267
|
+
node =
|
|
7268
|
+
thrownValue$3 === SuspenseException
|
|
7269
|
+
? getThenableStateAfterSuspending()
|
|
7270
|
+
: null;
|
|
7271
|
+
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
7272
|
+
segment.then(request, request);
|
|
6519
7273
|
task.formatContext = previousFormatContext;
|
|
6520
7274
|
task.context = previousContext;
|
|
6521
7275
|
task.keyPath = previousKeyPath;
|
|
@@ -6526,9 +7280,12 @@
|
|
|
6526
7280
|
return;
|
|
6527
7281
|
}
|
|
6528
7282
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
7283
|
+
segment =
|
|
7284
|
+
thrownValue$3 === SuspenseException
|
|
7285
|
+
? getThenableStateAfterSuspending()
|
|
7286
|
+
: null;
|
|
7287
|
+
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
7288
|
+
request.pingedTasks.push(segment);
|
|
6532
7289
|
task.formatContext = previousFormatContext;
|
|
6533
7290
|
task.context = previousContext;
|
|
6534
7291
|
task.keyPath = previousKeyPath;
|
|
@@ -6549,9 +7306,11 @@
|
|
|
6549
7306
|
throw node;
|
|
6550
7307
|
}
|
|
6551
7308
|
function abortTaskSoft(task) {
|
|
6552
|
-
var boundary = task.blockedBoundary
|
|
6553
|
-
|
|
6554
|
-
null !==
|
|
7309
|
+
var boundary = task.blockedBoundary,
|
|
7310
|
+
segment = task.blockedSegment;
|
|
7311
|
+
null !== segment &&
|
|
7312
|
+
((segment.status = ABORTED),
|
|
7313
|
+
finishedTask(this, boundary, task.row, segment));
|
|
6555
7314
|
}
|
|
6556
7315
|
function abortRemainingReplayNodes(
|
|
6557
7316
|
request$jscomp$0,
|
|
@@ -6585,6 +7344,7 @@
|
|
|
6585
7344
|
wasAborted = aborted,
|
|
6586
7345
|
resumedBoundary = createSuspenseBoundary(
|
|
6587
7346
|
request,
|
|
7347
|
+
null,
|
|
6588
7348
|
new Set(),
|
|
6589
7349
|
null,
|
|
6590
7350
|
null
|
|
@@ -6629,48 +7389,83 @@
|
|
|
6629
7389
|
segment = task.blockedSegment;
|
|
6630
7390
|
if (null !== segment) {
|
|
6631
7391
|
if (6 === segment.status) return;
|
|
6632
|
-
segment.status =
|
|
7392
|
+
segment.status = ABORTED;
|
|
6633
7393
|
}
|
|
6634
|
-
|
|
7394
|
+
var errorInfo = getThrownInfo(task.componentStack),
|
|
7395
|
+
node = task.node;
|
|
7396
|
+
null !== node &&
|
|
7397
|
+
"object" === typeof node &&
|
|
7398
|
+
pushHaltedAwaitOnComponentStack(task, node._debugInfo);
|
|
6635
7399
|
if (null === boundary) {
|
|
6636
7400
|
if (13 !== request.status && request.status !== CLOSED) {
|
|
6637
7401
|
boundary = task.replay;
|
|
6638
7402
|
if (null === boundary) {
|
|
6639
|
-
|
|
6640
|
-
|
|
7403
|
+
null !== request.trackedPostpones && null !== segment
|
|
7404
|
+
? ((boundary = request.trackedPostpones),
|
|
7405
|
+
logRecoverableError(request, error, errorInfo, task.debugTask),
|
|
7406
|
+
trackPostpone(request, boundary, task, segment),
|
|
7407
|
+
finishedTask(request, null, task.row, segment))
|
|
7408
|
+
: (logRecoverableError(request, error, errorInfo, task.debugTask),
|
|
7409
|
+
fatalError(request, error, errorInfo, task.debugTask));
|
|
6641
7410
|
return;
|
|
6642
7411
|
}
|
|
6643
7412
|
boundary.pendingTasks--;
|
|
6644
7413
|
0 === boundary.pendingTasks &&
|
|
6645
7414
|
0 < boundary.nodes.length &&
|
|
6646
|
-
((
|
|
7415
|
+
((segment = logRecoverableError(request, error, errorInfo, null)),
|
|
6647
7416
|
abortRemainingReplayNodes(
|
|
6648
7417
|
request,
|
|
6649
7418
|
null,
|
|
6650
7419
|
boundary.nodes,
|
|
6651
7420
|
boundary.slots,
|
|
6652
7421
|
error,
|
|
6653
|
-
task,
|
|
6654
7422
|
segment,
|
|
7423
|
+
errorInfo,
|
|
6655
7424
|
!0
|
|
6656
7425
|
));
|
|
6657
7426
|
request.pendingRootTasks--;
|
|
6658
7427
|
0 === request.pendingRootTasks && completeShell(request);
|
|
6659
7428
|
}
|
|
6660
|
-
} else
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
boundary.
|
|
7429
|
+
} else {
|
|
7430
|
+
node = request.trackedPostpones;
|
|
7431
|
+
if (boundary.status !== CLIENT_RENDERED) {
|
|
7432
|
+
if (null !== node && null !== segment)
|
|
7433
|
+
return (
|
|
7434
|
+
logRecoverableError(request, error, errorInfo, task.debugTask),
|
|
7435
|
+
trackPostpone(request, node, task, segment),
|
|
7436
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7437
|
+
return abortTask(fallbackTask, request, error);
|
|
7438
|
+
}),
|
|
7439
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
7440
|
+
finishedTask(request, boundary, task.row, segment)
|
|
7441
|
+
);
|
|
7442
|
+
boundary.status = CLIENT_RENDERED;
|
|
7443
|
+
segment = logRecoverableError(
|
|
7444
|
+
request,
|
|
7445
|
+
error,
|
|
7446
|
+
errorInfo,
|
|
7447
|
+
task.debugTask
|
|
7448
|
+
);
|
|
7449
|
+
boundary.status = CLIENT_RENDERED;
|
|
7450
|
+
encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
|
|
7451
|
+
untrackBoundary(request, boundary);
|
|
7452
|
+
boundary.parentFlushed &&
|
|
7453
|
+
request.clientRenderedBoundaries.push(boundary);
|
|
7454
|
+
}
|
|
7455
|
+
boundary.pendingTasks--;
|
|
7456
|
+
errorInfo = boundary.row;
|
|
7457
|
+
null !== errorInfo &&
|
|
7458
|
+
0 === --errorInfo.pendingTasks &&
|
|
7459
|
+
finishSuspenseListRow(request, errorInfo);
|
|
7460
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7461
|
+
return abortTask(fallbackTask, request, error);
|
|
7462
|
+
});
|
|
7463
|
+
boundary.fallbackAbortableTasks.clear();
|
|
7464
|
+
}
|
|
7465
|
+
task = task.row;
|
|
7466
|
+
null !== task &&
|
|
7467
|
+
0 === --task.pendingTasks &&
|
|
7468
|
+
finishSuspenseListRow(request, task);
|
|
6674
7469
|
request.allPendingTasks--;
|
|
6675
7470
|
0 === request.allPendingTasks && completeAll(request);
|
|
6676
7471
|
}
|
|
@@ -6768,11 +7563,28 @@
|
|
|
6768
7563
|
var childSegment = segment.children[0];
|
|
6769
7564
|
childSegment.id = segment.id;
|
|
6770
7565
|
childSegment.parentFlushed = !0;
|
|
6771
|
-
childSegment.status
|
|
7566
|
+
(childSegment.status !== COMPLETED &&
|
|
7567
|
+
childSegment.status !== ABORTED &&
|
|
7568
|
+
childSegment.status !== ERRORED) ||
|
|
6772
7569
|
queueCompletedSegment(boundary, childSegment);
|
|
6773
7570
|
} else boundary.completedSegments.push(segment);
|
|
6774
7571
|
}
|
|
6775
|
-
function
|
|
7572
|
+
function finishedSegment(request, boundary, segment) {
|
|
7573
|
+
if (null !== byteLengthOfChunk) {
|
|
7574
|
+
segment = segment.chunks;
|
|
7575
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
|
7576
|
+
segmentByteSize += segment[i].byteLength;
|
|
7577
|
+
null === boundary
|
|
7578
|
+
? (request.byteSize += segmentByteSize)
|
|
7579
|
+
: (boundary.byteSize += segmentByteSize);
|
|
7580
|
+
}
|
|
7581
|
+
}
|
|
7582
|
+
function finishedTask(request, boundary, row, segment) {
|
|
7583
|
+
null !== row &&
|
|
7584
|
+
(0 === --row.pendingTasks
|
|
7585
|
+
? finishSuspenseListRow(request, row)
|
|
7586
|
+
: row.together && tryToResolveTogetherRow(request, row));
|
|
7587
|
+
request.allPendingTasks--;
|
|
6776
7588
|
if (null === boundary) {
|
|
6777
7589
|
if (null !== segment && segment.parentFlushed) {
|
|
6778
7590
|
if (null !== request.completedRootSegment)
|
|
@@ -6783,35 +7595,72 @@
|
|
|
6783
7595
|
}
|
|
6784
7596
|
request.pendingRootTasks--;
|
|
6785
7597
|
0 === request.pendingRootTasks && completeShell(request);
|
|
6786
|
-
} else
|
|
6787
|
-
boundary.pendingTasks
|
|
6788
|
-
|
|
6789
|
-
(
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
7598
|
+
} else if ((boundary.pendingTasks--, boundary.status !== CLIENT_RENDERED))
|
|
7599
|
+
if (0 === boundary.pendingTasks)
|
|
7600
|
+
if (
|
|
7601
|
+
(boundary.status === PENDING && (boundary.status = COMPLETED),
|
|
7602
|
+
null !== segment &&
|
|
7603
|
+
segment.parentFlushed &&
|
|
7604
|
+
(segment.status === COMPLETED || segment.status === ABORTED) &&
|
|
7605
|
+
queueCompletedSegment(boundary, segment),
|
|
7606
|
+
boundary.parentFlushed &&
|
|
7607
|
+
request.completedBoundaries.push(boundary),
|
|
7608
|
+
boundary.status === COMPLETED)
|
|
7609
|
+
)
|
|
7610
|
+
(row = boundary.row),
|
|
7611
|
+
null !== row &&
|
|
7612
|
+
hoistHoistables(row.hoistables, boundary.contentState),
|
|
7613
|
+
isEligibleForOutlining(request, boundary) ||
|
|
7614
|
+
(boundary.fallbackAbortableTasks.forEach(
|
|
7615
|
+
abortTaskSoft,
|
|
7616
|
+
request
|
|
7617
|
+
),
|
|
7618
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
7619
|
+
null !== row &&
|
|
7620
|
+
0 === --row.pendingTasks &&
|
|
7621
|
+
finishSuspenseListRow(request, row)),
|
|
7622
|
+
0 === request.pendingRootTasks &&
|
|
7623
|
+
null === request.trackedPostpones &&
|
|
7624
|
+
null !== boundary.contentPreamble &&
|
|
7625
|
+
preparePreamble(request);
|
|
7626
|
+
else {
|
|
7627
|
+
if (
|
|
7628
|
+
boundary.status === POSTPONED &&
|
|
7629
|
+
((boundary = boundary.row), null !== boundary)
|
|
7630
|
+
) {
|
|
7631
|
+
if (null !== request.trackedPostpones) {
|
|
7632
|
+
row = request.trackedPostpones;
|
|
7633
|
+
var postponedRow = boundary.next;
|
|
7634
|
+
if (
|
|
7635
|
+
null !== postponedRow &&
|
|
7636
|
+
((segment = postponedRow.boundaries), null !== segment)
|
|
7637
|
+
)
|
|
7638
|
+
for (
|
|
7639
|
+
postponedRow.boundaries = null, postponedRow = 0;
|
|
7640
|
+
postponedRow < segment.length;
|
|
7641
|
+
postponedRow++
|
|
7642
|
+
) {
|
|
7643
|
+
var postponedBoundary = segment[postponedRow];
|
|
7644
|
+
trackPostponedBoundary(request, row, postponedBoundary);
|
|
7645
|
+
finishedTask(request, postponedBoundary, null, null);
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
0 === --boundary.pendingTasks &&
|
|
7649
|
+
finishSuspenseListRow(request, boundary);
|
|
7650
|
+
}
|
|
7651
|
+
}
|
|
7652
|
+
else
|
|
7653
|
+
null === segment ||
|
|
7654
|
+
!segment.parentFlushed ||
|
|
7655
|
+
(segment.status !== COMPLETED && segment.status !== ABORTED) ||
|
|
7656
|
+
(queueCompletedSegment(boundary, segment),
|
|
7657
|
+
1 === boundary.completedSegments.length &&
|
|
7658
|
+
boundary.parentFlushed &&
|
|
7659
|
+
request.partialBoundaries.push(boundary)),
|
|
7660
|
+
(boundary = boundary.row),
|
|
7661
|
+
null !== boundary &&
|
|
7662
|
+
boundary.together &&
|
|
7663
|
+
tryToResolveTogetherRow(request, boundary);
|
|
6815
7664
|
0 === request.allPendingTasks && completeAll(request);
|
|
6816
7665
|
}
|
|
6817
7666
|
function performWork(request$jscomp$2) {
|
|
@@ -6864,7 +7713,12 @@
|
|
|
6864
7713
|
);
|
|
6865
7714
|
request.replay.pendingTasks--;
|
|
6866
7715
|
request.abortSet.delete(request);
|
|
6867
|
-
finishedTask(
|
|
7716
|
+
finishedTask(
|
|
7717
|
+
request$jscomp$0,
|
|
7718
|
+
request.blockedBoundary,
|
|
7719
|
+
request.row,
|
|
7720
|
+
null
|
|
7721
|
+
);
|
|
6868
7722
|
} catch (thrownValue) {
|
|
6869
7723
|
resetHooksState();
|
|
6870
7724
|
var x =
|
|
@@ -6878,7 +7732,10 @@
|
|
|
6878
7732
|
) {
|
|
6879
7733
|
var ping = request.ping;
|
|
6880
7734
|
x.then(ping, ping);
|
|
6881
|
-
request.thenableState =
|
|
7735
|
+
request.thenableState =
|
|
7736
|
+
thrownValue === SuspenseException
|
|
7737
|
+
? getThenableStateAfterSuspending()
|
|
7738
|
+
: null;
|
|
6882
7739
|
} else {
|
|
6883
7740
|
request.replay.pendingTasks--;
|
|
6884
7741
|
request.abortSet.delete(request);
|
|
@@ -6939,9 +7796,15 @@
|
|
|
6939
7796
|
request$jscomp$1.chunks.push(textSeparator),
|
|
6940
7797
|
errorDigest.abortSet.delete(errorDigest),
|
|
6941
7798
|
(request$jscomp$1.status = COMPLETED),
|
|
7799
|
+
finishedSegment(
|
|
7800
|
+
request,
|
|
7801
|
+
errorDigest.blockedBoundary,
|
|
7802
|
+
request$jscomp$1
|
|
7803
|
+
),
|
|
6942
7804
|
finishedTask(
|
|
6943
7805
|
request,
|
|
6944
7806
|
errorDigest.blockedBoundary,
|
|
7807
|
+
errorDigest.row,
|
|
6945
7808
|
request$jscomp$1
|
|
6946
7809
|
);
|
|
6947
7810
|
} catch (thrownValue) {
|
|
@@ -6955,12 +7818,40 @@
|
|
|
6955
7818
|
? request.fatalError
|
|
6956
7819
|
: thrownValue;
|
|
6957
7820
|
if (
|
|
7821
|
+
12 === request.status &&
|
|
7822
|
+
null !== request.trackedPostpones
|
|
7823
|
+
) {
|
|
7824
|
+
var trackedPostpones = request.trackedPostpones,
|
|
7825
|
+
thrownInfo = getThrownInfo(errorDigest.componentStack);
|
|
7826
|
+
errorDigest.abortSet.delete(errorDigest);
|
|
7827
|
+
logRecoverableError(
|
|
7828
|
+
request,
|
|
7829
|
+
x$jscomp$0,
|
|
7830
|
+
thrownInfo,
|
|
7831
|
+
errorDigest.debugTask
|
|
7832
|
+
);
|
|
7833
|
+
trackPostpone(
|
|
7834
|
+
request,
|
|
7835
|
+
trackedPostpones,
|
|
7836
|
+
errorDigest,
|
|
7837
|
+
request$jscomp$1
|
|
7838
|
+
);
|
|
7839
|
+
finishedTask(
|
|
7840
|
+
request,
|
|
7841
|
+
errorDigest.blockedBoundary,
|
|
7842
|
+
errorDigest.row,
|
|
7843
|
+
request$jscomp$1
|
|
7844
|
+
);
|
|
7845
|
+
} else if (
|
|
6958
7846
|
"object" === typeof x$jscomp$0 &&
|
|
6959
7847
|
null !== x$jscomp$0 &&
|
|
6960
7848
|
"function" === typeof x$jscomp$0.then
|
|
6961
7849
|
) {
|
|
6962
7850
|
request$jscomp$1.status = PENDING;
|
|
6963
|
-
errorDigest.thenableState =
|
|
7851
|
+
errorDigest.thenableState =
|
|
7852
|
+
thrownValue === SuspenseException
|
|
7853
|
+
? getThenableStateAfterSuspending()
|
|
7854
|
+
: null;
|
|
6964
7855
|
var ping$jscomp$0 = errorDigest.ping;
|
|
6965
7856
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6966
7857
|
} else {
|
|
@@ -6968,42 +7859,51 @@
|
|
|
6968
7859
|
errorDigest.componentStack
|
|
6969
7860
|
);
|
|
6970
7861
|
errorDigest.abortSet.delete(errorDigest);
|
|
6971
|
-
request$jscomp$1.status =
|
|
7862
|
+
request$jscomp$1.status = ERRORED;
|
|
6972
7863
|
var boundary$jscomp$0 = errorDigest.blockedBoundary,
|
|
7864
|
+
row = errorDigest.row,
|
|
6973
7865
|
debugTask = errorDigest.debugTask;
|
|
7866
|
+
null !== row &&
|
|
7867
|
+
0 === --row.pendingTasks &&
|
|
7868
|
+
finishSuspenseListRow(request, row);
|
|
7869
|
+
request.allPendingTasks--;
|
|
6974
7870
|
prevTaskInDEV = logRecoverableError(
|
|
6975
7871
|
request,
|
|
6976
7872
|
x$jscomp$0,
|
|
6977
7873
|
errorInfo$jscomp$1,
|
|
6978
7874
|
debugTask
|
|
6979
7875
|
);
|
|
6980
|
-
null === boundary$jscomp$0
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7876
|
+
if (null === boundary$jscomp$0)
|
|
7877
|
+
fatalError(
|
|
7878
|
+
request,
|
|
7879
|
+
x$jscomp$0,
|
|
7880
|
+
errorInfo$jscomp$1,
|
|
7881
|
+
debugTask
|
|
7882
|
+
);
|
|
7883
|
+
else if (
|
|
7884
|
+
(boundary$jscomp$0.pendingTasks--,
|
|
7885
|
+
boundary$jscomp$0.status !== CLIENT_RENDERED)
|
|
7886
|
+
) {
|
|
7887
|
+
boundary$jscomp$0.status = CLIENT_RENDERED;
|
|
7888
|
+
encodeErrorForBoundary(
|
|
7889
|
+
boundary$jscomp$0,
|
|
7890
|
+
prevTaskInDEV,
|
|
7891
|
+
x$jscomp$0,
|
|
7892
|
+
errorInfo$jscomp$1,
|
|
7893
|
+
!1
|
|
7894
|
+
);
|
|
7895
|
+
untrackBoundary(request, boundary$jscomp$0);
|
|
7896
|
+
var boundaryRow = boundary$jscomp$0.row;
|
|
7897
|
+
null !== boundaryRow &&
|
|
7898
|
+
0 === --boundaryRow.pendingTasks &&
|
|
7899
|
+
finishSuspenseListRow(request, boundaryRow);
|
|
7900
|
+
boundary$jscomp$0.parentFlushed &&
|
|
7901
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
7902
|
+
0 === request.pendingRootTasks &&
|
|
7903
|
+
null === request.trackedPostpones &&
|
|
7904
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
|
7905
|
+
preparePreamble(request);
|
|
7906
|
+
}
|
|
7007
7907
|
0 === request.allPendingTasks && completeAll(request);
|
|
7008
7908
|
}
|
|
7009
7909
|
} finally {
|
|
@@ -7065,6 +7965,7 @@
|
|
|
7065
7965
|
switch (boundary.status) {
|
|
7066
7966
|
case COMPLETED:
|
|
7067
7967
|
hoistPreambleState(request.renderState, preamble);
|
|
7968
|
+
request.byteSize += boundary.byteSize;
|
|
7068
7969
|
segment = boundary.completedSegments[0];
|
|
7069
7970
|
if (!segment)
|
|
7070
7971
|
throw Error(
|
|
@@ -7097,17 +7998,17 @@
|
|
|
7097
7998
|
null === request.completedPreambleSegments
|
|
7098
7999
|
) {
|
|
7099
8000
|
var collectedPreambleSegments = [],
|
|
8001
|
+
originalRequestByteSize = request.byteSize,
|
|
7100
8002
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
7101
8003
|
request,
|
|
7102
8004
|
request.completedRootSegment,
|
|
7103
8005
|
collectedPreambleSegments
|
|
7104
8006
|
),
|
|
7105
8007
|
preamble = request.renderState.preamble;
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
(
|
|
7109
|
-
|
|
7110
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
8008
|
+
!1 === hasPendingPreambles ||
|
|
8009
|
+
(preamble.headChunks && preamble.bodyChunks)
|
|
8010
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
8011
|
+
: (request.byteSize = originalRequestByteSize);
|
|
7111
8012
|
}
|
|
7112
8013
|
}
|
|
7113
8014
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -7143,6 +8044,8 @@
|
|
|
7143
8044
|
chunkIdx < chunks.length &&
|
|
7144
8045
|
(r = writeChunkAndReturn(destination, chunks[chunkIdx]));
|
|
7145
8046
|
return r;
|
|
8047
|
+
case ABORTED:
|
|
8048
|
+
return !0;
|
|
7146
8049
|
default:
|
|
7147
8050
|
throw Error(
|
|
7148
8051
|
"Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
|
|
@@ -7155,18 +8058,19 @@
|
|
|
7155
8058
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
7156
8059
|
boundary.parentFlushed = !0;
|
|
7157
8060
|
if (boundary.status === CLIENT_RENDERED) {
|
|
7158
|
-
var
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
8061
|
+
var row = boundary.row;
|
|
8062
|
+
null !== row &&
|
|
8063
|
+
0 === --row.pendingTasks &&
|
|
8064
|
+
finishSuspenseListRow(request, row);
|
|
8065
|
+
row = boundary.errorDigest;
|
|
8066
|
+
var errorMessage = boundary.errorMessage,
|
|
8067
|
+
errorStack = boundary.errorStack;
|
|
8068
|
+
boundary = boundary.errorComponentStack;
|
|
7162
8069
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
7163
8070
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
7164
|
-
|
|
8071
|
+
row &&
|
|
7165
8072
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
|
7166
|
-
writeChunk(
|
|
7167
|
-
destination,
|
|
7168
|
-
stringToChunk(escapeTextForBrowser(errorDigest))
|
|
7169
|
-
),
|
|
8073
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(row))),
|
|
7170
8074
|
writeChunk(
|
|
7171
8075
|
destination,
|
|
7172
8076
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
|
@@ -7191,11 +8095,11 @@
|
|
|
7191
8095
|
destination,
|
|
7192
8096
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
|
7193
8097
|
));
|
|
7194
|
-
|
|
8098
|
+
boundary &&
|
|
7195
8099
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
|
|
7196
8100
|
writeChunk(
|
|
7197
8101
|
destination,
|
|
7198
|
-
stringToChunk(escapeTextForBrowser(
|
|
8102
|
+
stringToChunk(escapeTextForBrowser(boundary))
|
|
7199
8103
|
),
|
|
7200
8104
|
writeChunk(
|
|
7201
8105
|
destination,
|
|
@@ -7203,14 +8107,9 @@
|
|
|
7203
8107
|
));
|
|
7204
8108
|
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
|
7205
8109
|
flushSubtree(request, destination, segment, hoistableState);
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
}
|
|
7210
|
-
if (boundary.status !== COMPLETED)
|
|
7211
|
-
return (
|
|
7212
|
-
boundary.status === PENDING &&
|
|
7213
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
8110
|
+
} else if (boundary.status !== COMPLETED)
|
|
8111
|
+
boundary.status === PENDING &&
|
|
8112
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
7214
8113
|
0 < boundary.completedSegments.length &&
|
|
7215
8114
|
request.partialBoundaries.push(boundary),
|
|
7216
8115
|
writeStartPendingSuspenseBoundary(
|
|
@@ -7219,40 +8118,39 @@
|
|
|
7219
8118
|
boundary.rootSegmentID
|
|
7220
8119
|
),
|
|
7221
8120
|
hoistableState &&
|
|
7222
|
-
(
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
)
|
|
7231
|
-
if (boundary.byteSize > request.progressiveChunkSize)
|
|
7232
|
-
return (
|
|
7233
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
8121
|
+
hoistHoistables(hoistableState, boundary.fallbackState),
|
|
8122
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
8123
|
+
else if (
|
|
8124
|
+
!flushingPartialBoundaries &&
|
|
8125
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8126
|
+
(flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
|
|
8127
|
+
hasSuspenseyContent(boundary.contentState))
|
|
8128
|
+
)
|
|
8129
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
7234
8130
|
request.completedBoundaries.push(boundary),
|
|
7235
8131
|
writeStartPendingSuspenseBoundary(
|
|
7236
8132
|
destination,
|
|
7237
8133
|
request.renderState,
|
|
7238
8134
|
boundary.rootSegmentID
|
|
7239
8135
|
),
|
|
7240
|
-
flushSubtree(request, destination, segment, hoistableState)
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
segment.
|
|
7246
|
-
segment
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
)
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
8136
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
8137
|
+
else {
|
|
8138
|
+
flushedByteSize += boundary.byteSize;
|
|
8139
|
+
hoistableState &&
|
|
8140
|
+
hoistHoistables(hoistableState, boundary.contentState);
|
|
8141
|
+
segment = boundary.row;
|
|
8142
|
+
null !== segment &&
|
|
8143
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8144
|
+
0 === --segment.pendingTasks &&
|
|
8145
|
+
finishSuspenseListRow(request, segment);
|
|
8146
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
8147
|
+
segment = boundary.completedSegments;
|
|
8148
|
+
if (1 !== segment.length)
|
|
8149
|
+
throw Error(
|
|
8150
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
|
8151
|
+
);
|
|
8152
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
|
8153
|
+
}
|
|
7256
8154
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
|
7257
8155
|
}
|
|
7258
8156
|
function flushSegmentContainer(
|
|
@@ -7271,6 +8169,7 @@
|
|
|
7271
8169
|
return writeEndSegment(destination, segment.parentFormatContext);
|
|
7272
8170
|
}
|
|
7273
8171
|
function flushCompletedBoundary(request, destination, boundary) {
|
|
8172
|
+
flushedByteSize = boundary.byteSize;
|
|
7274
8173
|
for (
|
|
7275
8174
|
var completedSegments = boundary.completedSegments, i = 0;
|
|
7276
8175
|
i < completedSegments.length;
|
|
@@ -7283,6 +8182,11 @@
|
|
|
7283
8182
|
completedSegments[i]
|
|
7284
8183
|
);
|
|
7285
8184
|
completedSegments.length = 0;
|
|
8185
|
+
completedSegments = boundary.row;
|
|
8186
|
+
null !== completedSegments &&
|
|
8187
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8188
|
+
0 === --completedSegments.pendingTasks &&
|
|
8189
|
+
finishSuspenseListRow(request, completedSegments);
|
|
7286
8190
|
writeHoistablesForBoundary(
|
|
7287
8191
|
destination,
|
|
7288
8192
|
boundary.contentState,
|
|
@@ -7295,27 +8199,29 @@
|
|
|
7295
8199
|
var requiresStyleInsertion = request.stylesToHoist;
|
|
7296
8200
|
request.stylesToHoist = !1;
|
|
7297
8201
|
writeChunk(destination, request.startInlineScript);
|
|
8202
|
+
writeChunk(destination, endOfStartTag);
|
|
7298
8203
|
requiresStyleInsertion
|
|
7299
|
-
? (completedSegments.instructions &
|
|
8204
|
+
? ((completedSegments.instructions & SentClientRenderFunction) ===
|
|
8205
|
+
NothingSent &&
|
|
8206
|
+
((completedSegments.instructions |= SentClientRenderFunction),
|
|
8207
|
+
writeChunk(destination, clientRenderScriptFunctionOnly)),
|
|
8208
|
+
(completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
8209
|
+
NothingSent &&
|
|
8210
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
8211
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
8212
|
+
(completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
7300
8213
|
NothingSent
|
|
7301
|
-
? ((completedSegments.instructions =
|
|
7302
|
-
completedSegments.instructions |
|
|
7303
|
-
SentStyleInsertionFunction |
|
|
7304
|
-
SentCompleteBoundaryFunction),
|
|
7305
|
-
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
|
7306
|
-
: (completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
7307
|
-
NothingSent
|
|
7308
8214
|
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
|
7309
8215
|
writeChunk(
|
|
7310
8216
|
destination,
|
|
7311
8217
|
completeBoundaryWithStylesScript1FullPartial
|
|
7312
8218
|
))
|
|
7313
|
-
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
|
7314
|
-
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
7315
|
-
NothingSent
|
|
7316
|
-
|
|
7317
|
-
writeChunk(destination,
|
|
7318
|
-
|
|
8219
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial))
|
|
8220
|
+
: ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
8221
|
+
NothingSent &&
|
|
8222
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
8223
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
8224
|
+
writeChunk(destination, completeBoundaryScript1Partial));
|
|
7319
8225
|
completedSegments = stringToChunk(i.toString(16));
|
|
7320
8226
|
writeChunk(destination, request.boundaryPrefix);
|
|
7321
8227
|
writeChunk(destination, completedSegments);
|
|
@@ -7361,6 +8267,7 @@
|
|
|
7361
8267
|
boundary = request.resumableState;
|
|
7362
8268
|
request = request.renderState;
|
|
7363
8269
|
writeChunk(destination, request.startInlineScript);
|
|
8270
|
+
writeChunk(destination, endOfStartTag);
|
|
7364
8271
|
(boundary.instructions & SentCompleteSegmentFunction) === NothingSent
|
|
7365
8272
|
? ((boundary.instructions |= SentCompleteSegmentFunction),
|
|
7366
8273
|
writeChunk(destination, completeSegmentScript1Full))
|
|
@@ -7385,7 +8292,9 @@
|
|
|
7385
8292
|
if (completedRootSegment.status === POSTPONED) return;
|
|
7386
8293
|
var completedPreambleSegments = request.completedPreambleSegments;
|
|
7387
8294
|
if (null === completedPreambleSegments) return;
|
|
7388
|
-
|
|
8295
|
+
flushedByteSize = request.byteSize;
|
|
8296
|
+
var resumableState = request.resumableState,
|
|
8297
|
+
renderState = request.renderState,
|
|
7389
8298
|
preamble = renderState.preamble,
|
|
7390
8299
|
htmlChunks = preamble.htmlChunks,
|
|
7391
8300
|
headChunks = preamble.headChunks,
|
|
@@ -7428,7 +8337,9 @@
|
|
|
7428
8337
|
renderState.fontPreloads.clear();
|
|
7429
8338
|
renderState.highImagePreloads.forEach(flushResource, destination);
|
|
7430
8339
|
renderState.highImagePreloads.clear();
|
|
8340
|
+
currentlyFlushingRenderState = renderState;
|
|
7431
8341
|
renderState.styles.forEach(flushStylesInPreamble, destination);
|
|
8342
|
+
currentlyFlushingRenderState = null;
|
|
7432
8343
|
var importMapChunks = renderState.importMapChunks;
|
|
7433
8344
|
for (
|
|
7434
8345
|
i$jscomp$0 = 0;
|
|
@@ -7442,6 +8353,9 @@
|
|
|
7442
8353
|
renderState.scripts.clear();
|
|
7443
8354
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
|
7444
8355
|
renderState.bulkPreloads.clear();
|
|
8356
|
+
htmlChunks ||
|
|
8357
|
+
headChunks ||
|
|
8358
|
+
(resumableState.instructions |= SentCompletedShellId);
|
|
7445
8359
|
var hoistableChunks = renderState.hoistableChunks;
|
|
7446
8360
|
for (
|
|
7447
8361
|
i$jscomp$0 = 0;
|
|
@@ -7450,13 +8364,17 @@
|
|
|
7450
8364
|
)
|
|
7451
8365
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
|
7452
8366
|
for (
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
8367
|
+
resumableState = hoistableChunks.length = 0;
|
|
8368
|
+
resumableState < completedPreambleSegments.length;
|
|
8369
|
+
resumableState++
|
|
7456
8370
|
) {
|
|
7457
|
-
var segments = completedPreambleSegments[
|
|
7458
|
-
for (
|
|
7459
|
-
|
|
8371
|
+
var segments = completedPreambleSegments[resumableState];
|
|
8372
|
+
for (
|
|
8373
|
+
renderState = 0;
|
|
8374
|
+
renderState < segments.length;
|
|
8375
|
+
renderState++
|
|
8376
|
+
)
|
|
8377
|
+
flushSegment(request, destination, segments[renderState], null);
|
|
7460
8378
|
}
|
|
7461
8379
|
var preamble$jscomp$0 = request.renderState.preamble,
|
|
7462
8380
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
@@ -7472,11 +8390,46 @@
|
|
|
7472
8390
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
7473
8391
|
flushSegment(request, destination, completedRootSegment, null);
|
|
7474
8392
|
request.completedRootSegment = null;
|
|
7475
|
-
|
|
8393
|
+
var renderState$jscomp$0 = request.renderState;
|
|
8394
|
+
if (
|
|
8395
|
+
0 !== request.allPendingTasks ||
|
|
8396
|
+
0 !== request.clientRenderedBoundaries.length ||
|
|
8397
|
+
0 !== request.completedBoundaries.length ||
|
|
8398
|
+
(null !== request.trackedPostpones &&
|
|
8399
|
+
(0 !== request.trackedPostpones.rootNodes.length ||
|
|
8400
|
+
null !== request.trackedPostpones.rootSlots))
|
|
8401
|
+
) {
|
|
8402
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
8403
|
+
if (
|
|
8404
|
+
(resumableState$jscomp$0.instructions & SentMarkShellTime) ===
|
|
8405
|
+
NothingSent
|
|
8406
|
+
) {
|
|
8407
|
+
resumableState$jscomp$0.instructions |= SentMarkShellTime;
|
|
8408
|
+
writeChunk(destination, renderState$jscomp$0.startInlineScript);
|
|
8409
|
+
if (
|
|
8410
|
+
(resumableState$jscomp$0.instructions &
|
|
8411
|
+
SentCompletedShellId) ===
|
|
8412
|
+
NothingSent
|
|
8413
|
+
) {
|
|
8414
|
+
resumableState$jscomp$0.instructions |= SentCompletedShellId;
|
|
8415
|
+
var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
|
|
8416
|
+
writeChunk(destination, completedShellIdAttributeStart);
|
|
8417
|
+
writeChunk(
|
|
8418
|
+
destination,
|
|
8419
|
+
stringToChunk(escapeTextForBrowser(shellId))
|
|
8420
|
+
);
|
|
8421
|
+
writeChunk(destination, attributeEnd);
|
|
8422
|
+
}
|
|
8423
|
+
writeChunk(destination, endOfStartTag);
|
|
8424
|
+
writeChunk(destination, shellTimeRuntimeScript);
|
|
8425
|
+
writeChunkAndReturn(destination, endInlineScript);
|
|
8426
|
+
}
|
|
8427
|
+
}
|
|
8428
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
|
7476
8429
|
}
|
|
7477
|
-
var renderState$jscomp$
|
|
8430
|
+
var renderState$jscomp$1 = request.renderState;
|
|
7478
8431
|
completedRootSegment = 0;
|
|
7479
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
|
8432
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
|
7480
8433
|
for (
|
|
7481
8434
|
completedRootSegment = 0;
|
|
7482
8435
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
|
@@ -7487,21 +8440,21 @@
|
|
|
7487
8440
|
viewportChunks$jscomp$0[completedRootSegment]
|
|
7488
8441
|
);
|
|
7489
8442
|
viewportChunks$jscomp$0.length = 0;
|
|
7490
|
-
renderState$jscomp$
|
|
7491
|
-
renderState$jscomp$
|
|
7492
|
-
renderState$jscomp$
|
|
7493
|
-
renderState$jscomp$
|
|
7494
|
-
renderState$jscomp$
|
|
8443
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
|
8444
|
+
renderState$jscomp$1.preconnects.clear();
|
|
8445
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
|
8446
|
+
renderState$jscomp$1.fontPreloads.clear();
|
|
8447
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
|
7495
8448
|
flushResource,
|
|
7496
8449
|
destination
|
|
7497
8450
|
);
|
|
7498
|
-
renderState$jscomp$
|
|
7499
|
-
renderState$jscomp$
|
|
7500
|
-
renderState$jscomp$
|
|
7501
|
-
renderState$jscomp$
|
|
7502
|
-
renderState$jscomp$
|
|
7503
|
-
renderState$jscomp$
|
|
7504
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
|
8451
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
|
8452
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
|
8453
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
|
8454
|
+
renderState$jscomp$1.scripts.clear();
|
|
8455
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
|
8456
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
|
8457
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
|
7505
8458
|
for (
|
|
7506
8459
|
completedRootSegment = 0;
|
|
7507
8460
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
|
@@ -7515,29 +8468,32 @@
|
|
|
7515
8468
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
|
7516
8469
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
|
7517
8470
|
var boundary = clientRenderedBoundaries[i];
|
|
7518
|
-
renderState$jscomp$
|
|
7519
|
-
var resumableState = request.resumableState,
|
|
7520
|
-
renderState$jscomp$
|
|
8471
|
+
renderState$jscomp$1 = destination;
|
|
8472
|
+
var resumableState$jscomp$1 = request.resumableState,
|
|
8473
|
+
renderState$jscomp$2 = request.renderState,
|
|
7521
8474
|
id = boundary.rootSegmentID,
|
|
7522
8475
|
errorDigest = boundary.errorDigest,
|
|
7523
8476
|
errorMessage = boundary.errorMessage,
|
|
7524
8477
|
errorStack = boundary.errorStack,
|
|
7525
8478
|
errorComponentStack = boundary.errorComponentStack;
|
|
7526
8479
|
writeChunk(
|
|
7527
|
-
renderState$jscomp$
|
|
7528
|
-
renderState$jscomp$
|
|
8480
|
+
renderState$jscomp$1,
|
|
8481
|
+
renderState$jscomp$2.startInlineScript
|
|
7529
8482
|
);
|
|
7530
|
-
(
|
|
8483
|
+
writeChunk(renderState$jscomp$1, endOfStartTag);
|
|
8484
|
+
(resumableState$jscomp$1.instructions &
|
|
8485
|
+
SentClientRenderFunction) ===
|
|
7531
8486
|
NothingSent
|
|
7532
|
-
? ((resumableState.instructions |=
|
|
7533
|
-
|
|
7534
|
-
|
|
8487
|
+
? ((resumableState$jscomp$1.instructions |=
|
|
8488
|
+
SentClientRenderFunction),
|
|
8489
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
|
8490
|
+
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
|
7535
8491
|
writeChunk(
|
|
7536
|
-
renderState$jscomp$
|
|
7537
|
-
renderState$jscomp$
|
|
8492
|
+
renderState$jscomp$1,
|
|
8493
|
+
renderState$jscomp$2.boundaryPrefix
|
|
7538
8494
|
);
|
|
7539
|
-
writeChunk(renderState$jscomp$
|
|
7540
|
-
writeChunk(renderState$jscomp$
|
|
8495
|
+
writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
|
|
8496
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
|
7541
8497
|
if (
|
|
7542
8498
|
errorDigest ||
|
|
7543
8499
|
errorMessage ||
|
|
@@ -7545,50 +8501,50 @@
|
|
|
7545
8501
|
errorComponentStack
|
|
7546
8502
|
)
|
|
7547
8503
|
writeChunk(
|
|
7548
|
-
renderState$jscomp$
|
|
8504
|
+
renderState$jscomp$1,
|
|
7549
8505
|
clientRenderErrorScriptArgInterstitial
|
|
7550
8506
|
),
|
|
7551
8507
|
writeChunk(
|
|
7552
|
-
renderState$jscomp$
|
|
8508
|
+
renderState$jscomp$1,
|
|
7553
8509
|
stringToChunk(
|
|
7554
8510
|
escapeJSStringsForInstructionScripts(errorDigest || "")
|
|
7555
8511
|
)
|
|
7556
8512
|
);
|
|
7557
8513
|
if (errorMessage || errorStack || errorComponentStack)
|
|
7558
8514
|
writeChunk(
|
|
7559
|
-
renderState$jscomp$
|
|
8515
|
+
renderState$jscomp$1,
|
|
7560
8516
|
clientRenderErrorScriptArgInterstitial
|
|
7561
8517
|
),
|
|
7562
8518
|
writeChunk(
|
|
7563
|
-
renderState$jscomp$
|
|
8519
|
+
renderState$jscomp$1,
|
|
7564
8520
|
stringToChunk(
|
|
7565
8521
|
escapeJSStringsForInstructionScripts(errorMessage || "")
|
|
7566
8522
|
)
|
|
7567
8523
|
);
|
|
7568
8524
|
if (errorStack || errorComponentStack)
|
|
7569
8525
|
writeChunk(
|
|
7570
|
-
renderState$jscomp$
|
|
8526
|
+
renderState$jscomp$1,
|
|
7571
8527
|
clientRenderErrorScriptArgInterstitial
|
|
7572
8528
|
),
|
|
7573
8529
|
writeChunk(
|
|
7574
|
-
renderState$jscomp$
|
|
8530
|
+
renderState$jscomp$1,
|
|
7575
8531
|
stringToChunk(
|
|
7576
8532
|
escapeJSStringsForInstructionScripts(errorStack || "")
|
|
7577
8533
|
)
|
|
7578
8534
|
);
|
|
7579
8535
|
errorComponentStack &&
|
|
7580
8536
|
(writeChunk(
|
|
7581
|
-
renderState$jscomp$
|
|
8537
|
+
renderState$jscomp$1,
|
|
7582
8538
|
clientRenderErrorScriptArgInterstitial
|
|
7583
8539
|
),
|
|
7584
8540
|
writeChunk(
|
|
7585
|
-
renderState$jscomp$
|
|
8541
|
+
renderState$jscomp$1,
|
|
7586
8542
|
stringToChunk(
|
|
7587
8543
|
escapeJSStringsForInstructionScripts(errorComponentStack)
|
|
7588
8544
|
)
|
|
7589
8545
|
));
|
|
7590
8546
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
|
7591
|
-
renderState$jscomp$
|
|
8547
|
+
renderState$jscomp$1,
|
|
7592
8548
|
clientRenderScriptEnd
|
|
7593
8549
|
);
|
|
7594
8550
|
if (!JSCompiler_inline_result) {
|
|
@@ -7617,13 +8573,15 @@
|
|
|
7617
8573
|
completeWriting(destination);
|
|
7618
8574
|
currentView = new Uint8Array(2048);
|
|
7619
8575
|
writtenBytes = 0;
|
|
8576
|
+
flushingPartialBoundaries = !0;
|
|
7620
8577
|
var partialBoundaries = request.partialBoundaries;
|
|
7621
8578
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
7622
8579
|
a: {
|
|
7623
8580
|
clientRenderedBoundaries = request;
|
|
7624
8581
|
boundary = destination;
|
|
7625
|
-
var boundary$jscomp$0 = partialBoundaries[i]
|
|
7626
|
-
|
|
8582
|
+
var boundary$jscomp$0 = partialBoundaries[i];
|
|
8583
|
+
flushedByteSize = boundary$jscomp$0.byteSize;
|
|
8584
|
+
var completedSegments = boundary$jscomp$0.completedSegments;
|
|
7627
8585
|
for (
|
|
7628
8586
|
JSCompiler_inline_result = 0;
|
|
7629
8587
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -7643,6 +8601,17 @@
|
|
|
7643
8601
|
break a;
|
|
7644
8602
|
}
|
|
7645
8603
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8604
|
+
var row = boundary$jscomp$0.row;
|
|
8605
|
+
null !== row &&
|
|
8606
|
+
row.together &&
|
|
8607
|
+
1 === boundary$jscomp$0.pendingTasks &&
|
|
8608
|
+
(1 === row.pendingTasks
|
|
8609
|
+
? unblockSuspenseListRow(
|
|
8610
|
+
clientRenderedBoundaries,
|
|
8611
|
+
row,
|
|
8612
|
+
row.hoistables
|
|
8613
|
+
)
|
|
8614
|
+
: row.pendingTasks--);
|
|
7646
8615
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
7647
8616
|
boundary,
|
|
7648
8617
|
boundary$jscomp$0.contentState,
|
|
@@ -7657,6 +8626,7 @@
|
|
|
7657
8626
|
}
|
|
7658
8627
|
}
|
|
7659
8628
|
partialBoundaries.splice(0, i);
|
|
8629
|
+
flushingPartialBoundaries = !1;
|
|
7660
8630
|
var largeBoundaries = request.completedBoundaries;
|
|
7661
8631
|
for (i = 0; i < largeBoundaries.length; i++)
|
|
7662
8632
|
if (
|
|
@@ -7670,23 +8640,23 @@
|
|
|
7670
8640
|
largeBoundaries.splice(0, i);
|
|
7671
8641
|
}
|
|
7672
8642
|
} finally {
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
8643
|
+
(flushingPartialBoundaries = !1),
|
|
8644
|
+
0 === request.allPendingTasks &&
|
|
8645
|
+
0 === request.clientRenderedBoundaries.length &&
|
|
8646
|
+
0 === request.completedBoundaries.length
|
|
8647
|
+
? ((request.flushScheduled = !1),
|
|
8648
|
+
(i = request.resumableState),
|
|
8649
|
+
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
|
8650
|
+
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
8651
|
+
completeWriting(destination),
|
|
8652
|
+
0 !== request.abortableTasks.size &&
|
|
8653
|
+
console.error(
|
|
8654
|
+
"There was still abortable task at the root when we closed. This is a bug in React."
|
|
8655
|
+
),
|
|
8656
|
+
(request.status = CLOSED),
|
|
8657
|
+
destination.close(),
|
|
8658
|
+
(request.destination = null))
|
|
8659
|
+
: completeWriting(destination);
|
|
7690
8660
|
}
|
|
7691
8661
|
}
|
|
7692
8662
|
function startWork(request) {
|
|
@@ -7755,7 +8725,17 @@
|
|
|
7755
8725
|
: reason;
|
|
7756
8726
|
request.fatalError = error;
|
|
7757
8727
|
abortableTasks.forEach(function (task) {
|
|
7758
|
-
|
|
8728
|
+
var prevTaskInDEV = currentTaskInDEV,
|
|
8729
|
+
prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
|
|
8730
|
+
currentTaskInDEV = task;
|
|
8731
|
+
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
|
8732
|
+
try {
|
|
8733
|
+
abortTask(task, request, error);
|
|
8734
|
+
} finally {
|
|
8735
|
+
(currentTaskInDEV = prevTaskInDEV),
|
|
8736
|
+
(ReactSharedInternals.getCurrentStack =
|
|
8737
|
+
prevGetCurrentStackImpl);
|
|
8738
|
+
}
|
|
7759
8739
|
});
|
|
7760
8740
|
abortableTasks.clear();
|
|
7761
8741
|
}
|
|
@@ -7767,13 +8747,71 @@
|
|
|
7767
8747
|
fatalError(request, error$4, reason, null);
|
|
7768
8748
|
}
|
|
7769
8749
|
}
|
|
8750
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
8751
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
|
8752
|
+
else {
|
|
8753
|
+
var workingMap = trackedPostpones.workingMap,
|
|
8754
|
+
parentNode = workingMap.get(parentKeyPath);
|
|
8755
|
+
void 0 === parentNode &&
|
|
8756
|
+
((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
|
|
8757
|
+
workingMap.set(parentKeyPath, parentNode),
|
|
8758
|
+
addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
|
8759
|
+
parentNode[2].push(node);
|
|
8760
|
+
}
|
|
8761
|
+
}
|
|
8762
|
+
function getPostponedState(request) {
|
|
8763
|
+
var trackedPostpones = request.trackedPostpones;
|
|
8764
|
+
if (
|
|
8765
|
+
null === trackedPostpones ||
|
|
8766
|
+
(0 === trackedPostpones.rootNodes.length &&
|
|
8767
|
+
null === trackedPostpones.rootSlots)
|
|
8768
|
+
)
|
|
8769
|
+
return (request.trackedPostpones = null);
|
|
8770
|
+
if (
|
|
8771
|
+
null === request.completedRootSegment ||
|
|
8772
|
+
(request.completedRootSegment.status !== POSTPONED &&
|
|
8773
|
+
null !== request.completedPreambleSegments)
|
|
8774
|
+
) {
|
|
8775
|
+
var nextSegmentId = request.nextSegmentId;
|
|
8776
|
+
var replaySlots = trackedPostpones.rootSlots;
|
|
8777
|
+
var resumableState = request.resumableState;
|
|
8778
|
+
resumableState.bootstrapScriptContent = void 0;
|
|
8779
|
+
resumableState.bootstrapScripts = void 0;
|
|
8780
|
+
resumableState.bootstrapModules = void 0;
|
|
8781
|
+
} else {
|
|
8782
|
+
nextSegmentId = 0;
|
|
8783
|
+
replaySlots = -1;
|
|
8784
|
+
resumableState = request.resumableState;
|
|
8785
|
+
var renderState = request.renderState;
|
|
8786
|
+
resumableState.nextFormID = 0;
|
|
8787
|
+
resumableState.hasBody = !1;
|
|
8788
|
+
resumableState.hasHtml = !1;
|
|
8789
|
+
resumableState.unknownResources = { font: renderState.resets.font };
|
|
8790
|
+
resumableState.dnsResources = renderState.resets.dns;
|
|
8791
|
+
resumableState.connectResources = renderState.resets.connect;
|
|
8792
|
+
resumableState.imageResources = renderState.resets.image;
|
|
8793
|
+
resumableState.styleResources = renderState.resets.style;
|
|
8794
|
+
resumableState.scriptResources = {};
|
|
8795
|
+
resumableState.moduleUnknownResources = {};
|
|
8796
|
+
resumableState.moduleScriptResources = {};
|
|
8797
|
+
resumableState.instructions = NothingSent;
|
|
8798
|
+
}
|
|
8799
|
+
return {
|
|
8800
|
+
nextSegmentId: nextSegmentId,
|
|
8801
|
+
rootFormatContext: request.rootFormatContext,
|
|
8802
|
+
progressiveChunkSize: request.progressiveChunkSize,
|
|
8803
|
+
resumableState: request.resumableState,
|
|
8804
|
+
replayNodes: trackedPostpones.rootNodes,
|
|
8805
|
+
replaySlots: replaySlots
|
|
8806
|
+
};
|
|
8807
|
+
}
|
|
7770
8808
|
function ensureCorrectIsomorphicReactVersion() {
|
|
7771
8809
|
var isomorphicReactPackageVersion = React.version;
|
|
7772
|
-
if ("19.
|
|
8810
|
+
if ("19.2.4" !== isomorphicReactPackageVersion)
|
|
7773
8811
|
throw Error(
|
|
7774
8812
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7775
8813
|
(isomorphicReactPackageVersion +
|
|
7776
|
-
"\n - react-dom: 19.
|
|
8814
|
+
"\n - react-dom: 19.2.4\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7777
8815
|
);
|
|
7778
8816
|
}
|
|
7779
8817
|
var React = require("react"),
|
|
@@ -7783,7 +8821,6 @@
|
|
|
7783
8821
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
7784
8822
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
7785
8823
|
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
7786
|
-
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
|
7787
8824
|
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
7788
8825
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
7789
8826
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
@@ -7963,7 +9000,11 @@
|
|
|
7963
9000
|
"aria-rowcount": 0,
|
|
7964
9001
|
"aria-rowindex": 0,
|
|
7965
9002
|
"aria-rowspan": 0,
|
|
7966
|
-
"aria-setsize": 0
|
|
9003
|
+
"aria-setsize": 0,
|
|
9004
|
+
"aria-braillelabel": 0,
|
|
9005
|
+
"aria-brailleroledescription": 0,
|
|
9006
|
+
"aria-colindextext": 0,
|
|
9007
|
+
"aria-rowindextext": 0
|
|
7967
9008
|
},
|
|
7968
9009
|
warnedProperties$1 = {},
|
|
7969
9010
|
rARIA$1 = RegExp(
|
|
@@ -8856,26 +9897,29 @@
|
|
|
8856
9897
|
SentCompleteBoundaryFunction = 2,
|
|
8857
9898
|
SentClientRenderFunction = 4,
|
|
8858
9899
|
SentStyleInsertionFunction = 8,
|
|
9900
|
+
SentCompletedShellId = 32,
|
|
9901
|
+
SentMarkShellTime = 64,
|
|
8859
9902
|
EXISTS = null,
|
|
8860
9903
|
PRELOAD_NO_CREDS = [];
|
|
8861
9904
|
Object.freeze(PRELOAD_NO_CREDS);
|
|
9905
|
+
var currentlyFlushingRenderState = null;
|
|
8862
9906
|
stringToPrecomputedChunk('"></template>');
|
|
8863
|
-
var startInlineScript = stringToPrecomputedChunk("<script
|
|
9907
|
+
var startInlineScript = stringToPrecomputedChunk("<script"),
|
|
8864
9908
|
endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
|
|
8865
9909
|
startScriptSrc = stringToPrecomputedChunk('<script src="'),
|
|
8866
9910
|
startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
|
|
8867
|
-
scriptNonce = stringToPrecomputedChunk('
|
|
8868
|
-
scriptIntegirty = stringToPrecomputedChunk('
|
|
8869
|
-
scriptCrossOrigin = stringToPrecomputedChunk('
|
|
8870
|
-
endAsyncScript = stringToPrecomputedChunk('
|
|
9911
|
+
scriptNonce = stringToPrecomputedChunk(' nonce="'),
|
|
9912
|
+
scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
|
|
9913
|
+
scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
|
|
9914
|
+
endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
|
|
9915
|
+
startInlineStyle = stringToPrecomputedChunk("<style"),
|
|
8871
9916
|
scriptRegex = /(<\/|<)(s)(cript)/gi,
|
|
8872
9917
|
importMapScriptStart = stringToPrecomputedChunk(
|
|
8873
9918
|
'<script type="importmap">'
|
|
8874
9919
|
),
|
|
8875
9920
|
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
|
|
8876
9921
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
|
8877
|
-
var
|
|
8878
|
-
ROOT_HTML_MODE = 0,
|
|
9922
|
+
var ROOT_HTML_MODE = 0,
|
|
8879
9923
|
HTML_HTML_MODE = 1,
|
|
8880
9924
|
HTML_MODE = 2,
|
|
8881
9925
|
HTML_HEAD_MODE = 3,
|
|
@@ -8920,13 +9964,24 @@
|
|
|
8920
9964
|
formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
|
|
8921
9965
|
formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e"),
|
|
8922
9966
|
styleRegex = /(<\/|<)(s)(tyle)/gi,
|
|
9967
|
+
headPreambleContributionChunk =
|
|
9968
|
+
stringToPrecomputedChunk("\x3c!--head--\x3e"),
|
|
9969
|
+
bodyPreambleContributionChunk =
|
|
9970
|
+
stringToPrecomputedChunk("\x3c!--body--\x3e"),
|
|
9971
|
+
htmlPreambleContributionChunk =
|
|
9972
|
+
stringToPrecomputedChunk("\x3c!--html--\x3e"),
|
|
8923
9973
|
leadingNewline = stringToPrecomputedChunk("\n"),
|
|
8924
9974
|
VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
|
|
8925
9975
|
validatedTagCache = new Map(),
|
|
8926
9976
|
doctypeChunk = stringToPrecomputedChunk("<!DOCTYPE html>"),
|
|
8927
9977
|
endTagCache = new Map(),
|
|
9978
|
+
shellTimeRuntimeScript = stringToPrecomputedChunk(
|
|
9979
|
+
"requestAnimationFrame(function(){$RT=performance.now()});"
|
|
9980
|
+
),
|
|
8928
9981
|
placeholder1 = stringToPrecomputedChunk('<template id="'),
|
|
8929
9982
|
placeholder2 = stringToPrecomputedChunk('"></template>'),
|
|
9983
|
+
startActivityBoundary = stringToPrecomputedChunk("\x3c!--&--\x3e"),
|
|
9984
|
+
endActivityBoundary = stringToPrecomputedChunk("\x3c!--/&--\x3e"),
|
|
8930
9985
|
startCompletedSuspenseBoundary =
|
|
8931
9986
|
stringToPrecomputedChunk("\x3c!--$--\x3e"),
|
|
8932
9987
|
startPendingSuspenseBoundary1 = stringToPrecomputedChunk(
|
|
@@ -8950,9 +10005,6 @@
|
|
|
8950
10005
|
stringToPrecomputedChunk(' data-cstck="'),
|
|
8951
10006
|
clientRenderedSuspenseBoundaryError2 =
|
|
8952
10007
|
stringToPrecomputedChunk("></template>"),
|
|
8953
|
-
boundaryPreambleContributionChunkStart =
|
|
8954
|
-
stringToPrecomputedChunk("\x3c!--"),
|
|
8955
|
-
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e"),
|
|
8956
10008
|
startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
|
8957
10009
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
|
8958
10010
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
|
@@ -8990,15 +10042,15 @@
|
|
|
8990
10042
|
completeSegmentScriptEnd = stringToPrecomputedChunk('")\x3c/script>');
|
|
8991
10043
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
|
8992
10044
|
stringToPrecomputedChunk('" data-pid="');
|
|
8993
|
-
var
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
10045
|
+
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
|
10046
|
+
'$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)};'
|
|
10047
|
+
);
|
|
10048
|
+
stringToChunk(
|
|
10049
|
+
'$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);'
|
|
10050
|
+
);
|
|
10051
|
+
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
|
9000
10052
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
|
9001
|
-
'$RM=new Map
|
|
10053
|
+
'$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("'
|
|
9002
10054
|
),
|
|
9003
10055
|
completeBoundaryWithStylesScript1Partial =
|
|
9004
10056
|
stringToPrecomputedChunk('$RR("'),
|
|
@@ -9010,7 +10062,10 @@
|
|
|
9010
10062
|
stringToPrecomputedChunk('<template data-rri="" data-bid="');
|
|
9011
10063
|
stringToPrecomputedChunk('" data-sid="');
|
|
9012
10064
|
stringToPrecomputedChunk('" data-sty="');
|
|
9013
|
-
var
|
|
10065
|
+
var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
|
|
10066
|
+
'$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())};'
|
|
10067
|
+
),
|
|
10068
|
+
clientRenderScript1Full = stringToPrecomputedChunk(
|
|
9014
10069
|
'$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("'
|
|
9015
10070
|
),
|
|
9016
10071
|
clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
|
|
@@ -9025,7 +10080,7 @@
|
|
|
9025
10080
|
var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g,
|
|
9026
10081
|
regexForJSStringsInScripts = /[&><\u2028\u2029]/g,
|
|
9027
10082
|
lateStyleTagResourceOpen1 = stringToPrecomputedChunk(
|
|
9028
|
-
'
|
|
10083
|
+
' media="not all" data-precedence="'
|
|
9029
10084
|
),
|
|
9030
10085
|
lateStyleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
|
|
9031
10086
|
lateStyleTagResourceOpen3 = stringToPrecomputedChunk('">'),
|
|
@@ -9033,13 +10088,14 @@
|
|
|
9033
10088
|
currentlyRenderingBoundaryHasStylesToHoist = !1,
|
|
9034
10089
|
destinationHasCapacity = !0,
|
|
9035
10090
|
stylesheetFlushingQueue = [],
|
|
9036
|
-
styleTagResourceOpen1 = stringToPrecomputedChunk(
|
|
9037
|
-
'<style data-precedence="'
|
|
9038
|
-
),
|
|
10091
|
+
styleTagResourceOpen1 = stringToPrecomputedChunk(' data-precedence="'),
|
|
9039
10092
|
styleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
|
|
9040
10093
|
spaceSeparator = stringToPrecomputedChunk(" "),
|
|
9041
10094
|
styleTagResourceOpen3 = stringToPrecomputedChunk('">'),
|
|
9042
|
-
styleTagResourceClose = stringToPrecomputedChunk("</style>")
|
|
10095
|
+
styleTagResourceClose = stringToPrecomputedChunk("</style>");
|
|
10096
|
+
stringToPrecomputedChunk('<link rel="expect" href="#');
|
|
10097
|
+
stringToPrecomputedChunk('" blocking="render"/>');
|
|
10098
|
+
var completedShellIdAttributeStart = stringToPrecomputedChunk(' id="'),
|
|
9043
10099
|
arrayFirstOpenBracket = stringToPrecomputedChunk("["),
|
|
9044
10100
|
arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
|
|
9045
10101
|
arrayInterstitial = stringToPrecomputedChunk(","),
|
|
@@ -9155,16 +10211,16 @@
|
|
|
9155
10211
|
currentHookNameInDev = "useState";
|
|
9156
10212
|
return useReducer(basicStateReducer, initialState);
|
|
9157
10213
|
},
|
|
9158
|
-
useInsertionEffect: noop
|
|
9159
|
-
useLayoutEffect: noop
|
|
10214
|
+
useInsertionEffect: noop,
|
|
10215
|
+
useLayoutEffect: noop,
|
|
9160
10216
|
useCallback: function (callback, deps) {
|
|
9161
10217
|
return useMemo(function () {
|
|
9162
10218
|
return callback;
|
|
9163
10219
|
}, deps);
|
|
9164
10220
|
},
|
|
9165
|
-
useImperativeHandle: noop
|
|
9166
|
-
useEffect: noop
|
|
9167
|
-
useDebugValue: noop
|
|
10221
|
+
useImperativeHandle: noop,
|
|
10222
|
+
useEffect: noop,
|
|
10223
|
+
useDebugValue: noop,
|
|
9168
10224
|
useDeferredValue: function (value, initialValue) {
|
|
9169
10225
|
resolveCurrentlyRenderingComponent();
|
|
9170
10226
|
return void 0 !== initialValue ? initialValue : value;
|
|
@@ -9185,9 +10241,9 @@
|
|
|
9185
10241
|
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
9186
10242
|
);
|
|
9187
10243
|
overflow = localIdCounter++;
|
|
9188
|
-
treeId = "
|
|
10244
|
+
treeId = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
9189
10245
|
0 < overflow && (treeId += "H" + overflow.toString(32));
|
|
9190
|
-
return treeId + "
|
|
10246
|
+
return treeId + "_";
|
|
9191
10247
|
},
|
|
9192
10248
|
useSyncExternalStore: function (
|
|
9193
10249
|
subscribe,
|
|
@@ -9217,6 +10273,9 @@
|
|
|
9217
10273
|
},
|
|
9218
10274
|
useCacheRefresh: function () {
|
|
9219
10275
|
return unsupportedRefresh;
|
|
10276
|
+
},
|
|
10277
|
+
useEffectEvent: function () {
|
|
10278
|
+
return throwOnUseEffectEventCall;
|
|
9220
10279
|
}
|
|
9221
10280
|
},
|
|
9222
10281
|
currentResumableState = null,
|
|
@@ -9225,6 +10284,9 @@
|
|
|
9225
10284
|
getCacheForType: function () {
|
|
9226
10285
|
throw Error("Not implemented.");
|
|
9227
10286
|
},
|
|
10287
|
+
cacheSignal: function () {
|
|
10288
|
+
throw Error("Not implemented.");
|
|
10289
|
+
},
|
|
9228
10290
|
getOwner: function () {
|
|
9229
10291
|
return null === currentTaskInDEV
|
|
9230
10292
|
? null
|
|
@@ -9247,26 +10309,26 @@
|
|
|
9247
10309
|
"function" === typeof WeakMap ? WeakMap : Map
|
|
9248
10310
|
)();
|
|
9249
10311
|
var callComponent = {
|
|
9250
|
-
|
|
10312
|
+
react_stack_bottom_frame: function (Component, props, secondArg) {
|
|
9251
10313
|
return Component(props, secondArg);
|
|
9252
10314
|
}
|
|
9253
10315
|
},
|
|
9254
10316
|
callComponentInDEV =
|
|
9255
|
-
callComponent
|
|
10317
|
+
callComponent.react_stack_bottom_frame.bind(callComponent),
|
|
9256
10318
|
callRender = {
|
|
9257
|
-
|
|
10319
|
+
react_stack_bottom_frame: function (instance) {
|
|
9258
10320
|
return instance.render();
|
|
9259
10321
|
}
|
|
9260
10322
|
},
|
|
9261
|
-
callRenderInDEV = callRender
|
|
10323
|
+
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
|
|
9262
10324
|
callLazyInit = {
|
|
9263
|
-
|
|
10325
|
+
react_stack_bottom_frame: function (lazy) {
|
|
9264
10326
|
var init = lazy._init;
|
|
9265
10327
|
return init(lazy._payload);
|
|
9266
10328
|
}
|
|
9267
10329
|
},
|
|
9268
10330
|
callLazyInitInDEV =
|
|
9269
|
-
callLazyInit
|
|
10331
|
+
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
|
|
9270
10332
|
lastResetTime = 0;
|
|
9271
10333
|
if (
|
|
9272
10334
|
"object" === typeof performance &&
|
|
@@ -9286,6 +10348,8 @@
|
|
|
9286
10348
|
PENDING = 0,
|
|
9287
10349
|
COMPLETED = 1,
|
|
9288
10350
|
FLUSHED = 2,
|
|
10351
|
+
ABORTED = 3,
|
|
10352
|
+
ERRORED = 4,
|
|
9289
10353
|
POSTPONED = 5,
|
|
9290
10354
|
CLOSED = 14,
|
|
9291
10355
|
currentRequest = null,
|
|
@@ -9295,7 +10359,9 @@
|
|
|
9295
10359
|
didWarnAboutGetDerivedStateOnFunctionComponent = {},
|
|
9296
10360
|
didWarnAboutReassigningProps = !1,
|
|
9297
10361
|
didWarnAboutGenerators = !1,
|
|
9298
|
-
didWarnAboutMaps = !1
|
|
10362
|
+
didWarnAboutMaps = !1,
|
|
10363
|
+
flushedByteSize = 0,
|
|
10364
|
+
flushingPartialBoundaries = !1;
|
|
9299
10365
|
ensureCorrectIsomorphicReactVersion();
|
|
9300
10366
|
ensureCorrectIsomorphicReactVersion();
|
|
9301
10367
|
exports.prerender = function (children, options) {
|
|
@@ -9328,22 +10394,24 @@
|
|
|
9328
10394
|
options ? options.progressiveChunkSize : void 0,
|
|
9329
10395
|
options ? options.onError : void 0,
|
|
9330
10396
|
function () {
|
|
9331
|
-
var
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
startFlowing(request, controller);
|
|
9337
|
-
},
|
|
9338
|
-
cancel: function (reason) {
|
|
9339
|
-
request.destination = null;
|
|
9340
|
-
abort(request, reason);
|
|
9341
|
-
}
|
|
10397
|
+
var stream = new ReadableStream(
|
|
10398
|
+
{
|
|
10399
|
+
type: "bytes",
|
|
10400
|
+
pull: function (controller) {
|
|
10401
|
+
startFlowing(request, controller);
|
|
9342
10402
|
},
|
|
9343
|
-
|
|
9344
|
-
|
|
10403
|
+
cancel: function (reason) {
|
|
10404
|
+
request.destination = null;
|
|
10405
|
+
abort(request, reason);
|
|
10406
|
+
}
|
|
10407
|
+
},
|
|
10408
|
+
{ highWaterMark: 0 }
|
|
10409
|
+
);
|
|
10410
|
+
stream = {
|
|
10411
|
+
postponed: getPostponedState(request),
|
|
10412
|
+
prelude: stream
|
|
9345
10413
|
};
|
|
9346
|
-
resolve(
|
|
10414
|
+
resolve(stream);
|
|
9347
10415
|
},
|
|
9348
10416
|
void 0,
|
|
9349
10417
|
void 0,
|
|
@@ -9439,5 +10507,114 @@
|
|
|
9439
10507
|
startWork(request);
|
|
9440
10508
|
});
|
|
9441
10509
|
};
|
|
9442
|
-
exports.
|
|
10510
|
+
exports.resume = function (children, postponedState, options) {
|
|
10511
|
+
return new Promise(function (resolve, reject) {
|
|
10512
|
+
var onFatalError,
|
|
10513
|
+
onAllReady,
|
|
10514
|
+
allReady = new Promise(function (res, rej) {
|
|
10515
|
+
onAllReady = res;
|
|
10516
|
+
onFatalError = rej;
|
|
10517
|
+
}),
|
|
10518
|
+
request = resumeRequest(
|
|
10519
|
+
children,
|
|
10520
|
+
postponedState,
|
|
10521
|
+
createRenderState(
|
|
10522
|
+
postponedState.resumableState,
|
|
10523
|
+
options ? options.nonce : void 0,
|
|
10524
|
+
void 0,
|
|
10525
|
+
void 0,
|
|
10526
|
+
void 0,
|
|
10527
|
+
void 0
|
|
10528
|
+
),
|
|
10529
|
+
options ? options.onError : void 0,
|
|
10530
|
+
onAllReady,
|
|
10531
|
+
function () {
|
|
10532
|
+
var stream = new ReadableStream(
|
|
10533
|
+
{
|
|
10534
|
+
type: "bytes",
|
|
10535
|
+
pull: function (controller) {
|
|
10536
|
+
startFlowing(request, controller);
|
|
10537
|
+
},
|
|
10538
|
+
cancel: function (reason) {
|
|
10539
|
+
request.destination = null;
|
|
10540
|
+
abort(request, reason);
|
|
10541
|
+
}
|
|
10542
|
+
},
|
|
10543
|
+
{ highWaterMark: 0 }
|
|
10544
|
+
);
|
|
10545
|
+
stream.allReady = allReady;
|
|
10546
|
+
resolve(stream);
|
|
10547
|
+
},
|
|
10548
|
+
function (error) {
|
|
10549
|
+
allReady.catch(function () {});
|
|
10550
|
+
reject(error);
|
|
10551
|
+
},
|
|
10552
|
+
onFatalError,
|
|
10553
|
+
options ? options.onPostpone : void 0
|
|
10554
|
+
);
|
|
10555
|
+
if (options && options.signal) {
|
|
10556
|
+
var signal = options.signal;
|
|
10557
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10558
|
+
else {
|
|
10559
|
+
var listener = function () {
|
|
10560
|
+
abort(request, signal.reason);
|
|
10561
|
+
signal.removeEventListener("abort", listener);
|
|
10562
|
+
};
|
|
10563
|
+
signal.addEventListener("abort", listener);
|
|
10564
|
+
}
|
|
10565
|
+
}
|
|
10566
|
+
startWork(request);
|
|
10567
|
+
});
|
|
10568
|
+
};
|
|
10569
|
+
exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
10570
|
+
return new Promise(function (resolve, reject) {
|
|
10571
|
+
var request = resumeAndPrerenderRequest(
|
|
10572
|
+
children,
|
|
10573
|
+
postponedState,
|
|
10574
|
+
createRenderState(
|
|
10575
|
+
postponedState.resumableState,
|
|
10576
|
+
void 0,
|
|
10577
|
+
void 0,
|
|
10578
|
+
void 0,
|
|
10579
|
+
void 0,
|
|
10580
|
+
void 0
|
|
10581
|
+
),
|
|
10582
|
+
options ? options.onError : void 0,
|
|
10583
|
+
function () {
|
|
10584
|
+
var stream = new ReadableStream(
|
|
10585
|
+
{
|
|
10586
|
+
type: "bytes",
|
|
10587
|
+
pull: function (controller) {
|
|
10588
|
+
startFlowing(request, controller);
|
|
10589
|
+
},
|
|
10590
|
+
cancel: function (reason) {
|
|
10591
|
+
request.destination = null;
|
|
10592
|
+
abort(request, reason);
|
|
10593
|
+
}
|
|
10594
|
+
},
|
|
10595
|
+
{ highWaterMark: 0 }
|
|
10596
|
+
);
|
|
10597
|
+
stream = { postponed: getPostponedState(request), prelude: stream };
|
|
10598
|
+
resolve(stream);
|
|
10599
|
+
},
|
|
10600
|
+
void 0,
|
|
10601
|
+
void 0,
|
|
10602
|
+
reject,
|
|
10603
|
+
options ? options.onPostpone : void 0
|
|
10604
|
+
);
|
|
10605
|
+
if (options && options.signal) {
|
|
10606
|
+
var signal = options.signal;
|
|
10607
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10608
|
+
else {
|
|
10609
|
+
var listener = function () {
|
|
10610
|
+
abort(request, signal.reason);
|
|
10611
|
+
signal.removeEventListener("abort", listener);
|
|
10612
|
+
};
|
|
10613
|
+
signal.addEventListener("abort", listener);
|
|
10614
|
+
}
|
|
10615
|
+
}
|
|
10616
|
+
startWork(request);
|
|
10617
|
+
});
|
|
10618
|
+
};
|
|
10619
|
+
exports.version = "19.2.4";
|
|
9443
10620
|
})();
|