react-markup 0.0.0-experimental-5d87cd22-20250704 → 0.0.0-experimental-befc1246-20250708

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.
@@ -825,9 +825,9 @@
825
825
  suffixIdx = url.lastIndexOf("?");
826
826
  -1 < envIdx &&
827
827
  -1 < suffixIdx &&
828
- (url = url.slice(envIdx + 1, suffixIdx));
828
+ (url = decodeURI(url.slice(envIdx + 1, suffixIdx)));
829
829
  }
830
- request(url, functionName) &&
830
+ request(url, functionName, callsite[2], callsite[3]) &&
831
831
  ((callsite = callsite.slice(0)),
832
832
  (callsite[1] = url),
833
833
  filteredStack.push(callsite));
@@ -850,7 +850,7 @@
850
850
  request,
851
851
  parseStackTrace(Error("react-stack-top-frame"), 1)
852
852
  );
853
- request.pendingChunks++;
853
+ request.pendingDebugChunks++;
854
854
  var owner = resolveOwner(),
855
855
  args = Array.from(arguments);
856
856
  a: {
@@ -880,9 +880,13 @@
880
880
  null != owner && outlineComponentInfo(request, owner);
881
881
  format = [methodName, stack, owner, env];
882
882
  format.push.apply(format, args);
883
- args = serializeDebugModel(request, 500, format);
883
+ args = serializeDebugModel(
884
+ request,
885
+ (null === request.deferredDebugObjects ? 500 : 10) + stack.length,
886
+ format
887
+ );
884
888
  "[" !== args[0] &&
885
- (args = serializeDebugModel(request, 500, [
889
+ (args = serializeDebugModel(request, 10 + stack.length, [
886
890
  methodName,
887
891
  stack,
888
892
  owner,
@@ -977,6 +981,7 @@
977
981
  void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
978
982
  this.onAllReady = onAllReady;
979
983
  this.onFatalError = onFatalError;
984
+ this.pendingDebugChunks = 0;
980
985
  this.completedDebugChunks = [];
981
986
  this.environmentName =
982
987
  void 0 === environmentName
@@ -999,6 +1004,7 @@
999
1004
  : null;
1000
1005
  type = this.timeOrigin = performance.now();
1001
1006
  emitTimeOriginChunk(this, type + performance.timeOrigin);
1007
+ this.abortTime = -0;
1002
1008
  model = createTask(
1003
1009
  this,
1004
1010
  model,
@@ -1040,7 +1046,7 @@
1040
1046
  );
1041
1047
  }
1042
1048
  function serializeDebugThenable(request, counter, thenable) {
1043
- request.pendingChunks++;
1049
+ request.pendingDebugChunks++;
1044
1050
  var id = request.nextChunkId++,
1045
1051
  ref = "$@" + id.toString(16);
1046
1052
  request.writtenDebugObjects.set(thenable, ref);
@@ -1051,15 +1057,7 @@
1051
1057
  ref
1052
1058
  );
1053
1059
  case "rejected":
1054
- return (
1055
- (thenable = thenable.reason),
1056
- "object" === typeof thenable &&
1057
- null !== thenable &&
1058
- thenable.$$typeof === REACT_POSTPONE_TYPE
1059
- ? emitPostponeChunk(request, id, thenable)
1060
- : emitErrorChunk(request, id, "", thenable, !0),
1061
- ref
1062
- );
1060
+ return emitErrorChunk(request, id, "", thenable.reason, !0), ref;
1063
1061
  }
1064
1062
  if (request.status === ABORTING$1)
1065
1063
  return emitDebugHaltChunk(request, id), ref;
@@ -1078,11 +1076,7 @@
1078
1076
  ((cancelled = !0),
1079
1077
  request.status === ABORTING$1
1080
1078
  ? emitDebugHaltChunk(request, id)
1081
- : "object" === typeof reason &&
1082
- null !== reason &&
1083
- reason.$$typeof === REACT_POSTPONE_TYPE
1084
- ? emitPostponeChunk(request, id, reason)
1085
- : emitErrorChunk(request, id, "", reason, !0),
1079
+ : emitErrorChunk(request, id, "", reason, !0),
1086
1080
  enqueueFlush(request));
1087
1081
  }
1088
1082
  );
@@ -1138,8 +1132,10 @@
1138
1132
  return (
1139
1133
  request.abortableTasks.delete(newTask),
1140
1134
  21 === request.type
1141
- ? haltTask(newTask, request)
1142
- : abortTask$1(newTask, request, request.fatalError),
1135
+ ? (haltTask(newTask), finishHaltedTask(newTask, request))
1136
+ : ((task = request.fatalError),
1137
+ abortTask$1(newTask),
1138
+ finishAbortedTask(newTask, request, task)),
1143
1139
  newTask.id
1144
1140
  );
1145
1141
  "string" !== typeof thenable.status &&
@@ -1212,8 +1208,7 @@
1212
1208
  signal.removeEventListener("abort", abortStream);
1213
1209
  signal = signal.reason;
1214
1210
  21 === request.type
1215
- ? (haltTask(streamTask, request),
1216
- request.abortableTasks.delete(streamTask))
1211
+ ? (haltTask(streamTask), request.abortableTasks.delete(streamTask))
1217
1212
  : (erroredTask$1(request, streamTask, signal),
1218
1213
  enqueueFlush(request));
1219
1214
  reader.cancel(signal).then(error, error);
@@ -1301,8 +1296,7 @@
1301
1296
  signal.removeEventListener("abort", abortIterable);
1302
1297
  var reason = signal.reason;
1303
1298
  21 === request.type
1304
- ? (haltTask(streamTask, request),
1305
- request.abortableTasks.delete(streamTask))
1299
+ ? (haltTask(streamTask), request.abortableTasks.delete(streamTask))
1306
1300
  : (erroredTask$1(request, streamTask, signal.reason),
1307
1301
  enqueueFlush(request));
1308
1302
  "function" === typeof iterator.throw &&
@@ -1468,7 +1462,7 @@
1468
1462
  var componentDebugID = task.id;
1469
1463
  componentDebugInfo = Component.displayName || Component.name || "";
1470
1464
  var componentEnv = (0, request.environmentName)();
1471
- request.pendingChunks++;
1465
+ request.pendingDebugChunks++;
1472
1466
  componentDebugInfo = {
1473
1467
  name: componentDebugInfo,
1474
1468
  env: componentEnv,
@@ -1863,7 +1857,7 @@
1863
1857
  function serializeDeferredObject(request, value) {
1864
1858
  var deferredDebugObjects = request.deferredDebugObjects;
1865
1859
  return null !== deferredDebugObjects
1866
- ? (request.pendingChunks++,
1860
+ ? (request.pendingDebugChunks++,
1867
1861
  (request = request.nextChunkId++),
1868
1862
  deferredDebugObjects.existing.set(value, request),
1869
1863
  deferredDebugObjects.retained.set(request, value),
@@ -1938,7 +1932,7 @@
1938
1932
  request.bundlerConfig,
1939
1933
  clientReference
1940
1934
  );
1941
- request.pendingChunks++;
1935
+ request.pendingDebugChunks++;
1942
1936
  var importId = request.nextChunkId++;
1943
1937
  emitImportChunk(request, importId, clientReferenceMetadata, !0);
1944
1938
  return parent[0] === REACT_ELEMENT_TYPE && "1" === parentPropertyName
@@ -1946,7 +1940,7 @@
1946
1940
  : serializeByValueID$1(importId);
1947
1941
  } catch (x) {
1948
1942
  return (
1949
- request.pendingChunks++,
1943
+ request.pendingDebugChunks++,
1950
1944
  (parent = request.nextChunkId++),
1951
1945
  (parentPropertyName = logRecoverableError$1(request, x, null)),
1952
1946
  emitErrorChunk(request, parent, parentPropertyName, x, !0),
@@ -1995,7 +1989,7 @@
1995
1989
  return serializeByValueID$1(bufferId);
1996
1990
  }
1997
1991
  function serializeDebugTypedArray(request, tag, typedArray) {
1998
- request.pendingChunks++;
1992
+ request.pendingDebugChunks++;
1999
1993
  var bufferId = request.nextChunkId++;
2000
1994
  emitTypedArrayChunk(request, bufferId, tag, typedArray, !0);
2001
1995
  return serializeByValueID$1(bufferId);
@@ -2021,8 +2015,9 @@
2021
2015
  reader.cancel(reason).then(noop, noop);
2022
2016
  }
2023
2017
  var model = [blob.type],
2024
- reader = blob.stream().getReader(),
2025
- id = request.nextChunkId++;
2018
+ reader = blob.stream().getReader();
2019
+ request.pendingDebugChunks++;
2020
+ var id = request.nextChunkId++;
2026
2021
  reader.read().then(progress).catch(error);
2027
2022
  return "$B" + id.toString(16);
2028
2023
  }
@@ -2056,7 +2051,7 @@
2056
2051
  signal.removeEventListener("abort", abortBlob);
2057
2052
  signal = signal.reason;
2058
2053
  21 === request.type
2059
- ? haltTask(newTask, request)
2054
+ ? haltTask(newTask)
2060
2055
  : (erroredTask$1(request, newTask, signal), enqueueFlush(request));
2061
2056
  reader.cancel(signal).then(error, error);
2062
2057
  }
@@ -2641,7 +2636,7 @@
2641
2636
  request.writtenObjects.set(componentInfo, objectLimit);
2642
2637
  }
2643
2638
  }
2644
- function emitTypedArrayChunk(request, id, tag, typedArray) {
2639
+ function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
2645
2640
  TaintRegistryByteLengths.has(typedArray.byteLength) &&
2646
2641
  ((id = TaintRegistryValues.get(
2647
2642
  String.fromCharCode.apply(
@@ -2654,7 +2649,7 @@
2654
2649
  )
2655
2650
  )),
2656
2651
  void 0 !== id && throwTaintViolation(id.message));
2657
- request.pendingChunks++;
2652
+ debug ? request.pendingDebugChunks++ : request.pendingChunks++;
2658
2653
  throw Error("Not implemented.");
2659
2654
  }
2660
2655
  function renderDebugModel(
@@ -2887,7 +2882,7 @@
2887
2882
  if (0 >= counter.objectLimit)
2888
2883
  return serializeDeferredObject(request, value);
2889
2884
  counter.objectLimit--;
2890
- request.pendingChunks++;
2885
+ request.pendingDebugChunks++;
2891
2886
  request.nextChunkId++;
2892
2887
  throw Error(
2893
2888
  "Existence of byteLengthOfChunk should have already been checked. This is a bug in React."
@@ -2916,7 +2911,7 @@
2916
2911
  ref = counter.get(value);
2917
2912
  if (void 0 !== ref) return ref;
2918
2913
  key = "$E(" + (Function.prototype.toString.call(value) + ")");
2919
- request.pendingChunks++;
2914
+ request.pendingDebugChunks++;
2920
2915
  ref = request.nextChunkId++;
2921
2916
  key = encodeReferenceChunk(request, ref, key);
2922
2917
  request.completedDebugChunks.push(key);
@@ -3008,12 +3003,12 @@
3008
3003
  }
3009
3004
  function outlineDebugModel(request, counter, model) {
3010
3005
  var id = request.nextChunkId++;
3011
- request.pendingChunks++;
3006
+ request.pendingDebugChunks++;
3012
3007
  emitOutlinedDebugModelChunk(request, id, counter, model);
3013
3008
  return id;
3014
3009
  }
3015
3010
  function emitTimeOriginChunk(request, timeOrigin) {
3016
- request.pendingChunks++;
3011
+ request.pendingDebugChunks++;
3017
3012
  request.completedDebugChunks.push(":N" + timeOrigin + "\n");
3018
3013
  }
3019
3014
  function forwardDebugInfo(request$jscomp$1, task, debugInfo) {
@@ -3023,7 +3018,7 @@
3023
3018
  markOperationEndTime(request$jscomp$1, task, info.time);
3024
3019
  else if ("string" === typeof info.name)
3025
3020
  outlineComponentInfo(request$jscomp$1, info),
3026
- request$jscomp$1.pendingChunks++,
3021
+ request$jscomp$1.pendingDebugChunks++,
3027
3022
  emitDebugChunk(request$jscomp$1, id, info);
3028
3023
  else if (info.awaited) {
3029
3024
  var ioInfo = info.awaited;
@@ -3031,7 +3026,7 @@
3031
3026
  var request = request$jscomp$1,
3032
3027
  ioInfo$jscomp$0 = ioInfo;
3033
3028
  if (!request.writtenObjects.has(ioInfo$jscomp$0)) {
3034
- request.pendingChunks++;
3029
+ request.pendingDebugChunks++;
3035
3030
  var id$jscomp$0 = request.nextChunkId++,
3036
3031
  owner = ioInfo$jscomp$0.owner;
3037
3032
  null != owner && outlineComponentInfo(request, owner);
@@ -3081,11 +3076,11 @@
3081
3076
  null != info.env && (ioInfo.env = info.env);
3082
3077
  null != info.owner && (ioInfo.owner = info.owner);
3083
3078
  null != request && (ioInfo.stack = request);
3084
- request$jscomp$1.pendingChunks++;
3079
+ request$jscomp$1.pendingDebugChunks++;
3085
3080
  emitDebugChunk(request$jscomp$1, id, ioInfo);
3086
3081
  }
3087
3082
  } else
3088
- request$jscomp$1.pendingChunks++,
3083
+ request$jscomp$1.pendingDebugChunks++,
3089
3084
  emitDebugChunk(request$jscomp$1, id, info);
3090
3085
  }
3091
3086
  }
@@ -3099,30 +3094,19 @@
3099
3094
  }
3100
3095
  function forwardDebugInfoFromAbortedTask(request, task) {
3101
3096
  var model = task.model;
3102
- if ("object" === typeof model && null !== model) {
3103
- var debugInfo;
3104
- (debugInfo = model._debugInfo) &&
3105
- forwardDebugInfo(request, task, debugInfo);
3106
- if (
3107
- "function" !== typeof model.then &&
3108
- model.$$typeof === REACT_LAZY_TYPE
3109
- ) {
3110
- request = model._payload;
3111
- model = model._init;
3112
- try {
3113
- model(request);
3114
- } catch (x) {}
3115
- }
3116
- }
3097
+ "object" === typeof model &&
3098
+ null !== model &&
3099
+ (model = model._debugInfo) &&
3100
+ forwardDebugInfo(request, task, model);
3117
3101
  }
3118
3102
  function emitTimingChunk(request, id, timestamp) {
3119
- request.pendingChunks++;
3103
+ request.pendingDebugChunks++;
3120
3104
  timestamp -= request.timeOrigin;
3121
3105
  id = id.toString(16) + ':D{"time":' + timestamp + "}\n";
3122
3106
  request.completedDebugChunks.push(id);
3123
3107
  }
3124
3108
  function markOperationEndTime(request, task, timestamp) {
3125
- request.status !== ABORTING$1 &&
3109
+ (request.status === ABORTING$1 && timestamp > request.abortTime) ||
3126
3110
  (timestamp > task.time
3127
3111
  ? (emitTimingChunk(request, task.id, timestamp),
3128
3112
  (task.time = timestamp))
@@ -3205,7 +3189,7 @@
3205
3189
  task.implicitSlot = !1;
3206
3190
  var currentEnv = (0, request.environmentName)();
3207
3191
  currentEnv !== task.environmentName &&
3208
- (request.pendingChunks++,
3192
+ (request.pendingDebugChunks++,
3209
3193
  emitDebugChunk(request, task.id, { env: currentEnv }));
3210
3194
  task.timed && markOperationEndTime(request, task, performance.now());
3211
3195
  if ("object" === typeof resolvedModel && null !== resolvedModel)
@@ -3224,11 +3208,17 @@
3224
3208
  callOnAllReadyIfReady(request);
3225
3209
  } catch (thrownValue) {
3226
3210
  if (request.status === ABORTING$1)
3227
- request.abortableTasks.delete(task),
3211
+ if (
3212
+ (request.abortableTasks.delete(task),
3228
3213
  (task.status = 0),
3229
- 21 === request.type
3230
- ? haltTask(task, request)
3231
- : abortTask$1(task, request, request.fatalError);
3214
+ 21 === request.type)
3215
+ )
3216
+ haltTask(task), finishHaltedTask(task, request);
3217
+ else {
3218
+ var errorId = request.fatalError;
3219
+ abortTask$1(task);
3220
+ finishAbortedTask(task, request, errorId);
3221
+ }
3232
3222
  else {
3233
3223
  var x =
3234
3224
  thrownValue === SuspenseException$1
@@ -3283,19 +3273,23 @@
3283
3273
  (currentRequest = prevRequest);
3284
3274
  }
3285
3275
  }
3286
- function abortTask$1(task, request, errorId) {
3287
- 5 !== task.status &&
3288
- ((task.status = 3),
3289
- forwardDebugInfoFromAbortedTask(request, task),
3290
- task.timed && markOperationEndTime(request, task, performance.now()),
3276
+ function abortTask$1(task) {
3277
+ 0 === task.status && (task.status = 3);
3278
+ }
3279
+ function finishAbortedTask(task, request, errorId) {
3280
+ 3 === task.status &&
3281
+ (forwardDebugInfoFromAbortedTask(request, task),
3282
+ task.timed && markOperationEndTime(request, task, request.abortTime),
3291
3283
  (errorId = serializeByValueID$1(errorId)),
3292
3284
  (task = encodeReferenceChunk(request, task.id, errorId)),
3293
3285
  request.completedErrorChunks.push(task));
3294
3286
  }
3295
- function haltTask(task, request) {
3296
- 5 !== task.status &&
3297
- ((task.status = 3),
3298
- forwardDebugInfoFromAbortedTask(request, task),
3287
+ function haltTask(task) {
3288
+ 0 === task.status && (task.status = 3);
3289
+ }
3290
+ function finishHaltedTask(task, request) {
3291
+ 3 === task.status &&
3292
+ (forwardDebugInfoFromAbortedTask(request, task),
3299
3293
  request.pendingChunks--);
3300
3294
  }
3301
3295
  function flushCompletedChunks(request, destination) {
@@ -3321,7 +3315,9 @@
3321
3315
  hintChunks.splice(0, i);
3322
3316
  var debugChunks = request.completedDebugChunks;
3323
3317
  for (i = 0; i < debugChunks.length; i++)
3324
- if ((request.pendingChunks--, !destination.push(debugChunks[i]))) {
3318
+ if (
3319
+ (request.pendingDebugChunks--, !destination.push(debugChunks[i]))
3320
+ ) {
3325
3321
  request.destination = null;
3326
3322
  i++;
3327
3323
  break;
@@ -3347,6 +3343,7 @@
3347
3343
  request.flushScheduled = !1;
3348
3344
  }
3349
3345
  0 === request.pendingChunks &&
3346
+ 0 === request.pendingDebugChunks &&
3350
3347
  (cleanupTaintQueue(request),
3351
3348
  request.status < ABORTING$1 &&
3352
3349
  request.cacheController.abort(
@@ -3391,62 +3388,94 @@
3391
3388
  }
3392
3389
  }
3393
3390
  }
3394
- function abort$1(request, reason) {
3391
+ function finishHalt(request, abortedTasks) {
3395
3392
  try {
3396
- 11 >= request.status &&
3397
- ((request.status = ABORTING$1),
3398
- request.cacheController.abort(reason),
3399
- callOnAllReadyIfReady(request));
3400
- var abortableTasks = request.abortableTasks;
3401
- if (0 < abortableTasks.size) {
3402
- if (21 === request.type)
3403
- abortableTasks.forEach(function (task) {
3404
- return haltTask(task, request);
3405
- });
3406
- else if (
3407
- "object" === typeof reason &&
3408
- null !== reason &&
3409
- reason.$$typeof === REACT_POSTPONE_TYPE
3410
- ) {
3411
- logPostpone$1(request, reason.message, null);
3412
- var errorId = request.nextChunkId++;
3413
- request.fatalError = errorId;
3414
- request.pendingChunks++;
3415
- emitPostponeChunk(request, errorId, reason);
3416
- abortableTasks.forEach(function (task) {
3417
- return abortTask$1(task, request, errorId);
3418
- });
3419
- } else {
3420
- var error =
3421
- void 0 === reason
3422
- ? Error(
3423
- "The render was aborted by the server without a reason."
3424
- )
3425
- : "object" === typeof reason &&
3426
- null !== reason &&
3427
- "function" === typeof reason.then
3393
+ abortedTasks.forEach(function (task) {
3394
+ return finishHaltedTask(task, request);
3395
+ });
3396
+ var onAllReady = request.onAllReady;
3397
+ onAllReady();
3398
+ null !== request.destination &&
3399
+ flushCompletedChunks(request, request.destination);
3400
+ } catch (error) {
3401
+ logRecoverableError$1(request, error, null),
3402
+ fatalError$1(request, error);
3403
+ }
3404
+ }
3405
+ function finishAbort(request, abortedTasks, errorId) {
3406
+ try {
3407
+ abortedTasks.forEach(function (task) {
3408
+ return finishAbortedTask(task, request, errorId);
3409
+ });
3410
+ var onAllReady = request.onAllReady;
3411
+ onAllReady();
3412
+ null !== request.destination &&
3413
+ flushCompletedChunks(request, request.destination);
3414
+ } catch (error) {
3415
+ logRecoverableError$1(request, error, null),
3416
+ fatalError$1(request, error);
3417
+ }
3418
+ }
3419
+ function abort$1(request, reason) {
3420
+ if (!(11 < request.status))
3421
+ try {
3422
+ request.status = ABORTING$1;
3423
+ request.abortTime = performance.now();
3424
+ request.cacheController.abort(reason);
3425
+ var abortableTasks = request.abortableTasks;
3426
+ if (0 < abortableTasks.size)
3427
+ if (21 === request.type)
3428
+ abortableTasks.forEach(function (task) {
3429
+ return haltTask(task, request);
3430
+ }),
3431
+ finishHalt(request, abortableTasks);
3432
+ else if (
3433
+ "object" === typeof reason &&
3434
+ null !== reason &&
3435
+ reason.$$typeof === REACT_POSTPONE_TYPE
3436
+ ) {
3437
+ logPostpone$1(request, reason.message, null);
3438
+ var errorId = request.nextChunkId++;
3439
+ request.fatalError = errorId;
3440
+ request.pendingChunks++;
3441
+ emitPostponeChunk(request, errorId, reason);
3442
+ abortableTasks.forEach(function (task) {
3443
+ return abortTask$1(task, request, errorId);
3444
+ });
3445
+ finishAbort(request, abortableTasks, errorId);
3446
+ } else {
3447
+ var error =
3448
+ void 0 === reason
3428
3449
  ? Error(
3429
- "The render was aborted by the server with a promise."
3450
+ "The render was aborted by the server without a reason."
3430
3451
  )
3431
- : reason,
3432
- digest = logRecoverableError$1(request, error, null),
3433
- _errorId2 = request.nextChunkId++;
3434
- request.fatalError = _errorId2;
3435
- request.pendingChunks++;
3436
- emitErrorChunk(request, _errorId2, digest, error, !1);
3437
- abortableTasks.forEach(function (task) {
3438
- return abortTask$1(task, request, _errorId2);
3439
- });
3452
+ : "object" === typeof reason &&
3453
+ null !== reason &&
3454
+ "function" === typeof reason.then
3455
+ ? Error(
3456
+ "The render was aborted by the server with a promise."
3457
+ )
3458
+ : reason,
3459
+ digest = logRecoverableError$1(request, error, null),
3460
+ _errorId2 = request.nextChunkId++;
3461
+ request.fatalError = _errorId2;
3462
+ request.pendingChunks++;
3463
+ emitErrorChunk(request, _errorId2, digest, error, !1);
3464
+ abortableTasks.forEach(function (task) {
3465
+ return abortTask$1(task, request, _errorId2);
3466
+ });
3467
+ finishAbort(request, abortableTasks, _errorId2);
3468
+ }
3469
+ else {
3470
+ var onAllReady = request.onAllReady;
3471
+ onAllReady();
3472
+ null !== request.destination &&
3473
+ flushCompletedChunks(request, request.destination);
3440
3474
  }
3441
- abortableTasks.clear();
3442
- callOnAllReadyIfReady(request);
3475
+ } catch (error$4) {
3476
+ logRecoverableError$1(request, error$4, null),
3477
+ fatalError$1(request, error$4);
3443
3478
  }
3444
- null !== request.destination &&
3445
- flushCompletedChunks(request, request.destination);
3446
- } catch (error$4) {
3447
- logRecoverableError$1(request, error$4, null),
3448
- fatalError$1(request, error$4);
3449
- }
3450
3479
  }
3451
3480
  function bindToConsole(methodName, args, badgeName) {
3452
3481
  var offset = 0;
@@ -4016,7 +4045,7 @@
4016
4045
  "\n//# sourceURL=rsc://React/" +
4017
4046
  encodeURIComponent(environmentName) +
4018
4047
  "/" +
4019
- filename +
4048
+ encodeURI(filename) +
4020
4049
  "?s" +
4021
4050
  fakeServerFunctionIdx++),
4022
4051
  (col += "\n//# sourceMappingURL=" + sourceMap))
@@ -4643,6 +4672,17 @@
4643
4672
  this._children = [];
4644
4673
  this._debugInfo = null;
4645
4674
  }
4675
+ function unwrapWeakResponse(weakResponse) {
4676
+ weakResponse = weakResponse.weak.deref();
4677
+ if (void 0 === weakResponse)
4678
+ throw Error(
4679
+ "We did not expect to receive new data after GC:ing the response."
4680
+ );
4681
+ return weakResponse;
4682
+ }
4683
+ function cleanupDebugChannel(debugChannel) {
4684
+ debugChannel("");
4685
+ }
4646
4686
  function readChunk(chunk) {
4647
4687
  switch (chunk.status) {
4648
4688
  case "resolved_model":
@@ -4662,9 +4702,27 @@
4662
4702
  throw chunk.reason;
4663
4703
  }
4664
4704
  }
4665
- function createPendingChunk() {
4705
+ function getRoot(weakResponse) {
4706
+ weakResponse = unwrapWeakResponse(weakResponse);
4707
+ return getChunk(weakResponse, 0);
4708
+ }
4709
+ function createPendingChunk(response) {
4710
+ 0 === response._pendingChunks++ &&
4711
+ ((response._weakResponse.response = response),
4712
+ null !== response._pendingInitialRender &&
4713
+ (clearTimeout(response._pendingInitialRender),
4714
+ (response._pendingInitialRender = null)));
4666
4715
  return new ReactPromise("pending", null, null);
4667
4716
  }
4717
+ function releasePendingChunk(response, chunk) {
4718
+ "pending" === chunk.status &&
4719
+ 0 === --response._pendingChunks &&
4720
+ ((response._weakResponse.response = null),
4721
+ (response._pendingInitialRender = setTimeout(
4722
+ flushInitialRenderPerformance.bind(null, response),
4723
+ 100
4724
+ )));
4725
+ }
4668
4726
  function createErrorChunk(response, error) {
4669
4727
  return new ReactPromise("rejected", null, error);
4670
4728
  }
@@ -4743,15 +4801,14 @@
4743
4801
  rejectListeners && rejectChunk(rejectListeners, chunk.reason);
4744
4802
  }
4745
4803
  }
4746
- function triggerErrorOnChunk(chunk, error) {
4747
- if ("pending" !== chunk.status && "blocked" !== chunk.status)
4748
- chunk.reason.error(error);
4749
- else {
4750
- var listeners = chunk.reason;
4751
- chunk.status = "rejected";
4752
- chunk.reason = error;
4753
- null !== listeners && rejectChunk(listeners, error);
4754
- }
4804
+ function triggerErrorOnChunk(response, chunk, error) {
4805
+ "pending" !== chunk.status && "blocked" !== chunk.status
4806
+ ? chunk.reason.error(error)
4807
+ : (releasePendingChunk(response, chunk),
4808
+ (response = chunk.reason),
4809
+ (chunk.status = "rejected"),
4810
+ (chunk.reason = error),
4811
+ null !== response && rejectChunk(response, error));
4755
4812
  }
4756
4813
  function createResolvedIteratorResultChunk(response, value, done) {
4757
4814
  return new ReactPromise(
@@ -4774,6 +4831,7 @@
4774
4831
  function resolveModelChunk(response, chunk, value) {
4775
4832
  if ("pending" !== chunk.status) chunk.reason.enqueueModel(value);
4776
4833
  else {
4834
+ releasePendingChunk(response, chunk);
4777
4835
  var resolveListeners = chunk.value,
4778
4836
  rejectListeners = chunk.reason;
4779
4837
  chunk.status = "resolved_model";
@@ -4826,24 +4884,19 @@
4826
4884
  (chunk.status = "rejected"), (chunk.reason = error);
4827
4885
  }
4828
4886
  }
4829
- function reportGlobalError(response, error) {
4830
- response._closed = !0;
4831
- response._closedReason = error;
4832
- response._chunks.forEach(function (chunk) {
4833
- "pending" === chunk.status && triggerErrorOnChunk(chunk, error);
4834
- });
4835
- var debugChannel = response._debugChannel;
4836
- void 0 !== debugChannel &&
4837
- (debugChannel(""), (response._debugChannel = void 0));
4838
- response._replayConsole &&
4839
- (markAllTracksInOrder(),
4840
- flushComponentPerformance(
4841
- response,
4842
- getChunk(response, 0),
4843
- 0,
4844
- -Infinity,
4845
- -Infinity
4846
- ));
4887
+ function reportGlobalError(weakResponse, error) {
4888
+ if (void 0 !== weakResponse.weak.deref()) {
4889
+ var response = unwrapWeakResponse(weakResponse);
4890
+ response._closed = !0;
4891
+ response._closedReason = error;
4892
+ response._chunks.forEach(function (chunk) {
4893
+ "pending" === chunk.status &&
4894
+ triggerErrorOnChunk(response, chunk, error);
4895
+ });
4896
+ weakResponse = response._debugChannel;
4897
+ void 0 !== weakResponse &&
4898
+ (weakResponse(""), (response._debugChannel = void 0));
4899
+ }
4847
4900
  }
4848
4901
  function nullRefGetter() {
4849
4902
  return null;
@@ -4919,7 +4972,7 @@
4919
4972
  chunk ||
4920
4973
  ((chunk = response._closed
4921
4974
  ? createErrorChunk(response, response._closedReason)
4922
- : createPendingChunk()),
4975
+ : createPendingChunk(response)),
4923
4976
  chunks.set(id, chunk));
4924
4977
  return chunk;
4925
4978
  }
@@ -5005,31 +5058,31 @@
5005
5058
  }
5006
5059
  function rejectReference(reference, error) {
5007
5060
  var handler = reference.handler;
5008
- if (
5009
- !handler.errored &&
5010
- ((reference = handler.value),
5011
- (handler.errored = !0),
5012
- (handler.value = error),
5013
- (handler = handler.chunk),
5014
- null !== handler && "blocked" === handler.status)
5015
- ) {
5016
- if (
5017
- "object" === typeof reference &&
5018
- null !== reference &&
5019
- reference.$$typeof === REACT_ELEMENT_TYPE
5020
- ) {
5021
- var erroredComponent = {
5022
- name: getComponentNameFromType(reference.type) || "",
5023
- owner: reference._owner
5024
- };
5025
- erroredComponent.debugStack = reference._debugStack;
5026
- supportsCreateTask &&
5027
- (erroredComponent.debugTask = reference._debugTask);
5028
- (handler._debugInfo || (handler._debugInfo = [])).push(
5029
- erroredComponent
5030
- );
5061
+ reference = reference.response;
5062
+ if (!handler.errored) {
5063
+ var blockedValue = handler.value;
5064
+ handler.errored = !0;
5065
+ handler.value = error;
5066
+ handler = handler.chunk;
5067
+ if (null !== handler && "blocked" === handler.status) {
5068
+ if (
5069
+ "object" === typeof blockedValue &&
5070
+ null !== blockedValue &&
5071
+ blockedValue.$$typeof === REACT_ELEMENT_TYPE
5072
+ ) {
5073
+ var erroredComponent = {
5074
+ name: getComponentNameFromType(blockedValue.type) || "",
5075
+ owner: blockedValue._owner
5076
+ };
5077
+ erroredComponent.debugStack = blockedValue._debugStack;
5078
+ supportsCreateTask &&
5079
+ (erroredComponent.debugTask = blockedValue._debugTask);
5080
+ (handler._debugInfo || (handler._debugInfo = [])).push(
5081
+ erroredComponent
5082
+ );
5083
+ }
5084
+ triggerErrorOnChunk(reference, handler, error);
5031
5085
  }
5032
- triggerErrorOnChunk(handler, error);
5033
5086
  }
5034
5087
  }
5035
5088
  function waitForReference(
@@ -5222,6 +5275,23 @@
5222
5275
  function applyConstructor(response, model, parentObject) {
5223
5276
  Object.setPrototypeOf(parentObject, model.prototype);
5224
5277
  }
5278
+ function defineLazyGetter(response, chunk, parentObject, key) {
5279
+ Object.defineProperty(parentObject, key, {
5280
+ get: function () {
5281
+ "resolved_model" === chunk.status && initializeModelChunk(chunk);
5282
+ switch (chunk.status) {
5283
+ case "fulfilled":
5284
+ return chunk.value;
5285
+ case "rejected":
5286
+ throw chunk.reason;
5287
+ }
5288
+ return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
5289
+ },
5290
+ enumerable: !0,
5291
+ configurable: !1
5292
+ });
5293
+ return null;
5294
+ }
5225
5295
  function extractIterator(response, model) {
5226
5296
  return model[Symbol.iterator]();
5227
5297
  }
@@ -5267,15 +5337,13 @@
5267
5337
  case "S":
5268
5338
  return Symbol.for(value.slice(2));
5269
5339
  case "F":
5270
- return (
5271
- (value = value.slice(2)),
5272
- getOutlinedModel(
5273
- response,
5274
- value,
5275
- parentObject,
5276
- key,
5277
- loadServerReference
5278
- )
5340
+ var ref = value.slice(2);
5341
+ return getOutlinedModel(
5342
+ response,
5343
+ ref,
5344
+ parentObject,
5345
+ key,
5346
+ loadServerReference
5279
5347
  );
5280
5348
  case "T":
5281
5349
  parentObject = "$" + value.slice(2);
@@ -5287,36 +5355,30 @@
5287
5355
  return response.get(parentObject);
5288
5356
  case "Q":
5289
5357
  return (
5290
- (value = value.slice(2)),
5291
- getOutlinedModel(response, value, parentObject, key, createMap)
5358
+ (ref = value.slice(2)),
5359
+ getOutlinedModel(response, ref, parentObject, key, createMap)
5292
5360
  );
5293
5361
  case "W":
5294
5362
  return (
5295
- (value = value.slice(2)),
5296
- getOutlinedModel(response, value, parentObject, key, createSet)
5363
+ (ref = value.slice(2)),
5364
+ getOutlinedModel(response, ref, parentObject, key, createSet)
5297
5365
  );
5298
5366
  case "B":
5299
5367
  return (
5300
- (value = value.slice(2)),
5301
- getOutlinedModel(response, value, parentObject, key, createBlob)
5368
+ (ref = value.slice(2)),
5369
+ getOutlinedModel(response, ref, parentObject, key, createBlob)
5302
5370
  );
5303
5371
  case "K":
5304
5372
  return (
5305
- (value = value.slice(2)),
5306
- getOutlinedModel(
5307
- response,
5308
- value,
5309
- parentObject,
5310
- key,
5311
- createFormData
5312
- )
5373
+ (ref = value.slice(2)),
5374
+ getOutlinedModel(response, ref, parentObject, key, createFormData)
5313
5375
  );
5314
5376
  case "Z":
5315
5377
  return (
5316
- (value = value.slice(2)),
5378
+ (ref = value.slice(2)),
5317
5379
  getOutlinedModel(
5318
5380
  response,
5319
- value,
5381
+ ref,
5320
5382
  parentObject,
5321
5383
  key,
5322
5384
  resolveErrorDev
@@ -5324,10 +5386,10 @@
5324
5386
  );
5325
5387
  case "i":
5326
5388
  return (
5327
- (value = value.slice(2)),
5389
+ (ref = value.slice(2)),
5328
5390
  getOutlinedModel(
5329
5391
  response,
5330
- value,
5392
+ ref,
5331
5393
  parentObject,
5332
5394
  key,
5333
5395
  extractIterator
@@ -5347,10 +5409,10 @@
5347
5409
  return BigInt(value.slice(2));
5348
5410
  case "P":
5349
5411
  return (
5350
- (value = value.slice(2)),
5412
+ (ref = value.slice(2)),
5351
5413
  getOutlinedModel(
5352
5414
  response,
5353
- value,
5415
+ ref,
5354
5416
  parentObject,
5355
5417
  key,
5356
5418
  applyConstructor
@@ -5396,23 +5458,27 @@
5396
5458
  return function () {};
5397
5459
  }
5398
5460
  case "Y":
5399
- return (
5400
- 2 < value.length &&
5401
- (response = response._debugChannel) &&
5402
- ((value = value.slice(2)), response("R:" + value)),
5403
- Object.defineProperty(parentObject, key, {
5404
- get: function () {
5405
- return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
5406
- },
5407
- enumerable: !0,
5408
- configurable: !1
5409
- }),
5410
- null
5411
- );
5461
+ if (2 < value.length && (ref = response._debugChannel)) {
5462
+ value = value.slice(2);
5463
+ var _id2 = parseInt(value, 16);
5464
+ response._chunks.has(_id2) || ref("Q:" + value);
5465
+ ref = getChunk(response, _id2);
5466
+ return "fulfilled" === ref.status
5467
+ ? ref.value
5468
+ : defineLazyGetter(response, ref, parentObject, key);
5469
+ }
5470
+ Object.defineProperty(parentObject, key, {
5471
+ get: function () {
5472
+ return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
5473
+ },
5474
+ enumerable: !0,
5475
+ configurable: !1
5476
+ });
5477
+ return null;
5412
5478
  default:
5413
5479
  return (
5414
- (value = value.slice(1)),
5415
- getOutlinedModel(response, value, parentObject, key, createModel)
5480
+ (ref = value.slice(1)),
5481
+ getOutlinedModel(response, ref, parentObject, key, createModel)
5416
5482
  );
5417
5483
  }
5418
5484
  }
@@ -5451,6 +5517,9 @@
5451
5517
  this._closedReason = null;
5452
5518
  this._tempRefs = temporaryReferences;
5453
5519
  this._timeOrigin = 0;
5520
+ this._pendingInitialRender = null;
5521
+ this._pendingChunks = 0;
5522
+ this._weakResponse = { weak: new WeakRef(this), response: this };
5454
5523
  this._debugRootOwner = bundlerConfig =
5455
5524
  void 0 === ReactSharedInteralsServer ||
5456
5525
  null === ReactSharedInteralsServer.A
@@ -5467,18 +5536,23 @@
5467
5536
  this._debugChannel = debugChannel;
5468
5537
  this._replayConsole = replayConsole;
5469
5538
  this._rootEnvironmentName = environmentName;
5539
+ debugChannel &&
5540
+ (null === debugChannelRegistry
5541
+ ? (debugChannel(""), (this._debugChannel = void 0))
5542
+ : debugChannelRegistry.register(this, debugChannel));
5470
5543
  replayConsole && markAllTracksInOrder();
5471
5544
  this._fromJSON = createFromJSONCallback(this);
5472
5545
  }
5473
5546
  function resolveDebugHalt(response, id) {
5474
- response = response._chunks;
5475
- var chunk = response.get(id);
5476
- chunk || response.set(id, (chunk = createPendingChunk()));
5547
+ var chunks = response._chunks,
5548
+ chunk = chunks.get(id);
5549
+ chunk || chunks.set(id, (chunk = createPendingChunk(response)));
5477
5550
  if ("pending" === chunk.status || "blocked" === chunk.status)
5478
- (id = chunk),
5479
- (id.status = "halted"),
5480
- (id.value = null),
5481
- (id.reason = null);
5551
+ releasePendingChunk(response, chunk),
5552
+ (response = chunk),
5553
+ (response.status = "halted"),
5554
+ (response.value = null),
5555
+ (response.reason = null);
5482
5556
  }
5483
5557
  function resolveModel(response, id, model) {
5484
5558
  var chunks = response._chunks,
@@ -5488,11 +5562,12 @@
5488
5562
  : chunks.set(id, new ReactPromise("resolved_model", model, response));
5489
5563
  }
5490
5564
  function resolveText(response, id, text) {
5491
- response = response._chunks;
5492
- var chunk = response.get(id);
5565
+ var chunks = response._chunks,
5566
+ chunk = chunks.get(id);
5493
5567
  chunk && "pending" !== chunk.status
5494
5568
  ? chunk.reason.enqueueValue(text)
5495
- : response.set(id, new ReactPromise("fulfilled", text, null));
5569
+ : (chunk && releasePendingChunk(response, chunk),
5570
+ chunks.set(id, new ReactPromise("fulfilled", text, null)));
5496
5571
  }
5497
5572
  function resolveModule(response, id, model) {
5498
5573
  response._chunks.get(id);
@@ -5502,15 +5577,16 @@
5502
5577
  );
5503
5578
  }
5504
5579
  function resolveStream(response, id, stream, controller) {
5505
- var chunks = response._chunks;
5506
- response = chunks.get(id);
5507
- response
5508
- ? "pending" === response.status &&
5509
- ((id = response.value),
5510
- (response.status = "fulfilled"),
5511
- (response.value = stream),
5512
- (response.reason = controller),
5513
- null !== id && wakeChunk(id, response.value))
5580
+ var chunks = response._chunks,
5581
+ chunk = chunks.get(id);
5582
+ chunk
5583
+ ? "pending" === chunk.status &&
5584
+ (releasePendingChunk(response, chunk),
5585
+ (response = chunk.value),
5586
+ (chunk.status = "fulfilled"),
5587
+ (chunk.value = stream),
5588
+ (chunk.reason = controller),
5589
+ null !== response && wakeChunk(response, chunk.value))
5514
5590
  : chunks.set(id, new ReactPromise("fulfilled", stream, controller));
5515
5591
  }
5516
5592
  function startReadableStream(response, id, type) {
@@ -5547,8 +5623,8 @@
5547
5623
  (previousBlockedChunk = chunk));
5548
5624
  } else {
5549
5625
  chunk = previousBlockedChunk;
5550
- var _chunk2 = createPendingChunk();
5551
- _chunk2.then(
5626
+ var _chunk3 = createPendingChunk(response);
5627
+ _chunk3.then(
5552
5628
  function (v) {
5553
5629
  return controller.enqueue(v);
5554
5630
  },
@@ -5556,10 +5632,10 @@
5556
5632
  return controller.error(e);
5557
5633
  }
5558
5634
  );
5559
- previousBlockedChunk = _chunk2;
5635
+ previousBlockedChunk = _chunk3;
5560
5636
  chunk.then(function () {
5561
- previousBlockedChunk === _chunk2 && (previousBlockedChunk = null);
5562
- resolveModelChunk(response, _chunk2, json);
5637
+ previousBlockedChunk === _chunk3 && (previousBlockedChunk = null);
5638
+ resolveModelChunk(response, _chunk3, json);
5563
5639
  });
5564
5640
  }
5565
5641
  },
@@ -5612,7 +5688,7 @@
5612
5688
  { done: !0, value: void 0 },
5613
5689
  null
5614
5690
  );
5615
- buffer[nextReadIndex] = createPendingChunk();
5691
+ buffer[nextReadIndex] = createPendingChunk(response);
5616
5692
  }
5617
5693
  return buffer[nextReadIndex++];
5618
5694
  });
@@ -5685,11 +5761,11 @@
5685
5761
  closed = !0;
5686
5762
  for (
5687
5763
  nextWriteIndex === buffer.length &&
5688
- (buffer[nextWriteIndex] = createPendingChunk());
5764
+ (buffer[nextWriteIndex] = createPendingChunk(response));
5689
5765
  nextWriteIndex < buffer.length;
5690
5766
 
5691
5767
  )
5692
- triggerErrorOnChunk(buffer[nextWriteIndex++], error);
5768
+ triggerErrorOnChunk(response, buffer[nextWriteIndex++], error);
5693
5769
  }
5694
5770
  }
5695
5771
  );
@@ -5732,7 +5808,7 @@
5732
5808
  reason.$$typeof = REACT_POSTPONE_TYPE;
5733
5809
  stack = response._chunks;
5734
5810
  (env = stack.get(id))
5735
- ? triggerErrorOnChunk(env, reason)
5811
+ ? triggerErrorOnChunk(response, env, reason)
5736
5812
  : stack.set(id, createErrorChunk(response, reason));
5737
5813
  }
5738
5814
  function resolveHint(response, code, model) {
@@ -6080,9 +6156,8 @@
6080
6156
  previousResult.track = trackIdx$jscomp$6;
6081
6157
  return previousResult;
6082
6158
  }
6083
- var children = root._children;
6084
- "resolved_model" === root.status && initializeModelChunk(root);
6085
- var debugInfo = root._debugInfo;
6159
+ var children = root._children,
6160
+ debugInfo = root._debugInfo;
6086
6161
  if (debugInfo) {
6087
6162
  for (var startTime$jscomp$0 = 0, i = 0; i < debugInfo.length; i++) {
6088
6163
  var info = debugInfo[i];
@@ -6542,6 +6617,20 @@
6542
6617
  result.endTime = childrenEndTime;
6543
6618
  return result;
6544
6619
  }
6620
+ function flushInitialRenderPerformance(response) {
6621
+ if (response._replayConsole) {
6622
+ var rootChunk = getChunk(response, 0);
6623
+ isArrayImpl(rootChunk._children) &&
6624
+ (markAllTracksInOrder(),
6625
+ flushComponentPerformance(
6626
+ response,
6627
+ rootChunk,
6628
+ 0,
6629
+ -Infinity,
6630
+ -Infinity
6631
+ ));
6632
+ }
6633
+ }
6545
6634
  function processFullStringRow(response, id, tag, row) {
6546
6635
  switch (tag) {
6547
6636
  case 73:
@@ -6557,7 +6646,7 @@
6557
6646
  row = response._chunks;
6558
6647
  var chunk = row.get(id);
6559
6648
  chunk
6560
- ? triggerErrorOnChunk(chunk, tag)
6649
+ ? triggerErrorOnChunk(response, chunk, tag)
6561
6650
  : row.set(id, createErrorChunk(response, tag));
6562
6651
  break;
6563
6652
  case 84:
@@ -10963,14 +11052,16 @@
10963
11052
  if ("number" === typeof info.time) break;
10964
11053
  if (null != info.awaited) {
10965
11054
  var bestStack = null == info.debugStack ? info.awaited : info;
10966
- void 0 !== bestStack.debugStack &&
10967
- ((task.componentStack = {
11055
+ if (void 0 !== bestStack.debugStack) {
11056
+ task.componentStack = {
10968
11057
  parent: task.componentStack,
10969
11058
  type: info,
10970
11059
  owner: bestStack.owner,
10971
11060
  stack: bestStack.debugStack
10972
- }),
10973
- (task.debugTask = bestStack.debugTask));
11061
+ };
11062
+ task.debugTask = bestStack.debugTask;
11063
+ break;
11064
+ }
10974
11065
  }
10975
11066
  }
10976
11067
  }
@@ -11014,6 +11105,18 @@
11014
11105
  pushServerComponentStack(task, node._debugInfo);
11015
11106
  }
11016
11107
  }
11108
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
11109
+ componentStack
11110
+ ) {
11111
+ return null === componentStack
11112
+ ? null
11113
+ : {
11114
+ parent: componentStack.parent,
11115
+ type: "Suspense Fallback",
11116
+ owner: componentStack.owner,
11117
+ stack: componentStack.stack
11118
+ };
11119
+ }
11017
11120
  function getThrownInfo(node$jscomp$0) {
11018
11121
  var errorInfo = {};
11019
11122
  node$jscomp$0 &&
@@ -11859,27 +11962,14 @@
11859
11962
  !1
11860
11963
  );
11861
11964
  segment.preambleChildren.push(preambleSegment);
11862
- var preambleTask = createRenderTask(
11863
- request,
11864
- null,
11865
- _children,
11866
- -1,
11867
- task.blockedBoundary,
11868
- preambleSegment,
11869
- task.blockedPreamble,
11870
- task.hoistableState,
11871
- request.abortableTasks,
11872
- task.keyPath,
11873
- task.formatContext,
11874
- task.context,
11875
- task.treeContext,
11876
- task.row,
11877
- task.componentStack,
11878
- emptyContextObject,
11879
- task.debugTask
11880
- );
11881
- pushComponentStack(preambleTask);
11882
- request.pingedTasks.push(preambleTask);
11965
+ task.blockedSegment = preambleSegment;
11966
+ try {
11967
+ (preambleSegment.status = 6),
11968
+ renderNode(request, task, _children, -1),
11969
+ (preambleSegment.status = 1);
11970
+ } finally {
11971
+ task.blockedSegment = segment;
11972
+ }
11883
11973
  } else renderNode(request, task, _children, -1);
