react-dom 19.2.0-canary-197d6a04-20250424 → 19.2.0-canary-c498bfce-20250426

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.
@@ -38,6 +38,9 @@ function flushBuffered(destination) {
38
38
  function writeChunk(destination, chunk) {
39
39
  0 !== chunk.length && destination.write(chunk);
40
40
  }
41
+ function byteLengthOfChunk(chunk) {
42
+ return Buffer.byteLength(chunk, "utf8");
43
+ }
41
44
  function closeWithError(destination, error) {
42
45
  "function" === typeof destination.error
43
46
  ? destination.error(error)
@@ -232,19 +235,21 @@ function createRenderState(
232
235
  ) {
233
236
  var inlineScriptWithNonce =
234
237
  void 0 === nonce
235
- ? "<script>"
236
- : '<script nonce="' + escapeTextForBrowser(nonce) + '">',
238
+ ? "<script"
239
+ : '<script nonce="' + escapeTextForBrowser(nonce) + '"',
237
240
  idPrefix = resumableState.idPrefix;
238
241
  externalRuntimeConfig = [];
239
242
  var bootstrapScriptContent = resumableState.bootstrapScriptContent,
240
243
  bootstrapScripts = resumableState.bootstrapScripts,
241
244
  bootstrapModules = resumableState.bootstrapModules;
242
245
  void 0 !== bootstrapScriptContent &&
246
+ (externalRuntimeConfig.push(inlineScriptWithNonce),
247
+ pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
243
248
  externalRuntimeConfig.push(
244
- inlineScriptWithNonce,
249
+ ">",
245
250
  ("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
246
251
  "\x3c/script>"
247
- );
252
+ ));
248
253
  bootstrapScriptContent = [];
249
254
  void 0 !== importMap &&
250
255
  (bootstrapScriptContent.push('<script type="importmap">'),
@@ -331,21 +336,29 @@ function createRenderState(
331
336
  onHeaders.bootstrapScripts.add(scriptConfig);
332
337
  externalRuntimeConfig.push(
333
338
  '<script src="',
334
- escapeTextForBrowser(maxHeadersLength)
339
+ escapeTextForBrowser(maxHeadersLength),
340
+ '"'
335
341
  );
336
342
  nonce &&
337
- externalRuntimeConfig.push('" nonce="', escapeTextForBrowser(nonce));
343
+ externalRuntimeConfig.push(
344
+ ' nonce="',
345
+ escapeTextForBrowser(nonce),
346
+ '"'
347
+ );
338
348
  "string" === typeof idPrefix &&
339
349
  externalRuntimeConfig.push(
340
- '" integrity="',
341
- escapeTextForBrowser(idPrefix)
350
+ ' integrity="',
351
+ escapeTextForBrowser(idPrefix),
352
+ '"'
342
353
  );
343
354
  "string" === typeof inlineScriptWithNonce &&
344
355
  externalRuntimeConfig.push(
345
- '" crossorigin="',
346
- escapeTextForBrowser(inlineScriptWithNonce)
356
+ ' crossorigin="',
357
+ escapeTextForBrowser(inlineScriptWithNonce),
358
+ '"'
347
359
  );
348
- externalRuntimeConfig.push('" async="">\x3c/script>');
360
+ pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState);
361
+ externalRuntimeConfig.push(' async="">\x3c/script>');
349
362
  }
350
363
  if (void 0 !== bootstrapModules)
351
364
  for (
@@ -383,21 +396,29 @@ function createRenderState(
383
396
  onHeaders.bootstrapScripts.add(bootstrapScriptContent),
384
397
  externalRuntimeConfig.push(
385
398
  '<script type="module" src="',
386
- escapeTextForBrowser(importMap)
399
+ escapeTextForBrowser(importMap),
400
+ '"'
387
401
  ),
388
402
  nonce &&
389
- externalRuntimeConfig.push('" nonce="', escapeTextForBrowser(nonce)),
403
+ externalRuntimeConfig.push(
404
+ ' nonce="',
405
+ escapeTextForBrowser(nonce),
406
+ '"'
407
+ ),
390
408
  "string" === typeof inlineScriptWithNonce &&
391
409
  externalRuntimeConfig.push(
392
- '" integrity="',
393
- escapeTextForBrowser(inlineScriptWithNonce)
410
+ ' integrity="',
411
+ escapeTextForBrowser(inlineScriptWithNonce),
412
+ '"'
394
413
  ),
395
414
  "string" === typeof maxHeadersLength &&
396
415
  externalRuntimeConfig.push(
397
- '" crossorigin="',
398
- escapeTextForBrowser(maxHeadersLength)
416
+ ' crossorigin="',
417
+ escapeTextForBrowser(maxHeadersLength),
418
+ '"'
399
419
  ),
400
- externalRuntimeConfig.push('" async="">\x3c/script>');
420
+ pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
421
+ externalRuntimeConfig.push(' async="">\x3c/script>');
401
422
  return onHeaders;
402
423
  }
403
424
  function createResumableState(
@@ -803,13 +824,25 @@ function flattenOptionChildren(children) {
803
824
  return content;
804
825
  }
805
826
  function injectFormReplayingRuntime(resumableState, renderState) {
806
- 0 === (resumableState.instructions & 16) &&
807
- ((resumableState.instructions |= 16),
808
- renderState.bootstrapChunks.unshift(
809
- renderState.startInlineScript,
810
- 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
811
- "\x3c/script>"
812
- ));
827
+ if (0 === (resumableState.instructions & 16)) {
828
+ resumableState.instructions |= 16;
829
+ var preamble = renderState.preamble,
830
+ bootstrapChunks = renderState.bootstrapChunks;
831
+ (preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
832
+ ? (bootstrapChunks.push(renderState.startInlineScript),
833
+ pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
834
+ bootstrapChunks.push(
835
+ ">",
836
+ 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
837
+ "\x3c/script>"
838
+ ))
839
+ : bootstrapChunks.unshift(
840
+ renderState.startInlineScript,
841
+ ">",
842
+ 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
843
+ "\x3c/script>"
844
+ );
845
+ }
813
846
  }
814
847
  function pushLinkImpl(target, props) {
815
848
  target.push(startChunkForTag("link"));
@@ -2263,6 +2296,15 @@ function preloadLateStyles(styleQueue) {
2263
2296
  styleQueue.sheets.forEach(preloadLateStyle, this);
2264
2297
  styleQueue.sheets.clear();
2265
2298
  }
2299
+ function pushCompletedShellIdAttribute(target, resumableState) {
2300
+ 0 === (resumableState.instructions & 32) &&
2301
+ ((resumableState.instructions |= 32),
2302
+ target.push(
2303
+ ' id="',
2304
+ escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
2305
+ '"'
2306
+ ));
2307
+ }
2266
2308
  function writeStyleResourceDependenciesInJS(destination, hoistableState) {
2267
2309
  writeChunk(destination, "[");
2268
2310
  var nextArrayOpenBrackChunk = "[";
@@ -3559,6 +3601,7 @@ function RequestInstance(
3559
3601
  this.fatalError = null;
3560
3602
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3561
3603
  this.completedPreambleSegments = this.completedRootSegment = null;
3604
+ this.byteSize = 0;
3562
3605
  this.abortableTasks = abortSet;
3563
3606
  this.pingedTasks = [];
3564
3607
  this.clientRenderedBoundaries = [];
@@ -4139,11 +4182,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
4139
4182
  }
4140
4183
  } else {
4141
4184
  type = task.keyPath;
4142
- var parentBoundary = task.blockedBoundary;
4143
- ref = task.blockedPreamble;
4185
+ ref = task.blockedBoundary;
4186
+ propName$33 = task.blockedPreamble;
4144
4187
  var parentHoistableState = task.hoistableState;
4145
- propName$33 = task.blockedSegment;
4146
- propName = props.fallback;
4188
+ propName = task.blockedSegment;
4189
+ var fallback = props.fallback;
4147
4190
  props = props.children;
4148
4191
  var fallbackAbortSet = new Set();
4149
4192
  var newBoundary =
@@ -4159,14 +4202,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
4159
4202
  (newBoundary.trackedContentKeyPath = keyPath);
4160
4203
  var boundarySegment = createPendingSegment(
4161
4204
  request,
4162
- propName$33.chunks.length,
4205
+ propName.chunks.length,
4163
4206
  newBoundary,
4164
4207
  task.formatContext,
4165
4208
  !1,
4166
4209
  !1
4167
4210
  );
4168
- propName$33.children.push(boundarySegment);
4169
- propName$33.lastPushedText = !1;
4211
+ propName.children.push(boundarySegment);
4212
+ propName.lastPushedText = !1;
4170
4213
  var contentRootSegment = createPendingSegment(
4171
4214
  request,
4172
4215
  0,
@@ -4186,19 +4229,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
4186
4229
  task.keyPath = newProps;
4187
4230
  boundarySegment.status = 6;
4188
4231
  try {
4189
- renderNode(request, task, propName, -1),
4232
+ renderNode(request, task, fallback, -1),
4190
4233
  boundarySegment.lastPushedText &&
4191
4234
  boundarySegment.textEmbedded &&
4192
4235
  boundarySegment.chunks.push("\x3c!-- --\x3e"),
4193
- (boundarySegment.status = 1);
4236
+ (boundarySegment.status = 1),
4237
+ finishedSegment(request, ref, boundarySegment);
4194
4238
  } catch (thrownValue) {
4195
4239
  throw (
4196
4240
  ((boundarySegment.status = 12 === request.status ? 3 : 4),
4197
4241
  thrownValue)
4198
4242
  );
4199
4243
  } finally {
4200
- (task.blockedSegment = propName$33),
4201
- (task.blockedPreamble = ref),
4244
+ (task.blockedSegment = propName),
4245
+ (task.blockedPreamble = propName$33),
4202
4246
  (task.keyPath = type);
4203
4247
  }
4204
4248
  task = createRenderTask(
@@ -4234,10 +4278,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
4234
4278
  contentRootSegment.textEmbedded &&
4235
4279
  contentRootSegment.chunks.push("\x3c!-- --\x3e"),
4236
4280
  (contentRootSegment.status = 1),
4281
+ finishedSegment(request, newBoundary, contentRootSegment),
4237
4282
  queueCompletedSegment(newBoundary, contentRootSegment),
4238
- 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
4283
+ 0 === newBoundary.pendingTasks &&
4284
+ 0 === newBoundary.status &&
4285
+ ((newBoundary.status = 1),
4286
+ !(newBoundary.byteSize > request.progressiveChunkSize)))
4239
4287
  ) {
4240
- newBoundary.status = 1;
4241
4288
  0 === request.pendingRootTasks &&
4242
4289
  task.blockedPreamble &&
4243
4290
  preparePreamble(request);
@@ -4259,18 +4306,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
4259
4306
  (newBoundary.errorDigest = initialState),
4260
4307
  untrackBoundary(request, newBoundary);
4261
4308
  } finally {
4262
- (task.blockedBoundary = parentBoundary),
4263
- (task.blockedPreamble = ref),
4309
+ (task.blockedBoundary = ref),
4310
+ (task.blockedPreamble = propName$33),
4264
4311
  (task.hoistableState = parentHoistableState),
4265
- (task.blockedSegment = propName$33),
4312
+ (task.blockedSegment = propName),
4266
4313
  (task.keyPath = type);
4267
4314
  }
4268
4315
  task = createRenderTask(
4269
4316
  request,
4270
4317
  null,
4271
- propName,
4318
+ fallback,
4272
4319
  -1,
4273
- parentBoundary,
4320
+ ref,
4274
4321
  boundarySegment,
4275
4322
  newBoundary.fallbackPreamble,
4276
4323
  newBoundary.fallbackState,
@@ -4292,9 +4339,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4292
4339
  switch (type.$$typeof) {
4293
4340
  case REACT_FORWARD_REF_TYPE:
4294
4341
  if ("ref" in props)
4295
- for (newBoundary in ((newProps = {}), props))
4296
- "ref" !== newBoundary &&
4297
- (newProps[newBoundary] = props[newBoundary]);
4342
+ for (fallback in ((newProps = {}), props))
4343
+ "ref" !== fallback && (newProps[fallback] = props[fallback]);
4298
4344
  else newProps = props;
4299
4345
  type = renderWithHooks(
4300
4346
  request,
@@ -4384,6 +4430,7 @@ function resumeNode(request, task, segmentId, node, childIndex) {
4384
4430
  (task.blockedSegment = resumedSegment),
4385
4431
  renderNode(request, task, node, childIndex),
4386
4432
  (resumedSegment.status = 1),
4433
+ finishedSegment(request, blockedBoundary, resumedSegment),
4387
4434
  null === blockedBoundary
4388
4435
  ? (request.completedRootSegment = resumedSegment)
4389
4436
  : (queueCompletedSegment(blockedBoundary, resumedSegment),
@@ -5088,6 +5135,16 @@ function queueCompletedSegment(boundary, segment) {
5088
5135
  1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
5089
5136
  } else boundary.completedSegments.push(segment);
5090
5137
  }
5138
+ function finishedSegment(request, boundary, segment) {
5139
+ if (null !== byteLengthOfChunk) {
5140
+ segment = segment.chunks;
5141
+ for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
5142
+ segmentByteSize += byteLengthOfChunk(segment[i]);
5143
+ null === boundary
5144
+ ? (request.byteSize += segmentByteSize)
5145
+ : (boundary.byteSize += segmentByteSize);
5146
+ }
5147
+ }
5091
5148
  function finishedTask(request, boundary, segment) {
5092
5149
  if (null === boundary) {
5093
5150
  if (null !== segment && segment.parentFlushed) {
@@ -5111,8 +5168,12 @@ function finishedTask(request, boundary, segment) {
5111
5168
  boundary.parentFlushed &&
5112
5169
  request.completedBoundaries.push(boundary),
5113
5170
  1 === boundary.status &&
5114
- (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
5115
- boundary.fallbackAbortableTasks.clear(),
5171
+ (boundary.byteSize > request.progressiveChunkSize ||
5172
+ (boundary.fallbackAbortableTasks.forEach(
5173
+ abortTaskSoft,
5174
+ request
5175
+ ),
5176
+ boundary.fallbackAbortableTasks.clear()),
5116
5177
  0 === request.pendingRootTasks &&
5117
5178
  null === request.trackedPostpones &&
5118
5179
  null !== boundary.contentPreamble &&
@@ -5235,6 +5296,7 @@ function performWork(request$jscomp$2) {
5235
5296
  request$jscomp$1.chunks.push("\x3c!-- --\x3e"),
5236
5297
  task.abortSet.delete(task),
5237
5298
  (request$jscomp$1.status = 1),
5299
+ finishedSegment(request, task.blockedBoundary, request$jscomp$1),
5238
5300
  finishedTask(request, task.blockedBoundary, request$jscomp$1);
5239
5301
  } catch (thrownValue) {
5240
5302
  resetHooksState();
@@ -5508,6 +5570,7 @@ function flushCompletedBoundary(request, destination, boundary) {
5508
5570
  var requiresStyleInsertion = request.stylesToHoist;
5509
5571
  request.stylesToHoist = !1;
5510
5572
  writeChunk(destination, request.startInlineScript);
5573
+ writeChunk(destination, ">");
5511
5574
  requiresStyleInsertion
5512
5575
  ? 0 === (completedSegments.instructions & 2)
5513
5576
  ? ((completedSegments.instructions |= 10),
@@ -5564,6 +5627,7 @@ function flushPartiallyCompletedSegment(
5564
5627
  boundary = request.resumableState;
5565
5628
  request = request.renderState;
5566
5629
  writeChunk(destination, request.startInlineScript);
5630
+ writeChunk(destination, ">");
5567
5631
  0 === (boundary.instructions & 1)
5568
5632
  ? ((boundary.instructions |= 1),
5569
5633
  writeChunk(
@@ -5589,7 +5653,8 @@ function flushCompletedQueues(request, destination) {
5589
5653
  if (5 === completedRootSegment.status) return;
5590
5654
  var completedPreambleSegments = request.completedPreambleSegments;
5591
5655
  if (null === completedPreambleSegments) return;
5592
- var renderState = request.renderState,
5656
+ var resumableState = request.resumableState,
5657
+ renderState = request.renderState,
5593
5658
  preamble = renderState.preamble,
5594
5659
  htmlChunks = preamble.htmlChunks,
5595
5660
  headChunks = preamble.headChunks,
@@ -5630,17 +5695,23 @@ function flushCompletedQueues(request, destination) {
5630
5695
  renderState.scripts.clear();
5631
5696
  renderState.bulkPreloads.forEach(flushResource, destination);
5632
5697
  renderState.bulkPreloads.clear();
5698
+ if (htmlChunks || headChunks) {
5699
+ var shellId = "\u00ab" + resumableState.idPrefix + "R\u00bb";
5700
+ writeChunk(destination, '<link rel="expect" href="#');
5701
+ writeChunk(destination, escapeTextForBrowser(shellId));
5702
+ writeChunk(destination, '" blocking="render"/>');
5703
+ }
5633
5704
  var hoistableChunks = renderState.hoistableChunks;
5634
5705
  for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
5635
5706
  writeChunk(destination, hoistableChunks[i$jscomp$0]);
5636
5707
  for (
5637
- renderState = hoistableChunks.length = 0;
5638
- renderState < completedPreambleSegments.length;
5639
- renderState++
5708
+ resumableState = hoistableChunks.length = 0;
5709
+ resumableState < completedPreambleSegments.length;
5710
+ resumableState++
5640
5711
  ) {
5641
- var segments = completedPreambleSegments[renderState];
5642
- for (preamble = 0; preamble < segments.length; preamble++)
5643
- flushSegment(request, destination, segments[preamble], null);
5712
+ var segments = completedPreambleSegments[resumableState];
5713
+ for (renderState = 0; renderState < segments.length; renderState++)
5714
+ flushSegment(request, destination, segments[renderState], null);
5644
5715
  }
5645
5716
  var preamble$jscomp$0 = request.renderState.preamble,
5646
5717
  headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
@@ -5656,11 +5727,26 @@ function flushCompletedQueues(request, destination) {
5656
5727
  writeChunk(destination, bodyChunks[completedPreambleSegments]);
5657
5728
  flushSegment(request, destination, completedRootSegment, null);
5658
5729
  request.completedRootSegment = null;
5659
- writeBootstrap(destination, request.renderState);
5730
+ var resumableState$jscomp$0 = request.resumableState,
5731
+ renderState$jscomp$0 = request.renderState,
5732
+ preamble$jscomp$1 = renderState$jscomp$0.preamble;
5733
+ if (
5734
+ (preamble$jscomp$1.htmlChunks || preamble$jscomp$1.headChunks) &&
5735
+ 0 === (resumableState$jscomp$0.instructions & 32)
5736
+ ) {
5737
+ var bootstrapChunks = renderState$jscomp$0.bootstrapChunks;
5738
+ bootstrapChunks.push(startChunkForTag("template"));
5739
+ pushCompletedShellIdAttribute(
5740
+ bootstrapChunks,
5741
+ resumableState$jscomp$0
5742
+ );
5743
+ bootstrapChunks.push(">", endChunkForTag("template"));
5744
+ }
5745
+ writeBootstrap(destination, renderState$jscomp$0);
5660
5746
  }
5661
- var renderState$jscomp$0 = request.renderState;
5747
+ var renderState$jscomp$1 = request.renderState;
5662
5748
  completedRootSegment = 0;
5663
- var viewportChunks$jscomp$0 = renderState$jscomp$0.viewportChunks;
5749
+ var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
5664
5750
  for (
5665
5751
  completedRootSegment = 0;
5666
5752
  completedRootSegment < viewportChunks$jscomp$0.length;
@@ -5668,21 +5754,21 @@ function flushCompletedQueues(request, destination) {
5668
5754
  )
5669
5755
  writeChunk(destination, viewportChunks$jscomp$0[completedRootSegment]);
5670
5756
  viewportChunks$jscomp$0.length = 0;
5671
- renderState$jscomp$0.preconnects.forEach(flushResource, destination);
5672
- renderState$jscomp$0.preconnects.clear();
5673
- renderState$jscomp$0.fontPreloads.forEach(flushResource, destination);
5674
- renderState$jscomp$0.fontPreloads.clear();
5675
- renderState$jscomp$0.highImagePreloads.forEach(
5757
+ renderState$jscomp$1.preconnects.forEach(flushResource, destination);
5758
+ renderState$jscomp$1.preconnects.clear();
5759
+ renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
5760
+ renderState$jscomp$1.fontPreloads.clear();
5761
+ renderState$jscomp$1.highImagePreloads.forEach(
5676
5762
  flushResource,
5677
5763
  destination
5678
5764
  );
5679
- renderState$jscomp$0.highImagePreloads.clear();
5680
- renderState$jscomp$0.styles.forEach(preloadLateStyles, destination);
5681
- renderState$jscomp$0.scripts.forEach(flushResource, destination);
5682
- renderState$jscomp$0.scripts.clear();
5683
- renderState$jscomp$0.bulkPreloads.forEach(flushResource, destination);
5684
- renderState$jscomp$0.bulkPreloads.clear();
5685
- var hoistableChunks$jscomp$0 = renderState$jscomp$0.hoistableChunks;
5765
+ renderState$jscomp$1.highImagePreloads.clear();
5766
+ renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
5767
+ renderState$jscomp$1.scripts.forEach(flushResource, destination);
5768
+ renderState$jscomp$1.scripts.clear();
5769
+ renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
5770
+ renderState$jscomp$1.bulkPreloads.clear();
5771
+ var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
5686
5772
  for (
5687
5773
  completedRootSegment = 0;
5688
5774
  completedRootSegment < hoistableChunks$jscomp$0.length;
@@ -5693,33 +5779,34 @@ function flushCompletedQueues(request, destination) {
5693
5779
  var clientRenderedBoundaries = request.clientRenderedBoundaries;
5694
5780
  for (i = 0; i < clientRenderedBoundaries.length; i++) {
5695
5781
  var boundary = clientRenderedBoundaries[i];
5696
- renderState$jscomp$0 = destination;
5697
- var resumableState = request.resumableState,
5698
- renderState$jscomp$1 = request.renderState,
5782
+ renderState$jscomp$1 = destination;
5783
+ var resumableState$jscomp$1 = request.resumableState,
5784
+ renderState$jscomp$2 = request.renderState,
5699
5785
  id = boundary.rootSegmentID,
5700
5786
  errorDigest = boundary.errorDigest;
5701
5787
  writeChunk(
5702
- renderState$jscomp$0,
5703
- renderState$jscomp$1.startInlineScript
5788
+ renderState$jscomp$1,
5789
+ renderState$jscomp$2.startInlineScript
5704
5790
  );
5705
- 0 === (resumableState.instructions & 4)
5706
- ? ((resumableState.instructions |= 4),
5791
+ writeChunk(renderState$jscomp$1, ">");
5792
+ 0 === (resumableState$jscomp$1.instructions & 4)
5793
+ ? ((resumableState$jscomp$1.instructions |= 4),
5707
5794
  writeChunk(
5708
- renderState$jscomp$0,
5795
+ renderState$jscomp$1,
5709
5796
  '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
5710
5797
  ))
5711
- : writeChunk(renderState$jscomp$0, '$RX("');
5712
- writeChunk(renderState$jscomp$0, renderState$jscomp$1.boundaryPrefix);
5713
- writeChunk(renderState$jscomp$0, id.toString(16));
5714
- writeChunk(renderState$jscomp$0, '"');
5798
+ : writeChunk(renderState$jscomp$1, '$RX("');
5799
+ writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
5800
+ writeChunk(renderState$jscomp$1, id.toString(16));
5801
+ writeChunk(renderState$jscomp$1, '"');
5715
5802
  errorDigest &&
5716
- (writeChunk(renderState$jscomp$0, ","),
5803
+ (writeChunk(renderState$jscomp$1, ","),
5717
5804
  writeChunk(
5718
- renderState$jscomp$0,
5805
+ renderState$jscomp$1,
5719
5806
  escapeJSStringsForInstructionScripts(errorDigest || "")
5720
5807
  ));
5721
5808
  var JSCompiler_inline_result =
5722
- !!renderState$jscomp$0.write(")\x3c/script>");
5809
+ !!renderState$jscomp$1.write(")\x3c/script>");
5723
5810
  if (!JSCompiler_inline_result) {
5724
5811
  request.destination = null;
5725
5812
  i++;
@@ -5853,15 +5940,15 @@ function abort(request, reason) {
5853
5940
  logRecoverableError(request, error$55, {}), fatalError(request, error$55);
5854
5941
  }
5855
5942
  }
5856
- var isomorphicReactPackageVersion$jscomp$inline_762 = React.version;
5943
+ var isomorphicReactPackageVersion$jscomp$inline_768 = React.version;
5857
5944
  if (
5858
- "19.2.0-canary-197d6a04-20250424" !==
5859
- isomorphicReactPackageVersion$jscomp$inline_762
5945
+ "19.2.0-canary-c498bfce-20250426" !==
5946
+ isomorphicReactPackageVersion$jscomp$inline_768
5860
5947
  )
5861
5948
  throw Error(
5862
5949
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
5863
- (isomorphicReactPackageVersion$jscomp$inline_762 +
5864
- "\n - react-dom: 19.2.0-canary-197d6a04-20250424\nLearn more: https://react.dev/warnings/version-mismatch")
5950
+ (isomorphicReactPackageVersion$jscomp$inline_768 +
5951
+ "\n - react-dom: 19.2.0-canary-c498bfce-20250426\nLearn more: https://react.dev/warnings/version-mismatch")
5865
5952
  );
5866
5953
  exports.renderToReadableStream = function (children, options) {
5867
5954
  return new Promise(function (resolve, reject) {
@@ -5952,4 +6039,4 @@ exports.renderToReadableStream = function (children, options) {
5952
6039
  startWork(request);
5953
6040
  });
5954
6041
  };
5955
- exports.version = "19.2.0-canary-197d6a04-20250424";
6042
+ exports.version = "19.2.0-canary-c498bfce-20250426";