react-dom 19.2.0-canary-0038c501-20250429 → 19.2.0-canary-e9db3cc2-20250501

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.
@@ -8011,10 +8011,12 @@
8011
8011
  console.error(
8012
8012
  "requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."
8013
8013
  );
8014
- var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;
8014
+ var stateHook = ensureFormComponentIsStateful(formFiber);
8015
+ null === stateHook.next &&
8016
+ (stateHook = formFiber.alternate.memoizedState);
8015
8017
  dispatchSetStateInternal(
8016
8018
  formFiber,
8017
- resetStateQueue,
8019
+ stateHook.next.queue,
8018
8020
  {},
8019
8021
  requestUpdateLane(formFiber)
8020
8022
  );
@@ -25325,11 +25327,11 @@
25325
25327
  };
25326
25328
  (function () {
25327
25329
  var isomorphicReactPackageVersion = React.version;
25328
- if ("19.2.0-canary-0038c501-20250429" !== isomorphicReactPackageVersion)
25330
+ if ("19.2.0-canary-e9db3cc2-20250501" !== isomorphicReactPackageVersion)
25329
25331
  throw Error(
25330
25332
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
25331
25333
  (isomorphicReactPackageVersion +
25332
- "\n - react-dom: 19.2.0-canary-0038c501-20250429\nLearn more: https://react.dev/warnings/version-mismatch")
25334
+ "\n - react-dom: 19.2.0-canary-e9db3cc2-20250501\nLearn more: https://react.dev/warnings/version-mismatch")
25333
25335
  );
25334
25336
  })();
25335
25337
  ("function" === typeof Map &&
@@ -25366,10 +25368,10 @@
25366
25368
  !(function () {
25367
25369
  var internals = {
25368
25370
  bundleType: 1,
25369
- version: "19.2.0-canary-0038c501-20250429",
25371
+ version: "19.2.0-canary-e9db3cc2-20250501",
25370
25372
  rendererPackageName: "react-dom",
25371
25373
  currentDispatcherRef: ReactSharedInternals,
25372
- reconcilerVersion: "19.2.0-canary-0038c501-20250429"
25374
+ reconcilerVersion: "19.2.0-canary-e9db3cc2-20250501"
25373
25375
  };
25374
25376
  internals.overrideHookState = overrideHookState;
25375
25377
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25513,7 +25515,7 @@
25513
25515
  listenToAllSupportedEvents(container);
25514
25516
  return new ReactDOMHydrationRoot(initialChildren);
25515
25517
  };
25516
- exports.version = "19.2.0-canary-0038c501-20250429";
25518
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
25517
25519
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
25518
25520
  "function" ===
25519
25521
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -5235,8 +5235,14 @@ function ensureFormComponentIsStateful(formFiber) {
5235
5235
  return existingStateHook;
5236
5236
  }
5237
5237
  function requestFormReset$1(formFiber) {
5238
- var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;
5239
- dispatchSetStateInternal(formFiber, resetStateQueue, {}, requestUpdateLane());
5238
+ var stateHook = ensureFormComponentIsStateful(formFiber);
5239
+ null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);
5240
+ dispatchSetStateInternal(
5241
+ formFiber,
5242
+ stateHook.next.queue,
5243
+ {},
5244
+ requestUpdateLane()
5245
+ );
5240
5246
  }
5241
5247
  function useHostTransitionStatus() {
5242
5248
  return readContext(HostTransitionContext);
@@ -15606,14 +15612,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15606
15612
  };
15607
15613
  var isomorphicReactPackageVersion$jscomp$inline_1829 = React.version;
15608
15614
  if (
15609
- "19.2.0-canary-0038c501-20250429" !==
15615
+ "19.2.0-canary-e9db3cc2-20250501" !==
15610
15616
  isomorphicReactPackageVersion$jscomp$inline_1829
15611
15617
  )
15612
15618
  throw Error(
15613
15619
  formatProdErrorMessage(
15614
15620
  527,
15615
15621
  isomorphicReactPackageVersion$jscomp$inline_1829,
15616
- "19.2.0-canary-0038c501-20250429"
15622
+ "19.2.0-canary-e9db3cc2-20250501"
15617
15623
  )
15618
15624
  );
15619
15625
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15635,10 +15641,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15635
15641
  };