11884
11974
  task.formatContext = _prevContext2;
11885
11975
  task.keyPath = _prevKeyPath3;
@@ -12163,7 +12253,8 @@
12163
12253
  );
12164
12254
  contentRootSegment.parentFlushed = !0;
12165
12255
  if (null !== request.trackedPostpones) {
12166
- var fallbackKeyPath = [
12256
+ var suspenseComponentStack = task.componentStack,
12257
+ fallbackKeyPath = [
12167
12258
  keyPath[0],
12168
12259
  "Suspense Fallback",
12169
12260
  keyPath[2]
@@ -12186,6 +12277,10 @@
12186
12277
  request.resumableState,
12187
12278
  prevContext$jscomp$1
12188
12279
  );
12280
+ task.componentStack =
12281
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
12282
+ suspenseComponentStack
12283
+ );
12189
12284
  boundarySegment.status = 6;
12190
12285
  try {
12191
12286
  renderNode(request, task, fallback, -1),
@@ -12219,7 +12314,7 @@
12219
12314
  task.context,
12220
12315
  task.treeContext,
12221
12316
  null,
12222
- task.componentStack,
12317
+ suspenseComponentStack,
12223
12318
  emptyContextObject,
12224
12319
  task.debugTask
12225
12320
  );
@@ -12321,7 +12416,9 @@
12321
12416
  task.context,
12322
12417
  task.treeContext,
12323
12418
  task.row,
12324
- task.componentStack,
12419
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
12420
+ task.componentStack
12421
+ ),
12325
12422
  emptyContextObject,
