react-markup 0.0.0-experimental-65e06cb7-20241218 → 0.0.0-experimental-518d06d2-20241219

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,7 +118,6 @@ 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"),
122
121
  REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
123
122
  REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
124
123
  REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
@@ -215,6 +214,10 @@ var HooksDispatcher$1 = {
215
214
  useImperativeHandle: unsupportedHook,
216
215
  useEffect: unsupportedHook,
217
216
  useId: useId$1,
217
+ useHostTransitionStatus: unsupportedHook,
218
+ useOptimistic: unsupportedHook,
219
+ useFormState: unsupportedHook,
220
+ useActionState: unsupportedHook,
218
221
  useSyncExternalStore: unsupportedHook,
219
222
  useCacheRefresh: function () {
220
223
  return unsupportedRefresh$1;
@@ -638,19 +641,7 @@ function serializeThenable(request, task, thenable) {
638
641
  newTask.id
639
642
  );
640
643
  case "rejected":
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
- );
644
+ return erroredTask$1(request, newTask, thenable.reason), newTask.id;
654
645
  default:
655
646
  if (12 === request.status)
656
647
  return (
@@ -683,16 +674,7 @@ function serializeThenable(request, task, thenable) {
683
674
  },
684
675
  function (reason) {
685
676
  0 === newTask.status &&
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));
677
+ (erroredTask$1(request, newTask, reason), enqueueFlush(request));
696
678
  }
697
679
  );
698
680
  return newTask.id;
@@ -713,43 +695,26 @@ function serializeReadableStream(request, task, stream) {
713
695
  emitChunk(request, streamTask, streamTask.model),
714
696
  enqueueFlush(request),
715
697
  reader.read().then(progress, error);
716
- } catch (x$11) {
717
- error(x$11);
698
+ } catch (x$9) {
699
+ error(x$9);
718
700
  }
719
701
  }
720
702
  function error(reason) {
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
- }
703
+ aborted ||
704
+ ((aborted = !0),
705
+ request.abortListeners.delete(abortStream),
706
+ erroredTask$1(request, streamTask, reason),
707
+ enqueueFlush(request),
708
+ reader.cancel(reason).then(error, error));
729
709
  }
730
710
  function abortStream(reason) {
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
- }
711
+ aborted ||
712
+ ((aborted = !0),
713
+ request.abortListeners.delete(abortStream),
714
+ 21 === request.type
715
+ ? request.pendingChunks--
716
+ : (erroredTask$1(request, streamTask, reason), enqueueFlush(request)),
717
+ reader.cancel(reason).then(error, error));
753
718
  }
754
719
  var supportsBYOB = stream.supportsBYOB;
755
720
  if (void 0 === supportsBYOB)
@@ -804,45 +769,28 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
804
769
  emitChunk(request, streamTask, streamTask.model),
805
770
  enqueueFlush(request),
806
771
  iterator.next().then(progress, error);
807
- } catch (x$12) {
808
- error(x$12);
772
+ } catch (x$10) {
773
+ error(x$10);
809
774
  }
810
775
  }
811
776
  function error(reason) {
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);
777
+ aborted ||
778
+ ((aborted = !0),
779
+ request.abortListeners.delete(abortIterable),
780
+ erroredTask$1(request, streamTask, reason),
781
+ enqueueFlush(request),
818
782
  "function" === typeof iterator.throw &&
819
- iterator.throw(reason).then(error, error);
820
- }
783
+ iterator.throw(reason).then(error, error));
821
784
  }
822
785
  function abortIterable(reason) {
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
- }
786
+ aborted ||
787
+ ((aborted = !0),
788
+ request.abortListeners.delete(abortIterable),
789
+ 21 === request.type
790
+ ? request.pendingChunks--
791
+ : (erroredTask$1(request, streamTask, reason), enqueueFlush(request)),
843
792
  "function" === typeof iterator.throw &&
844
- iterator.throw(reason).then(error, error);
845
- }
793
+ iterator.throw(reason).then(error, error));
846
794
  }
847
795
  iterable = iterable === iterator;
848
796
  var streamTask = createTask(
@@ -889,63 +837,57 @@ function createLazyWrapperAroundWakeable(wakeable) {
889
837
  return { $$typeof: REACT_LAZY_TYPE, _payload: wakeable, _init: readThenable };
890
838
  }
891
839
  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
+ }
892
868
  function renderFunctionComponent$1(request, task, key, Component, props) {
893
869
  var prevThenableState = task.thenableState;
894
870
  task.thenableState = null;
895
871
  thenableIndexCounter$1 = 0;
896
872
  thenableState$1 = prevThenableState;
897
- Component = Component(props, void 0);
873
+ props = Component(props, void 0);
898
874
  if (12 === request.status)
899
875
  throw (
900
- ("object" === typeof Component &&
901
- null !== Component &&
902
- "function" === typeof Component.then &&
903
- Component.$$typeof !== CLIENT_REFERENCE_TAG$1 &&
904
- Component.then(voidHandler, voidHandler),
876
+ ("object" === typeof props &&
877
+ null !== props &&
878
+ "function" === typeof props.then &&
879
+ props.$$typeof !== CLIENT_REFERENCE_TAG$1 &&
880
+ props.then(voidHandler, voidHandler),
905
881
  null)
906
882
  );
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;
883
+ props = processServerComponentReturnValue(request, task, Component, props);
884
+ Component = task.keyPath;
943
885
  prevThenableState = task.implicitSlot;
944
886
  null !== key
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;
887
+ ? (task.keyPath = null === Component ? key : Component + "," + key)
888
+ : null === Component && (task.implicitSlot = !0);
889
+ request = renderModelDestructive(request, task, emptyRoot, "", props);
890
+ task.keyPath = Component;
949
891
  task.implicitSlot = prevThenableState;
950
892
  return request;
951
893
  }
@@ -1041,7 +983,83 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1041
983
  return pingTask$1(request, task);
1042
984
  },
