@vxrn/vendor 1.1.345 → 1.1.347

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.
Files changed (36) hide show
  1. package/package.json +2 -1
  2. package/react/cjs/react-compiler-runtime.development.js +1 -18
  3. package/react/cjs/react-jsx-dev-runtime.development.js +127 -144
  4. package/react/cjs/react-jsx-dev-runtime.react-server.development.js +128 -145
  5. package/react/cjs/react-jsx-runtime.development.js +127 -144
  6. package/react/cjs/react-jsx-runtime.react-server.development.js +128 -145
  7. package/react/cjs/react.development.js +204 -230
  8. package/react/cjs/react.production.js +9 -10
  9. package/react/cjs/react.react-server.development.js +172 -199
  10. package/react/cjs/react.react-server.production.js +6 -7
  11. package/react/package.json +2 -2
  12. package/react-dom/cjs/react-dom-client.development.js +6107 -5750
  13. package/react-dom/cjs/react-dom-client.production.js +2295 -1924
  14. package/react-dom/cjs/react-dom-profiling.development.js +6134 -5777
  15. package/react-dom/cjs/react-dom-profiling.profiling.js +2572 -2247
  16. package/react-dom/cjs/react-dom-server-legacy.browser.development.js +1244 -1040
  17. package/react-dom/cjs/react-dom-server-legacy.browser.production.js +891 -761
  18. package/react-dom/cjs/react-dom-server-legacy.node.development.js +1244 -1040
  19. package/react-dom/cjs/react-dom-server-legacy.node.production.js +887 -761
  20. package/react-dom/cjs/react-dom-server.browser.development.js +1380 -1060
  21. package/react-dom/cjs/react-dom-server.browser.production.js +999 -749
  22. package/react-dom/cjs/react-dom-server.bun.development.js +1241 -1032
  23. package/react-dom/cjs/react-dom-server.bun.production.js +886 -754
  24. package/react-dom/cjs/react-dom-server.edge.development.js +1393 -1069
  25. package/react-dom/cjs/react-dom-server.edge.production.js +1007 -758
  26. package/react-dom/cjs/react-dom-server.node.development.js +1624 -1254
  27. package/react-dom/cjs/react-dom-server.node.production.js +1242 -953
  28. package/react-dom/cjs/react-dom-test-utils.development.js +1 -20
  29. package/react-dom/cjs/react-dom.development.js +34 -50
  30. package/react-dom/cjs/react-dom.production.js +4 -3
  31. package/react-dom/cjs/react-dom.react-server.development.js +48 -66
  32. package/react-dom/cjs/react-dom.react-server.production.js +6 -8
  33. package/react-dom/package.json +3 -3
  34. package/react-dom/static.browser.js +1 -0
  35. package/react-dom/static.edge.js +1 -0
  36. package/react-dom/static.node.js +1 -0
@@ -353,12 +353,12 @@ function getChildFormatContext(parentContext, type, props) {
353
353
  return 5 <= parentContext.insertionMode
354
354
  ? createFormatContext(2, null, parentContext.tagScope)
355
355
  : 0 === parentContext.insertionMode
356
- ? "html" === type
357
- ? createFormatContext(1, null, parentContext.tagScope)
358
- : createFormatContext(2, null, parentContext.tagScope)
359
- : 1 === parentContext.insertionMode
360
- ? createFormatContext(2, null, parentContext.tagScope)
361
- : parentContext;
356
+ ? "html" === type
357
+ ? createFormatContext(1, null, parentContext.tagScope)
358
+ : createFormatContext(2, null, parentContext.tagScope)
359
+ : 1 === parentContext.insertionMode
360
+ ? createFormatContext(2, null, parentContext.tagScope)
361
+ : parentContext;
362
362
  }
363
363
  var styleNameCache = new Map();
364
364
  function pushStyleAttribute(target, style) {
@@ -1259,22 +1259,64 @@ function pushStartInstance(
1259
1259
  }
1260
1260
  target$jscomp$0.push(">");
1261
1261
  return null;
1262
+ case "object":
1263
+ target$jscomp$0.push(startChunkForTag("object"));
1264
+ var children$jscomp$5 = null,
1265
+ innerHTML$jscomp$4 = null,
1266
+ propKey$jscomp$7;
1267
+ for (propKey$jscomp$7 in props)
1268
+ if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1269
+ var propValue$jscomp$7 = props[propKey$jscomp$7];
1270
+ if (null != propValue$jscomp$7)
1271
+ switch (propKey$jscomp$7) {
1272
+ case "children":
1273
+ children$jscomp$5 = propValue$jscomp$7;
1274
+ break;
1275
+ case "dangerouslySetInnerHTML":
1276
+ innerHTML$jscomp$4 = propValue$jscomp$7;
1277
+ break;
1278
+ case "data":
1279
+ var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
1280
+ if ("" === sanitizedValue) break;
1281
+ target$jscomp$0.push(
1282
+ " ",
1283
+ "data",
1284
+ '="',
1285
+ escapeTextForBrowser(sanitizedValue),
1286
+ '"'
1287
+ );
1288
+ break;
1289
+ default:
1290
+ pushAttribute(
1291
+ target$jscomp$0,
1292
+ propKey$jscomp$7,
1293
+ propValue$jscomp$7
1294
+ );
1295
+ }
1296
+ }
1297
+ target$jscomp$0.push(">");
1298
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1299
+ if ("string" === typeof children$jscomp$5) {
1300
+ target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
1301
+ var JSCompiler_inline_result$jscomp$2 = null;
1302
+ } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
1303
+ return JSCompiler_inline_result$jscomp$2;
1262
1304
  case "title":
1263
1305
  if (
1264
1306
  3 === formatContext.insertionMode ||
1265
1307
  formatContext.tagScope & 1 ||
1266
1308
  null != props.itemProp
1267
1309
  )
1268
- var JSCompiler_inline_result$jscomp$2 = pushTitleImpl(
1310
+ var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
1269
1311
  target$jscomp$0,
1270
1312
  props
1271
1313
  );
1272
1314
  else
1273
1315
  isFallback
1274
- ? (JSCompiler_inline_result$jscomp$2 = null)
1316
+ ? (JSCompiler_inline_result$jscomp$3 = null)
1275
1317
  : (pushTitleImpl(renderState.hoistableChunks, props),
1276
- (JSCompiler_inline_result$jscomp$2 = void 0));
1277
- return JSCompiler_inline_result$jscomp$2;
1318
+ (JSCompiler_inline_result$jscomp$3 = void 0));
1319
+ return JSCompiler_inline_result$jscomp$3;
1278
1320
  case "link":
1279
1321
  var rel = props.rel,
1280
1322
  href = props.href,
@@ -1288,7 +1330,7 @@ function pushStartInstance(
1288
1330
  "" === href
1289
1331
  ) {
1290
1332
  pushLinkImpl(target$jscomp$0, props);
1291
- var JSCompiler_inline_result$jscomp$3 = null;
1333
+ var JSCompiler_inline_result$jscomp$4 = null;
1292
1334
  } else if ("stylesheet" === props.rel)
1293
1335
  if (
1294
1336
  "string" !== typeof precedence ||
@@ -1296,7 +1338,7 @@ function pushStartInstance(
1296
1338
  props.onLoad ||
1297
1339
  props.onError
1298
1340
  )
1299
- JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1341
+ JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1300
1342
  target$jscomp$0,
1301
1343
  props
1302
1344
  );
@@ -1339,19 +1381,19 @@ function pushStartInstance(
1339
1381
  hoistableState.stylesheets.add(resource$9);
1340
1382
  }
1341
1383
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1342
- JSCompiler_inline_result$jscomp$3 = null;
1384
+ JSCompiler_inline_result$jscomp$4 = null;
1343
1385
  }
1344
1386
  else
1345
1387
  props.onLoad || props.onError
1346
- ? (JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1388
+ ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1347
1389
  target$jscomp$0,
1348
1390
  props
1349
1391
  ))
1350
1392
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1351
- (JSCompiler_inline_result$jscomp$3 = isFallback
1393
+ (JSCompiler_inline_result$jscomp$4 = isFallback
1352
1394
  ? null
1353
1395
  : pushLinkImpl(renderState.hoistableChunks, props)));
1354
- return JSCompiler_inline_result$jscomp$3;
1396
+ return JSCompiler_inline_result$jscomp$4;
1355
1397
  case "script":
1356
1398
  var asyncProp = props.async;
1357
1399
  if (
@@ -1366,7 +1408,7 @@ function pushStartInstance(
1366
1408
  formatContext.tagScope & 1 ||
1367
1409
  null != props.itemProp
1368
1410
  )
1369
- var JSCompiler_inline_result$jscomp$4 = pushScriptImpl(
1411
+ var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
1370
1412
  target$jscomp$0,
1371
1413
  props
1372
1414
  );
@@ -1396,9 +1438,9 @@ function pushStartInstance(
1396
1438
  pushScriptImpl(resource$jscomp$0, scriptProps);
1397
1439
  }
1398
1440
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1399
- JSCompiler_inline_result$jscomp$4 = null;
1441
+ JSCompiler_inline_result$jscomp$5 = null;
1400
1442
  }
1401
- return JSCompiler_inline_result$jscomp$4;
1443
+ return JSCompiler_inline_result$jscomp$5;
1402
1444
  case "style":
1403
1445
  var precedence$jscomp$0 = props.precedence,
1404
1446
  href$jscomp$0 = props.href;
@@ -1411,42 +1453,42 @@ function pushStartInstance(
1411
1453
  "" === href$jscomp$0
1412
1454
  ) {
1413
1455
  target$jscomp$0.push(startChunkForTag("style"));
1414
- var children$jscomp$5 = null,
1415
- innerHTML$jscomp$4 = null,
1416
- propKey$jscomp$7;
1417
- for (propKey$jscomp$7 in props)
1418
- if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1419
- var propValue$jscomp$7 = props[propKey$jscomp$7];
1420
- if (null != propValue$jscomp$7)
1421
- switch (propKey$jscomp$7) {
1456
+ var children$jscomp$6 = null,
1457
+ innerHTML$jscomp$5 = null,
1458
+ propKey$jscomp$8;
1459
+ for (propKey$jscomp$8 in props)
1460
+ if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1461
+ var propValue$jscomp$8 = props[propKey$jscomp$8];
1462
+ if (null != propValue$jscomp$8)
1463
+ switch (propKey$jscomp$8) {
1422
1464
  case "children":
1423
- children$jscomp$5 = propValue$jscomp$7;
1465
+ children$jscomp$6 = propValue$jscomp$8;
1424
1466
  break;
1425
1467
  case "dangerouslySetInnerHTML":
1426
- innerHTML$jscomp$4 = propValue$jscomp$7;
1468
+ innerHTML$jscomp$5 = propValue$jscomp$8;
1427
1469
  break;
1428
1470
  default:
1429
1471
  pushAttribute(
1430
1472
  target$jscomp$0,
1431
- propKey$jscomp$7,
1432
- propValue$jscomp$7
1473
+ propKey$jscomp$8,
1474
+ propValue$jscomp$8
1433
1475
  );
1434
1476
  }
1435
1477
  }
1436
1478
  target$jscomp$0.push(">");
1437
- var child = Array.isArray(children$jscomp$5)
1438
- ? 2 > children$jscomp$5.length
1439
- ? children$jscomp$5[0]
1479
+ var child = Array.isArray(children$jscomp$6)
1480
+ ? 2 > children$jscomp$6.length
1481
+ ? children$jscomp$6[0]
1440
1482
  : null
1441
- : children$jscomp$5;
1483
+ : children$jscomp$6;
1442
1484
  "function" !== typeof child &&
1443
1485
  "symbol" !== typeof child &&
1444
1486
  null !== child &&
1445
1487
  void 0 !== child &&
1446
1488
  target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
1447
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1489
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
1448
1490
  target$jscomp$0.push(endChunkForTag("style"));
1449
- var JSCompiler_inline_result$jscomp$5 = null;
1491
+ var JSCompiler_inline_result$jscomp$6 = null;
1450
1492
  } else {
1451
1493
  var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
1452
1494
  if (
@@ -1468,26 +1510,26 @@ function pushStartInstance(
1468
1510
  }),
1469
1511
  renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
1470
1512
  var target = styleQueue$jscomp$0.rules,
1471
- children$jscomp$6 = null,
1472
- innerHTML$jscomp$5 = null,
1473
- propKey$jscomp$8;
1474
- for (propKey$jscomp$8 in props)
1475
- if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1476
- var propValue$jscomp$8 = props[propKey$jscomp$8];
1477
- if (null != propValue$jscomp$8)
1478
- switch (propKey$jscomp$8) {
1513
+ children$jscomp$7 = null,
1514
+ innerHTML$jscomp$6 = null,
1515
+ propKey$jscomp$9;
1516
+ for (propKey$jscomp$9 in props)
1517
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1518
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
1519
+ if (null != propValue$jscomp$9)
1520
+ switch (propKey$jscomp$9) {
1479
1521
  case "children":
1480
- children$jscomp$6 = propValue$jscomp$8;
1522
+ children$jscomp$7 = propValue$jscomp$9;
1481
1523
  break;
1482
1524
  case "dangerouslySetInnerHTML":
1483
- innerHTML$jscomp$5 = propValue$jscomp$8;
1525
+ innerHTML$jscomp$6 = propValue$jscomp$9;
1484
1526
  }
1485
1527
  }
1486
- var child$jscomp$0 = Array.isArray(children$jscomp$6)
1487
- ? 2 > children$jscomp$6.length
1488
- ? children$jscomp$6[0]
1528
+ var child$jscomp$0 = Array.isArray(children$jscomp$7)
1529
+ ? 2 > children$jscomp$7.length
1530
+ ? children$jscomp$7[0]
1489
1531
  : null
1490
- : children$jscomp$6;
1532
+ : children$jscomp$7;
1491
1533
  "function" !== typeof child$jscomp$0 &&
1492
1534
  "symbol" !== typeof child$jscomp$0 &&
1493
1535
  null !== child$jscomp$0 &&
@@ -1495,85 +1537,85 @@ function pushStartInstance(
1495
1537
  target.push(
1496
1538
  ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
1497
1539
  );
1498
- pushInnerHTML(target, innerHTML$jscomp$5, children$jscomp$6);
1540
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
1499
1541
  }
1500
1542
  styleQueue$jscomp$0 &&
1501
1543
  hoistableState &&
1502
1544
  hoistableState.styles.add(styleQueue$jscomp$0);
1503
1545
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1504
- JSCompiler_inline_result$jscomp$5 = void 0;
1546
+ JSCompiler_inline_result$jscomp$6 = void 0;
1505
1547
  }
