react-markup 0.0.0-experimental-ef979d47-20241218 → 0.0.0-experimental-65e06cb7-20241218
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.
|
@@ -118,6 +118,7 @@ var CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
|
|
|
118
118
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
119
119
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
120
120
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
121
|
+
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
|
121
122
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
122
123
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
123
124
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -214,10 +215,6 @@ var HooksDispatcher$1 = {
|
|
|
214
215
|
useImperativeHandle: unsupportedHook,
|
|
215
216
|
useEffect: unsupportedHook,
|
|
216
217
|
useId: useId$1,
|
|
217
|
-
useHostTransitionStatus: unsupportedHook,
|
|
218
|
-
useOptimistic: unsupportedHook,
|
|
219
|
-
useFormState: unsupportedHook,
|
|
220
|
-
useActionState: unsupportedHook,
|
|
221
218
|
useSyncExternalStore: unsupportedHook,
|
|
222
219
|
useCacheRefresh: function () {
|
|
223
220
|
return unsupportedRefresh$1;
|
|
@@ -641,7 +638,19 @@ function serializeThenable(request, task, thenable) {
|
|
|
641
638
|
newTask.id
|
|
642
639
|
);
|
|
643
640
|
case "rejected":
|
|
644
|
-
return
|
|
641
|
+
return (
|
|
642
|
+
(task = thenable.reason),
|
|
643
|
+
"object" === typeof task &&
|
|
644
|
+
null !== task &&
|
|
645
|
+
task.$$typeof === REACT_POSTPONE_TYPE
|
|
646
|
+
? (logPostpone$1(request, task.message, newTask),
|
|
647
|
+
emitPostponeChunk(request, newTask.id))
|
|
648
|
+
: ((task = logRecoverableError$1(request, task, null)),
|
|
649
|
+
emitErrorChunk(request, newTask.id, task)),
|
|
650
|
+
(newTask.status = 4),
|
|
651
|
+
request.abortableTasks.delete(newTask),
|
|
652
|
+
newTask.id
|
|
653
|
+
);
|
|
645
654
|
default:
|
|
646
655
|
if (12 === request.status)
|
|
647
656
|
return (
|
|
@@ -674,7 +683,16 @@ function serializeThenable(request, task, thenable) {
|
|
|
674
683
|
},
|
|
675
684
|
function (reason) {
|
|
676
685
|
0 === newTask.status &&
|
|
677
|
-
(
|
|
686
|
+
("object" === typeof reason &&
|
|
687
|
+
null !== reason &&
|
|
688
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
689
|
+
? (logPostpone$1(request, reason.message, newTask),
|
|
690
|
+
emitPostponeChunk(request, newTask.id))
|
|
691
|
+
: ((reason = logRecoverableError$1(request, reason, newTask)),
|
|
692
|
+
emitErrorChunk(request, newTask.id, reason)),
|
|
693
|
+
(newTask.status = 4),
|
|
694
|
+
request.abortableTasks.delete(newTask),
|
|
695
|
+
enqueueFlush(request));
|
|
678
696
|
}
|
|
679
697
|
);
|
|
680
698
|
return newTask.id;
|
|
@@ -695,26 +713,43 @@ function serializeReadableStream(request, task, stream) {
|
|
|
695
713
|
emitChunk(request, streamTask, streamTask.model),
|
|
696
714
|
enqueueFlush(request),
|
|
697
715
|
reader.read().then(progress, error);
|
|
698
|
-
} catch (x$
|
|
699
|
-
error(x$
|
|
716
|
+
} catch (x$11) {
|
|
717
|
+
error(x$11);
|
|
700
718
|
}
|
|
701
719
|
}
|
|
702
720
|
function error(reason) {
|
|
703
|
-
aborted
|
|
704
|
-
|
|
705
|
-
request.abortListeners.delete(abortStream)
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
721
|
+
if (!aborted) {
|
|
722
|
+
aborted = !0;
|
|
723
|
+
request.abortListeners.delete(abortStream);
|
|
724
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
725
|
+
emitErrorChunk(request, streamTask.id, digest);
|
|
726
|
+
enqueueFlush(request);
|
|
727
|
+
reader.cancel(reason).then(error, error);
|
|
728
|
+
}
|
|
709
729
|
}
|
|
710
730
|
function abortStream(reason) {
|
|
711
|
-
aborted
|
|
712
|
-
|
|
713
|
-
request.abortListeners.delete(abortStream)
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
731
|
+
if (!aborted) {
|
|
732
|
+
aborted = !0;
|
|
733
|
+
request.abortListeners.delete(abortStream);
|
|
734
|
+
if (
|
|
735
|
+
"object" === typeof reason &&
|
|
736
|
+
null !== reason &&
|
|
737
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
738
|
+
)
|
|
739
|
+
logPostpone$1(request, reason.message, streamTask),
|
|
740
|
+
21 === request.type
|
|
741
|
+
? request.pendingChunks--
|
|
742
|
+
: (emitPostponeChunk(request, streamTask.id),
|
|
743
|
+
enqueueFlush(request));
|
|
744
|
+
else {
|
|
745
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
746
|
+
21 === request.type
|
|
747
|
+
? request.pendingChunks--
|
|
748
|
+
: (emitErrorChunk(request, streamTask.id, digest),
|
|
749
|
+
enqueueFlush(request));
|
|
750
|
+
}
|
|
751
|
+
reader.cancel(reason).then(error, error);
|
|
752
|
+
}
|
|
718
753
|
}
|
|
719
754
|
var supportsBYOB = stream.supportsBYOB;
|
|
720
755
|
if (void 0 === supportsBYOB)
|
|
@@ -769,28 +804,45 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
769
804
|
emitChunk(request, streamTask, streamTask.model),
|
|
770
805
|
enqueueFlush(request),
|
|
771
806
|
iterator.next().then(progress, error);
|
|
772
|
-
} catch (x$
|
|
773
|
-
error(x$
|
|
807
|
+
} catch (x$12) {
|
|
808
|
+
error(x$12);
|
|
774
809
|
}
|
|
775
810
|
}
|
|
776
811
|
function error(reason) {
|
|
777
|
-
aborted
|
|
778
|
-
|
|
779
|
-
request.abortListeners.delete(abortIterable)
|
|
780
|
-
|
|
781
|
-
|
|
812
|
+
if (!aborted) {
|
|
813
|
+
aborted = !0;
|
|
814
|
+
request.abortListeners.delete(abortIterable);
|
|
815
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
816
|
+
emitErrorChunk(request, streamTask.id, digest);
|
|
817
|
+
enqueueFlush(request);
|
|
782
818
|
"function" === typeof iterator.throw &&
|
|
783
|
-
iterator.throw(reason).then(error, error)
|
|
819
|
+
iterator.throw(reason).then(error, error);
|
|
820
|
+
}
|
|
784
821
|
}
|
|
785
822
|
function abortIterable(reason) {
|
|
786
|
-
aborted
|
|
787
|
-
|
|
788
|
-
request.abortListeners.delete(abortIterable)
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
823
|
+
if (!aborted) {
|
|
824
|
+
aborted = !0;
|
|
825
|
+
request.abortListeners.delete(abortIterable);
|
|
826
|
+
if (
|
|
827
|
+
"object" === typeof reason &&
|
|
828
|
+
null !== reason &&
|
|
829
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
830
|
+
)
|
|
831
|
+
logPostpone$1(request, reason.message, streamTask),
|
|
832
|
+
21 === request.type
|
|
833
|
+
? request.pendingChunks--
|
|
834
|
+
: (emitPostponeChunk(request, streamTask.id),
|
|
835
|
+
enqueueFlush(request));
|
|
836
|
+
else {
|
|
837
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
838
|
+
21 === request.type
|
|
839
|
+
? request.pendingChunks--
|
|
840
|
+
: (emitErrorChunk(request, streamTask.id, digest),
|
|
841
|
+
enqueueFlush(request));
|
|
842
|
+
}
|
|
792
843
|
"function" === typeof iterator.throw &&
|
|
793
|
-
iterator.throw(reason).then(error, error)
|
|
844
|
+
iterator.throw(reason).then(error, error);
|
|
845
|
+
}
|
|
794
846
|
}
|
|
795
847
|
iterable = iterable === iterator;
|
|
796
848
|
var streamTask = createTask(
|
|
@@ -837,57 +889,63 @@ function createLazyWrapperAroundWakeable(wakeable) {
|
|
|
837
889
|
return { $$typeof: REACT_LAZY_TYPE, _payload: wakeable, _init: readThenable };
|
|
838
890
|
}
|
|
839
891
|
function voidHandler() {}
|
|
840
|
-
function processServerComponentReturnValue(request, task, Component, result) {
|
|
841
|
-
if (
|
|
842
|
-
"object" !== typeof result ||
|
|
843
|
-
null === result ||
|
|
844
|
-
result.$$typeof === CLIENT_REFERENCE_TAG$1
|
|
845
|
-
)
|
|
846
|
-
return result;
|
|
847
|
-
if ("function" === typeof result.then)
|
|
848
|
-
return "fulfilled" === result.status
|
|
849
|
-
? result.value
|
|
850
|
-
: createLazyWrapperAroundWakeable(result);
|
|
851
|
-
var iteratorFn = getIteratorFn(result);
|
|
852
|
-
return iteratorFn
|
|
853
|
-
? ((request = {}),
|
|
854
|
-
(request[Symbol.iterator] = function () {
|
|
855
|
-
return iteratorFn.call(result);
|
|
856
|
-
}),
|
|
857
|
-
request)
|
|
858
|
-
: "function" !== typeof result[ASYNC_ITERATOR] ||
|
|
859
|
-
("function" === typeof ReadableStream &&
|
|
860
|
-
result instanceof ReadableStream)
|
|
861
|
-
? result
|
|
862
|
-
: ((request = {}),
|
|
863
|
-
(request[ASYNC_ITERATOR] = function () {
|
|
864
|
-
return result[ASYNC_ITERATOR]();
|
|
865
|
-
}),
|
|
866
|
-
request);
|
|
867
|
-
}
|
|
868
892
|
function renderFunctionComponent$1(request, task, key, Component, props) {
|
|
869
893
|
var prevThenableState = task.thenableState;
|
|
870
894
|
task.thenableState = null;
|
|
871
895
|
thenableIndexCounter$1 = 0;
|
|
872
896
|
thenableState$1 = prevThenableState;
|
|
873
|
-
|
|
897
|
+
Component = Component(props, void 0);
|
|
874
898
|
if (12 === request.status)
|
|
875
899
|
throw (
|
|
876
|
-
("object" === typeof
|
|
877
|
-
null !==
|
|
878
|
-
"function" === typeof
|
|
879
|
-
|
|
880
|
-
|
|
900
|
+
("object" === typeof Component &&
|
|
901
|
+
null !== Component &&
|
|
902
|
+
"function" === typeof Component.then &&
|
|
903
|
+
Component.$$typeof !== CLIENT_REFERENCE_TAG$1 &&
|
|
904
|
+
Component.then(voidHandler, voidHandler),
|
|
881
905
|
null)
|
|
882
906
|
);
|
|
883
|
-
|
|
884
|
-
|
|
907
|
+
if (
|
|
908
|
+
"object" === typeof Component &&
|
|
909
|
+
null !== Component &&
|
|
910
|
+
Component.$$typeof !== CLIENT_REFERENCE_TAG$1
|
|
911
|
+
) {
|
|
912
|
+
if ("function" === typeof Component.then) {
|
|
913
|
+
props = Component;
|
|
914
|
+
if ("fulfilled" === props.status) return props.value;
|
|
915
|
+
Component = createLazyWrapperAroundWakeable(Component);
|
|
916
|
+
}
|
|
917
|
+
var iteratorFn = getIteratorFn(Component);
|
|
918
|
+
if (iteratorFn) {
|
|
919
|
+
var iterableChild = Component;
|
|
920
|
+
Component = {};
|
|
921
|
+
Component =
|
|
922
|
+
((Component[Symbol.iterator] = function () {
|
|
923
|
+
return iteratorFn.call(iterableChild);
|
|
924
|
+
}),
|
|
925
|
+
Component);
|
|
926
|
+
} else if (
|
|
927
|
+
!(
|
|
928
|
+
"function" !== typeof Component[ASYNC_ITERATOR] ||
|
|
929
|
+
("function" === typeof ReadableStream &&
|
|
930
|
+
Component instanceof ReadableStream)
|
|
931
|
+
)
|
|
932
|
+
) {
|
|
933
|
+
var iterableChild$13 = Component;
|
|
934
|
+
Component = {};
|
|
935
|
+
Component =
|
|
936
|
+
((Component[ASYNC_ITERATOR] = function () {
|
|
937
|
+
return iterableChild$13[ASYNC_ITERATOR]();
|
|
938
|
+
}),
|
|
939
|
+
Component);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
props = task.keyPath;
|
|
885
943
|
prevThenableState = task.implicitSlot;
|
|
886
944
|
null !== key
|
|
887
|
-
? (task.keyPath = null ===
|
|
888
|
-
: null ===
|
|
889
|
-
request = renderModelDestructive(request, task, emptyRoot, "",
|
|
890
|
-
task.keyPath =
|
|
945
|
+
? (task.keyPath = null === props ? key : props + "," + key)
|
|
946
|
+
: null === props && (task.implicitSlot = !0);
|
|
947
|
+
request = renderModelDestructive(request, task, emptyRoot, "", Component);
|
|
948
|
+
task.keyPath = props;
|
|
891
949
|
task.implicitSlot = prevThenableState;
|
|
892
950
|
return request;
|
|
893
951
|
}
|
|
@@ -983,83 +1041,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
|
|
|
983
1041
|
return pingTask$1(request, task);
|
|
984
1042
|
},
|
|
985
1043
|
toJSON: function (parentPropertyName, value) {
|
|
986
|
-
|
|
987
|
-
prevImplicitSlot = task.implicitSlot;
|
|
988
|
-
try {
|
|
989
|
-
var JSCompiler_inline_result = renderModelDestructive(
|
|
990
|
-
request,
|
|
991
|
-
task,
|
|
992
|
-
this,
|
|
993
|
-
parentPropertyName,
|
|
994
|
-
value
|
|
995
|
-
);
|
|
996
|
-
} catch (thrownValue) {
|
|
997
|
-
if (
|
|
998
|
-
((parentPropertyName = task.model),
|
|
999
|
-
(parentPropertyName =
|
|
1000
|
-
"object" === typeof parentPropertyName &&
|
|
1001
|
-
null !== parentPropertyName &&
|
|
1002
|
-
(parentPropertyName.$$typeof === REACT_ELEMENT_TYPE ||
|
|
1003
|
-
parentPropertyName.$$typeof === REACT_LAZY_TYPE)),
|
|
1004
|
-
12 === request.status)
|
|
1005
|
-
)
|
|
1006
|
-
(task.status = 3),
|
|
1007
|
-
21 === request.type
|
|
1008
|
-
? ((prevKeyPath = request.nextChunkId++),
|
|
1009
|
-
(prevKeyPath = parentPropertyName
|
|
1010
|
-
? "$L" + prevKeyPath.toString(16)
|
|
1011
|
-
: serializeByValueID$1(prevKeyPath)),
|
|
1012
|
-
(JSCompiler_inline_result = prevKeyPath))
|
|
1013
|
-
: ((prevKeyPath = request.fatalError),
|
|
1014
|
-
(JSCompiler_inline_result = parentPropertyName
|
|
1015
|
-
? "$L" + prevKeyPath.toString(16)
|
|
1016
|
-
: serializeByValueID$1(prevKeyPath)));
|
|
1017
|
-
else if (
|
|
1018
|
-
((value =
|
|
1019
|
-
thrownValue === SuspenseException$1
|
|
1020
|
-
? getSuspendedThenable$1()
|
|
1021
|
-
: thrownValue),
|
|
1022
|
-
"object" === typeof value &&
|
|
1023
|
-
null !== value &&
|
|
1024
|
-
"function" === typeof value.then)
|
|
1025
|
-
) {
|
|
1026
|
-
JSCompiler_inline_result = createTask(
|
|
1027
|
-
request,
|
|
1028
|
-
task.model,
|
|
1029
|
-
task.keyPath,
|
|
1030
|
-
task.implicitSlot,
|
|
1031
|
-
request.abortableTasks
|
|
1032
|
-
);
|
|
1033
|
-
var ping = JSCompiler_inline_result.ping;
|
|
1034
|
-
value.then(ping, ping);
|
|
1035
|
-
JSCompiler_inline_result.thenableState =
|
|
1036
|
-
getThenableStateAfterSuspending$1();
|
|
1037
|
-
task.keyPath = prevKeyPath;
|
|
1038
|
-
task.implicitSlot = prevImplicitSlot;
|
|
1039
|
-
JSCompiler_inline_result = parentPropertyName
|
|
1040
|
-
? "$L" + JSCompiler_inline_result.id.toString(16)
|
|
1041
|
-
: serializeByValueID$1(JSCompiler_inline_result.id);
|
|
1042
|
-
} else
|
|
1043
|
-
(task.keyPath = prevKeyPath),
|
|
1044
|
-
(task.implicitSlot = prevImplicitSlot),
|
|
1045
|
-
request.pendingChunks++,
|
|
1046
|
-
(prevKeyPath = request.nextChunkId++),
|
|
1047
|
-
"object" === typeof value &&
|
|
1048
|
-
null !== value &&
|
|
1049
|
-
value.$$typeof === REACT_POSTPONE_TYPE
|
|
1050
|
-
? (logPostpone$1(request, value.message, task),
|
|
1051
|
-
emitPostponeChunk(request, prevKeyPath))
|
|
1052
|
-
: ((prevImplicitSlot = logRecoverableError$1(
|
|
1053
|
-
request,
|
|
1054
|
-
value,
|
|
1055
|
-
task
|
|
1056
|
-
)),
|
|
1057
|
-
emitErrorChunk(request, prevKeyPath, prevImplicitSlot)),
|
|
1058
|
-
(JSCompiler_inline_result = parentPropertyName
|
|
1059
|
-
? "$L" + prevKeyPath.toString(16)
|
|
1060
|
-
: serializeByValueID$1(prevKeyPath));
|
|
1061
|
-
}
|
|
1062
|
-
return JSCompiler_inline_result;
|
|
1044
|
+
return renderModel(request, task, this, parentPropertyName, value);
|
|
1063
1045
|
},
|
|
1064
1046
|
thenableState: null
|
|
1065
1047
|
};
|
|
@@ -1102,21 +1084,37 @@ function serializeBlob(request, blob) {
|
|
|
1102
1084
|
);
|
|
1103
1085
|
}
|
|
1104
1086
|
function error(reason) {
|
|
1105
|
-
aborted
|
|
1106
|
-
|
|
1107
|
-
request.abortListeners.delete(abortBlob)
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1087
|
+
if (!aborted) {
|
|
1088
|
+
aborted = !0;
|
|
1089
|
+
request.abortListeners.delete(abortBlob);
|
|
1090
|
+
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1091
|
+
emitErrorChunk(request, newTask.id, digest);
|
|
1092
|
+
enqueueFlush(request);
|
|
1093
|
+
reader.cancel(reason).then(error, error);
|
|
1094
|
+
}
|
|
1111
1095
|
}
|
|
1112
1096
|
function abortBlob(reason) {
|
|
1113
|
-
aborted
|
|
1114
|
-
|
|
1115
|
-
request.abortListeners.delete(abortBlob)
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1097
|
+
if (!aborted) {
|
|
1098
|
+
aborted = !0;
|
|
1099
|
+
request.abortListeners.delete(abortBlob);
|
|
1100
|
+
if (
|
|
1101
|
+
"object" === typeof reason &&
|
|
1102
|
+
null !== reason &&
|
|
1103
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1104
|
+
)
|
|
1105
|
+
logPostpone$1(request, reason.message, newTask),
|
|
1106
|
+
21 === request.type
|
|
1107
|
+
? request.pendingChunks--
|
|
1108
|
+
: (emitPostponeChunk(request, newTask.id), enqueueFlush(request));
|
|
1109
|
+
else {
|
|
1110
|
+
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1111
|
+
21 === request.type
|
|
1112
|
+
? request.pendingChunks--
|
|
1113
|
+
: (emitErrorChunk(request, newTask.id, digest),
|
|
1114
|
+
enqueueFlush(request));
|
|
1115
|
+
}
|
|
1116
|
+
reader.cancel(reason).then(error, error);
|
|
1117
|
+
}
|
|
1120
1118
|
}
|
|
1121
1119
|
var model = [blob.type],
|
|
1122
1120
|
newTask = createTask(request, model, null, !1, request.abortableTasks),
|
|
@@ -1127,6 +1125,76 @@ function serializeBlob(request, blob) {
|
|
|
1127
1125
|
return "$B" + newTask.id.toString(16);
|
|
1128
1126
|
}
|
|
1129
1127
|
var modelRoot = !1;
|
|
1128
|
+
function renderModel(request, task, parent, key, value) {
|
|
1129
|
+
var prevKeyPath = task.keyPath,
|
|
1130
|
+
prevImplicitSlot = task.implicitSlot;
|
|
1131
|
+
try {
|
|
1132
|
+
return renderModelDestructive(request, task, parent, key, value);
|
|
1133
|
+
} catch (thrownValue) {
|
|
1134
|
+
parent = task.model;
|
|
1135
|
+
parent =
|
|
1136
|
+
"object" === typeof parent &&
|
|
1137
|
+
null !== parent &&
|
|
1138
|
+
(parent.$$typeof === REACT_ELEMENT_TYPE ||
|
|
1139
|
+
parent.$$typeof === REACT_LAZY_TYPE);
|
|
1140
|
+
if (12 === request.status) {
|
|
1141
|
+
task.status = 3;
|
|
1142
|
+
if (21 === request.type)
|
|
1143
|
+
return (
|
|
1144
|
+
(task = request.nextChunkId++),
|
|
1145
|
+
(task = parent
|
|
1146
|
+
? "$L" + task.toString(16)
|
|
1147
|
+
: serializeByValueID$1(task)),
|
|
1148
|
+
task
|
|
1149
|
+
);
|
|
1150
|
+
task = request.fatalError;
|
|
1151
|
+
return parent ? "$L" + task.toString(16) : serializeByValueID$1(task);
|
|
1152
|
+
}
|
|
1153
|
+
key =
|
|
1154
|
+
thrownValue === SuspenseException$1
|
|
1155
|
+
? getSuspendedThenable$1()
|
|
1156
|
+
: thrownValue;
|
|
1157
|
+
if ("object" === typeof key && null !== key) {
|
|
1158
|
+
if ("function" === typeof key.then)
|
|
1159
|
+
return (
|
|
1160
|
+
(request = createTask(
|
|
1161
|
+
request,
|
|
1162
|
+
task.model,
|
|
1163
|
+
task.keyPath,
|
|
1164
|
+
task.implicitSlot,
|
|
1165
|
+
request.abortableTasks
|
|
1166
|
+
)),
|
|
1167
|
+
(value = request.ping),
|
|
1168
|
+
key.then(value, value),
|
|
1169
|
+
(request.thenableState = getThenableStateAfterSuspending$1()),
|
|
1170
|
+
(task.keyPath = prevKeyPath),
|
|
1171
|
+
(task.implicitSlot = prevImplicitSlot),
|
|
1172
|
+
parent
|
|
1173
|
+
? "$L" + request.id.toString(16)
|
|
1174
|
+
: serializeByValueID$1(request.id)
|
|
1175
|
+
);
|
|
1176
|
+
if (key.$$typeof === REACT_POSTPONE_TYPE)
|
|
1177
|
+
return (
|
|
1178
|
+
request.pendingChunks++,
|
|
1179
|
+
(value = request.nextChunkId++),
|
|
1180
|
+
logPostpone$1(request, key.message, task),
|
|
1181
|
+
emitPostponeChunk(request, value),
|
|
1182
|
+
(task.keyPath = prevKeyPath),
|
|
1183
|
+
(task.implicitSlot = prevImplicitSlot),
|
|
1184
|
+
parent ? "$L" + value.toString(16) : serializeByValueID$1(value)
|
|
1185
|
+
);
|
|
1186
|
+
}
|
|
1187
|
+
task.keyPath = prevKeyPath;
|
|
1188
|
+
task.implicitSlot = prevImplicitSlot;
|
|
1189
|
+
request.pendingChunks++;
|
|
1190
|
+
prevKeyPath = request.nextChunkId++;
|
|
1191
|
+
task = logRecoverableError$1(request, key, task);
|
|
1192
|
+
emitErrorChunk(request, prevKeyPath, task);
|
|
1193
|
+
return parent
|
|
1194
|
+
? "$L" + prevKeyPath.toString(16)
|
|
1195
|
+
: serializeByValueID$1(prevKeyPath);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1130
1198
|
function renderModelDestructive(
|
|
1131
1199
|
request,
|
|
1132
1200
|
task,
|
|
@@ -1514,17 +1582,6 @@ function emitChunk(request, task, value) {
|
|
|
1514
1582
|
: ((value = stringify(value, task.toJSON)),
|
|
1515
1583
|
emitModelChunk(request, task.id, value));
|
|
1516
1584
|
}
|
|
1517
|
-
function erroredTask$1(request, task, error) {
|
|
1518
|
-
request.abortableTasks.delete(task);
|
|
1519
|
-
task.status = 4;
|
|
1520
|
-
"object" === typeof error &&
|
|
1521
|
-
null !== error &&
|
|
1522
|
-
error.$$typeof === REACT_POSTPONE_TYPE
|
|
1523
|
-
? (logPostpone$1(request, error.message, task),
|
|
1524
|
-
emitPostponeChunk(request, task.id))
|
|
1525
|
-
: ((error = logRecoverableError$1(request, error, task)),
|
|
1526
|
-
emitErrorChunk(request, task.id, error));
|
|
1527
|
-
}
|
|
1528
1585
|
var emptyRoot = {};
|
|
1529
1586
|
function retryTask$1(request, task) {
|
|
1530
1587
|
if (0 === task.status) {
|
|
@@ -1570,16 +1627,26 @@ function retryTask$1(request, task) {
|
|
|
1570
1627
|
thrownValue === SuspenseException$1
|
|
1571
1628
|
? getSuspendedThenable$1()
|
|
1572
1629
|
: thrownValue;
|
|
1573
|
-
if (
|
|
1574
|
-
"
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
x
|
|
1582
|
-
|
|
1630
|
+
if ("object" === typeof x && null !== x) {
|
|
1631
|
+
if ("function" === typeof x.then) {
|
|
1632
|
+
task.status = 0;
|
|
1633
|
+
task.thenableState = getThenableStateAfterSuspending$1();
|
|
1634
|
+
var ping = task.ping;
|
|
1635
|
+
x.then(ping, ping);
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
if (x.$$typeof === REACT_POSTPONE_TYPE) {
|
|
1639
|
+
request.abortableTasks.delete(task);
|
|
1640
|
+
task.status = 4;
|
|
1641
|
+
logPostpone$1(request, x.message, task);
|
|
1642
|
+
emitPostponeChunk(request, task.id);
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
request.abortableTasks.delete(task);
|
|
1647
|
+
task.status = 4;
|
|
1648
|
+
var digest = logRecoverableError$1(request, x, task);
|
|
1649
|
+
emitErrorChunk(request, task.id, digest);
|
|
1583
1650
|
}
|
|
1584
1651
|
} finally {
|
|
1585
1652
|
}
|
|
@@ -1679,24 +1746,25 @@ function abort$1(request, reason) {
|
|
|
1679
1746
|
11 >= request.status && (request.status = 12);
|
|
1680
1747
|
var abortableTasks = request.abortableTasks;
|
|
1681
1748
|
if (0 < abortableTasks.size) {
|
|
1682
|
-
if (
|
|
1683
|
-
abortableTasks.forEach(function (task) {
|
|
1684
|
-
5 !== task.status && ((task.status = 3), request.pendingChunks--);
|
|
1685
|
-
});
|
|
1686
|
-
else if (
|
|
1749
|
+
if (
|
|
1687
1750
|
"object" === typeof reason &&
|
|
1688
1751
|
null !== reason &&
|
|
1689
1752
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1690
|
-
)
|
|
1691
|
-
logPostpone$1(request, reason.message, null)
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1753
|
+
)
|
|
1754
|
+
if ((logPostpone$1(request, reason.message, null), 21 === request.type))
|
|
1755
|
+
abortableTasks.forEach(function (task) {
|
|
1756
|
+
5 !== task.status && ((task.status = 3), request.pendingChunks--);
|
|
1757
|
+
});
|
|
1758
|
+
else {
|
|
1759
|
+
var errorId = request.nextChunkId++;
|
|
1760
|
+
request.fatalError = errorId;
|
|
1761
|
+
request.pendingChunks++;
|
|
1762
|
+
emitPostponeChunk(request, errorId, reason);
|
|
1763
|
+
abortableTasks.forEach(function (task) {
|
|
1764
|
+
return abortTask$1(task, request, errorId);
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
else {
|
|
1700
1768
|
var error =
|
|
1701
1769
|
void 0 === reason
|
|
1702
1770
|
? Error("The render was aborted by the server without a reason.")
|
|
@@ -1705,14 +1773,20 @@ function abort$1(request, reason) {
|
|
|
1705
1773
|
"function" === typeof reason.then
|
|
1706
1774
|
? Error("The render was aborted by the server with a promise.")
|
|
1707
1775
|
: reason,
|
|
1708
|
-
digest = logRecoverableError$1(request, error, null)
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1776
|
+
digest = logRecoverableError$1(request, error, null);
|
|
1777
|
+
if (21 === request.type)
|
|
1778
|
+
abortableTasks.forEach(function (task) {
|
|
1779
|
+
5 !== task.status && ((task.status = 3), request.pendingChunks--);
|
|
1780
|
+
});
|
|
1781
|
+
else {
|
|
1782
|
+
var errorId$29 = request.nextChunkId++;
|
|
1783
|
+
request.fatalError = errorId$29;
|
|
1784
|
+
request.pendingChunks++;
|
|
1785
|
+
emitErrorChunk(request, errorId$29, digest, error);
|
|
1786
|
+
abortableTasks.forEach(function (task) {
|
|
1787
|
+
return abortTask$1(task, request, errorId$29);
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1716
1790
|
}
|
|
1717
1791
|
abortableTasks.clear();
|
|
1718
1792
|
var onAllReady = request.onAllReady;
|
|
@@ -1720,7 +1794,7 @@ function abort$1(request, reason) {
|
|
|
1720
1794
|
}
|
|
1721
1795
|
var abortListeners = request.abortListeners;
|
|
1722
1796
|
if (0 < abortListeners.size) {
|
|
1723
|
-
var error$
|
|
1797
|
+
var error$30 =
|
|
1724
1798
|
"object" === typeof reason &&
|
|
1725
1799
|
null !== reason &&
|
|
1726
1800
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
@@ -1733,15 +1807,15 @@ function abort$1(request, reason) {
|
|
|
1733
1807
|
? Error("The render was aborted by the server with a promise.")
|
|
1734
1808
|
: reason;
|
|
1735
1809
|
abortListeners.forEach(function (callback) {
|
|
1736
|
-
return callback(error$
|
|
1810
|
+
return callback(error$30);
|
|
1737
1811
|
});
|
|
1738
1812
|
abortListeners.clear();
|
|
1739
1813
|
}
|
|
1740
1814
|
null !== request.destination &&
|
|
1741
1815
|
flushCompletedChunks(request, request.destination);
|
|
1742
|
-
} catch (error$
|
|
1743
|
-
logRecoverableError$1(request, error$
|
|
1744
|
-
fatalError$1(request, error$
|
|
1816
|
+
} catch (error$31) {
|
|
1817
|
+
logRecoverableError$1(request, error$31, null),
|
|
1818
|
+
fatalError$1(request, error$31);
|
|
1745
1819
|
}
|
|
1746
1820
|
}
|
|
1747
1821
|
var bind$1 = Function.prototype.bind,
|
|
@@ -1848,11 +1922,11 @@ function processReply(
|
|
|
1848
1922
|
0 === pendingParts && resolve(data);
|
|
1849
1923
|
} else
|
|
1850
1924
|
try {
|
|
1851
|
-
var partJSON$
|
|
1852
|
-
data.append(formFieldPrefix + streamId, partJSON$
|
|
1925
|
+
var partJSON$32 = JSON.stringify(entry.value, resolveToJSON);
|
|
1926
|
+
data.append(formFieldPrefix + streamId, partJSON$32);
|
|
1853
1927
|
iterator.next().then(progress, reject);
|
|
1854
|
-
} catch (x$
|
|
1855
|
-
reject(x$
|
|
1928
|
+
} catch (x$33) {
|
|
1929
|
+
reject(x$33);
|
|
1856
1930
|
}
|
|
1857
1931
|
}
|
|
1858
1932
|
null === formData && (formData = new FormData());
|
|
@@ -1897,20 +1971,20 @@ function processReply(
|
|
|
1897
1971
|
"function" === typeof x.then
|
|
1898
1972
|
) {
|
|
1899
1973
|
pendingParts++;
|
|
1900
|
-
var lazyId$
|
|
1974
|
+
var lazyId$34 = nextPartId++;
|
|
1901
1975
|
parentReference = function () {
|
|
1902
1976
|
try {
|
|
1903
|
-
var partJSON$
|
|
1904
|
-
data$
|
|
1905
|
-
data$
|
|
1977
|
+
var partJSON$35 = serializeModel(value, lazyId$34),
|
|
1978
|
+
data$36 = formData;
|
|
1979
|
+
data$36.append(formFieldPrefix + lazyId$34, partJSON$35);
|
|
1906
1980
|
pendingParts--;
|
|
1907
|
-
0 === pendingParts && resolve(data$
|
|
1981
|
+
0 === pendingParts && resolve(data$36);
|
|
1908
1982
|
} catch (reason) {
|
|
1909
1983
|
reject(reason);
|
|
1910
1984
|
}
|
|
1911
1985
|
};
|
|
1912
1986
|
x.then(parentReference, parentReference);
|
|
1913
|
-
return "$" + lazyId$
|
|
1987
|
+
return "$" + lazyId$34.toString(16);
|
|
1914
1988
|
}
|
|
1915
1989
|
reject(x);
|
|
1916
1990
|
return null;
|
|
@@ -1924,9 +1998,9 @@ function processReply(
|
|
|
1924
1998
|
var promiseId = nextPartId++;
|
|
1925
1999
|
value.then(function (partValue) {
|
|
1926
2000
|
try {
|
|
1927
|
-
var partJSON$
|
|
2001
|
+
var partJSON$38 = serializeModel(partValue, promiseId);
|
|
1928
2002
|
partValue = formData;
|
|
1929
|
-
partValue.append(formFieldPrefix + promiseId, partJSON$
|
|
2003
|
+
partValue.append(formFieldPrefix + promiseId, partJSON$38);
|
|
1930
2004
|
pendingParts--;
|
|
1931
2005
|
0 === pendingParts && resolve(partValue);
|
|
1932
2006
|
} catch (reason) {
|
|
@@ -1950,11 +2024,11 @@ function processReply(
|
|
|
1950
2024
|
if (isArrayImpl(value)) return value;
|
|
1951
2025
|
if (value instanceof FormData) {
|
|
1952
2026
|
null === formData && (formData = new FormData());
|
|
1953
|
-
var data$
|
|
2027
|
+
var data$42 = formData;
|
|
1954
2028
|
key = nextPartId++;
|
|
1955
|
-
var prefix$
|
|
2029
|
+
var prefix$43 = formFieldPrefix + key + "_";
|
|
1956
2030
|
value.forEach(function (originalValue, originalKey) {
|
|
1957
|
-
data$
|
|
2031
|
+
data$42.append(prefix$43 + originalKey, originalValue);
|
|
1958
2032
|
});
|
|
1959
2033
|
return "$K" + key.toString(16);
|
|
1960
2034
|
}
|
|
@@ -2813,8 +2887,8 @@ function startReadableStream(response, id, type) {
|
|
|
2813
2887
|
(previousBlockedChunk = chunk));
|
|
2814
2888
|
} else {
|
|
2815
2889
|
chunk = previousBlockedChunk;
|
|
2816
|
-
var chunk$
|
|
2817
|
-
chunk$
|
|
2890
|
+
var chunk$63 = createPendingChunk(response);
|
|
2891
|
+
chunk$63.then(
|
|
2818
2892
|
function (v) {
|
|
2819
2893
|
return controller.enqueue(v);
|
|
2820
2894
|
},
|
|
@@ -2822,10 +2896,10 @@ function startReadableStream(response, id, type) {
|
|
|
2822
2896
|
return controller.error(e);
|
|
2823
2897
|
}
|
|
2824
2898
|
);
|
|
2825
|
-
previousBlockedChunk = chunk$
|
|
2899
|
+
previousBlockedChunk = chunk$63;
|
|
2826
2900
|
chunk.then(function () {
|
|
2827
|
-
previousBlockedChunk === chunk$
|
|
2828
|
-
resolveModelChunk(chunk$
|
|
2901
|
+
previousBlockedChunk === chunk$63 && (previousBlockedChunk = null);
|
|
2902
|
+
resolveModelChunk(chunk$63, json);
|
|
2829
2903
|
});
|
|
2830
2904
|
}
|
|
2831
2905
|
},
|
|
@@ -3710,8 +3784,8 @@ function pushAttribute(target, name, value) {
|
|
|
3710
3784
|
case "symbol":
|
|
3711
3785
|
return;
|
|
3712
3786
|
case "boolean":
|
|
3713
|
-
var prefix$
|
|
3714
|
-
if ("data-" !== prefix$
|
|
3787
|
+
var prefix$73 = name.toLowerCase().slice(0, 5);
|
|
3788
|
+
if ("data-" !== prefix$73 && "aria-" !== prefix$73) return;
|
|
3715
3789
|
}
|
|
3716
3790
|
target.push(" ", name, '="', escapeTextForBrowser(value), '"');
|
|
3717
3791
|
}
|
|
@@ -4446,10 +4520,10 @@ function pushStartInstance$1(
|
|
|
4446
4520
|
styleQueue.sheets.set(href, resource);
|
|
4447
4521
|
hoistableState && hoistableState.stylesheets.add(resource);
|
|
4448
4522
|
} else if (styleQueue) {
|
|
4449
|
-
var resource$
|
|
4450
|
-
resource$
|
|
4523
|
+
var resource$74 = styleQueue.sheets.get(href);
|
|
4524
|
+
resource$74 &&
|
|
4451
4525
|
hoistableState &&
|
|
4452
|
-
hoistableState.stylesheets.add(resource$
|
|
4526
|
+
hoistableState.stylesheets.add(resource$74);
|
|
4453
4527
|
}
|
|
4454
4528
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
4455
4529
|
JSCompiler_inline_result$jscomp$4 = null;
|
|
@@ -5679,10 +5753,10 @@ function useActionState(action, initialState, permalink) {
|
|
|
5679
5753
|
var nextPostbackStateKey = null,
|
|
5680
5754
|
componentKeyPath = currentlyRenderingKeyPath;
|
|
5681
5755
|
request = request.formState;
|
|
5682
|
-
var isSignatureEqual$
|
|
5683
|
-
if (null !== request && "function" === typeof isSignatureEqual$
|
|
5756
|
+
var isSignatureEqual$77 = action.$$IS_SIGNATURE_EQUAL;
|
|
5757
|
+
if (null !== request && "function" === typeof isSignatureEqual$77) {
|
|
5684
5758
|
var postbackKey = request[1];
|
|
5685
|
-
isSignatureEqual$
|
|
5759
|
+
isSignatureEqual$77.call(action, request[2], request[3]) &&
|
|
5686
5760
|
((nextPostbackStateKey =
|
|
5687
5761
|
void 0 !== permalink
|
|
5688
5762
|
? "p" + permalink
|
|
@@ -5724,11 +5798,11 @@ function useActionState(action, initialState, permalink) {
|
|
|
5724
5798
|
});
|
|
5725
5799
|
return [initialState, action, !1];
|
|
5726
5800
|
}
|
|
5727
|
-
var boundAction$
|
|
5801
|
+
var boundAction$78 = action.bind(null, initialState);
|
|
5728
5802
|
return [
|
|
5729
5803
|
initialState,
|
|
5730
5804
|
function (payload) {
|
|
5731
|
-
boundAction$
|
|
5805
|
+
boundAction$78(payload);
|
|
5732
5806
|
},
|
|
5733
5807
|
!1
|
|
5734
5808
|
];
|
|
@@ -5758,81 +5832,80 @@ function clientHookNotSupported() {
|
|
|
5758
5832
|
);
|
|
5759
5833
|
}
|
|
5760
5834
|
var HooksDispatcher = {
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
return usable._currentValue2;
|
|
5769
|
-
}
|
|
5770
|
-
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
5771
|
-
},
|
|
5772
|
-
useContext: function (context) {
|
|
5773
|
-
resolveCurrentlyRenderingComponent();
|
|
5774
|
-
return context._currentValue2;
|
|
5775
|
-
},
|
|
5776
|
-
useMemo: useMemo,
|
|
5777
|
-
useReducer: clientHookNotSupported,
|
|
5778
|
-
useRef: clientHookNotSupported,
|
|
5779
|
-
useState: clientHookNotSupported,
|
|
5780
|
-
useInsertionEffect: clientHookNotSupported,
|
|
5781
|
-
useLayoutEffect: clientHookNotSupported,
|
|
5782
|
-
useCallback: function (callback, deps) {
|
|
5783
|
-
return useMemo(function () {
|
|
5784
|
-
return callback;
|
|
5785
|
-
}, deps);
|
|
5786
|
-
},
|
|
5787
|
-
useImperativeHandle: clientHookNotSupported,
|
|
5788
|
-
useEffect: clientHookNotSupported,
|
|
5789
|
-
useDebugValue: function () {},
|
|
5790
|
-
useDeferredValue: clientHookNotSupported,
|
|
5791
|
-
useTransition: clientHookNotSupported,
|
|
5792
|
-
useId: function () {
|
|
5793
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
5794
|
-
var overflow = JSCompiler_inline_result.overflow;
|
|
5795
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
5796
|
-
JSCompiler_inline_result =
|
|
5797
|
-
(
|
|
5798
|
-
JSCompiler_inline_result &
|
|
5799
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
5800
|
-
).toString(32) + overflow;
|
|
5801
|
-
var resumableState = currentResumableState;
|
|
5802
|
-
if (null === resumableState)
|
|
5803
|
-
throw Error(
|
|
5804
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
5805
|
-
);
|
|
5806
|
-
overflow = localIdCounter++;
|
|
5807
|
-
JSCompiler_inline_result =
|
|
5808
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
5809
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
5810
|
-
return JSCompiler_inline_result + ":";
|
|
5811
|
-
},
|
|
5812
|
-
useSyncExternalStore: clientHookNotSupported,
|
|
5813
|
-
useOptimistic: function (passthrough) {
|
|
5814
|
-
resolveCurrentlyRenderingComponent();
|
|
5815
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
5816
|
-
},
|
|
5817
|
-
useActionState: useActionState,
|
|
5818
|
-
useFormState: useActionState,
|
|
5819
|
-
useHostTransitionStatus: function () {
|
|
5820
|
-
resolveCurrentlyRenderingComponent();
|
|
5821
|
-
return sharedNotPendingObject;
|
|
5822
|
-
},
|
|
5823
|
-
useMemoCache: function (size) {
|
|
5824
|
-
for (var data = Array(size), i = 0; i < size; i++)
|
|
5825
|
-
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
5826
|
-
return data;
|
|
5827
|
-
},
|
|
5828
|
-
useCacheRefresh: function () {
|
|
5829
|
-
return unsupportedRefresh;
|
|
5830
|
-
},
|
|
5831
|
-
useEffectEvent: function () {
|
|
5832
|
-
return throwOnUseEffectEventCall;
|
|
5835
|
+
readContext: function (context) {
|
|
5836
|
+
return context._currentValue2;
|
|
5837
|
+
},
|
|
5838
|
+
use: function (usable) {
|
|
5839
|
+
if (null !== usable && "object" === typeof usable) {
|
|
5840
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
5841
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
|
|
5833
5842
|
}
|
|
5843
|
+
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
5844
|
+
},
|
|
5845
|
+
useContext: function (context) {
|
|
5846
|
+
resolveCurrentlyRenderingComponent();
|
|
5847
|
+
return context._currentValue2;
|
|
5848
|
+
},
|
|
5849
|
+
useMemo: useMemo,
|
|
5850
|
+
useReducer: clientHookNotSupported,
|
|
5851
|
+
useRef: clientHookNotSupported,
|
|
5852
|
+
useState: clientHookNotSupported,
|
|
5853
|
+
useInsertionEffect: clientHookNotSupported,
|
|
5854
|
+
useLayoutEffect: clientHookNotSupported,
|
|
5855
|
+
useCallback: function (callback, deps) {
|
|
5856
|
+
return useMemo(function () {
|
|
5857
|
+
return callback;
|
|
5858
|
+
}, deps);
|
|
5859
|
+
},
|
|
5860
|
+
useImperativeHandle: clientHookNotSupported,
|
|
5861
|
+
useEffect: clientHookNotSupported,
|
|
5862
|
+
useDebugValue: function () {},
|
|
5863
|
+
useDeferredValue: clientHookNotSupported,
|
|
5864
|
+
useTransition: clientHookNotSupported,
|
|
5865
|
+
useId: function () {
|
|
5866
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
5867
|
+
var overflow = JSCompiler_inline_result.overflow;
|
|
5868
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
5869
|
+
JSCompiler_inline_result =
|
|
5870
|
+
(
|
|
5871
|
+
JSCompiler_inline_result &
|
|
5872
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
5873
|
+
).toString(32) + overflow;
|
|
5874
|
+
var resumableState = currentResumableState;
|
|
5875
|
+
if (null === resumableState)
|
|
5876
|
+
throw Error(
|
|
5877
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
5878
|
+
);
|
|
5879
|
+
overflow = localIdCounter++;
|
|
5880
|
+
JSCompiler_inline_result =
|
|
5881
|
+
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
5882
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
5883
|
+
return JSCompiler_inline_result + ":";
|
|
5884
|
+
},
|
|
5885
|
+
useSyncExternalStore: clientHookNotSupported,
|
|
5886
|
+
useCacheRefresh: function () {
|
|
5887
|
+
return unsupportedRefresh;
|
|
5834
5888
|
},
|
|
5835
|
-
|
|
5889
|
+
useEffectEvent: function () {
|
|
5890
|
+
return throwOnUseEffectEventCall;
|
|
5891
|
+
},
|
|
5892
|
+
useMemoCache: function (size) {
|
|
5893
|
+
for (var data = Array(size), i = 0; i < size; i++)
|
|
5894
|
+
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
5895
|
+
return data;
|
|
5896
|
+
},
|
|
5897
|
+
useHostTransitionStatus: function () {
|
|
5898
|
+
resolveCurrentlyRenderingComponent();
|
|
5899
|
+
return sharedNotPendingObject;
|
|
5900
|
+
},
|
|
5901
|
+
useOptimistic: function (passthrough) {
|
|
5902
|
+
resolveCurrentlyRenderingComponent();
|
|
5903
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
5904
|
+
}
|
|
5905
|
+
};
|
|
5906
|
+
HooksDispatcher.useFormState = useActionState;
|
|
5907
|
+
HooksDispatcher.useActionState = useActionState;
|
|
5908
|
+
var currentResumableState = null,
|
|
5836
5909
|
DefaultAsyncDispatcher = {
|
|
5837
5910
|
getCacheForType: function () {
|
|
5838
5911
|
throw Error("Not implemented.");
|
|
@@ -5842,7 +5915,7 @@ function describeComponentStackByType(type) {
|
|
|
5842
5915
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
5843
5916
|
if ("function" === typeof type)
|
|
5844
5917
|
return type.prototype && type.prototype.isReactComponent
|
|
5845
|
-
? describeNativeComponentFrame(type, !0)
|
|
5918
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
|
5846
5919
|
: describeNativeComponentFrame(type, !1);
|
|
5847
5920
|
if ("object" === typeof type && null !== type) {
|
|
5848
5921
|
switch (type.$$typeof) {
|
|
@@ -6243,9 +6316,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6243
6316
|
var defaultProps = type.defaultProps;
|
|
6244
6317
|
if (defaultProps) {
|
|
6245
6318
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
6246
|
-
for (var propName$
|
|
6247
|
-
void 0 === newProps[propName$
|
|
6248
|
-
(newProps[propName$
|
|
6319
|
+
for (var propName$87 in defaultProps)
|
|
6320
|
+
void 0 === newProps[propName$87] &&
|
|
6321
|
+
(newProps[propName$87] = defaultProps[propName$87]);
|
|
6249
6322
|
}
|
|
6250
6323
|
props = newProps;
|
|
6251
6324
|
newProps = emptyContextObject;
|
|
@@ -6355,7 +6428,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6355
6428
|
defaultProps = newProps.chunks;
|
|
6356
6429
|
initialState = request.resumableState;
|
|
6357
6430
|
ref = request.renderState;
|
|
6358
|
-
propName$
|
|
6431
|
+
propName$87 = task.hoistableState;
|
|
6359
6432
|
propName = task.formatContext;
|
|
6360
6433
|
var textEmbedded = newProps.lastPushedText,
|
|
6361
6434
|
isFallback = task.isFallback;
|
|
@@ -6379,7 +6452,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6379
6452
|
props,
|
|
6380
6453
|
initialState,
|
|
6381
6454
|
ref,
|
|
6382
|
-
propName$
|
|
6455
|
+
propName$87,
|
|
6383
6456
|
propName,
|
|
6384
6457
|
textEmbedded,
|
|
6385
6458
|
isFallback
|
|
@@ -6434,6 +6507,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6434
6507
|
else {
|
|
6435
6508
|
switch (type) {
|
|
6436
6509
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
6510
|
+
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
6437
6511
|
case REACT_STRICT_MODE_TYPE:
|
|
6438
6512
|
case REACT_PROFILER_TYPE:
|
|
6439
6513
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -6475,13 +6549,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6475
6549
|
ref = props.fallback;
|
|
6476
6550
|
props = props.children;
|
|
6477
6551
|
var fallbackAbortSet = new Set();
|
|
6478
|
-
propName$
|
|
6552
|
+
propName$87 = createSuspenseBoundary(request, fallbackAbortSet);
|
|
6479
6553
|
null !== request.trackedPostpones &&
|
|
6480
|
-
(propName$
|
|
6554
|
+
(propName$87.trackedContentKeyPath = keyPath);
|
|
6481
6555
|
propName = createPendingSegment(
|
|
6482
6556
|
request,
|
|
6483
6557
|
contextType.chunks.length,
|
|
6484
|
-
propName$
|
|
6558
|
+
propName$87,
|
|
6485
6559
|
task.formatContext,
|
|
6486
6560
|
!1,
|
|
6487
6561
|
!1
|
|
@@ -6501,7 +6575,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6501
6575
|
newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
6502
6576
|
defaultProps = [newProps[1], newProps[2], [], null];
|
|
6503
6577
|
request.trackedPostpones.workingMap.set(newProps, defaultProps);
|
|
6504
|
-
propName$
|
|
6578
|
+
propName$87.trackedFallbackNode = defaultProps;
|
|
6505
6579
|
task.blockedSegment = propName;
|
|
6506
6580
|
task.keyPath = newProps;
|
|
6507
6581
|
propName.status = 6;
|
|
@@ -6519,9 +6593,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6519
6593
|
null,
|
|
6520
6594
|
props,
|
|
6521
6595
|
-1,
|
|
6522
|
-
propName$
|
|
6596
|
+
propName$87,
|
|
6523
6597
|
textEmbedded,
|
|
6524
|
-
propName$
|
|
6598
|
+
propName$87.contentState,
|
|
6525
6599
|
task.abortSet,
|
|
6526
6600
|
keyPath,
|
|
6527
6601
|
task.formatContext,
|
|
@@ -6533,8 +6607,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6533
6607
|
pushComponentStack(task);
|
|
6534
6608
|
request.pingedTasks.push(task);
|
|
6535
6609
|
} else {
|
|
6536
|
-
task.blockedBoundary = propName$
|
|
6537
|
-
task.hoistableState = propName$
|
|
6610
|
+
task.blockedBoundary = propName$87;
|
|
6611
|
+
task.hoistableState = propName$87.contentState;
|
|
6538
6612
|
task.blockedSegment = textEmbedded;
|
|
6539
6613
|
task.keyPath = keyPath;
|
|
6540
6614
|
textEmbedded.status = 6;
|
|
@@ -6542,17 +6616,17 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6542
6616
|
if (
|
|
6543
6617
|
(renderNode(request, task, props, -1),
|
|
6544
6618
|
(textEmbedded.status = 1),
|
|
6545
|
-
queueCompletedSegment(propName$
|
|
6546
|
-
0 === propName$
|
|
6619
|
+
queueCompletedSegment(propName$87, textEmbedded),
|
|
6620
|
+
0 === propName$87.pendingTasks && 0 === propName$87.status)
|
|
6547
6621
|
) {
|
|
6548
|
-
propName$
|
|
6622
|
+
propName$87.status = 1;
|
|
6549
6623
|
break a;
|
|
6550
6624
|
}
|
|
6551
|
-
} catch (thrownValue$
|
|
6552
|
-
(propName$
|
|
6625
|
+
} catch (thrownValue$82) {
|
|
6626
|
+
(propName$87.status = 4),
|
|
6553
6627
|
12 === request.status
|
|
6554
6628
|
? ((textEmbedded.status = 3), (newProps = request.fatalError))
|
|
6555
|
-
: ((textEmbedded.status = 4), (newProps = thrownValue$
|
|
6629
|
+
: ((textEmbedded.status = 4), (newProps = thrownValue$82)),
|
|
6556
6630
|
(defaultProps = getThrownInfo(task.componentStack)),
|
|
6557
6631
|
"object" === typeof newProps &&
|
|
6558
6632
|
null !== newProps &&
|
|
@@ -6564,8 +6638,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6564
6638
|
newProps,
|
|
6565
6639
|
defaultProps
|
|
6566
6640
|
)),
|
|
6567
|
-
(propName$
|
|
6568
|
-
untrackBoundary(request, propName$
|
|
6641
|
+
(propName$87.errorDigest = initialState),
|
|
6642
|
+
untrackBoundary(request, propName$87);
|
|
6569
6643
|
} finally {
|
|
6570
6644
|
(task.blockedBoundary = isFallback),
|
|
6571
6645
|
(task.hoistableState = propValue),
|
|
@@ -6579,7 +6653,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6579
6653
|
-1,
|
|
6580
6654
|
isFallback,
|
|
6581
6655
|
propName,
|
|
6582
|
-
propName$
|
|
6656
|
+
propName$87.fallbackState,
|
|
6583
6657
|
fallbackAbortSet,
|
|
6584
6658
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
6585
6659
|
task.formatContext,
|
|
@@ -7089,9 +7163,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7089
7163
|
addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
|
|
7090
7164
|
return;
|
|
7091
7165
|
}
|
|
7092
|
-
var boundaryNode$
|
|
7093
|
-
void 0 === boundaryNode$
|
|
7094
|
-
? ((boundaryNode$
|
|
7166
|
+
var boundaryNode$97 = trackedPostpones.workingMap.get(boundaryKeyPath);
|
|
7167
|
+
void 0 === boundaryNode$97
|
|
7168
|
+
? ((boundaryNode$97 = [
|
|
7095
7169
|
boundaryKeyPath[1],
|
|
7096
7170
|
boundaryKeyPath[2],
|
|
7097
7171
|
children,
|
|
@@ -7099,13 +7173,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7099
7173
|
fallbackReplayNode,
|
|
7100
7174
|
boundary.rootSegmentID
|
|
7101
7175
|
]),
|
|
7102
|
-
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$
|
|
7176
|
+
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$97),
|
|
7103
7177
|
addToReplayParent(
|
|
7104
|
-
boundaryNode$
|
|
7178
|
+
boundaryNode$97,
|
|
7105
7179
|
boundaryKeyPath[0],
|
|
7106
7180
|
trackedPostpones
|
|
7107
7181
|
))
|
|
7108
|
-
: ((boundaryKeyPath = boundaryNode$
|
|
7182
|
+
: ((boundaryKeyPath = boundaryNode$97),
|
|
7109
7183
|
(boundaryKeyPath[4] = fallbackReplayNode),
|
|
7110
7184
|
(boundaryKeyPath[5] = boundary.rootSegmentID));
|
|
7111
7185
|
}
|
|
@@ -7258,15 +7332,15 @@ function renderNode(request, task, node, childIndex) {
|
|
|
7258
7332
|
chunkLength = segment.chunks.length;
|
|
7259
7333
|
try {
|
|
7260
7334
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
7261
|
-
} catch (thrownValue$
|
|
7335
|
+
} catch (thrownValue$109) {
|
|
7262
7336
|
if (
|
|
7263
7337
|
(resetHooksState(),
|
|
7264
7338
|
(segment.children.length = childrenLength),
|
|
7265
7339
|
(segment.chunks.length = chunkLength),
|
|
7266
7340
|
(childIndex =
|
|
7267
|
-
thrownValue$
|
|
7341
|
+
thrownValue$109 === SuspenseException
|
|
7268
7342
|
? getSuspendedThenable()
|
|
7269
|
-
: thrownValue$
|
|
7343
|
+
: thrownValue$109),
|
|
7270
7344
|
"object" === typeof childIndex && null !== childIndex)
|
|
7271
7345
|
) {
|
|
7272
7346
|
if ("function" === typeof childIndex.then) {
|
|
@@ -7462,16 +7536,16 @@ function abortTask(task, request, error) {
|
|
|
7462
7536
|
}
|
|
7463
7537
|
} else {
|
|
7464
7538
|
boundary.pendingTasks--;
|
|
7465
|
-
var trackedPostpones$
|
|
7539
|
+
var trackedPostpones$112 = request.trackedPostpones;
|
|
7466
7540
|
if (4 !== boundary.status) {
|
|
7467
|
-
if (null !== trackedPostpones$
|
|
7541
|
+
if (null !== trackedPostpones$112 && null !== segment)
|
|
7468
7542
|
return (
|
|
7469
7543
|
"object" === typeof error &&
|
|
7470
7544
|
null !== error &&
|
|
7471
7545
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
7472
7546
|
? logPostpone(request, error.message, errorInfo)
|
|
7473
7547
|
: logRecoverableError(request, error, errorInfo),
|
|
7474
|
-
trackPostpone(request, trackedPostpones$
|
|
7548
|
+
trackPostpone(request, trackedPostpones$112, task, segment),
|
|
7475
7549
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7476
7550
|
return abortTask(fallbackTask, request, error);
|
|
7477
7551
|
}),
|
|
@@ -7769,13 +7843,13 @@ function performWork(request$jscomp$1) {
|
|
|
7769
7843
|
null !== request.trackedPostpones &&
|
|
7770
7844
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
7771
7845
|
) {
|
|
7772
|
-
var trackedPostpones$
|
|
7846
|
+
var trackedPostpones$116 = request.trackedPostpones;
|
|
7773
7847
|
task.abortSet.delete(task);
|
|
7774
7848
|
var postponeInfo = getThrownInfo(task.componentStack);
|
|
7775
7849
|
logPostpone(request, x$jscomp$0.message, postponeInfo);
|
|
7776
7850
|
trackPostpone(
|
|
7777
7851
|
request,
|
|
7778
|
-
trackedPostpones$
|
|
7852
|
+
trackedPostpones$116,
|
|
7779
7853
|
task,
|
|
7780
7854
|
segment$jscomp$0
|
|
7781
7855
|
);
|
|
@@ -8207,11 +8281,11 @@ function flushCompletedQueues(request, destination) {
|
|
|
8207
8281
|
completedBoundaries.splice(0, i);
|
|
8208
8282
|
var partialBoundaries = request.partialBoundaries;
|
|
8209
8283
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
8210
|
-
var boundary$
|
|
8284
|
+
var boundary$119 = partialBoundaries[i];
|
|
8211
8285
|
a: {
|
|
8212
8286
|
clientRenderedBoundaries = request;
|
|
8213
8287
|
boundary = destination;
|
|
8214
|
-
var completedSegments = boundary$
|
|
8288
|
+
var completedSegments = boundary$119.completedSegments;
|
|
8215
8289
|
for (
|
|
8216
8290
|
JSCompiler_inline_result = 0;
|
|
8217
8291
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -8221,7 +8295,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8221
8295
|
!flushPartiallyCompletedSegment(
|
|
8222
8296
|
clientRenderedBoundaries,
|
|
8223
8297
|
boundary,
|
|
8224
|
-
boundary$
|
|
8298
|
+
boundary$119,
|
|
8225
8299
|
completedSegments[JSCompiler_inline_result]
|
|
8226
8300
|
)
|
|
8227
8301
|
) {
|
|
@@ -8233,7 +8307,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8233
8307
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8234
8308
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
8235
8309
|
boundary,
|
|
8236
|
-
boundary$
|
|
8310
|
+
boundary$119.contentState,
|
|
8237
8311
|
clientRenderedBoundaries.renderState
|
|
8238
8312
|
);
|
|
8239
8313
|
}
|
|
@@ -8305,8 +8379,8 @@ function abort(request, reason) {
|
|
|
8305
8379
|
}
|
|
8306
8380
|
null !== request.destination &&
|
|
8307
8381
|
flushCompletedQueues(request, request.destination);
|
|
8308
|
-
} catch (error$
|
|
8309
|
-
logRecoverableError(request, error$
|
|
8382
|
+
} catch (error$121) {
|
|
8383
|
+
logRecoverableError(request, error$121, {}), fatalError(request, error$121);
|
|
8310
8384
|
}
|
|
8311
8385
|
}
|
|
8312
8386
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -8438,7 +8512,6 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8438
8512
|
new ReactPromise("fulfilled", i, null, flightResponse)
|
|
8439
8513
|
);
|
|
8440
8514
|
break;
|
|
8441
|
-
case 78:
|
|
8442
8515
|
case 68:
|
|
8443
8516
|
case 87:
|
|
8444
8517
|
throw Error(
|
|
@@ -8623,4 +8696,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8623
8696
|
});
|
|
8624
8697
|
});
|
|
8625
8698
|
};
|
|
8626
|
-
exports.version = "19.
|
|
8699
|
+
exports.version = "19.0.0-experimental-65e06cb7-20241218";
|