15636
15642
  var internals$jscomp$inline_2318 = {
15637
15643
  bundleType: 0,
15638
- version: "19.2.0-canary-0038c501-20250429",
15644
+ version: "19.2.0-canary-e9db3cc2-20250501",
15639
15645
  rendererPackageName: "react-dom",
15640
15646
  currentDispatcherRef: ReactSharedInternals,
15641
- reconcilerVersion: "19.2.0-canary-0038c501-20250429"
15647
+ reconcilerVersion: "19.2.0-canary-e9db3cc2-20250501"
15642
15648
  };
15643
15649
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15644
15650
  var hook$jscomp$inline_2319 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15742,4 +15748,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15742
15748
  listenToAllSupportedEvents(container);
15743
15749
  return new ReactDOMHydrationRoot(initialChildren);
15744
15750
  };
15745
- exports.version = "19.2.0-canary-0038c501-20250429";
15751
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
@@ -8019,10 +8019,12 @@
8019
8019
  console.error(
8020
8020
  "requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."
8021
8021
  );
8022
- var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;
8022
+ var stateHook = ensureFormComponentIsStateful(formFiber);
8023
+ null === stateHook.next &&
8024
+ (stateHook = formFiber.alternate.memoizedState);
8023
8025
  dispatchSetStateInternal(
8024
8026
  formFiber,
8025
- resetStateQueue,
8027
+ stateHook.next.queue,
8026
8028
  {},
8027
8029
  requestUpdateLane(formFiber)
8028
8030
  );
@@ -25382,11 +25384,11 @@
25382
25384
  };
25383
25385
  (function () {
25384
25386
  var isomorphicReactPackageVersion = React.version;
25385
- if ("19.2.0-canary-0038c501-20250429" !== isomorphicReactPackageVersion)
25387
+ if ("19.2.0-canary-e9db3cc2-20250501" !== isomorphicReactPackageVersion)
25386
25388
  throw Error(
25387
25389
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
25388
25390
  (isomorphicReactPackageVersion +
25389
- "\n - react-dom: 19.2.0-canary-0038c501-20250429\nLearn more: https://react.dev/warnings/version-mismatch")
25391
+ "\n - react-dom: 19.2.0-canary-e9db3cc2-20250501\nLearn more: https://react.dev/warnings/version-mismatch")
25390
25392
  );
25391
25393
  })();
