react-markup 0.0.0-experimental-1eaccd82-20240816 → 0.0.0-experimental-a960b92c-20240819
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.
|
@@ -760,6 +760,7 @@
|
|
|
760
760
|
}
|
|
761
761
|
function defaultPostponeHandler() {}
|
|
762
762
|
function RequestInstance$1(
|
|
763
|
+
type,
|
|
763
764
|
model,
|
|
764
765
|
bundlerConfig,
|
|
765
766
|
onError,
|
|
@@ -784,7 +785,8 @@
|
|
|
784
785
|
pingedTasks = [],
|
|
785
786
|
cleanupQueue = [];
|
|
786
787
|
TaintRegistryPendingRequests.add(cleanupQueue);
|
|
787
|
-
this.
|
|
788
|
+
this.type = type;
|
|
789
|
+
this.status = 10;
|
|
788
790
|
this.flushScheduled = !1;
|
|
789
791
|
this.destination = this.fatalError = null;
|
|
790
792
|
this.bundlerConfig = bundlerConfig;
|
|
@@ -809,8 +811,8 @@
|
|
|
809
811
|
this.onError = void 0 === onError ? defaultErrorHandler$1 : onError;
|
|
810
812
|
this.onPostpone =
|
|
811
813
|
void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
|
|
812
|
-
this.onAllReady =
|
|
813
|
-
this.onFatalError =
|
|
814
|
+
this.onAllReady = onAllReady;
|
|
815
|
+
this.onFatalError = onFatalError;
|
|
814
816
|
this.environmentName =
|
|
815
817
|
void 0 === environmentName
|
|
816
818
|
? function () {
|
|
@@ -826,8 +828,8 @@
|
|
|
826
828
|
? defaultFilterStackFrame
|
|
827
829
|
: filterStackFrame;
|
|
828
830
|
this.didWarnForKey = null;
|
|
829
|
-
|
|
830
|
-
pingedTasks.push(
|
|
831
|
+
type = createTask(this, model, null, !1, abortSet, null, null, null);
|
|
832
|
+
pingedTasks.push(type);
|
|
831
833
|
}
|
|
832
834
|
function noop$3() {}
|
|
833
835
|
function serializeThenable(request, task, thenable) {
|
|
@@ -869,10 +871,10 @@
|
|
|
869
871
|
default:
|
|
870
872
|
if (request.status === ABORTING$1)
|
|
871
873
|
return (
|
|
874
|
+
request.abortableTasks.delete(newTask),
|
|
872
875
|
(newTask.status = ABORTED$1),
|
|
873
876
|
(task = stringify(serializeByValueID$1(request.fatalError))),
|
|
874
877
|
emitModelChunk(request, newTask.id, task),
|
|
875
|
-
request.abortableTasks.delete(newTask),
|
|
876
878
|
newTask.id
|
|
877
879
|
);
|
|
878
880
|
"string" !== typeof thenable.status &&
|
|
@@ -917,7 +919,7 @@
|
|
|
917
919
|
function progress(entry) {
|
|
918
920
|
if (!aborted)
|
|
919
921
|
if (entry.done)
|
|
920
|
-
request.abortListeners.delete(
|
|
922
|
+
request.abortListeners.delete(abortStream),
|
|
921
923
|
(entry = streamTask.id.toString(16) + ":C\n"),
|
|
922
924
|
request.completedRegularChunks.push(entry),
|
|
923
925
|
enqueueFlush(request),
|
|
@@ -936,19 +938,34 @@
|
|
|
936
938
|
function error(reason) {
|
|
937
939
|
if (!aborted) {
|
|
938
940
|
aborted = !0;
|
|
939
|
-
request.abortListeners.delete(
|
|
941
|
+
request.abortListeners.delete(abortStream);
|
|
942
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
943
|
+
emitErrorChunk(request, streamTask.id, digest, reason);
|
|
944
|
+
enqueueFlush(request);
|
|
945
|
+
reader.cancel(reason).then(error, error);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
function abortStream(reason) {
|
|
949
|
+
if (!aborted) {
|
|
950
|
+
aborted = !0;
|
|
951
|
+
request.abortListeners.delete(abortStream);
|
|
940
952
|
if (
|
|
941
953
|
"object" === typeof reason &&
|
|
942
954
|
null !== reason &&
|
|
943
955
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
944
956
|
)
|
|
945
957
|
logPostpone$1(request, reason.message, streamTask),
|
|
946
|
-
|
|
958
|
+
request.type === PRERENDER
|
|
959
|
+
? request.pendingChunks--
|
|
960
|
+
: (emitPostponeChunk(request, streamTask.id, reason),
|
|
961
|
+
enqueueFlush(request));
|
|
947
962
|
else {
|
|
948
963
|
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
949
|
-
|
|
964
|
+
request.type === PRERENDER
|
|
965
|
+
? request.pendingChunks--
|
|
966
|
+
: (emitErrorChunk(request, streamTask.id, digest, reason),
|
|
967
|
+
enqueueFlush(request));
|
|
950
968
|
}
|
|
951
|
-
enqueueFlush(request);
|
|
952
969
|
reader.cancel(reason).then(error, error);
|
|
953
970
|
}
|
|
954
971
|
}
|
|
@@ -976,7 +993,7 @@
|
|
|
976
993
|
streamTask.id.toString(16) + ":" + (supportsBYOB ? "r" : "R") + "\n";
|
|
977
994
|
request.completedRegularChunks.push(task);
|
|
978
995
|
var aborted = !1;
|
|
979
|
-
request.abortListeners.add(
|
|
996
|
+
request.abortListeners.add(abortStream);
|
|
980
997
|
reader.read().then(progress, error);
|
|
981
998
|
return serializeByValueID$1(streamTask.id);
|
|
982
999
|
}
|
|
@@ -984,7 +1001,7 @@
|
|
|
984
1001
|
function progress(entry) {
|
|
985
1002
|
if (!aborted)
|
|
986
1003
|
if (entry.done) {
|
|
987
|
-
request.abortListeners.delete(
|
|
1004
|
+
request.abortListeners.delete(abortIterable);
|
|
988
1005
|
if (void 0 === entry.value)
|
|
989
1006
|
var endStreamRow = streamTask.id.toString(16) + ":C\n";
|
|
990
1007
|
else
|
|
@@ -1016,19 +1033,35 @@
|
|
|
1016
1033
|
function error(reason) {
|
|
1017
1034
|
if (!aborted) {
|
|
1018
1035
|
aborted = !0;
|
|
1019
|
-
request.abortListeners.delete(
|
|
1036
|
+
request.abortListeners.delete(abortIterable);
|
|
1037
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
1038
|
+
emitErrorChunk(request, streamTask.id, digest, reason);
|
|
1039
|
+
enqueueFlush(request);
|
|
1040
|
+
"function" === typeof iterator.throw &&
|
|
1041
|
+
iterator.throw(reason).then(error, error);
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
function abortIterable(reason) {
|
|
1045
|
+
if (!aborted) {
|
|
1046
|
+
aborted = !0;
|
|
1047
|
+
request.abortListeners.delete(abortIterable);
|
|
1020
1048
|
if (
|
|
1021
1049
|
"object" === typeof reason &&
|
|
1022
1050
|
null !== reason &&
|
|
1023
1051
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1024
1052
|
)
|
|
1025
1053
|
logPostpone$1(request, reason.message, streamTask),
|
|
1026
|
-
|
|
1054
|
+
request.type === PRERENDER
|
|
1055
|
+
? request.pendingChunks--
|
|
1056
|
+
: (emitPostponeChunk(request, streamTask.id, reason),
|
|
1057
|
+
enqueueFlush(request));
|
|
1027
1058
|
else {
|
|
1028
1059
|
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
1029
|
-
|
|
1060
|
+
request.type === PRERENDER
|
|
1061
|
+
? request.pendingChunks--
|
|
1062
|
+
: (emitErrorChunk(request, streamTask.id, digest, reason),
|
|
1063
|
+
enqueueFlush(request));
|
|
1030
1064
|
}
|
|
1031
|
-
enqueueFlush(request);
|
|
1032
1065
|
"function" === typeof iterator.throw &&
|
|
1033
1066
|
iterator.throw(reason).then(error, error);
|
|
1034
1067
|
}
|
|
@@ -1051,7 +1084,7 @@
|
|
|
1051
1084
|
(iterable = iterable._debugInfo) &&
|
|
1052
1085
|
forwardDebugInfo(request, streamTask.id, iterable);
|
|
1053
1086
|
var aborted = !1;
|
|
1054
|
-
request.abortListeners.add(
|
|
1087
|
+
request.abortListeners.add(abortIterable);
|
|
1055
1088
|
callIteratorInDEV(iterator, progress, error);
|
|
1056
1089
|
return serializeByValueID$1(streamTask.id);
|
|
1057
1090
|
}
|
|
@@ -1563,7 +1596,7 @@
|
|
|
1563
1596
|
function progress(entry) {
|
|
1564
1597
|
if (!aborted)
|
|
1565
1598
|
if (entry.done)
|
|
1566
|
-
request.abortListeners.delete(
|
|
1599
|
+
request.abortListeners.delete(abortBlob),
|
|
1567
1600
|
(aborted = !0),
|
|
1568
1601
|
pingTask$1(request, newTask);
|
|
1569
1602
|
else
|
|
@@ -1574,14 +1607,37 @@
|
|
|
1574
1607
|
function error(reason) {
|
|
1575
1608
|
if (!aborted) {
|
|
1576
1609
|
aborted = !0;
|
|
1577
|
-
request.abortListeners.delete(
|
|
1610
|
+
request.abortListeners.delete(abortBlob);
|
|
1578
1611
|
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1579
1612
|
emitErrorChunk(request, newTask.id, digest, reason);
|
|
1580
|
-
request.abortableTasks.delete(newTask);
|
|
1581
1613
|
enqueueFlush(request);
|
|
1582
1614
|
reader.cancel(reason).then(error, error);
|
|
1583
1615
|
}
|
|
1584
1616
|
}
|
|
1617
|
+
function abortBlob(reason) {
|
|
1618
|
+
if (!aborted) {
|
|
1619
|
+
aborted = !0;
|
|
1620
|
+
request.abortListeners.delete(abortBlob);
|
|
1621
|
+
if (
|
|
1622
|
+
"object" === typeof reason &&
|
|
1623
|
+
null !== reason &&
|
|
1624
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1625
|
+
)
|
|
1626
|
+
logPostpone$1(request, reason.message, newTask),
|
|
1627
|
+
request.type === PRERENDER
|
|
1628
|
+
? request.pendingChunks--
|
|
1629
|
+
: (emitPostponeChunk(request, newTask.id, reason),
|
|
1630
|
+
enqueueFlush(request));
|
|
1631
|
+
else {
|
|
1632
|
+
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1633
|
+
request.type === PRERENDER
|
|
1634
|
+
? request.pendingChunks--
|
|
1635
|
+
: (emitErrorChunk(request, newTask.id, digest, reason),
|
|
1636
|
+
enqueueFlush(request));
|
|
1637
|
+
}
|
|
1638
|
+
reader.cancel(reason).then(error, error);
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1585
1641
|
var model = [blob.type],
|
|
1586
1642
|
newTask = createTask(
|
|
1587
1643
|
request,
|
|
@@ -1595,7 +1651,7 @@
|
|
|
1595
1651
|
),
|
|
1596
1652
|
reader = blob.stream().getReader(),
|
|
1597
1653
|
aborted = !1;
|
|
1598
|
-
request.abortListeners.add(
|
|
1654
|
+
request.abortListeners.add(abortBlob);
|
|
1599
1655
|
reader.read().then(progress).catch(error);
|
|
1600
1656
|
return "$B" + newTask.id.toString(16);
|
|
1601
1657
|
}
|
|
@@ -2454,6 +2510,7 @@
|
|
|
2454
2510
|
ReactSharedInternalsServer.H = HooksDispatcher$1;
|
|
2455
2511
|
var prevRequest = currentRequest;
|
|
2456
2512
|
currentRequest$1 = currentRequest = request;
|
|
2513
|
+
var hadAbortableTasks = 0 < request.abortableTasks.size;
|
|
2457
2514
|
try {
|
|
2458
2515
|
var pingedTasks = request.pingedTasks;
|
|
2459
2516
|
request.pingedTasks = [];
|
|
@@ -2461,7 +2518,7 @@
|
|
|
2461
2518
|
retryTask$1(request, pingedTasks[i]);
|
|
2462
2519
|
null !== request.destination &&
|
|
2463
2520
|
flushCompletedChunks(request, request.destination);
|
|
2464
|
-
if (0 === request.abortableTasks.size) {
|
|
2521
|
+
if (hadAbortableTasks && 0 === request.abortableTasks.size) {
|
|
2465
2522
|
var onAllReady = request.onAllReady;
|
|
2466
2523
|
onAllReady();
|
|
2467
2524
|
}
|
|
@@ -2550,10 +2607,9 @@
|
|
|
2550
2607
|
}
|
|
2551
2608
|
function abort$1(request, reason) {
|
|
2552
2609
|
try {
|
|
2553
|
-
|
|
2610
|
+
10 === request.status && (request.status = ABORTING$1);
|
|
2554
2611
|
var abortableTasks = request.abortableTasks;
|
|
2555
2612
|
if (0 < abortableTasks.size) {
|
|
2556
|
-
request.pendingChunks++;
|
|
2557
2613
|
var errorId = request.nextChunkId++;
|
|
2558
2614
|
request.fatalError = errorId;
|
|
2559
2615
|
if (
|
|
@@ -2562,7 +2618,9 @@
|
|
|
2562
2618
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
2563
2619
|
)
|
|
2564
2620
|
logPostpone$1(request, reason.message, null),
|
|
2565
|
-
|
|
2621
|
+
request.type === PRERENDER &&
|
|
2622
|
+
(request.pendingChunks++,
|
|
2623
|
+
emitPostponeChunk(request, errorId, reason));
|
|
2566
2624
|
else {
|
|
2567
2625
|
var error =
|
|
2568
2626
|
void 0 === reason
|
|
@@ -2577,7 +2635,9 @@
|
|
|
2577
2635
|
)
|
|
2578
2636
|
: reason,
|
|
2579
2637
|
digest = logRecoverableError$1(request, error, null);
|
|
2580
|
-
|
|
2638
|
+
20 === request.type &&
|
|
2639
|
+
(request.pendingChunks++,
|
|
2640
|
+
emitErrorChunk(request, errorId, digest, error));
|
|
2581
2641
|
}
|
|
2582
2642
|
abortableTasks.forEach(function (task) {
|
|
2583
2643
|
if (task.status !== RENDERING$1) {
|
|
@@ -2588,6 +2648,8 @@
|
|
|
2588
2648
|
}
|
|
2589
2649
|
});
|
|
2590
2650
|
abortableTasks.clear();
|
|
2651
|
+
var onAllReady = request.onAllReady;
|
|
2652
|
+
onAllReady();
|
|
2591
2653
|
}
|
|
2592
2654
|
var abortListeners = request.abortListeners;
|
|
2593
2655
|
if (0 < abortListeners.size) {
|
|
@@ -3143,6 +3205,49 @@
|
|
|
3143
3205
|
);
|
|
3144
3206
|
}
|
|
3145
3207
|
}
|
|
3208
|
+
function createFakeServerFunction(
|
|
3209
|
+
name,
|
|
3210
|
+
filename,
|
|
3211
|
+
sourceMap,
|
|
3212
|
+
line,
|
|
3213
|
+
col,
|
|
3214
|
+
environmentName,
|
|
3215
|
+
innerFunction
|
|
3216
|
+
) {
|
|
3217
|
+
name || (name = "<anonymous>");
|
|
3218
|
+
var encodedName = JSON.stringify(name);
|
|
3219
|
+
1 >= line
|
|
3220
|
+
? ((line = encodedName.length + 7),
|
|
3221
|
+
(col =
|
|
3222
|
+
"s=>({" +
|
|
3223
|
+
encodedName +
|
|
3224
|
+
" ".repeat(col < line ? 0 : col - line) +
|
|
3225
|
+
":(...args) => s(...args)})\n/* This module is a proxy to a Server Action. Turn on Source Maps to see the server source. */"))
|
|
3226
|
+
: (col =
|
|
3227
|
+
"/* This module is a proxy to a Server Action. Turn on Source Maps to see the server source. */" +
|
|
3228
|
+
"\n".repeat(line - 2) +
|
|
3229
|
+
"server=>({" +
|
|
3230
|
+
encodedName +
|
|
3231
|
+
":\n" +
|
|
3232
|
+
" ".repeat(1 > col ? 0 : col - 1) +
|
|
3233
|
+
"(...args) => server(...args)})");
|
|
3234
|
+
filename.startsWith("/") && (filename = "file://" + filename);
|
|
3235
|
+
sourceMap
|
|
3236
|
+
? ((col +=
|
|
3237
|
+
"\n//# sourceURL=rsc://React/" +
|
|
3238
|
+
encodeURIComponent(environmentName) +
|
|
3239
|
+
"/" +
|
|
3240
|
+
filename +
|
|
3241
|
+
"?s" +
|
|
3242
|
+
fakeServerFunctionIdx++),
|
|
3243
|
+
(col += "\n//# sourceMappingURL=" + sourceMap))
|
|
3244
|
+
: filename && (col += "\n//# sourceURL=" + filename);
|
|
3245
|
+
try {
|
|
3246
|
+
return (0, eval)(col)(innerFunction)[name];
|
|
3247
|
+
} catch (x) {
|
|
3248
|
+
return innerFunction;
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3146
3251
|
function registerServerReference(
|
|
3147
3252
|
proxy,
|
|
3148
3253
|
reference$jscomp$0,
|
|
@@ -3197,6 +3302,52 @@
|
|
|
3197
3302
|
}
|
|
3198
3303
|
return newFn;
|
|
3199
3304
|
}
|
|
3305
|
+
function createBoundServerReference(
|
|
3306
|
+
metaData,
|
|
3307
|
+
callServer,
|
|
3308
|
+
encodeFormAction,
|
|
3309
|
+
findSourceMapURL
|
|
3310
|
+
) {
|
|
3311
|
+
function action() {
|
|
3312
|
+
var args = Array.prototype.slice.call(arguments);
|
|
3313
|
+
return bound
|
|
3314
|
+
? "fulfilled" === bound.status
|
|
3315
|
+
? callServer(id, bound.value.concat(args))
|
|
3316
|
+
: Promise.resolve(bound).then(function (boundArgs) {
|
|
3317
|
+
return callServer(id, boundArgs.concat(args));
|
|
3318
|
+
})
|
|
3319
|
+
: callServer(id, args);
|
|
3320
|
+
}
|
|
3321
|
+
var id = metaData.id,
|
|
3322
|
+
bound = metaData.bound,
|
|
3323
|
+
location = metaData.location;
|
|
3324
|
+
if (location) {
|
|
3325
|
+
var functionName = metaData.name || "",
|
|
3326
|
+
filename = location[1],
|
|
3327
|
+
line = location[2];
|
|
3328
|
+
location = location[3];
|
|
3329
|
+
metaData = metaData.env || "Server";
|
|
3330
|
+
findSourceMapURL =
|
|
3331
|
+
null == findSourceMapURL
|
|
3332
|
+
? null
|
|
3333
|
+
: findSourceMapURL(filename, metaData);
|
|
3334
|
+
action = createFakeServerFunction(
|
|
3335
|
+
functionName,
|
|
3336
|
+
filename,
|
|
3337
|
+
findSourceMapURL,
|
|
3338
|
+
line,
|
|
3339
|
+
location,
|
|
3340
|
+
metaData,
|
|
3341
|
+
action
|
|
3342
|
+
);
|
|
3343
|
+
}
|
|
3344
|
+
registerServerReference(
|
|
3345
|
+
action,
|
|
3346
|
+
{ id: id, bound: bound },
|
|
3347
|
+
encodeFormAction
|
|
3348
|
+
);
|
|
3349
|
+
return action;
|
|
3350
|
+
}
|
|
3200
3351
|
function getComponentNameFromType(type) {
|
|
3201
3352
|
if (null == type) return null;
|
|
3202
3353
|
if ("function" === typeof type)
|
|
@@ -3253,7 +3404,7 @@
|
|
|
3253
3404
|
}
|
|
3254
3405
|
return null;
|
|
3255
3406
|
}
|
|
3256
|
-
function
|
|
3407
|
+
function ReactPromise(status, value, reason, response) {
|
|
3257
3408
|
this.status = status;
|
|
3258
3409
|
this.value = value;
|
|
3259
3410
|
this.reason = reason;
|
|
@@ -3279,7 +3430,7 @@
|
|
|
3279
3430
|
}
|
|
3280
3431
|
}
|
|
3281
3432
|
function createPendingChunk(response) {
|
|
3282
|
-
return new
|
|
3433
|
+
return new ReactPromise("pending", null, null, response);
|
|
3283
3434
|
}
|
|
3284
3435
|
function wakeChunk(listeners, value) {
|
|
3285
3436
|
for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value);
|
|
@@ -3320,7 +3471,7 @@
|
|
|
3320
3471
|
}
|
|
3321
3472
|
}
|
|
3322
3473
|
function createResolvedIteratorResultChunk(response, value, done) {
|
|
3323
|
-
return new
|
|
3474
|
+
return new ReactPromise(
|
|
3324
3475
|
"resolved_model",
|
|
3325
3476
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') +
|
|
3326
3477
|
value +
|
|
@@ -3511,20 +3662,12 @@
|
|
|
3511
3662
|
return null;
|
|
3512
3663
|
}
|
|
3513
3664
|
function createServerReferenceProxy(response, metaData) {
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
: Promise.resolve(p).then(function (bound) {
|
|
3521
|
-
return callServer(metaData.id, bound.concat(args));
|
|
3522
|
-
})
|
|
3523
|
-
: callServer(metaData.id, args);
|
|
3524
|
-
}
|
|
3525
|
-
var callServer = response._callServer;
|
|
3526
|
-
registerServerReference(proxy, metaData, response._encodeFormAction);
|
|
3527
|
-
return proxy;
|
|
3665
|
+
return createBoundServerReference(
|
|
3666
|
+
metaData,
|
|
3667
|
+
response._callServer,
|
|
3668
|
+
response._encodeFormAction,
|
|
3669
|
+
response._debugFindSourceMapURL
|
|
3670
|
+
);
|
|
3528
3671
|
}
|
|
3529
3672
|
function getOutlinedModel(response, reference, parentObject, key, map) {
|
|
3530
3673
|
reference = reference.split(":");
|
|
@@ -3788,7 +3931,10 @@
|
|
|
3788
3931
|
(chunk.value = stream),
|
|
3789
3932
|
(chunk.reason = controller),
|
|
3790
3933
|
null !== response && wakeChunk(response, chunk.value))
|
|
3791
|
-
: chunks.set(
|
|
3934
|
+
: chunks.set(
|
|
3935
|
+
id,
|
|
3936
|
+
new ReactPromise("fulfilled", stream, controller, response)
|
|
3937
|
+
);
|
|
3792
3938
|
}
|
|
3793
3939
|
function startReadableStream(response, id, type) {
|
|
3794
3940
|
var controller = null;
|
|
@@ -3809,7 +3955,12 @@
|
|
|
3809
3955
|
},
|
|
3810
3956
|
enqueueModel: function (json) {
|
|
3811
3957
|
if (null === previousBlockedChunk) {
|
|
3812
|
-
var chunk = new
|
|
3958
|
+
var chunk = new ReactPromise(
|
|
3959
|
+
"resolved_model",
|
|
3960
|
+
json,
|
|
3961
|
+
null,
|
|
3962
|
+
response
|
|
3963
|
+
);
|
|
3813
3964
|
initializeModelChunk(chunk);
|
|
3814
3965
|
"fulfilled" === chunk.status
|
|
3815
3966
|
? controller.enqueue(chunk.value)
|
|
@@ -3883,7 +4034,7 @@
|
|
|
3883
4034
|
);
|
|
3884
4035
|
if (nextReadIndex === buffer.length) {
|
|
3885
4036
|
if (closed)
|
|
3886
|
-
return new
|
|
4037
|
+
return new ReactPromise(
|
|
3887
4038
|
"fulfilled",
|
|
3888
4039
|
{ done: !0, value: void 0 },
|
|
3889
4040
|
null,
|
|
@@ -3901,7 +4052,7 @@
|
|
|
3901
4052
|
{
|
|
3902
4053
|
enqueueValue: function (value) {
|
|
3903
4054
|
if (nextWriteIndex === buffer.length)
|
|
3904
|
-
buffer[nextWriteIndex] = new
|
|
4055
|
+
buffer[nextWriteIndex] = new ReactPromise(
|
|
3905
4056
|
"fulfilled",
|
|
3906
4057
|
{ done: !1, value: value },
|
|
3907
4058
|
null,
|
|
@@ -4180,7 +4331,12 @@
|
|
|
4180
4331
|
? ((stack = initializingHandler),
|
|
4181
4332
|
(initializingHandler = stack.parent),
|
|
4182
4333
|
stack.errored
|
|
4183
|
-
? ((key = new
|
|
4334
|
+
? ((key = new ReactPromise(
|
|
4335
|
+
"rejected",
|
|
4336
|
+
null,
|
|
4337
|
+
stack.value,
|
|
4338
|
+
response
|
|
4339
|
+
)),
|
|
4184
4340
|
(stack = {
|
|
4185
4341
|
name: getComponentNameFromType(value.type) || "",
|
|
4186
4342
|
owner: value._owner
|
|
@@ -4190,7 +4346,7 @@
|
|
|
4190
4346
|
(key._debugInfo = [stack]),
|
|
4191
4347
|
(value = createLazyChunkWrapper(key)))
|
|
4192
4348
|
: 0 < stack.deps &&
|
|
4193
|
-
((key = new
|
|
4349
|
+
((key = new ReactPromise("blocked", null, null, response)),
|
|
4194
4350
|
(stack.value = value),
|
|
4195
4351
|
(stack.chunk = key),
|
|
4196
4352
|
(value = Object.freeze.bind(Object, value.props)),
|
|
@@ -8694,7 +8850,7 @@
|
|
|
8694
8850
|
} else internalInstance.queue = null;
|
|
8695
8851
|
}
|
|
8696
8852
|
var nextChildren = callRenderInDEV(instance);
|
|
8697
|
-
if (1 === request.status) throw
|
|
8853
|
+
if (1 === request.status) throw null;
|
|
8698
8854
|
instance.props !== resolvedProps &&
|
|
8699
8855
|
(didWarnAboutReassigningProps ||
|
|
8700
8856
|
console.error(
|
|
@@ -8726,7 +8882,7 @@
|
|
|
8726
8882
|
props,
|
|
8727
8883
|
void 0
|
|
8728
8884
|
);
|
|
8729
|
-
if (1 === request.status) throw
|
|
8885
|
+
if (1 === request.status) throw null;
|
|
8730
8886
|
var hasId = 0 !== localIdCounter,
|
|
8731
8887
|
actionStateCount = actionStateCounter,
|
|
8732
8888
|
actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
|
|
@@ -8966,8 +9122,7 @@
|
|
|
8966
9122
|
(boundarySegment.status = 1);
|
|
8967
9123
|
} catch (thrownValue) {
|
|
8968
9124
|
throw (
|
|
8969
|
-
((boundarySegment.status =
|
|
8970
|
-
thrownValue === AbortSigil ? 3 : 4),
|
|
9125
|
+
((boundarySegment.status = 1 === request.status ? 3 : 4),
|
|
8971
9126
|
thrownValue)
|
|
8972
9127
|
);
|
|
8973
9128
|
} finally {
|
|
@@ -9012,7 +9167,7 @@
|
|
|
9012
9167
|
}
|
|
9013
9168
|
} catch (thrownValue$6) {
|
|
9014
9169
|
newBoundary.status = 4;
|
|
9015
|
-
if (
|
|
9170
|
+
if (1 === request.status) {
|
|
9016
9171
|
contentRootSegment.status = 3;
|
|
9017
9172
|
var error = request.fatalError;
|
|
9018
9173
|
} else
|
|
@@ -9173,7 +9328,7 @@
|
|
|
9173
9328
|
return;
|
|
9174
9329
|
case REACT_LAZY_TYPE:
|
|
9175
9330
|
var Component = callLazyInitInDEV(type);
|
|
9176
|
-
if (1 === request.status) throw
|
|
9331
|
+
if (1 === request.status) throw null;
|
|
9177
9332
|
renderElement(request, task, keyPath, Component, props, ref);
|
|
9178
9333
|
return;
|
|
9179
9334
|
}
|
|
@@ -9464,7 +9619,7 @@
|
|
|
9464
9619
|
);
|
|
9465
9620
|
case REACT_LAZY_TYPE:
|
|
9466
9621
|
node = callLazyInitInDEV(node);
|
|
9467
|
-
if (1 === request.status) throw
|
|
9622
|
+
if (1 === request.status) throw null;
|
|
9468
9623
|
renderNodeDestructive(request, task, node, childIndex);
|
|
9469
9624
|
return;
|
|
9470
9625
|
}
|
|
@@ -10386,7 +10541,9 @@
|
|
|
10386
10541
|
erroredReplay(
|
|
10387
10542
|
request$jscomp$0,
|
|
10388
10543
|
request.blockedBoundary,
|
|
10389
|
-
|
|
10544
|
+
1 === request$jscomp$0.status
|
|
10545
|
+
? request$jscomp$0.fatalError
|
|
10546
|
+
: x,
|
|
10390
10547
|
errorInfo,
|
|
10391
10548
|
request.replay.nodes,
|
|
10392
10549
|
request.replay.slots,
|
|
@@ -10431,7 +10588,7 @@
|
|
|
10431
10588
|
var x$jscomp$0 =
|
|
10432
10589
|
thrownValue === SuspenseException
|
|
10433
10590
|
? getSuspendedThenable()
|
|
10434
|
-
:
|
|
10591
|
+
: 1 === request.status
|
|
10435
10592
|
? request.fatalError
|
|
10436
10593
|
: thrownValue;
|
|
10437
10594
|
if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
|
|
@@ -11347,9 +11504,10 @@
|
|
|
11347
11504
|
ReactSharedInternalsServer.TaintRegistryByteLengths,
|
|
11348
11505
|
TaintRegistryPendingRequests =
|
|
11349
11506
|
ReactSharedInternalsServer.TaintRegistryPendingRequests,
|
|
11350
|
-
ABORTING$1 =
|
|
11351
|
-
CLOSING$1 =
|
|
11352
|
-
CLOSED$1 =
|
|
11507
|
+
ABORTING$1 = 11,
|
|
11508
|
+
CLOSING$1 = 12,
|
|
11509
|
+
CLOSED$1 = 13,
|
|
11510
|
+
PRERENDER = 21,
|
|
11353
11511
|
currentRequest = null,
|
|
11354
11512
|
debugID = null,
|
|
11355
11513
|
modelRoot = !1,
|
|
@@ -11358,14 +11516,15 @@
|
|
|
11358
11516
|
ObjectPrototype = Object.prototype,
|
|
11359
11517
|
knownServerReferences = new WeakMap(),
|
|
11360
11518
|
boundCache = new WeakMap(),
|
|
11519
|
+
fakeServerFunctionIdx = 0,
|
|
11361
11520
|
FunctionBind = Function.prototype.bind,
|
|
11362
11521
|
ArraySlice = Array.prototype.slice,
|
|
11363
11522
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
11364
11523
|
ReactSharedInternals =
|
|
11365
11524
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ||
|
|
11366
11525
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
11367
|
-
|
|
11368
|
-
|
|
11526
|
+
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
11527
|
+
ReactPromise.prototype.then = function (resolve, reject) {
|
|
11369
11528
|
switch (this.status) {
|
|
11370
11529
|
case "resolved_model":
|
|
11371
11530
|
initializeModelChunk(this);
|
|
@@ -12319,7 +12478,6 @@
|
|
|
12319
12478
|
},
|
|
12320
12479
|
callLazyInitInDEV =
|
|
12321
12480
|
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
|
|
12322
|
-
AbortSigil = {},
|
|
12323
12481
|
didWarnAboutBadClass = {},
|
|
12324
12482
|
didWarnAboutContextTypes = {},
|
|
12325
12483
|
didWarnAboutContextTypeOnFunctionComponent = {},
|
|
@@ -12333,6 +12491,7 @@
|
|
|
12333
12491
|
stashErrorIdx = 1,
|
|
12334
12492
|
stashedErrors = new Map(),
|
|
12335
12493
|
flightRequest = new RequestInstance$1(
|
|
12494
|
+
20,
|
|
12336
12495
|
children,
|
|
12337
12496
|
null,
|
|
12338
12497
|
function (error) {
|
|
@@ -12345,8 +12504,8 @@
|
|
|
12345
12504
|
void 0,
|
|
12346
12505
|
"Markup",
|
|
12347
12506
|
void 0,
|
|
12348
|
-
|
|
12349
|
-
|
|
12507
|
+
noop$3,
|
|
12508
|
+
noop$3
|
|
12350
12509
|
),
|
|
12351
12510
|
flightResponse = new ResponseInstance(
|
|
12352
12511
|
null,
|
|
@@ -12536,7 +12695,7 @@
|
|
|
12536
12695
|
? triggerErrorOnChunk(error, rowTag)
|
|
12537
12696
|
: rowLength.set(
|
|
12538
12697
|
rowID,
|
|
12539
|
-
new
|
|
12698
|
+
new ReactPromise("rejected", null, rowTag, i)
|
|
12540
12699
|
);
|
|
12541
12700
|
break;
|
|
12542
12701
|
case 84:
|
|
@@ -12545,7 +12704,7 @@
|
|
|
12545
12704
|
? error.reason.enqueueValue(rowLength)
|
|
12546
12705
|
: rowTag.set(
|
|
12547
12706
|
rowID,
|
|
12548
|
-
new
|
|
12707
|
+
new ReactPromise("fulfilled", rowLength, null, i)
|
|
12549
12708
|
);
|
|
12550
12709
|
break;
|
|
12551
12710
|
case 68:
|
|
@@ -12633,7 +12792,7 @@
|
|
|
12633
12792
|
? triggerErrorOnChunk(error, rowTag)
|
|
12634
12793
|
: rowLength.set(
|
|
12635
12794
|
rowID,
|
|
12636
|
-
new
|
|
12795
|
+
new ReactPromise("rejected", null, rowTag, i)
|
|
12637
12796
|
);
|
|
12638
12797
|
break;
|
|
12639
12798
|
default:
|
|
@@ -12642,7 +12801,12 @@
|
|
|
12642
12801
|
? resolveModelChunk(error, rowLength)
|
|
12643
12802
|
: rowTag.set(
|
|
12644
12803
|
rowID,
|
|
12645
|
-
new
|
|
12804
|
+
new ReactPromise(
|
|
12805
|
+
"resolved_model",
|
|
12806
|
+
rowLength,
|
|
12807
|
+
null,
|
|
12808
|
+
i
|
|
12809
|
+
)
|
|
12646
12810
|
);
|
|
12647
12811
|
}
|
|
12648
12812
|
i = lastIdx;
|
|
@@ -12682,5 +12846,5 @@
|
|
|
12682
12846
|
});
|
|
12683
12847
|
});
|
|
12684
12848
|
};
|
|
12685
|
-
exports.version = "19.0.0-experimental-
|
|
12849
|
+
exports.version = "19.0.0-experimental-a960b92c-20240819";
|
|
12686
12850
|
})();
|