1506
- return JSCompiler_inline_result$jscomp$5;
1548
+ return JSCompiler_inline_result$jscomp$6;
1507
1549
  case "meta":
1508
1550
  if (
1509
1551
  3 === formatContext.insertionMode ||
1510
1552
  formatContext.tagScope & 1 ||
1511
1553
  null != props.itemProp
1512
1554
  )
1513
- var JSCompiler_inline_result$jscomp$6 = pushSelfClosing(
1555
+ var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1514
1556
  target$jscomp$0,
1515
1557
  props,
1516
1558
  "meta"
1517
1559
  );
1518
1560
  else
1519
1561
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1520
- (JSCompiler_inline_result$jscomp$6 = isFallback
1562
+ (JSCompiler_inline_result$jscomp$7 = isFallback
1521
1563
  ? null
1522
1564
  : "string" === typeof props.charSet
1523
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1524
- : "viewport" === props.name
1525
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1526
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1527
- return JSCompiler_inline_result$jscomp$6;
1565
+ ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1566
+ : "viewport" === props.name
1567
+ ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1568
+ : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1569
+ return JSCompiler_inline_result$jscomp$7;
1528
1570
  case "listing":
1529
1571
  case "pre":
1530
1572
  target$jscomp$0.push(startChunkForTag(type));
1531
- var children$jscomp$7 = null,
1532
- innerHTML$jscomp$6 = null,
1533
- propKey$jscomp$9;
1534
- for (propKey$jscomp$9 in props)
1535
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1536
- var propValue$jscomp$9 = props[propKey$jscomp$9];
1537
- if (null != propValue$jscomp$9)
1538
- switch (propKey$jscomp$9) {
1573
+ var children$jscomp$8 = null,
1574
+ innerHTML$jscomp$7 = null,
1575
+ propKey$jscomp$10;
1576
+ for (propKey$jscomp$10 in props)
1577
+ if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1578
+ var propValue$jscomp$10 = props[propKey$jscomp$10];
1579
+ if (null != propValue$jscomp$10)
1580
+ switch (propKey$jscomp$10) {
1539
1581
  case "children":
1540
- children$jscomp$7 = propValue$jscomp$9;
1582
+ children$jscomp$8 = propValue$jscomp$10;
1541
1583
  break;
1542
1584
  case "dangerouslySetInnerHTML":
1543
- innerHTML$jscomp$6 = propValue$jscomp$9;
1585
+ innerHTML$jscomp$7 = propValue$jscomp$10;
1544
1586
  break;
1545
1587
  default:
1546
1588
  pushAttribute(
1547
1589
  target$jscomp$0,
1548
- propKey$jscomp$9,
1549
- propValue$jscomp$9
1590
+ propKey$jscomp$10,
1591
+ propValue$jscomp$10
1550
1592
  );
1551
1593
  }
1552
1594
  }
1553
1595
  target$jscomp$0.push(">");
1554
- if (null != innerHTML$jscomp$6) {
1555
- if (null != children$jscomp$7)
1596
+ if (null != innerHTML$jscomp$7) {
1597
+ if (null != children$jscomp$8)
1556
1598
  throw Error(
1557
1599
  "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
1558
1600
  );
1559
1601
  if (
1560
- "object" !== typeof innerHTML$jscomp$6 ||
1561
- !("__html" in innerHTML$jscomp$6)
1602
+ "object" !== typeof innerHTML$jscomp$7 ||
1603
+ !("__html" in innerHTML$jscomp$7)
1562
1604
  )
1563
1605
  throw Error(
1564
1606
  "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
1565
1607
  );
1566
- var html = innerHTML$jscomp$6.__html;
1608
+ var html = innerHTML$jscomp$7.__html;
1567
1609
  null !== html &&
1568
1610
  void 0 !== html &&
1569
1611
  ("string" === typeof html && 0 < html.length && "\n" === html[0]
1570
1612
  ? target$jscomp$0.push("\n", html)
1571
1613
  : target$jscomp$0.push("" + html));
1572
1614
  }
1573
- "string" === typeof children$jscomp$7 &&
1574
- "\n" === children$jscomp$7[0] &&
1615
+ "string" === typeof children$jscomp$8 &&
1616
+ "\n" === children$jscomp$8[0] &&
1575
1617
  target$jscomp$0.push("\n");
1576
- return children$jscomp$7;
1618
+ return children$jscomp$8;
1577
1619
  case "img":
1578
1620
  var src = props.src,
1579
1621
  srcSet = props.srcSet;
@@ -1615,7 +1657,7 @@ function pushStartInstance(
1615
1657
  ) {
1616
1658
  resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
1617
1659
  var input = props.crossOrigin;
1618
- var JSCompiler_inline_result$jscomp$7 =
1660
+ var JSCompiler_inline_result$jscomp$8 =
1619
1661
  "string" === typeof input
1620
1662
  ? "use-credentials" === input
1621
1663
  ? input
@@ -1630,14 +1672,14 @@ function pushStartInstance(
1630
1672
  ((header = getPreloadAsHeader(src, "image", {
1631
1673
  imageSrcSet: props.srcSet,
1632
1674
  imageSizes: props.sizes,
1633
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1675
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1634
1676
  integrity: props.integrity,
1635
1677
  nonce: props.nonce,
1636
1678
  type: props.type,
1637
1679
  fetchPriority: props.fetchPriority,
1638
1680
  referrerPolicy: props.refererPolicy
1639
1681
  })),
1640
- 2 <= (headers.remainingCapacity -= header.length))
1682
+ 0 <= (headers.remainingCapacity -= header.length + 2))
1641
1683
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
1642
1684
  headers.highImagePreloads && (headers.highImagePreloads += ", "),
1643
1685
  (headers.highImagePreloads += header))
@@ -1648,7 +1690,7 @@ function pushStartInstance(
1648
1690
  href: srcSet ? void 0 : src,
1649
1691
  imageSrcSet: srcSet,
1650
1692
  imageSizes: sizes,
1651
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1693
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1652
1694
  integrity: props.integrity,
1653
1695
  type: props.type,
1654
1696
  fetchPriority: props.fetchPriority,
@@ -1686,56 +1728,56 @@ function pushStartInstance(
1686
1728
  case "head":
1687
1729
  if (2 > formatContext.insertionMode && null === renderState.headChunks) {
1688
1730
  renderState.headChunks = [];
1689
- var JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1731
+ var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1690
1732
  renderState.headChunks,
1691
1733
  props,
1692
1734
  "head"
1693
1735
  );
1694
1736
  } else
1695
- JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1737
+ JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1696
1738
  target$jscomp$0,
1697
1739
  props,
1698
1740
  "head"
1699
1741
  );
1700
- return JSCompiler_inline_result$jscomp$8;
1742
+ return JSCompiler_inline_result$jscomp$9;
1701
1743
  case "html":
1702
1744
  if (
1703
1745
  0 === formatContext.insertionMode &&
1704
1746
  null === renderState.htmlChunks
1705
1747
  ) {
1706
1748
  renderState.htmlChunks = [""];
1707
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1749
+ var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1708
1750
  renderState.htmlChunks,
1709
1751
  props,
1710
1752
  "html"
1711
1753
  );
1712
1754
  } else
1713
- JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1755
+ JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1714
1756
  target$jscomp$0,
1715
1757
  props,
1716
1758
  "html"
1717
1759
  );
1718
- return JSCompiler_inline_result$jscomp$9;
1760
+ return JSCompiler_inline_result$jscomp$10;
1719
1761
  default:
1720
1762
  if (-1 !== type.indexOf("-")) {
1721
1763
  target$jscomp$0.push(startChunkForTag(type));
1722
- var children$jscomp$8 = null,
1723
- innerHTML$jscomp$7 = null,
1724
- propKey$jscomp$10;
1725
- for (propKey$jscomp$10 in props)
1726
- if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1727
- var propValue$jscomp$10 = props[propKey$jscomp$10];
1728
- if (null != propValue$jscomp$10) {
1729
- var attributeName = propKey$jscomp$10;
1730
- switch (propKey$jscomp$10) {
1764
+ var children$jscomp$9 = null,
1765
+ innerHTML$jscomp$8 = null,
1766
+ propKey$jscomp$11;
1767
+ for (propKey$jscomp$11 in props)
1768
+ if (hasOwnProperty.call(props, propKey$jscomp$11)) {
1769
+ var propValue$jscomp$11 = props[propKey$jscomp$11];
1770
+ if (null != propValue$jscomp$11) {
1771
+ var attributeName = propKey$jscomp$11;
1772
+ switch (propKey$jscomp$11) {
1731
1773
  case "children":
1732
- children$jscomp$8 = propValue$jscomp$10;
1774
+ children$jscomp$9 = propValue$jscomp$11;
1733
1775
  break;
1734
1776
  case "dangerouslySetInnerHTML":
1735
- innerHTML$jscomp$7 = propValue$jscomp$10;
1777
+ innerHTML$jscomp$8 = propValue$jscomp$11;
1736
1778
  break;
1737
1779
  case "style":
1738
- pushStyleAttribute(target$jscomp$0, propValue$jscomp$10);
1780
+ pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
1739
1781
  break;
1740
1782
  case "suppressContentEditableWarning":
1741
1783
  case "suppressHydrationWarning":
@@ -1745,18 +1787,18 @@ function pushStartInstance(
1745
1787
  attributeName = "class";
1746
1788
  default:
1747
1789
  if (
1748
- isAttributeNameSafe(propKey$jscomp$10) &&
1749
- "function" !== typeof propValue$jscomp$10 &&
1750
- "symbol" !== typeof propValue$jscomp$10 &&
1751
- !1 !== propValue$jscomp$10
1790
+ isAttributeNameSafe(propKey$jscomp$11) &&
1791
+ "function" !== typeof propValue$jscomp$11 &&
1792
+ "symbol" !== typeof propValue$jscomp$11 &&
1793
+ !1 !== propValue$jscomp$11
1752
1794
  ) {
1753
- if (!0 === propValue$jscomp$10) propValue$jscomp$10 = "";
1754
- else if ("object" === typeof propValue$jscomp$10) continue;
1795
+ if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
1796
+ else if ("object" === typeof propValue$jscomp$11) continue;
1755
1797
  target$jscomp$0.push(
1756
1798
  " ",
1757
1799
  attributeName,
1758
1800
  '="',
1759
- escapeTextForBrowser(propValue$jscomp$10),
1801
+ escapeTextForBrowser(propValue$jscomp$11),
1760
1802
  '"'
1761
1803
  );
1762
1804
  }
@@ -1764,8 +1806,8 @@ function pushStartInstance(
1764
1806
  }
1765
1807
  }
1766
1808
  target$jscomp$0.push(">");
1767
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$7, children$jscomp$8);
1768
- return children$jscomp$8;
1809
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1810
+ return children$jscomp$9;
1769
1811
  }
1770
1812
  }
1771
1813
  return pushStartGenericElement(target$jscomp$0, props, type);
@@ -2150,7 +2192,7 @@ function prefetchDNS(href) {
2150
2192
  escapeHrefForLinkHeaderURLContextReplacer
2151
2193
  ) +
2152
2194
  ">; rel=dns-prefetch"),
2153
- 2 <= (resumableState.remainingCapacity -= header.length));
2195
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2154
2196
  JSCompiler_temp
2155
2197
  ? ((renderState.resets.dns[href] = null),
2156
2198
  resumableState.preconnects && (resumableState.preconnects += ", "),
@@ -2173,8 +2215,8 @@ function preconnect(href, crossOrigin) {
2173
2215
  "use-credentials" === crossOrigin
2174
2216
  ? "credentials"
2175
2217
  : "string" === typeof crossOrigin
2176
- ? "anonymous"
2177
- : "default";
2218
+ ? "anonymous"
2219
+ : "default";
2178
2220
  if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
2179
2221
  resumableState.connectResources[bucket][href] = null;
2180
2222
  resumableState = renderState.headers;
@@ -2199,7 +2241,7 @@ function preconnect(href, crossOrigin) {
2199
2241
  }
2200
2242
  JSCompiler_temp =
2201
2243
  ((header = JSCompiler_temp),
2202
- 2 <= (resumableState.remainingCapacity -= header.length));
2244
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2203
2245
  }
2204
2246
  JSCompiler_temp
2205
2247
  ? ((renderState.resets.connect[bucket][href] = null),
@@ -2241,7 +2283,7 @@ function preload(href, as, options) {
2241
2283
  0 < resumableState.remainingCapacity &&
2242
2284
  "high" === fetchPriority &&
2243
2285
  ((header = getPreloadAsHeader(href, as, options)),
2244
- 2 <= (resumableState.remainingCapacity -= header.length))
2286
+ 0 <= (resumableState.remainingCapacity -= header.length + 2))
2245
2287
  ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
2246
2288
  resumableState.highImagePreloads &&
2247
2289
  (resumableState.highImagePreloads += ", "),
@@ -2307,7 +2349,7 @@ function preload(href, as, options) {
2307
2349
  0 < resumableState.remainingCapacity &&
2308
2350
  "font" === as &&
2309
2351
  ((key = getPreloadAsHeader(href, as, options)),
2310
- 2 <= (resumableState.remainingCapacity -= key.length))
2352
+ 0 <= (resumableState.remainingCapacity -= key.length + 2))
2311
2353
  )
2312
2354
  (renderState.resets.font[href] = PRELOAD_NO_CREDS),
2313
2355
  resumableState.fontPreloads &&
@@ -2543,16 +2585,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2543
2585
  "\x3c/script>"
2544
2586
  );
2545
2587
  bootstrapScriptContent = idPrefix + "P:";
2546
- var JSCompiler_object_inline_segmentPrefix_1485 = idPrefix + "S:";
2588
+ var JSCompiler_object_inline_segmentPrefix_1482 = idPrefix + "S:";
2547
2589
  idPrefix += "B:";
2548
- var JSCompiler_object_inline_preconnects_1499 = new Set(),
2549
- JSCompiler_object_inline_fontPreloads_1500 = new Set(),
2550
- JSCompiler_object_inline_highImagePreloads_1501 = new Set(),
2551
- JSCompiler_object_inline_styles_1502 = new Map(),
2552
- JSCompiler_object_inline_bootstrapScripts_1503 = new Set(),
2553
- JSCompiler_object_inline_scripts_1504 = new Set(),
2554
- JSCompiler_object_inline_bulkPreloads_1505 = new Set(),
2555
- JSCompiler_object_inline_preloads_1506 = {
2590
+ var JSCompiler_object_inline_preconnects_1496 = new Set(),
2591
+ JSCompiler_object_inline_fontPreloads_1497 = new Set(),
2592
+ JSCompiler_object_inline_highImagePreloads_1498 = new Set(),
2593
+ JSCompiler_object_inline_styles_1499 = new Map(),
2594
+ JSCompiler_object_inline_bootstrapScripts_1500 = new Set(),
2595
+ JSCompiler_object_inline_scripts_1501 = new Set(),
2596
+ JSCompiler_object_inline_bulkPreloads_1502 = new Set(),
2597
+ JSCompiler_object_inline_preloads_1503 = {
2556
2598
  images: new Map(),
2557
2599
  stylesheets: new Map(),
2558
2600
  scripts: new Map(),
@@ -2581,15 +2623,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2581
2623
  "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
2582
2624
  ? void 0
2583
2625
  : "use-credentials" === scriptConfig.crossOrigin
2584
- ? "use-credentials"
2585
- : ""));
2626
+ ? "use-credentials"
2627
+ : ""));
2586
2628
  scriptConfig = resumableState;