1043
985
  toJSON: function (parentPropertyName, value) {
1044
- return renderModel(request, task, this, parentPropertyName, value);
986
+ var prevKeyPath = task.keyPath,
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;
1045
1063
  },
1046
1064
  thenableState: null
1047
1065
  };
@@ -1084,37 +1102,21 @@ function serializeBlob(request, blob) {
1084
1102
  );
1085
1103
  }
1086
1104
  function error(reason) {
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
- }
1105
+ aborted ||
1106
+ ((aborted = !0),
1107
+ request.abortListeners.delete(abortBlob),
1108
+ erroredTask$1(request, newTask, reason),
1109
+ enqueueFlush(request),
1110
+ reader.cancel(reason).then(error, error));
1095
1111
  }
1096
1112
  function abortBlob(reason) {
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
- }
1113
+ aborted ||
1114
+ ((aborted = !0),
1115
+ request.abortListeners.delete(abortBlob),
1116
+ 21 === request.type
1117
+ ? request.pendingChunks--
1118
+ : (erroredTask$1(request, newTask, reason), enqueueFlush(request)),
1119
+ reader.cancel(reason).then(error, error));
1118
1120
  }
1119
1121
  var model = [blob.type],
1120
1122
  newTask = createTask(request, model, null, !1, request.abortableTasks),
@@ -1125,76 +1127,6 @@ function serializeBlob(request, blob) {
1125
1127
  return "$B" + newTask.id.toString(16);
1126
1128
  }
1127
1129
  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
- }
1198
1130
  function renderModelDestructive(
1199
1131
  request,
1200
1132
  task,
@@ -1582,6 +1514,17 @@ function emitChunk(request, task, value) {
1582
1514
  : ((value = stringify(value, task.toJSON)),
1583
1515
  emitModelChunk(request, task.id, value));
1584
1516
  }
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
+ }
1585
1528
  var emptyRoot = {};
1586
1529
  function retryTask$1(request, task) {
1587
1530
  if (0 === task.status) {
@@ -1627,26 +1570,16 @@ function retryTask$1(request, task) {
1627
1570
  thrownValue === SuspenseException$1
1628
1571
  ? getSuspendedThenable$1()
1629
1572
  : thrownValue;
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);
1573
+ if (
1574
+ "object" === typeof x &&
1575
+ null !== x &&
1576
+ "function" === typeof x.then
1577
+ ) {
1578
+ task.status = 0;
1579
+ task.thenableState = getThenableStateAfterSuspending$1();
1580
+ var ping = task.ping;
1581
+ x.then(ping, ping);
1582
+ } else erroredTask$1(request, task, x);
1650
1583
  }
1651
1584
  } finally {
1652
1585
  }
