@vitejs/plugin-rsc 0.5.34 → 0.5.35
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/README.md +15 -0
- package/dist/browser.d.ts +1 -1
- package/dist/{cjs-AWVWfddx.js → cjs-DhDj_zQT.js} +2 -2
- package/dist/client-Dq3oGLRS.d.ts +8 -0
- package/dist/{client-reference-DEZtXTv1.d.ts → client-reference-Bk5pzNGN.d.ts} +1 -1
- package/dist/client.node-BEQT2PT-.d.ts +9 -0
- package/dist/client.shared-D1HxyClg.js +10 -0
- package/dist/client.shared-VT232QCM.d.ts +16 -0
- package/dist/core/browser.js +1 -1
- package/dist/core/plugin.d.ts +2 -3
- package/dist/core/rsc.d.ts +1 -1
- package/dist/core/rsc.js +1 -1
- package/dist/core/ssr.d.ts +1 -7
- package/dist/core/ssr.js +1 -1
- package/dist/{index-C5IY2S-e.d.ts → index-CROaL0MT.d.ts} +34 -8
- package/dist/index.js +1 -1
- package/dist/{picocolors-391UXIDd.js → picocolors-DCTC64Zv.js} +1 -1
- package/dist/{plugin-Cbs9j6lP.js → plugin-CLvIS10V.js} +37 -27
- package/dist/plugin.js +1 -1
- package/dist/plugins/cjs.d.ts +2 -3
- package/dist/plugins/cjs.js +1 -1
- package/dist/react/browser.d.ts +10 -10
- package/dist/react/rsc/client.d.ts +1 -1
- package/dist/react/rsc/client.js +2 -5
- package/dist/react/rsc/client.node.d.ts +2 -0
- package/dist/react/rsc/client.node.js +16 -0
- package/dist/react/rsc/server.d.ts +2 -2
- package/dist/react/rsc/server.node.d.ts +3 -0
- package/dist/react/rsc/server.node.js +24 -0
- package/dist/react/rsc/static.d.ts +4 -5
- package/dist/react/rsc/static.node.d.ts +6 -0
- package/dist/react/rsc/static.node.js +11 -0
- package/dist/react/rsc.d.ts +3 -3
- package/dist/react/ssr.d.ts +9 -9
- package/dist/react/ssr.node.d.ts +12 -0
- package/dist/react/ssr.node.js +21 -0
- package/dist/rsc/client.d.ts +1 -1
- package/dist/rsc/client.node.d.ts +2 -0
- package/dist/rsc/client.node.js +3 -0
- package/dist/rsc/server.d.ts +5 -5
- package/dist/rsc/server.node.d.ts +19 -0
- package/dist/rsc/server.node.js +13 -0
- package/dist/rsc/static.d.ts +4 -5
- package/dist/rsc/static.node.d.ts +16 -0
- package/dist/rsc/static.node.js +12 -0
- package/dist/{rsc-C3UdJLOW.d.ts → rsc-D8UlANI2.d.ts} +1 -1
- package/dist/rsc.d.ts +3 -3
- package/dist/rsc.node.d.ts +6 -0
- package/dist/rsc.node.js +7 -0
- package/dist/{scope-Bdx33sQv.js → scope-Ck0n25my.js} +2 -4
- package/dist/{server-ZBjqNTqU.d.ts → server-YwgjVtsE.d.ts} +2 -2
- package/dist/server.node-DU77AeKU.d.ts +15 -0
- package/dist/shared-BWJvctW6.js +34 -0
- package/dist/shared-CXQb6hk9.js +89 -0
- package/dist/shared-DJBuYpZL.d.ts +20 -0
- package/dist/ssr-C-U7jY5S.d.ts +8 -0
- package/dist/ssr.d.ts +3 -21
- package/dist/ssr.js +1 -87
- package/dist/ssr.node.d.ts +5 -0
- package/dist/ssr.node.js +4 -0
- package/dist/transforms/index.js +67 -60
- package/dist/utils/encryption-runtime.d.ts +3 -4
- package/dist/utils/encryption-runtime.js +4 -2
- package/dist/utils/rpc.d.ts +3 -4
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +909 -495
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +399 -265
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +901 -477
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +380 -219
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +925 -484
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +385 -221
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +726 -388
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +566 -397
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +734 -397
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +477 -238
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +1029 -620
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +481 -261
- package/dist/vendor/react-server-dom/esm/react-server-dom-webpack-node-loader.production.js +2 -2
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/package.json +15 -15
- package/dist/client-Bhch3O41.d.ts +0 -19
- package/dist/dist-uqdtSkzK.js +0 -64
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js
CHANGED
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
+
function checkEvalAvailabilityOnceDev() {
|
|
15
|
+
if (!hasConfirmedEval) {
|
|
16
|
+
hasConfirmedEval = !0;
|
|
17
|
+
try {
|
|
18
|
+
(0, eval)("null");
|
|
19
|
+
} catch ($jscomp$unused$catch) {
|
|
20
|
+
console.error(
|
|
21
|
+
"eval() is not supported in this environment. If this page was served with a `Content-Security-Policy` header, make sure that `unsafe-eval` is included. React requires eval() in development mode for various debugging features like reconstructing callstacks from a different environment.\nReact will never use eval() in production mode"
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
14
26
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
27
|
if (bundlerConfig) {
|
|
16
28
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -185,6 +197,8 @@
|
|
|
185
197
|
return "Suspense";
|
|
186
198
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
187
199
|
return "SuspenseList";
|
|
200
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
201
|
+
return "ViewTransition";
|
|
188
202
|
}
|
|
189
203
|
if ("object" === typeof type)
|
|
190
204
|
switch (type.$$typeof) {
|
|
@@ -322,9 +336,36 @@
|
|
|
322
336
|
root,
|
|
323
337
|
formFieldPrefix,
|
|
324
338
|
temporaryReferences,
|
|
325
|
-
|
|
326
|
-
|
|
339
|
+
onResolve,
|
|
340
|
+
onReject,
|
|
341
|
+
signal
|
|
327
342
|
) {
|
|
343
|
+
function endReplyLifetime() {
|
|
344
|
+
null !== replyLifetimeController &&
|
|
345
|
+
replyLifetimeController.abort("The reply ended.");
|
|
346
|
+
}
|
|
347
|
+
function resolve(value) {
|
|
348
|
+
settled = !0;
|
|
349
|
+
endReplyLifetime();
|
|
350
|
+
onResolve(value);
|
|
351
|
+
}
|
|
352
|
+
function reject(error) {
|
|
353
|
+
settled = !0;
|
|
354
|
+
endReplyLifetime();
|
|
355
|
+
onReject(error);
|
|
356
|
+
}
|
|
357
|
+
function attachAbortSignal(abortSignal) {
|
|
358
|
+
abortSignal.aborted
|
|
359
|
+
? abort()
|
|
360
|
+
: ((replyLifetimeController = new AbortController()),
|
|
361
|
+
abortSignal.addEventListener(
|
|
362
|
+
"abort",
|
|
363
|
+
function () {
|
|
364
|
+
abort();
|
|
365
|
+
},
|
|
366
|
+
{ signal: replyLifetimeController.signal }
|
|
367
|
+
));
|
|
368
|
+
}
|
|
328
369
|
function serializeTypedArray(tag, typedArray) {
|
|
329
370
|
typedArray = new Blob([
|
|
330
371
|
new Uint8Array(
|
|
@@ -455,6 +496,8 @@
|
|
|
455
496
|
"$T"
|
|
456
497
|
);
|
|
457
498
|
}
|
|
499
|
+
if (void 0 !== temporaryReferences && modelRoot === value)
|
|
500
|
+
return (modelRoot = null), "$T";
|
|
458
501
|
throw Error(
|
|
459
502
|
"React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options." +
|
|
460
503
|
describeObjectForErrorMessage(this, key)
|
|
@@ -625,7 +668,7 @@
|
|
|
625
668
|
return serializeAsyncIterable(value, parentReference.call(value));
|
|
626
669
|
parentReference = getPrototypeOf(value);
|
|
627
670
|
if (
|
|
628
|
-
parentReference !== ObjectPrototype &&
|
|
671
|
+
parentReference !== ObjectPrototype$1 &&
|
|
629
672
|
(null === parentReference ||
|
|
630
673
|
null !== getPrototypeOf(parentReference))
|
|
631
674
|
) {
|
|
@@ -731,21 +774,26 @@
|
|
|
731
774
|
modelRoot = model;
|
|
732
775
|
return JSON.stringify(model, resolveToJSON);
|
|
733
776
|
}
|
|
777
|
+
function abort() {
|
|
778
|
+
endReplyLifetime();
|
|
779
|
+
0 < pendingParts &&
|
|
780
|
+
((pendingParts = 0),
|
|
781
|
+
null === formData ? resolve(json) : resolve(formData));
|
|
782
|
+
}
|
|
734
783
|
var nextPartId = 1,
|
|
735
784
|
pendingParts = 0,
|
|
736
785
|
formData = null,
|
|
737
786
|
writtenObjects = new WeakMap(),
|
|
738
787
|
modelRoot = root,
|
|
739
|
-
|
|
788
|
+
settled = !1,
|
|
789
|
+
replyLifetimeController = null;
|
|
790
|
+
checkEvalAvailabilityOnceDev();
|
|
791
|
+
var json = serializeModel(root, 0);
|
|
740
792
|
null === formData
|
|
741
793
|
? resolve(json)
|
|
742
794
|
: (formData.set(formFieldPrefix + "0", json),
|
|
743
795
|
0 === pendingParts && resolve(formData));
|
|
744
|
-
|
|
745
|
-
0 < pendingParts &&
|
|
746
|
-
((pendingParts = 0),
|
|
747
|
-
null === formData ? resolve(json) : resolve(formData));
|
|
748
|
-
};
|
|
796
|
+
void 0 === signal || settled || attachAbortSignal(signal);
|
|
749
797
|
}
|
|
750
798
|
function createFakeServerFunction(
|
|
751
799
|
name,
|
|
@@ -889,6 +937,8 @@
|
|
|
889
937
|
return "SuspenseList";
|
|
890
938
|
case REACT_ACTIVITY_TYPE:
|
|
891
939
|
return "Activity";
|
|
940
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
941
|
+
return "ViewTransition";
|
|
892
942
|
}
|
|
893
943
|
if ("object" === typeof type)
|
|
894
944
|
switch (
|
|
@@ -928,7 +978,7 @@
|
|
|
928
978
|
return null;
|
|
929
979
|
}
|
|
930
980
|
function getArrayKind(array) {
|
|
931
|
-
for (var kind = 0, i = 0; i < array.length; i++) {
|
|
981
|
+
for (var kind = 0, i = 0; i < array.length && 100 > i; i++) {
|
|
932
982
|
var value = array[i];
|
|
933
983
|
if ("object" === typeof value && null !== value)
|
|
934
984
|
if (
|
|
@@ -943,7 +993,8 @@
|
|
|
943
993
|
if (
|
|
944
994
|
"function" === typeof value ||
|
|
945
995
|
("string" === typeof value && 50 < value.length) ||
|
|
946
|
-
(0 !== kind && 2 !== kind)
|
|
996
|
+
(0 !== kind && 2 !== kind) ||
|
|
997
|
+
"bigint" === typeof value
|
|
947
998
|
)
|
|
948
999
|
return 1;
|
|
949
1000
|
kind = 2;
|
|
@@ -952,10 +1003,26 @@
|
|
|
952
1003
|
return kind;
|
|
953
1004
|
}
|
|
954
1005
|
function addObjectToProperties(object, properties, indent, prefix) {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1006
|
+
if (!ArrayBuffer.isView(object)) {
|
|
1007
|
+
var addedProperties = 0,
|
|
1008
|
+
key;
|
|
1009
|
+
for (key in object)
|
|
1010
|
+
if (
|
|
1011
|
+
hasOwnProperty.call(object, key) &&
|
|
1012
|
+
"_" !== key[0] &&
|
|
1013
|
+
(addedProperties++,
|
|
1014
|
+
addValueToProperties(key, object[key], properties, indent, prefix),
|
|
1015
|
+
100 <= addedProperties)
|
|
1016
|
+
) {
|
|
1017
|
+
properties.push([
|
|
1018
|
+
prefix +
|
|
1019
|
+
"\u00a0\u00a0".repeat(indent) +
|
|
1020
|
+
"Only 100 properties are shown. React will not log more properties of this object.",
|
|
1021
|
+
""
|
|
1022
|
+
]);
|
|
1023
|
+
break;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
959
1026
|
}
|
|
960
1027
|
function addValueToProperties(
|
|
961
1028
|
propertyName,
|
|
@@ -970,7 +1037,11 @@
|
|
|
970
1037
|
value = "null";
|
|
971
1038
|
break;
|
|
972
1039
|
} else {
|
|
973
|
-
if (
|
|
1040
|
+
if (
|
|
1041
|
+
("$$typeof" in value && hasOwnProperty.call(value, "$$typeof")
|
|
1042
|
+
? value.$$typeof
|
|
1043
|
+
: void 0) === REACT_ELEMENT_TYPE
|
|
1044
|
+
) {
|
|
974
1045
|
var typeName = getComponentNameFromType(value.type) || "\u2026",
|
|
975
1046
|
key = value.key;
|
|
976
1047
|
value = value.props;
|
|
@@ -1002,21 +1073,27 @@
|
|
|
1002
1073
|
prefix
|
|
1003
1074
|
);
|
|
1004
1075
|
propertyName = !1;
|
|
1076
|
+
key = 0;
|
|
1005
1077
|
for (var propKey in value)
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
propKey
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1078
|
+
if (
|
|
1079
|
+
(key++,
|
|
1080
|
+
"children" === propKey
|
|
1081
|
+
? null != value.children &&
|
|
1082
|
+
(!isArrayImpl(value.children) ||
|
|
1083
|
+
0 < value.children.length) &&
|
|
1084
|
+
(propertyName = !0)
|
|
1085
|
+
: hasOwnProperty.call(value, propKey) &&
|
|
1086
|
+
"_" !== propKey[0] &&
|
|
1087
|
+
addValueToProperties(
|
|
1088
|
+
propKey,
|
|
1089
|
+
value[propKey],
|
|
1090
|
+
properties,
|
|
1091
|
+
indent + 1,
|
|
1092
|
+
prefix
|
|
1093
|
+
),
|
|
1094
|
+
100 <= key)
|
|
1095
|
+
)
|
|
1096
|
+
break;
|
|
1020
1097
|
properties.push([
|
|
1021
1098
|
"",
|
|
1022
1099
|
propertyName ? ">\u2026</" + typeName + ">" : "/>"
|
|
@@ -1025,21 +1102,32 @@
|
|
|
1025
1102
|
}
|
|
1026
1103
|
typeName = Object.prototype.toString.call(value);
|
|
1027
1104
|
typeName = typeName.slice(8, typeName.length - 1);
|
|
1105
|
+
if (ArrayBuffer.isView(value)) {
|
|
1106
|
+
value = value.length;
|
|
1107
|
+
value =
|
|
1108
|
+
"number" === typeof value
|
|
1109
|
+
? typeName + "(" + value + ")"
|
|
1110
|
+
: typeName;
|
|
1111
|
+
break;
|
|
1112
|
+
}
|
|
1028
1113
|
if ("Array" === typeName)
|
|
1029
1114
|
if (
|
|
1030
|
-
((propKey =
|
|
1031
|
-
|
|
1115
|
+
((propKey = 100 < value.length),
|
|
1116
|
+
(key = getArrayKind(value)),
|
|
1117
|
+
2 === key || 0 === key)
|
|
1032
1118
|
) {
|
|
1033
|
-
value = JSON.stringify(
|
|
1119
|
+
value = JSON.stringify(
|
|
1120
|
+
propKey ? value.slice(0, 100).concat("\u2026") : value
|
|
1121
|
+
);
|
|
1034
1122
|
break;
|
|
1035
|
-
} else if (3 ===
|
|
1123
|
+
} else if (3 === key) {
|
|
1036
1124
|
properties.push([
|
|
1037
1125
|
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1038
1126
|
""
|
|
1039
1127
|
]);
|
|
1040
1128
|
for (
|
|
1041
1129
|
propertyName = 0;
|
|
1042
|
-
propertyName < value.length;
|
|
1130
|
+
propertyName < value.length && 100 > propertyName;
|
|
1043
1131
|
propertyName++
|
|
1044
1132
|
)
|
|
1045
1133
|
(typeName = value[propertyName]),
|
|
@@ -1050,6 +1138,14 @@
|
|
|
1050
1138
|
indent + 1,
|
|
1051
1139
|
prefix
|
|
1052
1140
|
);
|
|
1141
|
+
propKey &&
|
|
1142
|
+
addValueToProperties(
|
|
1143
|
+
(100).toString(),
|
|
1144
|
+
"\u2026",
|
|
1145
|
+
properties,
|
|
1146
|
+
indent + 1,
|
|
1147
|
+
prefix
|
|
1148
|
+
);
|
|
1053
1149
|
return;
|
|
1054
1150
|
}
|
|
1055
1151
|
if ("Promise" === typeName) {
|
|
@@ -1105,14 +1201,20 @@
|
|
|
1105
1201
|
return;
|
|
1106
1202
|
}
|
|
1107
1203
|
case "function":
|
|
1108
|
-
value =
|
|
1204
|
+
value = value.name;
|
|
1205
|
+
value =
|
|
1206
|
+
"" === value || "string" !== typeof value
|
|
1207
|
+
? "() => {}"
|
|
1208
|
+
: value + "() {}";
|
|
1109
1209
|
break;
|
|
1110
1210
|
case "string":
|
|
1111
1211
|
value =
|
|
1112
1212
|
"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects." ===
|
|
1113
1213
|
value
|
|
1114
1214
|
? "\u2026"
|
|
1115
|
-
: JSON.stringify(
|
|
1215
|
+
: JSON.stringify(
|
|
1216
|
+
1024 <= value.length ? value.slice(0, 1023) + "\u2026" : value
|
|
1217
|
+
);
|
|
1116
1218
|
break;
|
|
1117
1219
|
case "undefined":
|
|
1118
1220
|
value = "undefined";
|
|
@@ -1131,6 +1233,8 @@
|
|
|
1131
1233
|
function getIODescription(value) {
|
|
1132
1234
|
try {
|
|
1133
1235
|
switch (typeof value) {
|
|
1236
|
+
case "function":
|
|
1237
|
+
return value.name || "";
|
|
1134
1238
|
case "object":
|
|
1135
1239
|
if (null === value) return "";
|
|
1136
1240
|
if (value instanceof Error) return String(value.message);
|
|
@@ -1294,6 +1398,7 @@
|
|
|
1294
1398
|
}
|
|
1295
1399
|
})
|
|
1296
1400
|
);
|
|
1401
|
+
performance.clearMeasures(entryName);
|
|
1297
1402
|
} else
|
|
1298
1403
|
console.timeStamp(
|
|
1299
1404
|
entryName,
|
|
@@ -1312,6 +1417,7 @@
|
|
|
1312
1417
|
var description = getIODescription(error),
|
|
1313
1418
|
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1314
1419
|
debugTask = ioInfo.debugTask;
|
|
1420
|
+
entryName = "\u200b" + entryName;
|
|
1315
1421
|
debugTask
|
|
1316
1422
|
? ((error = [
|
|
1317
1423
|
[
|
|
@@ -1327,7 +1433,7 @@
|
|
|
1327
1433
|
getIOLongName(ioInfo, description, ioInfo.env, rootEnv) +
|
|
1328
1434
|
" Rejected"),
|
|
1329
1435
|
debugTask.run(
|
|
1330
|
-
performance.measure.bind(performance,
|
|
1436
|
+
performance.measure.bind(performance, entryName, {
|
|
1331
1437
|
start: 0 > startTime ? 0 : startTime,
|
|
1332
1438
|
end: endTime,
|
|
1333
1439
|
detail: {
|
|
@@ -1339,7 +1445,8 @@
|
|
|
1339
1445
|
}
|
|
1340
1446
|
}
|
|
1341
1447
|
})
|
|
1342
|
-
)
|
|
1448
|
+
),
|
|
1449
|
+
performance.clearMeasures(entryName))
|
|
1343
1450
|
: console.timeStamp(
|
|
1344
1451
|
entryName,
|
|
1345
1452
|
0 > startTime ? 0 : startTime,
|
|
@@ -1358,6 +1465,7 @@
|
|
|
1358
1465
|
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1359
1466
|
color = getIOColor(entryName),
|
|
1360
1467
|
debugTask = ioInfo.debugTask;
|
|
1468
|
+
entryName = "\u200b" + entryName;
|
|
1361
1469
|
if (debugTask) {
|
|
1362
1470
|
var properties = [];
|
|
1363
1471
|
"object" === typeof value && null !== value
|
|
@@ -1366,7 +1474,7 @@
|
|
|
1366
1474
|
addValueToProperties("Resolved", value, properties, 0, "");
|
|
1367
1475
|
ioInfo = getIOLongName(ioInfo, description, ioInfo.env, rootEnv);
|
|
1368
1476
|
debugTask.run(
|
|
1369
|
-
performance.measure.bind(performance,
|
|
1477
|
+
performance.measure.bind(performance, entryName, {
|
|
1370
1478
|
start: 0 > startTime ? 0 : startTime,
|
|
1371
1479
|
end: endTime,
|
|
1372
1480
|
detail: {
|
|
@@ -1379,6 +1487,7 @@
|
|
|
1379
1487
|
}
|
|
1380
1488
|
})
|
|
1381
1489
|
);
|
|
1490
|
+
performance.clearMeasures(entryName);
|
|
1382
1491
|
} else
|
|
1383
1492
|
console.timeStamp(
|
|
1384
1493
|
entryName,
|
|
@@ -1397,6 +1506,10 @@
|
|
|
1397
1506
|
this._children = [];
|
|
1398
1507
|
this._debugChunk = null;
|
|
1399
1508
|
this._debugInfo = [];
|
|
1509
|
+
this._receivedDebugInfo = null;
|
|
1510
|
+
}
|
|
1511
|
+
function hasGCedResponse(weakResponse) {
|
|
1512
|
+
return void 0 === weakResponse.weak.deref();
|
|
1400
1513
|
}
|
|
1401
1514
|
function unwrapWeakResponse(weakResponse) {
|
|
1402
1515
|
weakResponse = weakResponse.weak.deref();
|
|
@@ -1421,6 +1534,7 @@
|
|
|
1421
1534
|
case "fulfilled":
|
|
1422
1535
|
return chunk.value;
|
|
1423
1536
|
case "pending":
|
|
1537
|
+
case "pending_weak":
|
|
1424
1538
|
case "blocked":
|
|
1425
1539
|
case "halted":
|
|
1426
1540
|
throw chunk;
|
|
@@ -1449,6 +1563,23 @@
|
|
|
1449
1563
|
100
|
|
1450
1564
|
)));
|
|
1451
1565
|
}
|
|
1566
|
+
function haltChunk(response, chunk) {
|
|
1567
|
+
releasePendingChunk(response, chunk);
|
|
1568
|
+
chunk.status = "halted";
|
|
1569
|
+
chunk.value = null;
|
|
1570
|
+
chunk.reason = null;
|
|
1571
|
+
}
|
|
1572
|
+
function filterDebugInfo(response, value) {
|
|
1573
|
+
if (null !== response._debugEndTime) {
|
|
1574
|
+
response = response._debugEndTime - performance.timeOrigin;
|
|
1575
|
+
for (var debugInfo = [], i = 0; i < value._debugInfo.length; i++) {
|
|
1576
|
+
var info = value._debugInfo[i];
|
|
1577
|
+
if ("number" === typeof info.time && info.time > response) break;
|
|
1578
|
+
debugInfo.push(info);
|
|
1579
|
+
}
|
|
1580
|
+
value._debugInfo = debugInfo;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1452
1583
|
function moveDebugInfoFromChunkToInnerValue(chunk, value) {
|
|
1453
1584
|
value = resolveLazy(value);
|
|
1454
1585
|
"object" !== typeof value ||
|
|
@@ -1460,28 +1591,30 @@
|
|
|
1460
1591
|
((chunk = chunk._debugInfo.splice(0)),
|
|
1461
1592
|
isArrayImpl(value._debugInfo)
|
|
1462
1593
|
? value._debugInfo.unshift.apply(value._debugInfo, chunk)
|
|
1463
|
-
: Object.
|
|
1594
|
+
: Object.isFrozen(value) ||
|
|
1595
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
1464
1596
|
configurable: !1,
|
|
1465
1597
|
enumerable: !1,
|
|
1466
1598
|
writable: !0,
|
|
1467
1599
|
value: chunk
|
|
1468
1600
|
}));
|
|
1469
1601
|
}
|
|
1470
|
-
function wakeChunk(listeners, value, chunk) {
|
|
1602
|
+
function wakeChunk(response, listeners, value, chunk) {
|
|
1471
1603
|
for (var i = 0; i < listeners.length; i++) {
|
|
1472
1604
|
var listener = listeners[i];
|
|
1473
1605
|
"function" === typeof listener
|
|
1474
1606
|
? listener(value)
|
|
1475
|
-
: fulfillReference(listener, value, chunk);
|
|
1607
|
+
: fulfillReference(response, listener, value, chunk);
|
|
1476
1608
|
}
|
|
1609
|
+
filterDebugInfo(response, chunk);
|
|
1477
1610
|
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1478
1611
|
}
|
|
1479
|
-
function rejectChunk(listeners, error) {
|
|
1612
|
+
function rejectChunk(response, listeners, error) {
|
|
1480
1613
|
for (var i = 0; i < listeners.length; i++) {
|
|
1481
1614
|
var listener = listeners[i];
|
|
1482
1615
|
"function" === typeof listener
|
|
1483
1616
|
? listener(error)
|
|
1484
|
-
: rejectReference(listener, error);
|
|
1617
|
+
: rejectReference(response, listener.handler, error);
|
|
1485
1618
|
}
|
|
1486
1619
|
}
|
|
1487
1620
|
function resolveBlockedCycle(resolvedChunk, reference) {
|
|
@@ -1505,10 +1638,15 @@
|
|
|
1505
1638
|
}
|
|
1506
1639
|
return null;
|
|
1507
1640
|
}
|
|
1508
|
-
function wakeChunkIfInitialized(
|
|
1641
|
+
function wakeChunkIfInitialized(
|
|
1642
|
+
response,
|
|
1643
|
+
chunk,
|
|
1644
|
+
resolveListeners,
|
|
1645
|
+
rejectListeners
|
|
1646
|
+
) {
|
|
1509
1647
|
switch (chunk.status) {
|
|
1510
1648
|
case "fulfilled":
|
|
1511
|
-
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1649
|
+
wakeChunk(response, resolveListeners, chunk.value, chunk);
|
|
1512
1650
|
break;
|
|
1513
1651
|
case "blocked":
|
|
1514
1652
|
for (var i = 0; i < resolveListeners.length; i++) {
|
|
@@ -1517,7 +1655,12 @@
|
|
|
1517
1655
|
var cyclicHandler = resolveBlockedCycle(chunk, listener);
|
|
1518
1656
|
if (null !== cyclicHandler)
|
|
1519
1657
|
switch (
|
|
1520
|
-
(fulfillReference(
|
|
1658
|
+
(fulfillReference(
|
|
1659
|
+
response,
|
|
1660
|
+
listener,
|
|
1661
|
+
cyclicHandler.value,
|
|
1662
|
+
chunk
|
|
1663
|
+
),
|
|
1521
1664
|
resolveListeners.splice(i, 1),
|
|
1522
1665
|
i--,
|
|
1523
1666
|
null !== rejectListeners &&
|
|
@@ -1526,19 +1669,19 @@
|
|
|
1526
1669
|
chunk.status)
|
|
1527
1670
|
) {
|
|
1528
1671
|
case "fulfilled":
|
|
1529
|
-
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1672
|
+
wakeChunk(response, resolveListeners, chunk.value, chunk);
|
|
1530
1673
|
return;
|
|
1531
1674
|
case "rejected":
|
|
1532
1675
|
null !== rejectListeners &&
|
|
1533
|
-
rejectChunk(rejectListeners, chunk.reason);
|
|
1676
|
+
rejectChunk(response, rejectListeners, chunk.reason);
|
|
1534
1677
|
return;
|
|
1535
1678
|
}
|
|
1536
1679
|
}
|
|
1537
1680
|
}
|
|
1538
1681
|
case "pending":
|
|
1539
1682
|
if (chunk.value)
|
|
1540
|
-
for (
|
|
1541
|
-
chunk.value.push(resolveListeners[
|
|
1683
|
+
for (response = 0; response < resolveListeners.length; response++)
|
|
1684
|
+
chunk.value.push(resolveListeners[response]);
|
|
1542
1685
|
else chunk.value = resolveListeners;
|
|
1543
1686
|
if (chunk.reason) {
|
|
1544
1687
|
if (rejectListeners)
|
|
@@ -1551,16 +1694,24 @@
|
|
|
1551
1694
|
} else chunk.reason = rejectListeners;
|
|
1552
1695
|
break;
|
|
1553
1696
|
case "rejected":
|
|
1554
|
-
rejectListeners &&
|
|
1697
|
+
rejectListeners &&
|
|
1698
|
+
rejectChunk(response, rejectListeners, chunk.reason);
|
|
1555
1699
|
}
|
|
1556
1700
|
}
|
|
1557
1701
|
function triggerErrorOnChunk(response, chunk, error) {
|
|
1558
|
-
if (
|
|
1702
|
+
if (
|
|
1703
|
+
"pending" !== chunk.status &&
|
|
1704
|
+
"pending_weak" !== chunk.status &&
|
|
1705
|
+
"blocked" !== chunk.status
|
|
1706
|
+
)
|
|
1559
1707
|
chunk.reason.error(error);
|
|
1560
1708
|
else {
|
|
1561
1709
|
releasePendingChunk(response, chunk);
|
|
1562
1710
|
var listeners = chunk.reason;
|
|
1563
|
-
if (
|
|
1711
|
+
if (
|
|
1712
|
+
("pending" === chunk.status || "pending_weak" === chunk.status) &&
|
|
1713
|
+
null != chunk._debugChunk
|
|
1714
|
+
) {
|
|
1564
1715
|
var prevHandler = initializingHandler,
|
|
1565
1716
|
prevChunk = initializingChunk;
|
|
1566
1717
|
initializingHandler = null;
|
|
@@ -1577,7 +1728,21 @@
|
|
|
1577
1728
|
}
|
|
1578
1729
|
chunk.status = "rejected";
|
|
1579
1730
|
chunk.reason = error;
|
|
1580
|
-
null !==
|
|
1731
|
+
a: if (null !== response._debugEndTime)
|
|
1732
|
+
for (
|
|
1733
|
+
prevHandler = response._debugEndTime - performance.timeOrigin,
|
|
1734
|
+
chunk = chunk._debugInfo,
|
|
1735
|
+
prevChunk = 0;
|
|
1736
|
+
prevChunk < chunk.length;
|
|
1737
|
+
prevChunk++
|
|
1738
|
+
) {
|
|
1739
|
+
var info = chunk[prevChunk];
|
|
1740
|
+
if ("number" === typeof info.time && info.time > prevHandler) {
|
|
1741
|
+
chunk.length = prevChunk;
|
|
1742
|
+
break a;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
null !== listeners && rejectChunk(response, listeners, error);
|
|
1581
1746
|
}
|
|
1582
1747
|
}
|
|
1583
1748
|
function createResolvedModelChunk(response, value) {
|
|
@@ -1602,7 +1767,8 @@
|
|
|
1602
1767
|
);
|
|
1603
1768
|
}
|
|
1604
1769
|
function resolveModelChunk(response, chunk, value) {
|
|
1605
|
-
if ("pending" !== chunk.status
|
|
1770
|
+
if ("pending" !== chunk.status && "pending_weak" !== chunk.status)
|
|
1771
|
+
chunk.reason.enqueueModel(value);
|
|
1606
1772
|
else {
|
|
1607
1773
|
releasePendingChunk(response, chunk);
|
|
1608
1774
|
var resolveListeners = chunk.value,
|
|
@@ -1612,14 +1778,23 @@
|
|
|
1612
1778
|
chunk.reason = response;
|
|
1613
1779
|
null !== resolveListeners &&
|
|
1614
1780
|
(initializeModelChunk(chunk),
|
|
1615
|
-
wakeChunkIfInitialized(
|
|
1781
|
+
wakeChunkIfInitialized(
|
|
1782
|
+
response,
|
|
1783
|
+
chunk,
|
|
1784
|
+
resolveListeners,
|
|
1785
|
+
rejectListeners
|
|
1786
|
+
));
|
|
1616
1787
|
}
|
|
1617
1788
|
}
|
|
1618
1789
|
function resolveModuleChunk(response, chunk, value) {
|
|
1619
|
-
if (
|
|
1790
|
+
if (
|
|
1791
|
+
"pending" === chunk.status ||
|
|
1792
|
+
"pending_weak" === chunk.status ||
|
|
1793
|
+
"blocked" === chunk.status
|
|
1794
|
+
) {
|
|
1620
1795
|
releasePendingChunk(response, chunk);
|
|
1621
|
-
|
|
1622
|
-
|
|
1796
|
+
var resolveListeners = chunk.value,
|
|
1797
|
+
rejectListeners = chunk.reason;
|
|
1623
1798
|
chunk.status = "resolved_module";
|
|
1624
1799
|
chunk.value = value;
|
|
1625
1800
|
chunk.reason = null;
|
|
@@ -1683,15 +1858,22 @@
|
|
|
1683
1858
|
}
|
|
1684
1859
|
null !== debugInfo &&
|
|
1685
1860
|
chunk._debugInfo.push.apply(chunk._debugInfo, debugInfo);
|
|
1686
|
-
null !==
|
|
1861
|
+
null !== resolveListeners &&
|
|
1687
1862
|
(initializeModuleChunk(chunk),
|
|
1688
|
-
wakeChunkIfInitialized(
|
|
1863
|
+
wakeChunkIfInitialized(
|
|
1864
|
+
response,
|
|
1865
|
+
chunk,
|
|
1866
|
+
resolveListeners,
|
|
1867
|
+
rejectListeners
|
|
1868
|
+
));
|
|
1689
1869
|
}
|
|
1690
1870
|
}
|
|
1691
1871
|
function initializeDebugChunk(response, chunk) {
|
|
1692
1872
|
var debugChunk = chunk._debugChunk;
|
|
1693
1873
|
if (null !== debugChunk) {
|
|
1694
|
-
var debugInfo = chunk._debugInfo
|
|
1874
|
+
var debugInfo = chunk._debugInfo,
|
|
1875
|
+
prevIsInitializingDebugInfo = isInitializingDebugInfo;
|
|
1876
|
+
isInitializingDebugInfo = !0;
|
|
1695
1877
|
try {
|
|
1696
1878
|
if ("resolved_model" === debugChunk.status) {
|
|
1697
1879
|
for (
|
|
@@ -1710,6 +1892,7 @@
|
|
|
1710
1892
|
break;
|
|
1711
1893
|
case "blocked":
|
|
1712
1894
|
case "pending":
|
|
1895
|
+
case "pending_weak":
|
|
1713
1896
|
waitForReference(
|
|
1714
1897
|
debugChunk,
|
|
1715
1898
|
debugInfo,
|
|
@@ -1729,6 +1912,7 @@
|
|
|
1729
1912
|
break;
|
|
1730
1913
|
case "blocked":
|
|
1731
1914
|
case "pending":
|
|
1915
|
+
case "pending_weak":
|
|
1732
1916
|
waitForReference(
|
|
1733
1917
|
debugChunk,
|
|
1734
1918
|
{},
|
|
@@ -1744,6 +1928,8 @@
|
|
|
1744
1928
|
}
|
|
1745
1929
|
} catch (error) {
|
|
1746
1930
|
triggerErrorOnChunk(response, chunk, error);
|
|
1931
|
+
} finally {
|
|
1932
|
+
isInitializingDebugInfo = prevIsInitializingDebugInfo;
|
|
1747
1933
|
}
|
|
1748
1934
|
}
|
|
1749
1935
|
}
|
|
@@ -1759,30 +1945,52 @@
|
|
|
1759
1945
|
initializingChunk = chunk;
|
|
1760
1946
|
initializeDebugChunk(response, chunk);
|
|
1761
1947
|
try {
|
|
1762
|
-
var value =
|
|
1763
|
-
|
|
1764
|
-
if (null !==
|
|
1948
|
+
var value = parseModel(response, resolvedModel);
|
|
1949
|
+
resolvedModel = initializingHandler;
|
|
1950
|
+
if (null !== resolvedModel) {
|
|
1951
|
+
if (resolvedModel.errored) {
|
|
1952
|
+
"blocked" === chunk.status &&
|
|
1953
|
+
triggerErrorOnChunk(response, chunk, resolvedModel.reason);
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
resolvedModel.value = value;
|
|
1957
|
+
resolvedModel.chunk = chunk;
|
|
1958
|
+
}
|
|
1959
|
+
var listeners = chunk.value,
|
|
1960
|
+
rejectListeners = chunk.reason;
|
|
1961
|
+
chunk.value = null;
|
|
1962
|
+
chunk.reason = null;
|
|
1963
|
+
if (null !== listeners) {
|
|
1765
1964
|
for (
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1965
|
+
var cyclic = null, deferred = null, i = 0;
|
|
1966
|
+
i < listeners.length;
|
|
1967
|
+
i++
|
|
1769
1968
|
) {
|
|
1770
|
-
var listener =
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1969
|
+
var listener = listeners[i];
|
|
1970
|
+
if (
|
|
1971
|
+
"function" !== typeof listener &&
|
|
1972
|
+
null !== resolveBlockedCycle(chunk, listener)
|
|
1973
|
+
) {
|
|
1974
|
+
if (
|
|
1975
|
+
(null === cyclic && (cyclic = []),
|
|
1976
|
+
cyclic.push(listener),
|
|
1977
|
+
null !== rejectListeners)
|
|
1978
|
+
) {
|
|
1979
|
+
var rejectionIdx = rejectListeners.indexOf(listener);
|
|
1980
|
+
-1 !== rejectionIdx && rejectListeners.splice(rejectionIdx, 1);
|
|
1981
|
+
}
|
|
1982
|
+
} else
|
|
1983
|
+
null === deferred && (deferred = []), deferred.push(listener);
|
|
1781
1984
|
}
|
|
1985
|
+
null !== deferred &&
|
|
1986
|
+
((chunk.value = deferred), (chunk.reason = rejectListeners));
|
|
1987
|
+
if (null !== cyclic)
|
|
1988
|
+
for (listeners = 0; listeners < cyclic.length; listeners++)
|
|
1989
|
+
fulfillReference(response, cyclic[listeners], value, chunk);
|
|
1782
1990
|
}
|
|
1783
|
-
chunk.status
|
|
1784
|
-
|
|
1785
|
-
|
|
1991
|
+
"blocked" !== chunk.status ||
|
|
1992
|
+
(null !== resolvedModel && 0 < resolvedModel.deps) ||
|
|
1993
|
+
initializeBlockedChunk(response, chunk, value, null);
|
|
1786
1994
|
} catch (error) {
|
|
1787
1995
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1788
1996
|
} finally {
|
|
@@ -1794,12 +2002,13 @@
|
|
|
1794
2002
|
var value = requireModule(chunk.value);
|
|
1795
2003
|
chunk.status = "fulfilled";
|
|
1796
2004
|
chunk.value = value;
|
|
2005
|
+
chunk.reason = null;
|
|
1797
2006
|
} catch (error) {
|
|
1798
2007
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1799
2008
|
}
|
|
1800
2009
|
}
|
|
1801
2010
|
function reportGlobalError(weakResponse, error) {
|
|
1802
|
-
if (
|
|
2011
|
+
if (!hasGCedResponse(weakResponse)) {
|
|
1803
2012
|
var response = unwrapWeakResponse(weakResponse);
|
|
1804
2013
|
response._closed = !0;
|
|
1805
2014
|
response._closedReason = error;
|
|
@@ -1829,7 +2038,7 @@
|
|
|
1829
2038
|
null !== type &&
|
|
1830
2039
|
type.$$typeof === REACT_LAZY_TYPE
|
|
1831
2040
|
)
|
|
1832
|
-
return type.
|
|
2041
|
+
return type._payload instanceof ReactPromise ? '"use client"' : "<...>";
|
|
1833
2042
|
try {
|
|
1834
2043
|
var name = getComponentNameFromType(type);
|
|
1835
2044
|
return name ? "<" + name + ">" : "<...>";
|
|
@@ -1875,23 +2084,30 @@
|
|
|
1875
2084
|
element._debugTask = normalizedStackTrace;
|
|
1876
2085
|
null !== owner && initializeFakeStack(response, owner);
|
|
1877
2086
|
null !== lazyNode &&
|
|
1878
|
-
(lazyNode._store &&
|
|
1879
|
-
lazyNode._store.validated &&
|
|
1880
|
-
!element._store.validated &&
|
|
1881
|
-
(element._store.validated = lazyNode._store.validated),
|
|
1882
2087
|
"fulfilled" === lazyNode._payload.status &&
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
2088
|
+
lazyNode._debugInfo &&
|
|
2089
|
+
((response = lazyNode._debugInfo.splice(0)),
|
|
2090
|
+
element._debugInfo
|
|
2091
|
+
? element._debugInfo.unshift.apply(element._debugInfo, response)
|
|
2092
|
+
: Object.defineProperty(element, "_debugInfo", {
|
|
2093
|
+
configurable: !1,
|
|
2094
|
+
enumerable: !1,
|
|
2095
|
+
writable: !0,
|
|
2096
|
+
value: response
|
|
2097
|
+
}));
|
|
1893
2098
|
Object.freeze(element.props);
|
|
1894
2099
|
}
|
|
2100
|
+
function readChunkAndTransferValidation(store, payload) {
|
|
2101
|
+
payload = readChunk(payload);
|
|
2102
|
+
if (store.validated && "object" === typeof payload && null !== payload) {
|
|
2103
|
+
var $$typeof = payload.$$typeof;
|
|
2104
|
+
($$typeof !== REACT_ELEMENT_TYPE && $$typeof !== REACT_LAZY_TYPE) ||
|
|
2105
|
+
!($$typeof = payload._store) ||
|
|
2106
|
+
$$typeof.validated ||
|
|
2107
|
+
($$typeof.validated = store.validated);
|
|
2108
|
+
}
|
|
2109
|
+
return payload;
|
|
2110
|
+
}
|
|
1895
2111
|
function createLazyChunkWrapper(chunk, validated) {
|
|
1896
2112
|
var lazyType = {
|
|
1897
2113
|
$$typeof: REACT_LAZY_TYPE,
|
|
@@ -1899,7 +2115,9 @@
|
|
|
1899
2115
|
_init: readChunk
|
|
1900
2116
|
};
|
|
1901
2117
|
lazyType._debugInfo = chunk._debugInfo;
|
|
1902
|
-
|
|
2118
|
+
chunk = { validated: validated };
|
|
2119
|
+
lazyType._store = chunk;
|
|
2120
|
+
lazyType._init = readChunkAndTransferValidation.bind(null, chunk);
|
|
1903
2121
|
return lazyType;
|
|
1904
2122
|
}
|
|
1905
2123
|
function getChunk(response, id) {
|
|
@@ -1907,14 +2125,39 @@
|
|
|
1907
2125
|
chunk = chunks.get(id);
|
|
1908
2126
|
chunk ||
|
|
1909
2127
|
((chunk = response._closed
|
|
1910
|
-
?
|
|
2128
|
+
? response._allowPartialStream
|
|
2129
|
+
? new ReactPromise("halted", null, null)
|
|
2130
|
+
: new ReactPromise("rejected", null, response._closedReason)
|
|
1911
2131
|
: createPendingChunk(response)),
|
|
1912
2132
|
chunks.set(id, chunk));
|
|
1913
2133
|
return chunk;
|
|
1914
2134
|
}
|
|
1915
|
-
function
|
|
1916
|
-
var
|
|
1917
|
-
|
|
2135
|
+
function initializeBlockedChunk(response, chunk, value, reason) {
|
|
2136
|
+
var resolveListeners = chunk.value;
|
|
2137
|
+
chunk._receivedDebugInfo = null;
|
|
2138
|
+
chunk.status = "fulfilled";
|
|
2139
|
+
chunk.value = value;
|
|
2140
|
+
chunk.reason = reason;
|
|
2141
|
+
null !== resolveListeners
|
|
2142
|
+
? wakeChunk(response, resolveListeners, value, chunk)
|
|
2143
|
+
: (filterDebugInfo(response, chunk),
|
|
2144
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value));
|
|
2145
|
+
}
|
|
2146
|
+
function initializeChunkIfUnblocked(response, handler) {
|
|
2147
|
+
if (0 === handler.deps && !handler.errored) {
|
|
2148
|
+
var chunk = handler.chunk;
|
|
2149
|
+
null !== chunk &&
|
|
2150
|
+
"blocked" === chunk.status &&
|
|
2151
|
+
initializeBlockedChunk(
|
|
2152
|
+
response,
|
|
2153
|
+
chunk,
|
|
2154
|
+
handler.value,
|
|
2155
|
+
handler.reason
|
|
2156
|
+
);
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
function fulfillReference(response, reference, value, fulfilledChunk) {
|
|
2160
|
+
var handler = reference.handler,
|
|
1918
2161
|
parentObject = reference.parentObject,
|
|
1919
2162
|
key = reference.key,
|
|
1920
2163
|
map = reference.map,
|
|
@@ -1952,6 +2195,7 @@
|
|
|
1952
2195
|
continue;
|
|
1953
2196
|
}
|
|
1954
2197
|
case "pending":
|
|
2198
|
+
case "pending_weak":
|
|
1955
2199
|
path.splice(0, i - 1);
|
|
1956
2200
|
null === referencedChunk.value
|
|
1957
2201
|
? (referencedChunk.value = [reference])
|
|
@@ -1963,7 +2207,11 @@
|
|
|
1963
2207
|
case "halted":
|
|
1964
2208
|
return;
|
|
1965
2209
|
default:
|
|
1966
|
-
rejectReference(
|
|
2210
|
+
rejectReference(
|
|
2211
|
+
response,
|
|
2212
|
+
reference.handler,
|
|
2213
|
+
referencedChunk.reason
|
|
2214
|
+
);
|
|
1967
2215
|
return;
|
|
1968
2216
|
}
|
|
1969
2217
|
}
|
|
@@ -2014,7 +2262,8 @@
|
|
|
2014
2262
|
var element = handler.value;
|
|
2015
2263
|
switch (key) {
|
|
2016
2264
|
case "3":
|
|
2017
|
-
|
|
2265
|
+
reference.isDebug ||
|
|
2266
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2018
2267
|
element.props = mappedValue;
|
|
2019
2268
|
break;
|
|
2020
2269
|
case "4":
|
|
@@ -2024,29 +2273,20 @@
|
|
|
2024
2273
|
element._debugStack = mappedValue;
|
|
2025
2274
|
break;
|
|
2026
2275
|
default:
|
|
2027
|
-
|
|
2276
|
+
reference.isDebug ||
|
|
2277
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2028
2278
|
}
|
|
2029
2279
|
} else
|
|
2030
2280
|
reference.isDebug ||
|
|
2031
2281
|
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2032
2282
|
} catch (error) {
|
|
2033
|
-
rejectReference(reference, error);
|
|
2283
|
+
rejectReference(response, reference.handler, error);
|
|
2034
2284
|
return;
|
|
2035
2285
|
}
|
|
2036
2286
|
handler.deps--;
|
|
2037
|
-
|
|
2038
|
-
((reference = handler.chunk),
|
|
2039
|
-
null !== reference &&
|
|
2040
|
-
"blocked" === reference.status &&
|
|
2041
|
-
((value = reference.value),
|
|
2042
|
-
(reference.status = "fulfilled"),
|
|
2043
|
-
(reference.value = handler.value),
|
|
2044
|
-
(reference.reason = handler.reason),
|
|
2045
|
-
null !== value && wakeChunk(value, handler.value, reference)));
|
|
2287
|
+
initializeChunkIfUnblocked(response, handler);
|
|
2046
2288
|
}
|
|
2047
|
-
function rejectReference(
|
|
2048
|
-
var handler = reference.handler;
|
|
2049
|
-
reference = reference.response;
|
|
2289
|
+
function rejectReference(response, handler, error) {
|
|
2050
2290
|
if (!handler.errored) {
|
|
2051
2291
|
var blockedValue = handler.value;
|
|
2052
2292
|
handler.errored = !0;
|
|
@@ -2068,7 +2308,7 @@
|
|
|
2068
2308
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2069
2309
|
handler._debugInfo.push(erroredComponent);
|
|
2070
2310
|
}
|
|
2071
|
-
triggerErrorOnChunk(
|
|
2311
|
+
triggerErrorOnChunk(response, handler, error);
|
|
2072
2312
|
}
|
|
2073
2313
|
}
|
|
2074
2314
|
}
|
|
@@ -2091,21 +2331,19 @@
|
|
|
2091
2331
|
)
|
|
2092
2332
|
)
|
|
2093
2333
|
return null;
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
};
|
|
2334
|
+
initializingHandler
|
|
2335
|
+
? ((response = initializingHandler), response.deps++)
|
|
2336
|
+
: (response = initializingHandler =
|
|
2337
|
+
{
|
|
2338
|
+
parent: null,
|
|
2339
|
+
chunk: null,
|
|
2340
|
+
value: null,
|
|
2341
|
+
reason: null,
|
|
2342
|
+
deps: 1,
|
|
2343
|
+
errored: !1
|
|
2344
|
+
});
|
|
2106
2345
|
parentObject = {
|
|
2107
|
-
|
|
2108
|
-
handler: handler,
|
|
2346
|
+
handler: response,
|
|
2109
2347
|
parentObject: parentObject,
|
|
2110
2348
|
key: key,
|
|
2111
2349
|
map: map,
|
|
@@ -2185,25 +2423,20 @@
|
|
|
2185
2423
|
boundArgs._owner = resolvedValue;
|
|
2186
2424
|
}
|
|
2187
2425
|
handler.deps--;
|
|
2188
|
-
|
|
2189
|
-
((resolvedValue = handler.chunk),
|
|
2190
|
-
null !== resolvedValue &&
|
|
2191
|
-
"blocked" === resolvedValue.status &&
|
|
2192
|
-
((boundArgs = resolvedValue.value),
|
|
2193
|
-
(resolvedValue.status = "fulfilled"),
|
|
2194
|
-
(resolvedValue.value = handler.value),
|
|
2195
|
-
(resolvedValue.reason = null),
|
|
2196
|
-
null !== boundArgs &&
|
|
2197
|
-
wakeChunk(boundArgs, handler.value, resolvedValue)));
|
|
2426
|
+
initializeChunkIfUnblocked(response, handler);
|
|
2198
2427
|
},
|
|
2199
2428
|
function (error) {
|
|
2200
2429
|
if (!handler.errored) {
|
|
2201
|
-
var blockedValue = handler.value
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2430
|
+
var blockedValue = handler.value,
|
|
2431
|
+
erroredHandler = handler;
|
|
2432
|
+
erroredHandler.errored = !0;
|
|
2433
|
+
erroredHandler.value = null;
|
|
2434
|
+
erroredHandler.reason = error;
|
|
2435
|
+
erroredHandler = handler.chunk;
|
|
2436
|
+
if (
|
|
2437
|
+
null !== erroredHandler &&
|
|
2438
|
+
"blocked" === erroredHandler.status
|
|
2439
|
+
) {
|
|
2207
2440
|
if (
|
|
2208
2441
|
"object" === typeof blockedValue &&
|
|
2209
2442
|
null !== blockedValue &&
|
|
@@ -2216,9 +2449,9 @@
|
|
|
2216
2449
|
erroredComponent.debugStack = blockedValue._debugStack;
|
|
2217
2450
|
supportsCreateTask &&
|
|
2218
2451
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2219
|
-
|
|
2452
|
+
erroredHandler._debugInfo.push(erroredComponent);
|
|
2220
2453
|
}
|
|
2221
|
-
triggerErrorOnChunk(response,
|
|
2454
|
+
triggerErrorOnChunk(response, erroredHandler, error);
|
|
2222
2455
|
}
|
|
2223
2456
|
}
|
|
2224
2457
|
}
|
|
@@ -2239,33 +2472,46 @@
|
|
|
2239
2472
|
}
|
|
2240
2473
|
return value;
|
|
2241
2474
|
}
|
|
2242
|
-
function transferReferencedDebugInfo(
|
|
2243
|
-
if (null !==
|
|
2475
|
+
function transferReferencedDebugInfo(receivingChunk, referencedChunk) {
|
|
2476
|
+
if (null !== receivingChunk) {
|
|
2244
2477
|
referencedChunk = referencedChunk._debugInfo;
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2478
|
+
var receivingDebugInfo = receivingChunk._debugInfo,
|
|
2479
|
+
receivedDebugInfo = receivingChunk._receivedDebugInfo;
|
|
2480
|
+
null === receivedDebugInfo &&
|
|
2481
|
+
(receivedDebugInfo = receivingChunk._receivedDebugInfo = new Set());
|
|
2482
|
+
for (
|
|
2483
|
+
receivingChunk = 0;
|
|
2484
|
+
receivingChunk < referencedChunk.length;
|
|
2485
|
+
++receivingChunk
|
|
2486
|
+
) {
|
|
2487
|
+
var debugInfoEntry = referencedChunk[receivingChunk];
|
|
2488
|
+
null != debugInfoEntry.name ||
|
|
2489
|
+
receivedDebugInfo.has(debugInfoEntry) ||
|
|
2490
|
+
(receivedDebugInfo.add(debugInfoEntry),
|
|
2491
|
+
receivingDebugInfo.push(debugInfoEntry));
|
|
2249
2492
|
}
|
|
2250
2493
|
}
|
|
2251
2494
|
}
|
|
2252
2495
|
function getOutlinedModel(response, reference, parentObject, key, map) {
|
|
2253
|
-
var
|
|
2254
|
-
reference =
|
|
2255
|
-
|
|
2496
|
+
var id = parseInt(reference, 16);
|
|
2497
|
+
reference =
|
|
2498
|
+
-1 === reference.indexOf(":")
|
|
2499
|
+
? EMPTY_REFERENCE_PATH
|
|
2500
|
+
: reference.split(":");
|
|
2501
|
+
id = getChunk(response, id);
|
|
2256
2502
|
null !== initializingChunk &&
|
|
2257
2503
|
isArrayImpl(initializingChunk._children) &&
|
|
2258
|
-
initializingChunk._children.push(
|
|
2259
|
-
switch (
|
|
2504
|
+
initializingChunk._children.push(id);
|
|
2505
|
+
switch (id.status) {
|
|
2260
2506
|
case "resolved_model":
|
|
2261
|
-
initializeModelChunk(
|
|
2507
|
+
initializeModelChunk(id);
|
|
2262
2508
|
break;
|
|
2263
2509
|
case "resolved_module":
|
|
2264
|
-
initializeModuleChunk(
|
|
2510
|
+
initializeModuleChunk(id);
|
|
2265
2511
|
}
|
|
2266
|
-
switch (
|
|
2512
|
+
switch (id.status) {
|
|
2267
2513
|
case "fulfilled":
|
|
2268
|
-
for (var value =
|
|
2514
|
+
for (var value = id.value, i = 1; i < reference.length; i++) {
|
|
2269
2515
|
for (
|
|
2270
2516
|
;
|
|
2271
2517
|
"object" === typeof value &&
|
|
@@ -2287,14 +2533,15 @@
|
|
|
2287
2533
|
break;
|
|
2288
2534
|
case "blocked":
|
|
2289
2535
|
case "pending":
|
|
2536
|
+
case "pending_weak":
|
|
2290
2537
|
return waitForReference(
|
|
2291
2538
|
value,
|
|
2292
2539
|
parentObject,
|
|
2293
2540
|
key,
|
|
2294
2541
|
response,
|
|
2295
2542
|
map,
|
|
2296
|
-
|
|
2297
|
-
|
|
2543
|
+
reference.slice(i - 1),
|
|
2544
|
+
isInitializingDebugInfo
|
|
2298
2545
|
);
|
|
2299
2546
|
case "halted":
|
|
2300
2547
|
return (
|
|
@@ -2314,9 +2561,10 @@
|
|
|
2314
2561
|
default:
|
|
2315
2562
|
return (
|
|
2316
2563
|
initializingHandler
|
|
2317
|
-
? ((
|
|
2318
|
-
(
|
|
2319
|
-
(
|
|
2564
|
+
? ((parentObject = initializingHandler),
|
|
2565
|
+
(parentObject.errored = !0),
|
|
2566
|
+
(parentObject.value = null),
|
|
2567
|
+
(parentObject.reason = value.reason))
|
|
2320
2568
|
: (initializingHandler = {
|
|
2321
2569
|
parent: null,
|
|
2322
2570
|
chunk: null,
|
|
@@ -2329,7 +2577,16 @@
|
|
|
2329
2577
|
);
|
|
2330
2578
|
}
|
|
2331
2579
|
}
|
|
2332
|
-
|
|
2580
|
+
var name = reference[i];
|
|
2581
|
+
if (
|
|
2582
|
+
"object" !== typeof value ||
|
|
2583
|
+
null === value ||
|
|
2584
|
+
(getPrototypeOf(value) !== ObjectPrototype &&
|
|
2585
|
+
getPrototypeOf(value) !== ArrayPrototype) ||
|
|
2586
|
+
!hasOwnProperty.call(value, name)
|
|
2587
|
+
)
|
|
2588
|
+
throw Error("Invalid reference.");
|
|
2589
|
+
value = value[name];
|
|
2333
2590
|
}
|
|
2334
2591
|
for (
|
|
2335
2592
|
;
|
|
@@ -2338,36 +2595,40 @@
|
|
|
2338
2595
|
value.$$typeof === REACT_LAZY_TYPE;
|
|
2339
2596
|
|
|
2340
2597
|
) {
|
|
2341
|
-
|
|
2342
|
-
switch (
|
|
2598
|
+
reference = value._payload;
|
|
2599
|
+
switch (reference.status) {
|
|
2343
2600
|
case "resolved_model":
|
|
2344
|
-
initializeModelChunk(
|
|
2601
|
+
initializeModelChunk(reference);
|
|
2345
2602
|
break;
|
|
2346
2603
|
case "resolved_module":
|
|
2347
|
-
initializeModuleChunk(
|
|
2604
|
+
initializeModuleChunk(reference);
|
|
2348
2605
|
}
|
|
2349
|
-
switch (
|
|
2606
|
+
switch (reference.status) {
|
|
2350
2607
|
case "fulfilled":
|
|
2351
|
-
value =
|
|
2608
|
+
value = reference.value;
|
|
2352
2609
|
continue;
|
|
2353
2610
|
}
|
|
2354
2611
|
break;
|
|
2355
2612
|
}
|
|
2356
2613
|
response = map(response, value, parentObject, key);
|
|
2357
|
-
(
|
|
2358
|
-
|
|
2359
|
-
|
|
2614
|
+
if (
|
|
2615
|
+
parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2616
|
+
("4" !== key && "5" !== key)
|
|
2617
|
+
)
|
|
2618
|
+
isInitializingDebugInfo ||
|
|
2619
|
+
transferReferencedDebugInfo(initializingChunk, id);
|
|
2360
2620
|
return response;
|
|
2361
2621
|
case "pending":
|
|
2622
|
+
case "pending_weak":
|
|
2362
2623
|
case "blocked":
|
|
2363
2624
|
return waitForReference(
|
|
2364
|
-
|
|
2625
|
+
id,
|
|
2365
2626
|
parentObject,
|
|
2366
2627
|
key,
|
|
2367
2628
|
response,
|
|
2368
2629
|
map,
|
|
2369
|
-
|
|
2370
|
-
|
|
2630
|
+
reference,
|
|
2631
|
+
isInitializingDebugInfo
|
|
2371
2632
|
);
|
|
2372
2633
|
case "halted":
|
|
2373
2634
|
return (
|
|
@@ -2386,14 +2647,15 @@
|
|
|
2386
2647
|
default:
|
|
2387
2648
|
return (
|
|
2388
2649
|
initializingHandler
|
|
2389
|
-
? ((
|
|
2390
|
-
(
|
|
2391
|
-
(
|
|
2650
|
+
? ((parentObject = initializingHandler),
|
|
2651
|
+
(parentObject.errored = !0),
|
|
2652
|
+
(parentObject.value = null),
|
|
2653
|
+
(parentObject.reason = id.reason))
|
|
2392
2654
|
: (initializingHandler = {
|
|
2393
2655
|
parent: null,
|
|
2394
2656
|
chunk: null,
|
|
2395
2657
|
value: null,
|
|
2396
|
-
reason:
|
|
2658
|
+
reason: id.reason,
|
|
2397
2659
|
deps: 0,
|
|
2398
2660
|
errored: !0
|
|
2399
2661
|
}),
|
|
@@ -2432,6 +2694,7 @@
|
|
|
2432
2694
|
}
|
|
2433
2695
|
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2434
2696
|
},
|
|
2697
|
+
set: function () {},
|
|
2435
2698
|
enumerable: !0,
|
|
2436
2699
|
configurable: !1
|
|
2437
2700
|
});
|
|
@@ -2511,6 +2774,8 @@
|
|
|
2511
2774
|
initializingChunk._children.push(response),
|
|
2512
2775
|
response
|
|
2513
2776
|
);
|
|
2777
|
+
case "w":
|
|
2778
|
+
return;
|
|
2514
2779
|
case "S":
|
|
2515
2780
|
return Symbol.for(value.slice(2));
|
|
2516
2781
|
case "h":
|
|
@@ -2643,6 +2908,7 @@
|
|
|
2643
2908
|
get: function () {
|
|
2644
2909
|
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2645
2910
|
},
|
|
2911
|
+
set: function () {},
|
|
2646
2912
|
enumerable: !0,
|
|
2647
2913
|
configurable: !1
|
|
2648
2914
|
});
|
|
@@ -2661,6 +2927,9 @@
|
|
|
2661
2927
|
'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
|
|
2662
2928
|
);
|
|
2663
2929
|
}
|
|
2930
|
+
function markIOStarted() {
|
|
2931
|
+
this._debugIOStarted = !0;
|
|
2932
|
+
}
|
|
2664
2933
|
function ResponseInstance(
|
|
2665
2934
|
bundlerConfig,
|
|
2666
2935
|
serverReferenceConfig,
|
|
@@ -2669,9 +2938,12 @@
|
|
|
2669
2938
|
encodeFormAction,
|
|
2670
2939
|
nonce,
|
|
2671
2940
|
temporaryReferences,
|
|
2941
|
+
allowPartialStream,
|
|
2672
2942
|
findSourceMapURL,
|
|
2673
2943
|
replayConsole,
|
|
2674
2944
|
environmentName,
|
|
2945
|
+
debugStartTime,
|
|
2946
|
+
debugEndTime,
|
|
2675
2947
|
debugChannel
|
|
2676
2948
|
) {
|
|
2677
2949
|
var chunks = new Map();
|
|
@@ -2683,9 +2955,9 @@
|
|
|
2683
2955
|
this._nonce = nonce;
|
|
2684
2956
|
this._chunks = chunks;
|
|
2685
2957
|
this._stringDecoder = new TextDecoder();
|
|
2686
|
-
this._fromJSON = null;
|
|
2687
2958
|
this._closed = !1;
|
|
2688
2959
|
this._closedReason = null;
|
|
2960
|
+
this._allowPartialStream = allowPartialStream;
|
|
2689
2961
|
this._tempRefs = temporaryReferences;
|
|
2690
2962
|
this._timeOrigin = 0;
|
|
2691
2963
|
this._pendingInitialRender = null;
|
|
@@ -2703,7 +2975,11 @@
|
|
|
2703
2975
|
(this._debugRootTask = console.createTask(
|
|
2704
2976
|
'"use ' + environmentName.toLowerCase() + '"'
|
|
2705
2977
|
));
|
|
2706
|
-
this._debugStartTime =
|
|
2978
|
+
this._debugStartTime =
|
|
2979
|
+
null == debugStartTime ? performance.now() : debugStartTime;
|
|
2980
|
+
this._debugIOStarted = !1;
|
|
2981
|
+
setTimeout(markIOStarted.bind(this), 0);
|
|
2982
|
+
this._debugEndTime = void 0 === debugEndTime ? null : debugEndTime;
|
|
2707
2983
|
this._debugFindSourceMapURL = findSourceMapURL;
|
|
2708
2984
|
this._debugChannel = debugChannel;
|
|
2709
2985
|
this._blockedConsole = null;
|
|
@@ -2714,7 +2990,6 @@
|
|
|
2714
2990
|
? (closeDebugChannel(debugChannel), (this._debugChannel = void 0))
|
|
2715
2991
|
: debugChannelRegistry.register(this, debugChannel, this));
|
|
2716
2992
|
replayConsole && markAllTracksInOrder();
|
|
2717
|
-
this._fromJSON = createFromJSONCallback(this);
|
|
2718
2993
|
}
|
|
2719
2994
|
function createStreamState(weakResponse, streamDebugValue) {
|
|
2720
2995
|
var streamState = {
|
|
@@ -2729,7 +3004,7 @@
|
|
|
2729
3004
|
debugValuePromise.status = "fulfilled";
|
|
2730
3005
|
debugValuePromise.value = streamDebugValue;
|
|
2731
3006
|
streamState._debugInfo = {
|
|
2732
|
-
name: "
|
|
3007
|
+
name: "rsc stream",
|
|
2733
3008
|
start: weakResponse._debugStartTime,
|
|
2734
3009
|
end: weakResponse._debugStartTime,
|
|
2735
3010
|
byteSize: 0,
|
|
@@ -2761,7 +3036,7 @@
|
|
|
2761
3036
|
(streamState._debugTargetChunkSize = chunkLength + MIN_CHUNK_SIZE))
|
|
2762
3037
|
: ((debugInfo.end = endTime), (debugInfo.byteSize = chunkLength));
|
|
2763
3038
|
}
|
|
2764
|
-
function
|
|
3039
|
+
function addAsyncInfo(chunk, asyncInfo) {
|
|
2765
3040
|
var value = resolveLazy(chunk.value);
|
|
2766
3041
|
"object" !== typeof value ||
|
|
2767
3042
|
null === value ||
|
|
@@ -2769,22 +3044,24 @@
|
|
|
2769
3044
|
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
2770
3045
|
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
2771
3046
|
value.$$typeof !== REACT_LAZY_TYPE)
|
|
2772
|
-
? chunk._debugInfo.push
|
|
3047
|
+
? chunk._debugInfo.push(asyncInfo)
|
|
2773
3048
|
: isArrayImpl(value._debugInfo)
|
|
2774
|
-
? value._debugInfo.push
|
|
2775
|
-
: Object.
|
|
3049
|
+
? value._debugInfo.push(asyncInfo)
|
|
3050
|
+
: Object.isFrozen(value) ||
|
|
3051
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2776
3052
|
configurable: !1,
|
|
2777
3053
|
enumerable: !1,
|
|
2778
3054
|
writable: !0,
|
|
2779
|
-
value:
|
|
3055
|
+
value: [asyncInfo]
|
|
2780
3056
|
});
|
|
2781
3057
|
}
|
|
2782
|
-
function resolveChunkDebugInfo(streamState, chunk) {
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
3058
|
+
function resolveChunkDebugInfo(response, streamState, chunk) {
|
|
3059
|
+
response._debugIOStarted &&
|
|
3060
|
+
((response = { awaited: streamState._debugInfo }),
|
|
3061
|
+
"pending" === chunk.status || "blocked" === chunk.status
|
|
3062
|
+
? ((response = addAsyncInfo.bind(null, chunk, response)),
|
|
3063
|
+
chunk.then(response, response))
|
|
3064
|
+
: addAsyncInfo(chunk, response));
|
|
2788
3065
|
}
|
|
2789
3066
|
function resolveBuffer(response, id, buffer, streamState) {
|
|
2790
3067
|
var chunks = response._chunks,
|
|
@@ -2792,17 +3069,27 @@
|
|
|
2792
3069
|
chunk && "pending" !== chunk.status
|
|
2793
3070
|
? chunk.reason.enqueueValue(buffer)
|
|
2794
3071
|
: (chunk && releasePendingChunk(response, chunk),
|
|
2795
|
-
(
|
|
2796
|
-
resolveChunkDebugInfo(streamState,
|
|
2797
|
-
chunks.set(id,
|
|
3072
|
+
(buffer = new ReactPromise("fulfilled", buffer, null)),
|
|
3073
|
+
resolveChunkDebugInfo(response, streamState, buffer),
|
|
3074
|
+
chunks.set(id, buffer));
|
|
2798
3075
|
}
|
|
2799
3076
|
function resolveModule(response, id, model, streamState) {
|
|
2800
3077
|
var chunks = response._chunks,
|
|
2801
|
-
chunk = chunks.get(id)
|
|
2802
|
-
|
|
3078
|
+
chunk = chunks.get(id),
|
|
3079
|
+
prevHandler = initializingHandler;
|
|
3080
|
+
initializingHandler = null;
|
|
3081
|
+
try {
|
|
3082
|
+
var clientReferenceMetadata = parseModel(response, model);
|
|
3083
|
+
if (null !== initializingHandler)
|
|
3084
|
+
throw Error(
|
|
3085
|
+
"A client reference was blocked on a row that has not been received yet. This is a bug in React."
|
|
3086
|
+
);
|
|
3087
|
+
} finally {
|
|
3088
|
+
initializingHandler = prevHandler;
|
|
3089
|
+
}
|
|
2803
3090
|
var clientReference = resolveClientReference(
|
|
2804
3091
|
response._bundlerConfig,
|
|
2805
|
-
|
|
3092
|
+
clientReferenceMetadata
|
|
2806
3093
|
);
|
|
2807
3094
|
if ((model = preloadModule(clientReference))) {
|
|
2808
3095
|
if (chunk) {
|
|
@@ -2812,7 +3099,7 @@
|
|
|
2812
3099
|
} else
|
|
2813
3100
|
(blockedChunk = new ReactPromise("blocked", null, null)),
|
|
2814
3101
|
chunks.set(id, blockedChunk);
|
|
2815
|
-
resolveChunkDebugInfo(streamState, blockedChunk);
|
|
3102
|
+
resolveChunkDebugInfo(response, streamState, blockedChunk);
|
|
2816
3103
|
model.then(
|
|
2817
3104
|
function () {
|
|
2818
3105
|
return resolveModuleChunk(response, blockedChunk, clientReference);
|
|
@@ -2823,14 +3110,14 @@
|
|
|
2823
3110
|
);
|
|
2824
3111
|
} else
|
|
2825
3112
|
chunk
|
|
2826
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
3113
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
2827
3114
|
resolveModuleChunk(response, chunk, clientReference))
|
|
2828
3115
|
: ((chunk = new ReactPromise(
|
|
2829
3116
|
"resolved_module",
|
|
2830
3117
|
clientReference,
|
|
2831
3118
|
null
|
|
2832
3119
|
)),
|
|
2833
|
-
resolveChunkDebugInfo(streamState, chunk),
|
|
3120
|
+
resolveChunkDebugInfo(response, streamState, chunk),
|
|
2834
3121
|
chunks.set(id, chunk));
|
|
2835
3122
|
}
|
|
2836
3123
|
function resolveStream(response, id, stream, controller, streamState) {
|
|
@@ -2838,10 +3125,9 @@
|
|
|
2838
3125
|
chunk = chunks.get(id);
|
|
2839
3126
|
if (chunk) {
|
|
2840
3127
|
if (
|
|
2841
|
-
(resolveChunkDebugInfo(streamState, chunk),
|
|
3128
|
+
(resolveChunkDebugInfo(response, streamState, chunk),
|
|
2842
3129
|
"pending" === chunk.status)
|
|
2843
3130
|
) {
|
|
2844
|
-
releasePendingChunk(response, chunk);
|
|
2845
3131
|
id = chunk.value;
|
|
2846
3132
|
if (null != chunk._debugChunk) {
|
|
2847
3133
|
streamState = initializingHandler;
|
|
@@ -2870,12 +3156,17 @@
|
|
|
2870
3156
|
chunk.status = "fulfilled";
|
|
2871
3157
|
chunk.value = stream;
|
|
2872
3158
|
chunk.reason = controller;
|
|
2873
|
-
null !== id
|
|
3159
|
+
null !== id
|
|
3160
|
+
? wakeChunk(response, id, chunk.value, chunk)
|
|
3161
|
+
: (filterDebugInfo(response, chunk),
|
|
3162
|
+
moveDebugInfoFromChunkToInnerValue(chunk, stream));
|
|
2874
3163
|
}
|
|
2875
3164
|
} else
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
3165
|
+
0 === response._pendingChunks++ &&
|
|
3166
|
+
(response._weakResponse.response = response),
|
|
3167
|
+
(stream = new ReactPromise("fulfilled", stream, controller)),
|
|
3168
|
+
resolveChunkDebugInfo(response, streamState, stream),
|
|
3169
|
+
chunks.set(id, stream);
|
|
2879
3170
|
}
|
|
2880
3171
|
function startReadableStream(response, id, type, streamState) {
|
|
2881
3172
|
var controller = null,
|
|
@@ -2916,8 +3207,8 @@
|
|
|
2916
3207
|
(previousBlockedChunk = chunk));
|
|
2917
3208
|
} else {
|
|
2918
3209
|
chunk = previousBlockedChunk;
|
|
2919
|
-
var
|
|
2920
|
-
|
|
3210
|
+
var _chunk4 = createPendingChunk(response);
|
|
3211
|
+
_chunk4.then(
|
|
2921
3212
|
function (v) {
|
|
2922
3213
|
return controller.enqueue(v);
|
|
2923
3214
|
},
|
|
@@ -2925,11 +3216,11 @@
|
|
|
2925
3216
|
return controller.error(e);
|
|
2926
3217
|
}
|
|
2927
3218
|
);
|
|
2928
|
-
previousBlockedChunk =
|
|
3219
|
+
previousBlockedChunk = _chunk4;
|
|
2929
3220
|
chunk.then(function () {
|
|
2930
|
-
previousBlockedChunk ===
|
|
3221
|
+
previousBlockedChunk === _chunk4 &&
|
|
2931
3222
|
(previousBlockedChunk = null);
|
|
2932
|
-
resolveModelChunk(response,
|
|
3223
|
+
resolveModelChunk(response, _chunk4, json);
|
|
2933
3224
|
});
|
|
2934
3225
|
}
|
|
2935
3226
|
},
|
|
@@ -3014,6 +3305,7 @@
|
|
|
3014
3305
|
chunk.reason = null;
|
|
3015
3306
|
null !== resolveListeners &&
|
|
3016
3307
|
wakeChunkIfInitialized(
|
|
3308
|
+
response,
|
|
3017
3309
|
chunk,
|
|
3018
3310
|
resolveListeners,
|
|
3019
3311
|
rejectListeners
|
|
@@ -3077,19 +3369,46 @@
|
|
|
3077
3369
|
}
|
|
3078
3370
|
function resolveErrorDev(response, errorInfo) {
|
|
3079
3371
|
var name = errorInfo.name,
|
|
3080
|
-
|
|
3081
|
-
|
|
3372
|
+
message = errorInfo.message,
|
|
3373
|
+
stack = errorInfo.stack,
|
|
3374
|
+
env = errorInfo.env,
|
|
3375
|
+
errorOptions =
|
|
3376
|
+
"cause" in errorInfo
|
|
3377
|
+
? {
|
|
3378
|
+
cause: reviveModel(
|
|
3379
|
+
response,
|
|
3380
|
+
errorInfo.cause,
|
|
3381
|
+
errorInfo,
|
|
3382
|
+
"cause"
|
|
3383
|
+
)
|
|
3384
|
+
}
|
|
3385
|
+
: void 0,
|
|
3386
|
+
isAggregateError =
|
|
3387
|
+
"undefined" !== typeof AggregateError && "errors" in errorInfo,
|
|
3388
|
+
revivedErrors = isAggregateError
|
|
3389
|
+
? reviveModel(response, errorInfo.errors, errorInfo, "errors")
|
|
3390
|
+
: null;
|
|
3391
|
+
message = buildFakeCallStack(
|
|
3082
3392
|
response,
|
|
3083
|
-
|
|
3393
|
+
stack,
|
|
3084
3394
|
env,
|
|
3085
3395
|
!1,
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3396
|
+
isAggregateError
|
|
3397
|
+
? AggregateError.bind(
|
|
3398
|
+
null,
|
|
3399
|
+
revivedErrors,
|
|
3400
|
+
message ||
|
|
3401
|
+
"An error occurred in the Server Components render but no message was provided",
|
|
3402
|
+
errorOptions
|
|
3403
|
+
)
|
|
3404
|
+
: Error.bind(
|
|
3405
|
+
null,
|
|
3406
|
+
message ||
|
|
3407
|
+
"An error occurred in the Server Components render but no message was provided",
|
|
3408
|
+
errorOptions
|
|
3409
|
+
)
|
|
3091
3410
|
);
|
|
3092
|
-
|
|
3411
|
+
stack = null;
|
|
3093
3412
|
null != errorInfo.owner &&
|
|
3094
3413
|
((errorInfo = errorInfo.owner.slice(1)),
|
|
3095
3414
|
(errorInfo = getOutlinedModel(
|
|
@@ -3100,14 +3419,14 @@
|
|
|
3100
3419
|
createModel
|
|
3101
3420
|
)),
|
|
3102
3421
|
null !== errorInfo &&
|
|
3103
|
-
(
|
|
3104
|
-
null ===
|
|
3422
|
+
(stack = initializeFakeTask(response, errorInfo)));
|
|
3423
|
+
null === stack
|
|
3105
3424
|
? ((response = getRootTask(response, env)),
|
|
3106
|
-
(
|
|
3107
|
-
: (
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
return
|
|
3425
|
+
(response = null != response ? response.run(message) : message()))
|
|
3426
|
+
: (response = stack.run(message));
|
|
3427
|
+
response.name = name;
|
|
3428
|
+
response.environmentName = env;
|
|
3429
|
+
return response;
|
|
3111
3430
|
}
|
|
3112
3431
|
function createFakeFunction(
|
|
3113
3432
|
name,
|
|
@@ -3200,9 +3519,10 @@
|
|
|
3200
3519
|
try {
|
|
3201
3520
|
var fn = (0, eval)(encodedName)[name];
|
|
3202
3521
|
} catch (x) {
|
|
3203
|
-
fn = function (_) {
|
|
3522
|
+
(fn = function (_) {
|
|
3204
3523
|
return _();
|
|
3205
|
-
}
|
|
3524
|
+
}),
|
|
3525
|
+
Object.defineProperty(fn, "name", { value: name });
|
|
3206
3526
|
}
|
|
3207
3527
|
return fn;
|
|
3208
3528
|
}
|
|
@@ -3302,7 +3622,11 @@
|
|
|
3302
3622
|
return (debugInfo.debugTask = response);
|
|
3303
3623
|
}
|
|
3304
3624
|
function fakeJSXCallSite() {
|
|
3305
|
-
|
|
3625
|
+
var previousStackTraceLimit = Error.stackTraceLimit;
|
|
3626
|
+
Error.stackTraceLimit = ownerStackTraceLimit;
|
|
3627
|
+
var error = Error("react-stack-top-frame");
|
|
3628
|
+
Error.stackTraceLimit = previousStackTraceLimit;
|
|
3629
|
+
return error;
|
|
3306
3630
|
}
|
|
3307
3631
|
function initializeFakeStack(response, debugInfo) {
|
|
3308
3632
|
if (void 0 === debugInfo.debugStack) {
|
|
@@ -3405,18 +3729,18 @@
|
|
|
3405
3729
|
),
|
|
3406
3730
|
(response._blockedConsole = blockedChunk));
|
|
3407
3731
|
else {
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3732
|
+
var _chunk5 = createPendingChunk(response);
|
|
3733
|
+
_chunk5.then(
|
|
3410
3734
|
function (v) {
|
|
3411
3735
|
return replayConsoleWithCallStackInDEV(response, v);
|
|
3412
3736
|
},
|
|
3413
3737
|
function () {}
|
|
3414
3738
|
);
|
|
3415
|
-
response._blockedConsole =
|
|
3739
|
+
response._blockedConsole = _chunk5;
|
|
3416
3740
|
var unblock = function () {
|
|
3417
|
-
response._blockedConsole ===
|
|
3741
|
+
response._blockedConsole === _chunk5 &&
|
|
3418
3742
|
(response._blockedConsole = null);
|
|
3419
|
-
resolveModelChunk(response,
|
|
3743
|
+
resolveModelChunk(response, _chunk5, json);
|
|
3420
3744
|
};
|
|
3421
3745
|
blockedChunk.then(unblock, unblock);
|
|
3422
3746
|
}
|
|
@@ -3450,13 +3774,19 @@
|
|
|
3450
3774
|
}
|
|
3451
3775
|
function resolveIOInfo(response, id, model) {
|
|
3452
3776
|
var chunks = response._chunks,
|
|
3453
|
-
chunk = chunks.get(id)
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3777
|
+
chunk = chunks.get(id),
|
|
3778
|
+
prevIsInitializingDebugInfo = isInitializingDebugInfo;
|
|
3779
|
+
isInitializingDebugInfo = !0;
|
|
3780
|
+
try {
|
|
3781
|
+
chunk
|
|
3782
|
+
? (resolveModelChunk(response, chunk, model),
|
|
3783
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk))
|
|
3784
|
+
: ((chunk = createResolvedModelChunk(response, model)),
|
|
3785
|
+
chunks.set(id, chunk),
|
|
3786
|
+
initializeModelChunk(chunk));
|
|
3787
|
+
} finally {
|
|
3788
|
+
isInitializingDebugInfo = prevIsInitializingDebugInfo;
|
|
3789
|
+
}
|
|
3460
3790
|
"fulfilled" === chunk.status
|
|
3461
3791
|
? initializeIOInfo(response, chunk.value)
|
|
3462
3792
|
: chunk.then(
|
|
@@ -3474,8 +3804,8 @@
|
|
|
3474
3804
|
)
|
|
3475
3805
|
byteLength += buffer[i].byteLength;
|
|
3476
3806
|
byteLength = new Uint8Array(byteLength);
|
|
3477
|
-
for (var
|
|
3478
|
-
var chunk = buffer[
|
|
3807
|
+
for (var _i4 = (i = 0); _i4 < l; _i4++) {
|
|
3808
|
+
var chunk = buffer[_i4];
|
|
3479
3809
|
byteLength.set(chunk, i);
|
|
3480
3810
|
i += chunk.byteLength;
|
|
3481
3811
|
}
|
|
@@ -3552,8 +3882,19 @@
|
|
|
3552
3882
|
previousResult.track = trackIdx$jscomp$6;
|
|
3553
3883
|
return previousResult;
|
|
3554
3884
|
}
|
|
3555
|
-
var children = root._children
|
|
3556
|
-
|
|
3885
|
+
var children = root._children;
|
|
3886
|
+
var debugInfo = root._debugInfo;
|
|
3887
|
+
if (0 === debugInfo.length && "fulfilled" === root.status) {
|
|
3888
|
+
var resolvedValue = resolveLazy(root.value);
|
|
3889
|
+
"object" === typeof resolvedValue &&
|
|
3890
|
+
null !== resolvedValue &&
|
|
3891
|
+
(isArrayImpl(resolvedValue) ||
|
|
3892
|
+
"function" === typeof resolvedValue[ASYNC_ITERATOR] ||
|
|
3893
|
+
resolvedValue.$$typeof === REACT_ELEMENT_TYPE ||
|
|
3894
|
+
resolvedValue.$$typeof === REACT_LAZY_TYPE) &&
|
|
3895
|
+
isArrayImpl(resolvedValue._debugInfo) &&
|
|
3896
|
+
(debugInfo = resolvedValue._debugInfo);
|
|
3897
|
+
}
|
|
3557
3898
|
if (debugInfo) {
|
|
3558
3899
|
for (var startTime$jscomp$0 = 0, i = 0; i < debugInfo.length; i++) {
|
|
3559
3900
|
var info = debugInfo[i];
|
|
@@ -3564,8 +3905,8 @@
|
|
|
3564
3905
|
break;
|
|
3565
3906
|
}
|
|
3566
3907
|
}
|
|
3567
|
-
for (var
|
|
3568
|
-
var _info = debugInfo[
|
|
3908
|
+
for (var _i5 = debugInfo.length - 1; 0 <= _i5; _i5--) {
|
|
3909
|
+
var _info = debugInfo[_i5];
|
|
3569
3910
|
if ("number" === typeof _info.time && _info.time > parentEndTime) {
|
|
3570
3911
|
parentEndTime = _info.time;
|
|
3571
3912
|
break;
|
|
@@ -3582,13 +3923,13 @@
|
|
|
3582
3923
|
var childrenEndTime = -Infinity,
|
|
3583
3924
|
childTrackIdx = trackIdx$jscomp$6,
|
|
3584
3925
|
childTrackTime = trackTime,
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3926
|
+
_i6 = 0;
|
|
3927
|
+
_i6 < children.length;
|
|
3928
|
+
_i6++
|
|
3588
3929
|
) {
|
|
3589
3930
|
var childResult = flushComponentPerformance(
|
|
3590
3931
|
response$jscomp$0,
|
|
3591
|
-
children[
|
|
3932
|
+
children[_i6],
|
|
3592
3933
|
childTrackIdx,
|
|
3593
3934
|
childTrackTime,
|
|
3594
3935
|
parentEndTime
|
|
@@ -3606,16 +3947,16 @@
|
|
|
3606
3947
|
isLastComponent = !0,
|
|
3607
3948
|
endTime = -1,
|
|
3608
3949
|
endTimeIdx = -1,
|
|
3609
|
-
|
|
3610
|
-
0 <=
|
|
3611
|
-
|
|
3950
|
+
_i7 = debugInfo.length - 1;
|
|
3951
|
+
0 <= _i7;
|
|
3952
|
+
_i7--
|
|
3612
3953
|
) {
|
|
3613
|
-
var _info2 = debugInfo[
|
|
3954
|
+
var _info2 = debugInfo[_i7];
|
|
3614
3955
|
if ("number" === typeof _info2.time) {
|
|
3615
3956
|
0 === componentEndTime && (componentEndTime = _info2.time);
|
|
3616
3957
|
var time = _info2.time;
|
|
3617
3958
|
if (-1 < endTimeIdx)
|
|
3618
|
-
for (var j = endTimeIdx - 1; j >
|
|
3959
|
+
for (var j = endTimeIdx - 1; j > _i7; j--) {
|
|
3619
3960
|
var candidateInfo = debugInfo[j];
|
|
3620
3961
|
if ("string" === typeof candidateInfo.name) {
|
|
3621
3962
|
componentEndTime > childrenEndTime &&
|
|
@@ -3645,6 +3986,7 @@
|
|
|
3645
3986
|
void 0 === env
|
|
3646
3987
|
? name
|
|
3647
3988
|
: name + " [" + env + "]",
|
|
3989
|
+
measureName = "\u200b" + entryName$jscomp$0,
|
|
3648
3990
|
properties = [
|
|
3649
3991
|
[
|
|
3650
3992
|
"Error",
|
|
@@ -3670,7 +4012,7 @@
|
|
|
3670
4012
|
0,
|
|
3671
4013
|
""
|
|
3672
4014
|
);
|
|
3673
|
-
performance.measure(
|
|
4015
|
+
performance.measure(measureName, {
|
|
3674
4016
|
start: 0 > startTime$jscomp$2 ? 0 : startTime$jscomp$2,
|
|
3675
4017
|
end: childrenEndTime$jscomp$1,
|
|
3676
4018
|
detail: {
|
|
@@ -3683,6 +4025,7 @@
|
|
|
3683
4025
|
}
|
|
3684
4026
|
}
|
|
3685
4027
|
});
|
|
4028
|
+
performance.clearMeasures(measureName);
|
|
3686
4029
|
}
|
|
3687
4030
|
} else {
|
|
3688
4031
|
var componentInfo$jscomp$3 = componentInfo$jscomp$1,
|
|
@@ -3714,11 +4057,12 @@
|
|
|
3714
4057
|
? "primary-dark"
|
|
3715
4058
|
: "secondary-dark"
|
|
3716
4059
|
: "error",
|
|
3717
|
-
|
|
3718
|
-
|
|
4060
|
+
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask,
|
|
4061
|
+
measureName$jscomp$0 =
|
|
4062
|
+
"\u200b" +
|
|
4063
|
+
(isPrimaryEnv || void 0 === env$jscomp$0
|
|
3719
4064
|
? name$jscomp$0
|
|
3720
|
-
: name$jscomp$0 + " [" + env$jscomp$0 + "]"
|
|
3721
|
-
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask;
|
|
4065
|
+
: name$jscomp$0 + " [" + env$jscomp$0 + "]");
|
|
3722
4066
|
if (debugTask$jscomp$0) {
|
|
3723
4067
|
var properties$jscomp$0 = [];
|
|
3724
4068
|
null != componentInfo$jscomp$3.key &&
|
|
@@ -3739,7 +4083,7 @@
|
|
|
3739
4083
|
debugTask$jscomp$0.run(
|
|
3740
4084
|
performance.measure.bind(
|
|
3741
4085
|
performance,
|
|
3742
|
-
|
|
4086
|
+
measureName$jscomp$0,
|
|
3743
4087
|
{
|
|
3744
4088
|
start:
|
|
3745
4089
|
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
@@ -3755,9 +4099,10 @@
|
|
|
3755
4099
|
}
|
|
3756
4100
|
)
|
|
3757
4101
|
);
|
|
4102
|
+
performance.clearMeasures(measureName$jscomp$0);
|
|
3758
4103
|
} else
|
|
3759
4104
|
console.timeStamp(
|
|
3760
|
-
|
|
4105
|
+
measureName$jscomp$0,
|
|
3761
4106
|
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3762
4107
|
childrenEndTime$jscomp$2,
|
|
3763
4108
|
trackNames[trackIdx$jscomp$2],
|
|
@@ -3799,7 +4144,7 @@
|
|
|
3799
4144
|
error$jscomp$0 = thenable.reason;
|
|
3800
4145
|
if (supportsUserTiming && 0 < endTime$jscomp$0) {
|
|
3801
4146
|
var description = getIODescription(error$jscomp$0),
|
|
3802
|
-
entryName$jscomp$
|
|
4147
|
+
entryName$jscomp$1 =
|
|
3803
4148
|
"await " +
|
|
3804
4149
|
getIOShortName(
|
|
3805
4150
|
asyncInfo$jscomp$0.awaited,
|
|
@@ -3831,7 +4176,7 @@
|
|
|
3831
4176
|
debugTask$jscomp$1.run(
|
|
3832
4177
|
performance.measure.bind(
|
|
3833
4178
|
performance,
|
|
3834
|
-
entryName$jscomp$
|
|
4179
|
+
entryName$jscomp$1,
|
|
3835
4180
|
{
|
|
3836
4181
|
start:
|
|
3837
4182
|
0 > startTime$jscomp$4
|
|
@@ -3850,9 +4195,10 @@
|
|
|
3850
4195
|
}
|
|
3851
4196
|
)
|
|
3852
4197
|
);
|
|
4198
|
+
performance.clearMeasures(entryName$jscomp$1);
|
|
3853
4199
|
} else
|
|
3854
4200
|
console.timeStamp(
|
|
3855
|
-
entryName$jscomp$
|
|
4201
|
+
entryName$jscomp$1,
|
|
3856
4202
|
0 > startTime$jscomp$4 ? 0 : startTime$jscomp$4,
|
|
3857
4203
|
endTime$jscomp$0,
|
|
3858
4204
|
trackNames[trackIdx$jscomp$3],
|
|
@@ -3884,7 +4230,7 @@
|
|
|
3884
4230
|
}
|
|
3885
4231
|
else {
|
|
3886
4232
|
endTime = time;
|
|
3887
|
-
for (var _j = debugInfo.length - 1; _j >
|
|
4233
|
+
for (var _j = debugInfo.length - 1; _j > _i7; _j--) {
|
|
3888
4234
|
var _candidateInfo = debugInfo[_j];
|
|
3889
4235
|
if ("string" === typeof _candidateInfo.name) {
|
|
3890
4236
|
componentEndTime > childrenEndTime &&
|
|
@@ -3898,10 +4244,11 @@
|
|
|
3898
4244
|
if (supportsUserTiming) {
|
|
3899
4245
|
var env$jscomp$2 = componentInfo$jscomp$4.env,
|
|
3900
4246
|
name$jscomp$1 = componentInfo$jscomp$4.name,
|
|
3901
|
-
entryName$jscomp$
|
|
4247
|
+
entryName$jscomp$2 =
|
|
3902
4248
|
env$jscomp$2 === _env || void 0 === env$jscomp$2
|
|
3903
4249
|
? name$jscomp$1
|
|
3904
4250
|
: name$jscomp$1 + " [" + env$jscomp$2 + "]",
|
|
4251
|
+
measureName$jscomp$1 = "\u200b" + entryName$jscomp$2,
|
|
3905
4252
|
properties$jscomp$2 = [
|
|
3906
4253
|
[
|
|
3907
4254
|
"Aborted",
|
|
@@ -3923,7 +4270,7 @@
|
|
|
3923
4270
|
0,
|
|
3924
4271
|
""
|
|
3925
4272
|
);
|
|
3926
|
-
performance.measure(
|
|
4273
|
+
performance.measure(measureName$jscomp$1, {
|
|
3927
4274
|
start: 0 > startTime$jscomp$5 ? 0 : startTime$jscomp$5,
|
|
3928
4275
|
end: childrenEndTime$jscomp$3,
|
|
3929
4276
|
detail: {
|
|
@@ -3931,11 +4278,12 @@
|
|
|
3931
4278
|
color: "warning",
|
|
3932
4279
|
track: trackNames[trackIdx$jscomp$4],
|
|
3933
4280
|
trackGroup: "Server Components \u269b",
|
|
3934
|
-
tooltipText: entryName$jscomp$
|
|
4281
|
+
tooltipText: entryName$jscomp$2 + " Aborted",
|
|
3935
4282
|
properties: properties$jscomp$2
|
|
3936
4283
|
}
|
|
3937
4284
|
}
|
|
3938
4285
|
});
|
|
4286
|
+
performance.clearMeasures(measureName$jscomp$1);
|
|
3939
4287
|
}
|
|
3940
4288
|
componentEndTime = time;
|
|
3941
4289
|
result.component = _componentInfo;
|
|
@@ -3955,7 +4303,7 @@
|
|
|
3955
4303
|
endTime$jscomp$1 = endTime,
|
|
3956
4304
|
rootEnv$jscomp$0 = _env2;
|
|
3957
4305
|
if (supportsUserTiming && 0 < endTime$jscomp$1) {
|
|
3958
|
-
var entryName$jscomp$
|
|
4306
|
+
var entryName$jscomp$3 =
|
|
3959
4307
|
"await " +
|
|
3960
4308
|
getIOShortName(
|
|
3961
4309
|
asyncInfo$jscomp$1.awaited,
|
|
@@ -3977,7 +4325,7 @@
|
|
|
3977
4325
|
debugTask$jscomp$2.run(
|
|
3978
4326
|
performance.measure.bind(
|
|
3979
4327
|
performance,
|
|
3980
|
-
entryName$jscomp$
|
|
4328
|
+
entryName$jscomp$3,
|
|
3981
4329
|
{
|
|
3982
4330
|
start:
|
|
3983
4331
|
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
@@ -3999,9 +4347,10 @@
|
|
|
3999
4347
|
}
|
|
4000
4348
|
)
|
|
4001
4349
|
);
|
|
4350
|
+
performance.clearMeasures(entryName$jscomp$3);
|
|
4002
4351
|
} else
|
|
4003
4352
|
console.timeStamp(
|
|
4004
|
-
entryName$jscomp$
|
|
4353
|
+
entryName$jscomp$3,
|
|
4005
4354
|
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
4006
4355
|
endTime$jscomp$1,
|
|
4007
4356
|
trackNames[trackIdx$jscomp$5],
|
|
@@ -4013,7 +4362,7 @@
|
|
|
4013
4362
|
}
|
|
4014
4363
|
}
|
|
4015
4364
|
endTime = time;
|
|
4016
|
-
endTimeIdx =
|
|
4365
|
+
endTimeIdx = _i7;
|
|
4017
4366
|
}
|
|
4018
4367
|
}
|
|
4019
4368
|
result.endTime = childrenEndTime;
|
|
@@ -4197,7 +4546,7 @@
|
|
|
4197
4546
|
case 72:
|
|
4198
4547
|
id = row[0];
|
|
4199
4548
|
streamState = row.slice(1);
|
|
4200
|
-
response =
|
|
4549
|
+
response = parseModel(response, streamState);
|
|
4201
4550
|
streamState = ReactDOMSharedInternals.d;
|
|
4202
4551
|
switch (id) {
|
|
4203
4552
|
case "D":
|
|
@@ -4247,20 +4596,20 @@
|
|
|
4247
4596
|
var error = resolveErrorDev(response, row);
|
|
4248
4597
|
error.digest = row.digest;
|
|
4249
4598
|
chunk
|
|
4250
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4599
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
4251
4600
|
triggerErrorOnChunk(response, chunk, error))
|
|
4252
|
-
: ((
|
|
4253
|
-
resolveChunkDebugInfo(streamState,
|
|
4254
|
-
tag.set(id,
|
|
4601
|
+
: ((row = new ReactPromise("rejected", null, error)),
|
|
4602
|
+
resolveChunkDebugInfo(response, streamState, row),
|
|
4603
|
+
tag.set(id, row));
|
|
4255
4604
|
break;
|
|
4256
4605
|
case 84:
|
|
4257
4606
|
tag = response._chunks;
|
|
4258
4607
|
(chunk = tag.get(id)) && "pending" !== chunk.status
|
|
4259
4608
|
? chunk.reason.enqueueValue(row)
|
|
4260
4609
|
: (chunk && releasePendingChunk(response, chunk),
|
|
4261
|
-
(
|
|
4262
|
-
resolveChunkDebugInfo(streamState,
|
|
4263
|
-
tag.set(id,
|
|
4610
|
+
(row = new ReactPromise("fulfilled", row, null)),
|
|
4611
|
+
resolveChunkDebugInfo(response, streamState, row),
|
|
4612
|
+
tag.set(id, row));
|
|
4264
4613
|
break;
|
|
4265
4614
|
case 78:
|
|
4266
4615
|
response._timeOrigin = +row - performance.timeOrigin;
|
|
@@ -4306,40 +4655,37 @@
|
|
|
4306
4655
|
startAsyncIterable(response, id, !0, streamState);
|
|
4307
4656
|
break;
|
|
4308
4657
|
case 67:
|
|
4309
|
-
(
|
|
4310
|
-
"fulfilled" ===
|
|
4311
|
-
|
|
4658
|
+
(id = response._chunks.get(id)) &&
|
|
4659
|
+
"fulfilled" === id.status &&
|
|
4660
|
+
(0 === --response._pendingChunks &&
|
|
4661
|
+
(response._weakResponse.response = null),
|
|
4662
|
+
id.reason.close("" === row ? '"$undefined"' : row));
|
|
4312
4663
|
break;
|
|
4313
4664
|
default:
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
((streamState = response._chunks),
|
|
4665
|
+
"" === row
|
|
4666
|
+
? ((streamState = response._chunks),
|
|
4317
4667
|
(row = streamState.get(id)) ||
|
|
4318
4668
|
streamState.set(id, (row = createPendingChunk(response))),
|
|
4319
|
-
"pending"
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
(response
|
|
4323
|
-
|
|
4324
|
-
(response.value = null),
|
|
4325
|
-
(response.reason = null);
|
|
4326
|
-
} else
|
|
4327
|
-
(tag = response._chunks),
|
|
4669
|
+
("pending" !== row.status &&
|
|
4670
|
+
"pending_weak" !== row.status &&
|
|
4671
|
+
"blocked" !== row.status) ||
|
|
4672
|
+
haltChunk(response, row))
|
|
4673
|
+
: ((tag = response._chunks),
|
|
4328
4674
|
(chunk = tag.get(id))
|
|
4329
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4675
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
4330
4676
|
resolveModelChunk(response, chunk, row))
|
|
4331
|
-
: ((
|
|
4332
|
-
resolveChunkDebugInfo(streamState,
|
|
4333
|
-
tag.set(id,
|
|
4677
|
+
: ((row = createResolvedModelChunk(response, row)),
|
|
4678
|
+
resolveChunkDebugInfo(response, streamState, row),
|
|
4679
|
+
tag.set(id, row)));
|
|
4334
4680
|
}
|
|
4335
4681
|
}
|
|
4336
4682
|
function processBinaryChunk(weakResponse, streamState, chunk) {
|
|
4337
|
-
if (
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
rowState = streamState._rowState
|
|
4341
|
-
|
|
4342
|
-
|
|
4683
|
+
if (!hasGCedResponse(weakResponse)) {
|
|
4684
|
+
weakResponse = unwrapWeakResponse(weakResponse);
|
|
4685
|
+
var i = 0,
|
|
4686
|
+
rowState = streamState._rowState,
|
|
4687
|
+
rowID = streamState._rowID,
|
|
4688
|
+
rowTag = streamState._rowTag,
|
|
4343
4689
|
rowLength = streamState._rowLength,
|
|
4344
4690
|
buffer = streamState._buffer,
|
|
4345
4691
|
chunkLength = chunk.length;
|
|
@@ -4354,8 +4700,8 @@
|
|
|
4354
4700
|
lastIdx = chunk[i++];
|
|
4355
4701
|
58 === lastIdx
|
|
4356
4702
|
? (rowState = 1)
|
|
4357
|
-
: (
|
|
4358
|
-
(
|
|
4703
|
+
: (rowID =
|
|
4704
|
+
(rowID << 4) |
|
|
4359
4705
|
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4360
4706
|
continue;
|
|
4361
4707
|
case 1:
|
|
@@ -4364,6 +4710,7 @@
|
|
|
4364
4710
|
65 === rowState ||
|
|
4365
4711
|
79 === rowState ||
|
|
4366
4712
|
111 === rowState ||
|
|
4713
|
+
98 === rowState ||
|
|
4367
4714
|
85 === rowState ||
|
|
4368
4715
|
83 === rowState ||
|
|
4369
4716
|
115 === rowState ||
|
|
@@ -4400,116 +4747,160 @@
|
|
|
4400
4747
|
var offset = chunk.byteOffset + i;
|
|
4401
4748
|
if (-1 < lastIdx)
|
|
4402
4749
|
(rowLength = new Uint8Array(chunk.buffer, offset, lastIdx - i)),
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4750
|
+
98 === rowTag
|
|
4751
|
+
? resolveBuffer(
|
|
4752
|
+
weakResponse,
|
|
4753
|
+
rowID,
|
|
4754
|
+
lastIdx === chunkLength ? rowLength : rowLength.slice(),
|
|
4755
|
+
streamState
|
|
4756
|
+
)
|
|
4757
|
+
: processFullBinaryRow(
|
|
4758
|
+
weakResponse,
|
|
4759
|
+
streamState,
|
|
4760
|
+
rowID,
|
|
4761
|
+
rowTag,
|
|
4762
|
+
buffer,
|
|
4763
|
+
rowLength
|
|
4764
|
+
),
|
|
4411
4765
|
(i = lastIdx),
|
|
4412
4766
|
3 === rowState && i++,
|
|
4413
|
-
(rowLength =
|
|
4767
|
+
(rowLength = rowID = rowTag = rowState = 0),
|
|
4414
4768
|
(buffer.length = 0);
|
|
4415
4769
|
else {
|
|
4416
4770
|
chunk = new Uint8Array(chunk.buffer, offset, chunk.byteLength - i);
|
|
4417
|
-
|
|
4418
|
-
|
|
4771
|
+
98 === rowTag
|
|
4772
|
+
? ((rowLength -= chunk.byteLength),
|
|
4773
|
+
resolveBuffer(weakResponse, rowID, chunk, streamState))
|
|
4774
|
+
: (buffer.push(chunk), (rowLength -= chunk.byteLength));
|
|
4419
4775
|
break;
|
|
4420
4776
|
}
|
|
4421
4777
|
}
|
|
4422
4778
|
streamState._rowState = rowState;
|
|
4423
|
-
streamState._rowID =
|
|
4779
|
+
streamState._rowID = rowID;
|
|
4424
4780
|
streamState._rowTag = rowTag;
|
|
4425
4781
|
streamState._rowLength = rowLength;
|
|
4426
4782
|
}
|
|
4427
4783
|
}
|
|
4428
|
-
function
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
value
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4784
|
+
function parseModel(response, json) {
|
|
4785
|
+
json = JSON.parse(json);
|
|
4786
|
+
return reviveModel(response, json, { "": json }, "");
|
|
4787
|
+
}
|
|
4788
|
+
function reviveModel(response, value, parentObject, key) {
|
|
4789
|
+
if ("string" === typeof value)
|
|
4790
|
+
return "$" === value[0]
|
|
4791
|
+
? parseModelString(response, parentObject, key, value)
|
|
4792
|
+
: value;
|
|
4793
|
+
if ("object" !== typeof value || null === value) return value;
|
|
4794
|
+
if (isArrayImpl(value)) {
|
|
4795
|
+
for (var i = 0; i < value.length; i++)
|
|
4796
|
+
value[i] = reviveModel(response, value[i], value, "" + i);
|
|
4797
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
4798
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
4799
|
+
b: {
|
|
4800
|
+
key = value[4];
|
|
4801
|
+
parentObject = value[5];
|
|
4802
|
+
i = value[6];
|
|
4803
|
+
value = {
|
|
4804
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
4805
|
+
type: value[1],
|
|
4806
|
+
key: value[2],
|
|
4807
|
+
props: value[3],
|
|
4808
|
+
_owner: void 0 === key ? null : key
|
|
4809
|
+
};
|
|
4810
|
+
Object.defineProperty(value, "ref", {
|
|
4811
|
+
enumerable: !1,
|
|
4812
|
+
get: nullRefGetter
|
|
4813
|
+
});
|
|
4814
|
+
value._store = {};
|
|
4815
|
+
Object.defineProperty(value._store, "validated", {
|
|
4816
|
+
configurable: !1,
|
|
4817
|
+
enumerable: !1,
|
|
4818
|
+
writable: !0,
|
|
4819
|
+
value: i
|
|
4820
|
+
});
|
|
4821
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
4822
|
+
configurable: !1,
|
|
4823
|
+
enumerable: !1,
|
|
4824
|
+
writable: !0,
|
|
4825
|
+
value: null
|
|
4826
|
+
});
|
|
4827
|
+
Object.defineProperty(value, "_debugStack", {
|
|
4828
|
+
configurable: !1,
|
|
4829
|
+
enumerable: !1,
|
|
4830
|
+
writable: !0,
|
|
4831
|
+
value: void 0 === parentObject ? null : parentObject
|
|
4832
|
+
});
|
|
4833
|
+
Object.defineProperty(value, "_debugTask", {
|
|
4834
|
+
configurable: !1,
|
|
4835
|
+
enumerable: !1,
|
|
4836
|
+
writable: !0,
|
|
4837
|
+
value: null
|
|
4838
|
+
});
|
|
4839
|
+
if (null !== initializingHandler) {
|
|
4840
|
+
key = initializingHandler;
|
|
4841
|
+
initializingHandler = key.parent;
|
|
4842
|
+
if (key.errored) {
|
|
4843
|
+
parentObject = new ReactPromise("rejected", null, key.reason);
|
|
4844
|
+
initializeElement(response, value, null);
|
|
4845
|
+
response = {
|
|
4846
|
+
name: getComponentNameFromType(value.type) || "",
|
|
4847
|
+
owner: value._owner
|
|
4848
|
+
};
|
|
4849
|
+
response.debugStack = value._debugStack;
|
|
4850
|
+
supportsCreateTask && (response.debugTask = value._debugTask);
|
|
4851
|
+
parentObject._debugInfo = [response];
|
|
4852
|
+
response = createLazyChunkWrapper(parentObject, i);
|
|
4853
|
+
break b;
|
|
4854
|
+
}
|
|
4855
|
+
if (0 < key.deps) {
|
|
4856
|
+
parentObject = new ReactPromise("blocked", null, null);
|
|
4857
|
+
key.value = value;
|
|
4858
|
+
key.chunk = parentObject;
|
|
4859
|
+
i = createLazyChunkWrapper(parentObject, i);
|
|
4860
|
+
response = initializeElement.bind(null, response, value, i);
|
|
4861
|
+
parentObject.then(response, response);
|
|
4862
|
+
response = i;
|
|
4863
|
+
break b;
|
|
4500
4864
|
}
|
|
4501
|
-
initializeElement(response, value, null);
|
|
4502
|
-
key = value;
|
|
4503
4865
|
}
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4866
|
+
initializeElement(response, value, null);
|
|
4867
|
+
response = value;
|
|
4868
|
+
}
|
|
4869
|
+
else response = value;
|
|
4870
|
+
return response;
|
|
4508
4871
|
}
|
|
4509
|
-
|
|
4872
|
+
return value;
|
|
4873
|
+
}
|
|
4874
|
+
for (i in value)
|
|
4875
|
+
hasOwnProperty.call(value, i) &&
|
|
4876
|
+
("__proto__" === i
|
|
4877
|
+
? delete value[i]
|
|
4878
|
+
: ((parentObject = reviveModel(response, value[i], value, i)),
|
|
4879
|
+
void 0 !== parentObject
|
|
4880
|
+
? (value[i] = parentObject)
|
|
4881
|
+
: delete value[i]));
|
|
4882
|
+
return value;
|
|
4510
4883
|
}
|
|
4511
4884
|
function close(weakResponse) {
|
|
4512
|
-
|
|
4885
|
+
if (!hasGCedResponse(weakResponse)) {
|
|
4886
|
+
var response = unwrapWeakResponse(weakResponse);
|
|
4887
|
+
response._allowPartialStream
|
|
4888
|
+
? ((response._closed = !0),
|
|
4889
|
+
response._chunks.forEach(function (chunk) {
|
|
4890
|
+
"pending" === chunk.status
|
|
4891
|
+
? haltChunk(response, chunk)
|
|
4892
|
+
: "fulfilled" === chunk.status &&
|
|
4893
|
+
null !== chunk.reason &&
|
|
4894
|
+
chunk.reason.close('"$undefined"');
|
|
4895
|
+
}),
|
|
4896
|
+
(weakResponse = response._debugChannel),
|
|
4897
|
+
void 0 !== weakResponse &&
|
|
4898
|
+
(closeDebugChannel(weakResponse),
|
|
4899
|
+
(response._debugChannel = void 0),
|
|
4900
|
+
null !== debugChannelRegistry &&
|
|
4901
|
+
debugChannelRegistry.unregister(response)))
|
|
4902
|
+
: reportGlobalError(weakResponse, Error("Connection closed."));
|
|
4903
|
+
}
|
|
4513
4904
|
}
|
|
4514
4905
|
function createDebugCallbackFromWritableStream(debugWritable) {
|
|
4515
4906
|
var textEncoder = new TextEncoder(),
|
|
@@ -4524,30 +4915,52 @@
|
|
|
4524
4915
|
}
|
|
4525
4916
|
function createResponseFromOptions(options) {
|
|
4526
4917
|
var debugChannel =
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4918
|
+
options && void 0 !== options.debugChannel
|
|
4919
|
+
? {
|
|
4920
|
+
hasReadable: void 0 !== options.debugChannel.readable,
|
|
4921
|
+
callback:
|
|
4922
|
+
void 0 !== options.debugChannel.writable
|
|
4923
|
+
? createDebugCallbackFromWritableStream(
|
|
4924
|
+
options.debugChannel.writable
|
|
4925
|
+
)
|
|
4926
|
+
: null
|
|
4927
|
+
}
|
|
4928
|
+
: void 0,
|
|
4929
|
+
callServer =
|
|
4930
|
+
options && options.callServer ? options.callServer : void 0,
|
|
4931
|
+
temporaryReferences =
|
|
4932
|
+
options && options.temporaryReferences
|
|
4933
|
+
? options.temporaryReferences
|
|
4934
|
+
: void 0,
|
|
4935
|
+
allowPartialStream =
|
|
4936
|
+
options && options.unstable_allowPartialStream
|
|
4937
|
+
? options.unstable_allowPartialStream
|
|
4938
|
+
: !1,
|
|
4939
|
+
findSourceMapURL =
|
|
4940
|
+
options && options.findSourceMapURL
|
|
4941
|
+
? options.findSourceMapURL
|
|
4942
|
+
: void 0,
|
|
4943
|
+
replayConsole = options ? !1 !== options.replayConsoleLogs : !0,
|
|
4944
|
+
environmentName =
|
|
4945
|
+
options && options.environmentName ? options.environmentName : void 0,
|
|
4946
|
+
debugStartTime =
|
|
4947
|
+
options && null != options.startTime ? options.startTime : void 0;
|
|
4948
|
+
options = options && null != options.endTime ? options.endTime : void 0;
|
|
4949
|
+
checkEvalAvailabilityOnceDev();
|
|
4538
4950
|
return new ResponseInstance(
|
|
4539
4951
|
null,
|
|
4540
4952
|
null,
|
|
4541
4953
|
null,
|
|
4542
|
-
|
|
4954
|
+
callServer,
|
|
4543
4955
|
void 0,
|
|
4544
4956
|
void 0,
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4957
|
+
temporaryReferences,
|
|
4958
|
+
allowPartialStream,
|
|
4959
|
+
findSourceMapURL,
|
|
4960
|
+
replayConsole,
|
|
4961
|
+
environmentName,
|
|
4962
|
+
debugStartTime,
|
|
4963
|
+
options,
|
|
4551
4964
|
debugChannel
|
|
4552
4965
|
)._weakResponse;
|
|
4553
4966
|
}
|
|
@@ -4566,9 +4979,7 @@
|
|
|
4566
4979
|
new Uint8Array(value)
|
|
4567
4980
|
);
|
|
4568
4981
|
else if ("string" === typeof value) {
|
|
4569
|
-
if (
|
|
4570
|
-
((_ref = streamState), void 0 !== response$jscomp$0.weak.deref())
|
|
4571
|
-
) {
|
|
4982
|
+
if (((_ref = streamState), !hasGCedResponse(response$jscomp$0))) {
|
|
4572
4983
|
var response = unwrapWeakResponse(response$jscomp$0),
|
|
4573
4984
|
i = 0,
|
|
4574
4985
|
rowState = _ref._rowState,
|
|
@@ -4686,6 +5097,7 @@
|
|
|
4686
5097
|
ReactDOM = require("react-dom"),
|
|
4687
5098
|
decoderOptions = { stream: !0 },
|
|
4688
5099
|
bind = Function.prototype.bind,
|
|
5100
|
+
hasConfirmedEval = !1,
|
|
4689
5101
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4690
5102
|
chunkCache = new Map(),
|
|
4691
5103
|
chunkMap = new Map(),
|
|
@@ -4712,6 +5124,7 @@
|
|
|
4712
5124
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
4713
5125
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
4714
5126
|
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
5127
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
4715
5128
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
4716
5129
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
4717
5130
|
isArrayImpl = Array.isArray,
|
|
@@ -4719,7 +5132,7 @@
|
|
|
4719
5132
|
jsxPropsParents = new WeakMap(),
|
|
4720
5133
|
jsxChildrenParents = new WeakMap(),
|
|
4721
5134
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
4722
|
-
ObjectPrototype = Object.prototype,
|
|
5135
|
+
ObjectPrototype$1 = Object.prototype,
|
|
4723
5136
|
knownServerReferences = new WeakMap(),
|
|
4724
5137
|
fakeServerFunctionIdx = 0,
|
|
4725
5138
|
v8FrameRegExp =
|
|
@@ -4742,55 +5155,65 @@
|
|
|
4742
5155
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
4743
5156
|
ReactSharedInternals =
|
|
4744
5157
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ||
|
|
4745
|
-
ReactSharedInteralsServer
|
|
5158
|
+
ReactSharedInteralsServer,
|
|
5159
|
+
ObjectPrototype = Object.prototype,
|
|
5160
|
+
ArrayPrototype = Array.prototype;
|
|
4746
5161
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
4747
|
-
ReactPromise.prototype
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
"
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
5162
|
+
Object.defineProperty(ReactPromise.prototype, "then", {
|
|
5163
|
+
writable: !0,
|
|
5164
|
+
enumerable: !0,
|
|
5165
|
+
configurable: !0,
|
|
5166
|
+
value: function (resolve, reject) {
|
|
5167
|
+
var _this = this;
|
|
5168
|
+
switch (this.status) {
|
|
5169
|
+
case "resolved_model":
|
|
5170
|
+
initializeModelChunk(this);
|
|
5171
|
+
break;
|
|
5172
|
+
case "resolved_module":
|
|
5173
|
+
initializeModuleChunk(this);
|
|
5174
|
+
}
|
|
5175
|
+
var resolveCallback = resolve,
|
|
5176
|
+
rejectCallback = reject,
|
|
5177
|
+
wrapperPromise = new Promise(function (res, rej) {
|
|
5178
|
+
resolve = function (value) {
|
|
5179
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
5180
|
+
res(value);
|
|
5181
|
+
};
|
|
5182
|
+
reject = function (reason) {
|
|
5183
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
5184
|
+
rej(reason);
|
|
5185
|
+
};
|
|
5186
|
+
});
|
|
5187
|
+
wrapperPromise.then(resolveCallback, rejectCallback);
|
|
5188
|
+
switch (this.status) {
|
|
5189
|
+
case "fulfilled":
|
|
5190
|
+
"function" === typeof resolve && resolve(this.value);
|
|
5191
|
+
break;
|
|
5192
|
+
case "pending":
|
|
5193
|
+
case "pending_weak":
|
|
5194
|
+
case "blocked":
|
|
5195
|
+
"function" === typeof resolve &&
|
|
5196
|
+
(null === this.value && (this.value = []),
|
|
5197
|
+
this.value.push(resolve));
|
|
5198
|
+
"function" === typeof reject &&
|
|
5199
|
+
(null === this.reason && (this.reason = []),
|
|
5200
|
+
this.reason.push(reject));
|
|
5201
|
+
break;
|
|
5202
|
+
case "halted":
|
|
5203
|
+
break;
|
|
5204
|
+
default:
|
|
5205
|
+
"function" === typeof reject && reject(this.reason);
|
|
5206
|
+
}
|
|
4786
5207
|
}
|
|
4787
|
-
};
|
|
5208
|
+
});
|
|
4788
5209
|
var debugChannelRegistry =
|
|
4789
5210
|
"function" === typeof FinalizationRegistry
|
|
4790
5211
|
? new FinalizationRegistry(closeDebugChannel)
|
|
4791
5212
|
: null,
|
|
4792
5213
|
initializingHandler = null,
|
|
4793
5214
|
initializingChunk = null,
|
|
5215
|
+
isInitializingDebugInfo = !1,
|
|
5216
|
+
EMPTY_REFERENCE_PATH = [],
|
|
4794
5217
|
mightHaveStaticConstructor = /\bclass\b.*\bstatic\b/,
|
|
4795
5218
|
MIN_CHUNK_SIZE = 65536,
|
|
4796
5219
|
supportsCreateTask = !!console.createTask,
|
|
@@ -4811,6 +5234,7 @@
|
|
|
4811
5234
|
createFakeJSXCallStack.react_stack_bottom_frame.bind(
|
|
4812
5235
|
createFakeJSXCallStack
|
|
4813
5236
|
),
|
|
5237
|
+
ownerStackTraceLimit = 10,
|
|
4814
5238
|
currentOwnerInDEV = null,
|
|
4815
5239
|
replayConsoleWithCallStack = {
|
|
4816
5240
|
react_stack_bottom_frame: function (response, payload) {
|
|
@@ -4901,10 +5325,10 @@
|
|
|
4901
5325
|
return hook.checkDCE ? !0 : !1;
|
|
4902
5326
|
})({
|
|
4903
5327
|
bundleType: 1,
|
|
4904
|
-
version: "19.
|
|
5328
|
+
version: "19.3.0",
|
|
4905
5329
|
rendererPackageName: "react-server-dom-webpack",
|
|
4906
5330
|
currentDispatcherRef: ReactSharedInternals,
|
|
4907
|
-
reconcilerVersion: "19.
|
|
5331
|
+
reconcilerVersion: "19.3.0",
|
|
4908
5332
|
getCurrentComponentInfo: function () {
|
|
4909
5333
|
return currentOwnerInDEV;
|
|
4910
5334
|
}
|
|
@@ -5002,26 +5426,16 @@
|
|
|
5002
5426
|
};
|
|
5003
5427
|
exports.encodeReply = function (value, options) {
|
|
5004
5428
|
return new Promise(function (resolve, reject) {
|
|
5005
|
-
|
|
5429
|
+
processReply(
|
|
5006
5430
|
value,
|
|
5007
5431
|
"",
|
|
5008
5432
|
options && options.temporaryReferences
|
|
5009
5433
|
? options.temporaryReferences
|
|
5010
5434
|
: void 0,
|
|
5011
5435
|
resolve,
|
|
5012
|
-
reject
|
|
5436
|
+
reject,
|
|
5437
|
+
options ? options.signal : void 0
|
|
5013
5438
|
);
|
|
5014
|
-
if (options && options.signal) {
|
|
5015
|
-
var signal = options.signal;
|
|
5016
|
-
if (signal.aborted) abort(signal.reason);
|
|
5017
|
-
else {
|
|
5018
|
-
var listener = function () {
|
|
5019
|
-
abort(signal.reason);
|
|
5020
|
-
signal.removeEventListener("abort", listener);
|
|
5021
|
-
};
|
|
5022
|
-
signal.addEventListener("abort", listener);
|
|
5023
|
-
}
|
|
5024
|
-
}
|
|
5025
5439
|
});
|
|
5026
5440
|
};
|
|
5027
5441
|
exports.registerServerReference = function (reference, id) {
|