react-markup 0.0.0-experimental-7283a213-20241206 → 0.0.0-experimental-79ddf5b5-20241210
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.
|
@@ -179,14 +179,6 @@
|
|
|
179
179
|
suspendedThenable$1 = null;
|
|
180
180
|
return thenable;
|
|
181
181
|
}
|
|
182
|
-
function prepareToUseHooksForComponent(
|
|
183
|
-
prevThenableState,
|
|
184
|
-
componentDebugInfo
|
|
185
|
-
) {
|
|
186
|
-
thenableIndexCounter$1 = 0;
|
|
187
|
-
thenableState$1 = prevThenableState;
|
|
188
|
-
currentComponentDebugInfo = componentDebugInfo;
|
|
189
|
-
}
|
|
190
182
|
function getThenableStateAfterSuspending$1() {
|
|
191
183
|
var state = thenableState$1 || [];
|
|
192
184
|
state._componentDebugInfo = currentComponentDebugInfo;
|
|
@@ -831,8 +823,10 @@
|
|
|
831
823
|
? defaultFilterStackFrame
|
|
832
824
|
: filterStackFrame;
|
|
833
825
|
this.didWarnForKey = null;
|
|
834
|
-
type =
|
|
835
|
-
|
|
826
|
+
type = this.timeOrigin = performance.now();
|
|
827
|
+
emitTimeOriginChunk(this, type + performance.timeOrigin);
|
|
828
|
+
model = createTask(this, model, null, !1, abortSet, null, null, null);
|
|
829
|
+
pingedTasks.push(model);
|
|
836
830
|
}
|
|
837
831
|
function noop$3() {}
|
|
838
832
|
function serializeThenable(request, task, thenable) {
|
|
@@ -856,21 +850,7 @@
|
|
|
856
850
|
newTask.id
|
|
857
851
|
);
|
|
858
852
|
case "rejected":
|
|
859
|
-
|
|
860
|
-
if (
|
|
861
|
-
"object" === typeof task &&
|
|
862
|
-
null !== task &&
|
|
863
|
-
task.$$typeof === REACT_POSTPONE_TYPE
|
|
864
|
-
)
|
|
865
|
-
logPostpone$1(request, task.message, newTask),
|
|
866
|
-
emitPostponeChunk(request, newTask.id, task);
|
|
867
|
-
else {
|
|
868
|
-
var digest = logRecoverableError$1(request, task, null);
|
|
869
|
-
emitErrorChunk(request, newTask.id, digest, task);
|
|
870
|
-
}
|
|
871
|
-
newTask.status = ERRORED$2;
|
|
872
|
-
request.abortableTasks.delete(newTask);
|
|
873
|
-
return newTask.id;
|
|
853
|
+
return erroredTask$1(request, newTask, thenable.reason), newTask.id;
|
|
874
854
|
default:
|
|
875
855
|
if (request.status === ABORTING$1)
|
|
876
856
|
return (
|
|
@@ -902,24 +882,11 @@
|
|
|
902
882
|
pingTask$1(request, newTask);
|
|
903
883
|
},
|
|
904
884
|
function (reason) {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
"object" === typeof reason &&
|
|
908
|
-
null !== reason &&
|
|
909
|
-
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
910
|
-
)
|
|
911
|
-
logPostpone$1(request, reason.message, newTask),
|
|
912
|
-
emitPostponeChunk(request, newTask.id, reason);
|
|
913
|
-
else {
|
|
914
|
-
var _digest = logRecoverableError$1(request, reason, newTask);
|
|
915
|
-
emitErrorChunk(request, newTask.id, _digest, reason);
|
|
916
|
-
}
|
|
917
|
-
newTask.status = ERRORED$2;
|
|
918
|
-
request.abortableTasks.delete(newTask);
|
|
919
|
-
enqueueFlush(request);
|
|
920
|
-
}
|
|
885
|
+
newTask.status === PENDING$3 &&
|
|
886
|
+
(erroredTask$1(request, newTask, reason), enqueueFlush(request));
|
|
921
887
|
}
|
|
922
888
|
);
|
|
889
|
+
newTask.timed = !0;
|
|
923
890
|
return newTask.id;
|
|
924
891
|
}
|
|
925
892
|
function serializeReadableStream(request, task, stream) {
|
|
@@ -943,38 +910,22 @@
|
|
|
943
910
|
}
|
|
944
911
|
}
|
|
945
912
|
function error(reason) {
|
|
946
|
-
|
|
947
|
-
aborted = !0
|
|
948
|
-
request.abortListeners.delete(abortStream)
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
reader.cancel(reason).then(error, error);
|
|
953
|
-
}
|
|
913
|
+
aborted ||
|
|
914
|
+
((aborted = !0),
|
|
915
|
+
request.abortListeners.delete(abortStream),
|
|
916
|
+
erroredTask$1(request, streamTask, reason),
|
|
917
|
+
enqueueFlush(request),
|
|
918
|
+
reader.cancel(reason).then(error, error));
|
|
954
919
|
}
|
|
955
920
|
function abortStream(reason) {
|
|
956
|
-
|
|
957
|
-
aborted = !0
|
|
958
|
-
request.abortListeners.delete(abortStream)
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
)
|
|
964
|
-
logPostpone$1(request, reason.message, streamTask),
|
|
965
|
-
request.type === PRERENDER
|
|
966
|
-
? request.pendingChunks--
|
|
967
|
-
: (emitPostponeChunk(request, streamTask.id, reason),
|
|
968
|
-
enqueueFlush(request));
|
|
969
|
-
else {
|
|
970
|
-
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
971
|
-
request.type === PRERENDER
|
|
972
|
-
? request.pendingChunks--
|
|
973
|
-
: (emitErrorChunk(request, streamTask.id, digest, reason),
|
|
974
|
-
enqueueFlush(request));
|
|
975
|
-
}
|
|
976
|
-
reader.cancel(reason).then(error, error);
|
|
977
|
-
}
|
|
921
|
+
aborted ||
|
|
922
|
+
((aborted = !0),
|
|
923
|
+
request.abortListeners.delete(abortStream),
|
|
924
|
+
request.type === PRERENDER
|
|
925
|
+
? request.pendingChunks--
|
|
926
|
+
: (erroredTask$1(request, streamTask, reason),
|
|
927
|
+
enqueueFlush(request)),
|
|
928
|
+
reader.cancel(reason).then(error, error));
|
|
978
929
|
}
|
|
979
930
|
var supportsBYOB = stream.supportsBYOB;
|
|
980
931
|
if (void 0 === supportsBYOB)
|
|
@@ -1038,40 +989,24 @@
|
|
|
1038
989
|
}
|
|
1039
990
|
}
|
|
1040
991
|
function error(reason) {
|
|
1041
|
-
|
|
1042
|
-
aborted = !0
|
|
1043
|
-
request.abortListeners.delete(abortIterable)
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
enqueueFlush(request);
|
|
992
|
+
aborted ||
|
|
993
|
+
((aborted = !0),
|
|
994
|
+
request.abortListeners.delete(abortIterable),
|
|
995
|
+
erroredTask$1(request, streamTask, reason),
|
|
996
|
+
enqueueFlush(request),
|
|
1047
997
|
"function" === typeof iterator.throw &&
|
|
1048
|
-
iterator.throw(reason).then(error, error);
|
|
1049
|
-
}
|
|
998
|
+
iterator.throw(reason).then(error, error));
|
|
1050
999
|
}
|
|
1051
1000
|
function abortIterable(reason) {
|
|
1052
|
-
|
|
1053
|
-
aborted = !0
|
|
1054
|
-
request.abortListeners.delete(abortIterable)
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
)
|
|
1060
|
-
logPostpone$1(request, reason.message, streamTask),
|
|
1061
|
-
request.type === PRERENDER
|
|
1062
|
-
? request.pendingChunks--
|
|
1063
|
-
: (emitPostponeChunk(request, streamTask.id, reason),
|
|
1064
|
-
enqueueFlush(request));
|
|
1065
|
-
else {
|
|
1066
|
-
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
1067
|
-
request.type === PRERENDER
|
|
1068
|
-
? request.pendingChunks--
|
|
1069
|
-
: (emitErrorChunk(request, streamTask.id, digest, reason),
|
|
1070
|
-
enqueueFlush(request));
|
|
1071
|
-
}
|
|
1001
|
+
aborted ||
|
|
1002
|
+
((aborted = !0),
|
|
1003
|
+
request.abortListeners.delete(abortIterable),
|
|
1004
|
+
request.type === PRERENDER
|
|
1005
|
+
? request.pendingChunks--
|
|
1006
|
+
: (erroredTask$1(request, streamTask, reason),
|
|
1007
|
+
enqueueFlush(request)),
|
|
1072
1008
|
"function" === typeof iterator.throw &&
|
|
1073
|
-
iterator.throw(reason).then(error, error);
|
|
1074
|
-
}
|
|
1009
|
+
iterator.throw(reason).then(error, error));
|
|
1075
1010
|
}
|
|
1076
1011
|
var isIterator = iterable === iterator,
|
|
1077
1012
|
streamTask = createTask(
|
|
@@ -1148,6 +1083,71 @@
|
|
|
1148
1083
|
currentOwner = null;
|
|
1149
1084
|
}
|
|
1150
1085
|
}
|
|
1086
|
+
function processServerComponentReturnValue(
|
|
1087
|
+
request,
|
|
1088
|
+
task,
|
|
1089
|
+
Component,
|
|
1090
|
+
result
|
|
1091
|
+
) {
|
|
1092
|
+
if (
|
|
1093
|
+
"object" !== typeof result ||
|
|
1094
|
+
null === result ||
|
|
1095
|
+
isClientReference(result)
|
|
1096
|
+
)
|
|
1097
|
+
return result;
|
|
1098
|
+
if ("function" === typeof result.then)
|
|
1099
|
+
return (
|
|
1100
|
+
result.then(function (resolvedValue) {
|
|
1101
|
+
"object" === typeof resolvedValue &&
|
|
1102
|
+
null !== resolvedValue &&
|
|
1103
|
+
resolvedValue.$$typeof === REACT_ELEMENT_TYPE &&
|
|
1104
|
+
(resolvedValue._store.validated = 1);
|
|
1105
|
+
}, voidHandler),
|
|
1106
|
+
"fulfilled" === result.status
|
|
1107
|
+
? result.value
|
|
1108
|
+
: createLazyWrapperAroundWakeable(result)
|
|
1109
|
+
);
|
|
1110
|
+
result.$$typeof === REACT_ELEMENT_TYPE && (result._store.validated = 1);
|
|
1111
|
+
var iteratorFn = getIteratorFn(result);
|
|
1112
|
+
if (iteratorFn) {
|
|
1113
|
+
var multiShot = _defineProperty({}, Symbol.iterator, function () {
|
|
1114
|
+
var iterator = iteratorFn.call(result);
|
|
1115
|
+
iterator !== result ||
|
|
1116
|
+
("[object GeneratorFunction]" ===
|
|
1117
|
+
Object.prototype.toString.call(Component) &&
|
|
1118
|
+
"[object Generator]" ===
|
|
1119
|
+
Object.prototype.toString.call(result)) ||
|
|
1120
|
+
callWithDebugContextInDEV(request, task, function () {
|
|
1121
|
+
console.error(
|
|
1122
|
+
"Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
|
|
1123
|
+
);
|
|
1124
|
+
});
|
|
1125
|
+
return iterator;
|
|
1126
|
+
});
|
|
1127
|
+
multiShot._debugInfo = result._debugInfo;
|
|
1128
|
+
return multiShot;
|
|
1129
|
+
}
|
|
1130
|
+
return "function" !== typeof result[ASYNC_ITERATOR] ||
|
|
1131
|
+
("function" === typeof ReadableStream &&
|
|
1132
|
+
result instanceof ReadableStream)
|
|
1133
|
+
? result
|
|
1134
|
+
: ((multiShot = _defineProperty({}, ASYNC_ITERATOR, function () {
|
|
1135
|
+
var iterator = result[ASYNC_ITERATOR]();
|
|
1136
|
+
iterator !== result ||
|
|
1137
|
+
("[object AsyncGeneratorFunction]" ===
|
|
1138
|
+
Object.prototype.toString.call(Component) &&
|
|
1139
|
+
"[object AsyncGenerator]" ===
|
|
1140
|
+
Object.prototype.toString.call(result)) ||
|
|
1141
|
+
callWithDebugContextInDEV(request, task, function () {
|
|
1142
|
+
console.error(
|
|
1143
|
+
"Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
|
|
1144
|
+
);
|
|
1145
|
+
});
|
|
1146
|
+
return iterator;
|
|
1147
|
+
})),
|
|
1148
|
+
(multiShot._debugInfo = result._debugInfo),
|
|
1149
|
+
multiShot);
|
|
1150
|
+
}
|
|
1151
1151
|
function renderFunctionComponent$1(
|
|
1152
1152
|
request,
|
|
1153
1153
|
task,
|
|
@@ -1180,12 +1180,16 @@
|
|
|
1180
1180
|
componentDebugInfo.debugStack = task.debugStack;
|
|
1181
1181
|
componentDebugInfo.debugTask = task.debugTask;
|
|
1182
1182
|
outlineComponentInfo(request, componentDebugInfo);
|
|
1183
|
+
task.timed = !0;
|
|
1184
|
+
emitTimingChunk(request, componentDebugID, performance.now());
|
|
1183
1185
|
emitDebugChunk(request, componentDebugID, componentDebugInfo);
|
|
1184
1186
|
task.environmentName = componentEnv;
|
|
1185
1187
|
2 === validated &&
|
|
1186
1188
|
warnForMissingKey$1(request, key, componentDebugInfo, task.debugTask);
|
|
1187
1189
|
}
|
|
1188
|
-
|
|
1190
|
+
thenableIndexCounter$1 = 0;
|
|
1191
|
+
thenableState$1 = prevThenableState;
|
|
1192
|
+
currentComponentDebugInfo = componentDebugInfo;
|
|
1189
1193
|
props = task.debugTask
|
|
1190
1194
|
? task.debugTask.run(
|
|
1191
1195
|
callComponentInDEV$1.bind(
|
|
@@ -1205,74 +1209,21 @@
|
|
|
1205
1209
|
props.then(voidHandler, voidHandler),
|
|
1206
1210
|
null)
|
|
1207
1211
|
);
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
"object" === typeof resolvedValue &&
|
|
1217
|
-
null !== resolvedValue &&
|
|
1218
|
-
resolvedValue.$$typeof === REACT_ELEMENT_TYPE &&
|
|
1219
|
-
(resolvedValue._store.validated = 1);
|
|
1220
|
-
}, voidHandler);
|
|
1221
|
-
if ("fulfilled" === validated.status) return validated.value;
|
|
1222
|
-
props = createLazyWrapperAroundWakeable(props);
|
|
1223
|
-
}
|
|
1224
|
-
var iteratorFn = getIteratorFn(props);
|
|
1225
|
-
if (iteratorFn) {
|
|
1226
|
-
var iterableChild = props;
|
|
1227
|
-
props = _defineProperty({}, Symbol.iterator, function () {
|
|
1228
|
-
var iterator = iteratorFn.call(iterableChild);
|
|
1229
|
-
iterator !== iterableChild ||
|
|
1230
|
-
("[object GeneratorFunction]" ===
|
|
1231
|
-
Object.prototype.toString.call(Component) &&
|
|
1232
|
-
"[object Generator]" ===
|
|
1233
|
-
Object.prototype.toString.call(iterableChild)) ||
|
|
1234
|
-
callWithDebugContextInDEV(request, task, function () {
|
|
1235
|
-
console.error(
|
|
1236
|
-
"Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
|
|
1237
|
-
);
|
|
1238
|
-
});
|
|
1239
|
-
return iterator;
|
|
1240
|
-
});
|
|
1241
|
-
props._debugInfo = iterableChild._debugInfo;
|
|
1242
|
-
} else if (
|
|
1243
|
-
"function" !== typeof props[ASYNC_ITERATOR] ||
|
|
1244
|
-
("function" === typeof ReadableStream &&
|
|
1245
|
-
props instanceof ReadableStream)
|
|
1246
|
-
)
|
|
1247
|
-
props.$$typeof === REACT_ELEMENT_TYPE && (props._store.validated = 1);
|
|
1248
|
-
else {
|
|
1249
|
-
var _iterableChild = props;
|
|
1250
|
-
props = _defineProperty({}, ASYNC_ITERATOR, function () {
|
|
1251
|
-
var iterator = _iterableChild[ASYNC_ITERATOR]();
|
|
1252
|
-
iterator !== _iterableChild ||
|
|
1253
|
-
("[object AsyncGeneratorFunction]" ===
|
|
1254
|
-
Object.prototype.toString.call(Component) &&
|
|
1255
|
-
"[object AsyncGenerator]" ===
|
|
1256
|
-
Object.prototype.toString.call(_iterableChild)) ||
|
|
1257
|
-
callWithDebugContextInDEV(request, task, function () {
|
|
1258
|
-
console.error(
|
|
1259
|
-
"Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
|
|
1260
|
-
);
|
|
1261
|
-
});
|
|
1262
|
-
return iterator;
|
|
1263
|
-
});
|
|
1264
|
-
props._debugInfo = _iterableChild._debugInfo;
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
validated = task.keyPath;
|
|
1268
|
-
prevThenableState = task.implicitSlot;
|
|
1212
|
+
props = processServerComponentReturnValue(
|
|
1213
|
+
request,
|
|
1214
|
+
task,
|
|
1215
|
+
Component,
|
|
1216
|
+
props
|
|
1217
|
+
);
|
|
1218
|
+
Component = task.keyPath;
|
|
1219
|
+
validated = task.implicitSlot;
|
|
1269
1220
|
null !== key
|
|
1270
|
-
? (task.keyPath = null ===
|
|
1271
|
-
: null ===
|
|
1272
|
-
|
|
1273
|
-
task.keyPath =
|
|
1274
|
-
task.implicitSlot =
|
|
1275
|
-
return
|
|
1221
|
+
? (task.keyPath = null === Component ? key : Component + "," + key)
|
|
1222
|
+
: null === Component && (task.implicitSlot = !0);
|
|
1223
|
+
request = renderModelDestructive(request, task, emptyRoot, "", props);
|
|
1224
|
+
task.keyPath = Component;
|
|
1225
|
+
task.implicitSlot = validated;
|
|
1226
|
+
return request;
|
|
1276
1227
|
}
|
|
1277
1228
|
function warnForMissingKey$1(request, key, componentDebugInfo, debugTask) {
|
|
1278
1229
|
function logKeyError() {
|
|
@@ -1474,6 +1425,7 @@
|
|
|
1474
1425
|
return task;
|
|
1475
1426
|
}
|
|
1476
1427
|
function pingTask$1(request, task) {
|
|
1428
|
+
task.timed = !0;
|
|
1477
1429
|
var pingedTasks = request.pingedTasks;
|
|
1478
1430
|
pingedTasks.push(task);
|
|
1479
1431
|
1 === pingedTasks.length &&
|
|
@@ -1532,7 +1484,8 @@
|
|
|
1532
1484
|
});
|
|
1533
1485
|
return renderModel(request, task, parent, parentPropertyName, value);
|
|
1534
1486
|
},
|
|
1535
|
-
thenableState: null
|
|
1487
|
+
thenableState: null,
|
|
1488
|
+
timed: !1
|
|
1536
1489
|
};
|
|
1537
1490
|
task.environmentName = request.environmentName();
|
|
1538
1491
|
task.debugOwner = debugOwner;
|
|
@@ -1616,38 +1569,21 @@
|
|
|
1616
1569
|
);
|
|
1617
1570
|
}
|
|
1618
1571
|
function error(reason) {
|
|
1619
|
-
|
|
1620
|
-
aborted = !0
|
|
1621
|
-
request.abortListeners.delete(abortBlob)
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
reader.cancel(reason).then(error, error);
|
|
1626
|
-
}
|
|
1572
|
+
aborted ||
|
|
1573
|
+
((aborted = !0),
|
|
1574
|
+
request.abortListeners.delete(abortBlob),
|
|
1575
|
+
erroredTask$1(request, newTask, reason),
|
|
1576
|
+
enqueueFlush(request),
|
|
1577
|
+
reader.cancel(reason).then(error, error));
|
|
1627
1578
|
}
|
|
1628
1579
|
function abortBlob(reason) {
|
|
1629
|
-
|
|
1630
|
-
aborted = !0
|
|
1631
|
-
request.abortListeners.delete(abortBlob)
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
)
|
|
1637
|
-
logPostpone$1(request, reason.message, newTask),
|
|
1638
|
-
request.type === PRERENDER
|
|
1639
|
-
? request.pendingChunks--
|
|
1640
|
-
: (emitPostponeChunk(request, newTask.id, reason),
|
|
1641
|
-
enqueueFlush(request));
|
|
1642
|
-
else {
|
|
1643
|
-
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1644
|
-
request.type === PRERENDER
|
|
1645
|
-
? request.pendingChunks--
|
|
1646
|
-
: (emitErrorChunk(request, newTask.id, digest, reason),
|
|
1647
|
-
enqueueFlush(request));
|
|
1648
|
-
}
|
|
1649
|
-
reader.cancel(reason).then(error, error);
|
|
1650
|
-
}
|
|
1580
|
+
aborted ||
|
|
1581
|
+
((aborted = !0),
|
|
1582
|
+
request.abortListeners.delete(abortBlob),
|
|
1583
|
+
request.type === PRERENDER
|
|
1584
|
+
? request.pendingChunks--
|
|
1585
|
+
: (erroredTask$1(request, newTask, reason), enqueueFlush(request)),
|
|
1586
|
+
reader.cancel(reason).then(error, error));
|
|
1651
1587
|
}
|
|
1652
1588
|
var model = [blob.type],
|
|
1653
1589
|
newTask = createTask(
|
|
@@ -1695,45 +1631,42 @@
|
|
|
1695
1631
|
thrownValue === SuspenseException$1
|
|
1696
1632
|
? getSuspendedThenable$1()
|
|
1697
1633
|
: thrownValue;
|
|
1698
|
-
if (
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
(value = request.nextChunkId++),
|
|
1724
|
-
logPostpone$1(request, key.message, task),
|
|
1725
|
-
emitPostponeChunk(request, value, key),
|
|
1726
|
-
(task.keyPath = prevKeyPath),
|
|
1727
|
-
(task.implicitSlot = prevImplicitSlot),
|
|
1728
|
-
parent ? "$L" + value.toString(16) : serializeByValueID$1(value)
|
|
1729
|
-
);
|
|
1730
|
-
}
|
|
1634
|
+
if (
|
|
1635
|
+
"object" === typeof key &&
|
|
1636
|
+
null !== key &&
|
|
1637
|
+
"function" === typeof key.then
|
|
1638
|
+
)
|
|
1639
|
+
return (
|
|
1640
|
+
(request = createTask(
|
|
1641
|
+
request,
|
|
1642
|
+
task.model,
|
|
1643
|
+
task.keyPath,
|
|
1644
|
+
task.implicitSlot,
|
|
1645
|
+
request.abortableTasks,
|
|
1646
|
+
task.debugOwner,
|
|
1647
|
+
task.debugStack,
|
|
1648
|
+
task.debugTask
|
|
1649
|
+
)),
|
|
1650
|
+
(value = request.ping),
|
|
1651
|
+
key.then(value, value),
|
|
1652
|
+
(request.thenableState = getThenableStateAfterSuspending$1()),
|
|
1653
|
+
(task.keyPath = prevKeyPath),
|
|
1654
|
+
(task.implicitSlot = prevImplicitSlot),
|
|
1655
|
+
parent
|
|
1656
|
+
? "$L" + request.id.toString(16)
|
|
1657
|
+
: serializeByValueID$1(request.id)
|
|
1658
|
+
);
|
|
1731
1659
|
task.keyPath = prevKeyPath;
|
|
1732
1660
|
task.implicitSlot = prevImplicitSlot;
|
|
1733
1661
|
request.pendingChunks++;
|
|
1734
1662
|
prevKeyPath = request.nextChunkId++;
|
|
1735
|
-
|
|
1736
|
-
|
|
1663
|
+
"object" === typeof key &&
|
|
1664
|
+
null !== key &&
|
|
1665
|
+
key.$$typeof === REACT_POSTPONE_TYPE
|
|
1666
|
+
? (logPostpone$1(request, key.message, task),
|
|
1667
|
+
emitPostponeChunk(request, prevKeyPath, key))
|
|
1668
|
+
: ((task = logRecoverableError$1(request, key, task)),
|
|
1669
|
+
emitErrorChunk(request, prevKeyPath, task, key));
|
|
1737
1670
|
return parent
|
|
1738
1671
|
? "$L" + prevKeyPath.toString(16)
|
|
1739
1672
|
: serializeByValueID$1(prevKeyPath);
|
|
@@ -2480,12 +2413,24 @@
|
|
|
2480
2413
|
}
|
|
2481
2414
|
request.completedRegularChunks.push(":W" + json + "\n");
|
|
2482
2415
|
}
|
|
2416
|
+
function emitTimeOriginChunk(request, timeOrigin) {
|
|
2417
|
+
request.pendingChunks++;
|
|
2418
|
+
request.completedRegularChunks.push(":N" + timeOrigin + "\n");
|
|
2419
|
+
}
|
|
2483
2420
|
function forwardDebugInfo(request, id, debugInfo) {
|
|
2484
2421
|
for (var i = 0; i < debugInfo.length; i++)
|
|
2485
2422
|
request.pendingChunks++,
|
|
2486
|
-
"
|
|
2487
|
-
|
|
2488
|
-
|
|
2423
|
+
"number" === typeof debugInfo[i].time
|
|
2424
|
+
? emitTimingChunk(request, id, debugInfo[i].time)
|
|
2425
|
+
: ("string" === typeof debugInfo[i].name &&
|
|
2426
|
+
outlineComponentInfo(request, debugInfo[i]),
|
|
2427
|
+
emitDebugChunk(request, id, debugInfo[i]));
|
|
2428
|
+
}
|
|
2429
|
+
function emitTimingChunk(request, id, timestamp) {
|
|
2430
|
+
request.pendingChunks++;
|
|
2431
|
+
timestamp -= request.timeOrigin;
|
|
2432
|
+
id = id.toString(16) + ':D{"time":' + timestamp + "}\n";
|
|
2433
|
+
request.completedRegularChunks.push(id);
|
|
2489
2434
|
}
|
|
2490
2435
|
function emitChunk(request, task, value) {
|
|
2491
2436
|
var id = task.id;
|
|
@@ -2518,6 +2463,22 @@
|
|
|
2518
2463
|
: ((value = stringify(value, task.toJSON)),
|
|
2519
2464
|
emitModelChunk(request, task.id, value));
|
|
2520
2465
|
}
|
|
2466
|
+
function erroredTask$1(request, task, error) {
|
|
2467
|
+
task.timed && emitTimingChunk(request, task.id, performance.now());
|
|
2468
|
+
request.abortableTasks.delete(task);
|
|
2469
|
+
task.status = ERRORED$2;
|
|
2470
|
+
if (
|
|
2471
|
+
"object" === typeof error &&
|
|
2472
|
+
null !== error &&
|
|
2473
|
+
error.$$typeof === REACT_POSTPONE_TYPE
|
|
2474
|
+
)
|
|
2475
|
+
logPostpone$1(request, error.message, task),
|
|
2476
|
+
emitPostponeChunk(request, task.id, error);
|
|
2477
|
+
else {
|
|
2478
|
+
var digest = logRecoverableError$1(request, error, task);
|
|
2479
|
+
emitErrorChunk(request, task.id, digest, error);
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2521
2482
|
function retryTask$1(request, task) {
|
|
2522
2483
|
if (task.status === PENDING$3) {
|
|
2523
2484
|
var prevDebugID = debugID;
|
|
@@ -2536,22 +2497,19 @@
|
|
|
2536
2497
|
modelRoot = resolvedModel;
|
|
2537
2498
|
task.keyPath = null;
|
|
2538
2499
|
task.implicitSlot = !1;
|
|
2539
|
-
|
|
2500
|
+
var currentEnv = (0, request.environmentName)();
|
|
2501
|
+
currentEnv !== task.environmentName &&
|
|
2502
|
+
(request.pendingChunks++,
|
|
2503
|
+
emitDebugChunk(request, task.id, { env: currentEnv }));
|
|
2504
|
+
task.timed && emitTimingChunk(request, task.id, performance.now());
|
|
2505
|
+
if ("object" === typeof resolvedModel && null !== resolvedModel)
|
|
2540
2506
|
request.writtenObjects.set(
|
|
2541
2507
|
resolvedModel,
|
|
2542
2508
|
serializeByValueID$1(task.id)
|
|
2543
|
-
)
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
emitDebugChunk(request, task.id, { env: currentEnv }));
|
|
2548
|
-
emitChunk(request, task, resolvedModel);
|
|
2549
|
-
} else {
|
|
2550
|
-
var json = stringify(resolvedModel),
|
|
2551
|
-
_currentEnv = (0, request.environmentName)();
|
|
2552
|
-
_currentEnv !== task.environmentName &&
|
|
2553
|
-
(request.pendingChunks++,
|
|
2554
|
-
emitDebugChunk(request, task.id, { env: _currentEnv }));
|
|
2509
|
+
),
|
|
2510
|
+
emitChunk(request, task, resolvedModel);
|
|
2511
|
+
else {
|
|
2512
|
+
var json = stringify(resolvedModel);
|
|
2555
2513
|
emitModelChunk(request, task.id, json);
|
|
2556
2514
|
}
|
|
2557
2515
|
request.abortableTasks.delete(task);
|
|
@@ -2573,26 +2531,16 @@
|
|
|
2573
2531
|
thrownValue === SuspenseException$1
|
|
2574
2532
|
? getSuspendedThenable$1()
|
|
2575
2533
|
: thrownValue;
|
|
2576
|
-
if (
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
task.status = ERRORED$2;
|
|
2587
|
-
logPostpone$1(request, x.message, task);
|
|
2588
|
-
emitPostponeChunk(request, task.id, x);
|
|
2589
|
-
return;
|
|
2590
|
-
}
|
|
2591
|
-
}
|
|
2592
|
-
request.abortableTasks.delete(task);
|
|
2593
|
-
task.status = ERRORED$2;
|
|
2594
|
-
var digest = logRecoverableError$1(request, x, task);
|
|
2595
|
-
emitErrorChunk(request, task.id, digest, x);
|
|
2534
|
+
if (
|
|
2535
|
+
"object" === typeof x &&
|
|
2536
|
+
null !== x &&
|
|
2537
|
+
"function" === typeof x.then
|
|
2538
|
+
) {
|
|
2539
|
+
task.status = PENDING$3;
|
|
2540
|
+
task.thenableState = getThenableStateAfterSuspending$1();
|
|
2541
|
+
var ping = task.ping;
|
|
2542
|
+
x.then(ping, ping);
|
|
2543
|
+
} else erroredTask$1(request, task, x);
|
|
2596
2544
|
}
|
|
2597
2545
|
} finally {
|
|
2598
2546
|
debugID = prevDebugID;
|
|
@@ -2637,6 +2585,7 @@
|
|
|
2637
2585
|
function abortTask$1(task, request, errorId) {
|
|
2638
2586
|
task.status !== RENDERING$1 &&
|
|
2639
2587
|
((task.status = ABORTED$1),
|
|
2588
|
+
task.timed && emitTimingChunk(request, task.id, performance.now()),
|
|
2640
2589
|
(errorId = serializeByValueID$1(errorId)),
|
|
2641
2590
|
(task = encodeReferenceChunk(request, task.id, errorId)),
|
|
2642
2591
|
request.completedErrorChunks.push(task));
|
|
@@ -2721,29 +2670,25 @@
|
|
|
2721
2670
|
11 >= request.status && (request.status = ABORTING$1);
|
|
2722
2671
|
var abortableTasks = request.abortableTasks;
|
|
2723
2672
|
if (0 < abortableTasks.size) {
|
|
2724
|
-
if (
|
|
2673
|
+
if (request.type === PRERENDER)
|
|
2674
|
+
abortableTasks.forEach(function (task) {
|
|
2675
|
+
task.status !== RENDERING$1 &&
|
|
2676
|
+
((task.status = ABORTED$1), request.pendingChunks--);
|
|
2677
|
+
});
|
|
2678
|
+
else if (
|
|
2725
2679
|
"object" === typeof reason &&
|
|
2726
2680
|
null !== reason &&
|
|
2727
2681
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
2728
|
-
)
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
var errorId = request.nextChunkId++;
|
|
2739
|
-
request.fatalError = errorId;
|
|
2740
|
-
request.pendingChunks++;
|
|
2741
|
-
emitPostponeChunk(request, errorId, reason);
|
|
2742
|
-
abortableTasks.forEach(function (task) {
|
|
2743
|
-
return abortTask$1(task, request, errorId);
|
|
2744
|
-
});
|
|
2745
|
-
}
|
|
2746
|
-
else {
|
|
2682
|
+
) {
|
|
2683
|
+
logPostpone$1(request, reason.message, null);
|
|
2684
|
+
var errorId = request.nextChunkId++;
|
|
2685
|
+
request.fatalError = errorId;
|
|
2686
|
+
request.pendingChunks++;
|
|
2687
|
+
emitPostponeChunk(request, errorId, reason);
|
|
2688
|
+
abortableTasks.forEach(function (task) {
|
|
2689
|
+
return abortTask$1(task, request, errorId);
|
|
2690
|
+
});
|
|
2691
|
+
} else {
|
|
2747
2692
|
var error =
|
|
2748
2693
|
void 0 === reason
|
|
2749
2694
|
? Error(
|
|
@@ -2756,21 +2701,14 @@
|
|
|
2756
2701
|
"The render was aborted by the server with a promise."
|
|
2757
2702
|
)
|
|
2758
2703
|
: reason,
|
|
2759
|
-
digest = logRecoverableError$1(request, error, null)
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
request.fatalError = _errorId2;
|
|
2768
|
-
request.pendingChunks++;
|
|
2769
|
-
emitErrorChunk(request, _errorId2, digest, error);
|
|
2770
|
-
abortableTasks.forEach(function (task) {
|
|
2771
|
-
return abortTask$1(task, request, _errorId2);
|
|
2772
|
-
});
|
|
2773
|
-
}
|
|
2704
|
+
digest = logRecoverableError$1(request, error, null),
|
|
2705
|
+
_errorId2 = request.nextChunkId++;
|
|
2706
|
+
request.fatalError = _errorId2;
|
|
2707
|
+
request.pendingChunks++;
|
|
2708
|
+
emitErrorChunk(request, _errorId2, digest, error);
|
|
2709
|
+
abortableTasks.forEach(function (task) {
|
|
2710
|
+
return abortTask$1(task, request, _errorId2);
|
|
2711
|
+
});
|
|
2774
2712
|
}
|
|
2775
2713
|
abortableTasks.clear();
|
|
2776
2714
|
var onAllReady = request.onAllReady;
|
|
@@ -4063,6 +4001,7 @@
|
|
|
4063
4001
|
this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
|
|
4064
4002
|
this._buffer = [];
|
|
4065
4003
|
this._tempRefs = temporaryReferences;
|
|
4004
|
+
this._timeOrigin = 0;
|
|
4066
4005
|
this._debugRootOwner = bundlerConfig =
|
|
4067
4006
|
void 0 === ReactSharedInteralsServer ||
|
|
4068
4007
|
null === ReactSharedInteralsServer.A
|
|
@@ -4479,15 +4418,20 @@
|
|
|
4479
4418
|
initializeFakeStack(response, debugInfo.owner));
|
|
4480
4419
|
}
|
|
4481
4420
|
function resolveDebugInfo(response, id, debugInfo) {
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4421
|
+
var env =
|
|
4422
|
+
void 0 === debugInfo.env
|
|
4423
|
+
? response._rootEnvironmentName
|
|
4424
|
+
: debugInfo.env;
|
|
4425
|
+
void 0 !== debugInfo.stack &&
|
|
4426
|
+
initializeFakeTask(response, debugInfo, env);
|
|
4487
4427
|
null === debugInfo.owner && null != response._debugRootOwner
|
|
4488
|
-
? ((
|
|
4489
|
-
(
|
|
4490
|
-
|
|
4428
|
+
? ((env = debugInfo),
|
|
4429
|
+
(env.owner = response._debugRootOwner),
|
|
4430
|
+
(env.debugStack = response._debugRootStack))
|
|
4431
|
+
: void 0 !== debugInfo.stack &&
|
|
4432
|
+
initializeFakeStack(response, debugInfo);
|
|
4433
|
+
"number" === typeof debugInfo.time &&
|
|
4434
|
+
(debugInfo = { time: debugInfo.time + response._timeOrigin });
|
|
4491
4435
|
response = getChunk(response, id);
|
|
4492
4436
|
(response._debugInfo || (response._debugInfo = [])).push(debugInfo);
|
|
4493
4437
|
}
|
|
@@ -4534,6 +4478,9 @@
|
|
|
4534
4478
|
case 84:
|
|
4535
4479
|
resolveText(response, id, row);
|
|
4536
4480
|
break;
|
|
4481
|
+
case 78:
|
|
4482
|
+
response._timeOrigin = +row - performance.timeOrigin;
|
|
4483
|
+
break;
|
|
4537
4484
|
case 68:
|
|
4538
4485
|
tag = new ReactPromise("resolved_model", row, null, response);
|
|
4539
4486
|
initializeModelChunk(tag);
|
|
@@ -13169,5 +13116,5 @@
|
|
|
13169
13116
|
});
|
|
13170
13117
|
});
|
|
13171
13118
|
};
|
|
13172
|
-
exports.version = "19.0.0-experimental-
|
|
13119
|
+
exports.version = "19.0.0-experimental-79ddf5b5-20241210";
|
|
13173
13120
|
})();
|