@@ -1746,25 +1679,24 @@ function abort$1(request, reason) {
1746
1679
  11 >= request.status && (request.status = 12);
1747
1680
  var abortableTasks = request.abortableTasks;
1748
1681
  if (0 < abortableTasks.size) {
1749
- if (
1682
+ if (21 === request.type)
1683
+ abortableTasks.forEach(function (task) {
1684
+ 5 !== task.status && ((task.status = 3), request.pendingChunks--);
1685
+ });
1686
+ else if (
1750
1687
  "object" === typeof reason &&
1751
1688
  null !== reason &&
1752
1689
  reason.$$typeof === REACT_POSTPONE_TYPE
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 {
1690
+ ) {
1691
+ logPostpone$1(request, reason.message, null);
1692
+ var errorId = request.nextChunkId++;
1693
+ request.fatalError = errorId;
1694
+ request.pendingChunks++;
1695
+ emitPostponeChunk(request, errorId, reason);
1696
+ abortableTasks.forEach(function (task) {
1697
+ return abortTask$1(task, request, errorId);
1698
+ });
1699
+ } else {
1768
1700
  var error =
1769
1701
  void 0 === reason
1770
1702
  ? Error("The render was aborted by the server without a reason.")
@@ -1773,20 +1705,14 @@ function abort$1(request, reason) {
1773
1705
  "function" === typeof reason.then
1774
1706
  ? Error("The render was aborted by the server with a promise.")
1775
1707
  : reason,
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
- }
1708
+ digest = logRecoverableError$1(request, error, null),
1709
+ errorId$27 = request.nextChunkId++;
1710
+ request.fatalError = errorId$27;
1711
+ request.pendingChunks++;
1712
+ emitErrorChunk(request, errorId$27, digest, error);
1713
+ abortableTasks.forEach(function (task) {
1714
+ return abortTask$1(task, request, errorId$27);
1715
+ });
1790
1716
  }
1791
1717
  abortableTasks.clear();
1792
1718
  var onAllReady = request.onAllReady;
@@ -1794,7 +1720,7 @@ function abort$1(request, reason) {
1794
1720
  }
1795
1721
  var abortListeners = request.abortListeners;
1796
1722
  if (0 < abortListeners.size) {
1797
- var error$30 =
1723
+ var error$28 =
1798
1724
  "object" === typeof reason &&
1799
1725
  null !== reason &&
1800
1726
  reason.$$typeof === REACT_POSTPONE_TYPE
@@ -1807,15 +1733,15 @@ function abort$1(request, reason) {
1807
1733
  ? Error("The render was aborted by the server with a promise.")
1808
1734
  : reason;
1809
1735
  abortListeners.forEach(function (callback) {
1810
- return callback(error$30);
1736
+ return callback(error$28);
1811
1737
  });
1812
1738
  abortListeners.clear();
1813
1739
  }
1814
1740
  null !== request.destination &&
1815
1741
  flushCompletedChunks(request, request.destination);
1816
- } catch (error$31) {
1817
- logRecoverableError$1(request, error$31, null),
1818
- fatalError$1(request, error$31);
1742
+ } catch (error$29) {
1743
+ logRecoverableError$1(request, error$29, null),
1744
+ fatalError$1(request, error$29);
1819
1745
  }
1820
1746
  }
1821
1747
  var bind$1 = Function.prototype.bind,
@@ -1922,11 +1848,11 @@ function processReply(
1922
1848
  0 === pendingParts && resolve(data);
1923
1849
  } else
1924
1850
  try {
1925
- var partJSON$32 = JSON.stringify(entry.value, resolveToJSON);
1926
- data.append(formFieldPrefix + streamId, partJSON$32);
1851
+ var partJSON$30 = JSON.stringify(entry.value, resolveToJSON);
1852
+ data.append(formFieldPrefix + streamId, partJSON$30);
1927
1853
  iterator.next().then(progress, reject);
1928
- } catch (x$33) {
1929
- reject(x$33);
1854
+ } catch (x$31) {
1855
+ reject(x$31);
1930
1856
  }
1931
1857
  }
1932
1858
  null === formData && (formData = new FormData());
@@ -1971,20 +1897,20 @@ function processReply(
1971
1897
  "function" === typeof x.then
1972
1898
  ) {
1973
1899
  pendingParts++;
1974
- var lazyId$34 = nextPartId++;
1900
+ var lazyId$32 = nextPartId++;
1975
1901
  parentReference = function () {
1976
1902
  try {
1977
- var partJSON$35 = serializeModel(value, lazyId$34),
1978
- data$36 = formData;
1979
- data$36.append(formFieldPrefix + lazyId$34, partJSON$35);
1903
+ var partJSON$33 = serializeModel(value, lazyId$32),
1904
+ data$34 = formData;
1905
+ data$34.append(formFieldPrefix + lazyId$32, partJSON$33);
1980
1906
  pendingParts--;
1981
- 0 === pendingParts && resolve(data$36);
1907
+ 0 === pendingParts && resolve(data$34);
1982
1908
  } catch (reason) {
1983
1909
  reject(reason);
1984
1910
  }
1985
1911
  };
1986
1912
  x.then(parentReference, parentReference);
1987
- return "$" + lazyId$34.toString(16);
1913
+ return "$" + lazyId$32.toString(16);
1988
1914
  }
1989
1915
  reject(x);
1990
1916
  return null;
@@ -1998,9 +1924,9 @@ function processReply(
1998
1924
  var promiseId = nextPartId++;
1999
1925
  value.then(function (partValue) {
2000
1926
  try {
2001
- var partJSON$38 = serializeModel(partValue, promiseId);
1927
+ var partJSON$36 = serializeModel(partValue, promiseId);
2002
1928
  partValue = formData;
2003
- partValue.append(formFieldPrefix + promiseId, partJSON$38);
1929
+ partValue.append(formFieldPrefix + promiseId, partJSON$36);
2004
1930
  pendingParts--;
2005
1931
  0 === pendingParts && resolve(partValue);
2006
1932
  } catch (reason) {
@@ -2024,11 +1950,11 @@ function processReply(
2024
1950
  if (isArrayImpl(value)) return value;
2025
1951
  if (value instanceof FormData) {
2026
1952
  null === formData && (formData = new FormData());
2027
- var data$42 = formData;
1953
+ var data$40 = formData;
2028
1954
  key = nextPartId++;
2029
- var prefix$43 = formFieldPrefix + key + "_";
1955
+ var prefix$41 = formFieldPrefix + key + "_";
2030
1956
  value.forEach(function (originalValue, originalKey) {
2031
- data$42.append(prefix$43 + originalKey, originalValue);
1957
+ data$40.append(prefix$41 + originalKey, originalValue);
2032
1958
  });
2033
1959
  return "$K" + key.toString(16);
2034
1960
  }
@@ -2446,6 +2372,9 @@ function readChunk(chunk) {
2446
2372
  function createPendingChunk(response) {
2447
2373
  return new ReactPromise("pending", null, null, response);
2448
2374
  }
2375
+ function createErrorChunk(response, error) {
2376
+ return new ReactPromise("rejected", null, error, response);
2377
+ }
2449
2378
  function wakeChunk(listeners, value) {
2450
2379
  for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value);
2451
2380
  }
@@ -2551,6 +2480,8 @@ function initializeModuleChunk(chunk) {
2551
2480
  }
2552
2481
  }
2553
2482
  function reportGlobalError(response, error) {
2483
+ response._closed = !0;
2484
+ response._closedReason = error;
2554
2485
  response._chunks.forEach(function (chunk) {
2555
2486
  "pending" === chunk.status && triggerErrorOnChunk(chunk, error);
2556
2487
  });
@@ -2561,7 +2492,11 @@ function createLazyChunkWrapper(chunk) {
2561
2492
  function getChunk(response, id) {
2562
2493
  var chunks = response._chunks,
2563
2494
  chunk = chunks.get(id);
2564
- chunk || ((chunk = createPendingChunk(response)), chunks.set(id, chunk));
2495
+ chunk ||
2496
+ ((chunk = response._closed
2497
+ ? createErrorChunk(response, response._closedReason)
2498
+ : createPendingChunk(response)),
2499
+ chunks.set(id, chunk));
2565
2500
  return chunk;
2566
2501
  }
2567
2502
  function waitForReference(
@@ -2835,6 +2770,8 @@ function ResponseInstance(
2835
2770
  this._fromJSON = this._stringDecoder = null;
2836
2771
  this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
2837
2772
  this._buffer = [];
2773
+ this._closed = !1;
2774
+ this._closedReason = null;
2838
2775
  this._tempRefs = temporaryReferences;
2839
2776
  this._fromJSON = createFromJSONCallback(this);
2840
2777
  }
@@ -2887,8 +2824,8 @@ function startReadableStream(response, id, type) {
2887
2824
  (previousBlockedChunk = chunk));
2888
2825
  } else {
2889
2826
  chunk = previousBlockedChunk;
2890
- var chunk$63 = createPendingChunk(response);
2891
- chunk$63.then(
2827
+ var chunk$61 = createPendingChunk(response);
2828
+ chunk$61.then(
2892
2829
  function (v) {
2893
2830
  return controller.enqueue(v);
2894
2831
  },
@@ -2896,10 +2833,10 @@ function startReadableStream(response, id, type) {
2896
2833
  return controller.error(e);
2897
2834
  }
2898
2835
  );
2899
- previousBlockedChunk = chunk$63;
2836
+ previousBlockedChunk = chunk$61;
2900
2837
  chunk.then(function () {
2901
- previousBlockedChunk === chunk$63 && (previousBlockedChunk = null);
2902
- resolveModelChunk(chunk$63, json);
2838
+ previousBlockedChunk === chunk$61 && (previousBlockedChunk = null);
2839
+ resolveModelChunk(chunk$61, json);
2903
2840
  });
2904
2841
  }
2905
2842
  },
@@ -3051,7 +2988,7 @@ function createFromJSONCallback(response) {
3051
2988
  (initializingHandler = value.parent),
3052
2989
  value.errored)
3053
2990
  )
3054
- (key = new ReactPromise("rejected", null, value.value, response)),
2991
+ (key = createErrorChunk(response, value.value)),
3055
2992
  (key = createLazyChunkWrapper(key));
3056
2993
  else if (0 < value.deps) {
3057
2994
  var blockedChunk = new ReactPromise(
@@ -3784,8 +3721,8 @@ function pushAttribute(target, name, value) {
3784
3721
  case "symbol":
3785
3722
  return;
3786
3723
  case "boolean":
3787
- var prefix$73 = name.toLowerCase().slice(0, 5);
3788
- if ("data-" !== prefix$73 && "aria-" !== prefix$73) return;
3724
+ var prefix$71 = name.toLowerCase().slice(0, 5);
3725
+ if ("data-" !== prefix$71 && "aria-" !== prefix$71) return;
3789
3726
  }
3790
3727
  target.push(" ", name, '="', escapeTextForBrowser(value), '"');
3791
3728
  }
@@ -4520,10 +4457,10 @@ function pushStartInstance$1(
4520
4457
  styleQueue.sheets.set(href, resource);
4521
4458
  hoistableState && hoistableState.stylesheets.add(resource);
4522
4459
  } else if (styleQueue) {
4523
- var resource$74 = styleQueue.sheets.get(href);
4524
- resource$74 &&
4460
+ var resource$72 = styleQueue.sheets.get(href);
4461
+ resource$72 &&
4525
4462
  hoistableState &&
4526
- hoistableState.stylesheets.add(resource$74);
4463
+ hoistableState.stylesheets.add(resource$72);
4527
4464
  }
4528
4465
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
4529
4466
  JSCompiler_inline_result$jscomp$4 = null;
@@ -5753,10 +5690,10 @@ function useActionState(action, initialState, permalink) {
5753
5690
  var nextPostbackStateKey = null,
5754
5691
  componentKeyPath = currentlyRenderingKeyPath;
5755
5692
  request = request.formState;
5756
- var isSignatureEqual$77 = action.$$IS_SIGNATURE_EQUAL;
5757
- if (null !== request && "function" === typeof isSignatureEqual$77) {
5693
+ var isSignatureEqual$75 = action.$$IS_SIGNATURE_EQUAL;
5694
+ if (null !== request && "function" === typeof isSignatureEqual$75) {
5758
5695
  var postbackKey = request[1];
5759
- isSignatureEqual$77.call(action, request[2], request[3]) &&
5696
+ isSignatureEqual$75.call(action, request[2], request[3]) &&
5760
5697
  ((nextPostbackStateKey =
5761
5698
  void 0 !== permalink
5762
5699
  ? "p" + permalink
@@ -5798,11 +5735,11 @@ function useActionState(action, initialState, permalink) {
5798
5735
  });
5799
5736
  return [initialState, action, !1];
5800
5737
  }
5801
- var boundAction$78 = action.bind(null, initialState);
5738
+ var boundAction$76 = action.bind(null, initialState);
5802
5739
  return [
5803
5740
  initialState,
5804
5741
  function (payload) {
5805
- boundAction$78(payload);
5742
+ boundAction$76(payload);
5806
5743
  },
5807
5744
  !1
5808
5745
  ];
@@ -5832,80 +5769,81 @@ function clientHookNotSupported() {
5832
5769
  );
5833
5770
  }
5834
5771
  var HooksDispatcher = {
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;
5772
+ readContext: function (context) {
5773
+ return context._currentValue2;
5774
+ },
5775
+ use: function (usable) {
5776
+ if (null !== usable && "object" === typeof usable) {
5777
+ if ("function" === typeof usable.then) return unwrapThenable(usable);
5778
+ if (usable.$$typeof === REACT_CONTEXT_TYPE)
5779
+ return usable._currentValue2;
5780
+ }
5781
+ throw Error("An unsupported type was passed to use(): " + String(usable));
5782
+ },
5783
+ useContext: function (context) {
5784
+ resolveCurrentlyRenderingComponent();
5785
+ return context._currentValue2;
5786
+ },
5787
+ useMemo: useMemo,
5788
+ useReducer: clientHookNotSupported,
5789
+ useRef: clientHookNotSupported,
5790
+ useState: clientHookNotSupported,
5791
+ useInsertionEffect: clientHookNotSupported,
5792
+ useLayoutEffect: clientHookNotSupported,
5793
+ useCallback: function (callback, deps) {
5794
+ return useMemo(function () {
5795
+ return callback;
5796
+ }, deps);
5797
+ },
5798
+ useImperativeHandle: clientHookNotSupported,
5799
+ useEffect: clientHookNotSupported,
5800
+ useDebugValue: function () {},
5801
+ useDeferredValue: clientHookNotSupported,
5802
+ useTransition: clientHookNotSupported,
5803
+ useId: function () {
5804
+ var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
5805
+ var overflow = JSCompiler_inline_result.overflow;
5806
+ JSCompiler_inline_result = JSCompiler_inline_result.id;
5807
+ JSCompiler_inline_result =
5808
+ (
5809
+ JSCompiler_inline_result &
5810
+ ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
5811
+ ).toString(32) + overflow;
5812
+ var resumableState = currentResumableState;
5813
+ if (null === resumableState)
5814
+ throw Error(
5815
+ "Invalid hook call. Hooks can only be called inside of the body of a function component."
5816
+ );
5817
+ overflow = localIdCounter++;
5818
+ JSCompiler_inline_result =
5819
+ ":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
5820
+ 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
5821
+ return JSCompiler_inline_result + ":";
5822
+ },
5823
+ useSyncExternalStore: clientHookNotSupported,
5824
+ useOptimistic: function (passthrough) {
5825
+ resolveCurrentlyRenderingComponent();
5826
+ return [passthrough, unsupportedSetOptimisticState];
5827
+ },
5828
+ useActionState: useActionState,
5829
+ useFormState: useActionState,
5830
+ useHostTransitionStatus: function () {
5831
+ resolveCurrentlyRenderingComponent();
5832
+ return sharedNotPendingObject;
5833
+ },
5834
+ useMemoCache: function (size) {
5835
+ for (var data = Array(size), i = 0; i < size; i++)
5836
+ data[i] = REACT_MEMO_CACHE_SENTINEL;
5837
+ return data;
5838
+ },
5839
+ useCacheRefresh: function () {
5840
+ return unsupportedRefresh;
5841
+ },
5842
+ useEffectEvent: function () {
5843
+ return throwOnUseEffectEventCall;
5842
5844
  }
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;
5888
- },
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
5845
  },
5901
- useOptimistic: function (passthrough) {
5902
- resolveCurrentlyRenderingComponent();
5903
- return [passthrough, unsupportedSetOptimisticState];
5904
- }
5905
- };
5906
- HooksDispatcher.useFormState = useActionState;
5907
- HooksDispatcher.useActionState = useActionState;
5908
- var currentResumableState = null,
5846
+ currentResumableState = null,
5909
5847
  DefaultAsyncDispatcher = {
5910
5848
  getCacheForType: function () {
5911
5849
  throw Error("Not implemented.");
@@ -5915,7 +5853,7 @@ function describeComponentStackByType(type) {
5915
5853
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
5916
5854
  if ("function" === typeof type)
5917
5855
  return type.prototype && type.prototype.isReactComponent
5918
- ? ((type = describeNativeComponentFrame(type, !0)), type)
5856
+ ? describeNativeComponentFrame(type, !0)
5919
5857
  : describeNativeComponentFrame(type, !1);
5920
5858
  if ("object" === typeof type && null !== type) {
5921
5859
  switch (type.$$typeof) {
@@ -6316,9 +6254,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
6316
6254
  var defaultProps = type.defaultProps;
6317
6255
  if (defaultProps) {
6318
6256
  newProps === props && (newProps = assign({}, newProps, props));
6319
- for (var propName$87 in defaultProps)
6320
- void 0 === newProps[propName$87] &&
6321
- (newProps[propName$87] = defaultProps[propName$87]);
6257
+ for (var propName$85 in defaultProps)
6258
+ void 0 === newProps[propName$85] &&
6259
+ (newProps[propName$85] = defaultProps[propName$85]);
6322
6260
  }
6323
6261
  props = newProps;
6324
6262
  newProps = emptyContextObject;
@@ -6428,7 +6366,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6428
6366
  defaultProps = newProps.chunks;
6429
6367
  initialState = request.resumableState;
6430
6368
  ref = request.renderState;
6431
- propName$87 = task.hoistableState;
6369
+ propName$85 = task.hoistableState;
6432
6370
  propName = task.formatContext;
6433
6371
  var textEmbedded = newProps.lastPushedText,
6434
6372
  isFallback = task.isFallback;
@@ -6452,7 +6390,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6452
6390
  props,
6453
6391
  initialState,
6454
6392
  ref,
6455
- propName$87,
6393
+ propName$85,
6456
6394
  propName,
6457
6395
  textEmbedded,
6458
6396
  isFallback
@@ -6507,7 +6445,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
6507
6445
  else {
6508
6446
  switch (type) {
6509
6447
  case REACT_LEGACY_HIDDEN_TYPE:
6510
- case REACT_DEBUG_TRACING_MODE_TYPE:
6511
6448
  case REACT_STRICT_MODE_TYPE:
6512
6449
  case REACT_PROFILER_TYPE:
6513
6450
  case REACT_FRAGMENT_TYPE:
@@ -6549,13 +6486,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
6549
6486
  ref = props.fallback;
6550
6487
  props = props.children;
6551
6488
  var fallbackAbortSet = new Set();
6552
- propName$87 = createSuspenseBoundary(request, fallbackAbortSet);
6489
+ propName$85 = createSuspenseBoundary(request, fallbackAbortSet);
6553
6490
  null !== request.trackedPostpones &&
6554
- (propName$87.trackedContentKeyPath = keyPath);
6491
+ (propName$85.trackedContentKeyPath = keyPath);
6555
6492
  propName = createPendingSegment(
6556
6493
  request,
6557
6494
  contextType.chunks.length,
6558
- propName$87,
6495
+ propName$85,
6559
6496
  task.formatContext,
6560
6497
  !1,
6561
6498
  !1
@@ -6575,7 +6512,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6575
6512
  newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
6576
6513
  defaultProps = [newProps[1], newProps[2], [], null];
6577
6514
  request.trackedPostpones.workingMap.set(newProps, defaultProps);
6578
- propName$87.trackedFallbackNode = defaultProps;
6515
+ propName$85.trackedFallbackNode = defaultProps;
6579
6516
  task.blockedSegment = propName;
6580
6517
  task.keyPath = newProps;
6581
6518
  propName.status = 6;
@@ -6593,9 +6530,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
6593
6530
  null,
6594
6531
  props,
6595
6532
  -1,
6596
- propName$87,
6533
+ propName$85,
6597
6534
  textEmbedded,
6598
- propName$87.contentState,
6535
+ propName$85.contentState,
6599
6536
  task.abortSet,
6600
6537
  keyPath,
6601
6538
  task.formatContext,
@@ -6607,8 +6544,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
6607
6544
  pushComponentStack(task);
6608
6545
  request.pingedTasks.push(task);
6609
6546
  } else {
6610
- task.blockedBoundary = propName$87;
6611
- task.hoistableState = propName$87.contentState;
6547
+ task.blockedBoundary = propName$85;
6548
+ task.hoistableState = propName$85.contentState;
6612
6549
  task.blockedSegment = textEmbedded;
6613
6550
  task.keyPath = keyPath;
6614
6551
  textEmbedded.status = 6;
@@ -6616,17 +6553,17 @@ function renderElement(request, task, keyPath, type, props, ref) {
6616
6553
  if (
6617
6554
  (renderNode(request, task, props, -1),
6618
6555
  (textEmbedded.status = 1),
6619
- queueCompletedSegment(propName$87, textEmbedded),
6620
- 0 === propName$87.pendingTasks && 0 === propName$87.status)
6556
+ queueCompletedSegment(propName$85, textEmbedded),
6557
+ 0 === propName$85.pendingTasks && 0 === propName$85.status)
6621
6558
  ) {
6622
- propName$87.status = 1;
6559
+ propName$85.status = 1;
6623
6560
  break a;
6624
6561
  }
6625
- } catch (thrownValue$82) {
6626
- (propName$87.status = 4),
6562
+ } catch (thrownValue$80) {
6563
+ (propName$85.status = 4),
6627
6564
  12 === request.status
6628
6565
  ? ((textEmbedded.status = 3), (newProps = request.fatalError))
6629
- : ((textEmbedded.status = 4), (newProps = thrownValue$82)),
6566
+ : ((textEmbedded.status = 4), (newProps = thrownValue$80)),
6630
6567
  (defaultProps = getThrownInfo(task.componentStack)),
6631
6568
  "object" === typeof newProps &&
6632
6569
  null !== newProps &&
@@ -6638,8 +6575,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
6638
6575
  newProps,
6639
6576
  defaultProps
6640
6577
  )),
6641
- (propName$87.errorDigest = initialState),
6642
- untrackBoundary(request, propName$87);
6578
+ (propName$85.errorDigest = initialState),
6579
+ untrackBoundary(request, propName$85);
6643
6580
  } finally {
6644
6581
  (task.blockedBoundary = isFallback),
6645
6582
  (task.hoistableState = propValue),
@@ -6653,7 +6590,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6653
6590
  -1,
6654
6591
  isFallback,
6655
6592
  propName,
6656
- propName$87.fallbackState,
6593
+ propName$85.fallbackState,
6657
6594
  fallbackAbortSet,
6658
6595
  [keyPath[0], "Suspense Fallback", keyPath[2]],
6659
6596
  task.formatContext,
@@ -7163,9 +7100,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7163
7100
  addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
7164
7101
  return;
7165
7102
  }
7166
- var boundaryNode$97 = trackedPostpones.workingMap.get(boundaryKeyPath);
7167
- void 0 === boundaryNode$97
7168
- ? ((boundaryNode$97 = [
7103
+ var boundaryNode$95 = trackedPostpones.workingMap.get(boundaryKeyPath);
7104
+ void 0 === boundaryNode$95
7105
+ ? ((boundaryNode$95 = [
7169
7106
  boundaryKeyPath[1],
7170
7107
  boundaryKeyPath[2],
7171
7108
  children,
@@ -7173,13 +7110,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7173
7110
  fallbackReplayNode,
7174
7111
  boundary.rootSegmentID
7175
7112
  ]),
7176
- trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$97),
7113
+ trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$95),
7177
7114
  addToReplayParent(
7178
- boundaryNode$97,
7115
+ boundaryNode$95,
7179
7116
  boundaryKeyPath[0],
7180
7117
  trackedPostpones
7181
7118
  ))
7182
- : ((boundaryKeyPath = boundaryNode$97),
7119
+ : ((boundaryKeyPath = boundaryNode$95),
7183
7120
  (boundaryKeyPath[4] = fallbackReplayNode),
7184
7121
  (boundaryKeyPath[5] = boundary.rootSegmentID));
7185
7122
  }
@@ -7332,15 +7269,15 @@ function renderNode(request, task, node, childIndex) {
7332
7269
  chunkLength = segment.chunks.length;
7333
7270
  try {
7334
7271
  return renderNodeDestructive(request, task, node, childIndex);
7335
- } catch (thrownValue$109) {
7272
+ } catch (thrownValue$107) {
7336
7273
  if (
7337
7274
  (resetHooksState(),
7338
7275
  (segment.children.length = childrenLength),
7339
7276
  (segment.chunks.length = chunkLength),
7340
7277
  (childIndex =
7341
- thrownValue$109 === SuspenseException
7278
+ thrownValue$107 === SuspenseException
7342
7279
  ? getSuspendedThenable()
7343
- : thrownValue$109),
7280
+ : thrownValue$107),
7344
7281
  "object" === typeof childIndex && null !== childIndex)
7345
7282
  ) {
7346
7283
  if ("function" === typeof childIndex.then) {
@@ -7536,16 +7473,16 @@ function abortTask(task, request, error) {
7536
7473
  }
7537
7474
  } else {
7538
7475
  boundary.pendingTasks--;
7539
- var trackedPostpones$112 = request.trackedPostpones;
7476
+ var trackedPostpones$110 = request.trackedPostpones;
7540
7477
  if (4 !== boundary.status) {
7541
- if (null !== trackedPostpones$112 && null !== segment)
7478
+ if (null !== trackedPostpones$110 && null !== segment)
7542
7479
  return (
7543
7480
  "object" === typeof error &&
7544
7481
  null !== error &&
7545
7482
  error.$$typeof === REACT_POSTPONE_TYPE
7546
7483
  ? logPostpone(request, error.message, errorInfo)
7547
7484
  : logRecoverableError(request, error, errorInfo),
7548
- trackPostpone(request, trackedPostpones$112, task, segment),
7485
+ trackPostpone(request, trackedPostpones$110, task, segment),
7549
7486
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7550
7487
  return abortTask(fallbackTask, request, error);
7551
7488
  }),
@@ -7843,13 +7780,13 @@ function performWork(request$jscomp$1) {
7843
7780
  null !== request.trackedPostpones &&
7844
7781
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7845
7782
  ) {
7846
- var trackedPostpones$116 = request.trackedPostpones;
7783
+ var trackedPostpones$114 = request.trackedPostpones;
7847
7784
  task.abortSet.delete(task);
7848
7785
  var postponeInfo = getThrownInfo(task.componentStack);
7849
7786
  logPostpone(request, x$jscomp$0.message, postponeInfo);
7850
7787
  trackPostpone(
7851
7788
  request,
7852
- trackedPostpones$116,
7789
+ trackedPostpones$114,
7853
7790
  task,
7854
7791
  segment$jscomp$0
7855
7792
  );
@@ -8281,11 +8218,11 @@ function flushCompletedQueues(request, destination) {
8281
8218
  completedBoundaries.splice(0, i);
8282
8219
  var partialBoundaries = request.partialBoundaries;
8283
8220
  for (i = 0; i < partialBoundaries.length; i++) {
8284
- var boundary$119 = partialBoundaries[i];
8221
+ var boundary$117 = partialBoundaries[i];
8285
8222
  a: {
8286
8223
  clientRenderedBoundaries = request;
8287
8224
  boundary = destination;
8288
- var completedSegments = boundary$119.completedSegments;
8225
+ var completedSegments = boundary$117.completedSegments;
8289
8226
  for (
8290
8227
  JSCompiler_inline_result = 0;
8291
8228
  JSCompiler_inline_result < completedSegments.length;
@@ -8295,7 +8232,7 @@ function flushCompletedQueues(request, destination) {
8295
8232
  !flushPartiallyCompletedSegment(
8296
8233
  clientRenderedBoundaries,
8297
8234
  boundary,
8298
- boundary$119,
8235
+ boundary$117,
8299
8236
  completedSegments[JSCompiler_inline_result]
8300
8237
  )
8301
8238
  ) {
@@ -8307,7 +8244,7 @@ function flushCompletedQueues(request, destination) {
8307
8244
  completedSegments.splice(0, JSCompiler_inline_result);
8308
8245
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8309
8246
  boundary,
8310
- boundary$119.contentState,
8247
+ boundary$117.contentState,
8311
8248
  clientRenderedBoundaries.renderState
8312
8249
  );
8313
8250
  }
@@ -8379,8 +8316,8 @@ function abort(request, reason) {
8379
8316
  }
8380
8317
  null !== request.destination &&
8381
8318
  flushCompletedQueues(request, request.destination);
8382
- } catch (error$121) {
8383
- logRecoverableError(request, error$121, {}), fatalError(request, error$121);
8319
+ } catch (error$119) {
8320
+ logRecoverableError(request, error$119, {}), fatalError(request, error$119);
8384
8321
  }
8385
8322
  }
8386
8323
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -8497,10 +8434,7 @@ exports.experimental_renderToHTML = function (children, options) {
8497
8434
  rowTag = flightResponse._chunks;
8498
8435
  (rowLength = rowTag.get(rowID))
8499
8436
  ? triggerErrorOnChunk(rowLength, i)
8500
- : rowTag.set(
8501
- rowID,
8502
- new ReactPromise("rejected", null, i, flightResponse)
8503
- );
8437
+ : rowTag.set(rowID, createErrorChunk(flightResponse, i));
8504
8438
  break;
8505
8439
  case 84:
8506
8440
  rowTag = flightResponse._chunks;
@@ -8512,6 +8446,7 @@ exports.experimental_renderToHTML = function (children, options) {
8512
8446
  new ReactPromise("fulfilled", i, null, flightResponse)
8513
8447
  );
8514
8448
  break;
8449
+ case 78:
8515
8450
  case 68:
8516
8451
  case 87:
8517
8452
  throw Error(
@@ -8543,10 +8478,7 @@ exports.experimental_renderToHTML = function (children, options) {
8543
8478
  rowTag = flightResponse._chunks;
8544
8479
  (rowLength = rowTag.get(rowID))
8545
8480
  ? triggerErrorOnChunk(rowLength, i)
8546
- : rowTag.set(
8547
- rowID,
8548
- new ReactPromise("rejected", null, i, flightResponse)
8549
- );
8481
+ : rowTag.set(rowID, createErrorChunk(flightResponse, i));
8550
8482
  break;
8551
8483
  default:
8552
8484
  (rowTag = flightResponse._chunks),
@@ -8696,4 +8628,4 @@ exports.experimental_renderToHTML = function (children, options) {
8696
8628
  });
8697
8629
  });
8698
8630
  };
8699
- exports.version = "19.0.0-experimental-65e06cb7-20241218";
8631
+ exports.version = "19.1.0-experimental-518d06d2-20241219";