@vitejs/plugin-rsc 0.4.34 → 0.5.1
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/dist/{browser-D8OPzpF5.js → browser-B4C0Zb4m.js} +1 -1
- package/dist/{browser-CQv7Z3J4.d.ts → browser-C8KlM-b7.d.ts} +2 -2
- package/dist/{browser-DwWQeoll.d.ts → browser-CDBRiZjk.d.ts} +1 -1
- package/dist/{browser-7NhxQxuk.js → browser-U86erGOy.js} +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +23 -5
- package/dist/chunk-Cdb3zUqJ.js +30 -0
- package/dist/{cjs-BamOAUgw.js → cjs-zUv66MZg.js} +3 -3
- package/dist/core/browser.d.ts +1 -1
- package/dist/core/browser.js +3 -3
- package/dist/core/plugin.js +1 -1
- package/dist/core/rsc.d.ts +2 -2
- package/dist/core/rsc.js +3 -3
- package/dist/core/ssr.d.ts +2 -2
- package/dist/core/ssr.js +3 -3
- package/dist/{dist-DiJnRA1C.js → dist-CNbFy2EZ.js} +1 -1
- package/dist/{encryption-runtime-B8xcnJoN.d.ts → encryption-runtime-BDgc4dBr.d.ts} +1 -1
- package/dist/{encryption-runtime-DT6dtlC5.js → encryption-runtime-D5_PLt4C.js} +4 -4
- package/dist/{encryption-utils-BDwwcMVT.js → encryption-utils-DdqSKS_O.js} +1 -1
- package/dist/{index-CPkExgij.d.ts → index-BY8KUQhI.d.ts} +1 -1
- package/dist/{index-B04iFwO5.d.ts → index-DJ0AhQ9B.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/picocolors-BRKobevN.js +74 -0
- package/dist/{plugin-CZbI4rhS.js → plugin-4UFT-s0w.js} +1 -1
- package/dist/{plugin-BLedJFh7.js → plugin-DNwmUjn4.js} +32 -22
- package/dist/{plugin-DCLI7Wh8.d.ts → plugin-fbbM1muv.d.ts} +2 -6
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +8 -8
- package/dist/plugins/cjs.js +3 -3
- package/dist/react/browser.d.ts +3 -3
- package/dist/react/browser.js +4 -4
- package/dist/react/rsc.d.ts +3 -3
- package/dist/react/rsc.js +4 -4
- package/dist/react/ssr.d.ts +3 -3
- package/dist/react/ssr.js +4 -4
- package/dist/{rpc-CUvSZurk.js → rpc-nwJuNojy.js} +1 -1
- package/dist/{rsc-JJjz3Z0i.d.ts → rsc-03j1e3xp.d.ts} +4 -4
- package/dist/{rsc-BdCB3621.js → rsc-B_DQ_Sju.js} +2 -2
- package/dist/{rsc-3bkzqdsJ.d.ts → rsc-OCbFObYE.d.ts} +2 -2
- package/dist/{rsc-GFzFWyhT.js → rsc-bL1QvQCm.js} +3 -3
- package/dist/rsc.d.ts +4 -4
- package/dist/rsc.js +24 -7
- package/dist/{shared-CXg_u-4h.js → shared-C8PSRwR2.js} +1 -1
- package/dist/{shared-n-ykEs15.js → shared-DlspEItJ.js} +1 -1
- package/dist/{ssr-BrSGyrxe.d.ts → ssr-Dgbl_mOS.d.ts} +1 -1
- package/dist/{ssr-Cd4SbAaO.js → ssr-DzY6rnEv.js} +2 -2
- package/dist/{ssr-Cm2FP2zD.js → ssr-EH7rBPkK.js} +3 -3
- package/dist/{ssr-CMjeQ9AS.d.ts → ssr-fBV4xXen.d.ts} +2 -2
- package/dist/ssr.d.ts +3 -3
- package/dist/ssr.js +54 -6
- package/dist/transforms/index.d.ts +1 -1
- package/dist/transforms/index.js +2 -2
- package/dist/{transforms-CpF3zNE0.js → transforms-CSPqW3RX.js} +3 -2
- package/dist/utils/encryption-runtime.d.ts +1 -1
- package/dist/utils/encryption-runtime.js +6 -6
- package/dist/utils/rpc.js +1 -1
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +2964 -774
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +554 -312
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +2721 -724
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +541 -300
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +2955 -858
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +652 -332
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.unbundled.development.js +2956 -861
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.unbundled.production.js +652 -332
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-plugin.js +6 -2
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +1931 -713
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +544 -295
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +1926 -715
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +542 -299
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +2719 -743
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +725 -338
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.unbundled.development.js +2703 -727
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.unbundled.production.js +725 -338
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/dist/vendor/react-server-dom/server.node.js +3 -1
- package/dist/vendor/react-server-dom/server.node.unbundled.js +3 -1
- package/dist/vendor/react-server-dom/static.browser.js +1 -3
- package/dist/vendor/react-server-dom/static.edge.js +1 -3
- package/dist/vendor/react-server-dom/static.node.js +2 -3
- package/dist/vendor/react-server-dom/static.node.unbundled.js +1 -3
- package/package.json +11 -10
- package/types/index.d.ts +0 -4
- package/dist/browser--ZREVnM9.js +0 -22
- package/dist/client-C7Eok9hc.js +0 -23
- package/dist/extra/browser.d.ts +0 -14
- package/dist/extra/browser.js +0 -88
- package/dist/extra/rsc.d.ts +0 -2
- package/dist/extra/rsc.js +0 -56
- package/dist/extra/ssr.d.ts +0 -14
- package/dist/extra/ssr.js +0 -37
- package/dist/rsc-CiAoLCx8.js +0 -21
- package/dist/rsc-c22DF1A7.d.ts +0 -16
- package/dist/rsc-html-stream/browser.d.ts +0 -5
- package/dist/rsc-html-stream/browser.js +0 -8
- package/dist/rsc-html-stream/ssr.d.ts +0 -7
- package/dist/rsc-html-stream/ssr.js +0 -8
- package/dist/server-DMhFuTz_.js +0 -72
- package/dist/ssr-BQwZitKq.js +0 -53
- package/types/virtual.d.ts +0 -5
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js
CHANGED
|
@@ -11,27 +11,6 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
-
function _defineProperty(obj, key, value) {
|
|
15
|
-
a: if ("object" == typeof key && key) {
|
|
16
|
-
var e = key[Symbol.toPrimitive];
|
|
17
|
-
if (void 0 !== e) {
|
|
18
|
-
key = e.call(key, "string");
|
|
19
|
-
if ("object" != typeof key) break a;
|
|
20
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
21
|
-
}
|
|
22
|
-
key = String(key);
|
|
23
|
-
}
|
|
24
|
-
key = "symbol" == typeof key ? key : key + "";
|
|
25
|
-
key in obj
|
|
26
|
-
? Object.defineProperty(obj, key, {
|
|
27
|
-
value: value,
|
|
28
|
-
enumerable: !0,
|
|
29
|
-
configurable: !0,
|
|
30
|
-
writable: !0
|
|
31
|
-
})
|
|
32
|
-
: (obj[key] = value);
|
|
33
|
-
return obj;
|
|
34
|
-
}
|
|
35
14
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
36
15
|
if (bundlerConfig) {
|
|
37
16
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -193,11 +172,8 @@
|
|
|
193
172
|
return !0;
|
|
194
173
|
}
|
|
195
174
|
function objectName(object) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
.replace(/^\[object (.*)\]$/, function (m, p0) {
|
|
199
|
-
return p0;
|
|
200
|
-
});
|
|
175
|
+
object = Object.prototype.toString.call(object);
|
|
176
|
+
return object.slice(8, object.length - 1);
|
|
201
177
|
}
|
|
202
178
|
function describeKeyForErrorMessage(key) {
|
|
203
179
|
var encodedKey = JSON.stringify(key);
|
|
@@ -901,10 +877,10 @@
|
|
|
901
877
|
filename.startsWith("/") && (filename = "file://" + filename);
|
|
902
878
|
sourceMap
|
|
903
879
|
? ((col +=
|
|
904
|
-
"\n//# sourceURL=
|
|
880
|
+
"\n//# sourceURL=about://React/" +
|
|
905
881
|
encodeURIComponent(environmentName) +
|
|
906
882
|
"/" +
|
|
907
|
-
filename +
|
|
883
|
+
encodeURI(filename) +
|
|
908
884
|
"?s" +
|
|
909
885
|
fakeServerFunctionIdx++),
|
|
910
886
|
(col += "\n//# sourceMappingURL=" + sourceMap))
|
|
@@ -1112,7 +1088,7 @@
|
|
|
1112
1088
|
case REACT_PORTAL_TYPE:
|
|
1113
1089
|
return "Portal";
|
|
1114
1090
|
case REACT_CONTEXT_TYPE:
|
|
1115
|
-
return
|
|
1091
|
+
return type.displayName || "Context";
|
|
1116
1092
|
case REACT_CONSUMER_TYPE:
|
|
1117
1093
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
1118
1094
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -1138,18 +1114,493 @@
|
|
|
1138
1114
|
}
|
|
1139
1115
|
return null;
|
|
1140
1116
|
}
|
|
1117
|
+
function getArrayKind(array) {
|
|
1118
|
+
for (var kind = 0, i = 0; i < array.length; i++) {
|
|
1119
|
+
var value = array[i];
|
|
1120
|
+
if ("object" === typeof value && null !== value)
|
|
1121
|
+
if (
|
|
1122
|
+
isArrayImpl(value) &&
|
|
1123
|
+
2 === value.length &&
|
|
1124
|
+
"string" === typeof value[0]
|
|
1125
|
+
) {
|
|
1126
|
+
if (0 !== kind && 3 !== kind) return 1;
|
|
1127
|
+
kind = 3;
|
|
1128
|
+
} else return 1;
|
|
1129
|
+
else {
|
|
1130
|
+
if (
|
|
1131
|
+
"function" === typeof value ||
|
|
1132
|
+
("string" === typeof value && 50 < value.length) ||
|
|
1133
|
+
(0 !== kind && 2 !== kind)
|
|
1134
|
+
)
|
|
1135
|
+
return 1;
|
|
1136
|
+
kind = 2;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
return kind;
|
|
1140
|
+
}
|
|
1141
|
+
function addObjectToProperties(object, properties, indent, prefix) {
|
|
1142
|
+
for (var key in object)
|
|
1143
|
+
hasOwnProperty.call(object, key) &&
|
|
1144
|
+
"_" !== key[0] &&
|
|
1145
|
+
addValueToProperties(key, object[key], properties, indent, prefix);
|
|
1146
|
+
}
|
|
1147
|
+
function addValueToProperties(
|
|
1148
|
+
propertyName,
|
|
1149
|
+
value,
|
|
1150
|
+
properties,
|
|
1151
|
+
indent,
|
|
1152
|
+
prefix
|
|
1153
|
+
) {
|
|
1154
|
+
switch (typeof value) {
|
|
1155
|
+
case "object":
|
|
1156
|
+
if (null === value) {
|
|
1157
|
+
value = "null";
|
|
1158
|
+
break;
|
|
1159
|
+
} else {
|
|
1160
|
+
if (value.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1161
|
+
var typeName = getComponentNameFromType(value.type) || "\u2026",
|
|
1162
|
+
key = value.key;
|
|
1163
|
+
value = value.props;
|
|
1164
|
+
var propsKeys = Object.keys(value),
|
|
1165
|
+
propsLength = propsKeys.length;
|
|
1166
|
+
if (null == key && 0 === propsLength) {
|
|
1167
|
+
value = "<" + typeName + " />";
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
if (
|
|
1171
|
+
3 > indent ||
|
|
1172
|
+
(1 === propsLength &&
|
|
1173
|
+
"children" === propsKeys[0] &&
|
|
1174
|
+
null == key)
|
|
1175
|
+
) {
|
|
1176
|
+
value = "<" + typeName + " \u2026 />";
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
properties.push([
|
|
1180
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1181
|
+
"<" + typeName
|
|
1182
|
+
]);
|
|
1183
|
+
null !== key &&
|
|
1184
|
+
addValueToProperties(
|
|
1185
|
+
"key",
|
|
1186
|
+
key,
|
|
1187
|
+
properties,
|
|
1188
|
+
indent + 1,
|
|
1189
|
+
prefix
|
|
1190
|
+
);
|
|
1191
|
+
propertyName = !1;
|
|
1192
|
+
for (var propKey in value)
|
|
1193
|
+
"children" === propKey
|
|
1194
|
+
? null != value.children &&
|
|
1195
|
+
(!isArrayImpl(value.children) ||
|
|
1196
|
+
0 < value.children.length) &&
|
|
1197
|
+
(propertyName = !0)
|
|
1198
|
+
: hasOwnProperty.call(value, propKey) &&
|
|
1199
|
+
"_" !== propKey[0] &&
|
|
1200
|
+
addValueToProperties(
|
|
1201
|
+
propKey,
|
|
1202
|
+
value[propKey],
|
|
1203
|
+
properties,
|
|
1204
|
+
indent + 1,
|
|
1205
|
+
prefix
|
|
1206
|
+
);
|
|
1207
|
+
properties.push([
|
|
1208
|
+
"",
|
|
1209
|
+
propertyName ? ">\u2026</" + typeName + ">" : "/>"
|
|
1210
|
+
]);
|
|
1211
|
+
return;
|
|
1212
|
+
}
|
|
1213
|
+
typeName = Object.prototype.toString.call(value);
|
|
1214
|
+
typeName = typeName.slice(8, typeName.length - 1);
|
|
1215
|
+
if ("Array" === typeName)
|
|
1216
|
+
if (
|
|
1217
|
+
((propKey = getArrayKind(value)),
|
|
1218
|
+
2 === propKey || 0 === propKey)
|
|
1219
|
+
) {
|
|
1220
|
+
value = JSON.stringify(value);
|
|
1221
|
+
break;
|
|
1222
|
+
} else if (3 === propKey) {
|
|
1223
|
+
properties.push([
|
|
1224
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1225
|
+
""
|
|
1226
|
+
]);
|
|
1227
|
+
for (
|
|
1228
|
+
propertyName = 0;
|
|
1229
|
+
propertyName < value.length;
|
|
1230
|
+
propertyName++
|
|
1231
|
+
)
|
|
1232
|
+
(typeName = value[propertyName]),
|
|
1233
|
+
addValueToProperties(
|
|
1234
|
+
typeName[0],
|
|
1235
|
+
typeName[1],
|
|
1236
|
+
properties,
|
|
1237
|
+
indent + 1,
|
|
1238
|
+
prefix
|
|
1239
|
+
);
|
|
1240
|
+
return;
|
|
1241
|
+
}
|
|
1242
|
+
if ("Promise" === typeName) {
|
|
1243
|
+
if ("fulfilled" === value.status) {
|
|
1244
|
+
if (
|
|
1245
|
+
((typeName = properties.length),
|
|
1246
|
+
addValueToProperties(
|
|
1247
|
+
propertyName,
|
|
1248
|
+
value.value,
|
|
1249
|
+
properties,
|
|
1250
|
+
indent,
|
|
1251
|
+
prefix
|
|
1252
|
+
),
|
|
1253
|
+
properties.length > typeName)
|
|
1254
|
+
) {
|
|
1255
|
+
properties = properties[typeName];
|
|
1256
|
+
properties[1] =
|
|
1257
|
+
"Promise<" + (properties[1] || "Object") + ">";
|
|
1258
|
+
return;
|
|
1259
|
+
}
|
|
1260
|
+
} else if (
|
|
1261
|
+
"rejected" === value.status &&
|
|
1262
|
+
((typeName = properties.length),
|
|
1263
|
+
addValueToProperties(
|
|
1264
|
+
propertyName,
|
|
1265
|
+
value.reason,
|
|
1266
|
+
properties,
|
|
1267
|
+
indent,
|
|
1268
|
+
prefix
|
|
1269
|
+
),
|
|
1270
|
+
properties.length > typeName)
|
|
1271
|
+
) {
|
|
1272
|
+
properties = properties[typeName];
|
|
1273
|
+
properties[1] = "Rejected Promise<" + properties[1] + ">";
|
|
1274
|
+
return;
|
|
1275
|
+
}
|
|
1276
|
+
properties.push([
|
|
1277
|
+
"\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1278
|
+
"Promise"
|
|
1279
|
+
]);
|
|
1280
|
+
return;
|
|
1281
|
+
}
|
|
1282
|
+
"Object" === typeName &&
|
|
1283
|
+
(propKey = Object.getPrototypeOf(value)) &&
|
|
1284
|
+
"function" === typeof propKey.constructor &&
|
|
1285
|
+
(typeName = propKey.constructor.name);
|
|
1286
|
+
properties.push([
|
|
1287
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1288
|
+
"Object" === typeName ? (3 > indent ? "" : "\u2026") : typeName
|
|
1289
|
+
]);
|
|
1290
|
+
3 > indent &&
|
|
1291
|
+
addObjectToProperties(value, properties, indent + 1, prefix);
|
|
1292
|
+
return;
|
|
1293
|
+
}
|
|
1294
|
+
case "function":
|
|
1295
|
+
value = "" === value.name ? "() => {}" : value.name + "() {}";
|
|
1296
|
+
break;
|
|
1297
|
+
case "string":
|
|
1298
|
+
value =
|
|
1299
|
+
"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." ===
|
|
1300
|
+
value
|
|
1301
|
+
? "\u2026"
|
|
1302
|
+
: JSON.stringify(value);
|
|
1303
|
+
break;
|
|
1304
|
+
case "undefined":
|
|
1305
|
+
value = "undefined";
|
|
1306
|
+
break;
|
|
1307
|
+
case "boolean":
|
|
1308
|
+
value = value ? "true" : "false";
|
|
1309
|
+
break;
|
|
1310
|
+
default:
|
|
1311
|
+
value = String(value);
|
|
1312
|
+
}
|
|
1313
|
+
properties.push([
|
|
1314
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1315
|
+
value
|
|
1316
|
+
]);
|
|
1317
|
+
}
|
|
1318
|
+
function getIODescription(value) {
|
|
1319
|
+
try {
|
|
1320
|
+
switch (typeof value) {
|
|
1321
|
+
case "object":
|
|
1322
|
+
if (null === value) return "";
|
|
1323
|
+
if (value instanceof Error) return String(value.message);
|
|
1324
|
+
if ("string" === typeof value.url) return value.url;
|
|
1325
|
+
if ("string" === typeof value.href) return value.href;
|
|
1326
|
+
if ("string" === typeof value.src) return value.src;
|
|
1327
|
+
if ("string" === typeof value.currentSrc) return value.currentSrc;
|
|
1328
|
+
if ("string" === typeof value.command) return value.command;
|
|
1329
|
+
if (
|
|
1330
|
+
"object" === typeof value.request &&
|
|
1331
|
+
null !== value.request &&
|
|
1332
|
+
"string" === typeof value.request.url
|
|
1333
|
+
)
|
|
1334
|
+
return value.request.url;
|
|
1335
|
+
if (
|
|
1336
|
+
"object" === typeof value.response &&
|
|
1337
|
+
null !== value.response &&
|
|
1338
|
+
"string" === typeof value.response.url
|
|
1339
|
+
)
|
|
1340
|
+
return value.response.url;
|
|
1341
|
+
if (
|
|
1342
|
+
"string" === typeof value.id ||
|
|
1343
|
+
"number" === typeof value.id ||
|
|
1344
|
+
"bigint" === typeof value.id
|
|
1345
|
+
)
|
|
1346
|
+
return String(value.id);
|
|
1347
|
+
if ("string" === typeof value.name) return value.name;
|
|
1348
|
+
var str = value.toString();
|
|
1349
|
+
return str.startsWith("[object ") ||
|
|
1350
|
+
5 > str.length ||
|
|
1351
|
+
500 < str.length
|
|
1352
|
+
? ""
|
|
1353
|
+
: str;
|
|
1354
|
+
case "string":
|
|
1355
|
+
return 5 > value.length || 500 < value.length ? "" : value;
|
|
1356
|
+
case "number":
|
|
1357
|
+
case "bigint":
|
|
1358
|
+
return String(value);
|
|
1359
|
+
default:
|
|
1360
|
+
return "";
|
|
1361
|
+
}
|
|
1362
|
+
} catch (x) {
|
|
1363
|
+
return "";
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
function markAllTracksInOrder() {
|
|
1367
|
+
supportsUserTiming &&
|
|
1368
|
+
(console.timeStamp(
|
|
1369
|
+
"Server Requests Track",
|
|
1370
|
+
0.001,
|
|
1371
|
+
0.001,
|
|
1372
|
+
"Server Requests \u269b",
|
|
1373
|
+
void 0,
|
|
1374
|
+
"primary-light"
|
|
1375
|
+
),
|
|
1376
|
+
console.timeStamp(
|
|
1377
|
+
"Server Components Track",
|
|
1378
|
+
0.001,
|
|
1379
|
+
0.001,
|
|
1380
|
+
"Primary",
|
|
1381
|
+
"Server Components \u269b",
|
|
1382
|
+
"primary-light"
|
|
1383
|
+
));
|
|
1384
|
+
}
|
|
1385
|
+
function getIOColor(functionName) {
|
|
1386
|
+
switch (functionName.charCodeAt(0) % 3) {
|
|
1387
|
+
case 0:
|
|
1388
|
+
return "tertiary-light";
|
|
1389
|
+
case 1:
|
|
1390
|
+
return "tertiary";
|
|
1391
|
+
default:
|
|
1392
|
+
return "tertiary-dark";
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
function getIOLongName(ioInfo, description, env, rootEnv) {
|
|
1396
|
+
ioInfo = ioInfo.name;
|
|
1397
|
+
description =
|
|
1398
|
+
"" === description ? ioInfo : ioInfo + " (" + description + ")";
|
|
1399
|
+
return env === rootEnv || void 0 === env
|
|
1400
|
+
? description
|
|
1401
|
+
: description + " [" + env + "]";
|
|
1402
|
+
}
|
|
1403
|
+
function getIOShortName(ioInfo, description, env, rootEnv) {
|
|
1404
|
+
ioInfo = ioInfo.name;
|
|
1405
|
+
env = env === rootEnv || void 0 === env ? "" : " [" + env + "]";
|
|
1406
|
+
var desc = "";
|
|
1407
|
+
rootEnv = 30 - ioInfo.length - env.length;
|
|
1408
|
+
if (1 < rootEnv) {
|
|
1409
|
+
var l = description.length;
|
|
1410
|
+
if (0 < l && l <= rootEnv) desc = " (" + description + ")";
|
|
1411
|
+
else if (
|
|
1412
|
+
description.startsWith("http://") ||
|
|
1413
|
+
description.startsWith("https://") ||
|
|
1414
|
+
description.startsWith("/")
|
|
1415
|
+
) {
|
|
1416
|
+
var queryIdx = description.indexOf("?");
|
|
1417
|
+
-1 === queryIdx && (queryIdx = description.length);
|
|
1418
|
+
47 === description.charCodeAt(queryIdx - 1) && queryIdx--;
|
|
1419
|
+
desc = description.lastIndexOf("/", queryIdx - 1);
|
|
1420
|
+
queryIdx - desc < rootEnv
|
|
1421
|
+
? (desc = " (\u2026" + description.slice(desc, queryIdx) + ")")
|
|
1422
|
+
: ((l = description.slice(desc, desc + rootEnv / 2)),
|
|
1423
|
+
(description = description.slice(
|
|
1424
|
+
queryIdx - rootEnv / 2,
|
|
1425
|
+
queryIdx
|
|
1426
|
+
)),
|
|
1427
|
+
(desc =
|
|
1428
|
+
" (" +
|
|
1429
|
+
(0 < desc ? "\u2026" : "") +
|
|
1430
|
+
l +
|
|
1431
|
+
"\u2026" +
|
|
1432
|
+
description +
|
|
1433
|
+
")"));
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
return ioInfo + desc + env;
|
|
1437
|
+
}
|
|
1438
|
+
function logComponentAwait(
|
|
1439
|
+
asyncInfo,
|
|
1440
|
+
trackIdx,
|
|
1441
|
+
startTime,
|
|
1442
|
+
endTime,
|
|
1443
|
+
rootEnv,
|
|
1444
|
+
value
|
|
1445
|
+
) {
|
|
1446
|
+
if (supportsUserTiming && 0 < endTime) {
|
|
1447
|
+
var description = getIODescription(value),
|
|
1448
|
+
name = getIOShortName(
|
|
1449
|
+
asyncInfo.awaited,
|
|
1450
|
+
description,
|
|
1451
|
+
asyncInfo.env,
|
|
1452
|
+
rootEnv
|
|
1453
|
+
),
|
|
1454
|
+
entryName = "await " + name;
|
|
1455
|
+
name = getIOColor(name);
|
|
1456
|
+
var debugTask = asyncInfo.debugTask || asyncInfo.awaited.debugTask;
|
|
1457
|
+
if (debugTask) {
|
|
1458
|
+
var properties = [];
|
|
1459
|
+
"object" === typeof value && null !== value
|
|
1460
|
+
? addObjectToProperties(value, properties, 0, "")
|
|
1461
|
+
: void 0 !== value &&
|
|
1462
|
+
addValueToProperties("awaited value", value, properties, 0, "");
|
|
1463
|
+
asyncInfo = getIOLongName(
|
|
1464
|
+
asyncInfo.awaited,
|
|
1465
|
+
description,
|
|
1466
|
+
asyncInfo.env,
|
|
1467
|
+
rootEnv
|
|
1468
|
+
);
|
|
1469
|
+
debugTask.run(
|
|
1470
|
+
performance.measure.bind(performance, entryName, {
|
|
1471
|
+
start: 0 > startTime ? 0 : startTime,
|
|
1472
|
+
end: endTime,
|
|
1473
|
+
detail: {
|
|
1474
|
+
devtools: {
|
|
1475
|
+
color: name,
|
|
1476
|
+
track: trackNames[trackIdx],
|
|
1477
|
+
trackGroup: "Server Components \u269b",
|
|
1478
|
+
properties: properties,
|
|
1479
|
+
tooltipText: asyncInfo
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
})
|
|
1483
|
+
);
|
|
1484
|
+
} else
|
|
1485
|
+
console.timeStamp(
|
|
1486
|
+
entryName,
|
|
1487
|
+
0 > startTime ? 0 : startTime,
|
|
1488
|
+
endTime,
|
|
1489
|
+
trackNames[trackIdx],
|
|
1490
|
+
"Server Components \u269b",
|
|
1491
|
+
name
|
|
1492
|
+
);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
function logIOInfoErrored(ioInfo, rootEnv, error) {
|
|
1496
|
+
var startTime = ioInfo.start,
|
|
1497
|
+
endTime = ioInfo.end;
|
|
1498
|
+
if (supportsUserTiming && 0 <= endTime) {
|
|
1499
|
+
var description = getIODescription(error),
|
|
1500
|
+
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1501
|
+
debugTask = ioInfo.debugTask;
|
|
1502
|
+
debugTask
|
|
1503
|
+
? ((error = [
|
|
1504
|
+
[
|
|
1505
|
+
"rejected with",
|
|
1506
|
+
"object" === typeof error &&
|
|
1507
|
+
null !== error &&
|
|
1508
|
+
"string" === typeof error.message
|
|
1509
|
+
? String(error.message)
|
|
1510
|
+
: String(error)
|
|
1511
|
+
]
|
|
1512
|
+
]),
|
|
1513
|
+
(ioInfo =
|
|
1514
|
+
getIOLongName(ioInfo, description, ioInfo.env, rootEnv) +
|
|
1515
|
+
" Rejected"),
|
|
1516
|
+
debugTask.run(
|
|
1517
|
+
performance.measure.bind(performance, "\u200b" + entryName, {
|
|
1518
|
+
start: 0 > startTime ? 0 : startTime,
|
|
1519
|
+
end: endTime,
|
|
1520
|
+
detail: {
|
|
1521
|
+
devtools: {
|
|
1522
|
+
color: "error",
|
|
1523
|
+
track: "Server Requests \u269b",
|
|
1524
|
+
properties: error,
|
|
1525
|
+
tooltipText: ioInfo
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
})
|
|
1529
|
+
))
|
|
1530
|
+
: console.timeStamp(
|
|
1531
|
+
entryName,
|
|
1532
|
+
0 > startTime ? 0 : startTime,
|
|
1533
|
+
endTime,
|
|
1534
|
+
"Server Requests \u269b",
|
|
1535
|
+
void 0,
|
|
1536
|
+
"error"
|
|
1537
|
+
);
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
function logIOInfo(ioInfo, rootEnv, value) {
|
|
1541
|
+
var startTime = ioInfo.start,
|
|
1542
|
+
endTime = ioInfo.end;
|
|
1543
|
+
if (supportsUserTiming && 0 <= endTime) {
|
|
1544
|
+
var description = getIODescription(value),
|
|
1545
|
+
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1546
|
+
color = getIOColor(entryName),
|
|
1547
|
+
debugTask = ioInfo.debugTask;
|
|
1548
|
+
if (debugTask) {
|
|
1549
|
+
var properties = [];
|
|
1550
|
+
"object" === typeof value && null !== value
|
|
1551
|
+
? addObjectToProperties(value, properties, 0, "")
|
|
1552
|
+
: void 0 !== value &&
|
|
1553
|
+
addValueToProperties("Resolved", value, properties, 0, "");
|
|
1554
|
+
ioInfo = getIOLongName(ioInfo, description, ioInfo.env, rootEnv);
|
|
1555
|
+
debugTask.run(
|
|
1556
|
+
performance.measure.bind(performance, "\u200b" + entryName, {
|
|
1557
|
+
start: 0 > startTime ? 0 : startTime,
|
|
1558
|
+
end: endTime,
|
|
1559
|
+
detail: {
|
|
1560
|
+
devtools: {
|
|
1561
|
+
color: color,
|
|
1562
|
+
track: "Server Requests \u269b",
|
|
1563
|
+
properties: properties,
|
|
1564
|
+
tooltipText: ioInfo
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
})
|
|
1568
|
+
);
|
|
1569
|
+
} else
|
|
1570
|
+
console.timeStamp(
|
|
1571
|
+
entryName,
|
|
1572
|
+
0 > startTime ? 0 : startTime,
|
|
1573
|
+
endTime,
|
|
1574
|
+
"Server Requests \u269b",
|
|
1575
|
+
void 0,
|
|
1576
|
+
color
|
|
1577
|
+
);
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1141
1580
|
function prepareStackTrace(error, structuredStackTrace) {
|
|
1142
1581
|
error = (error.name || "Error") + ": " + (error.message || "");
|
|
1143
1582
|
for (var i = 0; i < structuredStackTrace.length; i++)
|
|
1144
1583
|
error += "\n at " + structuredStackTrace[i].toString();
|
|
1145
1584
|
return error;
|
|
1146
1585
|
}
|
|
1147
|
-
function ReactPromise(status, value, reason
|
|
1586
|
+
function ReactPromise(status, value, reason) {
|
|
1148
1587
|
this.status = status;
|
|
1149
1588
|
this.value = value;
|
|
1150
1589
|
this.reason = reason;
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1590
|
+
this._children = [];
|
|
1591
|
+
this._debugChunk = null;
|
|
1592
|
+
this._debugInfo = [];
|
|
1593
|
+
}
|
|
1594
|
+
function unwrapWeakResponse(weakResponse) {
|
|
1595
|
+
weakResponse = weakResponse.weak.deref();
|
|
1596
|
+
if (void 0 === weakResponse)
|
|
1597
|
+
throw Error(
|
|
1598
|
+
"We did not expect to receive new data after GC:ing the response."
|
|
1599
|
+
);
|
|
1600
|
+
return weakResponse;
|
|
1601
|
+
}
|
|
1602
|
+
function closeDebugChannel(debugChannel) {
|
|
1603
|
+
debugChannel.callback && debugChannel.callback("");
|
|
1153
1604
|
}
|
|
1154
1605
|
function readChunk(chunk) {
|
|
1155
1606
|
switch (chunk.status) {
|
|
@@ -1164,26 +1615,111 @@
|
|
|
1164
1615
|
return chunk.value;
|
|
1165
1616
|
case "pending":
|
|
1166
1617
|
case "blocked":
|
|
1618
|
+
case "halted":
|
|
1167
1619
|
throw chunk;
|
|
1168
1620
|
default:
|
|
1169
1621
|
throw chunk.reason;
|
|
1170
1622
|
}
|
|
1171
1623
|
}
|
|
1624
|
+
function getRoot(weakResponse) {
|
|
1625
|
+
weakResponse = unwrapWeakResponse(weakResponse);
|
|
1626
|
+
return getChunk(weakResponse, 0);
|
|
1627
|
+
}
|
|
1172
1628
|
function createPendingChunk(response) {
|
|
1173
|
-
|
|
1629
|
+
0 === response._pendingChunks++ &&
|
|
1630
|
+
((response._weakResponse.response = response),
|
|
1631
|
+
null !== response._pendingInitialRender &&
|
|
1632
|
+
(clearTimeout(response._pendingInitialRender),
|
|
1633
|
+
(response._pendingInitialRender = null)));
|
|
1634
|
+
return new ReactPromise("pending", null, null);
|
|
1635
|
+
}
|
|
1636
|
+
function releasePendingChunk(response, chunk) {
|
|
1637
|
+
"pending" === chunk.status &&
|
|
1638
|
+
0 === --response._pendingChunks &&
|
|
1639
|
+
((response._weakResponse.response = null),
|
|
1640
|
+
(response._pendingInitialRender = setTimeout(
|
|
1641
|
+
flushInitialRenderPerformance.bind(null, response),
|
|
1642
|
+
100
|
|
1643
|
+
)));
|
|
1644
|
+
}
|
|
1645
|
+
function moveDebugInfoFromChunkToInnerValue(chunk, value) {
|
|
1646
|
+
value = resolveLazy(value);
|
|
1647
|
+
"object" !== typeof value ||
|
|
1648
|
+
null === value ||
|
|
1649
|
+
(!isArrayImpl(value) &&
|
|
1650
|
+
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
1651
|
+
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
1652
|
+
value.$$typeof !== REACT_LAZY_TYPE) ||
|
|
1653
|
+
((chunk = chunk._debugInfo.splice(0)),
|
|
1654
|
+
isArrayImpl(value._debugInfo)
|
|
1655
|
+
? value._debugInfo.unshift.apply(value._debugInfo, chunk)
|
|
1656
|
+
: Object.defineProperty(value, "_debugInfo", {
|
|
1657
|
+
configurable: !1,
|
|
1658
|
+
enumerable: !1,
|
|
1659
|
+
writable: !0,
|
|
1660
|
+
value: chunk
|
|
1661
|
+
}));
|
|
1174
1662
|
}
|
|
1175
|
-
function wakeChunk(listeners, value) {
|
|
1176
|
-
for (var i = 0; i < listeners.length; i++)
|
|
1663
|
+
function wakeChunk(listeners, value, chunk) {
|
|
1664
|
+
for (var i = 0; i < listeners.length; i++) {
|
|
1665
|
+
var listener = listeners[i];
|
|
1666
|
+
"function" === typeof listener
|
|
1667
|
+
? listener(value)
|
|
1668
|
+
: fulfillReference(listener, value, chunk);
|
|
1669
|
+
}
|
|
1670
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1671
|
+
}
|
|
1672
|
+
function rejectChunk(listeners, error) {
|
|
1673
|
+
for (var i = 0; i < listeners.length; i++) {
|
|
1674
|
+
var listener = listeners[i];
|
|
1675
|
+
"function" === typeof listener
|
|
1676
|
+
? listener(error)
|
|
1677
|
+
: rejectReference(listener, error);
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
function resolveBlockedCycle(resolvedChunk, reference) {
|
|
1681
|
+
var referencedChunk = reference.handler.chunk;
|
|
1682
|
+
if (null === referencedChunk) return null;
|
|
1683
|
+
if (referencedChunk === resolvedChunk) return reference.handler;
|
|
1684
|
+
reference = referencedChunk.value;
|
|
1685
|
+
if (null !== reference)
|
|
1686
|
+
for (
|
|
1687
|
+
referencedChunk = 0;
|
|
1688
|
+
referencedChunk < reference.length;
|
|
1689
|
+
referencedChunk++
|
|
1690
|
+
) {
|
|
1691
|
+
var listener = reference[referencedChunk];
|
|
1692
|
+
if (
|
|
1693
|
+
"function" !== typeof listener &&
|
|
1694
|
+
((listener = resolveBlockedCycle(resolvedChunk, listener)),
|
|
1695
|
+
null !== listener)
|
|
1696
|
+
)
|
|
1697
|
+
return listener;
|
|
1698
|
+
}
|
|
1699
|
+
return null;
|
|
1177
1700
|
}
|
|
1178
1701
|
function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) {
|
|
1179
1702
|
switch (chunk.status) {
|
|
1180
1703
|
case "fulfilled":
|
|
1181
|
-
wakeChunk(resolveListeners, chunk.value);
|
|
1704
|
+
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1182
1705
|
break;
|
|
1183
|
-
case "pending":
|
|
1184
1706
|
case "blocked":
|
|
1707
|
+
for (var i = 0; i < resolveListeners.length; i++) {
|
|
1708
|
+
var listener = resolveListeners[i];
|
|
1709
|
+
if ("function" !== typeof listener) {
|
|
1710
|
+
var cyclicHandler = resolveBlockedCycle(chunk, listener);
|
|
1711
|
+
null !== cyclicHandler &&
|
|
1712
|
+
(fulfillReference(listener, cyclicHandler.value, chunk),
|
|
1713
|
+
resolveListeners.splice(i, 1),
|
|
1714
|
+
i--,
|
|
1715
|
+
null !== rejectListeners &&
|
|
1716
|
+
((listener = rejectListeners.indexOf(listener)),
|
|
1717
|
+
-1 !== listener && rejectListeners.splice(listener, 1)));
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
case "pending":
|
|
1185
1721
|
if (chunk.value)
|
|
1186
|
-
for (
|
|
1722
|
+
for (i = 0; i < resolveListeners.length; i++)
|
|
1187
1723
|
chunk.value.push(resolveListeners[i]);
|
|
1188
1724
|
else chunk.value = resolveListeners;
|
|
1189
1725
|
if (chunk.reason) {
|
|
@@ -1197,76 +1733,170 @@
|
|
|
1197
1733
|
} else chunk.reason = rejectListeners;
|
|
1198
1734
|
break;
|
|
1199
1735
|
case "rejected":
|
|
1200
|
-
rejectListeners &&
|
|
1736
|
+
rejectListeners && rejectChunk(rejectListeners, chunk.reason);
|
|
1201
1737
|
}
|
|
1202
1738
|
}
|
|
1203
|
-
function triggerErrorOnChunk(chunk, error) {
|
|
1739
|
+
function triggerErrorOnChunk(response, chunk, error) {
|
|
1204
1740
|
if ("pending" !== chunk.status && "blocked" !== chunk.status)
|
|
1205
1741
|
chunk.reason.error(error);
|
|
1206
1742
|
else {
|
|
1743
|
+
releasePendingChunk(response, chunk);
|
|
1207
1744
|
var listeners = chunk.reason;
|
|
1745
|
+
if ("pending" === chunk.status && null != chunk._debugChunk) {
|
|
1746
|
+
var prevHandler = initializingHandler,
|
|
1747
|
+
prevChunk = initializingChunk;
|
|
1748
|
+
initializingHandler = null;
|
|
1749
|
+
chunk.status = "blocked";
|
|
1750
|
+
chunk.value = null;
|
|
1751
|
+
chunk.reason = null;
|
|
1752
|
+
initializingChunk = chunk;
|
|
1753
|
+
try {
|
|
1754
|
+
initializeDebugChunk(response, chunk);
|
|
1755
|
+
} finally {
|
|
1756
|
+
(initializingHandler = prevHandler),
|
|
1757
|
+
(initializingChunk = prevChunk);
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1208
1760
|
chunk.status = "rejected";
|
|
1209
1761
|
chunk.reason = error;
|
|
1210
|
-
null !== listeners &&
|
|
1762
|
+
null !== listeners && rejectChunk(listeners, error);
|
|
1211
1763
|
}
|
|
1212
1764
|
}
|
|
1765
|
+
function createResolvedModelChunk(response, value) {
|
|
1766
|
+
return new ReactPromise("resolved_model", value, response);
|
|
1767
|
+
}
|
|
1213
1768
|
function createResolvedIteratorResultChunk(response, value, done) {
|
|
1214
1769
|
return new ReactPromise(
|
|
1215
1770
|
"resolved_model",
|
|
1216
1771
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') +
|
|
1217
1772
|
value +
|
|
1218
1773
|
"}",
|
|
1219
|
-
null,
|
|
1220
1774
|
response
|
|
1221
1775
|
);
|
|
1222
1776
|
}
|
|
1223
|
-
function resolveIteratorResultChunk(chunk, value, done) {
|
|
1777
|
+
function resolveIteratorResultChunk(response, chunk, value, done) {
|
|
1224
1778
|
resolveModelChunk(
|
|
1779
|
+
response,
|
|
1225
1780
|
chunk,
|
|
1226
1781
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') +
|
|
1227
1782
|
value +
|
|
1228
1783
|
"}"
|
|
1229
1784
|
);
|
|
1230
1785
|
}
|
|
1231
|
-
function resolveModelChunk(chunk, value) {
|
|
1786
|
+
function resolveModelChunk(response, chunk, value) {
|
|
1232
1787
|
if ("pending" !== chunk.status) chunk.reason.enqueueModel(value);
|
|
1233
1788
|
else {
|
|
1789
|
+
releasePendingChunk(response, chunk);
|
|
1234
1790
|
var resolveListeners = chunk.value,
|
|
1235
1791
|
rejectListeners = chunk.reason;
|
|
1236
1792
|
chunk.status = "resolved_model";
|
|
1237
1793
|
chunk.value = value;
|
|
1794
|
+
chunk.reason = response;
|
|
1238
1795
|
null !== resolveListeners &&
|
|
1239
1796
|
(initializeModelChunk(chunk),
|
|
1240
1797
|
wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
|
|
1241
1798
|
}
|
|
1242
1799
|
}
|
|
1243
|
-
function resolveModuleChunk(chunk, value) {
|
|
1800
|
+
function resolveModuleChunk(response, chunk, value) {
|
|
1244
1801
|
if ("pending" === chunk.status || "blocked" === chunk.status) {
|
|
1245
|
-
|
|
1246
|
-
|
|
1802
|
+
releasePendingChunk(response, chunk);
|
|
1803
|
+
response = chunk.value;
|
|
1804
|
+
var rejectListeners = chunk.reason;
|
|
1247
1805
|
chunk.status = "resolved_module";
|
|
1248
1806
|
chunk.value = value;
|
|
1249
|
-
|
|
1807
|
+
value = [];
|
|
1808
|
+
null !== value && chunk._debugInfo.push.apply(chunk._debugInfo, value);
|
|
1809
|
+
null !== response &&
|
|
1250
1810
|
(initializeModuleChunk(chunk),
|
|
1251
|
-
wakeChunkIfInitialized(chunk,
|
|
1811
|
+
wakeChunkIfInitialized(chunk, response, rejectListeners));
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
function initializeDebugChunk(response, chunk) {
|
|
1815
|
+
var debugChunk = chunk._debugChunk;
|
|
1816
|
+
if (null !== debugChunk) {
|
|
1817
|
+
var debugInfo = chunk._debugInfo;
|
|
1818
|
+
try {
|
|
1819
|
+
if ("resolved_model" === debugChunk.status) {
|
|
1820
|
+
for (
|
|
1821
|
+
var idx = debugInfo.length, c = debugChunk._debugChunk;
|
|
1822
|
+
null !== c;
|
|
1823
|
+
|
|
1824
|
+
)
|
|
1825
|
+
"fulfilled" !== c.status && idx++, (c = c._debugChunk);
|
|
1826
|
+
initializeModelChunk(debugChunk);
|
|
1827
|
+
switch (debugChunk.status) {
|
|
1828
|
+
case "fulfilled":
|
|
1829
|
+
debugInfo[idx] = initializeDebugInfo(
|
|
1830
|
+
response,
|
|
1831
|
+
debugChunk.value
|
|
1832
|
+
);
|
|
1833
|
+
break;
|
|
1834
|
+
case "blocked":
|
|
1835
|
+
case "pending":
|
|
1836
|
+
waitForReference(
|
|
1837
|
+
debugChunk,
|
|
1838
|
+
debugInfo,
|
|
1839
|
+
"" + idx,
|
|
1840
|
+
response,
|
|
1841
|
+
initializeDebugInfo,
|
|
1842
|
+
[""],
|
|
1843
|
+
!0
|
|
1844
|
+
);
|
|
1845
|
+
break;
|
|
1846
|
+
default:
|
|
1847
|
+
throw debugChunk.reason;
|
|
1848
|
+
}
|
|
1849
|
+
} else
|
|
1850
|
+
switch (debugChunk.status) {
|
|
1851
|
+
case "fulfilled":
|
|
1852
|
+
break;
|
|
1853
|
+
case "blocked":
|
|
1854
|
+
case "pending":
|
|
1855
|
+
waitForReference(
|
|
1856
|
+
debugChunk,
|
|
1857
|
+
{},
|
|
1858
|
+
"debug",
|
|
1859
|
+
response,
|
|
1860
|
+
initializeDebugInfo,
|
|
1861
|
+
[""],
|
|
1862
|
+
!0
|
|
1863
|
+
);
|
|
1864
|
+
break;
|
|
1865
|
+
default:
|
|
1866
|
+
throw debugChunk.reason;
|
|
1867
|
+
}
|
|
1868
|
+
} catch (error) {
|
|
1869
|
+
triggerErrorOnChunk(response, chunk, error);
|
|
1870
|
+
}
|
|
1252
1871
|
}
|
|
1253
1872
|
}
|
|
1254
1873
|
function initializeModelChunk(chunk) {
|
|
1255
|
-
var prevHandler = initializingHandler
|
|
1874
|
+
var prevHandler = initializingHandler,
|
|
1875
|
+
prevChunk = initializingChunk;
|
|
1256
1876
|
initializingHandler = null;
|
|
1257
|
-
var resolvedModel = chunk.value
|
|
1877
|
+
var resolvedModel = chunk.value,
|
|
1878
|
+
response = chunk.reason;
|
|
1258
1879
|
chunk.status = "blocked";
|
|
1259
1880
|
chunk.value = null;
|
|
1260
1881
|
chunk.reason = null;
|
|
1882
|
+
initializingChunk = chunk;
|
|
1883
|
+
initializeDebugChunk(response, chunk);
|
|
1261
1884
|
try {
|
|
1262
|
-
var value = JSON.parse(resolvedModel,
|
|
1885
|
+
var value = JSON.parse(resolvedModel, response._fromJSON),
|
|
1263
1886
|
resolveListeners = chunk.value;
|
|
1264
|
-
null !== resolveListeners
|
|
1265
|
-
(
|
|
1266
|
-
|
|
1267
|
-
|
|
1887
|
+
if (null !== resolveListeners)
|
|
1888
|
+
for (
|
|
1889
|
+
chunk.value = null, chunk.reason = null, resolvedModel = 0;
|
|
1890
|
+
resolvedModel < resolveListeners.length;
|
|
1891
|
+
resolvedModel++
|
|
1892
|
+
) {
|
|
1893
|
+
var listener = resolveListeners[resolvedModel];
|
|
1894
|
+
"function" === typeof listener
|
|
1895
|
+
? listener(value)
|
|
1896
|
+
: fulfillReference(listener, value, chunk);
|
|
1897
|
+
}
|
|
1268
1898
|
if (null !== initializingHandler) {
|
|
1269
|
-
if (initializingHandler.errored) throw initializingHandler.
|
|
1899
|
+
if (initializingHandler.errored) throw initializingHandler.reason;
|
|
1270
1900
|
if (0 < initializingHandler.deps) {
|
|
1271
1901
|
initializingHandler.value = value;
|
|
1272
1902
|
initializingHandler.chunk = chunk;
|
|
@@ -1275,10 +1905,11 @@
|
|
|
1275
1905
|
}
|
|
1276
1906
|
chunk.status = "fulfilled";
|
|
1277
1907
|
chunk.value = value;
|
|
1908
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1278
1909
|
} catch (error) {
|
|
1279
1910
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1280
1911
|
} finally {
|
|
1281
|
-
initializingHandler = prevHandler;
|
|
1912
|
+
(initializingHandler = prevHandler), (initializingChunk = prevChunk);
|
|
1282
1913
|
}
|
|
1283
1914
|
}
|
|
1284
1915
|
function initializeModuleChunk(chunk) {
|
|
@@ -1290,12 +1921,22 @@
|
|
|
1290
1921
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1291
1922
|
}
|
|
1292
1923
|
}
|
|
1293
|
-
function reportGlobalError(
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1924
|
+
function reportGlobalError(weakResponse, error) {
|
|
1925
|
+
if (void 0 !== weakResponse.weak.deref()) {
|
|
1926
|
+
var response = unwrapWeakResponse(weakResponse);
|
|
1927
|
+
response._closed = !0;
|
|
1928
|
+
response._closedReason = error;
|
|
1929
|
+
response._chunks.forEach(function (chunk) {
|
|
1930
|
+
"pending" === chunk.status &&
|
|
1931
|
+
triggerErrorOnChunk(response, chunk, error);
|
|
1932
|
+
});
|
|
1933
|
+
weakResponse = response._debugChannel;
|
|
1934
|
+
void 0 !== weakResponse &&
|
|
1935
|
+
(closeDebugChannel(weakResponse),
|
|
1936
|
+
(response._debugChannel = void 0),
|
|
1937
|
+
null !== debugChannelRegistry &&
|
|
1938
|
+
debugChannelRegistry.unregister(response));
|
|
1939
|
+
}
|
|
1299
1940
|
}
|
|
1300
1941
|
function nullRefGetter() {
|
|
1301
1942
|
return null;
|
|
@@ -1316,14 +1957,69 @@
|
|
|
1316
1957
|
return "<...>";
|
|
1317
1958
|
}
|
|
1318
1959
|
}
|
|
1319
|
-
function
|
|
1960
|
+
function initializeElement(response, element, lazyNode) {
|
|
1961
|
+
var stack = element._debugStack,
|
|
1962
|
+
owner = element._owner;
|
|
1963
|
+
null === owner && (element._owner = response._debugRootOwner);
|
|
1964
|
+
var env = response._rootEnvironmentName;
|
|
1965
|
+
null !== owner && null != owner.env && (env = owner.env);
|
|
1966
|
+
var normalizedStackTrace = null;
|
|
1967
|
+
null === owner && null != response._debugRootStack
|
|
1968
|
+
? (normalizedStackTrace = response._debugRootStack)
|
|
1969
|
+
: null !== stack &&
|
|
1970
|
+
(normalizedStackTrace = createFakeJSXCallStackInDEV(
|
|
1971
|
+
response,
|
|
1972
|
+
stack,
|
|
1973
|
+
env
|
|
1974
|
+
));
|
|
1975
|
+
element._debugStack = normalizedStackTrace;
|
|
1976
|
+
normalizedStackTrace = null;
|
|
1977
|
+
supportsCreateTask &&
|
|
1978
|
+
null !== stack &&
|
|
1979
|
+
((normalizedStackTrace = console.createTask.bind(
|
|
1980
|
+
console,
|
|
1981
|
+
getTaskName(element.type)
|
|
1982
|
+
)),
|
|
1983
|
+
(stack = buildFakeCallStack(
|
|
1984
|
+
response,
|
|
1985
|
+
stack,
|
|
1986
|
+
env,
|
|
1987
|
+
!1,
|
|
1988
|
+
normalizedStackTrace
|
|
1989
|
+
)),
|
|
1990
|
+
(env = null === owner ? null : initializeFakeTask(response, owner)),
|
|
1991
|
+
null === env
|
|
1992
|
+
? ((env = response._debugRootTask),
|
|
1993
|
+
(normalizedStackTrace = null != env ? env.run(stack) : stack()))
|
|
1994
|
+
: (normalizedStackTrace = env.run(stack)));
|
|
1995
|
+
element._debugTask = normalizedStackTrace;
|
|
1996
|
+
null !== owner && initializeFakeStack(response, owner);
|
|
1997
|
+
null !== lazyNode &&
|
|
1998
|
+
(lazyNode._store &&
|
|
1999
|
+
lazyNode._store.validated &&
|
|
2000
|
+
!element._store.validated &&
|
|
2001
|
+
(element._store.validated = lazyNode._store.validated),
|
|
2002
|
+
"fulfilled" === lazyNode._payload.status &&
|
|
2003
|
+
lazyNode._debugInfo &&
|
|
2004
|
+
((response = lazyNode._debugInfo.splice(0)),
|
|
2005
|
+
element._debugInfo
|
|
2006
|
+
? element._debugInfo.unshift.apply(element._debugInfo, response)
|
|
2007
|
+
: Object.defineProperty(element, "_debugInfo", {
|
|
2008
|
+
configurable: !1,
|
|
2009
|
+
enumerable: !1,
|
|
2010
|
+
writable: !0,
|
|
2011
|
+
value: response
|
|
2012
|
+
})));
|
|
2013
|
+
Object.freeze(element.props);
|
|
2014
|
+
}
|
|
2015
|
+
function createLazyChunkWrapper(chunk, validated) {
|
|
1320
2016
|
var lazyType = {
|
|
1321
2017
|
$$typeof: REACT_LAZY_TYPE,
|
|
1322
2018
|
_payload: chunk,
|
|
1323
2019
|
_init: readChunk
|
|
1324
2020
|
};
|
|
1325
|
-
|
|
1326
|
-
lazyType.
|
|
2021
|
+
lazyType._debugInfo = chunk._debugInfo;
|
|
2022
|
+
lazyType._store = { validated: validated };
|
|
1327
2023
|
return lazyType;
|
|
1328
2024
|
}
|
|
1329
2025
|
function getChunk(response, id) {
|
|
@@ -1331,85 +2027,176 @@
|
|
|
1331
2027
|
chunk = chunks.get(id);
|
|
1332
2028
|
chunk ||
|
|
1333
2029
|
((chunk = response._closed
|
|
1334
|
-
? new ReactPromise("rejected", null, response._closedReason
|
|
2030
|
+
? new ReactPromise("rejected", null, response._closedReason)
|
|
1335
2031
|
: createPendingChunk(response)),
|
|
1336
2032
|
chunks.set(id, chunk));
|
|
1337
2033
|
return chunk;
|
|
1338
2034
|
}
|
|
2035
|
+
function fulfillReference(reference, value, fulfilledChunk) {
|
|
2036
|
+
for (
|
|
2037
|
+
var response = reference.response,
|
|
2038
|
+
handler = reference.handler,
|
|
2039
|
+
parentObject = reference.parentObject,
|
|
2040
|
+
key = reference.key,
|
|
2041
|
+
map = reference.map,
|
|
2042
|
+
path = reference.path,
|
|
2043
|
+
i = 1;
|
|
2044
|
+
i < path.length;
|
|
2045
|
+
i++
|
|
2046
|
+
) {
|
|
2047
|
+
for (
|
|
2048
|
+
;
|
|
2049
|
+
"object" === typeof value &&
|
|
2050
|
+
null !== value &&
|
|
2051
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2052
|
+
|
|
2053
|
+
)
|
|
2054
|
+
if (((value = value._payload), value === handler.chunk))
|
|
2055
|
+
value = handler.value;
|
|
2056
|
+
else {
|
|
2057
|
+
switch (value.status) {
|
|
2058
|
+
case "resolved_model":
|
|
2059
|
+
initializeModelChunk(value);
|
|
2060
|
+
break;
|
|
2061
|
+
case "resolved_module":
|
|
2062
|
+
initializeModuleChunk(value);
|
|
2063
|
+
}
|
|
2064
|
+
switch (value.status) {
|
|
2065
|
+
case "fulfilled":
|
|
2066
|
+
value = value.value;
|
|
2067
|
+
continue;
|
|
2068
|
+
case "blocked":
|
|
2069
|
+
var cyclicHandler = resolveBlockedCycle(value, reference);
|
|
2070
|
+
if (null !== cyclicHandler) {
|
|
2071
|
+
value = cyclicHandler.value;
|
|
2072
|
+
continue;
|
|
2073
|
+
}
|
|
2074
|
+
case "pending":
|
|
2075
|
+
path.splice(0, i - 1);
|
|
2076
|
+
null === value.value
|
|
2077
|
+
? (value.value = [reference])
|
|
2078
|
+
: value.value.push(reference);
|
|
2079
|
+
null === value.reason
|
|
2080
|
+
? (value.reason = [reference])
|
|
2081
|
+
: value.reason.push(reference);
|
|
2082
|
+
return;
|
|
2083
|
+
case "halted":
|
|
2084
|
+
return;
|
|
2085
|
+
default:
|
|
2086
|
+
rejectReference(reference, value.reason);
|
|
2087
|
+
return;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
value = value[path[i]];
|
|
2091
|
+
}
|
|
2092
|
+
for (
|
|
2093
|
+
;
|
|
2094
|
+
"object" === typeof value &&
|
|
2095
|
+
null !== value &&
|
|
2096
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2097
|
+
|
|
2098
|
+
)
|
|
2099
|
+
if (((path = value._payload), path === handler.chunk))
|
|
2100
|
+
value = handler.value;
|
|
2101
|
+
else {
|
|
2102
|
+
switch (path.status) {
|
|
2103
|
+
case "resolved_model":
|
|
2104
|
+
initializeModelChunk(path);
|
|
2105
|
+
break;
|
|
2106
|
+
case "resolved_module":
|
|
2107
|
+
initializeModuleChunk(path);
|
|
2108
|
+
}
|
|
2109
|
+
switch (path.status) {
|
|
2110
|
+
case "fulfilled":
|
|
2111
|
+
value = path.value;
|
|
2112
|
+
continue;
|
|
2113
|
+
}
|
|
2114
|
+
break;
|
|
2115
|
+
}
|
|
2116
|
+
response = map(response, value, parentObject, key);
|
|
2117
|
+
parentObject[key] = response;
|
|
2118
|
+
"" === key && null === handler.value && (handler.value = response);
|
|
2119
|
+
if (
|
|
2120
|
+
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
2121
|
+
"object" === typeof handler.value &&
|
|
2122
|
+
null !== handler.value &&
|
|
2123
|
+
handler.value.$$typeof === REACT_ELEMENT_TYPE
|
|
2124
|
+
)
|
|
2125
|
+
switch (((reference = handler.value), key)) {
|
|
2126
|
+
case "3":
|
|
2127
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2128
|
+
reference.props = response;
|
|
2129
|
+
break;
|
|
2130
|
+
case "4":
|
|
2131
|
+
reference._owner = response;
|
|
2132
|
+
break;
|
|
2133
|
+
case "5":
|
|
2134
|
+
reference._debugStack = response;
|
|
2135
|
+
break;
|
|
2136
|
+
default:
|
|
2137
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2138
|
+
}
|
|
2139
|
+
else
|
|
2140
|
+
reference.isDebug ||
|
|
2141
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2142
|
+
handler.deps--;
|
|
2143
|
+
0 === handler.deps &&
|
|
2144
|
+
((fulfilledChunk = handler.chunk),
|
|
2145
|
+
null !== fulfilledChunk &&
|
|
2146
|
+
"blocked" === fulfilledChunk.status &&
|
|
2147
|
+
((key = fulfilledChunk.value),
|
|
2148
|
+
(fulfilledChunk.status = "fulfilled"),
|
|
2149
|
+
(fulfilledChunk.value = handler.value),
|
|
2150
|
+
(fulfilledChunk.reason = handler.reason),
|
|
2151
|
+
null !== key && wakeChunk(key, handler.value, fulfilledChunk)));
|
|
2152
|
+
}
|
|
2153
|
+
function rejectReference(reference, error) {
|
|
2154
|
+
var handler = reference.handler;
|
|
2155
|
+
reference = reference.response;
|
|
2156
|
+
if (!handler.errored) {
|
|
2157
|
+
var blockedValue = handler.value;
|
|
2158
|
+
handler.errored = !0;
|
|
2159
|
+
handler.value = null;
|
|
2160
|
+
handler.reason = error;
|
|
2161
|
+
handler = handler.chunk;
|
|
2162
|
+
if (null !== handler && "blocked" === handler.status) {
|
|
2163
|
+
if (
|
|
2164
|
+
"object" === typeof blockedValue &&
|
|
2165
|
+
null !== blockedValue &&
|
|
2166
|
+
blockedValue.$$typeof === REACT_ELEMENT_TYPE
|
|
2167
|
+
) {
|
|
2168
|
+
var erroredComponent = {
|
|
2169
|
+
name: getComponentNameFromType(blockedValue.type) || "",
|
|
2170
|
+
owner: blockedValue._owner
|
|
2171
|
+
};
|
|
2172
|
+
erroredComponent.debugStack = blockedValue._debugStack;
|
|
2173
|
+
supportsCreateTask &&
|
|
2174
|
+
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2175
|
+
handler._debugInfo.push(erroredComponent);
|
|
2176
|
+
}
|
|
2177
|
+
triggerErrorOnChunk(reference, handler, error);
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
1339
2181
|
function waitForReference(
|
|
1340
2182
|
referencedChunk,
|
|
1341
2183
|
parentObject,
|
|
1342
2184
|
key,
|
|
1343
2185
|
response,
|
|
1344
2186
|
map,
|
|
1345
|
-
path
|
|
2187
|
+
path,
|
|
2188
|
+
isAwaitingDebugInfo
|
|
1346
2189
|
) {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
path.splice(0, i - 1);
|
|
1355
|
-
value.then(fulfill, reject);
|
|
1356
|
-
return;
|
|
1357
|
-
}
|
|
1358
|
-
value = value[path[i]];
|
|
1359
|
-
}
|
|
1360
|
-
i = map(response, value, parentObject, key);
|
|
1361
|
-
parentObject[key] = i;
|
|
1362
|
-
"" === key && null === handler.value && (handler.value = i);
|
|
1363
|
-
if (
|
|
1364
|
-
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
1365
|
-
"object" === typeof handler.value &&
|
|
1366
|
-
null !== handler.value &&
|
|
1367
|
-
handler.value.$$typeof === REACT_ELEMENT_TYPE
|
|
2190
|
+
if (
|
|
2191
|
+
!(
|
|
2192
|
+
(void 0 !== response._debugChannel &&
|
|
2193
|
+
response._debugChannel.hasReadable) ||
|
|
2194
|
+
"pending" !== referencedChunk.status ||
|
|
2195
|
+
parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2196
|
+
("4" !== key && "5" !== key)
|
|
1368
2197
|
)
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
value.props = i;
|
|
1372
|
-
break;
|
|
1373
|
-
case "4":
|
|
1374
|
-
value._owner = i;
|
|
1375
|
-
}
|
|
1376
|
-
handler.deps--;
|
|
1377
|
-
0 === handler.deps &&
|
|
1378
|
-
((i = handler.chunk),
|
|
1379
|
-
null !== i &&
|
|
1380
|
-
"blocked" === i.status &&
|
|
1381
|
-
((value = i.value),
|
|
1382
|
-
(i.status = "fulfilled"),
|
|
1383
|
-
(i.value = handler.value),
|
|
1384
|
-
null !== value && wakeChunk(value, handler.value)));
|
|
1385
|
-
}
|
|
1386
|
-
function reject(error) {
|
|
1387
|
-
if (!handler.errored) {
|
|
1388
|
-
var blockedValue = handler.value;
|
|
1389
|
-
handler.errored = !0;
|
|
1390
|
-
handler.value = error;
|
|
1391
|
-
var chunk = handler.chunk;
|
|
1392
|
-
if (null !== chunk && "blocked" === chunk.status) {
|
|
1393
|
-
if (
|
|
1394
|
-
"object" === typeof blockedValue &&
|
|
1395
|
-
null !== blockedValue &&
|
|
1396
|
-
blockedValue.$$typeof === REACT_ELEMENT_TYPE
|
|
1397
|
-
) {
|
|
1398
|
-
var erroredComponent = {
|
|
1399
|
-
name: getComponentNameFromType(blockedValue.type) || "",
|
|
1400
|
-
owner: blockedValue._owner
|
|
1401
|
-
};
|
|
1402
|
-
erroredComponent.debugStack = blockedValue._debugStack;
|
|
1403
|
-
supportsCreateTask &&
|
|
1404
|
-
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
1405
|
-
(chunk._debugInfo || (chunk._debugInfo = [])).push(
|
|
1406
|
-
erroredComponent
|
|
1407
|
-
);
|
|
1408
|
-
}
|
|
1409
|
-
triggerErrorOnChunk(chunk, error);
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
2198
|
+
)
|
|
2199
|
+
return null;
|
|
1413
2200
|
if (initializingHandler) {
|
|
1414
2201
|
var handler = initializingHandler;
|
|
1415
2202
|
handler.deps++;
|
|
@@ -1418,10 +2205,25 @@
|
|
|
1418
2205
|
parent: null,
|
|
1419
2206
|
chunk: null,
|
|
1420
2207
|
value: null,
|
|
2208
|
+
reason: null,
|
|
1421
2209
|
deps: 1,
|
|
1422
2210
|
errored: !1
|
|
1423
2211
|
};
|
|
1424
|
-
|
|
2212
|
+
parentObject = {
|
|
2213
|
+
response: response,
|
|
2214
|
+
handler: handler,
|
|
2215
|
+
parentObject: parentObject,
|
|
2216
|
+
key: key,
|
|
2217
|
+
map: map,
|
|
2218
|
+
path: path
|
|
2219
|
+
};
|
|
2220
|
+
parentObject.isDebug = isAwaitingDebugInfo;
|
|
2221
|
+
null === referencedChunk.value
|
|
2222
|
+
? (referencedChunk.value = [parentObject])
|
|
2223
|
+
: referencedChunk.value.push(parentObject);
|
|
2224
|
+
null === referencedChunk.reason
|
|
2225
|
+
? (referencedChunk.reason = [parentObject])
|
|
2226
|
+
: referencedChunk.reason.push(parentObject);
|
|
1425
2227
|
return null;
|
|
1426
2228
|
}
|
|
1427
2229
|
function loadServerReference(response, metaData, parentObject, key) {
|
|
@@ -1459,6 +2261,7 @@
|
|
|
1459
2261
|
parent: null,
|
|
1460
2262
|
chunk: null,
|
|
1461
2263
|
value: null,
|
|
2264
|
+
reason: null,
|
|
1462
2265
|
deps: 1,
|
|
1463
2266
|
errored: !1
|
|
1464
2267
|
};
|
|
@@ -1501,13 +2304,15 @@
|
|
|
1501
2304
|
((boundArgs = resolvedValue.value),
|
|
1502
2305
|
(resolvedValue.status = "fulfilled"),
|
|
1503
2306
|
(resolvedValue.value = handler.value),
|
|
1504
|
-
null !== boundArgs &&
|
|
2307
|
+
null !== boundArgs &&
|
|
2308
|
+
wakeChunk(boundArgs, handler.value, resolvedValue)));
|
|
1505
2309
|
},
|
|
1506
2310
|
function (error) {
|
|
1507
2311
|
if (!handler.errored) {
|
|
1508
2312
|
var blockedValue = handler.value;
|
|
1509
2313
|
handler.errored = !0;
|
|
1510
|
-
handler.value =
|
|
2314
|
+
handler.value = null;
|
|
2315
|
+
handler.reason = error;
|
|
1511
2316
|
var chunk = handler.chunk;
|
|
1512
2317
|
if (null !== chunk && "blocked" === chunk.status) {
|
|
1513
2318
|
if (
|
|
@@ -1522,79 +2327,184 @@
|
|
|
1522
2327
|
erroredComponent.debugStack = blockedValue._debugStack;
|
|
1523
2328
|
supportsCreateTask &&
|
|
1524
2329
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
1525
|
-
|
|
1526
|
-
erroredComponent
|
|
1527
|
-
);
|
|
2330
|
+
chunk._debugInfo.push(erroredComponent);
|
|
1528
2331
|
}
|
|
1529
|
-
triggerErrorOnChunk(chunk, error);
|
|
2332
|
+
triggerErrorOnChunk(response, chunk, error);
|
|
1530
2333
|
}
|
|
1531
2334
|
}
|
|
1532
2335
|
}
|
|
1533
2336
|
);
|
|
1534
2337
|
return null;
|
|
1535
2338
|
}
|
|
2339
|
+
function resolveLazy(value) {
|
|
2340
|
+
for (
|
|
2341
|
+
;
|
|
2342
|
+
"object" === typeof value &&
|
|
2343
|
+
null !== value &&
|
|
2344
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2345
|
+
|
|
2346
|
+
) {
|
|
2347
|
+
var payload = value._payload;
|
|
2348
|
+
if ("fulfilled" === payload.status) value = payload.value;
|
|
2349
|
+
else break;
|
|
2350
|
+
}
|
|
2351
|
+
return value;
|
|
2352
|
+
}
|
|
2353
|
+
function transferReferencedDebugInfo(parentChunk, referencedChunk) {
|
|
2354
|
+
if (null !== parentChunk) {
|
|
2355
|
+
referencedChunk = referencedChunk._debugInfo;
|
|
2356
|
+
parentChunk = parentChunk._debugInfo;
|
|
2357
|
+
for (var i = 0; i < referencedChunk.length; ++i) {
|
|
2358
|
+
var debugInfoEntry = referencedChunk[i];
|
|
2359
|
+
null == debugInfoEntry.name && parentChunk.push(debugInfoEntry);
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
1536
2363
|
function getOutlinedModel(response, reference, parentObject, key, map) {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
2364
|
+
var path = reference.split(":");
|
|
2365
|
+
reference = parseInt(path[0], 16);
|
|
2366
|
+
reference = getChunk(response, reference);
|
|
2367
|
+
null !== initializingChunk &&
|
|
2368
|
+
isArrayImpl(initializingChunk._children) &&
|
|
2369
|
+
initializingChunk._children.push(reference);
|
|
2370
|
+
switch (reference.status) {
|
|
1541
2371
|
case "resolved_model":
|
|
1542
|
-
initializeModelChunk(
|
|
2372
|
+
initializeModelChunk(reference);
|
|
1543
2373
|
break;
|
|
1544
2374
|
case "resolved_module":
|
|
1545
|
-
initializeModuleChunk(
|
|
2375
|
+
initializeModuleChunk(reference);
|
|
1546
2376
|
}
|
|
1547
|
-
switch (
|
|
2377
|
+
switch (reference.status) {
|
|
1548
2378
|
case "fulfilled":
|
|
1549
|
-
for (var value =
|
|
1550
|
-
for (
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
"
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
2379
|
+
for (var value = reference.value, i = 1; i < path.length; i++) {
|
|
2380
|
+
for (
|
|
2381
|
+
;
|
|
2382
|
+
"object" === typeof value &&
|
|
2383
|
+
null !== value &&
|
|
2384
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2385
|
+
|
|
2386
|
+
) {
|
|
2387
|
+
value = value._payload;
|
|
2388
|
+
switch (value.status) {
|
|
2389
|
+
case "resolved_model":
|
|
2390
|
+
initializeModelChunk(value);
|
|
2391
|
+
break;
|
|
2392
|
+
case "resolved_module":
|
|
2393
|
+
initializeModuleChunk(value);
|
|
2394
|
+
}
|
|
2395
|
+
switch (value.status) {
|
|
2396
|
+
case "fulfilled":
|
|
2397
|
+
value = value.value;
|
|
2398
|
+
break;
|
|
2399
|
+
case "blocked":
|
|
2400
|
+
case "pending":
|
|
2401
|
+
return waitForReference(
|
|
2402
|
+
value,
|
|
2403
|
+
parentObject,
|
|
2404
|
+
key,
|
|
2405
|
+
response,
|
|
2406
|
+
map,
|
|
2407
|
+
path.slice(i - 1),
|
|
2408
|
+
!1
|
|
2409
|
+
);
|
|
2410
|
+
case "halted":
|
|
2411
|
+
return (
|
|
2412
|
+
initializingHandler
|
|
2413
|
+
? ((parentObject = initializingHandler),
|
|
2414
|
+
parentObject.deps++)
|
|
2415
|
+
: (initializingHandler = {
|
|
2416
|
+
parent: null,
|
|
2417
|
+
chunk: null,
|
|
2418
|
+
value: null,
|
|
2419
|
+
reason: null,
|
|
2420
|
+
deps: 1,
|
|
2421
|
+
errored: !1
|
|
2422
|
+
}),
|
|
2423
|
+
null
|
|
2424
|
+
);
|
|
2425
|
+
default:
|
|
2426
|
+
return (
|
|
2427
|
+
initializingHandler
|
|
2428
|
+
? ((initializingHandler.errored = !0),
|
|
2429
|
+
(initializingHandler.value = null),
|
|
2430
|
+
(initializingHandler.reason = value.reason))
|
|
2431
|
+
: (initializingHandler = {
|
|
2432
|
+
parent: null,
|
|
2433
|
+
chunk: null,
|
|
2434
|
+
value: null,
|
|
2435
|
+
reason: value.reason,
|
|
2436
|
+
deps: 0,
|
|
2437
|
+
errored: !0
|
|
2438
|
+
}),
|
|
2439
|
+
null
|
|
2440
|
+
);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
value = value[path[i]];
|
|
2444
|
+
}
|
|
2445
|
+
for (
|
|
2446
|
+
;
|
|
2447
|
+
"object" === typeof value &&
|
|
2448
|
+
null !== value &&
|
|
2449
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2450
|
+
|
|
2451
|
+
) {
|
|
2452
|
+
path = value._payload;
|
|
2453
|
+
switch (path.status) {
|
|
2454
|
+
case "resolved_model":
|
|
2455
|
+
initializeModelChunk(path);
|
|
2456
|
+
break;
|
|
2457
|
+
case "resolved_module":
|
|
2458
|
+
initializeModuleChunk(path);
|
|
2459
|
+
}
|
|
2460
|
+
switch (path.status) {
|
|
2461
|
+
case "fulfilled":
|
|
2462
|
+
value = path.value;
|
|
2463
|
+
continue;
|
|
2464
|
+
}
|
|
2465
|
+
break;
|
|
2466
|
+
}
|
|
2467
|
+
response = map(response, value, parentObject, key);
|
|
2468
|
+
(parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2469
|
+
("4" !== key && "5" !== key)) &&
|
|
2470
|
+
transferReferencedDebugInfo(initializingChunk, reference);
|
|
2471
|
+
return response;
|
|
2472
|
+
case "pending":
|
|
2473
|
+
case "blocked":
|
|
1581
2474
|
return waitForReference(
|
|
1582
|
-
|
|
2475
|
+
reference,
|
|
1583
2476
|
parentObject,
|
|
1584
2477
|
key,
|
|
1585
2478
|
response,
|
|
1586
2479
|
map,
|
|
1587
|
-
|
|
2480
|
+
path,
|
|
2481
|
+
!1
|
|
2482
|
+
);
|
|
2483
|
+
case "halted":
|
|
2484
|
+
return (
|
|
2485
|
+
initializingHandler
|
|
2486
|
+
? ((parentObject = initializingHandler), parentObject.deps++)
|
|
2487
|
+
: (initializingHandler = {
|
|
2488
|
+
parent: null,
|
|
2489
|
+
chunk: null,
|
|
2490
|
+
value: null,
|
|
2491
|
+
reason: null,
|
|
2492
|
+
deps: 1,
|
|
2493
|
+
errored: !1
|
|
2494
|
+
}),
|
|
2495
|
+
null
|
|
1588
2496
|
);
|
|
1589
2497
|
default:
|
|
1590
2498
|
return (
|
|
1591
2499
|
initializingHandler
|
|
1592
2500
|
? ((initializingHandler.errored = !0),
|
|
1593
|
-
(initializingHandler.value =
|
|
2501
|
+
(initializingHandler.value = null),
|
|
2502
|
+
(initializingHandler.reason = reference.reason))
|
|
1594
2503
|
: (initializingHandler = {
|
|
1595
2504
|
parent: null,
|
|
1596
2505
|
chunk: null,
|
|
1597
|
-
value:
|
|
2506
|
+
value: null,
|
|
2507
|
+
reason: reference.reason,
|
|
1598
2508
|
deps: 0,
|
|
1599
2509
|
errored: !0
|
|
1600
2510
|
}),
|
|
@@ -1617,12 +2527,63 @@
|
|
|
1617
2527
|
response.append(model[i][0], model[i][1]);
|
|
1618
2528
|
return response;
|
|
1619
2529
|
}
|
|
2530
|
+
function applyConstructor(response, model, parentObject) {
|
|
2531
|
+
Object.setPrototypeOf(parentObject, model.prototype);
|
|
2532
|
+
}
|
|
2533
|
+
function defineLazyGetter(response, chunk, parentObject, key) {
|
|
2534
|
+
Object.defineProperty(parentObject, key, {
|
|
2535
|
+
get: function () {
|
|
2536
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk);
|
|
2537
|
+
switch (chunk.status) {
|
|
2538
|
+
case "fulfilled":
|
|
2539
|
+
return chunk.value;
|
|
2540
|
+
case "rejected":
|
|
2541
|
+
throw chunk.reason;
|
|
2542
|
+
}
|
|
2543
|
+
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.";
|
|
2544
|
+
},
|
|
2545
|
+
enumerable: !0,
|
|
2546
|
+
configurable: !1
|
|
2547
|
+
});
|
|
2548
|
+
return null;
|
|
2549
|
+
}
|
|
1620
2550
|
function extractIterator(response, model) {
|
|
1621
2551
|
return model[Symbol.iterator]();
|
|
1622
2552
|
}
|
|
1623
2553
|
function createModel(response, model) {
|
|
1624
2554
|
return model;
|
|
1625
2555
|
}
|
|
2556
|
+
function getInferredFunctionApproximate(code) {
|
|
2557
|
+
code = code.startsWith("Object.defineProperty(")
|
|
2558
|
+
? code.slice(22)
|
|
2559
|
+
: code.startsWith("(")
|
|
2560
|
+
? code.slice(1)
|
|
2561
|
+
: code;
|
|
2562
|
+
if (code.startsWith("async function")) {
|
|
2563
|
+
var idx = code.indexOf("(", 14);
|
|
2564
|
+
if (-1 !== idx)
|
|
2565
|
+
return (
|
|
2566
|
+
(code = code.slice(14, idx).trim()),
|
|
2567
|
+
(0, eval)("({" + JSON.stringify(code) + ":async function(){}})")[
|
|
2568
|
+
code
|
|
2569
|
+
]
|
|
2570
|
+
);
|
|
2571
|
+
} else if (code.startsWith("function")) {
|
|
2572
|
+
if (((idx = code.indexOf("(", 8)), -1 !== idx))
|
|
2573
|
+
return (
|
|
2574
|
+
(code = code.slice(8, idx).trim()),
|
|
2575
|
+
(0, eval)("({" + JSON.stringify(code) + ":function(){}})")[code]
|
|
2576
|
+
);
|
|
2577
|
+
} else if (
|
|
2578
|
+
code.startsWith("class") &&
|
|
2579
|
+
((idx = code.indexOf("{", 5)), -1 !== idx)
|
|
2580
|
+
)
|
|
2581
|
+
return (
|
|
2582
|
+
(code = code.slice(5, idx).trim()),
|
|
2583
|
+
(0, eval)("({" + JSON.stringify(code) + ":class{}})")[code]
|
|
2584
|
+
);
|
|
2585
|
+
return function () {};
|
|
2586
|
+
}
|
|
1626
2587
|
function parseModelString(response, parentObject, key, value) {
|
|
1627
2588
|
if ("$" === value[0]) {
|
|
1628
2589
|
if ("$" === value)
|
|
@@ -1633,6 +2594,7 @@
|
|
|
1633
2594
|
parent: initializingHandler,
|
|
1634
2595
|
chunk: null,
|
|
1635
2596
|
value: null,
|
|
2597
|
+
reason: null,
|
|
1636
2598
|
deps: 0,
|
|
1637
2599
|
errored: !1
|
|
1638
2600
|
}),
|
|
@@ -1645,24 +2607,30 @@
|
|
|
1645
2607
|
return (
|
|
1646
2608
|
(parentObject = parseInt(value.slice(2), 16)),
|
|
1647
2609
|
(response = getChunk(response, parentObject)),
|
|
1648
|
-
|
|
2610
|
+
null !== initializingChunk &&
|
|
2611
|
+
isArrayImpl(initializingChunk._children) &&
|
|
2612
|
+
initializingChunk._children.push(response),
|
|
2613
|
+
createLazyChunkWrapper(response, 0)
|
|
1649
2614
|
);
|
|
1650
2615
|
case "@":
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
2616
|
+
return (
|
|
2617
|
+
(parentObject = parseInt(value.slice(2), 16)),
|
|
2618
|
+
(response = getChunk(response, parentObject)),
|
|
2619
|
+
null !== initializingChunk &&
|
|
2620
|
+
isArrayImpl(initializingChunk._children) &&
|
|
2621
|
+
initializingChunk._children.push(response),
|
|
2622
|
+
response
|
|
2623
|
+
);
|
|
1654
2624
|
case "S":
|
|
1655
2625
|
return Symbol.for(value.slice(2));
|
|
1656
2626
|
case "F":
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
loadServerReference
|
|
1665
|
-
)
|
|
2627
|
+
var ref = value.slice(2);
|
|
2628
|
+
return getOutlinedModel(
|
|
2629
|
+
response,
|
|
2630
|
+
ref,
|
|
2631
|
+
parentObject,
|
|
2632
|
+
key,
|
|
2633
|
+
loadServerReference
|
|
1666
2634
|
);
|
|
1667
2635
|
case "T":
|
|
1668
2636
|
parentObject = "$" + value.slice(2);
|
|
@@ -1674,36 +2642,30 @@
|
|
|
1674
2642
|
return response.get(parentObject);
|
|
1675
2643
|
case "Q":
|
|
1676
2644
|
return (
|
|
1677
|
-
(
|
|
1678
|
-
getOutlinedModel(response,
|
|
2645
|
+
(ref = value.slice(2)),
|
|
2646
|
+
getOutlinedModel(response, ref, parentObject, key, createMap)
|
|
1679
2647
|
);
|
|
1680
2648
|
case "W":
|
|
1681
2649
|
return (
|
|
1682
|
-
(
|
|
1683
|
-
getOutlinedModel(response,
|
|
2650
|
+
(ref = value.slice(2)),
|
|
2651
|
+
getOutlinedModel(response, ref, parentObject, key, createSet)
|
|
1684
2652
|
);
|
|
1685
2653
|
case "B":
|
|
1686
2654
|
return (
|
|
1687
|
-
(
|
|
1688
|
-
getOutlinedModel(response,
|
|
2655
|
+
(ref = value.slice(2)),
|
|
2656
|
+
getOutlinedModel(response, ref, parentObject, key, createBlob)
|
|
1689
2657
|
);
|
|
1690
2658
|
case "K":
|
|
1691
2659
|
return (
|
|
1692
|
-
(
|
|
1693
|
-
getOutlinedModel(
|
|
1694
|
-
response,
|
|
1695
|
-
value,
|
|
1696
|
-
parentObject,
|
|
1697
|
-
key,
|
|
1698
|
-
createFormData
|
|
1699
|
-
)
|
|
2660
|
+
(ref = value.slice(2)),
|
|
2661
|
+
getOutlinedModel(response, ref, parentObject, key, createFormData)
|
|
1700
2662
|
);
|
|
1701
2663
|
case "Z":
|
|
1702
2664
|
return (
|
|
1703
|
-
(
|
|
2665
|
+
(ref = value.slice(2)),
|
|
1704
2666
|
getOutlinedModel(
|
|
1705
2667
|
response,
|
|
1706
|
-
|
|
2668
|
+
ref,
|
|
1707
2669
|
parentObject,
|
|
1708
2670
|
key,
|
|
1709
2671
|
resolveErrorDev
|
|
@@ -1711,10 +2673,10 @@
|
|
|
1711
2673
|
);
|
|
1712
2674
|
case "i":
|
|
1713
2675
|
return (
|
|
1714
|
-
(
|
|
2676
|
+
(ref = value.slice(2)),
|
|
1715
2677
|
getOutlinedModel(
|
|
1716
2678
|
response,
|
|
1717
|
-
|
|
2679
|
+
ref,
|
|
1718
2680
|
parentObject,
|
|
1719
2681
|
key,
|
|
1720
2682
|
extractIterator
|
|
@@ -1732,27 +2694,72 @@
|
|
|
1732
2694
|
return new Date(Date.parse(value.slice(2)));
|
|
1733
2695
|
case "n":
|
|
1734
2696
|
return BigInt(value.slice(2));
|
|
2697
|
+
case "P":
|
|
2698
|
+
return (
|
|
2699
|
+
(ref = value.slice(2)),
|
|
2700
|
+
getOutlinedModel(
|
|
2701
|
+
response,
|
|
2702
|
+
ref,
|
|
2703
|
+
parentObject,
|
|
2704
|
+
key,
|
|
2705
|
+
applyConstructor
|
|
2706
|
+
)
|
|
2707
|
+
);
|
|
1735
2708
|
case "E":
|
|
2709
|
+
response = value.slice(2);
|
|
1736
2710
|
try {
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
2711
|
+
if (!mightHaveStaticConstructor.test(response))
|
|
2712
|
+
return (0, eval)(response);
|
|
2713
|
+
} catch (x) {}
|
|
2714
|
+
try {
|
|
2715
|
+
if (
|
|
2716
|
+
((ref = getInferredFunctionApproximate(response)),
|
|
2717
|
+
response.startsWith("Object.defineProperty("))
|
|
2718
|
+
) {
|
|
2719
|
+
var idx = response.lastIndexOf(',"name",{value:"');
|
|
2720
|
+
if (-1 !== idx) {
|
|
2721
|
+
var name = JSON.parse(
|
|
2722
|
+
response.slice(idx + 16 - 1, response.length - 2)
|
|
2723
|
+
);
|
|
2724
|
+
Object.defineProperty(ref, "name", { value: name });
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
} catch (_) {
|
|
2728
|
+
ref = function () {};
|
|
1740
2729
|
}
|
|
2730
|
+
return ref;
|
|
1741
2731
|
case "Y":
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
2732
|
+
if (
|
|
2733
|
+
2 < value.length &&
|
|
2734
|
+
(ref = response._debugChannel && response._debugChannel.callback)
|
|
2735
|
+
) {
|
|
2736
|
+
if ("@" === value[2])
|
|
2737
|
+
return (
|
|
2738
|
+
(parentObject = value.slice(3)),
|
|
2739
|
+
(key = parseInt(parentObject, 16)),
|
|
2740
|
+
response._chunks.has(key) || ref("P:" + parentObject),
|
|
2741
|
+
getChunk(response, key)
|
|
2742
|
+
);
|
|
2743
|
+
value = value.slice(2);
|
|
2744
|
+
idx = parseInt(value, 16);
|
|
2745
|
+
response._chunks.has(idx) || ref("Q:" + value);
|
|
2746
|
+
ref = getChunk(response, idx);
|
|
2747
|
+
return "fulfilled" === ref.status
|
|
2748
|
+
? ref.value
|
|
2749
|
+
: defineLazyGetter(response, ref, parentObject, key);
|
|
2750
|
+
}
|
|
2751
|
+
Object.defineProperty(parentObject, key, {
|
|
2752
|
+
get: function () {
|
|
2753
|
+
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.";
|
|
2754
|
+
},
|
|
2755
|
+
enumerable: !0,
|
|
2756
|
+
configurable: !1
|
|
2757
|
+
});
|
|
2758
|
+
return null;
|
|
1752
2759
|
default:
|
|
1753
2760
|
return (
|
|
1754
|
-
(
|
|
1755
|
-
getOutlinedModel(response,
|
|
2761
|
+
(ref = value.slice(1)),
|
|
2762
|
+
getOutlinedModel(response, ref, parentObject, key, createModel)
|
|
1756
2763
|
);
|
|
1757
2764
|
}
|
|
1758
2765
|
}
|
|
@@ -1773,7 +2780,8 @@
|
|
|
1773
2780
|
temporaryReferences,
|
|
1774
2781
|
findSourceMapURL,
|
|
1775
2782
|
replayConsole,
|
|
1776
|
-
environmentName
|
|
2783
|
+
environmentName,
|
|
2784
|
+
debugChannel
|
|
1777
2785
|
) {
|
|
1778
2786
|
var chunks = new Map();
|
|
1779
2787
|
this._bundlerConfig = bundlerConfig;
|
|
@@ -1785,11 +2793,13 @@
|
|
|
1785
2793
|
this._chunks = chunks;
|
|
1786
2794
|
this._stringDecoder = new util.TextDecoder();
|
|
1787
2795
|
this._fromJSON = null;
|
|
1788
|
-
this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
|
|
1789
|
-
this._buffer = [];
|
|
1790
2796
|
this._closed = !1;
|
|
1791
2797
|
this._closedReason = null;
|
|
1792
2798
|
this._tempRefs = temporaryReferences;
|
|
2799
|
+
this._timeOrigin = 0;
|
|
2800
|
+
this._pendingInitialRender = null;
|
|
2801
|
+
this._pendingChunks = 0;
|
|
2802
|
+
this._weakResponse = { weak: new WeakRef(this), response: this };
|
|
1793
2803
|
this._debugRootOwner = bundlerConfig =
|
|
1794
2804
|
void 0 === ReactSharedInteralsServer ||
|
|
1795
2805
|
null === ReactSharedInteralsServer.A
|
|
@@ -1802,36 +2812,100 @@
|
|
|
1802
2812
|
(this._debugRootTask = console.createTask(
|
|
1803
2813
|
'"use ' + environmentName.toLowerCase() + '"'
|
|
1804
2814
|
));
|
|
2815
|
+
this._debugStartTime = performance.now();
|
|
1805
2816
|
this._debugFindSourceMapURL = findSourceMapURL;
|
|
2817
|
+
this._debugChannel = debugChannel;
|
|
2818
|
+
this._blockedConsole = null;
|
|
1806
2819
|
this._replayConsole = replayConsole;
|
|
1807
2820
|
this._rootEnvironmentName = environmentName;
|
|
2821
|
+
debugChannel &&
|
|
2822
|
+
(null === debugChannelRegistry
|
|
2823
|
+
? (closeDebugChannel(debugChannel), (this._debugChannel = void 0))
|
|
2824
|
+
: debugChannelRegistry.register(this, debugChannel, this));
|
|
2825
|
+
replayConsole && markAllTracksInOrder();
|
|
1808
2826
|
this._fromJSON = createFromJSONCallback(this);
|
|
1809
2827
|
}
|
|
1810
|
-
function
|
|
1811
|
-
var
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
:
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
2828
|
+
function createStreamState(weakResponse, streamDebugValue) {
|
|
2829
|
+
var streamState = {
|
|
2830
|
+
_rowState: 0,
|
|
2831
|
+
_rowID: 0,
|
|
2832
|
+
_rowTag: 0,
|
|
2833
|
+
_rowLength: 0,
|
|
2834
|
+
_buffer: []
|
|
2835
|
+
};
|
|
2836
|
+
weakResponse = unwrapWeakResponse(weakResponse);
|
|
2837
|
+
var debugValuePromise = Promise.resolve(streamDebugValue);
|
|
2838
|
+
debugValuePromise.status = "fulfilled";
|
|
2839
|
+
debugValuePromise.value = streamDebugValue;
|
|
2840
|
+
streamState._debugInfo = {
|
|
2841
|
+
name: "RSC stream",
|
|
2842
|
+
start: weakResponse._debugStartTime,
|
|
2843
|
+
end: weakResponse._debugStartTime,
|
|
2844
|
+
byteSize: 0,
|
|
2845
|
+
value: debugValuePromise,
|
|
2846
|
+
owner: weakResponse._debugRootOwner,
|
|
2847
|
+
debugStack: weakResponse._debugRootStack,
|
|
2848
|
+
debugTask: weakResponse._debugRootTask
|
|
2849
|
+
};
|
|
2850
|
+
streamState._debugTargetChunkSize = MIN_CHUNK_SIZE;
|
|
2851
|
+
return streamState;
|
|
1819
2852
|
}
|
|
1820
|
-
function
|
|
1821
|
-
var
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
2853
|
+
function incrementChunkDebugInfo(streamState, chunkLength) {
|
|
2854
|
+
var debugInfo = streamState._debugInfo,
|
|
2855
|
+
endTime = performance.now(),
|
|
2856
|
+
previousEndTime = debugInfo.end;
|
|
2857
|
+
chunkLength = debugInfo.byteSize + chunkLength;
|
|
2858
|
+
chunkLength > streamState._debugTargetChunkSize ||
|
|
2859
|
+
endTime > previousEndTime + 10
|
|
2860
|
+
? ((streamState._debugInfo = {
|
|
2861
|
+
name: debugInfo.name,
|
|
2862
|
+
start: debugInfo.start,
|
|
2863
|
+
end: endTime,
|
|
2864
|
+
byteSize: chunkLength,
|
|
2865
|
+
value: debugInfo.value,
|
|
2866
|
+
owner: debugInfo.owner,
|
|
2867
|
+
debugStack: debugInfo.debugStack,
|
|
2868
|
+
debugTask: debugInfo.debugTask
|
|
2869
|
+
}),
|
|
2870
|
+
(streamState._debugTargetChunkSize = chunkLength + MIN_CHUNK_SIZE))
|
|
2871
|
+
: ((debugInfo.end = endTime), (debugInfo.byteSize = chunkLength));
|
|
2872
|
+
}
|
|
2873
|
+
function addDebugInfo(chunk, debugInfo) {
|
|
2874
|
+
var value = resolveLazy(chunk.value);
|
|
2875
|
+
"object" !== typeof value ||
|
|
2876
|
+
null === value ||
|
|
2877
|
+
(!isArrayImpl(value) &&
|
|
2878
|
+
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
2879
|
+
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
2880
|
+
value.$$typeof !== REACT_LAZY_TYPE)
|
|
2881
|
+
? chunk._debugInfo.push.apply(chunk._debugInfo, debugInfo)
|
|
2882
|
+
: isArrayImpl(value._debugInfo)
|
|
2883
|
+
? value._debugInfo.push.apply(value._debugInfo, debugInfo)
|
|
2884
|
+
: Object.defineProperty(value, "_debugInfo", {
|
|
2885
|
+
configurable: !1,
|
|
2886
|
+
enumerable: !1,
|
|
2887
|
+
writable: !0,
|
|
2888
|
+
value: debugInfo
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
function resolveChunkDebugInfo(streamState, chunk) {
|
|
2892
|
+
streamState = [{ awaited: streamState._debugInfo }];
|
|
2893
|
+
"pending" === chunk.status || "blocked" === chunk.status
|
|
2894
|
+
? ((streamState = addDebugInfo.bind(null, chunk, streamState)),
|
|
2895
|
+
chunk.then(streamState, streamState))
|
|
2896
|
+
: addDebugInfo(chunk, streamState);
|
|
1826
2897
|
}
|
|
1827
|
-
function resolveBuffer(response, id, buffer) {
|
|
2898
|
+
function resolveBuffer(response, id, buffer, streamState) {
|
|
1828
2899
|
var chunks = response._chunks,
|
|
1829
2900
|
chunk = chunks.get(id);
|
|
1830
2901
|
chunk && "pending" !== chunk.status
|
|
1831
2902
|
? chunk.reason.enqueueValue(buffer)
|
|
1832
|
-
:
|
|
2903
|
+
: (chunk && releasePendingChunk(response, chunk),
|
|
2904
|
+
(response = new ReactPromise("fulfilled", buffer, null)),
|
|
2905
|
+
resolveChunkDebugInfo(streamState, response),
|
|
2906
|
+
chunks.set(id, response));
|
|
1833
2907
|
}
|
|
1834
|
-
function resolveModule(response, id, model) {
|
|
2908
|
+
function resolveModule(response, id, model, streamState) {
|
|
1835
2909
|
var chunks = response._chunks,
|
|
1836
2910
|
chunk = chunks.get(id);
|
|
1837
2911
|
model = JSON.parse(model, response._fromJSON);
|
|
@@ -1846,48 +2920,78 @@
|
|
|
1846
2920
|
);
|
|
1847
2921
|
if ((model = preloadModule(clientReference))) {
|
|
1848
2922
|
if (chunk) {
|
|
2923
|
+
releasePendingChunk(response, chunk);
|
|
1849
2924
|
var blockedChunk = chunk;
|
|
1850
2925
|
blockedChunk.status = "blocked";
|
|
1851
2926
|
} else
|
|
1852
|
-
(blockedChunk = new ReactPromise("blocked", null, null
|
|
2927
|
+
(blockedChunk = new ReactPromise("blocked", null, null)),
|
|
1853
2928
|
chunks.set(id, blockedChunk);
|
|
2929
|
+
resolveChunkDebugInfo(streamState, blockedChunk);
|
|
1854
2930
|
model.then(
|
|
1855
2931
|
function () {
|
|
1856
|
-
return resolveModuleChunk(blockedChunk, clientReference);
|
|
2932
|
+
return resolveModuleChunk(response, blockedChunk, clientReference);
|
|
1857
2933
|
},
|
|
1858
2934
|
function (error) {
|
|
1859
|
-
return triggerErrorOnChunk(blockedChunk, error);
|
|
2935
|
+
return triggerErrorOnChunk(response, blockedChunk, error);
|
|
1860
2936
|
}
|
|
1861
2937
|
);
|
|
1862
2938
|
} else
|
|
1863
2939
|
chunk
|
|
1864
|
-
?
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
);
|
|
2940
|
+
? (resolveChunkDebugInfo(streamState, chunk),
|
|
2941
|
+
resolveModuleChunk(response, chunk, clientReference))
|
|
2942
|
+
: ((chunk = new ReactPromise(
|
|
2943
|
+
"resolved_module",
|
|
2944
|
+
clientReference,
|
|
2945
|
+
null
|
|
2946
|
+
)),
|
|
2947
|
+
resolveChunkDebugInfo(streamState, chunk),
|
|
2948
|
+
chunks.set(id, chunk));
|
|
1874
2949
|
}
|
|
1875
|
-
function resolveStream(response, id, stream, controller) {
|
|
2950
|
+
function resolveStream(response, id, stream, controller, streamState) {
|
|
1876
2951
|
var chunks = response._chunks,
|
|
1877
2952
|
chunk = chunks.get(id);
|
|
1878
|
-
chunk
|
|
1879
|
-
|
|
1880
|
-
((
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
(chunk
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
2953
|
+
if (chunk) {
|
|
2954
|
+
if (
|
|
2955
|
+
(resolveChunkDebugInfo(streamState, chunk),
|
|
2956
|
+
"pending" === chunk.status)
|
|
2957
|
+
) {
|
|
2958
|
+
releasePendingChunk(response, chunk);
|
|
2959
|
+
id = chunk.value;
|
|
2960
|
+
if (null != chunk._debugChunk) {
|
|
2961
|
+
streamState = initializingHandler;
|
|
2962
|
+
chunks = initializingChunk;
|
|
2963
|
+
initializingHandler = null;
|
|
2964
|
+
chunk.status = "blocked";
|
|
2965
|
+
chunk.value = null;
|
|
2966
|
+
chunk.reason = null;
|
|
2967
|
+
initializingChunk = chunk;
|
|
2968
|
+
try {
|
|
2969
|
+
if (
|
|
2970
|
+
(initializeDebugChunk(response, chunk),
|
|
2971
|
+
null !== initializingHandler &&
|
|
2972
|
+
!initializingHandler.errored &&
|
|
2973
|
+
0 < initializingHandler.deps)
|
|
2974
|
+
) {
|
|
2975
|
+
initializingHandler.value = stream;
|
|
2976
|
+
initializingHandler.reason = controller;
|
|
2977
|
+
initializingHandler.chunk = chunk;
|
|
2978
|
+
return;
|
|
2979
|
+
}
|
|
2980
|
+
} finally {
|
|
2981
|
+
(initializingHandler = streamState), (initializingChunk = chunks);
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
chunk.status = "fulfilled";
|
|
2985
|
+
chunk.value = stream;
|
|
2986
|
+
chunk.reason = controller;
|
|
2987
|
+
null !== id && wakeChunk(id, chunk.value, chunk);
|
|
2988
|
+
}
|
|
2989
|
+
} else
|
|
2990
|
+
(response = new ReactPromise("fulfilled", stream, controller)),
|
|
2991
|
+
resolveChunkDebugInfo(streamState, response),
|
|
2992
|
+
chunks.set(id, response);
|
|
1889
2993
|
}
|
|
1890
|
-
function startReadableStream(response, id, type) {
|
|
2994
|
+
function startReadableStream(response, id, type, streamState) {
|
|
1891
2995
|
var controller = null;
|
|
1892
2996
|
type = new ReadableStream({
|
|
1893
2997
|
type: type,
|
|
@@ -1896,73 +3000,75 @@
|
|
|
1896
3000
|
}
|
|
1897
3001
|
});
|
|
1898
3002
|
var previousBlockedChunk = null;
|
|
1899
|
-
resolveStream(
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
3003
|
+
resolveStream(
|
|
3004
|
+
response,
|
|
3005
|
+
id,
|
|
3006
|
+
type,
|
|
3007
|
+
{
|
|
3008
|
+
enqueueValue: function (value) {
|
|
3009
|
+
null === previousBlockedChunk
|
|
3010
|
+
? controller.enqueue(value)
|
|
3011
|
+
: previousBlockedChunk.then(function () {
|
|
3012
|
+
controller.enqueue(value);
|
|
3013
|
+
});
|
|
3014
|
+
},
|
|
3015
|
+
enqueueModel: function (json) {
|
|
3016
|
+
if (null === previousBlockedChunk) {
|
|
3017
|
+
var chunk = createResolvedModelChunk(response, json);
|
|
3018
|
+
initializeModelChunk(chunk);
|
|
3019
|
+
"fulfilled" === chunk.status
|
|
3020
|
+
? controller.enqueue(chunk.value)
|
|
3021
|
+
: (chunk.then(
|
|
3022
|
+
function (v) {
|
|
3023
|
+
return controller.enqueue(v);
|
|
3024
|
+
},
|
|
3025
|
+
function (e) {
|
|
3026
|
+
return controller.error(e);
|
|
3027
|
+
}
|
|
3028
|
+
),
|
|
3029
|
+
(previousBlockedChunk = chunk));
|
|
3030
|
+
} else {
|
|
3031
|
+
chunk = previousBlockedChunk;
|
|
3032
|
+
var _chunk3 = createPendingChunk(response);
|
|
3033
|
+
_chunk3.then(
|
|
3034
|
+
function (v) {
|
|
3035
|
+
return controller.enqueue(v);
|
|
3036
|
+
},
|
|
3037
|
+
function (e) {
|
|
3038
|
+
return controller.error(e);
|
|
3039
|
+
}
|
|
3040
|
+
);
|
|
3041
|
+
previousBlockedChunk = _chunk3;
|
|
3042
|
+
chunk.then(function () {
|
|
3043
|
+
previousBlockedChunk === _chunk3 &&
|
|
3044
|
+
(previousBlockedChunk = null);
|
|
3045
|
+
resolveModelChunk(response, _chunk3, json);
|
|
1905
3046
|
});
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
null
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
} else {
|
|
1928
|
-
chunk = previousBlockedChunk;
|
|
1929
|
-
var _chunk3 = createPendingChunk(response);
|
|
1930
|
-
_chunk3.then(
|
|
1931
|
-
function (v) {
|
|
1932
|
-
return controller.enqueue(v);
|
|
1933
|
-
},
|
|
1934
|
-
function (e) {
|
|
1935
|
-
return controller.error(e);
|
|
1936
|
-
}
|
|
1937
|
-
);
|
|
1938
|
-
previousBlockedChunk = _chunk3;
|
|
1939
|
-
chunk.then(function () {
|
|
1940
|
-
previousBlockedChunk === _chunk3 && (previousBlockedChunk = null);
|
|
1941
|
-
resolveModelChunk(_chunk3, json);
|
|
1942
|
-
});
|
|
1943
|
-
}
|
|
1944
|
-
},
|
|
1945
|
-
close: function () {
|
|
1946
|
-
if (null === previousBlockedChunk) controller.close();
|
|
1947
|
-
else {
|
|
1948
|
-
var blockedChunk = previousBlockedChunk;
|
|
1949
|
-
previousBlockedChunk = null;
|
|
1950
|
-
blockedChunk.then(function () {
|
|
1951
|
-
return controller.close();
|
|
1952
|
-
});
|
|
3047
|
+
}
|
|
3048
|
+
},
|
|
3049
|
+
close: function () {
|
|
3050
|
+
if (null === previousBlockedChunk) controller.close();
|
|
3051
|
+
else {
|
|
3052
|
+
var blockedChunk = previousBlockedChunk;
|
|
3053
|
+
previousBlockedChunk = null;
|
|
3054
|
+
blockedChunk.then(function () {
|
|
3055
|
+
return controller.close();
|
|
3056
|
+
});
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
error: function (error) {
|
|
3060
|
+
if (null === previousBlockedChunk) controller.error(error);
|
|
3061
|
+
else {
|
|
3062
|
+
var blockedChunk = previousBlockedChunk;
|
|
3063
|
+
previousBlockedChunk = null;
|
|
3064
|
+
blockedChunk.then(function () {
|
|
3065
|
+
return controller.error(error);
|
|
3066
|
+
});
|
|
3067
|
+
}
|
|
1953
3068
|
}
|
|
1954
3069
|
},
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
else {
|
|
1958
|
-
var blockedChunk = previousBlockedChunk;
|
|
1959
|
-
previousBlockedChunk = null;
|
|
1960
|
-
blockedChunk.then(function () {
|
|
1961
|
-
return controller.error(error);
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
});
|
|
3070
|
+
streamState
|
|
3071
|
+
);
|
|
1966
3072
|
}
|
|
1967
3073
|
function asyncIterator() {
|
|
1968
3074
|
return this;
|
|
@@ -1972,30 +3078,30 @@
|
|
|
1972
3078
|
next[ASYNC_ITERATOR] = asyncIterator;
|
|
1973
3079
|
return next;
|
|
1974
3080
|
}
|
|
1975
|
-
function startAsyncIterable(response, id, iterator) {
|
|
3081
|
+
function startAsyncIterable(response, id, iterator, streamState) {
|
|
1976
3082
|
var buffer = [],
|
|
1977
3083
|
closed = !1,
|
|
1978
3084
|
nextWriteIndex = 0,
|
|
1979
|
-
iterable =
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
3085
|
+
iterable = {};
|
|
3086
|
+
iterable[ASYNC_ITERATOR] = function () {
|
|
3087
|
+
var nextReadIndex = 0;
|
|
3088
|
+
return createIterator(function (arg) {
|
|
3089
|
+
if (void 0 !== arg)
|
|
3090
|
+
throw Error(
|
|
3091
|
+
"Values cannot be passed to next() of AsyncIterables passed to Client Components."
|
|
3092
|
+
);
|
|
3093
|
+
if (nextReadIndex === buffer.length) {
|
|
3094
|
+
if (closed)
|
|
3095
|
+
return new ReactPromise(
|
|
3096
|
+
"fulfilled",
|
|
3097
|
+
{ done: !0, value: void 0 },
|
|
3098
|
+
null
|
|
1985
3099
|
);
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
"fulfilled",
|
|
1990
|
-
{ done: !0, value: void 0 },
|
|
1991
|
-
null,
|
|
1992
|
-
response
|
|
1993
|
-
);
|
|
1994
|
-
buffer[nextReadIndex] = createPendingChunk(response);
|
|
1995
|
-
}
|
|
1996
|
-
return buffer[nextReadIndex++];
|
|
1997
|
-
});
|
|
3100
|
+
buffer[nextReadIndex] = createPendingChunk(response);
|
|
3101
|
+
}
|
|
3102
|
+
return buffer[nextReadIndex++];
|
|
1998
3103
|
});
|
|
3104
|
+
};
|
|
1999
3105
|
resolveStream(
|
|
2000
3106
|
response,
|
|
2001
3107
|
id,
|
|
@@ -2006,8 +3112,7 @@
|
|
|
2006
3112
|
buffer[nextWriteIndex] = new ReactPromise(
|
|
2007
3113
|
"fulfilled",
|
|
2008
3114
|
{ done: !1, value: value },
|
|
2009
|
-
null
|
|
2010
|
-
response
|
|
3115
|
+
null
|
|
2011
3116
|
);
|
|
2012
3117
|
else {
|
|
2013
3118
|
var chunk = buffer[nextWriteIndex],
|
|
@@ -2031,7 +3136,12 @@
|
|
|
2031
3136
|
value,
|
|
2032
3137
|
!1
|
|
2033
3138
|
))
|
|
2034
|
-
: resolveIteratorResultChunk(
|
|
3139
|
+
: resolveIteratorResultChunk(
|
|
3140
|
+
response,
|
|
3141
|
+
buffer[nextWriteIndex],
|
|
3142
|
+
value,
|
|
3143
|
+
!1
|
|
3144
|
+
);
|
|
2035
3145
|
nextWriteIndex++;
|
|
2036
3146
|
},
|
|
2037
3147
|
close: function (value) {
|
|
@@ -2042,9 +3152,15 @@
|
|
|
2042
3152
|
value,
|
|
2043
3153
|
!0
|
|
2044
3154
|
))
|
|
2045
|
-
: resolveIteratorResultChunk(
|
|
3155
|
+
: resolveIteratorResultChunk(
|
|
3156
|
+
response,
|
|
3157
|
+
buffer[nextWriteIndex],
|
|
3158
|
+
value,
|
|
3159
|
+
!0
|
|
3160
|
+
);
|
|
2046
3161
|
for (nextWriteIndex++; nextWriteIndex < buffer.length; )
|
|
2047
3162
|
resolveIteratorResultChunk(
|
|
3163
|
+
response,
|
|
2048
3164
|
buffer[nextWriteIndex++],
|
|
2049
3165
|
'"$undefined"',
|
|
2050
3166
|
!0
|
|
@@ -2058,78 +3174,45 @@
|
|
|
2058
3174
|
nextWriteIndex < buffer.length;
|
|
2059
3175
|
|
|
2060
3176
|
)
|
|
2061
|
-
triggerErrorOnChunk(buffer[nextWriteIndex++], error);
|
|
3177
|
+
triggerErrorOnChunk(response, buffer[nextWriteIndex++], error);
|
|
2062
3178
|
}
|
|
2063
|
-
}
|
|
3179
|
+
},
|
|
3180
|
+
streamState
|
|
2064
3181
|
);
|
|
2065
3182
|
}
|
|
2066
|
-
function stopStream(response, id, row) {
|
|
2067
|
-
(response = response._chunks.get(id)) &&
|
|
2068
|
-
"fulfilled" === response.status &&
|
|
2069
|
-
response.reason.close("" === row ? '"$undefined"' : row);
|
|
2070
|
-
}
|
|
2071
3183
|
function resolveErrorDev(response, errorInfo) {
|
|
2072
3184
|
var name = errorInfo.name,
|
|
2073
3185
|
env = errorInfo.env;
|
|
2074
|
-
|
|
3186
|
+
var error = buildFakeCallStack(
|
|
2075
3187
|
response,
|
|
2076
3188
|
errorInfo.stack,
|
|
2077
3189
|
env,
|
|
3190
|
+
!1,
|
|
2078
3191
|
Error.bind(
|
|
2079
3192
|
null,
|
|
2080
3193
|
errorInfo.message ||
|
|
2081
3194
|
"An error occurred in the Server Components render but no message was provided"
|
|
2082
3195
|
)
|
|
2083
3196
|
);
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
code = response[0];
|
|
2104
|
-
var as = response[1];
|
|
2105
|
-
3 === response.length
|
|
2106
|
-
? model.L(code, as, response[2])
|
|
2107
|
-
: model.L(code, as);
|
|
2108
|
-
break;
|
|
2109
|
-
case "m":
|
|
2110
|
-
"string" === typeof response
|
|
2111
|
-
? model.m(response)
|
|
2112
|
-
: model.m(response[0], response[1]);
|
|
2113
|
-
break;
|
|
2114
|
-
case "X":
|
|
2115
|
-
"string" === typeof response
|
|
2116
|
-
? model.X(response)
|
|
2117
|
-
: model.X(response[0], response[1]);
|
|
2118
|
-
break;
|
|
2119
|
-
case "S":
|
|
2120
|
-
"string" === typeof response
|
|
2121
|
-
? model.S(response)
|
|
2122
|
-
: model.S(
|
|
2123
|
-
response[0],
|
|
2124
|
-
0 === response[1] ? void 0 : response[1],
|
|
2125
|
-
3 === response.length ? response[2] : void 0
|
|
2126
|
-
);
|
|
2127
|
-
break;
|
|
2128
|
-
case "M":
|
|
2129
|
-
"string" === typeof response
|
|
2130
|
-
? model.M(response)
|
|
2131
|
-
: model.M(response[0], response[1]);
|
|
2132
|
-
}
|
|
3197
|
+
var ownerTask = null;
|
|
3198
|
+
null != errorInfo.owner &&
|
|
3199
|
+
((errorInfo = errorInfo.owner.slice(1)),
|
|
3200
|
+
(errorInfo = getOutlinedModel(
|
|
3201
|
+
response,
|
|
3202
|
+
errorInfo,
|
|
3203
|
+
{},
|
|
3204
|
+
"",
|
|
3205
|
+
createModel
|
|
3206
|
+
)),
|
|
3207
|
+
null !== errorInfo &&
|
|
3208
|
+
(ownerTask = initializeFakeTask(response, errorInfo)));
|
|
3209
|
+
null === ownerTask
|
|
3210
|
+
? ((response = getRootTask(response, env)),
|
|
3211
|
+
(error = null != response ? response.run(error) : error()))
|
|
3212
|
+
: (error = ownerTask.run(error));
|
|
3213
|
+
error.name = name;
|
|
3214
|
+
error.environmentName = env;
|
|
3215
|
+
return error;
|
|
2133
3216
|
}
|
|
2134
3217
|
function createFakeFunction(
|
|
2135
3218
|
name,
|
|
@@ -2137,41 +3220,90 @@
|
|
|
2137
3220
|
sourceMap,
|
|
2138
3221
|
line,
|
|
2139
3222
|
col,
|
|
3223
|
+
enclosingLine,
|
|
3224
|
+
enclosingCol,
|
|
2140
3225
|
environmentName
|
|
2141
3226
|
) {
|
|
2142
3227
|
name || (name = "<anonymous>");
|
|
2143
3228
|
var encodedName = JSON.stringify(name);
|
|
2144
|
-
1
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
3229
|
+
1 > enclosingLine ? (enclosingLine = 0) : enclosingLine--;
|
|
3230
|
+
1 > enclosingCol ? (enclosingCol = 0) : enclosingCol--;
|
|
3231
|
+
1 > line ? (line = 0) : line--;
|
|
3232
|
+
1 > col ? (col = 0) : col--;
|
|
3233
|
+
if (
|
|
3234
|
+
line < enclosingLine ||
|
|
3235
|
+
(line === enclosingLine && col < enclosingCol)
|
|
3236
|
+
)
|
|
3237
|
+
enclosingCol = enclosingLine = 0;
|
|
3238
|
+
1 > line
|
|
3239
|
+
? ((line = encodedName.length + 3),
|
|
3240
|
+
(enclosingCol -= line),
|
|
3241
|
+
0 > enclosingCol && (enclosingCol = 0),
|
|
3242
|
+
(col = col - enclosingCol - line - 3),
|
|
3243
|
+
0 > col && (col = 0),
|
|
3244
|
+
(encodedName =
|
|
2155
3245
|
"({" +
|
|
2156
3246
|
encodedName +
|
|
2157
|
-
":
|
|
2158
|
-
" ".repeat(
|
|
2159
|
-
"_
|
|
3247
|
+
":" +
|
|
3248
|
+
" ".repeat(enclosingCol) +
|
|
3249
|
+
"_=>" +
|
|
3250
|
+
" ".repeat(col) +
|
|
3251
|
+
"_()})"))
|
|
3252
|
+
: 1 > enclosingLine
|
|
3253
|
+
? ((enclosingCol -= encodedName.length + 3),
|
|
3254
|
+
0 > enclosingCol && (enclosingCol = 0),
|
|
3255
|
+
(encodedName =
|
|
3256
|
+
"({" +
|
|
3257
|
+
encodedName +
|
|
3258
|
+
":" +
|
|
3259
|
+
" ".repeat(enclosingCol) +
|
|
3260
|
+
"_=>" +
|
|
3261
|
+
"\n".repeat(line - enclosingLine) +
|
|
3262
|
+
" ".repeat(col) +
|
|
3263
|
+
"_()})"))
|
|
3264
|
+
: enclosingLine === line
|
|
3265
|
+
? ((col = col - enclosingCol - 3),
|
|
3266
|
+
0 > col && (col = 0),
|
|
3267
|
+
(encodedName =
|
|
3268
|
+
"\n".repeat(enclosingLine - 1) +
|
|
3269
|
+
"({" +
|
|
3270
|
+
encodedName +
|
|
3271
|
+
":\n" +
|
|
3272
|
+
" ".repeat(enclosingCol) +
|
|
3273
|
+
"_=>" +
|
|
3274
|
+
" ".repeat(col) +
|
|
3275
|
+
"_()})"))
|
|
3276
|
+
: (encodedName =
|
|
3277
|
+
"\n".repeat(enclosingLine - 1) +
|
|
3278
|
+
"({" +
|
|
3279
|
+
encodedName +
|
|
3280
|
+
":\n" +
|
|
3281
|
+
" ".repeat(enclosingCol) +
|
|
3282
|
+
"_=>" +
|
|
3283
|
+
"\n".repeat(line - enclosingLine) +
|
|
3284
|
+
" ".repeat(col) +
|
|
3285
|
+
"_()})");
|
|
3286
|
+
encodedName =
|
|
3287
|
+
1 > enclosingLine
|
|
3288
|
+
? encodedName +
|
|
3289
|
+
"\n/* This module was rendered by a Server Component. Turn on Source Maps to see the server source. */"
|
|
3290
|
+
: "/* This module was rendered by a Server Component. Turn on Source Maps to see the server source. */" +
|
|
3291
|
+
encodedName;
|
|
2160
3292
|
filename.startsWith("/") && (filename = "file://" + filename);
|
|
2161
3293
|
sourceMap
|
|
2162
|
-
? ((
|
|
2163
|
-
"\n//# sourceURL=
|
|
3294
|
+
? ((encodedName +=
|
|
3295
|
+
"\n//# sourceURL=about://React/" +
|
|
2164
3296
|
encodeURIComponent(environmentName) +
|
|
2165
3297
|
"/" +
|
|
2166
3298
|
encodeURI(filename) +
|
|
2167
3299
|
"?" +
|
|
2168
3300
|
fakeFunctionIdx++),
|
|
2169
|
-
(
|
|
2170
|
-
: (
|
|
2171
|
-
?
|
|
2172
|
-
:
|
|
3301
|
+
(encodedName += "\n//# sourceMappingURL=" + sourceMap))
|
|
3302
|
+
: (encodedName = filename
|
|
3303
|
+
? encodedName + ("\n//# sourceURL=" + encodeURI(filename))
|
|
3304
|
+
: encodedName + "\n//# sourceURL=<anonymous>");
|
|
2173
3305
|
try {
|
|
2174
|
-
var fn = (0, eval)(
|
|
3306
|
+
var fn = (0, eval)(encodedName)[name];
|
|
2175
3307
|
} catch (x) {
|
|
2176
3308
|
fn = function (_) {
|
|
2177
3309
|
return _();
|
|
@@ -2179,16 +3311,28 @@
|
|
|
2179
3311
|
}
|
|
2180
3312
|
return fn;
|
|
2181
3313
|
}
|
|
2182
|
-
function buildFakeCallStack(
|
|
3314
|
+
function buildFakeCallStack(
|
|
3315
|
+
response,
|
|
3316
|
+
stack,
|
|
3317
|
+
environmentName,
|
|
3318
|
+
useEnclosingLine,
|
|
3319
|
+
innerCall
|
|
3320
|
+
) {
|
|
2183
3321
|
for (var i = 0; i < stack.length; i++) {
|
|
2184
3322
|
var frame = stack[i],
|
|
2185
|
-
frameKey =
|
|
3323
|
+
frameKey =
|
|
3324
|
+
frame.join("-") +
|
|
3325
|
+
"-" +
|
|
3326
|
+
environmentName +
|
|
3327
|
+
(useEnclosingLine ? "-e" : "-n"),
|
|
2186
3328
|
fn = fakeFunctionCache.get(frameKey);
|
|
2187
3329
|
if (void 0 === fn) {
|
|
2188
3330
|
fn = frame[0];
|
|
2189
3331
|
var filename = frame[1],
|
|
2190
|
-
line = frame[2]
|
|
2191
|
-
|
|
3332
|
+
line = frame[2],
|
|
3333
|
+
col = frame[3],
|
|
3334
|
+
enclosingLine = frame[4];
|
|
3335
|
+
frame = frame[5];
|
|
2192
3336
|
var findSourceMapURL = response._debugFindSourceMapURL;
|
|
2193
3337
|
findSourceMapURL = findSourceMapURL
|
|
2194
3338
|
? findSourceMapURL(filename, environmentName)
|
|
@@ -2198,7 +3342,9 @@
|
|
|
2198
3342
|
filename,
|
|
2199
3343
|
findSourceMapURL,
|
|
2200
3344
|
line,
|
|
2201
|
-
|
|
3345
|
+
col,
|
|
3346
|
+
useEnclosingLine ? line : enclosingLine,
|
|
3347
|
+
useEnclosingLine ? col : frame,
|
|
2202
3348
|
environmentName
|
|
2203
3349
|
);
|
|
2204
3350
|
fakeFunctionCache.set(frameKey, fn);
|
|
@@ -2219,75 +3365,79 @@
|
|
|
2219
3365
|
: rootTask
|
|
2220
3366
|
: null;
|
|
2221
3367
|
}
|
|
2222
|
-
function initializeFakeTask(response, debugInfo
|
|
3368
|
+
function initializeFakeTask(response, debugInfo) {
|
|
2223
3369
|
if (!supportsCreateTask || null == debugInfo.stack) return null;
|
|
2224
|
-
var
|
|
3370
|
+
var cachedEntry = debugInfo.debugTask;
|
|
3371
|
+
if (void 0 !== cachedEntry) return cachedEntry;
|
|
3372
|
+
var useEnclosingLine = void 0 === debugInfo.key,
|
|
3373
|
+
stack = debugInfo.stack,
|
|
2225
3374
|
env =
|
|
2226
3375
|
null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
: initializeFakeTask(response, debugInfo.owner, env)),
|
|
2233
|
-
buildFakeTask(
|
|
2234
|
-
response,
|
|
2235
|
-
debugInfo,
|
|
2236
|
-
stack,
|
|
2237
|
-
'"use ' + childEnvironmentName.toLowerCase() + '"',
|
|
2238
|
-
env
|
|
2239
|
-
)
|
|
2240
|
-
);
|
|
2241
|
-
childEnvironmentName = debugInfo.debugTask;
|
|
2242
|
-
if (void 0 !== childEnvironmentName) return childEnvironmentName;
|
|
2243
|
-
childEnvironmentName =
|
|
3376
|
+
cachedEntry =
|
|
3377
|
+
null == debugInfo.owner || null == debugInfo.owner.env
|
|
3378
|
+
? response._rootEnvironmentName
|
|
3379
|
+
: debugInfo.owner.env;
|
|
3380
|
+
var ownerTask =
|
|
2244
3381
|
null == debugInfo.owner
|
|
2245
3382
|
? null
|
|
2246
|
-
: initializeFakeTask(response, debugInfo.owner
|
|
2247
|
-
|
|
3383
|
+
: initializeFakeTask(response, debugInfo.owner);
|
|
3384
|
+
env =
|
|
3385
|
+
env !== cachedEntry
|
|
3386
|
+
? '"use ' + env.toLowerCase() + '"'
|
|
3387
|
+
: void 0 !== debugInfo.key
|
|
3388
|
+
? "<" + (debugInfo.name || "...") + ">"
|
|
3389
|
+
: void 0 !== debugInfo.name
|
|
3390
|
+
? debugInfo.name || "unknown"
|
|
3391
|
+
: "await " + (debugInfo.awaited.name || "unknown");
|
|
3392
|
+
env = console.createTask.bind(console, env);
|
|
3393
|
+
useEnclosingLine = buildFakeCallStack(
|
|
2248
3394
|
response,
|
|
2249
|
-
childEnvironmentName,
|
|
2250
3395
|
stack,
|
|
2251
|
-
|
|
3396
|
+
cachedEntry,
|
|
3397
|
+
useEnclosingLine,
|
|
2252
3398
|
env
|
|
2253
|
-
)
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
3399
|
+
);
|
|
3400
|
+
null === ownerTask
|
|
3401
|
+
? ((response = getRootTask(response, cachedEntry)),
|
|
3402
|
+
(response =
|
|
3403
|
+
null != response
|
|
3404
|
+
? response.run(useEnclosingLine)
|
|
3405
|
+
: useEnclosingLine()))
|
|
3406
|
+
: (response = ownerTask.run(useEnclosingLine));
|
|
3407
|
+
return (debugInfo.debugTask = response);
|
|
2262
3408
|
}
|
|
2263
3409
|
function fakeJSXCallSite() {
|
|
2264
3410
|
return Error("react-stack-top-frame");
|
|
2265
3411
|
}
|
|
2266
3412
|
function initializeFakeStack(response, debugInfo) {
|
|
2267
|
-
void 0 === debugInfo.debugStack
|
|
2268
|
-
|
|
3413
|
+
if (void 0 === debugInfo.debugStack) {
|
|
3414
|
+
null != debugInfo.stack &&
|
|
2269
3415
|
(debugInfo.debugStack = createFakeJSXCallStackInDEV(
|
|
2270
3416
|
response,
|
|
2271
3417
|
debugInfo.stack,
|
|
2272
3418
|
null == debugInfo.env ? "" : debugInfo.env
|
|
2273
|
-
))
|
|
2274
|
-
|
|
2275
|
-
|
|
3419
|
+
));
|
|
3420
|
+
var owner = debugInfo.owner;
|
|
3421
|
+
null != owner &&
|
|
3422
|
+
(initializeFakeStack(response, owner),
|
|
3423
|
+
void 0 === owner.debugLocation &&
|
|
3424
|
+
null != debugInfo.debugStack &&
|
|
3425
|
+
(owner.debugLocation = debugInfo.debugStack));
|
|
3426
|
+
}
|
|
2276
3427
|
}
|
|
2277
|
-
function
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
(response._debugInfo || (response._debugInfo = [])).push(debugInfo);
|
|
3428
|
+
function initializeDebugInfo(response, debugInfo) {
|
|
3429
|
+
void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
|
|
3430
|
+
if (null == debugInfo.owner && null != response._debugRootOwner) {
|
|
3431
|
+
var _componentInfoOrAsyncInfo = debugInfo;
|
|
3432
|
+
_componentInfoOrAsyncInfo.owner = response._debugRootOwner;
|
|
3433
|
+
_componentInfoOrAsyncInfo.stack = null;
|
|
3434
|
+
_componentInfoOrAsyncInfo.debugStack = response._debugRootStack;
|
|
3435
|
+
_componentInfoOrAsyncInfo.debugTask = response._debugRootTask;
|
|
3436
|
+
} else
|
|
3437
|
+
void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo);
|
|
3438
|
+
"number" === typeof debugInfo.time &&
|
|
3439
|
+
(debugInfo = { time: debugInfo.time + response._timeOrigin });
|
|
3440
|
+
return debugInfo;
|
|
2291
3441
|
}
|
|
2292
3442
|
function getCurrentStackInDEV() {
|
|
2293
3443
|
var owner = currentOwnerInDEV;
|
|
@@ -2344,24 +3494,83 @@
|
|
|
2344
3494
|
}
|
|
2345
3495
|
return JSCompiler_inline_result$jscomp$0;
|
|
2346
3496
|
}
|
|
2347
|
-
function resolveConsoleEntry(response,
|
|
3497
|
+
function resolveConsoleEntry(response, json) {
|
|
2348
3498
|
if (response._replayConsole) {
|
|
2349
|
-
var
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
3499
|
+
var blockedChunk = response._blockedConsole;
|
|
3500
|
+
if (null == blockedChunk)
|
|
3501
|
+
(blockedChunk = createResolvedModelChunk(response, json)),
|
|
3502
|
+
initializeModelChunk(blockedChunk),
|
|
3503
|
+
"fulfilled" === blockedChunk.status
|
|
3504
|
+
? replayConsoleWithCallStackInDEV(response, blockedChunk.value)
|
|
3505
|
+
: (blockedChunk.then(
|
|
3506
|
+
function (v) {
|
|
3507
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
|
3508
|
+
},
|
|
3509
|
+
function () {}
|
|
3510
|
+
),
|
|
3511
|
+
(response._blockedConsole = blockedChunk));
|
|
3512
|
+
else {
|
|
3513
|
+
var _chunk4 = createPendingChunk(response);
|
|
3514
|
+
_chunk4.then(
|
|
3515
|
+
function (v) {
|
|
3516
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
|
3517
|
+
},
|
|
3518
|
+
function () {}
|
|
3519
|
+
);
|
|
3520
|
+
response._blockedConsole = _chunk4;
|
|
3521
|
+
var unblock = function () {
|
|
3522
|
+
response._blockedConsole === _chunk4 &&
|
|
3523
|
+
(response._blockedConsole = null);
|
|
3524
|
+
resolveModelChunk(response, _chunk4, json);
|
|
3525
|
+
};
|
|
3526
|
+
blockedChunk.then(unblock, unblock);
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
function initializeIOInfo(response, ioInfo) {
|
|
3531
|
+
void 0 !== ioInfo.stack &&
|
|
3532
|
+
(initializeFakeTask(response, ioInfo),
|
|
3533
|
+
initializeFakeStack(response, ioInfo));
|
|
3534
|
+
ioInfo.start += response._timeOrigin;
|
|
3535
|
+
ioInfo.end += response._timeOrigin;
|
|
3536
|
+
if (response._replayConsole) {
|
|
3537
|
+
response = response._rootEnvironmentName;
|
|
3538
|
+
var promise = ioInfo.value;
|
|
3539
|
+
if (promise)
|
|
3540
|
+
switch (promise.status) {
|
|
3541
|
+
case "fulfilled":
|
|
3542
|
+
logIOInfo(ioInfo, response, promise.value);
|
|
3543
|
+
break;
|
|
3544
|
+
case "rejected":
|
|
3545
|
+
logIOInfoErrored(ioInfo, response, promise.reason);
|
|
3546
|
+
break;
|
|
3547
|
+
default:
|
|
3548
|
+
promise.then(
|
|
3549
|
+
logIOInfo.bind(null, ioInfo, response),
|
|
3550
|
+
logIOInfoErrored.bind(null, ioInfo, response)
|
|
3551
|
+
);
|
|
3552
|
+
}
|
|
3553
|
+
else logIOInfo(ioInfo, response, void 0);
|
|
2363
3554
|
}
|
|
2364
3555
|
}
|
|
3556
|
+
function resolveIOInfo(response, id, model) {
|
|
3557
|
+
var chunks = response._chunks,
|
|
3558
|
+
chunk = chunks.get(id);
|
|
3559
|
+
chunk
|
|
3560
|
+
? (resolveModelChunk(response, chunk, model),
|
|
3561
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk))
|
|
3562
|
+
: ((chunk = createResolvedModelChunk(response, model)),
|
|
3563
|
+
chunks.set(id, chunk),
|
|
3564
|
+
initializeModelChunk(chunk));
|
|
3565
|
+
"fulfilled" === chunk.status
|
|
3566
|
+
? initializeIOInfo(response, chunk.value)
|
|
3567
|
+
: chunk.then(
|
|
3568
|
+
function (v) {
|
|
3569
|
+
initializeIOInfo(response, v);
|
|
3570
|
+
},
|
|
3571
|
+
function () {}
|
|
3572
|
+
);
|
|
3573
|
+
}
|
|
2365
3574
|
function mergeBuffer(buffer, lastChunk) {
|
|
2366
3575
|
for (
|
|
2367
3576
|
var l = buffer.length, byteLength = lastChunk.length, i = 0;
|
|
@@ -2370,8 +3579,8 @@
|
|
|
2370
3579
|
)
|
|
2371
3580
|
byteLength += buffer[i].byteLength;
|
|
2372
3581
|
byteLength = new Uint8Array(byteLength);
|
|
2373
|
-
for (var
|
|
2374
|
-
var chunk = buffer[
|
|
3582
|
+
for (var _i3 = (i = 0); _i3 < l; _i3++) {
|
|
3583
|
+
var chunk = buffer[_i3];
|
|
2375
3584
|
byteLength.set(chunk, i);
|
|
2376
3585
|
i += chunk.byteLength;
|
|
2377
3586
|
}
|
|
@@ -2384,7 +3593,8 @@
|
|
|
2384
3593
|
buffer,
|
|
2385
3594
|
lastChunk,
|
|
2386
3595
|
constructor,
|
|
2387
|
-
bytesPerElement
|
|
3596
|
+
bytesPerElement,
|
|
3597
|
+
streamState
|
|
2388
3598
|
) {
|
|
2389
3599
|
buffer =
|
|
2390
3600
|
0 === buffer.length && 0 === lastChunk.byteOffset % bytesPerElement
|
|
@@ -2395,52 +3605,684 @@
|
|
|
2395
3605
|
buffer.byteOffset,
|
|
2396
3606
|
buffer.byteLength / bytesPerElement
|
|
2397
3607
|
);
|
|
2398
|
-
resolveBuffer(response, id, constructor);
|
|
3608
|
+
resolveBuffer(response, id, constructor, streamState);
|
|
2399
3609
|
}
|
|
2400
|
-
function
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
3610
|
+
function flushComponentPerformance(
|
|
3611
|
+
response$jscomp$0,
|
|
3612
|
+
root,
|
|
3613
|
+
trackIdx$jscomp$6,
|
|
3614
|
+
trackTime,
|
|
3615
|
+
parentEndTime
|
|
3616
|
+
) {
|
|
3617
|
+
if (!isArrayImpl(root._children)) {
|
|
3618
|
+
var previousResult = root._children,
|
|
3619
|
+
previousEndTime = previousResult.endTime;
|
|
3620
|
+
if (
|
|
3621
|
+
-Infinity < parentEndTime &&
|
|
3622
|
+
parentEndTime < previousEndTime &&
|
|
3623
|
+
null !== previousResult.component
|
|
3624
|
+
) {
|
|
3625
|
+
var componentInfo = previousResult.component,
|
|
3626
|
+
trackIdx = trackIdx$jscomp$6,
|
|
3627
|
+
startTime = parentEndTime;
|
|
3628
|
+
if (supportsUserTiming && 0 <= previousEndTime && 10 > trackIdx) {
|
|
3629
|
+
var color =
|
|
3630
|
+
componentInfo.env === response$jscomp$0._rootEnvironmentName
|
|
3631
|
+
? "primary-light"
|
|
3632
|
+
: "secondary-light",
|
|
3633
|
+
entryName = componentInfo.name + " [deduped]",
|
|
3634
|
+
debugTask = componentInfo.debugTask;
|
|
3635
|
+
debugTask
|
|
3636
|
+
? debugTask.run(
|
|
3637
|
+
console.timeStamp.bind(
|
|
3638
|
+
console,
|
|
3639
|
+
entryName,
|
|
3640
|
+
0 > startTime ? 0 : startTime,
|
|
3641
|
+
previousEndTime,
|
|
3642
|
+
trackNames[trackIdx],
|
|
3643
|
+
"Server Components \u269b",
|
|
3644
|
+
color
|
|
3645
|
+
)
|
|
3646
|
+
)
|
|
3647
|
+
: console.timeStamp(
|
|
3648
|
+
entryName,
|
|
3649
|
+
0 > startTime ? 0 : startTime,
|
|
3650
|
+
previousEndTime,
|
|
3651
|
+
trackNames[trackIdx],
|
|
3652
|
+
"Server Components \u269b",
|
|
3653
|
+
color
|
|
3654
|
+
);
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3657
|
+
previousResult.track = trackIdx$jscomp$6;
|
|
3658
|
+
return previousResult;
|
|
3659
|
+
}
|
|
3660
|
+
var children = root._children,
|
|
3661
|
+
debugInfo = root._debugInfo;
|
|
3662
|
+
if (debugInfo) {
|
|
3663
|
+
for (var startTime$jscomp$0 = 0, i = 0; i < debugInfo.length; i++) {
|
|
3664
|
+
var info = debugInfo[i];
|
|
3665
|
+
"number" === typeof info.time && (startTime$jscomp$0 = info.time);
|
|
3666
|
+
if ("string" === typeof info.name) {
|
|
3667
|
+
startTime$jscomp$0 < trackTime && trackIdx$jscomp$6++;
|
|
3668
|
+
trackTime = startTime$jscomp$0;
|
|
3669
|
+
break;
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
for (var _i4 = debugInfo.length - 1; 0 <= _i4; _i4--) {
|
|
3673
|
+
var _info = debugInfo[_i4];
|
|
3674
|
+
if ("number" === typeof _info.time && _info.time > parentEndTime) {
|
|
3675
|
+
parentEndTime = _info.time;
|
|
3676
|
+
break;
|
|
3677
|
+
}
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
var result = {
|
|
3681
|
+
track: trackIdx$jscomp$6,
|
|
3682
|
+
endTime: -Infinity,
|
|
3683
|
+
component: null
|
|
3684
|
+
};
|
|
3685
|
+
root._children = result;
|
|
3686
|
+
for (
|
|
3687
|
+
var childrenEndTime = -Infinity,
|
|
3688
|
+
childTrackIdx = trackIdx$jscomp$6,
|
|
3689
|
+
childTrackTime = trackTime,
|
|
3690
|
+
_i5 = 0;
|
|
3691
|
+
_i5 < children.length;
|
|
3692
|
+
_i5++
|
|
3693
|
+
) {
|
|
3694
|
+
var childResult = flushComponentPerformance(
|
|
3695
|
+
response$jscomp$0,
|
|
3696
|
+
children[_i5],
|
|
3697
|
+
childTrackIdx,
|
|
3698
|
+
childTrackTime,
|
|
3699
|
+
parentEndTime
|
|
3700
|
+
);
|
|
3701
|
+
null !== childResult.component &&
|
|
3702
|
+
(result.component = childResult.component);
|
|
3703
|
+
childTrackIdx = childResult.track;
|
|
3704
|
+
var childEndTime = childResult.endTime;
|
|
3705
|
+
childEndTime > childTrackTime && (childTrackTime = childEndTime);
|
|
3706
|
+
childEndTime > childrenEndTime && (childrenEndTime = childEndTime);
|
|
3707
|
+
}
|
|
3708
|
+
if (debugInfo)
|
|
3709
|
+
for (
|
|
3710
|
+
var componentEndTime = 0,
|
|
3711
|
+
isLastComponent = !0,
|
|
3712
|
+
endTime = -1,
|
|
3713
|
+
endTimeIdx = -1,
|
|
3714
|
+
_i6 = debugInfo.length - 1;
|
|
3715
|
+
0 <= _i6;
|
|
3716
|
+
_i6--
|
|
3717
|
+
) {
|
|
3718
|
+
var _info2 = debugInfo[_i6];
|
|
3719
|
+
if ("number" === typeof _info2.time) {
|
|
3720
|
+
0 === componentEndTime && (componentEndTime = _info2.time);
|
|
3721
|
+
var time = _info2.time;
|
|
3722
|
+
if (-1 < endTimeIdx)
|
|
3723
|
+
for (var j = endTimeIdx - 1; j > _i6; j--) {
|
|
3724
|
+
var candidateInfo = debugInfo[j];
|
|
3725
|
+
if ("string" === typeof candidateInfo.name) {
|
|
3726
|
+
componentEndTime > childrenEndTime &&
|
|
3727
|
+
(childrenEndTime = componentEndTime);
|
|
3728
|
+
var componentInfo$jscomp$0 = candidateInfo,
|
|
3729
|
+
response = response$jscomp$0,
|
|
3730
|
+
componentInfo$jscomp$1 = componentInfo$jscomp$0,
|
|
3731
|
+
trackIdx$jscomp$0 = trackIdx$jscomp$6,
|
|
3732
|
+
startTime$jscomp$1 = time,
|
|
3733
|
+
componentEndTime$jscomp$0 = componentEndTime,
|
|
3734
|
+
childrenEndTime$jscomp$0 = childrenEndTime;
|
|
3735
|
+
if (
|
|
3736
|
+
isLastComponent &&
|
|
3737
|
+
"rejected" === root.status &&
|
|
3738
|
+
root.reason !== response._closedReason
|
|
3739
|
+
) {
|
|
3740
|
+
var componentInfo$jscomp$2 = componentInfo$jscomp$1,
|
|
3741
|
+
trackIdx$jscomp$1 = trackIdx$jscomp$0,
|
|
3742
|
+
startTime$jscomp$2 = startTime$jscomp$1,
|
|
3743
|
+
childrenEndTime$jscomp$1 = childrenEndTime$jscomp$0,
|
|
3744
|
+
error = root.reason;
|
|
3745
|
+
if (supportsUserTiming) {
|
|
3746
|
+
var env = componentInfo$jscomp$2.env,
|
|
3747
|
+
name = componentInfo$jscomp$2.name,
|
|
3748
|
+
entryName$jscomp$0 =
|
|
3749
|
+
env === response._rootEnvironmentName ||
|
|
3750
|
+
void 0 === env
|
|
3751
|
+
? name
|
|
3752
|
+
: name + " [" + env + "]",
|
|
3753
|
+
properties = [
|
|
3754
|
+
[
|
|
3755
|
+
"Error",
|
|
3756
|
+
"object" === typeof error &&
|
|
3757
|
+
null !== error &&
|
|
3758
|
+
"string" === typeof error.message
|
|
3759
|
+
? String(error.message)
|
|
3760
|
+
: String(error)
|
|
3761
|
+
]
|
|
3762
|
+
];
|
|
3763
|
+
null != componentInfo$jscomp$2.key &&
|
|
3764
|
+
addValueToProperties(
|
|
3765
|
+
"key",
|
|
3766
|
+
componentInfo$jscomp$2.key,
|
|
3767
|
+
properties,
|
|
3768
|
+
0,
|
|
3769
|
+
""
|
|
3770
|
+
);
|
|
3771
|
+
null != componentInfo$jscomp$2.props &&
|
|
3772
|
+
addObjectToProperties(
|
|
3773
|
+
componentInfo$jscomp$2.props,
|
|
3774
|
+
properties,
|
|
3775
|
+
0,
|
|
3776
|
+
""
|
|
3777
|
+
);
|
|
3778
|
+
performance.measure("\u200b" + entryName$jscomp$0, {
|
|
3779
|
+
start: 0 > startTime$jscomp$2 ? 0 : startTime$jscomp$2,
|
|
3780
|
+
end: childrenEndTime$jscomp$1,
|
|
3781
|
+
detail: {
|
|
3782
|
+
devtools: {
|
|
3783
|
+
color: "error",
|
|
3784
|
+
track: trackNames[trackIdx$jscomp$1],
|
|
3785
|
+
trackGroup: "Server Components \u269b",
|
|
3786
|
+
tooltipText: entryName$jscomp$0 + " Errored",
|
|
3787
|
+
properties: properties
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
});
|
|
3791
|
+
}
|
|
3792
|
+
} else {
|
|
3793
|
+
var componentInfo$jscomp$3 = componentInfo$jscomp$1,
|
|
3794
|
+
trackIdx$jscomp$2 = trackIdx$jscomp$0,
|
|
3795
|
+
startTime$jscomp$3 = startTime$jscomp$1,
|
|
3796
|
+
childrenEndTime$jscomp$2 = childrenEndTime$jscomp$0;
|
|
3797
|
+
if (
|
|
3798
|
+
supportsUserTiming &&
|
|
3799
|
+
0 <= childrenEndTime$jscomp$2 &&
|
|
3800
|
+
10 > trackIdx$jscomp$2
|
|
3801
|
+
) {
|
|
3802
|
+
var env$jscomp$0 = componentInfo$jscomp$3.env,
|
|
3803
|
+
name$jscomp$0 = componentInfo$jscomp$3.name,
|
|
3804
|
+
isPrimaryEnv =
|
|
3805
|
+
env$jscomp$0 === response._rootEnvironmentName,
|
|
3806
|
+
selfTime =
|
|
3807
|
+
componentEndTime$jscomp$0 - startTime$jscomp$3,
|
|
3808
|
+
color$jscomp$0 =
|
|
3809
|
+
0.5 > selfTime
|
|
3810
|
+
? isPrimaryEnv
|
|
3811
|
+
? "primary-light"
|
|
3812
|
+
: "secondary-light"
|
|
3813
|
+
: 50 > selfTime
|
|
3814
|
+
? isPrimaryEnv
|
|
3815
|
+
? "primary"
|
|
3816
|
+
: "secondary"
|
|
3817
|
+
: 500 > selfTime
|
|
3818
|
+
? isPrimaryEnv
|
|
3819
|
+
? "primary-dark"
|
|
3820
|
+
: "secondary-dark"
|
|
3821
|
+
: "error",
|
|
3822
|
+
entryName$jscomp$1 =
|
|
3823
|
+
isPrimaryEnv || void 0 === env$jscomp$0
|
|
3824
|
+
? name$jscomp$0
|
|
3825
|
+
: name$jscomp$0 + " [" + env$jscomp$0 + "]",
|
|
3826
|
+
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask;
|
|
3827
|
+
if (debugTask$jscomp$0) {
|
|
3828
|
+
var properties$jscomp$0 = [];
|
|
3829
|
+
null != componentInfo$jscomp$3.key &&
|
|
3830
|
+
addValueToProperties(
|
|
3831
|
+
"key",
|
|
3832
|
+
componentInfo$jscomp$3.key,
|
|
3833
|
+
properties$jscomp$0,
|
|
3834
|
+
0,
|
|
3835
|
+
""
|
|
3836
|
+
);
|
|
3837
|
+
null != componentInfo$jscomp$3.props &&
|
|
3838
|
+
addObjectToProperties(
|
|
3839
|
+
componentInfo$jscomp$3.props,
|
|
3840
|
+
properties$jscomp$0,
|
|
3841
|
+
0,
|
|
3842
|
+
""
|
|
3843
|
+
);
|
|
3844
|
+
debugTask$jscomp$0.run(
|
|
3845
|
+
performance.measure.bind(
|
|
3846
|
+
performance,
|
|
3847
|
+
"\u200b" + entryName$jscomp$1,
|
|
3848
|
+
{
|
|
3849
|
+
start:
|
|
3850
|
+
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3851
|
+
end: childrenEndTime$jscomp$2,
|
|
3852
|
+
detail: {
|
|
3853
|
+
devtools: {
|
|
3854
|
+
color: color$jscomp$0,
|
|
3855
|
+
track: trackNames[trackIdx$jscomp$2],
|
|
3856
|
+
trackGroup: "Server Components \u269b",
|
|
3857
|
+
properties: properties$jscomp$0
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
)
|
|
3862
|
+
);
|
|
3863
|
+
} else
|
|
3864
|
+
console.timeStamp(
|
|
3865
|
+
"\u200b" + entryName$jscomp$1,
|
|
3866
|
+
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3867
|
+
childrenEndTime$jscomp$2,
|
|
3868
|
+
trackNames[trackIdx$jscomp$2],
|
|
3869
|
+
"Server Components \u269b",
|
|
3870
|
+
color$jscomp$0
|
|
3871
|
+
);
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
componentEndTime = time;
|
|
3875
|
+
result.component = componentInfo$jscomp$0;
|
|
3876
|
+
isLastComponent = !1;
|
|
3877
|
+
} else if (
|
|
3878
|
+
candidateInfo.awaited &&
|
|
3879
|
+
null != candidateInfo.awaited.env
|
|
3880
|
+
) {
|
|
3881
|
+
endTime > childrenEndTime && (childrenEndTime = endTime);
|
|
3882
|
+
var asyncInfo = candidateInfo,
|
|
3883
|
+
env$jscomp$1 = response$jscomp$0._rootEnvironmentName,
|
|
3884
|
+
promise = asyncInfo.awaited.value;
|
|
3885
|
+
if (promise) {
|
|
3886
|
+
var thenable = promise;
|
|
3887
|
+
switch (thenable.status) {
|
|
3888
|
+
case "fulfilled":
|
|
3889
|
+
logComponentAwait(
|
|
3890
|
+
asyncInfo,
|
|
3891
|
+
trackIdx$jscomp$6,
|
|
3892
|
+
time,
|
|
3893
|
+
endTime,
|
|
3894
|
+
env$jscomp$1,
|
|
3895
|
+
thenable.value
|
|
3896
|
+
);
|
|
3897
|
+
break;
|
|
3898
|
+
case "rejected":
|
|
3899
|
+
var asyncInfo$jscomp$0 = asyncInfo,
|
|
3900
|
+
trackIdx$jscomp$3 = trackIdx$jscomp$6,
|
|
3901
|
+
startTime$jscomp$4 = time,
|
|
3902
|
+
endTime$jscomp$0 = endTime,
|
|
3903
|
+
rootEnv = env$jscomp$1,
|
|
3904
|
+
error$jscomp$0 = thenable.reason;
|
|
3905
|
+
if (supportsUserTiming && 0 < endTime$jscomp$0) {
|
|
3906
|
+
var description = getIODescription(error$jscomp$0),
|
|
3907
|
+
entryName$jscomp$2 =
|
|
3908
|
+
"await " +
|
|
3909
|
+
getIOShortName(
|
|
3910
|
+
asyncInfo$jscomp$0.awaited,
|
|
3911
|
+
description,
|
|
3912
|
+
asyncInfo$jscomp$0.env,
|
|
3913
|
+
rootEnv
|
|
3914
|
+
),
|
|
3915
|
+
debugTask$jscomp$1 =
|
|
3916
|
+
asyncInfo$jscomp$0.debugTask ||
|
|
3917
|
+
asyncInfo$jscomp$0.awaited.debugTask;
|
|
3918
|
+
if (debugTask$jscomp$1) {
|
|
3919
|
+
var properties$jscomp$1 = [
|
|
3920
|
+
[
|
|
3921
|
+
"Rejected",
|
|
3922
|
+
"object" === typeof error$jscomp$0 &&
|
|
3923
|
+
null !== error$jscomp$0 &&
|
|
3924
|
+
"string" === typeof error$jscomp$0.message
|
|
3925
|
+
? String(error$jscomp$0.message)
|
|
3926
|
+
: String(error$jscomp$0)
|
|
3927
|
+
]
|
|
3928
|
+
],
|
|
3929
|
+
tooltipText =
|
|
3930
|
+
getIOLongName(
|
|
3931
|
+
asyncInfo$jscomp$0.awaited,
|
|
3932
|
+
description,
|
|
3933
|
+
asyncInfo$jscomp$0.env,
|
|
3934
|
+
rootEnv
|
|
3935
|
+
) + " Rejected";
|
|
3936
|
+
debugTask$jscomp$1.run(
|
|
3937
|
+
performance.measure.bind(
|
|
3938
|
+
performance,
|
|
3939
|
+
entryName$jscomp$2,
|
|
3940
|
+
{
|
|
3941
|
+
start:
|
|
3942
|
+
0 > startTime$jscomp$4
|
|
3943
|
+
? 0
|
|
3944
|
+
: startTime$jscomp$4,
|
|
3945
|
+
end: endTime$jscomp$0,
|
|
3946
|
+
detail: {
|
|
3947
|
+
devtools: {
|
|
3948
|
+
color: "error",
|
|
3949
|
+
track: trackNames[trackIdx$jscomp$3],
|
|
3950
|
+
trackGroup: "Server Components \u269b",
|
|
3951
|
+
properties: properties$jscomp$1,
|
|
3952
|
+
tooltipText: tooltipText
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
)
|
|
3957
|
+
);
|
|
3958
|
+
} else
|
|
3959
|
+
console.timeStamp(
|
|
3960
|
+
entryName$jscomp$2,
|
|
3961
|
+
0 > startTime$jscomp$4 ? 0 : startTime$jscomp$4,
|
|
3962
|
+
endTime$jscomp$0,
|
|
3963
|
+
trackNames[trackIdx$jscomp$3],
|
|
3964
|
+
"Server Components \u269b",
|
|
3965
|
+
"error"
|
|
3966
|
+
);
|
|
3967
|
+
}
|
|
3968
|
+
break;
|
|
3969
|
+
default:
|
|
3970
|
+
logComponentAwait(
|
|
3971
|
+
asyncInfo,
|
|
3972
|
+
trackIdx$jscomp$6,
|
|
3973
|
+
time,
|
|
3974
|
+
endTime,
|
|
3975
|
+
env$jscomp$1,
|
|
3976
|
+
void 0
|
|
3977
|
+
);
|
|
3978
|
+
}
|
|
3979
|
+
} else
|
|
3980
|
+
logComponentAwait(
|
|
3981
|
+
asyncInfo,
|
|
3982
|
+
trackIdx$jscomp$6,
|
|
3983
|
+
time,
|
|
3984
|
+
endTime,
|
|
3985
|
+
env$jscomp$1,
|
|
3986
|
+
void 0
|
|
3987
|
+
);
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
else {
|
|
3991
|
+
endTime = time;
|
|
3992
|
+
for (var _j = debugInfo.length - 1; _j > _i6; _j--) {
|
|
3993
|
+
var _candidateInfo = debugInfo[_j];
|
|
3994
|
+
if ("string" === typeof _candidateInfo.name) {
|
|
3995
|
+
componentEndTime > childrenEndTime &&
|
|
3996
|
+
(childrenEndTime = componentEndTime);
|
|
3997
|
+
var _componentInfo = _candidateInfo,
|
|
3998
|
+
_env = response$jscomp$0._rootEnvironmentName,
|
|
3999
|
+
componentInfo$jscomp$4 = _componentInfo,
|
|
4000
|
+
trackIdx$jscomp$4 = trackIdx$jscomp$6,
|
|
4001
|
+
startTime$jscomp$5 = time,
|
|
4002
|
+
childrenEndTime$jscomp$3 = childrenEndTime;
|
|
4003
|
+
if (supportsUserTiming) {
|
|
4004
|
+
var env$jscomp$2 = componentInfo$jscomp$4.env,
|
|
4005
|
+
name$jscomp$1 = componentInfo$jscomp$4.name,
|
|
4006
|
+
entryName$jscomp$3 =
|
|
4007
|
+
env$jscomp$2 === _env || void 0 === env$jscomp$2
|
|
4008
|
+
? name$jscomp$1
|
|
4009
|
+
: name$jscomp$1 + " [" + env$jscomp$2 + "]",
|
|
4010
|
+
properties$jscomp$2 = [
|
|
4011
|
+
[
|
|
4012
|
+
"Aborted",
|
|
4013
|
+
"The stream was aborted before this Component finished rendering."
|
|
4014
|
+
]
|
|
4015
|
+
];
|
|
4016
|
+
null != componentInfo$jscomp$4.key &&
|
|
4017
|
+
addValueToProperties(
|
|
4018
|
+
"key",
|
|
4019
|
+
componentInfo$jscomp$4.key,
|
|
4020
|
+
properties$jscomp$2,
|
|
4021
|
+
0,
|
|
4022
|
+
""
|
|
4023
|
+
);
|
|
4024
|
+
null != componentInfo$jscomp$4.props &&
|
|
4025
|
+
addObjectToProperties(
|
|
4026
|
+
componentInfo$jscomp$4.props,
|
|
4027
|
+
properties$jscomp$2,
|
|
4028
|
+
0,
|
|
4029
|
+
""
|
|
4030
|
+
);
|
|
4031
|
+
performance.measure("\u200b" + entryName$jscomp$3, {
|
|
4032
|
+
start: 0 > startTime$jscomp$5 ? 0 : startTime$jscomp$5,
|
|
4033
|
+
end: childrenEndTime$jscomp$3,
|
|
4034
|
+
detail: {
|
|
4035
|
+
devtools: {
|
|
4036
|
+
color: "warning",
|
|
4037
|
+
track: trackNames[trackIdx$jscomp$4],
|
|
4038
|
+
trackGroup: "Server Components \u269b",
|
|
4039
|
+
tooltipText: entryName$jscomp$3 + " Aborted",
|
|
4040
|
+
properties: properties$jscomp$2
|
|
4041
|
+
}
|
|
4042
|
+
}
|
|
4043
|
+
});
|
|
4044
|
+
}
|
|
4045
|
+
componentEndTime = time;
|
|
4046
|
+
result.component = _componentInfo;
|
|
4047
|
+
isLastComponent = !1;
|
|
4048
|
+
} else if (
|
|
4049
|
+
_candidateInfo.awaited &&
|
|
4050
|
+
null != _candidateInfo.awaited.env
|
|
4051
|
+
) {
|
|
4052
|
+
var _asyncInfo = _candidateInfo,
|
|
4053
|
+
_env2 = response$jscomp$0._rootEnvironmentName;
|
|
4054
|
+
_asyncInfo.awaited.end > endTime &&
|
|
4055
|
+
(endTime = _asyncInfo.awaited.end);
|
|
4056
|
+
endTime > childrenEndTime && (childrenEndTime = endTime);
|
|
4057
|
+
var asyncInfo$jscomp$1 = _asyncInfo,
|
|
4058
|
+
trackIdx$jscomp$5 = trackIdx$jscomp$6,
|
|
4059
|
+
startTime$jscomp$6 = time,
|
|
4060
|
+
endTime$jscomp$1 = endTime,
|
|
4061
|
+
rootEnv$jscomp$0 = _env2;
|
|
4062
|
+
if (supportsUserTiming && 0 < endTime$jscomp$1) {
|
|
4063
|
+
var entryName$jscomp$4 =
|
|
4064
|
+
"await " +
|
|
4065
|
+
getIOShortName(
|
|
4066
|
+
asyncInfo$jscomp$1.awaited,
|
|
4067
|
+
"",
|
|
4068
|
+
asyncInfo$jscomp$1.env,
|
|
4069
|
+
rootEnv$jscomp$0
|
|
4070
|
+
),
|
|
4071
|
+
debugTask$jscomp$2 =
|
|
4072
|
+
asyncInfo$jscomp$1.debugTask ||
|
|
4073
|
+
asyncInfo$jscomp$1.awaited.debugTask;
|
|
4074
|
+
if (debugTask$jscomp$2) {
|
|
4075
|
+
var tooltipText$jscomp$0 =
|
|
4076
|
+
getIOLongName(
|
|
4077
|
+
asyncInfo$jscomp$1.awaited,
|
|
4078
|
+
"",
|
|
4079
|
+
asyncInfo$jscomp$1.env,
|
|
4080
|
+
rootEnv$jscomp$0
|
|
4081
|
+
) + " Aborted";
|
|
4082
|
+
debugTask$jscomp$2.run(
|
|
4083
|
+
performance.measure.bind(
|
|
4084
|
+
performance,
|
|
4085
|
+
entryName$jscomp$4,
|
|
4086
|
+
{
|
|
4087
|
+
start:
|
|
4088
|
+
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
4089
|
+
end: endTime$jscomp$1,
|
|
4090
|
+
detail: {
|
|
4091
|
+
devtools: {
|
|
4092
|
+
color: "warning",
|
|
4093
|
+
track: trackNames[trackIdx$jscomp$5],
|
|
4094
|
+
trackGroup: "Server Components \u269b",
|
|
4095
|
+
properties: [
|
|
4096
|
+
[
|
|
4097
|
+
"Aborted",
|
|
4098
|
+
"The stream was aborted before this Promise resolved."
|
|
4099
|
+
]
|
|
4100
|
+
],
|
|
4101
|
+
tooltipText: tooltipText$jscomp$0
|
|
4102
|
+
}
|
|
4103
|
+
}
|
|
4104
|
+
}
|
|
4105
|
+
)
|
|
4106
|
+
);
|
|
4107
|
+
} else
|
|
4108
|
+
console.timeStamp(
|
|
4109
|
+
entryName$jscomp$4,
|
|
4110
|
+
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
4111
|
+
endTime$jscomp$1,
|
|
4112
|
+
trackNames[trackIdx$jscomp$5],
|
|
4113
|
+
"Server Components \u269b",
|
|
4114
|
+
"warning"
|
|
4115
|
+
);
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
endTime = time;
|
|
4121
|
+
endTimeIdx = _i6;
|
|
4122
|
+
}
|
|
4123
|
+
}
|
|
4124
|
+
result.endTime = childrenEndTime;
|
|
4125
|
+
return result;
|
|
4126
|
+
}
|
|
4127
|
+
function flushInitialRenderPerformance(response) {
|
|
4128
|
+
if (response._replayConsole) {
|
|
4129
|
+
var rootChunk = getChunk(response, 0);
|
|
4130
|
+
isArrayImpl(rootChunk._children) &&
|
|
4131
|
+
(markAllTracksInOrder(),
|
|
4132
|
+
flushComponentPerformance(
|
|
4133
|
+
response,
|
|
4134
|
+
rootChunk,
|
|
4135
|
+
0,
|
|
4136
|
+
-Infinity,
|
|
4137
|
+
-Infinity
|
|
4138
|
+
));
|
|
4139
|
+
}
|
|
4140
|
+
}
|
|
4141
|
+
function processFullBinaryRow(
|
|
4142
|
+
response,
|
|
4143
|
+
streamState,
|
|
4144
|
+
id,
|
|
4145
|
+
tag,
|
|
4146
|
+
buffer,
|
|
4147
|
+
chunk
|
|
4148
|
+
) {
|
|
4149
|
+
switch (tag) {
|
|
4150
|
+
case 65:
|
|
4151
|
+
resolveBuffer(
|
|
4152
|
+
response,
|
|
4153
|
+
id,
|
|
4154
|
+
mergeBuffer(buffer, chunk).buffer,
|
|
4155
|
+
streamState
|
|
4156
|
+
);
|
|
4157
|
+
return;
|
|
2405
4158
|
case 79:
|
|
2406
|
-
resolveTypedArray(
|
|
4159
|
+
resolveTypedArray(
|
|
4160
|
+
response,
|
|
4161
|
+
id,
|
|
4162
|
+
buffer,
|
|
4163
|
+
chunk,
|
|
4164
|
+
Int8Array,
|
|
4165
|
+
1,
|
|
4166
|
+
streamState
|
|
4167
|
+
);
|
|
2407
4168
|
return;
|
|
2408
4169
|
case 111:
|
|
2409
4170
|
resolveBuffer(
|
|
2410
4171
|
response,
|
|
2411
4172
|
id,
|
|
2412
|
-
0 === buffer.length ? chunk : mergeBuffer(buffer, chunk)
|
|
4173
|
+
0 === buffer.length ? chunk : mergeBuffer(buffer, chunk),
|
|
4174
|
+
streamState
|
|
2413
4175
|
);
|
|
2414
4176
|
return;
|
|
2415
4177
|
case 85:
|
|
2416
|
-
resolveTypedArray(
|
|
4178
|
+
resolveTypedArray(
|
|
4179
|
+
response,
|
|
4180
|
+
id,
|
|
4181
|
+
buffer,
|
|
4182
|
+
chunk,
|
|
4183
|
+
Uint8ClampedArray,
|
|
4184
|
+
1,
|
|
4185
|
+
streamState
|
|
4186
|
+
);
|
|
2417
4187
|
return;
|
|
2418
4188
|
case 83:
|
|
2419
|
-
resolveTypedArray(
|
|
4189
|
+
resolveTypedArray(
|
|
4190
|
+
response,
|
|
4191
|
+
id,
|
|
4192
|
+
buffer,
|
|
4193
|
+
chunk,
|
|
4194
|
+
Int16Array,
|
|
4195
|
+
2,
|
|
4196
|
+
streamState
|
|
4197
|
+
);
|
|
2420
4198
|
return;
|
|
2421
4199
|
case 115:
|
|
2422
|
-
resolveTypedArray(
|
|
4200
|
+
resolveTypedArray(
|
|
4201
|
+
response,
|
|
4202
|
+
id,
|
|
4203
|
+
buffer,
|
|
4204
|
+
chunk,
|
|
4205
|
+
Uint16Array,
|
|
4206
|
+
2,
|
|
4207
|
+
streamState
|
|
4208
|
+
);
|
|
2423
4209
|
return;
|
|
2424
4210
|
case 76:
|
|
2425
|
-
resolveTypedArray(
|
|
4211
|
+
resolveTypedArray(
|
|
4212
|
+
response,
|
|
4213
|
+
id,
|
|
4214
|
+
buffer,
|
|
4215
|
+
chunk,
|
|
4216
|
+
Int32Array,
|
|
4217
|
+
4,
|
|
4218
|
+
streamState
|
|
4219
|
+
);
|
|
2426
4220
|
return;
|
|
2427
4221
|
case 108:
|
|
2428
|
-
resolveTypedArray(
|
|
4222
|
+
resolveTypedArray(
|
|
4223
|
+
response,
|
|
4224
|
+
id,
|
|
4225
|
+
buffer,
|
|
4226
|
+
chunk,
|
|
4227
|
+
Uint32Array,
|
|
4228
|
+
4,
|
|
4229
|
+
streamState
|
|
4230
|
+
);
|
|
2429
4231
|
return;
|
|
2430
4232
|
case 71:
|
|
2431
|
-
resolveTypedArray(
|
|
4233
|
+
resolveTypedArray(
|
|
4234
|
+
response,
|
|
4235
|
+
id,
|
|
4236
|
+
buffer,
|
|
4237
|
+
chunk,
|
|
4238
|
+
Float32Array,
|
|
4239
|
+
4,
|
|
4240
|
+
streamState
|
|
4241
|
+
);
|
|
2432
4242
|
return;
|
|
2433
4243
|
case 103:
|
|
2434
|
-
resolveTypedArray(
|
|
4244
|
+
resolveTypedArray(
|
|
4245
|
+
response,
|
|
4246
|
+
id,
|
|
4247
|
+
buffer,
|
|
4248
|
+
chunk,
|
|
4249
|
+
Float64Array,
|
|
4250
|
+
8,
|
|
4251
|
+
streamState
|
|
4252
|
+
);
|
|
2435
4253
|
return;
|
|
2436
4254
|
case 77:
|
|
2437
|
-
resolveTypedArray(
|
|
4255
|
+
resolveTypedArray(
|
|
4256
|
+
response,
|
|
4257
|
+
id,
|
|
4258
|
+
buffer,
|
|
4259
|
+
chunk,
|
|
4260
|
+
BigInt64Array,
|
|
4261
|
+
8,
|
|
4262
|
+
streamState
|
|
4263
|
+
);
|
|
2438
4264
|
return;
|
|
2439
4265
|
case 109:
|
|
2440
|
-
resolveTypedArray(
|
|
4266
|
+
resolveTypedArray(
|
|
4267
|
+
response,
|
|
4268
|
+
id,
|
|
4269
|
+
buffer,
|
|
4270
|
+
chunk,
|
|
4271
|
+
BigUint64Array,
|
|
4272
|
+
8,
|
|
4273
|
+
streamState
|
|
4274
|
+
);
|
|
2441
4275
|
return;
|
|
2442
4276
|
case 86:
|
|
2443
|
-
resolveTypedArray(
|
|
4277
|
+
resolveTypedArray(
|
|
4278
|
+
response,
|
|
4279
|
+
id,
|
|
4280
|
+
buffer,
|
|
4281
|
+
chunk,
|
|
4282
|
+
DataView,
|
|
4283
|
+
1,
|
|
4284
|
+
streamState
|
|
4285
|
+
);
|
|
2444
4286
|
return;
|
|
2445
4287
|
}
|
|
2446
4288
|
for (
|
|
@@ -2450,62 +4292,242 @@
|
|
|
2450
4292
|
)
|
|
2451
4293
|
row += stringDecoder.decode(buffer[i], decoderOptions);
|
|
2452
4294
|
row += stringDecoder.decode(chunk);
|
|
2453
|
-
processFullStringRow(response, id, tag, row);
|
|
4295
|
+
processFullStringRow(response, streamState, id, tag, row);
|
|
2454
4296
|
}
|
|
2455
|
-
function processFullStringRow(response, id, tag, row) {
|
|
4297
|
+
function processFullStringRow(response, streamState, id, tag, row) {
|
|
2456
4298
|
switch (tag) {
|
|
2457
4299
|
case 73:
|
|
2458
|
-
resolveModule(response, id, row);
|
|
4300
|
+
resolveModule(response, id, row, streamState);
|
|
2459
4301
|
break;
|
|
2460
4302
|
case 72:
|
|
2461
|
-
|
|
4303
|
+
id = row[0];
|
|
4304
|
+
streamState = row.slice(1);
|
|
4305
|
+
response = JSON.parse(streamState, response._fromJSON);
|
|
4306
|
+
streamState = ReactDOMSharedInternals.d;
|
|
4307
|
+
switch (id) {
|
|
4308
|
+
case "D":
|
|
4309
|
+
streamState.D(response);
|
|
4310
|
+
break;
|
|
4311
|
+
case "C":
|
|
4312
|
+
"string" === typeof response
|
|
4313
|
+
? streamState.C(response)
|
|
4314
|
+
: streamState.C(response[0], response[1]);
|
|
4315
|
+
break;
|
|
4316
|
+
case "L":
|
|
4317
|
+
id = response[0];
|
|
4318
|
+
row = response[1];
|
|
4319
|
+
3 === response.length
|
|
4320
|
+
? streamState.L(id, row, response[2])
|
|
4321
|
+
: streamState.L(id, row);
|
|
4322
|
+
break;
|
|
4323
|
+
case "m":
|
|
4324
|
+
"string" === typeof response
|
|
4325
|
+
? streamState.m(response)
|
|
4326
|
+
: streamState.m(response[0], response[1]);
|
|
4327
|
+
break;
|
|
4328
|
+
case "X":
|
|
4329
|
+
"string" === typeof response
|
|
4330
|
+
? streamState.X(response)
|
|
4331
|
+
: streamState.X(response[0], response[1]);
|
|
4332
|
+
break;
|
|
4333
|
+
case "S":
|
|
4334
|
+
"string" === typeof response
|
|
4335
|
+
? streamState.S(response)
|
|
4336
|
+
: streamState.S(
|
|
4337
|
+
response[0],
|
|
4338
|
+
0 === response[1] ? void 0 : response[1],
|
|
4339
|
+
3 === response.length ? response[2] : void 0
|
|
4340
|
+
);
|
|
4341
|
+
break;
|
|
4342
|
+
case "M":
|
|
4343
|
+
"string" === typeof response
|
|
4344
|
+
? streamState.M(response)
|
|
4345
|
+
: streamState.M(response[0], response[1]);
|
|
4346
|
+
}
|
|
2462
4347
|
break;
|
|
2463
4348
|
case 69:
|
|
4349
|
+
tag = response._chunks;
|
|
4350
|
+
var chunk = tag.get(id);
|
|
2464
4351
|
row = JSON.parse(row);
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
row = response._chunks;
|
|
2468
|
-
var chunk = row.get(id);
|
|
4352
|
+
var error = resolveErrorDev(response, row);
|
|
4353
|
+
error.digest = row.digest;
|
|
2469
4354
|
chunk
|
|
2470
|
-
?
|
|
2471
|
-
|
|
4355
|
+
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4356
|
+
triggerErrorOnChunk(response, chunk, error))
|
|
4357
|
+
: ((response = new ReactPromise("rejected", null, error)),
|
|
4358
|
+
resolveChunkDebugInfo(streamState, response),
|
|
4359
|
+
tag.set(id, response));
|
|
2472
4360
|
break;
|
|
2473
4361
|
case 84:
|
|
2474
|
-
|
|
4362
|
+
tag = response._chunks;
|
|
4363
|
+
(chunk = tag.get(id)) && "pending" !== chunk.status
|
|
4364
|
+
? chunk.reason.enqueueValue(row)
|
|
4365
|
+
: (chunk && releasePendingChunk(response, chunk),
|
|
4366
|
+
(response = new ReactPromise("fulfilled", row, null)),
|
|
4367
|
+
resolveChunkDebugInfo(streamState, response),
|
|
4368
|
+
tag.set(id, response));
|
|
2475
4369
|
break;
|
|
2476
4370
|
case 78:
|
|
4371
|
+
response._timeOrigin = +row - performance.timeOrigin;
|
|
4372
|
+
break;
|
|
2477
4373
|
case 68:
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
4374
|
+
id = getChunk(response, id);
|
|
4375
|
+
"fulfilled" !== id.status &&
|
|
4376
|
+
"rejected" !== id.status &&
|
|
4377
|
+
"halted" !== id.status &&
|
|
4378
|
+
"blocked" !== id.status &&
|
|
4379
|
+
"resolved_module" !== id.status &&
|
|
4380
|
+
((streamState = id._debugChunk),
|
|
4381
|
+
(tag = createResolvedModelChunk(response, row)),
|
|
4382
|
+
(tag._debugChunk = streamState),
|
|
4383
|
+
(id._debugChunk = tag),
|
|
4384
|
+
initializeDebugChunk(response, id),
|
|
4385
|
+
"blocked" !== tag.status ||
|
|
4386
|
+
(void 0 !== response._debugChannel &&
|
|
4387
|
+
response._debugChannel.hasReadable) ||
|
|
4388
|
+
'"' !== row[0] ||
|
|
4389
|
+
"$" !== row[1] ||
|
|
4390
|
+
((streamState = row.slice(2, row.length - 1).split(":")),
|
|
4391
|
+
(streamState = parseInt(streamState[0], 16)),
|
|
4392
|
+
"pending" === getChunk(response, streamState).status &&
|
|
4393
|
+
(id._debugChunk = null)));
|
|
4394
|
+
break;
|
|
4395
|
+
case 74:
|
|
4396
|
+
resolveIOInfo(response, id, row);
|
|
2488
4397
|
break;
|
|
2489
4398
|
case 87:
|
|
2490
4399
|
resolveConsoleEntry(response, row);
|
|
2491
4400
|
break;
|
|
2492
4401
|
case 82:
|
|
2493
|
-
startReadableStream(response, id, void 0);
|
|
4402
|
+
startReadableStream(response, id, void 0, streamState);
|
|
2494
4403
|
break;
|
|
2495
4404
|
case 114:
|
|
2496
|
-
startReadableStream(response, id, "bytes");
|
|
4405
|
+
startReadableStream(response, id, "bytes", streamState);
|
|
2497
4406
|
break;
|
|
2498
4407
|
case 88:
|
|
2499
|
-
startAsyncIterable(response, id, !1);
|
|
4408
|
+
startAsyncIterable(response, id, !1, streamState);
|
|
2500
4409
|
break;
|
|
2501
4410
|
case 120:
|
|
2502
|
-
startAsyncIterable(response, id, !0);
|
|
4411
|
+
startAsyncIterable(response, id, !0, streamState);
|
|
2503
4412
|
break;
|
|
2504
4413
|
case 67:
|
|
2505
|
-
|
|
4414
|
+
(response = response._chunks.get(id)) &&
|
|
4415
|
+
"fulfilled" === response.status &&
|
|
4416
|
+
response.reason.close("" === row ? '"$undefined"' : row);
|
|
2506
4417
|
break;
|
|
2507
4418
|
default:
|
|
2508
|
-
|
|
4419
|
+
if ("" === row) {
|
|
4420
|
+
if (
|
|
4421
|
+
((streamState = response._chunks),
|
|
4422
|
+
(row = streamState.get(id)) ||
|
|
4423
|
+
streamState.set(id, (row = createPendingChunk(response))),
|
|
4424
|
+
"pending" === row.status || "blocked" === row.status)
|
|
4425
|
+
)
|
|
4426
|
+
releasePendingChunk(response, row),
|
|
4427
|
+
(response = row),
|
|
4428
|
+
(response.status = "halted"),
|
|
4429
|
+
(response.value = null),
|
|
4430
|
+
(response.reason = null);
|
|
4431
|
+
} else
|
|
4432
|
+
(tag = response._chunks),
|
|
4433
|
+
(chunk = tag.get(id))
|
|
4434
|
+
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4435
|
+
resolveModelChunk(response, chunk, row))
|
|
4436
|
+
: ((response = createResolvedModelChunk(response, row)),
|
|
4437
|
+
resolveChunkDebugInfo(streamState, response),
|
|
4438
|
+
tag.set(id, response));
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
function processBinaryChunk(weakResponse, streamState, chunk) {
|
|
4442
|
+
if (void 0 !== weakResponse.weak.deref()) {
|
|
4443
|
+
var response = unwrapWeakResponse(weakResponse),
|
|
4444
|
+
i = 0,
|
|
4445
|
+
rowState = streamState._rowState;
|
|
4446
|
+
weakResponse = streamState._rowID;
|
|
4447
|
+
var rowTag = streamState._rowTag,
|
|
4448
|
+
rowLength = streamState._rowLength,
|
|
4449
|
+
buffer = streamState._buffer,
|
|
4450
|
+
chunkLength = chunk.length;
|
|
4451
|
+
for (
|
|
4452
|
+
incrementChunkDebugInfo(streamState, chunkLength);
|
|
4453
|
+
i < chunkLength;
|
|
4454
|
+
|
|
4455
|
+
) {
|
|
4456
|
+
var lastIdx = -1;
|
|
4457
|
+
switch (rowState) {
|
|
4458
|
+
case 0:
|
|
4459
|
+
lastIdx = chunk[i++];
|
|
4460
|
+
58 === lastIdx
|
|
4461
|
+
? (rowState = 1)
|
|
4462
|
+
: (weakResponse =
|
|
4463
|
+
(weakResponse << 4) |
|
|
4464
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4465
|
+
continue;
|
|
4466
|
+
case 1:
|
|
4467
|
+
rowState = chunk[i];
|
|
4468
|
+
84 === rowState ||
|
|
4469
|
+
65 === rowState ||
|
|
4470
|
+
79 === rowState ||
|
|
4471
|
+
111 === rowState ||
|
|
4472
|
+
85 === rowState ||
|
|
4473
|
+
83 === rowState ||
|
|
4474
|
+
115 === rowState ||
|
|
4475
|
+
76 === rowState ||
|
|
4476
|
+
108 === rowState ||
|
|
4477
|
+
71 === rowState ||
|
|
4478
|
+
103 === rowState ||
|
|
4479
|
+
77 === rowState ||
|
|
4480
|
+
109 === rowState ||
|
|
4481
|
+
86 === rowState
|
|
4482
|
+
? ((rowTag = rowState), (rowState = 2), i++)
|
|
4483
|
+
: (64 < rowState && 91 > rowState) ||
|
|
4484
|
+
35 === rowState ||
|
|
4485
|
+
114 === rowState ||
|
|
4486
|
+
120 === rowState
|
|
4487
|
+
? ((rowTag = rowState), (rowState = 3), i++)
|
|
4488
|
+
: ((rowTag = 0), (rowState = 3));
|
|
4489
|
+
continue;
|
|
4490
|
+
case 2:
|
|
4491
|
+
lastIdx = chunk[i++];
|
|
4492
|
+
44 === lastIdx
|
|
4493
|
+
? (rowState = 4)
|
|
4494
|
+
: (rowLength =
|
|
4495
|
+
(rowLength << 4) |
|
|
4496
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4497
|
+
continue;
|
|
4498
|
+
case 3:
|
|
4499
|
+
lastIdx = chunk.indexOf(10, i);
|
|
4500
|
+
break;
|
|
4501
|
+
case 4:
|
|
4502
|
+
(lastIdx = i + rowLength),
|
|
4503
|
+
lastIdx > chunk.length && (lastIdx = -1);
|
|
4504
|
+
}
|
|
4505
|
+
var offset = chunk.byteOffset + i;
|
|
4506
|
+
if (-1 < lastIdx)
|
|
4507
|
+
(rowLength = new Uint8Array(chunk.buffer, offset, lastIdx - i)),
|
|
4508
|
+
processFullBinaryRow(
|
|
4509
|
+
response,
|
|
4510
|
+
streamState,
|
|
4511
|
+
weakResponse,
|
|
4512
|
+
rowTag,
|
|
4513
|
+
buffer,
|
|
4514
|
+
rowLength
|
|
4515
|
+
),
|
|
4516
|
+
(i = lastIdx),
|
|
4517
|
+
3 === rowState && i++,
|
|
4518
|
+
(rowLength = weakResponse = rowTag = rowState = 0),
|
|
4519
|
+
(buffer.length = 0);
|
|
4520
|
+
else {
|
|
4521
|
+
chunk = new Uint8Array(chunk.buffer, offset, chunk.byteLength - i);
|
|
4522
|
+
buffer.push(chunk);
|
|
4523
|
+
rowLength -= chunk.byteLength;
|
|
4524
|
+
break;
|
|
4525
|
+
}
|
|
4526
|
+
}
|
|
4527
|
+
streamState._rowState = rowState;
|
|
4528
|
+
streamState._rowID = weakResponse;
|
|
4529
|
+
streamState._rowTag = rowTag;
|
|
4530
|
+
streamState._rowLength = rowLength;
|
|
2509
4531
|
}
|
|
2510
4532
|
}
|
|
2511
4533
|
function createFromJSONCallback(response) {
|
|
@@ -2513,110 +4535,232 @@
|
|
|
2513
4535
|
if ("string" === typeof value)
|
|
2514
4536
|
return parseModelString(response, this, key, value);
|
|
2515
4537
|
if ("object" === typeof value && null !== value) {
|
|
2516
|
-
if (value[0] === REACT_ELEMENT_TYPE)
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
"rejected",
|
|
2589
|
-
null,
|
|
2590
|
-
stack.value,
|
|
2591
|
-
response
|
|
2592
|
-
)),
|
|
2593
|
-
(stack = {
|
|
2594
|
-
name: getComponentNameFromType(value.type) || "",
|
|
2595
|
-
owner: value._owner
|
|
2596
|
-
}),
|
|
2597
|
-
(stack.debugStack = value._debugStack),
|
|
2598
|
-
supportsCreateTask && (stack.debugTask = value._debugTask),
|
|
2599
|
-
(key._debugInfo = [stack]),
|
|
2600
|
-
(value = createLazyChunkWrapper(key)))
|
|
2601
|
-
: 0 < stack.deps &&
|
|
2602
|
-
((key = new ReactPromise("blocked", null, null, response)),
|
|
2603
|
-
(stack.value = value),
|
|
2604
|
-
(stack.chunk = key),
|
|
2605
|
-
(value = Object.freeze.bind(Object, value.props)),
|
|
2606
|
-
key.then(value, value),
|
|
2607
|
-
(value = createLazyChunkWrapper(key))))
|
|
2608
|
-
: Object.freeze(value.props);
|
|
2609
|
-
}
|
|
2610
|
-
return value;
|
|
4538
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
4539
|
+
b: {
|
|
4540
|
+
var owner = value[4],
|
|
4541
|
+
stack = value[5];
|
|
4542
|
+
key = value[6];
|
|
4543
|
+
value = {
|
|
4544
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
4545
|
+
type: value[1],
|
|
4546
|
+
key: value[2],
|
|
4547
|
+
props: value[3],
|
|
4548
|
+
_owner: void 0 === owner ? null : owner
|
|
4549
|
+
};
|
|
4550
|
+
Object.defineProperty(value, "ref", {
|
|
4551
|
+
enumerable: !1,
|
|
4552
|
+
get: nullRefGetter
|
|
4553
|
+
});
|
|
4554
|
+
value._store = {};
|
|
4555
|
+
Object.defineProperty(value._store, "validated", {
|
|
4556
|
+
configurable: !1,
|
|
4557
|
+
enumerable: !1,
|
|
4558
|
+
writable: !0,
|
|
4559
|
+
value: key
|
|
4560
|
+
});
|
|
4561
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
4562
|
+
configurable: !1,
|
|
4563
|
+
enumerable: !1,
|
|
4564
|
+
writable: !0,
|
|
4565
|
+
value: null
|
|
4566
|
+
});
|
|
4567
|
+
Object.defineProperty(value, "_debugStack", {
|
|
4568
|
+
configurable: !1,
|
|
4569
|
+
enumerable: !1,
|
|
4570
|
+
writable: !0,
|
|
4571
|
+
value: void 0 === stack ? null : stack
|
|
4572
|
+
});
|
|
4573
|
+
Object.defineProperty(value, "_debugTask", {
|
|
4574
|
+
configurable: !1,
|
|
4575
|
+
enumerable: !1,
|
|
4576
|
+
writable: !0,
|
|
4577
|
+
value: null
|
|
4578
|
+
});
|
|
4579
|
+
if (null !== initializingHandler) {
|
|
4580
|
+
owner = initializingHandler;
|
|
4581
|
+
initializingHandler = owner.parent;
|
|
4582
|
+
if (owner.errored) {
|
|
4583
|
+
stack = new ReactPromise("rejected", null, owner.reason);
|
|
4584
|
+
initializeElement(response, value, null);
|
|
4585
|
+
owner = {
|
|
4586
|
+
name: getComponentNameFromType(value.type) || "",
|
|
4587
|
+
owner: value._owner
|
|
4588
|
+
};
|
|
4589
|
+
owner.debugStack = value._debugStack;
|
|
4590
|
+
supportsCreateTask && (owner.debugTask = value._debugTask);
|
|
4591
|
+
stack._debugInfo = [owner];
|
|
4592
|
+
key = createLazyChunkWrapper(stack, key);
|
|
4593
|
+
break b;
|
|
4594
|
+
}
|
|
4595
|
+
if (0 < owner.deps) {
|
|
4596
|
+
stack = new ReactPromise("blocked", null, null);
|
|
4597
|
+
owner.value = value;
|
|
4598
|
+
owner.chunk = stack;
|
|
4599
|
+
key = createLazyChunkWrapper(stack, key);
|
|
4600
|
+
value = initializeElement.bind(null, response, value, key);
|
|
4601
|
+
stack.then(value, value);
|
|
4602
|
+
break b;
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4605
|
+
initializeElement(response, value, null);
|
|
4606
|
+
key = value;
|
|
4607
|
+
}
|
|
4608
|
+
else key = value;
|
|
4609
|
+
return key;
|
|
2611
4610
|
}
|
|
2612
4611
|
return value;
|
|
2613
4612
|
};
|
|
2614
4613
|
}
|
|
4614
|
+
function close(weakResponse) {
|
|
4615
|
+
reportGlobalError(weakResponse, Error("Connection closed."));
|
|
4616
|
+
}
|
|
4617
|
+
function noServerCall$1() {
|
|
4618
|
+
throw Error(
|
|
4619
|
+
"Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead."
|
|
4620
|
+
);
|
|
4621
|
+
}
|
|
4622
|
+
function createResponseFromOptions(options) {
|
|
4623
|
+
return new ResponseInstance(
|
|
4624
|
+
options.serverConsumerManifest.moduleMap,
|
|
4625
|
+
options.serverConsumerManifest.serverModuleMap,
|
|
4626
|
+
options.serverConsumerManifest.moduleLoading,
|
|
4627
|
+
noServerCall$1,
|
|
4628
|
+
options.encodeFormAction,
|
|
4629
|
+
"string" === typeof options.nonce ? options.nonce : void 0,
|
|
4630
|
+
options && options.temporaryReferences
|
|
4631
|
+
? options.temporaryReferences
|
|
4632
|
+
: void 0,
|
|
4633
|
+
options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
|
|
4634
|
+
options ? !0 === options.replayConsoleLogs : !1,
|
|
4635
|
+
options && options.environmentName ? options.environmentName : void 0,
|
|
4636
|
+
options && void 0 !== options.debugChannel
|
|
4637
|
+
? {
|
|
4638
|
+
hasReadable: void 0 !== options.debugChannel.readable,
|
|
4639
|
+
callback: null
|
|
4640
|
+
}
|
|
4641
|
+
: void 0
|
|
4642
|
+
)._weakResponse;
|
|
4643
|
+
}
|
|
4644
|
+
function startReadingFromStream$1(response, stream, onDone, debugValue) {
|
|
4645
|
+
function progress(_ref) {
|
|
4646
|
+
var value = _ref.value;
|
|
4647
|
+
if (_ref.done) return onDone();
|
|
4648
|
+
processBinaryChunk(response, streamState, value);
|
|
4649
|
+
return reader.read().then(progress).catch(error);
|
|
4650
|
+
}
|
|
4651
|
+
function error(e) {
|
|
4652
|
+
reportGlobalError(response, e);
|
|
4653
|
+
}
|
|
4654
|
+
var streamState = createStreamState(response, debugValue),
|
|
4655
|
+
reader = stream.getReader();
|
|
4656
|
+
reader.read().then(progress).catch(error);
|
|
4657
|
+
}
|
|
2615
4658
|
function noServerCall() {
|
|
2616
4659
|
throw Error(
|
|
2617
4660
|
"Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead."
|
|
2618
4661
|
);
|
|
2619
4662
|
}
|
|
4663
|
+
function startReadingFromStream(response$jscomp$0, stream, onEnd) {
|
|
4664
|
+
var streamState = createStreamState(response$jscomp$0, stream);
|
|
4665
|
+
stream.on("data", function (chunk) {
|
|
4666
|
+
if ("string" === typeof chunk) {
|
|
4667
|
+
if (void 0 !== response$jscomp$0.weak.deref()) {
|
|
4668
|
+
var response = unwrapWeakResponse(response$jscomp$0),
|
|
4669
|
+
i = 0,
|
|
4670
|
+
rowState = streamState._rowState,
|
|
4671
|
+
rowID = streamState._rowID,
|
|
4672
|
+
rowTag = streamState._rowTag,
|
|
4673
|
+
rowLength = streamState._rowLength,
|
|
4674
|
+
buffer = streamState._buffer,
|
|
4675
|
+
chunkLength = chunk.length;
|
|
4676
|
+
for (
|
|
4677
|
+
incrementChunkDebugInfo(streamState, chunkLength);
|
|
4678
|
+
i < chunkLength;
|
|
4679
|
+
|
|
4680
|
+
) {
|
|
4681
|
+
var lastIdx = -1;
|
|
4682
|
+
switch (rowState) {
|
|
4683
|
+
case 0:
|
|
4684
|
+
lastIdx = chunk.charCodeAt(i++);
|
|
4685
|
+
58 === lastIdx
|
|
4686
|
+
? (rowState = 1)
|
|
4687
|
+
: (rowID =
|
|
4688
|
+
(rowID << 4) |
|
|
4689
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4690
|
+
continue;
|
|
4691
|
+
case 1:
|
|
4692
|
+
rowState = chunk.charCodeAt(i);
|
|
4693
|
+
84 === rowState ||
|
|
4694
|
+
65 === rowState ||
|
|
4695
|
+
79 === rowState ||
|
|
4696
|
+
111 === rowState ||
|
|
4697
|
+
85 === rowState ||
|
|
4698
|
+
83 === rowState ||
|
|
4699
|
+
115 === rowState ||
|
|
4700
|
+
76 === rowState ||
|
|
4701
|
+
108 === rowState ||
|
|
4702
|
+
71 === rowState ||
|
|
4703
|
+
103 === rowState ||
|
|
4704
|
+
77 === rowState ||
|
|
4705
|
+
109 === rowState ||
|
|
4706
|
+
86 === rowState
|
|
4707
|
+
? ((rowTag = rowState), (rowState = 2), i++)
|
|
4708
|
+
: (64 < rowState && 91 > rowState) ||
|
|
4709
|
+
114 === rowState ||
|
|
4710
|
+
120 === rowState
|
|
4711
|
+
? ((rowTag = rowState), (rowState = 3), i++)
|
|
4712
|
+
: ((rowTag = 0), (rowState = 3));
|
|
4713
|
+
continue;
|
|
4714
|
+
case 2:
|
|
4715
|
+
lastIdx = chunk.charCodeAt(i++);
|
|
4716
|
+
44 === lastIdx
|
|
4717
|
+
? (rowState = 4)
|
|
4718
|
+
: (rowLength =
|
|
4719
|
+
(rowLength << 4) |
|
|
4720
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4721
|
+
continue;
|
|
4722
|
+
case 3:
|
|
4723
|
+
lastIdx = chunk.indexOf("\n", i);
|
|
4724
|
+
break;
|
|
4725
|
+
case 4:
|
|
4726
|
+
if (84 !== rowTag)
|
|
4727
|
+
throw Error(
|
|
4728
|
+
"Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams."
|
|
4729
|
+
);
|
|
4730
|
+
if (rowLength < chunk.length || chunk.length > 3 * rowLength)
|
|
4731
|
+
throw Error(
|
|
4732
|
+
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
4733
|
+
);
|
|
4734
|
+
lastIdx = chunk.length;
|
|
4735
|
+
}
|
|
4736
|
+
if (-1 < lastIdx) {
|
|
4737
|
+
if (0 < buffer.length)
|
|
4738
|
+
throw Error(
|
|
4739
|
+
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
4740
|
+
);
|
|
4741
|
+
i = chunk.slice(i, lastIdx);
|
|
4742
|
+
processFullStringRow(response, streamState, rowID, rowTag, i);
|
|
4743
|
+
i = lastIdx;
|
|
4744
|
+
3 === rowState && i++;
|
|
4745
|
+
rowLength = rowID = rowTag = rowState = 0;
|
|
4746
|
+
buffer.length = 0;
|
|
4747
|
+
} else if (chunk.length !== i)
|
|
4748
|
+
throw Error(
|
|
4749
|
+
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
4750
|
+
);
|
|
4751
|
+
}
|
|
4752
|
+
streamState._rowState = rowState;
|
|
4753
|
+
streamState._rowID = rowID;
|
|
4754
|
+
streamState._rowTag = rowTag;
|
|
4755
|
+
streamState._rowLength = rowLength;
|
|
4756
|
+
}
|
|
4757
|
+
} else processBinaryChunk(response$jscomp$0, streamState, chunk);
|
|
4758
|
+
});
|
|
4759
|
+
stream.on("error", function (error) {
|
|
4760
|
+
reportGlobalError(response$jscomp$0, error);
|
|
4761
|
+
});
|
|
4762
|
+
stream.on("end", onEnd);
|
|
4763
|
+
}
|
|
2620
4764
|
var util = require("util"),
|
|
2621
4765
|
ReactDOM = require("react-dom"),
|
|
2622
4766
|
React = require("react"),
|
|
@@ -2629,9 +4773,8 @@
|
|
|
2629
4773
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
2630
4774
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
2631
4775
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
2632
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
2633
|
-
|
|
2634
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
4776
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
4777
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
2635
4778
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
2636
4779
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
2637
4780
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -2655,7 +4798,17 @@
|
|
|
2655
4798
|
v8FrameRegExp =
|
|
2656
4799
|
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
|
2657
4800
|
jscSpiderMonkeyFrameRegExp = /(?:(.*)@)?(.*):(\d+):(\d+)/,
|
|
4801
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
2658
4802
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
4803
|
+
supportsUserTiming =
|
|
4804
|
+
"undefined" !== typeof console &&
|
|
4805
|
+
"function" === typeof console.timeStamp &&
|
|
4806
|
+
"undefined" !== typeof performance &&
|
|
4807
|
+
"function" === typeof performance.measure,
|
|
4808
|
+
trackNames =
|
|
4809
|
+
"Primary Parallel Parallel\u200b Parallel\u200b\u200b Parallel\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b".split(
|
|
4810
|
+
" "
|
|
4811
|
+
),
|
|
2659
4812
|
prefix,
|
|
2660
4813
|
suffix;
|
|
2661
4814
|
new ("function" === typeof WeakMap ? WeakMap : Map)();
|
|
@@ -2666,6 +4819,7 @@
|
|
|
2666
4819
|
ReactSharedInteralsServer;
|
|
2667
4820
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
2668
4821
|
ReactPromise.prototype.then = function (resolve, reject) {
|
|
4822
|
+
var _this = this;
|
|
2669
4823
|
switch (this.status) {
|
|
2670
4824
|
case "resolved_model":
|
|
2671
4825
|
initializeModelChunk(this);
|
|
@@ -2673,24 +4827,46 @@
|
|
|
2673
4827
|
case "resolved_module":
|
|
2674
4828
|
initializeModuleChunk(this);
|
|
2675
4829
|
}
|
|
4830
|
+
var resolveCallback = resolve,
|
|
4831
|
+
rejectCallback = reject,
|
|
4832
|
+
wrapperPromise = new Promise(function (res, rej) {
|
|
4833
|
+
resolve = function (value) {
|
|
4834
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
4835
|
+
res(value);
|
|
4836
|
+
};
|
|
4837
|
+
reject = function (reason) {
|
|
4838
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
4839
|
+
rej(reason);
|
|
4840
|
+
};
|
|
4841
|
+
});
|
|
4842
|
+
wrapperPromise.then(resolveCallback, rejectCallback);
|
|
2676
4843
|
switch (this.status) {
|
|
2677
4844
|
case "fulfilled":
|
|
2678
|
-
resolve(this.value);
|
|
4845
|
+
"function" === typeof resolve && resolve(this.value);
|
|
2679
4846
|
break;
|
|
2680
4847
|
case "pending":
|
|
2681
4848
|
case "blocked":
|
|
2682
|
-
resolve &&
|
|
4849
|
+
"function" === typeof resolve &&
|
|
2683
4850
|
(null === this.value && (this.value = []),
|
|
2684
4851
|
this.value.push(resolve));
|
|
2685
|
-
reject &&
|
|
4852
|
+
"function" === typeof reject &&
|
|
2686
4853
|
(null === this.reason && (this.reason = []),
|
|
2687
4854
|
this.reason.push(reject));
|
|
2688
4855
|
break;
|
|
4856
|
+
case "halted":
|
|
4857
|
+
break;
|
|
2689
4858
|
default:
|
|
2690
|
-
reject && reject(this.reason);
|
|
4859
|
+
"function" === typeof reject && reject(this.reason);
|
|
2691
4860
|
}
|
|
2692
4861
|
};
|
|
2693
|
-
var
|
|
4862
|
+
var debugChannelRegistry =
|
|
4863
|
+
"function" === typeof FinalizationRegistry
|
|
4864
|
+
? new FinalizationRegistry(closeDebugChannel)
|
|
4865
|
+
: null,
|
|
4866
|
+
initializingHandler = null,
|
|
4867
|
+
initializingChunk = null,
|
|
4868
|
+
mightHaveStaticConstructor = /\bclass\b.*\bstatic\b/,
|
|
4869
|
+
MIN_CHUNK_SIZE = 65536,
|
|
2694
4870
|
supportsCreateTask = !!console.createTask,
|
|
2695
4871
|
fakeFunctionCache = new Map(),
|
|
2696
4872
|
fakeFunctionIdx = 0,
|
|
@@ -2700,6 +4876,7 @@
|
|
|
2700
4876
|
response,
|
|
2701
4877
|
stack,
|
|
2702
4878
|
environmentName,
|
|
4879
|
+
!1,
|
|
2703
4880
|
fakeJSXCallSite
|
|
2704
4881
|
)();
|
|
2705
4882
|
}
|
|
@@ -2710,14 +4887,12 @@
|
|
|
2710
4887
|
),
|
|
2711
4888
|
currentOwnerInDEV = null,
|
|
2712
4889
|
replayConsoleWithCallStack = {
|
|
2713
|
-
react_stack_bottom_frame: function (
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
args
|
|
2720
|
-
) {
|
|
4890
|
+
react_stack_bottom_frame: function (response, payload) {
|
|
4891
|
+
var methodName = payload[0],
|
|
4892
|
+
stackTrace = payload[1],
|
|
4893
|
+
owner = payload[2],
|
|
4894
|
+
env = payload[3];
|
|
4895
|
+
payload = payload.slice(4);
|
|
2721
4896
|
var prevStack = ReactSharedInternals.getCurrentStack;
|
|
2722
4897
|
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
|
2723
4898
|
currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
|
|
@@ -2731,13 +4906,13 @@
|
|
|
2731
4906
|
case "table":
|
|
2732
4907
|
var JSCompiler_inline_result = bind$1.apply(
|
|
2733
4908
|
console[methodName],
|
|
2734
|
-
[console].concat(
|
|
4909
|
+
[console].concat(payload)
|
|
2735
4910
|
);
|
|
2736
4911
|
break a;
|
|
2737
4912
|
case "assert":
|
|
2738
4913
|
offset = 1;
|
|
2739
4914
|
}
|
|
2740
|
-
var newArgs =
|
|
4915
|
+
var newArgs = payload.slice(0);
|
|
2741
4916
|
"string" === typeof newArgs[offset]
|
|
2742
4917
|
? newArgs.splice(
|
|
2743
4918
|
offset,
|
|
@@ -2750,7 +4925,7 @@
|
|
|
2750
4925
|
: newArgs.splice(
|
|
2751
4926
|
offset,
|
|
2752
4927
|
0,
|
|
2753
|
-
"\u001b[0m\u001b[7m%c%s\u001b[0m%c
|
|
4928
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c",
|
|
2754
4929
|
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
2755
4930
|
" " + env + " ",
|
|
2756
4931
|
""
|
|
@@ -2765,10 +4940,11 @@
|
|
|
2765
4940
|
response,
|
|
2766
4941
|
stackTrace,
|
|
2767
4942
|
env,
|
|
4943
|
+
!1,
|
|
2768
4944
|
JSCompiler_inline_result
|
|
2769
4945
|
);
|
|
2770
4946
|
if (null != owner) {
|
|
2771
|
-
var task = initializeFakeTask(response, owner
|
|
4947
|
+
var task = initializeFakeTask(response, owner);
|
|
2772
4948
|
initializeFakeStack(response, owner);
|
|
2773
4949
|
if (null !== task) {
|
|
2774
4950
|
task.run(callStack);
|
|
@@ -2787,6 +4963,39 @@
|
|
|
2787
4963
|
replayConsoleWithCallStack.react_stack_bottom_frame.bind(
|
|
2788
4964
|
replayConsoleWithCallStack
|
|
2789
4965
|
);
|
|
4966
|
+
exports.createFromFetch = function (promiseForResponse, options) {
|
|
4967
|
+
var response = createResponseFromOptions(options);
|
|
4968
|
+
promiseForResponse.then(
|
|
4969
|
+
function (r) {
|
|
4970
|
+
if (
|
|
4971
|
+
options &&
|
|
4972
|
+
options.debugChannel &&
|
|
4973
|
+
options.debugChannel.readable
|
|
4974
|
+
) {
|
|
4975
|
+
var streamDoneCount = 0,
|
|
4976
|
+
handleDone = function () {
|
|
4977
|
+
2 === ++streamDoneCount && close(response);
|
|
4978
|
+
};
|
|
4979
|
+
startReadingFromStream$1(
|
|
4980
|
+
response,
|
|
4981
|
+
options.debugChannel.readable,
|
|
4982
|
+
handleDone
|
|
4983
|
+
);
|
|
4984
|
+
startReadingFromStream$1(response, r.body, handleDone, r);
|
|
4985
|
+
} else
|
|
4986
|
+
startReadingFromStream$1(
|
|
4987
|
+
response,
|
|
4988
|
+
r.body,
|
|
4989
|
+
close.bind(null, response),
|
|
4990
|
+
r
|
|
4991
|
+
);
|
|
4992
|
+
},
|
|
4993
|
+
function (e) {
|
|
4994
|
+
reportGlobalError(response, e);
|
|
4995
|
+
}
|
|
4996
|
+
);
|
|
4997
|
+
return getRoot(response);
|
|
4998
|
+
};
|
|
2790
4999
|
exports.createFromNodeStream = function (
|
|
2791
5000
|
stream,
|
|
2792
5001
|
serverConsumerManifest,
|
|
@@ -2802,192 +5011,80 @@
|
|
|
2802
5011
|
void 0,
|
|
2803
5012
|
options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
|
|
2804
5013
|
options ? !0 === options.replayConsoleLogs : !1,
|
|
2805
|
-
options && options.environmentName ? options.environmentName : void 0
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
var i = 0,
|
|
2811
|
-
rowState = response._rowState,
|
|
2812
|
-
rowID = response._rowID,
|
|
2813
|
-
rowTag = response._rowTag,
|
|
2814
|
-
rowLength = response._rowLength,
|
|
2815
|
-
buffer = response._buffer,
|
|
2816
|
-
chunkLength = chunk.length;
|
|
2817
|
-
i < chunkLength;
|
|
2818
|
-
|
|
2819
|
-
) {
|
|
2820
|
-
var lastIdx = -1;
|
|
2821
|
-
switch (rowState) {
|
|
2822
|
-
case 0:
|
|
2823
|
-
lastIdx = chunk.charCodeAt(i++);
|
|
2824
|
-
58 === lastIdx
|
|
2825
|
-
? (rowState = 1)
|
|
2826
|
-
: (rowID =
|
|
2827
|
-
(rowID << 4) |
|
|
2828
|
-
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
2829
|
-
continue;
|
|
2830
|
-
case 1:
|
|
2831
|
-
rowState = chunk.charCodeAt(i);
|
|
2832
|
-
84 === rowState ||
|
|
2833
|
-
65 === rowState ||
|
|
2834
|
-
79 === rowState ||
|
|
2835
|
-
111 === rowState ||
|
|
2836
|
-
85 === rowState ||
|
|
2837
|
-
83 === rowState ||
|
|
2838
|
-
115 === rowState ||
|
|
2839
|
-
76 === rowState ||
|
|
2840
|
-
108 === rowState ||
|
|
2841
|
-
71 === rowState ||
|
|
2842
|
-
103 === rowState ||
|
|
2843
|
-
77 === rowState ||
|
|
2844
|
-
109 === rowState ||
|
|
2845
|
-
86 === rowState
|
|
2846
|
-
? ((rowTag = rowState), (rowState = 2), i++)
|
|
2847
|
-
: (64 < rowState && 91 > rowState) ||
|
|
2848
|
-
114 === rowState ||
|
|
2849
|
-
120 === rowState
|
|
2850
|
-
? ((rowTag = rowState), (rowState = 3), i++)
|
|
2851
|
-
: ((rowTag = 0), (rowState = 3));
|
|
2852
|
-
continue;
|
|
2853
|
-
case 2:
|
|
2854
|
-
lastIdx = chunk.charCodeAt(i++);
|
|
2855
|
-
44 === lastIdx
|
|
2856
|
-
? (rowState = 4)
|
|
2857
|
-
: (rowLength =
|
|
2858
|
-
(rowLength << 4) |
|
|
2859
|
-
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
2860
|
-
continue;
|
|
2861
|
-
case 3:
|
|
2862
|
-
lastIdx = chunk.indexOf("\n", i);
|
|
2863
|
-
break;
|
|
2864
|
-
case 4:
|
|
2865
|
-
if (84 !== rowTag)
|
|
2866
|
-
throw Error(
|
|
2867
|
-
"Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams."
|
|
2868
|
-
);
|
|
2869
|
-
if (rowLength < chunk.length || chunk.length > 3 * rowLength)
|
|
2870
|
-
throw Error(
|
|
2871
|
-
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
2872
|
-
);
|
|
2873
|
-
lastIdx = chunk.length;
|
|
2874
|
-
}
|
|
2875
|
-
if (-1 < lastIdx) {
|
|
2876
|
-
if (0 < buffer.length)
|
|
2877
|
-
throw Error(
|
|
2878
|
-
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
2879
|
-
);
|
|
2880
|
-
i = chunk.slice(i, lastIdx);
|
|
2881
|
-
processFullStringRow(response, rowID, rowTag, i);
|
|
2882
|
-
i = lastIdx;
|
|
2883
|
-
3 === rowState && i++;
|
|
2884
|
-
rowLength = rowID = rowTag = rowState = 0;
|
|
2885
|
-
buffer.length = 0;
|
|
2886
|
-
} else if (chunk.length !== i)
|
|
2887
|
-
throw Error(
|
|
2888
|
-
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
2889
|
-
);
|
|
2890
|
-
}
|
|
2891
|
-
response._rowState = rowState;
|
|
2892
|
-
response._rowID = rowID;
|
|
2893
|
-
response._rowTag = rowTag;
|
|
2894
|
-
response._rowLength = rowLength;
|
|
2895
|
-
} else {
|
|
2896
|
-
rowLength = 0;
|
|
2897
|
-
chunkLength = response._rowState;
|
|
2898
|
-
rowID = response._rowID;
|
|
2899
|
-
i = response._rowTag;
|
|
2900
|
-
rowState = response._rowLength;
|
|
2901
|
-
buffer = response._buffer;
|
|
2902
|
-
for (rowTag = chunk.length; rowLength < rowTag; ) {
|
|
2903
|
-
lastIdx = -1;
|
|
2904
|
-
switch (chunkLength) {
|
|
2905
|
-
case 0:
|
|
2906
|
-
lastIdx = chunk[rowLength++];
|
|
2907
|
-
58 === lastIdx
|
|
2908
|
-
? (chunkLength = 1)
|
|
2909
|
-
: (rowID =
|
|
2910
|
-
(rowID << 4) |
|
|
2911
|
-
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
2912
|
-
continue;
|
|
2913
|
-
case 1:
|
|
2914
|
-
chunkLength = chunk[rowLength];
|
|
2915
|
-
84 === chunkLength ||
|
|
2916
|
-
65 === chunkLength ||
|
|
2917
|
-
79 === chunkLength ||
|
|
2918
|
-
111 === chunkLength ||
|
|
2919
|
-
85 === chunkLength ||
|
|
2920
|
-
83 === chunkLength ||
|
|
2921
|
-
115 === chunkLength ||
|
|
2922
|
-
76 === chunkLength ||
|
|
2923
|
-
108 === chunkLength ||
|
|
2924
|
-
71 === chunkLength ||
|
|
2925
|
-
103 === chunkLength ||
|
|
2926
|
-
77 === chunkLength ||
|
|
2927
|
-
109 === chunkLength ||
|
|
2928
|
-
86 === chunkLength
|
|
2929
|
-
? ((i = chunkLength), (chunkLength = 2), rowLength++)
|
|
2930
|
-
: (64 < chunkLength && 91 > chunkLength) ||
|
|
2931
|
-
35 === chunkLength ||
|
|
2932
|
-
114 === chunkLength ||
|
|
2933
|
-
120 === chunkLength
|
|
2934
|
-
? ((i = chunkLength), (chunkLength = 3), rowLength++)
|
|
2935
|
-
: ((i = 0), (chunkLength = 3));
|
|
2936
|
-
continue;
|
|
2937
|
-
case 2:
|
|
2938
|
-
lastIdx = chunk[rowLength++];
|
|
2939
|
-
44 === lastIdx
|
|
2940
|
-
? (chunkLength = 4)
|
|
2941
|
-
: (rowState =
|
|
2942
|
-
(rowState << 4) |
|
|
2943
|
-
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
2944
|
-
continue;
|
|
2945
|
-
case 3:
|
|
2946
|
-
lastIdx = chunk.indexOf(10, rowLength);
|
|
2947
|
-
break;
|
|
2948
|
-
case 4:
|
|
2949
|
-
(lastIdx = rowLength + rowState),
|
|
2950
|
-
lastIdx > chunk.length && (lastIdx = -1);
|
|
2951
|
-
}
|
|
2952
|
-
var offset = chunk.byteOffset + rowLength;
|
|
2953
|
-
if (-1 < lastIdx)
|
|
2954
|
-
(rowState = new Uint8Array(
|
|
2955
|
-
chunk.buffer,
|
|
2956
|
-
offset,
|
|
2957
|
-
lastIdx - rowLength
|
|
2958
|
-
)),
|
|
2959
|
-
processFullBinaryRow(response, rowID, i, buffer, rowState),
|
|
2960
|
-
(rowLength = lastIdx),
|
|
2961
|
-
3 === chunkLength && rowLength++,
|
|
2962
|
-
(rowState = rowID = i = chunkLength = 0),
|
|
2963
|
-
(buffer.length = 0);
|
|
2964
|
-
else {
|
|
2965
|
-
chunk = new Uint8Array(
|
|
2966
|
-
chunk.buffer,
|
|
2967
|
-
offset,
|
|
2968
|
-
chunk.byteLength - rowLength
|
|
2969
|
-
);
|
|
2970
|
-
buffer.push(chunk);
|
|
2971
|
-
rowState -= chunk.byteLength;
|
|
2972
|
-
break;
|
|
5014
|
+
options && options.environmentName ? options.environmentName : void 0,
|
|
5015
|
+
options && void 0 !== options.debugChannel
|
|
5016
|
+
? {
|
|
5017
|
+
hasReadable: void 0 !== options.debugChannel.readable,
|
|
5018
|
+
callback: null
|
|
2973
5019
|
}
|
|
5020
|
+
: void 0
|
|
5021
|
+
)._weakResponse;
|
|
5022
|
+
if (options && options.debugChannel) {
|
|
5023
|
+
var streamEndedCount = 0;
|
|
5024
|
+
serverConsumerManifest = function () {
|
|
5025
|
+
2 === ++streamEndedCount && close(response);
|
|
5026
|
+
};
|
|
5027
|
+
startReadingFromStream(
|
|
5028
|
+
response,
|
|
5029
|
+
options.debugChannel,
|
|
5030
|
+
serverConsumerManifest
|
|
5031
|
+
);
|
|
5032
|
+
startReadingFromStream(response, stream, serverConsumerManifest);
|
|
5033
|
+
} else
|
|
5034
|
+
startReadingFromStream(response, stream, close.bind(null, response));
|
|
5035
|
+
return getRoot(response);
|
|
5036
|
+
};
|
|
5037
|
+
exports.createFromReadableStream = function (stream, options) {
|
|
5038
|
+
var response = createResponseFromOptions(options);
|
|
5039
|
+
if (options && options.debugChannel && options.debugChannel.readable) {
|
|
5040
|
+
var streamDoneCount = 0,
|
|
5041
|
+
handleDone = function () {
|
|
5042
|
+
2 === ++streamDoneCount && close(response);
|
|
5043
|
+
};
|
|
5044
|
+
startReadingFromStream$1(
|
|
5045
|
+
response,
|
|
5046
|
+
options.debugChannel.readable,
|
|
5047
|
+
handleDone
|
|
5048
|
+
);
|
|
5049
|
+
startReadingFromStream$1(response, stream, handleDone, stream);
|
|
5050
|
+
} else
|
|
5051
|
+
startReadingFromStream$1(
|
|
5052
|
+
response,
|
|
5053
|
+
stream,
|
|
5054
|
+
close.bind(null, response),
|
|
5055
|
+
stream
|
|
5056
|
+
);
|
|
5057
|
+
return getRoot(response);
|
|
5058
|
+
};
|
|
5059
|
+
exports.createServerReference = function (id) {
|
|
5060
|
+
return createServerReference$1(id, noServerCall$1);
|
|
5061
|
+
};
|
|
5062
|
+
exports.createTemporaryReferenceSet = function () {
|
|
5063
|
+
return new Map();
|
|
5064
|
+
};
|
|
5065
|
+
exports.encodeReply = function (value, options) {
|
|
5066
|
+
return new Promise(function (resolve, reject) {
|
|
5067
|
+
var abort = processReply(
|
|
5068
|
+
value,
|
|
5069
|
+
"",
|
|
5070
|
+
options && options.temporaryReferences
|
|
5071
|
+
? options.temporaryReferences
|
|
5072
|
+
: void 0,
|
|
5073
|
+
resolve,
|
|
5074
|
+
reject
|
|
5075
|
+
);
|
|
5076
|
+
if (options && options.signal) {
|
|
5077
|
+
var signal = options.signal;
|
|
5078
|
+
if (signal.aborted) abort(signal.reason);
|
|
5079
|
+
else {
|
|
5080
|
+
var listener = function () {
|
|
5081
|
+
abort(signal.reason);
|
|
5082
|
+
signal.removeEventListener("abort", listener);
|
|
5083
|
+
};
|
|
5084
|
+
signal.addEventListener("abort", listener);
|
|
2974
5085
|
}
|
|
2975
|
-
response._rowState = chunkLength;
|
|
2976
|
-
response._rowID = rowID;
|
|
2977
|
-
response._rowTag = i;
|
|
2978
|
-
response._rowLength = rowState;
|
|
2979
5086
|
}
|
|
2980
5087
|
});
|
|
2981
|
-
stream.on("error", function (error) {
|
|
2982
|
-
reportGlobalError(response, error);
|
|
2983
|
-
});
|
|
2984
|
-
stream.on("end", function () {
|
|
2985
|
-
reportGlobalError(response, Error("Connection closed."));
|
|
2986
|
-
});
|
|
2987
|
-
return getChunk(response, 0);
|
|
2988
|
-
};
|
|
2989
|
-
exports.createServerReference = function (id) {
|
|
2990
|
-
return createServerReference$1(id, noServerCall);
|
|
2991
5088
|
};
|
|
2992
5089
|
exports.registerServerReference = function (
|
|
2993
5090
|
reference,
|