12326
12423
  task.debugTask
12327
12424
  );
@@ -12650,7 +12747,9 @@
12650
12747
  task.context,
12651
12748
  task.treeContext,
12652
12749
  task.row,
12653
- task.componentStack,
12750
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
12751
+ task.componentStack
12752
+ ),
12654
12753
  emptyContextObject,
12655
12754
  task.debugTask
12656
12755
  );
@@ -15158,7 +15257,11 @@
15158
15257
  "function" === typeof reject && reject(this.reason);
15159
15258
  }
15160
15259
  };
15161
- var initializingHandler = null,
15260
+ var debugChannelRegistry =
15261
+ "function" === typeof FinalizationRegistry
15262
+ ? new FinalizationRegistry(cleanupDebugChannel)
15263
+ : null,
15264
+ initializingHandler = null,
15162
15265
  initializingChunk = null,
15163
15266
  supportsCreateTask = !!console.createTask,
15164
15267
  fakeFunctionCache = new Map(),
@@ -16164,12 +16267,12 @@
16164
16267
  !1,
16165
16268
  void 0,
16166
16269
  void 0
16167
- ),
16270
+ )._weakResponse,
16168
16271
  resumableState = createResumableState(
16169
16272
  options ? options.identifierPrefix : void 0,
16170
16273
  void 0
16171
16274
  ),