2587
2629
  var href = src;
2588
2630
  scriptConfig.scriptResources[href] = null;
2589
2631
  scriptConfig.moduleScriptResources[href] = null;
2590
2632
  scriptConfig = [];
2591
2633
  pushLinkImpl(scriptConfig, props);
2592
- JSCompiler_object_inline_bootstrapScripts_1503.add(scriptConfig);
2634
+ JSCompiler_object_inline_bootstrapScripts_1500.add(scriptConfig);
2593
2635
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
2594
2636
  "string" === typeof integrity &&
2595
2637
  bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2622,15 +2664,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2622
2664
  "string" === typeof props || null == props.crossOrigin
2623
2665
  ? void 0
2624
2666
  : "use-credentials" === props.crossOrigin
2625
- ? "use-credentials"
2626
- : "")),
2667
+ ? "use-credentials"
2668
+ : "")),
2627
2669
  (props = resumableState),
2628
2670
  (scriptConfig = i),
2629
2671
  (props.scriptResources[scriptConfig] = null),
2630
2672
  (props.moduleScriptResources[scriptConfig] = null),
2631
2673
  (props = []),
2632
2674
  pushLinkImpl(props, integrity),
2633
- JSCompiler_object_inline_bootstrapScripts_1503.add(props),
2675
+ JSCompiler_object_inline_bootstrapScripts_1500.add(props),
2634
2676
  bootstrapChunks.push(
2635
2677
  '<script type="module" src="',
2636
2678
  escapeTextForBrowser(i)
@@ -2645,7 +2687,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2645
2687
  bootstrapChunks.push('" async="">\x3c/script>');
2646
2688
  return {
2647
2689
  placeholderPrefix: bootstrapScriptContent,
2648
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1485,
2690
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1482,
2649
2691
  boundaryPrefix: idPrefix,
2650
2692
  startInlineScript: "<script>",
2651
2693
  htmlChunks: null,
@@ -2665,14 +2707,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2665
2707
  charsetChunks: [],
2666
2708
  viewportChunks: [],
2667
2709
  hoistableChunks: [],
2668
- preconnects: JSCompiler_object_inline_preconnects_1499,
2669
- fontPreloads: JSCompiler_object_inline_fontPreloads_1500,
2670
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1501,
2671
- styles: JSCompiler_object_inline_styles_1502,
2672
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1503,
2673
- scripts: JSCompiler_object_inline_scripts_1504,
2674
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1505,
2675
- preloads: JSCompiler_object_inline_preloads_1506,
2710
+ preconnects: JSCompiler_object_inline_preconnects_1496,
2711
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1497,
2712
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1498,
2713
+ styles: JSCompiler_object_inline_styles_1499,
2714
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1500,
2715
+ scripts: JSCompiler_object_inline_scripts_1501,
2716
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1502,
2717
+ preloads: JSCompiler_object_inline_preloads_1503,
2676
2718
  stylesToHoist: !1,
2677
2719
  generateStaticMarkup: generateStaticMarkup
2678
2720
  };
@@ -2687,7 +2729,12 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
2687
2729
  (target = !0));
2688
2730
  return target;
2689
2731
  }