25392
25394
  ("function" === typeof Map &&
@@ -25423,10 +25425,10 @@
25423
25425
  !(function () {
25424
25426
  var internals = {
25425
25427
  bundleType: 1,
25426
- version: "19.2.0-canary-0038c501-20250429",
25428
+ version: "19.2.0-canary-e9db3cc2-20250501",
25427
25429
  rendererPackageName: "react-dom",
25428
25430
  currentDispatcherRef: ReactSharedInternals,
25429
- reconcilerVersion: "19.2.0-canary-0038c501-20250429"
25431
+ reconcilerVersion: "19.2.0-canary-e9db3cc2-20250501"
25430
25432
  };
25431
25433
  internals.overrideHookState = overrideHookState;
25432
25434
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25900,7 +25902,7 @@
25900
25902
  exports.useFormStatus = function () {
25901
25903
  return resolveDispatcher().useHostTransitionStatus();
25902
25904
  };
25903
- exports.version = "19.2.0-canary-0038c501-20250429";
25905
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
25904
25906
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
25905
25907
  "function" ===
25906
25908
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -5394,8 +5394,14 @@ function ensureFormComponentIsStateful(formFiber) {
5394
5394
  return existingStateHook;
5395
5395
  }
5396
5396
  function requestFormReset$2(formFiber) {
5397
- var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;
5398
- dispatchSetStateInternal(formFiber, resetStateQueue, {}, requestUpdateLane());
5397
+ var stateHook = ensureFormComponentIsStateful(formFiber);
5398
+ null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);
5399
+ dispatchSetStateInternal(
5400
+ formFiber,
5401
+ stateHook.next.queue,
5402
+ {},
5403
+ requestUpdateLane()
5404
+ );
5399
5405
  }
5400
5406
  function useHostTransitionStatus() {
5401
5407
  return readContext(HostTransitionContext);
@@ -16307,14 +16313,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
16307
16313
  };
16308
16314
  var isomorphicReactPackageVersion$jscomp$inline_1933 = React.version;
16309
16315
  if (
16310
- "19.2.0-canary-0038c501-20250429" !==
16316
+ "19.2.0-canary-e9db3cc2-20250501" !==
16311
16317
  isomorphicReactPackageVersion$jscomp$inline_1933
16312
16318
  )
16313
16319
  throw Error(
16314
16320
  formatProdErrorMessage(
16315
16321
  527,
16316
16322
  isomorphicReactPackageVersion$jscomp$inline_1933,
16317
- "19.2.0-canary-0038c501-20250429"
16323
+ "19.2.0-canary-e9db3cc2-20250501"
16318
16324
  )
16319
16325
  );
16320
16326
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16336,10 +16342,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
16336
16342
  };
16337
16343
  var internals$jscomp$inline_1940 = {
16338
16344
  bundleType: 0,
16339
- version: "19.2.0-canary-0038c501-20250429",
16345
+ version: "19.2.0-canary-e9db3cc2-20250501",
16340
16346
  rendererPackageName: "react-dom",
16341
16347
  currentDispatcherRef: ReactSharedInternals,
16342
- reconcilerVersion: "19.2.0-canary-0038c501-20250429",
16348
+ reconcilerVersion: "19.2.0-canary-e9db3cc2-20250501",
16343
16349
  getLaneLabelMap: function () {
16344
16350
  for (
16345
16351
  var map = new Map(), lane = 1, index$293 = 0;
@@ -16619,7 +16625,7 @@ exports.useFormState = function (action, initialState, permalink) {
16619
16625
  exports.useFormStatus = function () {
16620
16626
  return ReactSharedInternals.H.useHostTransitionStatus();
16621
16627
  };
16622
- exports.version = "19.2.0-canary-0038c501-20250429";
16628
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
16623
16629
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
16624
16630
  "function" ===
16625
16631
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -5506,7 +5506,7 @@
5506
5506
  0 === newBoundary.pendingTasks &&
5507
5507
  newBoundary.status === PENDING &&
5508
5508
  ((newBoundary.status = COMPLETED),
5509
- !(newBoundary.byteSize > request.progressiveChunkSize)))
5509
+ !(500 < newBoundary.byteSize)))
5510
5510
  ) {
5511
5511
  0 === request.pendingRootTasks &&
5512
5512
  task.blockedPreamble &&
@@ -6641,7 +6641,7 @@
6641
6641
  boundary.parentFlushed &&
6642
6642
  request.completedBoundaries.push(boundary),
6643
6643
  boundary.status === COMPLETED &&
6644
- (boundary.byteSize > request.progressiveChunkSize ||
6644
+ (500 < boundary.byteSize ||
6645
6645
  (boundary.fallbackAbortableTasks.forEach(
6646
6646
  abortTaskSoft,
6647
6647
  request
@@ -7071,7 +7071,10 @@
7071
7071
  flushSubtree(request, destination, segment, hoistableState),
7072
7072
  destination.push(endSuspenseBoundary)
7073
7073
  );
7074
- if (boundary.byteSize > request.progressiveChunkSize)
7074
+ if (
7075
+ 500 < boundary.byteSize &&
7076
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
7077
+ )
7075
7078
  return (
7076
7079
  (boundary.rootSegmentID = request.nextSegmentId++),
7077
7080
  request.completedBoundaries.push(boundary),
@@ -7083,6 +7086,7 @@
7083
7086
  flushSubtree(request, destination, segment, hoistableState),
7084
7087
  destination.push(endSuspenseBoundary)
7085
7088
  );
7089
+ flushedByteSize += boundary.byteSize;
7086
7090
  hoistableState &&
7087
7091
  ((segment = boundary.contentState),
7088
7092
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -7116,6 +7120,7 @@
7116
7120
  return writeEndSegment(destination, segment.parentFormatContext);
7117
7121
  }
7118
7122
  function flushCompletedBoundary(request, destination, boundary) {
7123
+ flushedByteSize = boundary.byteSize;
7119
7124
  for (
7120
7125
  var completedSegments = boundary.completedSegments, i = 0;
7121
7126
  i < completedSegments.length;
@@ -7227,6 +7232,7 @@
7227
7232
  if (completedRootSegment.status === POSTPONED) return;
7228
7233
  var completedPreambleSegments = request.completedPreambleSegments;
7229
7234
  if (null === completedPreambleSegments) return;
7235
+ flushedByteSize = request.byteSize;
7230
7236
  var resumableState = request.resumableState,
7231
7237
  renderState = request.renderState,
7232
7238
  preamble = renderState.preamble,
@@ -7467,8 +7473,9 @@
7467
7473
  a: {
7468
7474
  clientRenderedBoundaries = request;
7469
7475
  boundary = destination;
7470
- var boundary$jscomp$0 = partialBoundaries[i],
7471
- completedSegments = boundary$jscomp$0.completedSegments;
7476
+ var boundary$jscomp$0 = partialBoundaries[i];
7477
+ flushedByteSize = boundary$jscomp$0.byteSize;
7478
+ var completedSegments = boundary$jscomp$0.completedSegments;
7472
7479
  for (
7473
7480
  JSCompiler_inline_result = 0;
7474
7481
  JSCompiler_inline_result < completedSegments.length;
@@ -8799,10 +8806,10 @@
8799
8806
  completeSegmentScript2 = '","',
8800
8807
  completeSegmentScriptEnd = '")\x3c/script>',
8801
8808
  completeBoundaryScript1Full =
8802
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("',
8809
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("',
8803
8810
  completeBoundaryScript1Partial = '$RC("',
8804
8811
  completeBoundaryWithStylesScript1FullBoth =
8805
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("',
8812
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("',
8806
8813
  completeBoundaryWithStylesScript1FullPartial =
8807
8814
  '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("',
8808
8815
  completeBoundaryWithStylesScript1Partial = '$RR("',
@@ -9087,7 +9094,8 @@
9087
9094
  didWarnAboutGetDerivedStateOnFunctionComponent = {},
9088
9095
  didWarnAboutReassigningProps = !1,
9089
9096
  didWarnAboutGenerators = !1,
9090
- didWarnAboutMaps = !1;
9097
+ didWarnAboutMaps = !1,
9098
+ flushedByteSize = 0;
9091
9099
  exports.renderToStaticMarkup = function (children, options) {
9092
9100
  return renderToStringImpl(
9093
9101
  children,
@@ -9104,5 +9112,5 @@
9104
9112
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
9105
9113
  );
9106
9114
  };
9107
- exports.version = "19.2.0-canary-0038c501-20250429";
9115
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
9108
9116
  })();
@@ -4254,8 +4254,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4254
4254
  queueCompletedSegment(newBoundary, contentRootSegment),
4255
4255
  0 === newBoundary.pendingTasks &&
4256
4256
  0 === newBoundary.status &&
4257
- ((newBoundary.status = 1),
4258
- !(newBoundary.byteSize > request.progressiveChunkSize)))
4257
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
4259
4258
  ) {
4260
4259
  0 === request.pendingRootTasks &&
4261
4260
  task.blockedPreamble &&
@@ -5112,7 +5111,7 @@ function finishedTask(request, boundary, segment) {
5112
5111
  boundary.parentFlushed &&
5113
5112
  request.completedBoundaries.push(boundary),
5114
5113
  1 === boundary.status &&
5115
- (boundary.byteSize > request.progressiveChunkSize ||
5114
+ (500 < boundary.byteSize ||
5116
5115
  (boundary.fallbackAbortableTasks.forEach(
5117
5116
  abortTaskSoft,
5118
5117
  request
@@ -5418,6 +5417,7 @@ function flushSubtree(request, destination, segment, hoistableState) {
5418
5417
  throw Error(formatProdErrorMessage(390));
5419
5418
  }
5420
5419
  }
5420
+ var flushedByteSize = 0;
5421
5421
  function flushSegment(request, destination, segment, hoistableState) {
5422
5422
  var boundary = segment.boundary;
5423
5423
  if (null === boundary)
@@ -5462,7 +5462,10 @@ function flushSegment(request, destination, segment, hoistableState) {
5462
5462
  flushSubtree(request, destination, segment, hoistableState),
5463
5463
  destination.push("\x3c!--/$--\x3e")
5464
5464
  );
5465
- if (boundary.byteSize > request.progressiveChunkSize)
5465
+ if (
5466
+ 500 < boundary.byteSize &&
5467
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
5468
+ )
5466
5469
  return (
5467
5470
  (boundary.rootSegmentID = request.nextSegmentId++),
5468
5471
  request.completedBoundaries.push(boundary),
@@ -5474,6 +5477,7 @@ function flushSegment(request, destination, segment, hoistableState) {
5474
5477
  flushSubtree(request, destination, segment, hoistableState),
5475
5478
  destination.push("\x3c!--/$--\x3e")
5476
5479
  );
5480
+ flushedByteSize += boundary.byteSize;
5477
5481
  hoistableState &&
5478
5482
  ((segment = boundary.contentState),
5479
5483
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -5499,6 +5503,7 @@ function flushSegmentContainer(request, destination, segment, hoistableState) {
5499
5503
  return writeEndSegment(destination, segment.parentFormatContext);
5500
5504
  }
5501
5505
  function flushCompletedBoundary(request, destination, boundary) {
5506
+ flushedByteSize = boundary.byteSize;
5502
5507
  for (
5503
5508
  var completedSegments = boundary.completedSegments, i = 0;
5504
5509
  i < completedSegments.length;
@@ -5528,7 +5533,7 @@ function flushCompletedBoundary(request, destination, boundary) {
5528
5533
  ? 0 === (completedSegments.instructions & 2)
5529
5534
  ? ((completedSegments.instructions |= 10),
5530
5535
  destination.push(
5531
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5536
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5532
5537
  ))
5533
5538
  : 0 === (completedSegments.instructions & 8)
5534
5539
  ? ((completedSegments.instructions |= 8),
@@ -5539,7 +5544,7 @@ function flushCompletedBoundary(request, destination, boundary) {
5539
5544
  : 0 === (completedSegments.instructions & 2)
5540
5545
  ? ((completedSegments.instructions |= 2),
5541
5546
  destination.push(
5542
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5547
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("'
5543
5548
  ))
5544
5549
  : destination.push('$RC("');
5545
5550
  completedSegments = i.toString(16);
@@ -5600,6 +5605,7 @@ function flushCompletedQueues(request, destination) {
5600
5605
  if (5 === completedRootSegment.status) return;
5601
5606
  var completedPreambleSegments = request.completedPreambleSegments;
5602
5607
  if (null === completedPreambleSegments) return;
5608
+ flushedByteSize = request.byteSize;
5603
5609
  var resumableState = request.resumableState,
5604
5610
  renderState = request.renderState,
5605
5611
  preamble = renderState.preamble,
@@ -5782,6 +5788,7 @@ function flushCompletedQueues(request, destination) {
5782
5788
  a: {
5783
5789
  clientRenderedBoundaries = request;
5784
5790
  boundary = destination;
5791
+ flushedByteSize = boundary$53.byteSize;
5785
5792
  var completedSegments = boundary$53.completedSegments;
5786
5793
  for (
5787
5794
  JSCompiler_inline_result = 0;
@@ -5955,4 +5962,4 @@ exports.renderToString = function (children, options) {
5955
5962
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
5956
5963
  );
5957
5964
  };
5958
- exports.version = "19.2.0-canary-0038c501-20250429";
5965
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
@@ -5506,7 +5506,7 @@
5506
5506
  0 === newBoundary.pendingTasks &&
5507
5507
  newBoundary.status === PENDING &&
5508
5508
  ((newBoundary.status = COMPLETED),
5509
- !(newBoundary.byteSize > request.progressiveChunkSize)))
5509
+ !(500 < newBoundary.byteSize)))
5510
5510
  ) {
5511
5511
  0 === request.pendingRootTasks &&
5512
5512
  task.blockedPreamble &&
@@ -6641,7 +6641,7 @@
6641
6641
  boundary.parentFlushed &&
6642
6642
  request.completedBoundaries.push(boundary),
6643
6643
  boundary.status === COMPLETED &&
6644
- (boundary.byteSize > request.progressiveChunkSize ||
6644
+ (500 < boundary.byteSize ||
6645
6645
  (boundary.fallbackAbortableTasks.forEach(
6646
6646
  abortTaskSoft,
6647
6647
  request
@@ -7071,7 +7071,10 @@
7071
7071
  flushSubtree(request, destination, segment, hoistableState),
7072
7072
  destination.push(endSuspenseBoundary)
7073
7073
  );
7074
- if (boundary.byteSize > request.progressiveChunkSize)
7074
+ if (
7075
+ 500 < boundary.byteSize &&
7076
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
7077
+ )
7075
7078
  return (
7076
7079
  (boundary.rootSegmentID = request.nextSegmentId++),
7077
7080
  request.completedBoundaries.push(boundary),
@@ -7083,6 +7086,7 @@
7083
7086
  flushSubtree(request, destination, segment, hoistableState),
7084
7087
  destination.push(endSuspenseBoundary)
7085
7088
  );
7089
+ flushedByteSize += boundary.byteSize;
7086
7090
  hoistableState &&
7087
7091
  ((segment = boundary.contentState),
7088
7092
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -7116,6 +7120,7 @@
7116
7120
  return writeEndSegment(destination, segment.parentFormatContext);
7117
7121
  }
7118
7122
  function flushCompletedBoundary(request, destination, boundary) {
7123
+ flushedByteSize = boundary.byteSize;
7119
7124
  for (
7120
7125
  var completedSegments = boundary.completedSegments, i = 0;
7121
7126
  i < completedSegments.length;
@@ -7227,6 +7232,7 @@
7227
7232
  if (completedRootSegment.status === POSTPONED) return;
7228
7233
  var completedPreambleSegments = request.completedPreambleSegments;
7229
7234
  if (null === completedPreambleSegments) return;
7235
+ flushedByteSize = request.byteSize;
7230
7236
  var resumableState = request.resumableState,
7231
7237
  renderState = request.renderState,
7232
7238
  preamble = renderState.preamble,
@@ -7467,8 +7473,9 @@
7467
7473
  a: {
7468
7474
  clientRenderedBoundaries = request;
7469
7475
  boundary = destination;
7470
- var boundary$jscomp$0 = partialBoundaries[i],
7471
- completedSegments = boundary$jscomp$0.completedSegments;
7476
+ var boundary$jscomp$0 = partialBoundaries[i];
7477
+ flushedByteSize = boundary$jscomp$0.byteSize;
7478
+ var completedSegments = boundary$jscomp$0.completedSegments;
7472
7479
  for (
7473
7480
  JSCompiler_inline_result = 0;
7474
7481
  JSCompiler_inline_result < completedSegments.length;
@@ -8799,10 +8806,10 @@
8799
8806
  completeSegmentScript2 = '","',
8800
8807
  completeSegmentScriptEnd = '")\x3c/script>',
8801
8808
  completeBoundaryScript1Full =
8802
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("',
8809
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("',
8803
8810
  completeBoundaryScript1Partial = '$RC("',
8804
8811
  completeBoundaryWithStylesScript1FullBoth =
8805
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("',
8812
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("',
8806
8813
  completeBoundaryWithStylesScript1FullPartial =
8807
8814
  '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("',
8808
8815
  completeBoundaryWithStylesScript1Partial = '$RR("',
@@ -9087,7 +9094,8 @@
9087
9094
  didWarnAboutGetDerivedStateOnFunctionComponent = {},
9088
9095
  didWarnAboutReassigningProps = !1,
9089
9096
  didWarnAboutGenerators = !1,
9090
- didWarnAboutMaps = !1;
9097
+ didWarnAboutMaps = !1,
9098
+ flushedByteSize = 0;
9091
9099
  exports.renderToStaticMarkup = function (children, options) {
9092
9100
  return renderToStringImpl(
9093
9101
  children,
@@ -9104,5 +9112,5 @@
9104
9112
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
9105
9113
  );
9106
9114
  };
9107
- exports.version = "19.2.0-canary-0038c501-20250429";
9115
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
9108
9116
  })();
@@ -4301,8 +4301,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4301
4301
  queueCompletedSegment(newBoundary, contentRootSegment),
4302
4302
  0 === newBoundary.pendingTasks &&
4303
4303
  0 === newBoundary.status &&
4304
- ((newBoundary.status = 1),
4305
- !(newBoundary.byteSize > request.progressiveChunkSize)))
4304
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
4306
4305
  ) {
4307
4306
  0 === request.pendingRootTasks &&
4308
4307
  task.blockedPreamble &&
@@ -5177,7 +5176,7 @@ function finishedTask(request, boundary, segment) {
5177
5176
  boundary.parentFlushed &&
5178
5177
  request.completedBoundaries.push(boundary),
5179
5178
  1 === boundary.status &&
5180
- (boundary.byteSize > request.progressiveChunkSize ||
5179
+ (500 < boundary.byteSize ||
5181
5180
  (boundary.fallbackAbortableTasks.forEach(
5182
5181
  abortTaskSoft,
5183
5182
  request
@@ -5490,6 +5489,7 @@ function flushSubtree(request, destination, segment, hoistableState) {
5490
5489
  );
5491
5490
  }
5492
5491
  }
5492
+ var flushedByteSize = 0;
5493
5493
  function flushSegment(request, destination, segment, hoistableState) {
5494
5494
  var boundary = segment.boundary;
5495
5495
  if (null === boundary)
@@ -5534,7 +5534,10 @@ function flushSegment(request, destination, segment, hoistableState) {
5534
5534
  flushSubtree(request, destination, segment, hoistableState),
5535
5535
  destination.push("\x3c!--/$--\x3e")
5536
5536
  );
5537
- if (boundary.byteSize > request.progressiveChunkSize)
5537
+ if (
5538
+ 500 < boundary.byteSize &&
5539
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
5540
+ )
5538
5541
  return (
5539
5542
  (boundary.rootSegmentID = request.nextSegmentId++),
5540
5543
  request.completedBoundaries.push(boundary),
@@ -5546,6 +5549,7 @@ function flushSegment(request, destination, segment, hoistableState) {
5546
5549
  flushSubtree(request, destination, segment, hoistableState),
5547
5550
  destination.push("\x3c!--/$--\x3e")
5548
5551
  );
5552
+ flushedByteSize += boundary.byteSize;
5549
5553
  hoistableState &&
5550
5554
  ((segment = boundary.contentState),
5551
5555
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -5574,6 +5578,7 @@ function flushSegmentContainer(request, destination, segment, hoistableState) {
5574
5578
  return writeEndSegment(destination, segment.parentFormatContext);
5575
5579
  }
5576
5580
  function flushCompletedBoundary(request, destination, boundary) {
5581
+ flushedByteSize = boundary.byteSize;
5577
5582
  for (
5578
5583
  var completedSegments = boundary.completedSegments, i = 0;
5579
5584
  i < completedSegments.length;
@@ -5603,7 +5608,7 @@ function flushCompletedBoundary(request, destination, boundary) {
5603
5608
  ? 0 === (completedSegments.instructions & 2)
5604
5609
  ? ((completedSegments.instructions |= 10),
5605
5610
  destination.push(
5606
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5611
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5607
5612
  ))
5608
5613
  : 0 === (completedSegments.instructions & 8)
5609
5614
  ? ((completedSegments.instructions |= 8),
@@ -5614,7 +5619,7 @@ function flushCompletedBoundary(request, destination, boundary) {
5614
5619
  : 0 === (completedSegments.instructions & 2)
5615
5620
  ? ((completedSegments.instructions |= 2),
5616
5621
  destination.push(
5617
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5622
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("'
5618
5623
  ))
5619
5624
  : destination.push('$RC("');
5620
5625
  completedSegments = i.toString(16);
@@ -5677,6 +5682,7 @@ function flushCompletedQueues(request, destination) {
5677
5682
  if (5 === completedRootSegment.status) return;
5678
5683
  var completedPreambleSegments = request.completedPreambleSegments;
5679
5684
  if (null === completedPreambleSegments) return;
5685
+ flushedByteSize = request.byteSize;
5680
5686
  var resumableState = request.resumableState,
5681
5687
  renderState = request.renderState,
5682
5688
  preamble = renderState.preamble,
@@ -5859,6 +5865,7 @@ function flushCompletedQueues(request, destination) {
5859
5865
  a: {
5860
5866
  clientRenderedBoundaries = request;
5861
5867
  boundary = destination;
5868
+ flushedByteSize = boundary$53.byteSize;
5862
5869
  var completedSegments = boundary$53.completedSegments;
5863
5870
  for (
5864
5871
  JSCompiler_inline_result = 0;
@@ -6035,4 +6042,4 @@ exports.renderToString = function (children, options) {
6035
6042
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
6036
6043
  );
6037
6044
  };
6038
- exports.version = "19.2.0-canary-0038c501-20250429";
6045
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";