16172
- root = getChunk(flightResponse, 0),
16275
+ root = getRoot(flightResponse),
16173
16276
  fizzRequest = createRequest(
16174
16277
  root,
16175
16278
  resumableState,
@@ -16229,95 +16332,98 @@
16229
16332
  startFlowing$1(flightRequest, {
16230
16333
  push: function (chunk) {
16231
16334
  if (null !== chunk) {
16232
- for (
16233
- var i = 0,
16234
- rowState = flightResponse._rowState,
16235
- rowID = flightResponse._rowID,
16236
- rowTag = flightResponse._rowTag,
16237
- rowLength = flightResponse._rowLength,
16238
- buffer = flightResponse._buffer,
16239
- chunkLength = chunk.length;
16240
- i < chunkLength;
16335
+ if (void 0 !== flightResponse.weak.deref()) {
16336
+ for (
16337
+ var response = unwrapWeakResponse(flightResponse),
16338
+ i = 0,
16339
+ rowState = response._rowState,
16340
+ rowID = response._rowID,
16341
+ rowTag = response._rowTag,
16342
+ rowLength = response._rowLength,
16343
+ buffer = response._buffer,
16344
+ chunkLength = chunk.length;
16345
+ i < chunkLength;
16241
16346
 
16242
- ) {
16243
- var lastIdx = -1;
16244
- switch (rowState) {
16245
- case 0:
16246
- lastIdx = chunk.charCodeAt(i++);
16247
- 58 === lastIdx
16248
- ? (rowState = 1)
16249
- : (rowID =
16250
- (rowID << 4) |
16251
- (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
16252
- continue;
16253
- case 1:
16254
- rowState = chunk.charCodeAt(i);
16255
- 84 === rowState ||
16256
- 65 === rowState ||
16257
- 79 === rowState ||
16258
- 111 === rowState ||
16259
- 85 === rowState ||
16260
- 83 === rowState ||
16261
- 115 === rowState ||
16262
- 76 === rowState ||
16263
- 108 === rowState ||
16264
- 71 === rowState ||
16265
- 103 === rowState ||
16266
- 77 === rowState ||
16267
- 109 === rowState ||
16268
- 86 === rowState
16269
- ? ((rowTag = rowState), (rowState = 2), i++)
16270
- : (64 < rowState && 91 > rowState) ||
16271
- 114 === rowState ||
16272
- 120 === rowState
16273
- ? ((rowTag = rowState), (rowState = 3), i++)
16274
- : ((rowTag = 0), (rowState = 3));
16275
- continue;
16276
- case 2:
16277
- lastIdx = chunk.charCodeAt(i++);
16278
- 44 === lastIdx
16279
- ? (rowState = 4)
16280
- : (rowLength =
16281
- (rowLength << 4) |
16282
- (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
16283
- continue;
16284
- case 3:
16285
- lastIdx = chunk.indexOf("\n", i);
16286
- break;
16287
- case 4:
16288
- if (84 !== rowTag)
16289
- throw Error(
16290
- "Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams."
16291
- );
16292
- if (
16293
- rowLength < chunk.length ||
16294
- chunk.length > 3 * rowLength
16295
- )
16347
+ ) {
16348
+ var lastIdx = -1;
16349
+ switch (rowState) {
16350
+ case 0:
16351
+ lastIdx = chunk.charCodeAt(i++);
16352
+ 58 === lastIdx
16353
+ ? (rowState = 1)
16354
+ : (rowID =
16355
+ (rowID << 4) |
16356
+ (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
16357
+ continue;
16358
+ case 1:
16359
+ rowState = chunk.charCodeAt(i);
16360
+ 84 === rowState ||
16361
+ 65 === rowState ||
16362
+ 79 === rowState ||
16363
+ 111 === rowState ||
16364
+ 85 === rowState ||
16365
+ 83 === rowState ||
16366
+ 115 === rowState ||
16367
+ 76 === rowState ||
16368
+ 108 === rowState ||
16369
+ 71 === rowState ||
16370
+ 103 === rowState ||
16371
+ 77 === rowState ||
16372
+ 109 === rowState ||
16373
+ 86 === rowState
16374
+ ? ((rowTag = rowState), (rowState = 2), i++)
16375
+ : (64 < rowState && 91 > rowState) ||
16376
+ 114 === rowState ||
16377
+ 120 === rowState
16378
+ ? ((rowTag = rowState), (rowState = 3), i++)
16379
+ : ((rowTag = 0), (rowState = 3));
16380
+ continue;
16381
+ case 2:
16382
+ lastIdx = chunk.charCodeAt(i++);
16383
+ 44 === lastIdx
16384
+ ? (rowState = 4)
16385
+ : (rowLength =
16386
+ (rowLength << 4) |
16387
+ (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
16388
+ continue;
16389
+ case 3:
16390
+ lastIdx = chunk.indexOf("\n", i);
16391
+ break;
16392
+ case 4:
16393
+ if (84 !== rowTag)
16394
+ throw Error(
16395
+ "Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams."
16396
+ );
16397
+ if (
16398
+ rowLength < chunk.length ||
16399
+ chunk.length > 3 * rowLength
16400
+ )
16401
+ throw Error(
16402
+ "String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
16403
+ );
16404
+ lastIdx = chunk.length;
16405
+ }
16406
+ if (-1 < lastIdx) {
16407
+ if (0 < buffer.length)
16296
16408
  throw Error(
16297
16409
  "String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
16298
16410
  );
16299
- lastIdx = chunk.length;
16300
- }
16301
- if (-1 < lastIdx) {
16302
- if (0 < buffer.length)
16411
+ i = chunk.slice(i, lastIdx);
16412
+ processFullStringRow(response, rowID, rowTag, i);
16413
+ i = lastIdx;
16414
+ 3 === rowState && i++;
16415
+ rowLength = rowID = rowTag = rowState = 0;
16416
+ buffer.length = 0;
16417
+ } else if (chunk.length !== i)
16303
16418
  throw Error(
16304
16419
  "String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
16305
16420
  );
16306
- i = chunk.slice(i, lastIdx);
16307
- processFullStringRow(flightResponse, rowID, rowTag, i);
16308
- i = lastIdx;
16309
- 3 === rowState && i++;
16310
- rowLength = rowID = rowTag = rowState = 0;
16311
- buffer.length = 0;
16312
- } else if (chunk.length !== i)
16313
- throw Error(
16314
- "String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
16315
- );
16421
+ }
16422
+ response._rowState = rowState;
16423
+ response._rowID = rowID;
16424
+ response._rowTag = rowTag;
16425
+ response._rowLength = rowLength;
16316
16426
  }
16317
- flightResponse._rowState = rowState;
16318
- flightResponse._rowID = rowID;
16319
- flightResponse._rowTag = rowTag;
16320
- flightResponse._rowLength = rowLength;
16321
16427
  } else
16322
16428
  reportGlobalError(flightResponse, Error("Connection closed."));
16323
16429
  return !0;
@@ -16342,5 +16448,5 @@
16342
16448
  });
16343
16449
  });
16344
16450
  };
16345
- exports.version = "19.2.0-experimental-5d87cd22-20250704";
16451
+ exports.version = "19.2.0-experimental-befc1246-20250708";
16346
16452
  })();