2690
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2732
+ function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
2733
+ renderState.generateStaticMarkup ||
2734
+ (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
2735
+ }
2736
+ var bind = Function.prototype.bind,
2737
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2691
2738
  function getComponentNameFromType(type) {
2692
2739
  if (null == type) return null;
2693
2740
  if ("function" === typeof type)
@@ -2798,12 +2845,12 @@ function switchContext(newSnapshot) {
2798
2845
  (null === prev
2799
2846
  ? pushAllNext(newSnapshot)
2800
2847
  : null === newSnapshot
2801
- ? popAllPrevious(prev)
2802
- : prev.depth === newSnapshot.depth
2803
- ? popToNearestCommonAncestor(prev, newSnapshot)
2804
- : prev.depth > newSnapshot.depth
2805
- ? popPreviousToCommonLevel(prev, newSnapshot)
2806
- : popNextToCommonLevel(prev, newSnapshot),
2848
+ ? popAllPrevious(prev)
2849
+ : prev.depth === newSnapshot.depth
2850
+ ? popToNearestCommonAncestor(prev, newSnapshot)
2851
+ : prev.depth > newSnapshot.depth
2852
+ ? popPreviousToCommonLevel(prev, newSnapshot)
2853
+ : popNextToCommonLevel(prev, newSnapshot),
2807
2854
  (currentActiveSnapshot = newSnapshot));
2808
2855
  }
2809
2856
  var classComponentUpdater = {
@@ -2950,9 +2997,9 @@ function createWorkInProgressHook() {
2950
2997
  (firstWorkInProgressHook = workInProgressHook = createHook()))
2951
2998
  : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
2952
2999
  : null === workInProgressHook.next
2953
- ? ((isReRender = !1),
2954
- (workInProgressHook = workInProgressHook.next = createHook()))
2955
- : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
3000
+ ? ((isReRender = !1),
3001
+ (workInProgressHook = workInProgressHook.next = createHook()))
3002
+ : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
2956
3003
  return workInProgressHook;
2957
3004
  }
2958
3005
  function getThenableStateAfterSuspending() {
@@ -2999,8 +3046,8 @@ function useReducer(reducer, initialArg, init) {
2999
3046
  ? initialArg()
3000
3047
  : initialArg
3001
3048
  : void 0 !== init
3002
- ? init(initialArg)
3003
- : initialArg;
3049
+ ? init(initialArg)
3050
+ : initialArg;
3004
3051
  workInProgressHook.memoizedState = reducer;
3005
3052
  reducer = workInProgressHook.queue = { last: null, dispatch: null };
3006
3053
  reducer = reducer.dispatch = dispatchAction.bind(
@@ -3230,7 +3277,8 @@ var currentResumableState = null,
3230
3277
  throw Error("Not implemented.");
3231
3278
  }
3232
3279
  },
3233
- prefix;
3280
+ prefix,
3281
+ suffix;
3234
3282
  function describeBuiltInComponentFrame(name) {
3235
3283
  if (void 0 === prefix)
3236
3284
  try {
@@ -3238,8 +3286,14 @@ function describeBuiltInComponentFrame(name) {
3238
3286
  } catch (x) {
3239
3287
  var match = x.stack.trim().match(/\n( *(at )?)/);
3240
3288
  prefix = (match && match[1]) || "";
3289
+ suffix =
3290
+ -1 < x.stack.indexOf("\n at")
3291
+ ? " (<anonymous>)"
3292
+ : -1 < x.stack.indexOf("@")
3293
+ ? "@unknown:0:0"
3294
+ : "";
3241
3295
  }
3242
- return "\n" + prefix + name;
3296
+ return "\n" + prefix + name + suffix;
3243
3297
  }
3244
3298
  var reentry = !1;
3245
3299
  function describeNativeComponentFrame(fn, construct) {
@@ -3247,62 +3301,64 @@ function describeNativeComponentFrame(fn, construct) {
3247
3301
  reentry = !0;
3248
3302
  var previousPrepareStackTrace = Error.prepareStackTrace;
3249
3303
  Error.prepareStackTrace = void 0;
3250
- var RunInRootFrame = {
3251
- DetermineComponentFrameRoot: function () {
3252
- try {
3253
- if (construct) {
3254
- var Fake = function () {
3255
- throw Error();
3256
- };
3257
- Object.defineProperty(Fake.prototype, "props", {
3258
- set: function () {
3304
+ try {
3305
+ var RunInRootFrame = {
3306
+ DetermineComponentFrameRoot: function () {
3307
+ try {
3308
+ if (construct) {
3309
+ var Fake = function () {
3259
3310
  throw Error();
3311
+ };
3312
+ Object.defineProperty(Fake.prototype, "props", {
3313
+ set: function () {
3314
+ throw Error();
3315
+ }
3316
+ });
3317
+ if ("object" === typeof Reflect && Reflect.construct) {
3318
+ try {
3319
+ Reflect.construct(Fake, []);
3320
+ } catch (x) {
3321
+ var control = x;
3322
+ }
3323
+ Reflect.construct(fn, [], Fake);
3324
+ } else {
3325
+ try {
3326
+ Fake.call();
3327
+ } catch (x$24) {
3328
+ control = x$24;
3329
+ }
3330
+ fn.call(Fake.prototype);
3260
3331
  }
3261
- });
3262
- if ("object" === typeof Reflect && Reflect.construct) {
3263
- try {
3264
- Reflect.construct(Fake, []);
3265
- } catch (x) {
3266
- var control = x;
3267
- }
3268
- Reflect.construct(fn, [], Fake);
3269
3332
  } else {
3270
3333
  try {
3271
- Fake.call();
3272
- } catch (x$24) {
3273
- control = x$24;
3334
+ throw Error();
3335
+ } catch (x$25) {
3336
+ control = x$25;
3274
3337
  }
3275
- fn.call(Fake.prototype);
3338
+ (Fake = fn()) &&
3339
+ "function" === typeof Fake.catch &&
3340
+ Fake.catch(function () {});
3276
3341
  }
3277
- } else {
3278
- try {
3279
- throw Error();
3280
- } catch (x$25) {
3281
- control = x$25;
3282
- }
3283
- (Fake = fn()) &&
3284
- "function" === typeof Fake.catch &&
3285
- Fake.catch(function () {});
3342
+ } catch (sample) {
3343
+ if (sample && control && "string" === typeof sample.stack)
3344
+ return [sample.stack, control.stack];
3286
3345
  }
3287
- } catch (sample) {
3288
- if (sample && control && "string" === typeof sample.stack)
3289
- return [sample.stack, control.stack];
3346
+ return [null, null];
3290
3347
  }
3291
- return [null, null];
3292
- }
3293
- };
3294
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
3295
- "DetermineComponentFrameRoot";
3296
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
3297
- RunInRootFrame.DetermineComponentFrameRoot,
3298
- "name"
3299
- );
3300
- namePropDescriptor &&
3301
- namePropDescriptor.configurable &&
3302
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", {
3303
- value: "DetermineComponentFrameRoot"
3304
- });
3305
- try {
3348
+ };
3349
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
3350
+ "DetermineComponentFrameRoot";
3351
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
3352
+ RunInRootFrame.DetermineComponentFrameRoot,
3353
+ "name"
3354
+ );
3355
+ namePropDescriptor &&
3356
+ namePropDescriptor.configurable &&
3357
+ Object.defineProperty(
3358
+ RunInRootFrame.DetermineComponentFrameRoot,
3359
+ "name",
3360
+ { value: "DetermineComponentFrameRoot" }
3361
+ );
3306
3362
  var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
3307
3363
  sampleStack = _RunInRootFrame$Deter[0],
3308
3364
  controlStack = _RunInRootFrame$Deter[1];
@@ -3373,13 +3429,69 @@ function describeNativeComponentFrame(fn, construct) {
3373
3429
  ? describeBuiltInComponentFrame(previousPrepareStackTrace)
3374
3430
  : "";
3375
3431
  }
3432
+ function describeComponentStackByType(type) {
3433
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3434
+ if ("function" === typeof type)
3435
+ return type.prototype && type.prototype.isReactComponent
3436
+ ? ((type = describeNativeComponentFrame(type, !0)), type)
3437
+ : describeNativeComponentFrame(type, !1);
3438
+ if ("object" === typeof type && null !== type) {
3439
+ switch (type.$$typeof) {
3440
+ case REACT_FORWARD_REF_TYPE:
3441
+ return describeNativeComponentFrame(type.render, !1);
3442
+ case REACT_MEMO_TYPE:
3443
+ return describeNativeComponentFrame(type.type, !1);
3444
+ case REACT_LAZY_TYPE:
3445
+ var lazyComponent = type,
3446
+ payload = lazyComponent._payload;
3447
+ lazyComponent = lazyComponent._init;
3448
+ try {
3449
+ type = lazyComponent(payload);
3450
+ } catch (x) {
3451
+ return describeBuiltInComponentFrame("Lazy");
3452
+ }
3453
+ return describeComponentStackByType(type);
3454
+ }
3455
+ if ("string" === typeof type.name)
3456
+ return (
3457
+ (payload = type.env),
3458
+ describeBuiltInComponentFrame(
3459
+ type.name + (payload ? " [" + payload + "]" : "")
3460
+ )
3461
+ );
3462
+ }
3463
+ switch (type) {
3464
+ case REACT_SUSPENSE_LIST_TYPE:
3465
+ return describeBuiltInComponentFrame("SuspenseList");
3466
+ case REACT_SUSPENSE_TYPE:
3467
+ return describeBuiltInComponentFrame("Suspense");
3468
+ }
3469
+ return "";
3470
+ }
3376
3471
  function defaultErrorHandler(error) {
3377
- console.error(error);
3472
+ if (
3473
+ "object" === typeof error &&
3474
+ null !== error &&
3475
+ "string" === typeof error.environmentName
3476
+ ) {
3477
+ var JSCompiler_inline_result = error.environmentName;
3478
+ error = [error].slice(0);
3479
+ "string" === typeof error[0]
3480
+ ? error.splice(
3481
+ 0,
3482
+ 1,
3483
+ "[%s] " + error[0],
3484
+ " " + JSCompiler_inline_result + " "
3485
+ )
3486
+ : error.splice(0, 0, "[%s] ", " " + JSCompiler_inline_result + " ");
3487
+ error.unshift(console);
3488
+ JSCompiler_inline_result = bind.apply(console.error, error);
3489
+ JSCompiler_inline_result();
3490
+ } else console.error(error);
3378
3491
  return null;
3379
3492
  }
3380
3493
  function noop() {}
3381
3494
  function RequestInstance(
3382
- children,
3383
3495
  resumableState,
3384
3496
  renderState,
3385
3497
  rootFormatContext,
@@ -3392,8 +3504,7 @@ function RequestInstance(
3392
3504
  onPostpone,
3393
3505
  formState
3394
3506
  ) {
3395
- var pingedTasks = [],
3396
- abortSet = new Set();
3507
+ var abortSet = new Set();
3397
3508
  this.destination = null;
3398
3509
  this.flushScheduled = !1;
3399
3510
  this.resumableState = resumableState;
@@ -3401,12 +3512,12 @@ function RequestInstance(
3401
3512
  this.rootFormatContext = rootFormatContext;
3402
3513
  this.progressiveChunkSize =
3403
3514
  void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3404
- this.status = 0;
3515
+ this.status = 10;
3405
3516
  this.fatalError = null;
3406
3517
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3407
3518
  this.completedRootSegment = null;
3408
3519
  this.abortableTasks = abortSet;
3409
- this.pingedTasks = pingedTasks;
3520
+ this.pingedTasks = [];
3410
3521
  this.clientRenderedBoundaries = [];
3411
3522
  this.completedBoundaries = [];
3412
3523
  this.partialBoundaries = [];
@@ -3418,33 +3529,6 @@ function RequestInstance(
3418
3529
  this.onShellError = void 0 === onShellError ? noop : onShellError;
3419
3530
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3420
3531
  this.formState = void 0 === formState ? null : formState;
3421
- resumableState = createPendingSegment(
3422
- this,
3423
- 0,
3424
- null,
3425
- rootFormatContext,
3426
- !1,
3427
- !1
3428
- );
3429
- resumableState.parentFlushed = !0;
3430
- children = createRenderTask(
3431
- this,
3432
- null,
3433
- children,
3434
- -1,
3435
- null,
3436
- resumableState,
3437
- null,
3438
- abortSet,
3439
- null,
3440
- rootFormatContext,
3441
- emptyContextObject,
3442
- null,
3443
- emptyTreeContext,
3444
- null,
3445
- !1
3446
- );
3447
- pingedTasks.push(children);
3448
3532
  }
3449
3533
  function createRequest(
3450
3534
  children,
@@ -3460,8 +3544,7 @@ function createRequest(
3460
3544
  onPostpone,
3461
3545
  formState
3462
3546
  ) {
3463
- return new RequestInstance(
3464
- children,
3547
+ resumableState = new RequestInstance(
3465
3548
  resumableState,
3466
3549
  renderState,
3467
3550
  rootFormatContext,
@@ -3474,6 +3557,34 @@ function createRequest(
3474
3557
  onPostpone,
3475
3558
  formState
3476
3559
  );
3560
+ renderState = createPendingSegment(
3561
+ resumableState,
3562
+ 0,
3563
+ null,
3564
+ rootFormatContext,
3565
+ !1,
3566
+ !1
3567
+ );
3568
+ renderState.parentFlushed = !0;
3569
+ children = createRenderTask(
3570
+ resumableState,
3571
+ null,
3572
+ children,
3573
+ -1,
3574
+ null,
3575
+ renderState,
3576
+ null,
3577
+ resumableState.abortableTasks,
3578
+ null,
3579
+ rootFormatContext,
3580
+ null,
3581
+ emptyTreeContext,
3582
+ null,
3583
+ !1
3584
+ );
3585
+ pushComponentStack(children);
3586
+ resumableState.pingedTasks.push(children);
3587
+ return resumableState;
3477
3588
  }
3478
3589
  var currentRequest = null;
3479
3590
  function pingTask(request, task) {
@@ -3509,7 +3620,6 @@ function createRenderTask(
3509
3620
  abortSet,
3510
3621
  keyPath,
3511
3622
  formatContext,
3512
- legacyContext,
3513
3623
  context,
3514
3624
  treeContext,
3515
3625
  componentStack,
@@ -3532,7 +3642,6 @@ function createRenderTask(
3532
3642
  abortSet: abortSet,
3533
3643
  keyPath: keyPath,
3534
3644
  formatContext: formatContext,
3535
- legacyContext: legacyContext,
3536
3645
  context: context,
3537
3646
  treeContext: treeContext,
3538
3647
  componentStack: componentStack,
@@ -3553,7 +3662,6 @@ function createReplayTask(
3553
3662
  abortSet,
3554
3663
  keyPath,
3555
3664
  formatContext,
3556
- legacyContext,
3557
3665
  context,
3558
3666
  treeContext,
3559
3667
  componentStack,
@@ -3577,7 +3685,6 @@ function createReplayTask(
3577
3685
  abortSet: abortSet,
3578
3686
  keyPath: keyPath,
3579
3687
  formatContext: formatContext,
3580
- legacyContext: legacyContext,
3581
3688
  context: context,
3582
3689
  treeContext: treeContext,
3583
3690
  componentStack: componentStack,
@@ -3608,47 +3715,54 @@ function createPendingSegment(
3608
3715
  textEmbedded: textEmbedded
3609
3716
  };
3610
3717
  }
3611
- function createBuiltInComponentStack(task, type) {
3612
- return { tag: 0, parent: task.componentStack, type: type };
3718
+ function pushComponentStack(task) {
3719
+ var node = task.node;
3720
+ if ("object" === typeof node && null !== node)
3721
+ switch (node.$$typeof) {
3722
+ case REACT_ELEMENT_TYPE:
3723
+ task.componentStack = { parent: task.componentStack, type: node.type };
3724
+ }
3613
3725
  }
3614
- function getThrownInfo(request, node) {
3615
- if (node && null !== request.trackedPostpones) {
3616
- try {
3617
- request = "";
3618
- do {
3619
- switch (node.tag) {
3620
- case 0:
3621
- request += describeBuiltInComponentFrame(node.type);
3622
- break;
3623
- case 1:
3624
- request += describeNativeComponentFrame(node.type, !1);
3625
- break;
3626
- case 2:
3627
- request += describeNativeComponentFrame(node.type, !0);
3726
+ function getThrownInfo(node$jscomp$0) {
3727
+ var errorInfo = {};
3728
+ node$jscomp$0 &&
3729
+ Object.defineProperty(errorInfo, "componentStack", {
3730
+ configurable: !0,
3731
+ enumerable: !0,
3732
+ get: function () {
3733
+ try {
3734
+ var info = "",
3735
+ node = node$jscomp$0;
3736
+ do
3737
+ (info += describeComponentStackByType(node.type)),
3738
+ (node = node.parent);
3739
+ while (node);
3740
+ var JSCompiler_inline_result = info;
3741
+ } catch (x) {
3742
+ JSCompiler_inline_result =
3743
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3628
3744
  }
3629
- node = node.parent;
3630
- } while (node);
3631
- var JSCompiler_temp = request;
3632
- } catch (x) {
3633
- JSCompiler_temp =
3634
- "\nError generating stack: " + x.message + "\n" + x.stack;
3635
- }
3636
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3637
- } else JSCompiler_temp = {};
3638
- return JSCompiler_temp;
3745
+ Object.defineProperty(errorInfo, "componentStack", {
3746
+ value: JSCompiler_inline_result
3747
+ });
3748
+ return JSCompiler_inline_result;
3749
+ }
3750
+ });
3751
+ return errorInfo;
3639
3752
  }
3640
3753
  function logRecoverableError(request, error, errorInfo) {
3641
- request = request.onError(error, errorInfo);
3642
- if (null == request || "string" === typeof request) return request;
3754
+ request = request.onError;
3755
+ error = request(error, errorInfo);
3756
+ if (null == error || "string" === typeof error) return error;
3643
3757
  }
3644
3758
  function fatalError(request, error) {
3645
- var onShellError = request.onShellError;
3646
- onShellError(error);
3647
- onShellError = request.onFatalError;
3759
+ var onShellError = request.onShellError,
3760
+ onFatalError = request.onFatalError;
3648
3761
  onShellError(error);
3762
+ onFatalError(error);
3649
3763
  null !== request.destination
3650
- ? ((request.status = 2), request.destination.destroy(error))
3651
- : ((request.status = 1), (request.fatalError = error));
3764
+ ? ((request.status = 14), request.destination.destroy(error))
3765
+ : ((request.status = 13), (request.fatalError = error));
3652
3766
  }
3653
3767
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
3654
3768
  var prevThenableState = task.thenableState;
@@ -3701,171 +3815,148 @@ function finishFunctionComponent(
3701
3815
  renderNode(request, task, children, -1),
3702
3816
  (task.treeContext = keyPath))
3703
3817
  : didEmitActionStateMarkers
3704
- ? renderNode(request, task, children, -1)
3705
- : renderNodeDestructive(request, task, children, -1);
3818
+ ? renderNode(request, task, children, -1)
3819
+ : renderNodeDestructive(request, task, children, -1);
3706
3820
  task.keyPath = actionStateCount;
3707
3821
  }
3708
3822
  function renderElement(request, task, keyPath, type, props, ref) {
3709
3823
  if ("function" === typeof type)
3710
3824
  if (type.prototype && type.prototype.isReactComponent) {
3711
- var JSCompiler_inline_result = props;
3825
+ var newProps = props;
3712
3826
  if ("ref" in props) {
3713
- JSCompiler_inline_result = {};
3827
+ newProps = {};
3714
3828
  for (var propName in props)
3715
- "ref" !== propName &&
3716
- (JSCompiler_inline_result[propName] = props[propName]);
3829
+ "ref" !== propName && (newProps[propName] = props[propName]);
3717
3830
  }
3718
3831
  var defaultProps = type.defaultProps;
3719
3832
  if (defaultProps) {
3720
- JSCompiler_inline_result === props &&
3721
- (JSCompiler_inline_result = assign(
3722
- {},
3723
- JSCompiler_inline_result,
3724
- props
3725
- ));
3726
- for (var propName$31 in defaultProps)
3727
- void 0 === JSCompiler_inline_result[propName$31] &&
3728
- (JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
3833
+ newProps === props && (newProps = assign({}, newProps, props));
3834
+ for (var propName$33 in defaultProps)
3835
+ void 0 === newProps[propName$33] &&
3836
+ (newProps[propName$33] = defaultProps[propName$33]);
3729
3837
  }
3730
- props = task.componentStack;
3731
- task.componentStack = { tag: 2, parent: task.componentStack, type: type };
3732
- defaultProps = emptyContextObject;
3838
+ props = newProps;
3839
+ newProps = emptyContextObject;
3840
+ defaultProps = type.contextType;
3841
+ "object" === typeof defaultProps &&
3842
+ null !== defaultProps &&
3843
+ (newProps = defaultProps._currentValue2);
3844
+ newProps = new type(props, newProps);
3845
+ var initialState = void 0 !== newProps.state ? newProps.state : null;
3846
+ newProps.updater = classComponentUpdater;
3847
+ newProps.props = props;
3848
+ newProps.state = initialState;
3849
+ defaultProps = { queue: [], replace: !1 };
3850
+ newProps._reactInternals = defaultProps;
3733
3851
  ref = type.contextType;
3734
- "object" === typeof ref &&
3735
- null !== ref &&
3736
- (defaultProps = ref._currentValue2);
3737
- defaultProps = new type(JSCompiler_inline_result, defaultProps);
3738
- propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
3739
- defaultProps.updater = classComponentUpdater;
3740
- defaultProps.props = JSCompiler_inline_result;
3741
- defaultProps.state = propName$31;
3742
- ref = { queue: [], replace: !1 };
3743
- defaultProps._reactInternals = ref;
3744
- var contextType = type.contextType;
3745
- defaultProps.context =
3746
- "object" === typeof contextType && null !== contextType
3747
- ? contextType._currentValue2
3852
+ newProps.context =
3853
+ "object" === typeof ref && null !== ref
3854
+ ? ref._currentValue2
3748
3855
  : emptyContextObject;
3749
- contextType = type.getDerivedStateFromProps;
3750
- "function" === typeof contextType &&
3751
- ((contextType = contextType(JSCompiler_inline_result, propName$31)),
3752
- (propName$31 =
3753
- null === contextType || void 0 === contextType
3754
- ? propName$31
3755
- : assign({}, propName$31, contextType)),
3756
- (defaultProps.state = propName$31));
3856
+ ref = type.getDerivedStateFromProps;
3857
+ "function" === typeof ref &&
3858
+ ((ref = ref(props, initialState)),
3859
+ (initialState =
3860
+ null === ref || void 0 === ref
3861
+ ? initialState
3862
+ : assign({}, initialState, ref)),
3863
+ (newProps.state = initialState));
3757
3864
  if (
3758
3865
  "function" !== typeof type.getDerivedStateFromProps &&
3759
- "function" !== typeof defaultProps.getSnapshotBeforeUpdate &&
3760
- ("function" === typeof defaultProps.UNSAFE_componentWillMount ||
3761
- "function" === typeof defaultProps.componentWillMount)
3866
+ "function" !== typeof newProps.getSnapshotBeforeUpdate &&
3867
+ ("function" === typeof newProps.UNSAFE_componentWillMount ||
3868
+ "function" === typeof newProps.componentWillMount)
3762
3869
  )
3763
3870
  if (
3764
- ((type = defaultProps.state),
3765
- "function" === typeof defaultProps.componentWillMount &&
3766
- defaultProps.componentWillMount(),
3767
- "function" === typeof defaultProps.UNSAFE_componentWillMount &&
3768
- defaultProps.UNSAFE_componentWillMount(),
3769
- type !== defaultProps.state &&
3871
+ ((type = newProps.state),
3872
+ "function" === typeof newProps.componentWillMount &&
3873
+ newProps.componentWillMount(),
3874
+ "function" === typeof newProps.UNSAFE_componentWillMount &&
3875
+ newProps.UNSAFE_componentWillMount(),
3876
+ type !== newProps.state &&
3770
3877
  classComponentUpdater.enqueueReplaceState(
3771
- defaultProps,
3772
- defaultProps.state,
3878
+ newProps,
3879
+ newProps.state,
3773
3880
  null
3774
3881
  ),
3775
- null !== ref.queue && 0 < ref.queue.length)
3882
+ null !== defaultProps.queue && 0 < defaultProps.queue.length)
3776
3883
  )
3777
3884
  if (
3778
- ((type = ref.queue),
3779
- (contextType = ref.replace),
3780
- (ref.queue = null),
3781
- (ref.replace = !1),
3782
- contextType && 1 === type.length)
3885
+ ((type = defaultProps.queue),
3886
+ (ref = defaultProps.replace),
3887
+ (defaultProps.queue = null),
3888
+ (defaultProps.replace = !1),
3889
+ ref && 1 === type.length)
3783
3890
  )
3784
- defaultProps.state = type[0];
3891
+ newProps.state = type[0];
3785
3892
  else {
3786
- ref = contextType ? type[0] : defaultProps.state;
3787
- propName$31 = !0;
3788
- for (
3789
- contextType = contextType ? 1 : 0;
3790
- contextType < type.length;
3791
- contextType++
3792
- )
3793
- (propName = type[contextType]),
3794
- (propName =
3795
- "function" === typeof propName
3796
- ? propName.call(
3797
- defaultProps,
3798
- ref,
3799
- JSCompiler_inline_result,
3800
- void 0
3801
- )
3802
- : propName),
3803
- null != propName &&
3804
- (propName$31
3805
- ? ((propName$31 = !1), (ref = assign({}, ref, propName)))
3806
- : assign(ref, propName));
3807
- defaultProps.state = ref;
3893
+ defaultProps = ref ? type[0] : newProps.state;
3894
+ initialState = !0;
3895
+ for (ref = ref ? 1 : 0; ref < type.length; ref++)
3896
+ (propName$33 = type[ref]),
3897
+ (propName$33 =
3898
+ "function" === typeof propName$33
3899
+ ? propName$33.call(newProps, defaultProps, props, void 0)
3900
+ : propName$33),
3901
+ null != propName$33 &&
3902
+ (initialState
3903
+ ? ((initialState = !1),
3904
+ (defaultProps = assign({}, defaultProps, propName$33)))
3905
+ : assign(defaultProps, propName$33));
3906
+ newProps.state = defaultProps;
3808
3907
  }
3809
- else ref.queue = null;
3810
- type = defaultProps.render();
3811
- JSCompiler_inline_result = task.keyPath;
3908
+ else defaultProps.queue = null;
3909
+ type = newProps.render();
3910
+ if (12 === request.status) throw null;
3911
+ props = task.keyPath;
3812
3912
  task.keyPath = keyPath;
3813
3913
  renderNodeDestructive(request, task, type, -1);
3814
- task.keyPath = JSCompiler_inline_result;
3815
- task.componentStack = props;
3816
- } else
3817
- (JSCompiler_inline_result = task.componentStack),
3818
- (task.componentStack = {
3819
- tag: 1,
3820
- parent: task.componentStack,
3821
- type: type
3822
- }),
3823
- (type = renderWithHooks(request, task, keyPath, type, props, void 0)),
3824
- finishFunctionComponent(
3825
- request,
3826
- task,
3827
- keyPath,
3828
- type,
3829
- 0 !== localIdCounter,
3830
- actionStateCounter,
3831
- actionStateMatchingIndex
3832
- ),
3833
- (task.componentStack = JSCompiler_inline_result);
3834
- else if ("string" === typeof type) {
3835
- JSCompiler_inline_result = task.componentStack;
3836
- task.componentStack = createBuiltInComponentStack(task, type);
3837
- defaultProps = task.blockedSegment;
3838
- if (null === defaultProps)
3839
- (defaultProps = props.children),
3840
- (ref = task.formatContext),
3841
- (propName$31 = task.keyPath),
3842
- (task.formatContext = getChildFormatContext(ref, type, props)),
3914
+ task.keyPath = props;
3915
+ } else {
3916
+ type = renderWithHooks(request, task, keyPath, type, props, void 0);
3917
+ if (12 === request.status) throw null;
3918
+ finishFunctionComponent(
3919
+ request,
3920
+ task,
3921
+ keyPath,
3922
+ type,
3923
+ 0 !== localIdCounter,
3924
+ actionStateCounter,
3925
+ actionStateMatchingIndex
3926
+ );
3927
+ }
3928
+ else if ("string" === typeof type)
3929
+ if (((newProps = task.blockedSegment), null === newProps))
3930
+ (newProps = props.children),
3931
+ (defaultProps = task.formatContext),
3932
+ (initialState = task.keyPath),
3933
+ (task.formatContext = getChildFormatContext(defaultProps, type, props)),
3843
3934
  (task.keyPath = keyPath),
3844
- renderNode(request, task, defaultProps, -1),
3845
- (task.formatContext = ref),
3846
- (task.keyPath = propName$31);
3935
+ renderNode(request, task, newProps, -1),
3936
+ (task.formatContext = defaultProps),
3937
+ (task.keyPath = initialState);
3847
3938
  else {
3848
- propName$31 = pushStartInstance(
3849
- defaultProps.chunks,
3939
+ initialState = pushStartInstance(
3940
+ newProps.chunks,
3850
3941
  type,
3851
3942
  props,
3852
3943
  request.resumableState,
3853
3944
  request.renderState,
3854
3945
  task.hoistableState,
3855
3946
  task.formatContext,
3856
- defaultProps.lastPushedText,
3947
+ newProps.lastPushedText,
3857
3948
  task.isFallback
3858
3949
  );
3859
- defaultProps.lastPushedText = !1;
3860
- ref = task.formatContext;
3861
- contextType = task.keyPath;
3862
- task.formatContext = getChildFormatContext(ref, type, props);
3950
+ newProps.lastPushedText = !1;
3951
+ defaultProps = task.formatContext;
3952
+ ref = task.keyPath;
3953
+ task.formatContext = getChildFormatContext(defaultProps, type, props);
3863
3954
  task.keyPath = keyPath;
3864
- renderNode(request, task, propName$31, -1);
3865
- task.formatContext = ref;
3866
- task.keyPath = contextType;
3955
+ renderNode(request, task, initialState, -1);
3956
+ task.formatContext = defaultProps;
3957
+ task.keyPath = ref;
3867
3958
  a: {
3868
- keyPath = defaultProps.chunks;
3959
+ task = newProps.chunks;
3869
3960
  request = request.resumableState;
3870
3961
  switch (type) {
3871
3962
  case "title":
@@ -3888,23 +3979,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
3888
3979
  case "wbr":
3889
3980
  break a;
3890
3981
  case "body":
3891
- if (1 >= ref.insertionMode) {
3982
+ if (1 >= defaultProps.insertionMode) {
3892
3983
  request.hasBody = !0;
3893
3984
  break a;
3894
3985
  }
3895
3986
  break;
3896
3987
  case "html":
3897
- if (0 === ref.insertionMode) {
3988
+ if (0 === defaultProps.insertionMode) {
3898
3989
  request.hasHtml = !0;
3899
3990
  break a;
3900
3991
  }
3901
3992
  }
3902
- keyPath.push(endChunkForTag(type));
3993
+ task.push(endChunkForTag(type));
3903
3994
  }
3904
- defaultProps.lastPushedText = !1;
3995
+ newProps.lastPushedText = !1;
3905
3996
  }
3906
- task.componentStack = JSCompiler_inline_result;
3907
- } else {
3997
+ else {
3908
3998
  switch (type) {
3909
3999
  case REACT_LEGACY_HIDDEN_TYPE:
3910
4000
  case REACT_DEBUG_TRACING_MODE_TYPE:
@@ -3924,13 +4014,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
3924
4014
  (task.keyPath = type));
3925
4015
  return;
3926
4016
  case REACT_SUSPENSE_LIST_TYPE:
3927
- type = task.componentStack;
3928
- task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
3929
- JSCompiler_inline_result = task.keyPath;
4017
+ type = task.keyPath;
3930
4018
  task.keyPath = keyPath;
3931
4019
  renderNodeDestructive(request, task, props.children, -1);
3932
- task.keyPath = JSCompiler_inline_result;
3933
- task.componentStack = type;
4020
+ task.keyPath = type;
3934
4021
  return;
3935
4022
  case REACT_SCOPE_TYPE:
3936
4023
  throw Error("ReactDOMServer does not yet support scope components.");
@@ -3945,31 +4032,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
3945
4032
  task.keyPath = type;
3946
4033
  }
3947
4034
  } else {
3948
- var previousComponentStack = task.componentStack;
3949
- type = task.componentStack = createBuiltInComponentStack(
3950
- task,
3951
- "Suspense"
3952
- );
3953
- var prevKeyPath = task.keyPath;
3954
- ref = task.blockedBoundary;
3955
- var parentHoistableState = task.hoistableState,
3956
- parentSegment = task.blockedSegment;
3957
- propName$31 = props.fallback;
3958
- var content = props.children;
3959
- props = new Set();
3960
- contextType = createSuspenseBoundary(request, props);
4035
+ type = task.keyPath;
4036
+ var parentBoundary = task.blockedBoundary,
4037
+ parentHoistableState = task.hoistableState;
4038
+ ref = task.blockedSegment;
4039
+ propName$33 = props.fallback;
4040
+ props = props.children;
4041
+ var fallbackAbortSet = new Set();
4042
+ propName = createSuspenseBoundary(request, fallbackAbortSet);
3961
4043
  null !== request.trackedPostpones &&
3962
- (contextType.trackedContentKeyPath = keyPath);
3963
- propName = createPendingSegment(
4044
+ (propName.trackedContentKeyPath = keyPath);
4045
+ var boundarySegment = createPendingSegment(
3964
4046
  request,
3965
- parentSegment.chunks.length,
3966
- contextType,
4047
+ ref.chunks.length,
4048
+ propName,
3967
4049
  task.formatContext,
3968
4050
  !1,
3969
4051
  !1
3970
4052
  );
3971
- parentSegment.children.push(propName);
3972
- parentSegment.lastPushedText = !1;
4053
+ ref.children.push(boundarySegment);
4054
+ ref.lastPushedText = !1;
3973
4055
  var contentRootSegment = createPendingSegment(
3974
4056
  request,
3975
4057
  0,
@@ -3979,108 +4061,128 @@ function renderElement(request, task, keyPath, type, props, ref) {
3979
4061
  !1
3980
4062
  );
3981
4063
  contentRootSegment.parentFlushed = !0;
3982
- task.blockedBoundary = contextType;
3983
- task.hoistableState = contextType.contentState;
3984
- task.blockedSegment = contentRootSegment;
3985
- task.keyPath = keyPath;
3986
- try {
3987
- if (
3988
- (renderNode(request, task, content, -1),
3989
- request.renderState.generateStaticMarkup ||
3990
- (contentRootSegment.lastPushedText &&
3991
- contentRootSegment.textEmbedded &&
3992
- contentRootSegment.chunks.push("\x3c!-- --\x3e")),
3993
- (contentRootSegment.status = 1),
3994
- queueCompletedSegment(contextType, contentRootSegment),
3995
- 0 === contextType.pendingTasks && 0 === contextType.status)
3996
- ) {
3997
- contextType.status = 1;
3998
- task.componentStack = previousComponentStack;
3999
- break a;
4064
+ if (null !== request.trackedPostpones) {
4065
+ newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4066
+ defaultProps = [newProps[1], newProps[2], [], null];
4067
+ request.trackedPostpones.workingMap.set(newProps, defaultProps);
4068
+ propName.trackedFallbackNode = defaultProps;
4069
+ task.blockedSegment = boundarySegment;
4070
+ task.keyPath = newProps;
4071
+ boundarySegment.status = 6;
4072
+ try {
4073
+ renderNode(request, task, propName$33, -1),
4074
+ pushSegmentFinale(
4075
+ boundarySegment.chunks,
4076
+ request.renderState,
4077
+ boundarySegment.lastPushedText,
4078
+ boundarySegment.textEmbedded
4079
+ ),
4080
+ (boundarySegment.status = 1);
4081
+ } catch (thrownValue) {
4082
+ throw (
4083
+ ((boundarySegment.status = 12 === request.status ? 3 : 4),
4084
+ thrownValue)
4085
+ );
4086
+ } finally {
4087
+ (task.blockedSegment = ref), (task.keyPath = type);
4000
4088
  }
4001
- } catch (error) {
4002
- (contentRootSegment.status = 4),
4003
- (contextType.status = 4),
4004
- (JSCompiler_inline_result = getThrownInfo(
4005
- request,
4006
- task.componentStack
4007
- )),
4008
- (defaultProps = logRecoverableError(
4009
- request,
4010
- error,
4011
- JSCompiler_inline_result
4012
- )),
4013
- (contextType.errorDigest = defaultProps),
4014
- untrackBoundary(request, contextType);
4015
- } finally {
4016
- (task.blockedBoundary = ref),
4017
- (task.hoistableState = parentHoistableState),
4018
- (task.blockedSegment = parentSegment),
4019
- (task.keyPath = prevKeyPath),
4020
- (task.componentStack = previousComponentStack);
4089
+ task = createRenderTask(
4090
+ request,
4091
+ null,
4092
+ props,
4093
+ -1,
4094
+ propName,
4095
+ contentRootSegment,
4096
+ propName.contentState,
4097
+ task.abortSet,
4098
+ keyPath,
4099
+ task.formatContext,
4100
+ task.context,
4101
+ task.treeContext,
4102
+ task.componentStack,
4103
+ task.isFallback
4104
+ );
4105
+ pushComponentStack(task);
4106
+ request.pingedTasks.push(task);
4107
+ } else {
4108
+ task.blockedBoundary = propName;
4109
+ task.hoistableState = propName.contentState;
4110
+ task.blockedSegment = contentRootSegment;
4111
+ task.keyPath = keyPath;
4112
+ contentRootSegment.status = 6;
4113
+ try {
4114
+ if (
4115
+ (renderNode(request, task, props, -1),
4116
+ pushSegmentFinale(
4117
+ contentRootSegment.chunks,
4118
+ request.renderState,
4119
+ contentRootSegment.lastPushedText,
4120
+ contentRootSegment.textEmbedded
4121
+ ),
4122
+ (contentRootSegment.status = 1),
4123
+ queueCompletedSegment(propName, contentRootSegment),
4124
+ 0 === propName.pendingTasks && 0 === propName.status)
4125
+ ) {
4126
+ propName.status = 1;
4127
+ break a;
4128
+ }
4129
+ } catch (thrownValue$28) {
4130
+ (propName.status = 4),
4131
+ 12 === request.status
4132
+ ? ((contentRootSegment.status = 3),
4133
+ (newProps = request.fatalError))
4134
+ : ((contentRootSegment.status = 4),
4135
+ (newProps = thrownValue$28)),
4136
+ (defaultProps = getThrownInfo(task.componentStack)),
4137
+ (initialState = logRecoverableError(
4138
+ request,
4139
+ newProps,
4140
+ defaultProps
4141
+ )),
4142
+ (propName.errorDigest = initialState),
4143
+ untrackBoundary(request, propName);
4144
+ } finally {
4145
+ (task.blockedBoundary = parentBoundary),
4146
+ (task.hoistableState = parentHoistableState),
4147
+ (task.blockedSegment = ref),
4148
+ (task.keyPath = type);
4149
+ }
4150
+ task = createRenderTask(
4151
+ request,
4152
+ null,
4153
+ propName$33,
4154
+ -1,
4155
+ parentBoundary,
4156
+ boundarySegment,
4157
+ propName.fallbackState,
4158
+ fallbackAbortSet,
4159
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
4160
+ task.formatContext,
4161
+ task.context,
4162
+ task.treeContext,
4163
+ task.componentStack,
4164
+ !0
4165
+ );
4166
+ pushComponentStack(task);
4167
+ request.pingedTasks.push(task);
4021
4168
  }
4022
- JSCompiler_inline_result = [
4023
- keyPath[0],
4024
- "Suspense Fallback",
4025
- keyPath[2]
4026
- ];
4027
- defaultProps = request.trackedPostpones;
4028
- null !== defaultProps &&
4029
- ((previousComponentStack = [
4030
- JSCompiler_inline_result[1],
4031
- JSCompiler_inline_result[2],
4032
- [],
4033
- null
4034
- ]),
4035
- defaultProps.workingMap.set(
4036
- JSCompiler_inline_result,
4037
- previousComponentStack
4038
- ),
4039
- 5 === contextType.status
4040
- ? (defaultProps.workingMap.get(keyPath)[4] =
4041
- previousComponentStack)
4042
- : (contextType.trackedFallbackNode = previousComponentStack));
4043
- task = createRenderTask(
4044
- request,
4045
- null,
4046
- propName$31,
4047
- -1,
4048
- ref,
4049
- propName,
4050
- contextType.fallbackState,
4051
- props,
4052
- JSCompiler_inline_result,
4053
- task.formatContext,
4054
- task.legacyContext,
4055
- task.context,
4056
- task.treeContext,
4057
- type,
4058
- !0
4059
- );
4060
- request.pingedTasks.push(task);
4061
4169
  }
4062
4170
  return;
4063
4171
  }
4064
4172
  if ("object" === typeof type && null !== type)
4065
4173
  switch (type.$$typeof) {
4066
4174
  case REACT_FORWARD_REF_TYPE:
4067
- JSCompiler_inline_result = task.componentStack;
4068
- task.componentStack = {
4069
- tag: 1,
4070
- parent: task.componentStack,
4071
- type: type.render
4072
- };
4073
4175
  if ("ref" in props)
4074
- for (contextType in ((defaultProps = {}), props))
4075
- "ref" !== contextType &&
4076
- (defaultProps[contextType] = props[contextType]);
4077
- else defaultProps = props;
4176
+ for (boundarySegment in ((newProps = {}), props))
4177
+ "ref" !== boundarySegment &&
4178
+ (newProps[boundarySegment] = props[boundarySegment]);
4179
+ else newProps = props;
4078
4180
  type = renderWithHooks(
4079
4181
  request,
4080
4182
  task,
4081
4183
  keyPath,
4082
4184
  type.render,
4083
- defaultProps,
4185
+ newProps,
4084
4186
  ref
4085
4187
  );
4086
4188
  finishFunctionComponent(
@@ -4092,7 +4194,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4092
4194
  actionStateCounter,
4093
4195
  actionStateMatchingIndex
4094
4196
  );
4095
- task.componentStack = JSCompiler_inline_result;
4096
4197
  return;
4097
4198
  case REACT_MEMO_TYPE:
4098
4199
  renderElement(request, task, keyPath, type.type, props, ref);
@@ -4100,16 +4201,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
4100
4201
  case REACT_PROVIDER_TYPE:
4101
4202
  case REACT_CONTEXT_TYPE:
4102
4203
  defaultProps = props.children;
4103
- JSCompiler_inline_result = task.keyPath;
4204
+ newProps = task.keyPath;
4104
4205
  props = props.value;
4105
- ref = type._currentValue2;
4206
+ initialState = type._currentValue2;
4106
4207
  type._currentValue2 = props;
4107
- propName$31 = currentActiveSnapshot;
4208
+ ref = currentActiveSnapshot;
4108
4209
  currentActiveSnapshot = type = {
4109
- parent: propName$31,
4110
- depth: null === propName$31 ? 0 : propName$31.depth + 1,
4210
+ parent: ref,
4211
+ depth: null === ref ? 0 : ref.depth + 1,
4111
4212
  context: type,
4112
- parentValue: ref,
4213
+ parentValue: initialState,
4113
4214
  value: props
4114
4215
  };
4115
4216
  task.context = type;
@@ -4123,7 +4224,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4123
4224
  request.context._currentValue2 = request.parentValue;
4124
4225
  request = currentActiveSnapshot = request.parent;
4125
4226
  task.context = request;
4126
- task.keyPath = JSCompiler_inline_result;
4227
+ task.keyPath = newProps;
4127
4228
  return;
4128
4229
  case REACT_CONSUMER_TYPE:
4129
4230
  props = props.children;
@@ -4134,12 +4235,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4134
4235
  task.keyPath = props;
4135
4236
  return;
4136
4237
  case REACT_LAZY_TYPE:
4137
- JSCompiler_inline_result = task.componentStack;
4138
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4139
- defaultProps = type._init;
4140
- type = defaultProps(type._payload);
4141
- renderElement(request, task, keyPath, type, props, void 0);
4142
- task.componentStack = JSCompiler_inline_result;
4238
+ newProps = type._init;
4239
+ type = newProps(type._payload);
4240
+ if (12 === request.status) throw null;
4241
+ renderElement(request, task, keyPath, type, props, ref);
4143
4242
  return;
4144
4243
  }
4145
4244
  throw Error(
@@ -4175,23 +4274,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
4175
4274
  (task.replay = prevReplay), (task.blockedSegment = null);
4176
4275
  }
4177
4276
  }
4178
- function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4179
- if (null !== task.replay && "number" === typeof task.replay.slots)
4180
- resumeNode(request, task, task.replay.slots, node$jscomp$0, childIndex);
4181
- else if (
4182
- ((task.node = node$jscomp$0),
4183
- (task.childIndex = childIndex),
4184
- null !== node$jscomp$0)
4185
- ) {
4186
- if ("object" === typeof node$jscomp$0) {
4187
- switch (node$jscomp$0.$$typeof) {
4277
+ function renderNodeDestructive(request, task, node, childIndex) {
4278
+ null !== task.replay && "number" === typeof task.replay.slots
4279
+ ? resumeNode(request, task, task.replay.slots, node, childIndex)
4280
+ : ((task.node = node),
4281
+ (task.childIndex = childIndex),
4282
+ (node = task.componentStack),
4283
+ pushComponentStack(task),
4284
+ retryNode(request, task),
4285
+ (task.componentStack = node));
4286
+ }
4287
+ function retryNode(request, task) {
4288
+ var node = task.node,
4289
+ childIndex = task.childIndex;
4290
+ if (null !== node) {
4291
+ if ("object" === typeof node) {
4292
+ switch (node.$$typeof) {
4188
4293
  case REACT_ELEMENT_TYPE:
4189
- var type = node$jscomp$0.type,
4190
- key = node$jscomp$0.key,
4191
- props = node$jscomp$0.props;
4192
- node$jscomp$0 = props.ref;
4193
- var ref = void 0 !== node$jscomp$0 ? node$jscomp$0 : null;
4194
- var name = getComponentNameFromType(type),
4294
+ var type = node.type,
4295
+ key = node.key,
4296
+ props = node.props;
4297
+ node = props.ref;
4298
+ var ref = void 0 !== node ? node : null,
4299
+ name = getComponentNameFromType(type),
4195
4300
  keyOrIndex =
4196
4301
  null == key ? (-1 === childIndex ? 0 : childIndex) : key;
4197
4302
  key = [task.keyPath, name, keyOrIndex];
@@ -4199,24 +4304,20 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4199
4304
  a: {
4200
4305
  var replay = task.replay;
4201
4306
  childIndex = replay.nodes;
4202
- for (
4203
- node$jscomp$0 = 0;
4204
- node$jscomp$0 < childIndex.length;
4205
- node$jscomp$0++
4206
- ) {
4207
- var node = childIndex[node$jscomp$0];
4208
- if (keyOrIndex === node[1]) {
4209
- if (4 === node.length) {
4210
- if (null !== name && name !== node[0])
4307
+ for (node = 0; node < childIndex.length; node++) {
4308
+ var node$jscomp$0 = childIndex[node];
4309
+ if (keyOrIndex === node$jscomp$0[1]) {
4310
+ if (4 === node$jscomp$0.length) {
4311
+ if (null !== name && name !== node$jscomp$0[0])
4211
4312
  throw Error(
4212
4313
  "Expected the resume to render <" +
4213
- node[0] +
4314
+ node$jscomp$0[0] +
4214
4315
  "> in this slot but instead it rendered <" +
4215
4316
  name +
4216
4317
  ">. The tree doesn't match so React will fallback to client rendering."
4217
4318
  );
4218
- var childNodes = node[2];
4219
- name = node[3];
4319
+ var childNodes = node$jscomp$0[2];
4320
+ name = node$jscomp$0[3];
4220
4321
  keyOrIndex = task.node;
4221
4322
  task.replay = {
4222
4323
  nodes: childNodes,
@@ -4245,14 +4346,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4245
4346
  x)
4246
4347
  );
4247
4348
  task.replay.pendingTasks--;
4248
- props = getThrownInfo(request, task.componentStack);
4249
- key = request;
4250
- request = task.blockedBoundary;
4349
+ props = getThrownInfo(task.componentStack);
4350
+ key = task.blockedBoundary;
4251
4351
  type = x;
4252
- props = logRecoverableError(key, type, props);
4352
+ props = logRecoverableError(request, type, props);
4253
4353
  abortRemainingReplayNodes(
4254
- key,
4255
4354
  request,
4355
+ key,
4256
4356
  childNodes,
4257
4357
  name,
4258
4358
  type,
@@ -4269,15 +4369,14 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4269
4369
  );
4270
4370
  b: {
4271
4371
  replay = void 0;
4272
- type = node[5];
4273
- ref = node[2];
4274
- name = node[3];
4275
- keyOrIndex = null === node[4] ? [] : node[4][2];
4276
- node = null === node[4] ? null : node[4][3];
4277
- var previousComponentStack = task.componentStack,
4278
- suspenseComponentStack = (task.componentStack =
4279
- createBuiltInComponentStack(task, "Suspense")),
4280
- prevKeyPath = task.keyPath,
4372
+ type = node$jscomp$0[5];
4373
+ ref = node$jscomp$0[2];
4374
+ name = node$jscomp$0[3];
4375
+ keyOrIndex =
4376
+ null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4377
+ node$jscomp$0 =
4378
+ null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4379
+ var prevKeyPath = task.keyPath,
4281
4380
  previousReplaySet = task.replay,
4282
4381
  parentBoundary = task.blockedBoundary,
4283
4382
  parentHoistableState = task.hoistableState,
@@ -4292,6 +4391,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4292
4391
  resumedBoundary.rootSegmentID = type;
4293
4392
  task.blockedBoundary = resumedBoundary;
4294
4393
  task.hoistableState = resumedBoundary.contentState;
4394
+ task.keyPath = key;
4295
4395
  task.replay = {
4296
4396
  nodes: ref,
4297
4397
  slots: name,
@@ -4317,10 +4417,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4317
4417
  }
4318
4418
  } catch (error) {
4319
4419
  (resumedBoundary.status = 4),
4320
- (childNodes = getThrownInfo(
4321
- request,
4322
- task.componentStack
4323
- )),
4420
+ (childNodes = getThrownInfo(task.componentStack)),
4324
4421
  (replay = logRecoverableError(
4325
4422
  request,
4326
4423
  error,
@@ -4335,13 +4432,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4335
4432
  (task.blockedBoundary = parentBoundary),
4336
4433
  (task.hoistableState = parentHoistableState),
4337
4434
  (task.replay = previousReplaySet),
4338
- (task.keyPath = prevKeyPath),
4339
- (task.componentStack = previousComponentStack);
4435
+ (task.keyPath = prevKeyPath);
4340
4436
  }
4341
4437
  task = createReplayTask(
4342
4438
  request,
4343
4439
  null,
4344
- { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
4440
+ {
4441
+ nodes: keyOrIndex,
4442
+ slots: node$jscomp$0,
4443
+ pendingTasks: 0
4444
+ },
4345
4445
  props,
4346
4446
  -1,
4347
4447
  parentBoundary,
@@ -4349,16 +4449,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4349
4449
  fallbackAbortSet,
4350
4450
  [key[0], "Suspense Fallback", key[2]],
4351
4451
  task.formatContext,
4352
- task.legacyContext,
4353
4452
  task.context,
4354
4453
  task.treeContext,
4355
- suspenseComponentStack,
4454
+ task.componentStack,
4356
4455
  !0
4357
4456
  );
4457
+ pushComponentStack(task);
4358
4458
  request.pingedTasks.push(task);
4359
4459
  }
4360
4460
  }
4361
- childIndex.splice(node$jscomp$0, 1);
4461
+ childIndex.splice(node, 1);
4362
4462
  break a;
4363
4463
  }
4364
4464
  }
@@ -4370,80 +4470,68 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4370
4470
  "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
4371
4471
  );
4372
4472
  case REACT_LAZY_TYPE:
4373
- childNodes = task.componentStack;
4374
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4375
- props = node$jscomp$0._init;
4376
- node$jscomp$0 = props(node$jscomp$0._payload);
4377
- task.componentStack = childNodes;
4378
- renderNodeDestructive(request, task, node$jscomp$0, childIndex);
4473
+ childNodes = node._init;
4474
+ node = childNodes(node._payload);
4475
+ if (12 === request.status) throw null;
4476
+ renderNodeDestructive(request, task, node, childIndex);
4379
4477
  return;
4380
4478
  }
4381
- if (isArrayImpl(node$jscomp$0)) {
4382
- renderChildrenArray(request, task, node$jscomp$0, childIndex);
4479
+ if (isArrayImpl(node)) {
4480
+ renderChildrenArray(request, task, node, childIndex);
4383
4481
  return;
4384
4482
  }
4385
- null === node$jscomp$0 || "object" !== typeof node$jscomp$0
4483
+ null === node || "object" !== typeof node
4386
4484
  ? (childNodes = null)
4387
4485
  : ((childNodes =
4388
- (MAYBE_ITERATOR_SYMBOL && node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
4389
- node$jscomp$0["@@iterator"]),
4486
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
4487
+ node["@@iterator"]),
4390
4488
  (childNodes = "function" === typeof childNodes ? childNodes : null));
4391
- if (childNodes && (childNodes = childNodes.call(node$jscomp$0))) {
4392
- node$jscomp$0 = childNodes.next();
4393
- if (!node$jscomp$0.done) {
4489
+ if (childNodes && (childNodes = childNodes.call(node))) {
4490
+ node = childNodes.next();
4491
+ if (!node.done) {
4394
4492
  props = [];
4395
- do
4396
- props.push(node$jscomp$0.value),
4397
- (node$jscomp$0 = childNodes.next());
4398
- while (!node$jscomp$0.done);
4493
+ do props.push(node.value), (node = childNodes.next());
4494
+ while (!node.done);
4399
4495
  renderChildrenArray(request, task, props, childIndex);
4400
4496
  }
4401
4497
  return;
4402
4498
  }
4403
- if ("function" === typeof node$jscomp$0.then)
4499
+ if ("function" === typeof node.then)
4404
4500
  return (
4405
4501
  (task.thenableState = null),
4406
- renderNodeDestructive(
4407
- request,
4408
- task,
4409
- unwrapThenable(node$jscomp$0),
4410
- childIndex
4411
- )
4502
+ renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
4412
4503
  );
4413
- if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
4504
+ if (node.$$typeof === REACT_CONTEXT_TYPE)
4414
4505
  return renderNodeDestructive(
4415
4506
  request,
4416
4507
  task,
4417
- node$jscomp$0._currentValue2,
4508
+ node._currentValue2,
4418
4509
  childIndex
4419
4510
  );
4420
- childIndex = Object.prototype.toString.call(node$jscomp$0);
4511
+ childIndex = Object.prototype.toString.call(node);
4421
4512
  throw Error(
4422
4513
  "Objects are not valid as a React child (found: " +
4423
4514
  ("[object Object]" === childIndex
4424
- ? "object with keys {" + Object.keys(node$jscomp$0).join(", ") + "}"
4515
+ ? "object with keys {" + Object.keys(node).join(", ") + "}"
4425
4516
  : childIndex) +
4426
4517
  "). If you meant to render a collection of children, use an array instead."
4427
4518
  );
4428
4519
  }
4429
- if ("string" === typeof node$jscomp$0)
4520
+ if ("string" === typeof node)
4430
4521
  (childIndex = task.blockedSegment),
4431
4522
  null !== childIndex &&
4432
4523
  (childIndex.lastPushedText = pushTextInstance(
4433
4524
  childIndex.chunks,
4434
- node$jscomp$0,
4525
+ node,
4435
4526
  request.renderState,
4436
4527
  childIndex.lastPushedText
4437
4528
  ));
4438
- else if (
4439
- "number" === typeof node$jscomp$0 ||
4440
- "bigint" === typeof node$jscomp$0
4441
- )
4529
+ else if ("number" === typeof node || "bigint" === typeof node)
4442
4530
  (childIndex = task.blockedSegment),
4443
4531
  null !== childIndex &&
4444
4532
  (childIndex.lastPushedText = pushTextInstance(
4445
4533
  childIndex.chunks,
4446
- "" + node$jscomp$0,
4534
+ "" + node,
4447
4535
  request.renderState,
4448
4536
  childIndex.lastPushedText
4449
4537
  ));
@@ -4481,7 +4569,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4481
4569
  )
4482
4570
  throw x;
4483
4571
  task.replay.pendingTasks--;
4484
- children = getThrownInfo(request, task.componentStack);
4572
+ children = getThrownInfo(task.componentStack);
4485
4573
  var boundary = task.blockedBoundary,
4486
4574
  error = x;
4487
4575
  children = logRecoverableError(request, error, children);
@@ -4536,9 +4624,55 @@ function untrackBoundary(request, boundary) {
4536
4624
  void 0 !== boundary &&
4537
4625
  ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
4538
4626
  }
4627
+ function spawnNewSuspendedReplayTask(request, task, thenableState) {
4628
+ return createReplayTask(
4629
+ request,
4630
+ thenableState,
4631
+ task.replay,
4632
+ task.node,
4633
+ task.childIndex,
4634
+ task.blockedBoundary,
4635
+ task.hoistableState,
4636
+ task.abortSet,
4637
+ task.keyPath,
4638
+ task.formatContext,
4639
+ task.context,
4640
+ task.treeContext,
4641
+ task.componentStack,
4642
+ task.isFallback
4643
+ );
4644
+ }
4645
+ function spawnNewSuspendedRenderTask(request, task, thenableState) {
4646
+ var segment = task.blockedSegment,
4647
+ newSegment = createPendingSegment(
4648
+ request,
4649
+ segment.chunks.length,
4650
+ null,
4651
+ task.formatContext,
4652
+ segment.lastPushedText,
4653
+ !0
4654
+ );
4655
+ segment.children.push(newSegment);
4656
+ segment.lastPushedText = !1;
4657
+ return createRenderTask(
4658
+ request,
4659
+ thenableState,
4660
+ task.node,
4661
+ task.childIndex,
4662
+ task.blockedBoundary,
4663
+ newSegment,
4664
+ task.hoistableState,
4665
+ task.abortSet,
4666
+ task.keyPath,
4667
+ task.formatContext,
4668
+ task.context,
4669
+ task.treeContext,
4670
+ task.componentStack,
4671
+ task.isFallback
4672
+ );
4673
+ }
4539
4674
  function renderNode(request, task, node, childIndex) {
4540
4675
  var previousFormatContext = task.formatContext,
4541
- previousLegacyContext = task.legacyContext,
4542
4676
  previousContext = task.context,
4543
4677
  previousKeyPath = task.keyPath,
4544
4678
  previousTreeContext = task.treeContext,
@@ -4554,37 +4688,32 @@ function renderNode(request, task, node, childIndex) {
4554
4688
  thrownValue === SuspenseException
4555
4689
  ? getSuspendedThenable()
4556
4690
  : thrownValue),
4557
- "object" === typeof node &&
4558
- null !== node &&
4559
- "function" === typeof node.then)
4691
+ "object" === typeof node && null !== node)
4560
4692
  ) {
4561
- childIndex = getThenableStateAfterSuspending();
4562
- request = createReplayTask(
4563
- request,
4564
- childIndex,
4565
- task.replay,
4566
- task.node,
4567
- task.childIndex,
4568
- task.blockedBoundary,
4569
- task.hoistableState,
4570
- task.abortSet,
4571
- task.keyPath,
4572
- task.formatContext,
4573
- task.legacyContext,
4574
- task.context,
4575
- task.treeContext,
4576
- null !== task.componentStack ? task.componentStack.parent : null,
4577
- task.isFallback
4578
- ).ping;
4579
- node.then(request, request);
4580
- task.formatContext = previousFormatContext;
4581
- task.legacyContext = previousLegacyContext;
4582
- task.context = previousContext;
4583
- task.keyPath = previousKeyPath;
4584
- task.treeContext = previousTreeContext;
4585
- task.componentStack = previousComponentStack;
4586
- switchContext(previousContext);
4587
- return;
4693
+ if ("function" === typeof node.then) {
4694
+ childIndex = getThenableStateAfterSuspending();
4695
+ request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
4696
+ node.then(request, request);
4697
+ task.formatContext = previousFormatContext;
4698
+ task.context = previousContext;
4699
+ task.keyPath = previousKeyPath;
4700
+ task.treeContext = previousTreeContext;
4701
+ task.componentStack = previousComponentStack;
4702
+ switchContext(previousContext);
4703
+ return;
4704
+ }
4705
+ if ("Maximum call stack size exceeded" === node.message) {
4706
+ node = getThenableStateAfterSuspending();
4707
+ node = spawnNewSuspendedReplayTask(request, task, node);
4708
+ request.pingedTasks.push(node);
4709
+ task.formatContext = previousFormatContext;
4710
+ task.context = previousContext;
4711
+ task.keyPath = previousKeyPath;
4712
+ task.treeContext = previousTreeContext;
4713
+ task.componentStack = previousComponentStack;
4714
+ switchContext(previousContext);
4715
+ return;
4716
+ }
4588
4717
  }
4589
4718
  }
4590
4719
  else {
@@ -4592,62 +4721,45 @@ function renderNode(request, task, node, childIndex) {
4592
4721
  chunkLength = segment.chunks.length;
4593
4722
  try {
4594
4723
  return renderNodeDestructive(request, task, node, childIndex);
4595
- } catch (thrownValue$40) {
4724
+ } catch (thrownValue$48) {
4596
4725
  if (
4597
4726
  (resetHooksState(),
4598
4727
  (segment.children.length = childrenLength),
4599
4728
  (segment.chunks.length = chunkLength),
4600
4729
  (node =
4601
- thrownValue$40 === SuspenseException
4730
+ thrownValue$48 === SuspenseException
4602
4731
  ? getSuspendedThenable()
4603
- : thrownValue$40),
4604
- "object" === typeof node &&
4605
- null !== node &&
4606
- "function" === typeof node.then)
4732
+ : thrownValue$48),
4733
+ "object" === typeof node && null !== node)
4607
4734
  ) {
4608
- childIndex = getThenableStateAfterSuspending();
4609
- segment = task.blockedSegment;
4610
- childrenLength = createPendingSegment(
4611
- request,
4612
- segment.chunks.length,
4613
- null,
4614
- task.formatContext,
4615
- segment.lastPushedText,
4616
- !0
4617
- );
4618
- segment.children.push(childrenLength);
4619
- segment.lastPushedText = !1;
4620
- request = createRenderTask(
4621
- request,
4622
- childIndex,
4623
- task.node,
4624
- task.childIndex,
4625
- task.blockedBoundary,
4626
- childrenLength,
4627
- task.hoistableState,
4628
- task.abortSet,
4629
- task.keyPath,
4630
- task.formatContext,
4631
- task.legacyContext,
4632
- task.context,
4633
- task.treeContext,
4634
- null !== task.componentStack ? task.componentStack.parent : null,
4635
- task.isFallback
4636
- ).ping;
4637
- node.then(request, request);
4638
- task.formatContext = previousFormatContext;
4639
- task.legacyContext = previousLegacyContext;
4640
- task.context = previousContext;
4641
- task.keyPath = previousKeyPath;
4642
- task.treeContext = previousTreeContext;
4643
- task.componentStack = previousComponentStack;
4644
- switchContext(previousContext);
4645
- return;
4735
+ if ("function" === typeof node.then) {
4736
+ childIndex = getThenableStateAfterSuspending();
4737
+ request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
4738
+ node.then(request, request);
4739
+ task.formatContext = previousFormatContext;
4740
+ task.context = previousContext;
4741
+ task.keyPath = previousKeyPath;
4742
+ task.treeContext = previousTreeContext;
4743
+ task.componentStack = previousComponentStack;
4744
+ switchContext(previousContext);
4745
+ return;
4746
+ }
4747
+ if ("Maximum call stack size exceeded" === node.message) {
4748
+ node = getThenableStateAfterSuspending();
4749
+ node = spawnNewSuspendedRenderTask(request, task, node);
4750
+ request.pingedTasks.push(node);
4751
+ task.formatContext = previousFormatContext;
4752
+ task.context = previousContext;
4753
+ task.keyPath = previousKeyPath;
4754
+ task.treeContext = previousTreeContext;
4755
+ task.componentStack = previousComponentStack;
4756
+ switchContext(previousContext);
4757
+ return;
4758
+ }
4646
4759
  }
4647
4760
  }
4648
4761
  }
4649
4762
  task.formatContext = previousFormatContext;
4650
- task.legacyContext = previousLegacyContext;
4651
4763
  task.context = previousContext;
4652
4764
  task.keyPath = previousKeyPath;
4653
4765
  task.treeContext = previousTreeContext;
@@ -4708,26 +4820,30 @@ function abortRemainingReplayNodes(
4708
4820
  function abortTask(task, request, error) {
4709
4821
  var boundary = task.blockedBoundary,
4710
4822
  segment = task.blockedSegment;
4711
- null !== segment && (segment.status = 3);
4823
+ if (null !== segment) {
4824
+ if (6 === segment.status) return;
4825
+ segment.status = 3;
4826
+ }
4827
+ segment = getThrownInfo(task.componentStack);
4712
4828
  if (null === boundary) {
4713
- if (((boundary = {}), 1 !== request.status && 2 !== request.status)) {
4714
- task = task.replay;
4715
- if (null === task) {
4716
- logRecoverableError(request, error, boundary);
4829
+ if (13 !== request.status && 14 !== request.status) {
4830
+ boundary = task.replay;
4831
+ if (null === boundary) {
4832
+ logRecoverableError(request, error, segment);
4717
4833
  fatalError(request, error);
4718
4834
  return;
4719
4835
  }
4720
- task.pendingTasks--;
4721
- 0 === task.pendingTasks &&
4722
- 0 < task.nodes.length &&
4723
- ((boundary = logRecoverableError(request, error, boundary)),
4836
+ boundary.pendingTasks--;
4837
+ 0 === boundary.pendingTasks &&
4838
+ 0 < boundary.nodes.length &&
4839
+ ((task = logRecoverableError(request, error, segment)),
4724
4840
  abortRemainingReplayNodes(
4725
4841
  request,
4726
4842
  null,
4727
- task.nodes,
4728
- task.slots,
4843
+ boundary.nodes,
4844
+ boundary.slots,
4729
4845
  error,
4730
- boundary
4846
+ task
4731
4847
  ));
4732
4848
  request.pendingRootTasks--;
4733
4849
  0 === request.pendingRootTasks && completeShell(request);
@@ -4736,8 +4852,8 @@ function abortTask(task, request, error) {
4736
4852
  boundary.pendingTasks--,
4737
4853
  4 !== boundary.status &&
4738
4854
  ((boundary.status = 4),
4739
- (task = getThrownInfo(request, task.componentStack)),
4740
- (task = logRecoverableError(request, error, task)),
4855
+ (task = logRecoverableError(request, error, segment)),
4856
+ (boundary.status = 4),
4741
4857
  (boundary.errorDigest = task),
4742
4858
  untrackBoundary(request, boundary),
4743
4859
  boundary.parentFlushed &&
@@ -4791,7 +4907,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
4791
4907
  referrerPolicy: props$jscomp$0.referrerPolicy,
4792
4908
  media: props$jscomp$0.media
4793
4909
  });
4794
- if (2 <= (headers.remainingCapacity -= header.length))
4910
+ if (0 <= (headers.remainingCapacity -= header.length + 2))
4795
4911
  (renderState.resets.style[key] = PRELOAD_NO_CREDS),
4796
4912
  linkHeader && (linkHeader += ", "),
4797
4913
  (linkHeader += header),
@@ -4876,7 +4992,7 @@ function finishedTask(request, boundary, segment) {
4876
4992
  0 === request.allPendingTasks && completeAll(request);
4877
4993
  }
4878
4994
  function performWork(request$jscomp$2) {
4879
- if (2 !== request$jscomp$2.status) {
4995
+ if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
4880
4996
  var prevContext = currentActiveSnapshot,
4881
4997
  prevDispatcher = ReactSharedInternals.H;
4882
4998
  ReactSharedInternals.H = HooksDispatcher;
@@ -4898,12 +5014,15 @@ function performWork(request$jscomp$2) {
4898
5014
  if (0 !== task.replay.pendingTasks) {
4899
5015
  switchContext(task.context);
4900
5016
  try {
4901
- renderNodeDestructive(
4902
- request$jscomp$0,
4903
- task,
4904
- task.node,
4905
- task.childIndex
4906
- );
5017
+ "number" === typeof task.replay.slots
5018
+ ? resumeNode(
5019
+ request$jscomp$0,
5020
+ task,
5021
+ task.replay.slots,
5022
+ task.node,
5023
+ task.childIndex
5024
+ )
5025
+ : retryNode(request$jscomp$0, task);
4907
5026
  if (
4908
5027
  1 === task.replay.pendingTasks &&
4909
5028
  0 < task.replay.nodes.length
@@ -4928,19 +5047,17 @@ function performWork(request$jscomp$2) {
4928
5047
  var ping = task.ping;
4929
5048
  x.then(ping, ping);
4930
5049
  task.thenableState = getThenableStateAfterSuspending();
4931
- null !== task.componentStack &&
4932
- (task.componentStack = task.componentStack.parent);
4933
5050
  } else {
4934
5051
  task.replay.pendingTasks--;
4935
5052
  task.abortSet.delete(task);
4936
- var errorInfo = getThrownInfo(
4937
- request$jscomp$0,
4938
- task.componentStack
4939
- );
5053
+ var errorInfo = getThrownInfo(task.componentStack);
4940
5054
  request = void 0;
4941
5055
  var request$jscomp$1 = request$jscomp$0,
4942
5056
  boundary = task.blockedBoundary,
4943
- error$jscomp$0 = x,
5057
+ error$jscomp$0 =
5058
+ 12 === request$jscomp$0.status
5059
+ ? request$jscomp$0.fatalError
5060
+ : x,
4944
5061
  replayNodes = task.replay.nodes,
4945
5062
  resumeSlots = task.replay.slots;
4946
5063
  request = logRecoverableError(
@@ -4971,15 +5088,18 @@ function performWork(request$jscomp$2) {
4971
5088
  (request$jscomp$1 = segment),
4972
5089
  0 === request$jscomp$1.status)
4973
5090
  ) {
5091
+ request$jscomp$1.status = 6;
4974
5092
  switchContext(task.context);
4975
5093
  var childrenLength = request$jscomp$1.children.length,
4976
5094
  chunkLength = request$jscomp$1.chunks.length;
4977
5095
  try {
4978
- renderNodeDestructive(request, task, task.node, task.childIndex),
4979
- request.renderState.generateStaticMarkup ||
4980
- (request$jscomp$1.lastPushedText &&
4981
- request$jscomp$1.textEmbedded &&
4982
- request$jscomp$1.chunks.push("\x3c!-- --\x3e")),
5096
+ retryNode(request, task),
5097
+ pushSegmentFinale(
5098
+ request$jscomp$1.chunks,
5099
+ request.renderState,
5100
+ request$jscomp$1.lastPushedText,
5101
+ request$jscomp$1.textEmbedded
5102
+ ),
4983
5103
  task.abortSet.delete(task),
4984
5104
  (request$jscomp$1.status = 1),
4985
5105
  finishedTask(request, task.blockedBoundary, request$jscomp$1);
@@ -4990,22 +5110,20 @@ function performWork(request$jscomp$2) {
4990
5110
  var x$jscomp$0 =
4991
5111
  thrownValue === SuspenseException
4992
5112
  ? getSuspendedThenable()
4993
- : thrownValue;
5113
+ : 12 === request.status
5114
+ ? request.fatalError
5115
+ : thrownValue;
4994
5116
  if (
4995
5117
  "object" === typeof x$jscomp$0 &&
4996
5118
  null !== x$jscomp$0 &&
4997
5119
  "function" === typeof x$jscomp$0.then
4998
5120
  ) {
5121
+ request$jscomp$1.status = 0;
5122
+ task.thenableState = getThenableStateAfterSuspending();
4999
5123
  var ping$jscomp$0 = task.ping;
5000
5124
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
5001
- task.thenableState = getThenableStateAfterSuspending();
5002
- null !== task.componentStack &&
5003
- (task.componentStack = task.componentStack.parent);
5004
5125
  } else {
5005
- var errorInfo$jscomp$0 = getThrownInfo(
5006
- request,
5007
- task.componentStack
5008
- );
5126
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5009
5127
  task.abortSet.delete(task);
5010
5128
  request$jscomp$1.status = 4;
5011
5129
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5200,17 +5318,17 @@ function flushCompletedBoundary(request, destination, boundary) {
5200
5318
  '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);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 d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.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("'
5201
5319
  ))
5202
5320
  : 0 === (completedSegments.instructions & 8)
5203
- ? ((completedSegments.instructions |= 8),
5321
+ ? ((completedSegments.instructions |= 8),
5322
+ destination.push(
5323
+ '$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("'
5324
+ ))
5325
+ : destination.push('$RR("')
5326
+ : 0 === (completedSegments.instructions & 2)
5327
+ ? ((completedSegments.instructions |= 2),
5204
5328
  destination.push(
5205
- '$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("'
5329
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);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 d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5206
5330
  ))
5207
- : destination.push('$RR("')
5208
- : 0 === (completedSegments.instructions & 2)
5209
- ? ((completedSegments.instructions |= 2),
5210
- destination.push(
5211
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);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 d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5212
- ))
5213
- : destination.push('$RC("');
5331
+ : destination.push('$RC("');
5214
5332
  completedSegments = i.toString(16);
5215
5333
  destination.push(request.boundaryPrefix);
5216
5334
  destination.push(completedSegments);
@@ -5403,11 +5521,11 @@ function flushCompletedQueues(request, destination) {
5403
5521
  completedBoundaries.splice(0, i);
5404
5522
  var partialBoundaries = request.partialBoundaries;
5405
5523
  for (i = 0; i < partialBoundaries.length; i++) {
5406
- var boundary$44 = partialBoundaries[i];
5524
+ var boundary$51 = partialBoundaries[i];
5407
5525
  a: {
5408
5526
  clientRenderedBoundaries = request;
5409
5527
  boundary = destination;
5410
- var completedSegments = boundary$44.completedSegments;
5528
+ var completedSegments = boundary$51.completedSegments;
5411
5529
  for (
5412
5530
  JSCompiler_inline_result = 0;
5413
5531
  JSCompiler_inline_result < completedSegments.length;
@@ -5417,7 +5535,7 @@ function flushCompletedQueues(request, destination) {
5417
5535
  !flushPartiallyCompletedSegment(
5418
5536
  clientRenderedBoundaries,
5419
5537
  boundary,
5420
- boundary$44,
5538
+ boundary$51,
5421
5539
  completedSegments[JSCompiler_inline_result]
5422
5540
  )
5423
5541
  ) {
@@ -5429,7 +5547,7 @@ function flushCompletedQueues(request, destination) {
5429
5547
  completedSegments.splice(0, JSCompiler_inline_result);
5430
5548
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
5431
5549
  boundary,
5432
- boundary$44.contentState,
5550
+ boundary$51.contentState,
5433
5551
  clientRenderedBoundaries.renderState
5434
5552
  );
5435
5553
  }
@@ -5462,6 +5580,7 @@ function flushCompletedQueues(request, destination) {
5462
5580
  ((partialBoundaries = endChunkForTag("body")),
5463
5581
  destination.push(partialBoundaries)),
5464
5582
  i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
5583
+ (request.status = 14),
5465
5584
  destination.push(null),
5466
5585
  (request.destination = null));
5467
5586
  }
@@ -5480,9 +5599,9 @@ function enqueueFlush(request) {
5480
5599
  }
5481
5600
  }
5482
5601
  function startFlowing(request, destination) {
5483
- if (1 === request.status)
5484
- (request.status = 2), destination.destroy(request.fatalError);
5485
- else if (2 !== request.status && null === request.destination) {
5602
+ if (13 === request.status)
5603
+ (request.status = 14), destination.destroy(request.fatalError);
5604
+ else if (14 !== request.status && null === request.destination) {
5486
5605
  request.destination = destination;
5487
5606
  try {
5488
5607
  flushCompletedQueues(request, destination);
@@ -5492,13 +5611,19 @@ function startFlowing(request, destination) {
5492
5611
  }
5493
5612
  }
5494
5613
  function abort(request, reason) {
5614
+ if (11 === request.status || 10 === request.status) request.status = 12;
5495
5615
  try {
5496
5616
  var abortableTasks = request.abortableTasks;
5497
5617
  if (0 < abortableTasks.size) {
5498
5618
  var error =
5499
5619
  void 0 === reason
5500
5620
  ? Error("The render was aborted by the server without a reason.")
5501
- : reason;
5621
+ : "object" === typeof reason &&
5622
+ null !== reason &&
5623
+ "function" === typeof reason.then
5624
+ ? Error("The render was aborted by the server with a promise.")
5625
+ : reason;
5626
+ request.fatalError = error;
5502
5627
  abortableTasks.forEach(function (task) {
5503
5628
  return abortTask(task, request, error);
5504
5629
  });
@@ -5506,8 +5631,8 @@ function abort(request, reason) {
5506
5631
  }
5507
5632
  null !== request.destination &&
5508
5633
  flushCompletedQueues(request, request.destination);
5509
- } catch (error$46) {
5510
- logRecoverableError(request, error$46, {}), fatalError(request, error$46);
5634
+ } catch (error$53) {
5635
+ logRecoverableError(request, error$53, {}), fatalError(request, error$53);
5511
5636
  }
5512
5637
  }
5513
5638
  function onError() {}
@@ -5539,6 +5664,7 @@ function renderToStringImpl(
5539
5664
  );
5540
5665
  children.flushScheduled = null !== children.destination;
5541
5666
  performWork(children);
5667
+ 10 === children.status && (children.status = 11);
5542
5668
  null === children.trackedPostpones &&
5543
5669
  safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
5544
5670
  abort(children, abortReason);
@@ -5575,4 +5701,4 @@ exports.renderToString = function (children, options) {
5575
5701
  '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'
5576
5702
  );
5577
5703
  };
5578
- exports.version = "19.0.0-rc-fb9a90fa48-20240614";
5704
+ exports.version = "19.0.0";