react-dom 19.0.0-rc.0 → 19.0.0

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.
@@ -368,12 +368,12 @@ function getChildFormatContext(parentContext, type, props) {
368
368
  return 5 <= parentContext.insertionMode
369
369
  ? createFormatContext(2, null, parentContext.tagScope)
370
370
  : 0 === parentContext.insertionMode
371
- ? "html" === type
372
- ? createFormatContext(1, null, parentContext.tagScope)
373
- : createFormatContext(2, null, parentContext.tagScope)
374
- : 1 === parentContext.insertionMode
375
- ? createFormatContext(2, null, parentContext.tagScope)
376
- : parentContext;
371
+ ? "html" === type
372
+ ? createFormatContext(1, null, parentContext.tagScope)
373
+ : createFormatContext(2, null, parentContext.tagScope)
374
+ : 1 === parentContext.insertionMode
375
+ ? createFormatContext(2, null, parentContext.tagScope)
376
+ : parentContext;
377
377
  }
378
378
  var styleNameCache = new Map();
379
379
  function pushStyleAttribute(target, style) {
@@ -1250,22 +1250,64 @@ function pushStartInstance(
1250
1250
  }
1251
1251
  target$jscomp$0.push(">");
1252
1252
  return null;
1253
+ case "object":
1254
+ target$jscomp$0.push(startChunkForTag("object"));
1255
+ var children$jscomp$5 = null,
1256
+ innerHTML$jscomp$4 = null,
1257
+ propKey$jscomp$7;
1258
+ for (propKey$jscomp$7 in props)
1259
+ if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1260
+ var propValue$jscomp$7 = props[propKey$jscomp$7];
1261
+ if (null != propValue$jscomp$7)
1262
+ switch (propKey$jscomp$7) {
1263
+ case "children":
1264
+ children$jscomp$5 = propValue$jscomp$7;
1265
+ break;
1266
+ case "dangerouslySetInnerHTML":
1267
+ innerHTML$jscomp$4 = propValue$jscomp$7;
1268
+ break;
1269
+ case "data":
1270
+ var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
1271
+ if ("" === sanitizedValue) break;
1272
+ target$jscomp$0.push(
1273
+ " ",
1274
+ "data",
1275
+ '="',
1276
+ escapeTextForBrowser(sanitizedValue),
1277
+ '"'
1278
+ );
1279
+ break;
1280
+ default:
1281
+ pushAttribute(
1282
+ target$jscomp$0,
1283
+ propKey$jscomp$7,
1284
+ propValue$jscomp$7
1285
+ );
1286
+ }
1287
+ }
1288
+ target$jscomp$0.push(">");
1289
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1290
+ if ("string" === typeof children$jscomp$5) {
1291
+ target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
1292
+ var JSCompiler_inline_result$jscomp$2 = null;
1293
+ } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
1294
+ return JSCompiler_inline_result$jscomp$2;
1253
1295
  case "title":
1254
1296
  if (
1255
1297
  3 === formatContext.insertionMode ||
1256
1298
  formatContext.tagScope & 1 ||
1257
1299
  null != props.itemProp
1258
1300
  )
1259
- var JSCompiler_inline_result$jscomp$2 = pushTitleImpl(
1301
+ var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
1260
1302
  target$jscomp$0,
1261
1303
  props
1262
1304
  );
1263
1305
  else
1264
1306
  isFallback
1265
- ? (JSCompiler_inline_result$jscomp$2 = null)
1307
+ ? (JSCompiler_inline_result$jscomp$3 = null)
1266
1308
  : (pushTitleImpl(renderState.hoistableChunks, props),
1267
- (JSCompiler_inline_result$jscomp$2 = void 0));
1268
- return JSCompiler_inline_result$jscomp$2;
1309
+ (JSCompiler_inline_result$jscomp$3 = void 0));
1310
+ return JSCompiler_inline_result$jscomp$3;
1269
1311
  case "link":
1270
1312
  var rel = props.rel,
1271
1313
  href = props.href,
@@ -1279,7 +1321,7 @@ function pushStartInstance(
1279
1321
  "" === href
1280
1322
  ) {
1281
1323
  pushLinkImpl(target$jscomp$0, props);
1282
- var JSCompiler_inline_result$jscomp$3 = null;
1324
+ var JSCompiler_inline_result$jscomp$4 = null;
1283
1325
  } else if ("stylesheet" === props.rel)
1284
1326
  if (
1285
1327
  "string" !== typeof precedence ||
@@ -1287,7 +1329,7 @@ function pushStartInstance(
1287
1329
  props.onLoad ||
1288
1330
  props.onError
1289
1331
  )
1290
- JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1332
+ JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1291
1333
  target$jscomp$0,
1292
1334
  props
1293
1335
  );
@@ -1330,19 +1372,19 @@ function pushStartInstance(
1330
1372
  hoistableState.stylesheets.add(resource$9);
1331
1373
  }
1332
1374
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1333
- JSCompiler_inline_result$jscomp$3 = null;
1375
+ JSCompiler_inline_result$jscomp$4 = null;
1334
1376
  }
1335
1377
  else
1336
1378
  props.onLoad || props.onError
1337
- ? (JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1379
+ ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1338
1380
  target$jscomp$0,
1339
1381
  props
1340
1382
  ))
1341
1383
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1342
- (JSCompiler_inline_result$jscomp$3 = isFallback
1384
+ (JSCompiler_inline_result$jscomp$4 = isFallback
1343
1385
  ? null
1344
1386
  : pushLinkImpl(renderState.hoistableChunks, props)));
1345
- return JSCompiler_inline_result$jscomp$3;
1387
+ return JSCompiler_inline_result$jscomp$4;
1346
1388
  case "script":
1347
1389
  var asyncProp = props.async;
1348
1390
  if (
@@ -1357,7 +1399,7 @@ function pushStartInstance(
1357
1399
  formatContext.tagScope & 1 ||
1358
1400
  null != props.itemProp
1359
1401
  )
1360
- var JSCompiler_inline_result$jscomp$4 = pushScriptImpl(
1402
+ var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
1361
1403
  target$jscomp$0,
1362
1404
  props
1363
1405
  );
@@ -1387,9 +1429,9 @@ function pushStartInstance(
1387
1429
  pushScriptImpl(resource$jscomp$0, scriptProps);
1388
1430
  }
1389
1431
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1390
- JSCompiler_inline_result$jscomp$4 = null;
1432
+ JSCompiler_inline_result$jscomp$5 = null;
1391
1433
  }
1392
- return JSCompiler_inline_result$jscomp$4;
1434
+ return JSCompiler_inline_result$jscomp$5;
1393
1435
  case "style":
1394
1436
  var precedence$jscomp$0 = props.precedence,
1395
1437
  href$jscomp$0 = props.href;
@@ -1402,42 +1444,42 @@ function pushStartInstance(
1402
1444
  "" === href$jscomp$0
1403
1445
  ) {
1404
1446
  target$jscomp$0.push(startChunkForTag("style"));
1405
- var children$jscomp$5 = null,
1406
- innerHTML$jscomp$4 = null,
1407
- propKey$jscomp$7;
1408
- for (propKey$jscomp$7 in props)
1409
- if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1410
- var propValue$jscomp$7 = props[propKey$jscomp$7];
1411
- if (null != propValue$jscomp$7)
1412
- switch (propKey$jscomp$7) {
1447
+ var children$jscomp$6 = null,
1448
+ innerHTML$jscomp$5 = null,
1449
+ propKey$jscomp$8;
1450
+ for (propKey$jscomp$8 in props)
1451
+ if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1452
+ var propValue$jscomp$8 = props[propKey$jscomp$8];
1453
+ if (null != propValue$jscomp$8)
1454
+ switch (propKey$jscomp$8) {
1413
1455
  case "children":
1414
- children$jscomp$5 = propValue$jscomp$7;
1456
+ children$jscomp$6 = propValue$jscomp$8;
1415
1457
  break;
1416
1458
  case "dangerouslySetInnerHTML":
1417
- innerHTML$jscomp$4 = propValue$jscomp$7;
1459
+ innerHTML$jscomp$5 = propValue$jscomp$8;
1418
1460
  break;
1419
1461
  default:
1420
1462
  pushAttribute(
1421
1463
  target$jscomp$0,
1422
- propKey$jscomp$7,
1423
- propValue$jscomp$7
1464
+ propKey$jscomp$8,
1465
+ propValue$jscomp$8
1424
1466
  );
1425
1467
  }
1426
1468
  }
1427
1469
  target$jscomp$0.push(">");
1428
- var child = Array.isArray(children$jscomp$5)
1429
- ? 2 > children$jscomp$5.length
1430
- ? children$jscomp$5[0]
1470
+ var child = Array.isArray(children$jscomp$6)
1471
+ ? 2 > children$jscomp$6.length
1472
+ ? children$jscomp$6[0]
1431
1473
  : null
1432
- : children$jscomp$5;
1474
+ : children$jscomp$6;
1433
1475
  "function" !== typeof child &&
1434
1476
  "symbol" !== typeof child &&
1435
1477
  null !== child &&
1436
1478
  void 0 !== child &&
1437
1479
  target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
1438
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1480
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
1439
1481
  target$jscomp$0.push(endChunkForTag("style"));
1440
- var JSCompiler_inline_result$jscomp$5 = null;
1482
+ var JSCompiler_inline_result$jscomp$6 = null;
1441
1483
  } else {
1442
1484
  var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
1443
1485
  if (
@@ -1459,26 +1501,26 @@ function pushStartInstance(
1459
1501
  }),
1460
1502
  renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
1461
1503
  var target = styleQueue$jscomp$0.rules,
1462
- children$jscomp$6 = null,
1463
- innerHTML$jscomp$5 = null,
1464
- propKey$jscomp$8;
1465
- for (propKey$jscomp$8 in props)
1466
- if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1467
- var propValue$jscomp$8 = props[propKey$jscomp$8];
1468
- if (null != propValue$jscomp$8)
1469
- switch (propKey$jscomp$8) {
1504
+ children$jscomp$7 = null,
1505
+ innerHTML$jscomp$6 = null,
1506
+ propKey$jscomp$9;
1507
+ for (propKey$jscomp$9 in props)
1508
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1509
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
1510
+ if (null != propValue$jscomp$9)
1511
+ switch (propKey$jscomp$9) {
1470
1512
  case "children":
1471
- children$jscomp$6 = propValue$jscomp$8;
1513
+ children$jscomp$7 = propValue$jscomp$9;
1472
1514
  break;
1473
1515
  case "dangerouslySetInnerHTML":
1474
- innerHTML$jscomp$5 = propValue$jscomp$8;
1516
+ innerHTML$jscomp$6 = propValue$jscomp$9;
1475
1517
  }
1476
1518
  }
1477
- var child$jscomp$0 = Array.isArray(children$jscomp$6)
1478
- ? 2 > children$jscomp$6.length
1479
- ? children$jscomp$6[0]
1519
+ var child$jscomp$0 = Array.isArray(children$jscomp$7)
1520
+ ? 2 > children$jscomp$7.length
1521
+ ? children$jscomp$7[0]
1480
1522
  : null
1481
- : children$jscomp$6;
1523
+ : children$jscomp$7;
1482
1524
  "function" !== typeof child$jscomp$0 &&
1483
1525
  "symbol" !== typeof child$jscomp$0 &&
1484
1526
  null !== child$jscomp$0 &&
@@ -1486,80 +1528,80 @@ function pushStartInstance(
1486
1528
  target.push(
1487
1529
  ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
1488
1530
  );
1489
- pushInnerHTML(target, innerHTML$jscomp$5, children$jscomp$6);
1531
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
1490
1532
  }
1491
1533
  styleQueue$jscomp$0 &&
1492
1534
  hoistableState &&
1493
1535
  hoistableState.styles.add(styleQueue$jscomp$0);
1494
1536
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1495
- JSCompiler_inline_result$jscomp$5 = void 0;
1537
+ JSCompiler_inline_result$jscomp$6 = void 0;
1496
1538
  }
1497
- return JSCompiler_inline_result$jscomp$5;
1539
+ return JSCompiler_inline_result$jscomp$6;
1498
1540
  case "meta":
1499
1541
  if (
1500
1542
  3 === formatContext.insertionMode ||
1501
1543
  formatContext.tagScope & 1 ||
1502
1544
  null != props.itemProp
1503
1545
  )
1504
- var JSCompiler_inline_result$jscomp$6 = pushSelfClosing(
1546
+ var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1505
1547
  target$jscomp$0,
1506
1548
  props,
1507
1549
  "meta"
1508
1550
  );
1509
1551
  else
1510
1552
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1511
- (JSCompiler_inline_result$jscomp$6 = isFallback
1553
+ (JSCompiler_inline_result$jscomp$7 = isFallback
1512
1554
  ? null
1513
1555
  : "string" === typeof props.charSet
1514
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1515
- : "viewport" === props.name
1516
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1517
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1518
- return JSCompiler_inline_result$jscomp$6;
1556
+ ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1557
+ : "viewport" === props.name
1558
+ ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1559
+ : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1560
+ return JSCompiler_inline_result$jscomp$7;
1519
1561
  case "listing":
1520
1562
  case "pre":
1521
1563
  target$jscomp$0.push(startChunkForTag(type));
1522
- var children$jscomp$7 = null,
1523
- innerHTML$jscomp$6 = null,
1524
- propKey$jscomp$9;
1525
- for (propKey$jscomp$9 in props)
1526
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1527
- var propValue$jscomp$9 = props[propKey$jscomp$9];
1528
- if (null != propValue$jscomp$9)
1529
- switch (propKey$jscomp$9) {
1564
+ var children$jscomp$8 = null,
1565
+ innerHTML$jscomp$7 = null,
1566
+ propKey$jscomp$10;
1567
+ for (propKey$jscomp$10 in props)
1568
+ if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1569
+ var propValue$jscomp$10 = props[propKey$jscomp$10];
1570
+ if (null != propValue$jscomp$10)
1571
+ switch (propKey$jscomp$10) {
1530
1572
  case "children":
1531
- children$jscomp$7 = propValue$jscomp$9;
1573
+ children$jscomp$8 = propValue$jscomp$10;
1532
1574
  break;
1533
1575
  case "dangerouslySetInnerHTML":
1534
- innerHTML$jscomp$6 = propValue$jscomp$9;
1576
+ innerHTML$jscomp$7 = propValue$jscomp$10;
1535
1577
  break;
1536
1578
  default:
1537
1579
  pushAttribute(
1538
1580
  target$jscomp$0,
1539
- propKey$jscomp$9,
1540
- propValue$jscomp$9
1581
+ propKey$jscomp$10,
1582
+ propValue$jscomp$10
1541
1583
  );
1542
1584
  }
1543
1585
  }
1544
1586
  target$jscomp$0.push(">");
1545
- if (null != innerHTML$jscomp$6) {
1546
- if (null != children$jscomp$7) throw Error(formatProdErrorMessage(60));
1587
+ if (null != innerHTML$jscomp$7) {
1588
+ if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
1547
1589
  if (
1548
- "object" !== typeof innerHTML$jscomp$6 ||
1549
- !("__html" in innerHTML$jscomp$6)
1590
+ "object" !== typeof innerHTML$jscomp$7 ||
1591
+ !("__html" in innerHTML$jscomp$7)
1550
1592
  )
1551
1593
  throw Error(formatProdErrorMessage(61));
1552
- var html = innerHTML$jscomp$6.__html;
1594
+ var html = innerHTML$jscomp$7.__html;
1553
1595
  null !== html &&
1554
1596
  void 0 !== html &&
1555
1597
  ("string" === typeof html && 0 < html.length && "\n" === html[0]
1556
1598
  ? target$jscomp$0.push("\n", html)
1557
1599
  : target$jscomp$0.push("" + html));
1558
1600
  }
1559
- "string" === typeof children$jscomp$7 &&
1560
- "\n" === children$jscomp$7[0] &&
1601
+ "string" === typeof children$jscomp$8 &&
1602
+ "\n" === children$jscomp$8[0] &&
1561
1603
  target$jscomp$0.push("\n");
1562
- return children$jscomp$7;
1604
+ return children$jscomp$8;
1563
1605
  case "img":
1564
1606
  var src = props.src,
1565
1607
  srcSet = props.srcSet;
@@ -1601,7 +1643,7 @@ function pushStartInstance(
1601
1643
  ) {
1602
1644
  resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
1603
1645
  var input = props.crossOrigin;
1604
- var JSCompiler_inline_result$jscomp$7 =
1646
+ var JSCompiler_inline_result$jscomp$8 =
1605
1647
  "string" === typeof input
1606
1648
  ? "use-credentials" === input
1607
1649
  ? input
@@ -1616,14 +1658,14 @@ function pushStartInstance(
1616
1658
  ((header = getPreloadAsHeader(src, "image", {
1617
1659
  imageSrcSet: props.srcSet,
1618
1660
  imageSizes: props.sizes,
1619
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1661
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1620
1662
  integrity: props.integrity,
1621
1663
  nonce: props.nonce,
1622
1664
  type: props.type,
1623
1665
  fetchPriority: props.fetchPriority,
1624
1666
  referrerPolicy: props.refererPolicy
1625
1667
  })),
1626
- 2 <= (headers.remainingCapacity -= header.length))
1668
+ 0 <= (headers.remainingCapacity -= header.length + 2))
1627
1669
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
1628
1670
  headers.highImagePreloads && (headers.highImagePreloads += ", "),
1629
1671
  (headers.highImagePreloads += header))
@@ -1634,7 +1676,7 @@ function pushStartInstance(
1634
1676
  href: srcSet ? void 0 : src,
1635
1677
  imageSrcSet: srcSet,
1636
1678
  imageSizes: sizes,
1637
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1679
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1638
1680
  integrity: props.integrity,
1639
1681
  type: props.type,
1640
1682
  fetchPriority: props.fetchPriority,
@@ -1672,56 +1714,56 @@ function pushStartInstance(
1672
1714
  case "head":
1673
1715
  if (2 > formatContext.insertionMode && null === renderState.headChunks) {
1674
1716
  renderState.headChunks = [];
1675
- var JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1717
+ var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1676
1718
  renderState.headChunks,
1677
1719
  props,
1678
1720
  "head"
1679
1721
  );
1680
1722
  } else
1681
- JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1723
+ JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1682
1724
  target$jscomp$0,
1683
1725
  props,
1684
1726
  "head"
1685
1727
  );
1686
- return JSCompiler_inline_result$jscomp$8;
1728
+ return JSCompiler_inline_result$jscomp$9;
1687
1729
  case "html":
1688
1730
  if (
1689
1731
  0 === formatContext.insertionMode &&
1690
1732
  null === renderState.htmlChunks
1691
1733
  ) {
1692
1734
  renderState.htmlChunks = [""];
1693
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1735
+ var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1694
1736
  renderState.htmlChunks,
1695
1737
  props,
1696
1738
  "html"
1697
1739
  );
1698
1740
  } else
1699
- JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1741
+ JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1700
1742
  target$jscomp$0,
1701
1743
  props,
1702
1744
  "html"
1703
1745
  );
1704
- return JSCompiler_inline_result$jscomp$9;
1746
+ return JSCompiler_inline_result$jscomp$10;
1705
1747
  default:
1706
1748
  if (-1 !== type.indexOf("-")) {
1707
1749
  target$jscomp$0.push(startChunkForTag(type));
1708
- var children$jscomp$8 = null,
1709
- innerHTML$jscomp$7 = null,
1710
- propKey$jscomp$10;
1711
- for (propKey$jscomp$10 in props)
1712
- if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1713
- var propValue$jscomp$10 = props[propKey$jscomp$10];
1714
- if (null != propValue$jscomp$10) {
1715
- var attributeName = propKey$jscomp$10;
1716
- switch (propKey$jscomp$10) {
1750
+ var children$jscomp$9 = null,
1751
+ innerHTML$jscomp$8 = null,
1752
+ propKey$jscomp$11;
1753
+ for (propKey$jscomp$11 in props)
1754
+ if (hasOwnProperty.call(props, propKey$jscomp$11)) {
1755
+ var propValue$jscomp$11 = props[propKey$jscomp$11];
1756
+ if (null != propValue$jscomp$11) {
1757
+ var attributeName = propKey$jscomp$11;
1758
+ switch (propKey$jscomp$11) {
1717
1759
  case "children":
1718
- children$jscomp$8 = propValue$jscomp$10;
1760
+ children$jscomp$9 = propValue$jscomp$11;
1719
1761
  break;
1720
1762
  case "dangerouslySetInnerHTML":
1721
- innerHTML$jscomp$7 = propValue$jscomp$10;
1763
+ innerHTML$jscomp$8 = propValue$jscomp$11;
1722
1764
  break;
1723
1765
  case "style":
1724
- pushStyleAttribute(target$jscomp$0, propValue$jscomp$10);
1766
+ pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
1725
1767
  break;
1726
1768
  case "suppressContentEditableWarning":
1727
1769
  case "suppressHydrationWarning":
@@ -1731,18 +1773,18 @@ function pushStartInstance(
1731
1773
  attributeName = "class";
1732
1774
  default:
1733
1775
  if (
1734
- isAttributeNameSafe(propKey$jscomp$10) &&
1735
- "function" !== typeof propValue$jscomp$10 &&
1736
- "symbol" !== typeof propValue$jscomp$10 &&
1737
- !1 !== propValue$jscomp$10
1776
+ isAttributeNameSafe(propKey$jscomp$11) &&
1777
+ "function" !== typeof propValue$jscomp$11 &&
1778
+ "symbol" !== typeof propValue$jscomp$11 &&
1779
+ !1 !== propValue$jscomp$11
1738
1780
  ) {
1739
- if (!0 === propValue$jscomp$10) propValue$jscomp$10 = "";
1740
- else if ("object" === typeof propValue$jscomp$10) continue;
1781
+ if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
1782
+ else if ("object" === typeof propValue$jscomp$11) continue;
1741
1783
  target$jscomp$0.push(
1742
1784
  " ",
1743
1785
  attributeName,
1744
1786
  '="',
1745
- escapeTextForBrowser(propValue$jscomp$10),
1787
+ escapeTextForBrowser(propValue$jscomp$11),
1746
1788
  '"'
1747
1789
  );
1748
1790
  }
@@ -1750,8 +1792,8 @@ function pushStartInstance(
1750
1792
  }
1751
1793
  }
1752
1794
  target$jscomp$0.push(">");
1753
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$7, children$jscomp$8);
1754
- return children$jscomp$8;
1795
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1796
+ return children$jscomp$9;
1755
1797
  }
1756
1798
  }
1757
1799
  return pushStartGenericElement(target$jscomp$0, props, type);
@@ -2131,7 +2173,7 @@ function prefetchDNS(href) {
2131
2173
  escapeHrefForLinkHeaderURLContextReplacer
2132
2174
  ) +
2133
2175
  ">; rel=dns-prefetch"),
2134
- 2 <= (resumableState.remainingCapacity -= header.length));
2176
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2135
2177
  JSCompiler_temp
2136
2178
  ? ((renderState.resets.dns[href] = null),
2137
2179
  resumableState.preconnects && (resumableState.preconnects += ", "),
@@ -2154,8 +2196,8 @@ function preconnect(href, crossOrigin) {
2154
2196
  "use-credentials" === crossOrigin
2155
2197
  ? "credentials"
2156
2198
  : "string" === typeof crossOrigin
2157
- ? "anonymous"
2158
- : "default";
2199
+ ? "anonymous"
2200
+ : "default";
2159
2201
  if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
2160
2202
  resumableState.connectResources[bucket][href] = null;
2161
2203
  resumableState = renderState.headers;
@@ -2180,7 +2222,7 @@ function preconnect(href, crossOrigin) {
2180
2222
  }
2181
2223
  JSCompiler_temp =
2182
2224
  ((header = JSCompiler_temp),
2183
- 2 <= (resumableState.remainingCapacity -= header.length));
2225
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2184
2226
  }
2185
2227
  JSCompiler_temp
2186
2228
  ? ((renderState.resets.connect[bucket][href] = null),
@@ -2222,7 +2264,7 @@ function preload(href, as, options) {
2222
2264
  0 < resumableState.remainingCapacity &&
2223
2265
  "high" === fetchPriority &&
2224
2266
  ((header = getPreloadAsHeader(href, as, options)),
2225
- 2 <= (resumableState.remainingCapacity -= header.length))
2267
+ 0 <= (resumableState.remainingCapacity -= header.length + 2))
2226
2268
  ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
2227
2269
  resumableState.highImagePreloads &&
2228
2270
  (resumableState.highImagePreloads += ", "),
@@ -2288,7 +2330,7 @@ function preload(href, as, options) {
2288
2330
  0 < resumableState.remainingCapacity &&
2289
2331
  "font" === as &&
2290
2332
  ((key = getPreloadAsHeader(href, as, options)),
2291
- 2 <= (resumableState.remainingCapacity -= key.length))
2333
+ 0 <= (resumableState.remainingCapacity -= key.length + 2))
2292
2334
  )
2293
2335
  (renderState.resets.font[href] = PRELOAD_NO_CREDS),
2294
2336
  resumableState.fontPreloads &&
@@ -2524,16 +2566,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2524
2566
  "\x3c/script>"
2525
2567
  );
2526
2568
  bootstrapScriptContent = idPrefix + "P:";
2527
- var JSCompiler_object_inline_segmentPrefix_1485 = idPrefix + "S:";
2569
+ var JSCompiler_object_inline_segmentPrefix_1482 = idPrefix + "S:";
2528
2570
  idPrefix += "B:";
2529
- var JSCompiler_object_inline_preconnects_1499 = new Set(),
2530
- JSCompiler_object_inline_fontPreloads_1500 = new Set(),
2531
- JSCompiler_object_inline_highImagePreloads_1501 = new Set(),
2532
- JSCompiler_object_inline_styles_1502 = new Map(),
2533
- JSCompiler_object_inline_bootstrapScripts_1503 = new Set(),
2534
- JSCompiler_object_inline_scripts_1504 = new Set(),
2535
- JSCompiler_object_inline_bulkPreloads_1505 = new Set(),
2536
- JSCompiler_object_inline_preloads_1506 = {
2571
+ var JSCompiler_object_inline_preconnects_1496 = new Set(),
2572
+ JSCompiler_object_inline_fontPreloads_1497 = new Set(),
2573
+ JSCompiler_object_inline_highImagePreloads_1498 = new Set(),
2574
+ JSCompiler_object_inline_styles_1499 = new Map(),
2575
+ JSCompiler_object_inline_bootstrapScripts_1500 = new Set(),
2576
+ JSCompiler_object_inline_scripts_1501 = new Set(),
2577
+ JSCompiler_object_inline_bulkPreloads_1502 = new Set(),
2578
+ JSCompiler_object_inline_preloads_1503 = {
2537
2579
  images: new Map(),
2538
2580
  stylesheets: new Map(),
2539
2581
  scripts: new Map(),
@@ -2562,15 +2604,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2562
2604
  "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
2563
2605
  ? void 0
2564
2606
  : "use-credentials" === scriptConfig.crossOrigin
2565
- ? "use-credentials"
2566
- : ""));
2607
+ ? "use-credentials"
2608
+ : ""));
2567
2609
  scriptConfig = resumableState;
2568
2610
  var href = src;
2569
2611
  scriptConfig.scriptResources[href] = null;
2570
2612
  scriptConfig.moduleScriptResources[href] = null;
2571
2613
  scriptConfig = [];
2572
2614
  pushLinkImpl(scriptConfig, props);
2573
- JSCompiler_object_inline_bootstrapScripts_1503.add(scriptConfig);
2615
+ JSCompiler_object_inline_bootstrapScripts_1500.add(scriptConfig);
2574
2616
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
2575
2617
  "string" === typeof integrity &&
2576
2618
  bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2603,15 +2645,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2603
2645
  "string" === typeof props || null == props.crossOrigin
2604
2646
  ? void 0
2605
2647
  : "use-credentials" === props.crossOrigin
2606
- ? "use-credentials"
2607
- : "")),
2648
+ ? "use-credentials"
2649
+ : "")),
2608
2650
  (props = resumableState),
2609
2651
  (scriptConfig = i),
2610
2652
  (props.scriptResources[scriptConfig] = null),
2611
2653
  (props.moduleScriptResources[scriptConfig] = null),
2612
2654
  (props = []),
2613
2655
  pushLinkImpl(props, integrity),
2614
- JSCompiler_object_inline_bootstrapScripts_1503.add(props),
2656
+ JSCompiler_object_inline_bootstrapScripts_1500.add(props),
2615
2657
  bootstrapChunks.push(
2616
2658
  '<script type="module" src="',
2617
2659
  escapeTextForBrowser(i)
@@ -2626,7 +2668,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2626
2668
  bootstrapChunks.push('" async="">\x3c/script>');
2627
2669
  return {
2628
2670
  placeholderPrefix: bootstrapScriptContent,
2629
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1485,
2671
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1482,
2630
2672
  boundaryPrefix: idPrefix,
2631
2673
  startInlineScript: "<script>",
2632
2674
  htmlChunks: null,
@@ -2646,14 +2688,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2646
2688
  charsetChunks: [],
2647
2689
  viewportChunks: [],
2648
2690
  hoistableChunks: [],
2649
- preconnects: JSCompiler_object_inline_preconnects_1499,
2650
- fontPreloads: JSCompiler_object_inline_fontPreloads_1500,
2651
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1501,
2652
- styles: JSCompiler_object_inline_styles_1502,
2653
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1503,
2654
- scripts: JSCompiler_object_inline_scripts_1504,
2655
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1505,
2656
- preloads: JSCompiler_object_inline_preloads_1506,
2691
+ preconnects: JSCompiler_object_inline_preconnects_1496,
2692
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1497,
2693
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1498,
2694
+ styles: JSCompiler_object_inline_styles_1499,
2695
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1500,
2696
+ scripts: JSCompiler_object_inline_scripts_1501,
2697
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1502,
2698
+ preloads: JSCompiler_object_inline_preloads_1503,
2657
2699
  stylesToHoist: !1,
2658
2700
  generateStaticMarkup: generateStaticMarkup
2659
2701
  };
@@ -2668,7 +2710,12 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
2668
2710
  (target = !0));
2669
2711
  return target;
2670
2712
  }
2671
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2713
+ function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
2714
+ renderState.generateStaticMarkup ||
2715
+ (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
2716
+ }
2717
+ var bind = Function.prototype.bind,
2718
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2672
2719
  function getComponentNameFromType(type) {
2673
2720
  if (null == type) return null;
2674
2721
  if ("function" === typeof type)
@@ -2767,12 +2814,12 @@ function switchContext(newSnapshot) {
2767
2814
  (null === prev
2768
2815
  ? pushAllNext(newSnapshot)
2769
2816
  : null === newSnapshot
2770
- ? popAllPrevious(prev)
2771
- : prev.depth === newSnapshot.depth
2772
- ? popToNearestCommonAncestor(prev, newSnapshot)
2773
- : prev.depth > newSnapshot.depth
2774
- ? popPreviousToCommonLevel(prev, newSnapshot)
2775
- : popNextToCommonLevel(prev, newSnapshot),
2817
+ ? popAllPrevious(prev)
2818
+ : prev.depth === newSnapshot.depth
2819
+ ? popToNearestCommonAncestor(prev, newSnapshot)
2820
+ : prev.depth > newSnapshot.depth
2821
+ ? popPreviousToCommonLevel(prev, newSnapshot)
2822
+ : popNextToCommonLevel(prev, newSnapshot),
2776
2823
  (currentActiveSnapshot = newSnapshot));
2777
2824
  }
2778
2825
  var classComponentUpdater = {
@@ -2911,9 +2958,9 @@ function createWorkInProgressHook() {
2911
2958
  (firstWorkInProgressHook = workInProgressHook = createHook()))
2912
2959
  : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
2913
2960
  : null === workInProgressHook.next
2914
- ? ((isReRender = !1),
2915
- (workInProgressHook = workInProgressHook.next = createHook()))
2916
- : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
2961
+ ? ((isReRender = !1),
2962
+ (workInProgressHook = workInProgressHook.next = createHook()))
2963
+ : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
2917
2964
  return workInProgressHook;
2918
2965
  }
2919
2966
  function getThenableStateAfterSuspending() {
@@ -2960,8 +3007,8 @@ function useReducer(reducer, initialArg, init) {
2960
3007
  ? initialArg()
2961
3008
  : initialArg
2962
3009
  : void 0 !== init
2963
- ? init(initialArg)
2964
- : initialArg;
3010
+ ? init(initialArg)
3011
+ : initialArg;
2965
3012
  workInProgressHook.memoizedState = reducer;
2966
3013
  reducer = workInProgressHook.queue = { last: null, dispatch: null };
2967
3014
  reducer = reducer.dispatch = dispatchAction.bind(
@@ -3182,7 +3229,8 @@ var currentResumableState = null,
3182
3229
  throw Error(formatProdErrorMessage(248));
3183
3230
  }
3184
3231
  },
3185
- prefix;
3232
+ prefix,
3233
+ suffix;
3186
3234
  function describeBuiltInComponentFrame(name) {
3187
3235
  if (void 0 === prefix)
3188
3236
  try {
@@ -3190,8 +3238,14 @@ function describeBuiltInComponentFrame(name) {
3190
3238
  } catch (x) {
3191
3239
  var match = x.stack.trim().match(/\n( *(at )?)/);
3192
3240
  prefix = (match && match[1]) || "";
3241
+ suffix =
3242
+ -1 < x.stack.indexOf("\n at")
3243
+ ? " (<anonymous>)"
3244
+ : -1 < x.stack.indexOf("@")
3245
+ ? "@unknown:0:0"
3246
+ : "";
3193
3247
  }
3194
- return "\n" + prefix + name;
3248
+ return "\n" + prefix + name + suffix;
3195
3249
  }
3196
3250
  var reentry = !1;
3197
3251
  function describeNativeComponentFrame(fn, construct) {
@@ -3199,62 +3253,64 @@ function describeNativeComponentFrame(fn, construct) {
3199
3253
  reentry = !0;
3200
3254
  var previousPrepareStackTrace = Error.prepareStackTrace;
3201
3255
  Error.prepareStackTrace = void 0;
3202
- var RunInRootFrame = {
3203
- DetermineComponentFrameRoot: function () {
3204
- try {
3205
- if (construct) {
3206
- var Fake = function () {
3207
- throw Error();
3208
- };
3209
- Object.defineProperty(Fake.prototype, "props", {
3210
- set: function () {
3256
+ try {
3257
+ var RunInRootFrame = {
3258
+ DetermineComponentFrameRoot: function () {
3259
+ try {
3260
+ if (construct) {
3261
+ var Fake = function () {
3211
3262
  throw Error();
3263
+ };
3264
+ Object.defineProperty(Fake.prototype, "props", {
3265
+ set: function () {
3266
+ throw Error();
3267
+ }
3268
+ });
3269
+ if ("object" === typeof Reflect && Reflect.construct) {
3270
+ try {
3271
+ Reflect.construct(Fake, []);
3272
+ } catch (x) {
3273
+ var control = x;
3274
+ }
3275
+ Reflect.construct(fn, [], Fake);
3276
+ } else {
3277
+ try {
3278
+ Fake.call();
3279
+ } catch (x$24) {
3280
+ control = x$24;
3281
+ }
3282
+ fn.call(Fake.prototype);
3212
3283
  }
3213
- });
3214
- if ("object" === typeof Reflect && Reflect.construct) {
3215
- try {
3216
- Reflect.construct(Fake, []);
3217
- } catch (x) {
3218
- var control = x;
3219
- }
3220
- Reflect.construct(fn, [], Fake);
3221
3284
  } else {
3222
3285
  try {
3223
- Fake.call();
3224
- } catch (x$24) {
3225
- control = x$24;
3286
+ throw Error();
3287
+ } catch (x$25) {
3288
+ control = x$25;
3226
3289
  }
3227
- fn.call(Fake.prototype);
3228
- }
3229
- } else {
3230
- try {
3231
- throw Error();
3232
- } catch (x$25) {
3233
- control = x$25;
3290
+ (Fake = fn()) &&
3291
+ "function" === typeof Fake.catch &&
3292
+ Fake.catch(function () {});
3234
3293
  }
3235
- (Fake = fn()) &&
3236
- "function" === typeof Fake.catch &&
3237
- Fake.catch(function () {});
3294
+ } catch (sample) {
3295
+ if (sample && control && "string" === typeof sample.stack)
3296
+ return [sample.stack, control.stack];
3238
3297
  }
3239
- } catch (sample) {
3240
- if (sample && control && "string" === typeof sample.stack)
3241
- return [sample.stack, control.stack];
3298
+ return [null, null];
3242
3299
  }
3243
- return [null, null];
3244
- }
3245
- };
3246
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
3247
- "DetermineComponentFrameRoot";
3248
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
3249
- RunInRootFrame.DetermineComponentFrameRoot,
3250
- "name"
3251
- );
3252
- namePropDescriptor &&
3253
- namePropDescriptor.configurable &&
3254
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", {
3255
- value: "DetermineComponentFrameRoot"
3256
- });
3257
- try {
3300
+ };
3301
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
3302
+ "DetermineComponentFrameRoot";
3303
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
3304
+ RunInRootFrame.DetermineComponentFrameRoot,
3305
+ "name"
3306
+ );
3307
+ namePropDescriptor &&
3308
+ namePropDescriptor.configurable &&
3309
+ Object.defineProperty(
3310
+ RunInRootFrame.DetermineComponentFrameRoot,
3311
+ "name",
3312
+ { value: "DetermineComponentFrameRoot" }
3313
+ );
3258
3314
  var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
3259
3315
  sampleStack = _RunInRootFrame$Deter[0],
3260
3316
  controlStack = _RunInRootFrame$Deter[1];
@@ -3325,11 +3381,107 @@ function describeNativeComponentFrame(fn, construct) {
3325
3381
  ? describeBuiltInComponentFrame(previousPrepareStackTrace)
3326
3382
  : "";
3327
3383
  }
3384
+ function describeComponentStackByType(type) {
3385
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3386
+ if ("function" === typeof type)
3387
+ return type.prototype && type.prototype.isReactComponent
3388
+ ? ((type = describeNativeComponentFrame(type, !0)), type)
3389
+ : describeNativeComponentFrame(type, !1);
3390
+ if ("object" === typeof type && null !== type) {
3391
+ switch (type.$$typeof) {
3392
+ case REACT_FORWARD_REF_TYPE:
3393
+ return describeNativeComponentFrame(type.render, !1);
3394
+ case REACT_MEMO_TYPE:
3395
+ return describeNativeComponentFrame(type.type, !1);
3396
+ case REACT_LAZY_TYPE:
3397
+ var lazyComponent = type,
3398
+ payload = lazyComponent._payload;
3399
+ lazyComponent = lazyComponent._init;
3400
+ try {
3401
+ type = lazyComponent(payload);
3402
+ } catch (x) {
3403
+ return describeBuiltInComponentFrame("Lazy");
3404
+ }
3405
+ return describeComponentStackByType(type);
3406
+ }
3407
+ if ("string" === typeof type.name)
3408
+ return (
3409
+ (payload = type.env),
3410
+ describeBuiltInComponentFrame(
3411
+ type.name + (payload ? " [" + payload + "]" : "")
3412
+ )
3413
+ );
3414
+ }
3415
+ switch (type) {
3416
+ case REACT_SUSPENSE_LIST_TYPE:
3417
+ return describeBuiltInComponentFrame("SuspenseList");
3418
+ case REACT_SUSPENSE_TYPE:
3419
+ return describeBuiltInComponentFrame("Suspense");
3420
+ }
3421
+ return "";
3422
+ }
3328
3423
  function defaultErrorHandler(error) {
3329
- console.error(error);
3424
+ if (
3425
+ "object" === typeof error &&
3426
+ null !== error &&
3427
+ "string" === typeof error.environmentName
3428
+ ) {
3429
+ var JSCompiler_inline_result = error.environmentName;
3430
+ error = [error].slice(0);
3431
+ "string" === typeof error[0]
3432
+ ? error.splice(
3433
+ 0,
3434
+ 1,
3435
+ "[%s] " + error[0],
3436
+ " " + JSCompiler_inline_result + " "
3437
+ )
3438
+ : error.splice(0, 0, "[%s] ", " " + JSCompiler_inline_result + " ");
3439
+ error.unshift(console);
3440
+ JSCompiler_inline_result = bind.apply(console.error, error);
3441
+ JSCompiler_inline_result();
3442
+ } else console.error(error);
3330
3443
  return null;
3331
3444
  }
3332
3445
  function noop() {}
3446
+ function RequestInstance(
3447
+ resumableState,
3448
+ renderState,
3449
+ rootFormatContext,
3450
+ progressiveChunkSize,
3451
+ onError,
3452
+ onAllReady,
3453
+ onShellReady,
3454
+ onShellError,
3455
+ onFatalError,
3456
+ onPostpone,
3457
+ formState
3458
+ ) {
3459
+ var abortSet = new Set();
3460
+ this.destination = null;
3461
+ this.flushScheduled = !1;
3462
+ this.resumableState = resumableState;
3463
+ this.renderState = renderState;
3464
+ this.rootFormatContext = rootFormatContext;
3465
+ this.progressiveChunkSize =
3466
+ void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3467
+ this.status = 10;
3468
+ this.fatalError = null;
3469
+ this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3470
+ this.completedRootSegment = null;
3471
+ this.abortableTasks = abortSet;
3472
+ this.pingedTasks = [];
3473
+ this.clientRenderedBoundaries = [];
3474
+ this.completedBoundaries = [];
3475
+ this.partialBoundaries = [];
3476
+ this.trackedPostpones = null;
3477
+ this.onError = void 0 === onError ? defaultErrorHandler : onError;
3478
+ this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3479
+ this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3480
+ this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3481
+ this.onShellError = void 0 === onShellError ? noop : onShellError;
3482
+ this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3483
+ this.formState = void 0 === formState ? null : formState;
3484
+ }
3333
3485
  function createRequest(
3334
3486
  children,
3335
3487
  resumableState,
@@ -3344,36 +3496,19 @@ function createRequest(
3344
3496
  onPostpone,
3345
3497
  formState
3346
3498
  ) {
3347
- var pingedTasks = [],
3348
- abortSet = new Set();
3349
- resumableState = {
3350
- destination: null,
3351
- flushScheduled: !1,
3352
- resumableState: resumableState,
3353
- renderState: renderState,
3354
- rootFormatContext: rootFormatContext,
3355
- progressiveChunkSize:
3356
- void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize,
3357
- status: 0,
3358
- fatalError: null,
3359
- nextSegmentId: 0,
3360
- allPendingTasks: 0,
3361
- pendingRootTasks: 0,
3362
- completedRootSegment: null,
3363
- abortableTasks: abortSet,
3364
- pingedTasks: pingedTasks,
3365
- clientRenderedBoundaries: [],
3366
- completedBoundaries: [],
3367
- partialBoundaries: [],
3368
- trackedPostpones: null,
3369
- onError: void 0 === onError ? defaultErrorHandler : onError,
3370
- onPostpone: void 0 === onPostpone ? noop : onPostpone,
3371
- onAllReady: void 0 === onAllReady ? noop : onAllReady,
3372
- onShellReady: void 0 === onShellReady ? noop : onShellReady,
3373
- onShellError: void 0 === onShellError ? noop : onShellError,
3374
- onFatalError: void 0 === onFatalError ? noop : onFatalError,
3375
- formState: void 0 === formState ? null : formState
3376
- };
3499
+ resumableState = new RequestInstance(
3500
+ resumableState,
3501
+ renderState,
3502
+ rootFormatContext,
3503
+ progressiveChunkSize,
3504
+ onError,
3505
+ onAllReady,
3506
+ onShellReady,
3507
+ onShellError,
3508
+ onFatalError,
3509
+ onPostpone,
3510
+ formState
3511
+ );
3377
3512
  renderState = createPendingSegment(
3378
3513
  resumableState,
3379
3514
  0,
@@ -3391,16 +3526,16 @@ function createRequest(
3391
3526
  null,
3392
3527
  renderState,
3393
3528
  null,
3394
- abortSet,
3529
+ resumableState.abortableTasks,
3395
3530
  null,
3396
3531
  rootFormatContext,
3397
- emptyContextObject,
3398
3532
  null,
3399
3533
  emptyTreeContext,
3400
3534
  null,
3401
3535
  !1
3402
3536
  );
3403
- pingedTasks.push(children);
3537
+ pushComponentStack(children);
3538
+ resumableState.pingedTasks.push(children);
3404
3539
  return resumableState;
3405
3540
  }
3406
3541
  var currentRequest = null;
@@ -3437,7 +3572,6 @@ function createRenderTask(
3437
3572
  abortSet,
3438
3573
  keyPath,
3439
3574
  formatContext,
3440
- legacyContext,
3441
3575
  context,
3442
3576
  treeContext,
3443
3577
  componentStack,
@@ -3460,7 +3594,6 @@ function createRenderTask(
3460
3594
  abortSet: abortSet,
3461
3595
  keyPath: keyPath,
3462
3596
  formatContext: formatContext,
3463
- legacyContext: legacyContext,
3464
3597
  context: context,
3465
3598
  treeContext: treeContext,
3466
3599
  componentStack: componentStack,
@@ -3481,7 +3614,6 @@ function createReplayTask(
3481
3614
  abortSet,
3482
3615
  keyPath,
3483
3616
  formatContext,
3484
- legacyContext,
3485
3617
  context,
3486
3618
  treeContext,
3487
3619
  componentStack,
@@ -3505,7 +3637,6 @@ function createReplayTask(
3505
3637
  abortSet: abortSet,
3506
3638
  keyPath: keyPath,
3507
3639
  formatContext: formatContext,
3508
- legacyContext: legacyContext,
3509
3640
  context: context,
3510
3641
  treeContext: treeContext,
3511
3642
  componentStack: componentStack,
@@ -3536,47 +3667,54 @@ function createPendingSegment(
3536
3667
  textEmbedded: textEmbedded
3537
3668
  };
3538
3669
  }
3539
- function createBuiltInComponentStack(task, type) {
3540
- return { tag: 0, parent: task.componentStack, type: type };
3670
+ function pushComponentStack(task) {
3671
+ var node = task.node;
3672
+ if ("object" === typeof node && null !== node)
3673
+ switch (node.$$typeof) {
3674
+ case REACT_ELEMENT_TYPE:
3675
+ task.componentStack = { parent: task.componentStack, type: node.type };
3676
+ }
3541
3677
  }
3542
- function getThrownInfo(request, node) {
3543
- if (node && null !== request.trackedPostpones) {
3544
- try {
3545
- request = "";
3546
- do {
3547
- switch (node.tag) {
3548
- case 0:
3549
- request += describeBuiltInComponentFrame(node.type);
3550
- break;
3551
- case 1:
3552
- request += describeNativeComponentFrame(node.type, !1);
3553
- break;
3554
- case 2:
3555
- request += describeNativeComponentFrame(node.type, !0);
3678
+ function getThrownInfo(node$jscomp$0) {
3679
+ var errorInfo = {};
3680
+ node$jscomp$0 &&
3681
+ Object.defineProperty(errorInfo, "componentStack", {
3682
+ configurable: !0,
3683
+ enumerable: !0,
3684
+ get: function () {
3685
+ try {
3686
+ var info = "",
3687
+ node = node$jscomp$0;
3688
+ do
3689
+ (info += describeComponentStackByType(node.type)),
3690
+ (node = node.parent);
3691
+ while (node);
3692
+ var JSCompiler_inline_result = info;
3693
+ } catch (x) {
3694
+ JSCompiler_inline_result =
3695
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3556
3696
  }
3557
- node = node.parent;
3558
- } while (node);
3559
- var JSCompiler_temp = request;
3560
- } catch (x) {
3561
- JSCompiler_temp =
3562
- "\nError generating stack: " + x.message + "\n" + x.stack;
3563
- }
3564
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3565
- } else JSCompiler_temp = {};
3566
- return JSCompiler_temp;
3697
+ Object.defineProperty(errorInfo, "componentStack", {
3698
+ value: JSCompiler_inline_result
3699
+ });
3700
+ return JSCompiler_inline_result;
3701
+ }
3702
+ });
3703
+ return errorInfo;
3567
3704
  }
3568
3705
  function logRecoverableError(request, error, errorInfo) {
3569
- request = request.onError(error, errorInfo);
3570
- if (null == request || "string" === typeof request) return request;
3706
+ request = request.onError;
3707
+ error = request(error, errorInfo);
3708
+ if (null == error || "string" === typeof error) return error;
3571
3709
  }
3572
3710
  function fatalError(request, error) {
3573
- var onShellError = request.onShellError;
3574
- onShellError(error);
3575
- onShellError = request.onFatalError;
3711
+ var onShellError = request.onShellError,
3712
+ onFatalError = request.onFatalError;
3576
3713
  onShellError(error);
3714
+ onFatalError(error);
3577
3715
  null !== request.destination
3578
- ? ((request.status = 2), request.destination.destroy(error))
3579
- : ((request.status = 1), (request.fatalError = error));
3716
+ ? ((request.status = 14), request.destination.destroy(error))
3717
+ : ((request.status = 13), (request.fatalError = error));
3580
3718
  }
3581
3719
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
3582
3720
  var prevThenableState = task.thenableState;
@@ -3629,171 +3767,148 @@ function finishFunctionComponent(
3629
3767
  renderNode(request, task, children, -1),
3630
3768
  (task.treeContext = keyPath))
3631
3769
  : didEmitActionStateMarkers
3632
- ? renderNode(request, task, children, -1)
3633
- : renderNodeDestructive(request, task, children, -1);
3770
+ ? renderNode(request, task, children, -1)
3771
+ : renderNodeDestructive(request, task, children, -1);
3634
3772
  task.keyPath = actionStateCount;
3635
3773
  }
3636
3774
  function renderElement(request, task, keyPath, type, props, ref) {
3637
3775
  if ("function" === typeof type)
3638
3776
  if (type.prototype && type.prototype.isReactComponent) {
3639
- var JSCompiler_inline_result = props;
3777
+ var newProps = props;
3640
3778
  if ("ref" in props) {
3641
- JSCompiler_inline_result = {};
3779
+ newProps = {};
3642
3780
  for (var propName in props)
3643
- "ref" !== propName &&
3644
- (JSCompiler_inline_result[propName] = props[propName]);
3781
+ "ref" !== propName && (newProps[propName] = props[propName]);
3645
3782
  }
3646
3783
  var defaultProps = type.defaultProps;
3647
3784
  if (defaultProps) {
3648
- JSCompiler_inline_result === props &&
3649
- (JSCompiler_inline_result = assign(
3650
- {},
3651
- JSCompiler_inline_result,
3652
- props
3653
- ));
3654
- for (var propName$31 in defaultProps)
3655
- void 0 === JSCompiler_inline_result[propName$31] &&
3656
- (JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
3785
+ newProps === props && (newProps = assign({}, newProps, props));
3786
+ for (var propName$33 in defaultProps)
3787
+ void 0 === newProps[propName$33] &&
3788
+ (newProps[propName$33] = defaultProps[propName$33]);
3657
3789
  }
3658
- props = task.componentStack;
3659
- task.componentStack = { tag: 2, parent: task.componentStack, type: type };
3660
- defaultProps = emptyContextObject;
3790
+ props = newProps;
3791
+ newProps = emptyContextObject;
3792
+ defaultProps = type.contextType;
3793
+ "object" === typeof defaultProps &&
3794
+ null !== defaultProps &&
3795
+ (newProps = defaultProps._currentValue2);
3796
+ newProps = new type(props, newProps);
3797
+ var initialState = void 0 !== newProps.state ? newProps.state : null;
3798
+ newProps.updater = classComponentUpdater;
3799
+ newProps.props = props;
3800
+ newProps.state = initialState;
3801
+ defaultProps = { queue: [], replace: !1 };
3802
+ newProps._reactInternals = defaultProps;
3661
3803
  ref = type.contextType;
3662
- "object" === typeof ref &&
3663
- null !== ref &&
3664
- (defaultProps = ref._currentValue2);
3665
- defaultProps = new type(JSCompiler_inline_result, defaultProps);
3666
- propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
3667
- defaultProps.updater = classComponentUpdater;
3668
- defaultProps.props = JSCompiler_inline_result;
3669
- defaultProps.state = propName$31;
3670
- ref = { queue: [], replace: !1 };
3671
- defaultProps._reactInternals = ref;
3672
- var contextType = type.contextType;
3673
- defaultProps.context =
3674
- "object" === typeof contextType && null !== contextType
3675
- ? contextType._currentValue2
3804
+ newProps.context =
3805
+ "object" === typeof ref && null !== ref
3806
+ ? ref._currentValue2
3676
3807
  : emptyContextObject;
3677
- contextType = type.getDerivedStateFromProps;
3678
- "function" === typeof contextType &&
3679
- ((contextType = contextType(JSCompiler_inline_result, propName$31)),
3680
- (propName$31 =
3681
- null === contextType || void 0 === contextType
3682
- ? propName$31
3683
- : assign({}, propName$31, contextType)),
3684
- (defaultProps.state = propName$31));
3808
+ ref = type.getDerivedStateFromProps;
3809
+ "function" === typeof ref &&
3810
+ ((ref = ref(props, initialState)),
3811
+ (initialState =
3812
+ null === ref || void 0 === ref
3813
+ ? initialState
3814
+ : assign({}, initialState, ref)),
3815
+ (newProps.state = initialState));
3685
3816
  if (
3686
3817
  "function" !== typeof type.getDerivedStateFromProps &&
3687
- "function" !== typeof defaultProps.getSnapshotBeforeUpdate &&
3688
- ("function" === typeof defaultProps.UNSAFE_componentWillMount ||
3689
- "function" === typeof defaultProps.componentWillMount)
3818
+ "function" !== typeof newProps.getSnapshotBeforeUpdate &&
3819
+ ("function" === typeof newProps.UNSAFE_componentWillMount ||
3820
+ "function" === typeof newProps.componentWillMount)
3690
3821
  )
3691
3822
  if (
3692
- ((type = defaultProps.state),
3693
- "function" === typeof defaultProps.componentWillMount &&
3694
- defaultProps.componentWillMount(),
3695
- "function" === typeof defaultProps.UNSAFE_componentWillMount &&
3696
- defaultProps.UNSAFE_componentWillMount(),
3697
- type !== defaultProps.state &&
3823
+ ((type = newProps.state),
3824
+ "function" === typeof newProps.componentWillMount &&
3825
+ newProps.componentWillMount(),
3826
+ "function" === typeof newProps.UNSAFE_componentWillMount &&
3827
+ newProps.UNSAFE_componentWillMount(),
3828
+ type !== newProps.state &&
3698
3829
  classComponentUpdater.enqueueReplaceState(
3699
- defaultProps,
3700
- defaultProps.state,
3830
+ newProps,
3831
+ newProps.state,
3701
3832
  null
3702
3833
  ),
3703
- null !== ref.queue && 0 < ref.queue.length)
3834
+ null !== defaultProps.queue && 0 < defaultProps.queue.length)
3704
3835
  )
3705
3836
  if (
3706
- ((type = ref.queue),
3707
- (contextType = ref.replace),
3708
- (ref.queue = null),
3709
- (ref.replace = !1),
3710
- contextType && 1 === type.length)
3837
+ ((type = defaultProps.queue),
3838
+ (ref = defaultProps.replace),
3839
+ (defaultProps.queue = null),
3840
+ (defaultProps.replace = !1),
3841
+ ref && 1 === type.length)
3711
3842
  )
3712
- defaultProps.state = type[0];
3843
+ newProps.state = type[0];
3713
3844
  else {
3714
- ref = contextType ? type[0] : defaultProps.state;
3715
- propName$31 = !0;
3716
- for (
3717
- contextType = contextType ? 1 : 0;
3718
- contextType < type.length;
3719
- contextType++
3720
- )
3721
- (propName = type[contextType]),
3722
- (propName =
3723
- "function" === typeof propName
3724
- ? propName.call(
3725
- defaultProps,
3726
- ref,
3727
- JSCompiler_inline_result,
3728
- void 0
3729
- )
3730
- : propName),
3731
- null != propName &&
3732
- (propName$31
3733
- ? ((propName$31 = !1), (ref = assign({}, ref, propName)))
3734
- : assign(ref, propName));
3735
- defaultProps.state = ref;
3845
+ defaultProps = ref ? type[0] : newProps.state;
3846
+ initialState = !0;
3847
+ for (ref = ref ? 1 : 0; ref < type.length; ref++)
3848
+ (propName$33 = type[ref]),
3849
+ (propName$33 =
3850
+ "function" === typeof propName$33
3851
+ ? propName$33.call(newProps, defaultProps, props, void 0)
3852
+ : propName$33),
3853
+ null != propName$33 &&
3854
+ (initialState
3855
+ ? ((initialState = !1),
3856
+ (defaultProps = assign({}, defaultProps, propName$33)))
3857
+ : assign(defaultProps, propName$33));
3858
+ newProps.state = defaultProps;
3736
3859
  }
3737
- else ref.queue = null;
3738
- type = defaultProps.render();
3739
- JSCompiler_inline_result = task.keyPath;
3860
+ else defaultProps.queue = null;
3861
+ type = newProps.render();
3862
+ if (12 === request.status) throw null;
3863
+ props = task.keyPath;
3740
3864
  task.keyPath = keyPath;
3741
3865
  renderNodeDestructive(request, task, type, -1);
3742
- task.keyPath = JSCompiler_inline_result;
3743
- task.componentStack = props;
3744
- } else
3745
- (JSCompiler_inline_result = task.componentStack),
3746
- (task.componentStack = {
3747
- tag: 1,
3748
- parent: task.componentStack,
3749
- type: type
3750
- }),
3751
- (type = renderWithHooks(request, task, keyPath, type, props, void 0)),
3752
- finishFunctionComponent(
3753
- request,
3754
- task,
3755
- keyPath,
3756
- type,
3757
- 0 !== localIdCounter,
3758
- actionStateCounter,
3759
- actionStateMatchingIndex
3760
- ),
3761
- (task.componentStack = JSCompiler_inline_result);
3762
- else if ("string" === typeof type) {
3763
- JSCompiler_inline_result = task.componentStack;
3764
- task.componentStack = createBuiltInComponentStack(task, type);
3765
- defaultProps = task.blockedSegment;
3766
- if (null === defaultProps)
3767
- (defaultProps = props.children),
3768
- (ref = task.formatContext),
3769
- (propName$31 = task.keyPath),
3770
- (task.formatContext = getChildFormatContext(ref, type, props)),
3866
+ task.keyPath = props;
3867
+ } else {
3868
+ type = renderWithHooks(request, task, keyPath, type, props, void 0);
3869
+ if (12 === request.status) throw null;
3870
+ finishFunctionComponent(
3871
+ request,
3872
+ task,
3873
+ keyPath,
3874
+ type,
3875
+ 0 !== localIdCounter,
3876
+ actionStateCounter,
3877
+ actionStateMatchingIndex
3878
+ );
3879
+ }
3880
+ else if ("string" === typeof type)
3881
+ if (((newProps = task.blockedSegment), null === newProps))
3882
+ (newProps = props.children),
3883
+ (defaultProps = task.formatContext),
3884
+ (initialState = task.keyPath),
3885
+ (task.formatContext = getChildFormatContext(defaultProps, type, props)),
3771
3886
  (task.keyPath = keyPath),
3772
- renderNode(request, task, defaultProps, -1),
3773
- (task.formatContext = ref),
3774
- (task.keyPath = propName$31);
3887
+ renderNode(request, task, newProps, -1),
3888
+ (task.formatContext = defaultProps),
3889
+ (task.keyPath = initialState);
3775
3890
  else {
3776
- propName$31 = pushStartInstance(
3777
- defaultProps.chunks,
3891
+ initialState = pushStartInstance(
3892
+ newProps.chunks,
3778
3893
  type,
3779
3894
  props,
3780
3895
  request.resumableState,
3781
3896
  request.renderState,
3782
3897
  task.hoistableState,
3783
3898
  task.formatContext,
3784
- defaultProps.lastPushedText,
3899
+ newProps.lastPushedText,
3785
3900
  task.isFallback
3786
3901
  );
3787
- defaultProps.lastPushedText = !1;
3788
- ref = task.formatContext;
3789
- contextType = task.keyPath;
3790
- task.formatContext = getChildFormatContext(ref, type, props);
3902
+ newProps.lastPushedText = !1;
3903
+ defaultProps = task.formatContext;
3904
+ ref = task.keyPath;
3905
+ task.formatContext = getChildFormatContext(defaultProps, type, props);
3791
3906
  task.keyPath = keyPath;
3792
- renderNode(request, task, propName$31, -1);
3793
- task.formatContext = ref;
3794
- task.keyPath = contextType;
3907
+ renderNode(request, task, initialState, -1);
3908
+ task.formatContext = defaultProps;
3909
+ task.keyPath = ref;
3795
3910
  a: {
3796
- keyPath = defaultProps.chunks;
3911
+ task = newProps.chunks;
3797
3912
  request = request.resumableState;
3798
3913
  switch (type) {
3799
3914
  case "title":
@@ -3816,23 +3931,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
3816
3931
  case "wbr":
3817
3932
  break a;
3818
3933
  case "body":
3819
- if (1 >= ref.insertionMode) {
3934
+ if (1 >= defaultProps.insertionMode) {
3820
3935
  request.hasBody = !0;
3821
3936
  break a;
3822
3937
  }
3823
3938
  break;
3824
3939
  case "html":
3825
- if (0 === ref.insertionMode) {
3940
+ if (0 === defaultProps.insertionMode) {
3826
3941
  request.hasHtml = !0;
3827
3942
  break a;
3828
3943
  }
3829
3944
  }
3830
- keyPath.push(endChunkForTag(type));
3945
+ task.push(endChunkForTag(type));
3831
3946
  }
3832
- defaultProps.lastPushedText = !1;
3947
+ newProps.lastPushedText = !1;
3833
3948
  }
3834
- task.componentStack = JSCompiler_inline_result;
3835
- } else {
3949
+ else {
3836
3950
  switch (type) {
3837
3951
  case REACT_LEGACY_HIDDEN_TYPE:
3838
3952
  case REACT_DEBUG_TRACING_MODE_TYPE:
@@ -3852,13 +3966,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
3852
3966
  (task.keyPath = type));
3853
3967
  return;
3854
3968
  case REACT_SUSPENSE_LIST_TYPE:
3855
- type = task.componentStack;
3856
- task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
3857
- JSCompiler_inline_result = task.keyPath;
3969
+ type = task.keyPath;
3858
3970
  task.keyPath = keyPath;
3859
3971
  renderNodeDestructive(request, task, props.children, -1);
3860
- task.keyPath = JSCompiler_inline_result;
3861
- task.componentStack = type;
3972
+ task.keyPath = type;
3862
3973
  return;
3863
3974
  case REACT_SCOPE_TYPE:
3864
3975
  throw Error(formatProdErrorMessage(343));
@@ -3873,31 +3984,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
3873
3984
  task.keyPath = type;
3874
3985
  }
3875
3986
  } else {
3876
- var previousComponentStack = task.componentStack;
3877
- type = task.componentStack = createBuiltInComponentStack(
3878
- task,
3879
- "Suspense"
3880
- );
3881
- var prevKeyPath = task.keyPath;
3882
- ref = task.blockedBoundary;
3883
- var parentHoistableState = task.hoistableState,
3884
- parentSegment = task.blockedSegment;
3885
- propName$31 = props.fallback;
3886
- var content = props.children;
3887
- props = new Set();
3888
- contextType = createSuspenseBoundary(request, props);
3987
+ type = task.keyPath;
3988
+ var parentBoundary = task.blockedBoundary,
3989
+ parentHoistableState = task.hoistableState;
3990
+ ref = task.blockedSegment;
3991
+ propName$33 = props.fallback;
3992
+ props = props.children;
3993
+ var fallbackAbortSet = new Set();
3994
+ propName = createSuspenseBoundary(request, fallbackAbortSet);
3889
3995
  null !== request.trackedPostpones &&
3890
- (contextType.trackedContentKeyPath = keyPath);
3891
- propName = createPendingSegment(
3996
+ (propName.trackedContentKeyPath = keyPath);
3997
+ var boundarySegment = createPendingSegment(
3892
3998
  request,
3893
- parentSegment.chunks.length,
3894
- contextType,
3999
+ ref.chunks.length,
4000
+ propName,
3895
4001
  task.formatContext,
3896
4002
  !1,
3897
4003
  !1
3898
4004
  );
3899
- parentSegment.children.push(propName);
3900
- parentSegment.lastPushedText = !1;
4005
+ ref.children.push(boundarySegment);
4006
+ ref.lastPushedText = !1;
3901
4007
  var contentRootSegment = createPendingSegment(
3902
4008
  request,
3903
4009
  0,
@@ -3907,108 +4013,128 @@ function renderElement(request, task, keyPath, type, props, ref) {
3907
4013
  !1
3908
4014
  );
3909
4015
  contentRootSegment.parentFlushed = !0;
3910
- task.blockedBoundary = contextType;
3911
- task.hoistableState = contextType.contentState;
3912
- task.blockedSegment = contentRootSegment;
3913
- task.keyPath = keyPath;
3914
- try {
3915
- if (
3916
- (renderNode(request, task, content, -1),
3917
- request.renderState.generateStaticMarkup ||
3918
- (contentRootSegment.lastPushedText &&
3919
- contentRootSegment.textEmbedded &&
3920
- contentRootSegment.chunks.push("\x3c!-- --\x3e")),
3921
- (contentRootSegment.status = 1),
3922
- queueCompletedSegment(contextType, contentRootSegment),
3923
- 0 === contextType.pendingTasks && 0 === contextType.status)
3924
- ) {
3925
- contextType.status = 1;
3926
- task.componentStack = previousComponentStack;
3927
- break a;
4016
+ if (null !== request.trackedPostpones) {
4017
+ newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4018
+ defaultProps = [newProps[1], newProps[2], [], null];
4019
+ request.trackedPostpones.workingMap.set(newProps, defaultProps);
4020
+ propName.trackedFallbackNode = defaultProps;
4021
+ task.blockedSegment = boundarySegment;
4022
+ task.keyPath = newProps;
4023
+ boundarySegment.status = 6;
4024
+ try {
4025
+ renderNode(request, task, propName$33, -1),
4026
+ pushSegmentFinale(
4027
+ boundarySegment.chunks,
4028
+ request.renderState,
4029
+ boundarySegment.lastPushedText,
4030
+ boundarySegment.textEmbedded
4031
+ ),
4032
+ (boundarySegment.status = 1);
4033
+ } catch (thrownValue) {
4034
+ throw (
4035
+ ((boundarySegment.status = 12 === request.status ? 3 : 4),
4036
+ thrownValue)
4037
+ );
4038
+ } finally {
4039
+ (task.blockedSegment = ref), (task.keyPath = type);
3928
4040
  }
3929
- } catch (error) {
3930
- (contentRootSegment.status = 4),
3931
- (contextType.status = 4),
3932
- (JSCompiler_inline_result = getThrownInfo(
3933
- request,
3934
- task.componentStack
3935
- )),
3936
- (defaultProps = logRecoverableError(
3937
- request,
3938
- error,
3939
- JSCompiler_inline_result
3940
- )),
3941
- (contextType.errorDigest = defaultProps),
3942
- untrackBoundary(request, contextType);
3943
- } finally {
3944
- (task.blockedBoundary = ref),
3945
- (task.hoistableState = parentHoistableState),
3946
- (task.blockedSegment = parentSegment),
3947
- (task.keyPath = prevKeyPath),
3948
- (task.componentStack = previousComponentStack);
4041
+ task = createRenderTask(
4042
+ request,
4043
+ null,
4044
+ props,
4045
+ -1,
4046
+ propName,
4047
+ contentRootSegment,
4048
+ propName.contentState,
4049
+ task.abortSet,
4050
+ keyPath,
4051
+ task.formatContext,
4052
+ task.context,
4053
+ task.treeContext,
4054
+ task.componentStack,
4055
+ task.isFallback
4056
+ );
4057
+ pushComponentStack(task);
4058
+ request.pingedTasks.push(task);
4059
+ } else {
4060
+ task.blockedBoundary = propName;
4061
+ task.hoistableState = propName.contentState;
4062
+ task.blockedSegment = contentRootSegment;
4063
+ task.keyPath = keyPath;
4064
+ contentRootSegment.status = 6;
4065
+ try {
4066
+ if (
4067
+ (renderNode(request, task, props, -1),
4068
+ pushSegmentFinale(
4069
+ contentRootSegment.chunks,
4070
+ request.renderState,
4071
+ contentRootSegment.lastPushedText,
4072
+ contentRootSegment.textEmbedded
4073
+ ),
4074
+ (contentRootSegment.status = 1),
4075
+ queueCompletedSegment(propName, contentRootSegment),
4076
+ 0 === propName.pendingTasks && 0 === propName.status)
4077
+ ) {
4078
+ propName.status = 1;
4079
+ break a;
4080
+ }
4081
+ } catch (thrownValue$28) {
4082
+ (propName.status = 4),
4083
+ 12 === request.status
4084
+ ? ((contentRootSegment.status = 3),
4085
+ (newProps = request.fatalError))
4086
+ : ((contentRootSegment.status = 4),
4087
+ (newProps = thrownValue$28)),
4088
+ (defaultProps = getThrownInfo(task.componentStack)),
4089
+ (initialState = logRecoverableError(
4090
+ request,
4091
+ newProps,
4092
+ defaultProps
4093
+ )),
4094
+ (propName.errorDigest = initialState),
4095
+ untrackBoundary(request, propName);
4096
+ } finally {
4097
+ (task.blockedBoundary = parentBoundary),
4098
+ (task.hoistableState = parentHoistableState),
4099
+ (task.blockedSegment = ref),
4100
+ (task.keyPath = type);
4101
+ }
4102
+ task = createRenderTask(
4103
+ request,
4104
+ null,
4105
+ propName$33,
4106
+ -1,
4107
+ parentBoundary,
4108
+ boundarySegment,
4109
+ propName.fallbackState,
4110
+ fallbackAbortSet,
4111
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
4112
+ task.formatContext,
4113
+ task.context,
4114
+ task.treeContext,
4115
+ task.componentStack,
4116
+ !0
4117
+ );
4118
+ pushComponentStack(task);
4119
+ request.pingedTasks.push(task);
3949
4120
  }
3950
- JSCompiler_inline_result = [
3951
- keyPath[0],
3952
- "Suspense Fallback",
3953
- keyPath[2]
3954
- ];
3955
- defaultProps = request.trackedPostpones;
3956
- null !== defaultProps &&
3957
- ((previousComponentStack = [
3958
- JSCompiler_inline_result[1],
3959
- JSCompiler_inline_result[2],
3960
- [],
3961
- null
3962
- ]),
3963
- defaultProps.workingMap.set(
3964
- JSCompiler_inline_result,
3965
- previousComponentStack
3966
- ),
3967
- 5 === contextType.status
3968
- ? (defaultProps.workingMap.get(keyPath)[4] =
3969
- previousComponentStack)
3970
- : (contextType.trackedFallbackNode = previousComponentStack));
3971
- task = createRenderTask(
3972
- request,
3973
- null,
3974
- propName$31,
3975
- -1,
3976
- ref,
3977
- propName,
3978
- contextType.fallbackState,
3979
- props,
3980
- JSCompiler_inline_result,
3981
- task.formatContext,
3982
- task.legacyContext,
3983
- task.context,
3984
- task.treeContext,
3985
- type,
3986
- !0
3987
- );
3988
- request.pingedTasks.push(task);
3989
4121
  }
3990
4122
  return;
3991
4123
  }
3992
4124
  if ("object" === typeof type && null !== type)
3993
4125
  switch (type.$$typeof) {
3994
4126
  case REACT_FORWARD_REF_TYPE:
3995
- JSCompiler_inline_result = task.componentStack;
3996
- task.componentStack = {
3997
- tag: 1,
3998
- parent: task.componentStack,
3999
- type: type.render
4000
- };
4001
4127
  if ("ref" in props)
4002
- for (contextType in ((defaultProps = {}), props))
4003
- "ref" !== contextType &&
4004
- (defaultProps[contextType] = props[contextType]);
4005
- else defaultProps = props;
4128
+ for (boundarySegment in ((newProps = {}), props))
4129
+ "ref" !== boundarySegment &&
4130
+ (newProps[boundarySegment] = props[boundarySegment]);
4131
+ else newProps = props;
4006
4132
  type = renderWithHooks(
4007
4133
  request,
4008
4134
  task,
4009
4135
  keyPath,
4010
4136
  type.render,
4011
- defaultProps,
4137
+ newProps,
4012
4138
  ref
4013
4139
  );
4014
4140
  finishFunctionComponent(
@@ -4020,7 +4146,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4020
4146
  actionStateCounter,
4021
4147
  actionStateMatchingIndex
4022
4148
  );
4023
- task.componentStack = JSCompiler_inline_result;
4024
4149
  return;
4025
4150
  case REACT_MEMO_TYPE:
4026
4151
  renderElement(request, task, keyPath, type.type, props, ref);
@@ -4028,16 +4153,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
4028
4153
  case REACT_PROVIDER_TYPE:
4029
4154
  case REACT_CONTEXT_TYPE:
4030
4155
  defaultProps = props.children;
4031
- JSCompiler_inline_result = task.keyPath;
4156
+ newProps = task.keyPath;
4032
4157
  props = props.value;
4033
- ref = type._currentValue2;
4158
+ initialState = type._currentValue2;
4034
4159
  type._currentValue2 = props;
4035
- propName$31 = currentActiveSnapshot;
4160
+ ref = currentActiveSnapshot;
4036
4161
  currentActiveSnapshot = type = {
4037
- parent: propName$31,
4038
- depth: null === propName$31 ? 0 : propName$31.depth + 1,
4162
+ parent: ref,
4163
+ depth: null === ref ? 0 : ref.depth + 1,
4039
4164
  context: type,
4040
- parentValue: ref,
4165
+ parentValue: initialState,
4041
4166
  value: props
4042
4167
  };
4043
4168
  task.context = type;
@@ -4048,7 +4173,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4048
4173
  request.context._currentValue2 = request.parentValue;
4049
4174
  request = currentActiveSnapshot = request.parent;
4050
4175
  task.context = request;
4051
- task.keyPath = JSCompiler_inline_result;
4176
+ task.keyPath = newProps;
4052
4177
  return;
4053
4178
  case REACT_CONSUMER_TYPE:
4054
4179
  props = props.children;
@@ -4059,12 +4184,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4059
4184
  task.keyPath = props;
4060
4185
  return;
4061
4186
  case REACT_LAZY_TYPE:
4062
- JSCompiler_inline_result = task.componentStack;
4063
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4064
- defaultProps = type._init;
4065
- type = defaultProps(type._payload);
4066
- renderElement(request, task, keyPath, type, props, void 0);
4067
- task.componentStack = JSCompiler_inline_result;
4187
+ newProps = type._init;
4188
+ type = newProps(type._payload);
4189
+ if (12 === request.status) throw null;
4190
+ renderElement(request, task, keyPath, type, props, ref);
4068
4191
  return;
4069
4192
  }
4070
4193
  throw Error(
@@ -4099,23 +4222,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
4099
4222
  (task.replay = prevReplay), (task.blockedSegment = null);
4100
4223
  }
4101
4224
  }
4102
- function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4103
- if (null !== task.replay && "number" === typeof task.replay.slots)
4104
- resumeNode(request, task, task.replay.slots, node$jscomp$0, childIndex);
4105
- else if (
4106
- ((task.node = node$jscomp$0),
4107
- (task.childIndex = childIndex),
4108
- null !== node$jscomp$0)
4109
- ) {
4110
- if ("object" === typeof node$jscomp$0) {
4111
- switch (node$jscomp$0.$$typeof) {
4225
+ function renderNodeDestructive(request, task, node, childIndex) {
4226
+ null !== task.replay && "number" === typeof task.replay.slots
4227
+ ? resumeNode(request, task, task.replay.slots, node, childIndex)
4228
+ : ((task.node = node),
4229
+ (task.childIndex = childIndex),
4230
+ (node = task.componentStack),
4231
+ pushComponentStack(task),
4232
+ retryNode(request, task),
4233
+ (task.componentStack = node));
4234
+ }
4235
+ function retryNode(request, task) {
4236
+ var node = task.node,
4237
+ childIndex = task.childIndex;
4238
+ if (null !== node) {
4239
+ if ("object" === typeof node) {
4240
+ switch (node.$$typeof) {
4112
4241
  case REACT_ELEMENT_TYPE:
4113
- var type = node$jscomp$0.type,
4114
- key = node$jscomp$0.key,
4115
- props = node$jscomp$0.props;
4116
- node$jscomp$0 = props.ref;
4117
- var ref = void 0 !== node$jscomp$0 ? node$jscomp$0 : null;
4118
- var name = getComponentNameFromType(type),
4242
+ var type = node.type,
4243
+ key = node.key,
4244
+ props = node.props;
4245
+ node = props.ref;
4246
+ var ref = void 0 !== node ? node : null,
4247
+ name = getComponentNameFromType(type),
4119
4248
  keyOrIndex =
4120
4249
  null == key ? (-1 === childIndex ? 0 : childIndex) : key;
4121
4250
  key = [task.keyPath, name, keyOrIndex];
@@ -4123,18 +4252,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4123
4252
  a: {
4124
4253
  var replay = task.replay;
4125
4254
  childIndex = replay.nodes;
4126
- for (
4127
- node$jscomp$0 = 0;
4128
- node$jscomp$0 < childIndex.length;
4129
- node$jscomp$0++
4130
- ) {
4131
- var node = childIndex[node$jscomp$0];
4132
- if (keyOrIndex === node[1]) {
4133
- if (4 === node.length) {
4134
- if (null !== name && name !== node[0])
4135
- throw Error(formatProdErrorMessage(490, node[0], name));
4136
- var childNodes = node[2];
4137
- name = node[3];
4255
+ for (node = 0; node < childIndex.length; node++) {
4256
+ var node$jscomp$0 = childIndex[node];
4257
+ if (keyOrIndex === node$jscomp$0[1]) {
4258
+ if (4 === node$jscomp$0.length) {
4259
+ if (null !== name && name !== node$jscomp$0[0])
4260
+ throw Error(
4261
+ formatProdErrorMessage(490, node$jscomp$0[0], name)
4262
+ );
4263
+ var childNodes = node$jscomp$0[2];
4264
+ name = node$jscomp$0[3];
4138
4265
  keyOrIndex = task.node;
4139
4266
  task.replay = {
4140
4267
  nodes: childNodes,
@@ -4161,14 +4288,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4161
4288
  x)
4162
4289
  );
4163
4290
  task.replay.pendingTasks--;
4164
- props = getThrownInfo(request, task.componentStack);
4165
- key = request;
4166
- request = task.blockedBoundary;
4291
+ props = getThrownInfo(task.componentStack);
4292
+ key = task.blockedBoundary;
4167
4293
  type = x;
4168
- props = logRecoverableError(key, type, props);
4294
+ props = logRecoverableError(request, type, props);
4169
4295
  abortRemainingReplayNodes(
4170
- key,
4171
4296
  request,
4297
+ key,
4172
4298
  childNodes,
4173
4299
  name,
4174
4300
  type,
@@ -4187,15 +4313,14 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4187
4313
  );
4188
4314
  b: {
4189
4315
  replay = void 0;
4190
- type = node[5];
4191
- ref = node[2];
4192
- name = node[3];
4193
- keyOrIndex = null === node[4] ? [] : node[4][2];
4194
- node = null === node[4] ? null : node[4][3];
4195
- var previousComponentStack = task.componentStack,
4196
- suspenseComponentStack = (task.componentStack =
4197
- createBuiltInComponentStack(task, "Suspense")),
4198
- prevKeyPath = task.keyPath,
4316
+ type = node$jscomp$0[5];
4317
+ ref = node$jscomp$0[2];
4318
+ name = node$jscomp$0[3];
4319
+ keyOrIndex =
4320
+ null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4321
+ node$jscomp$0 =
4322
+ null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4323
+ var prevKeyPath = task.keyPath,
4199
4324
  previousReplaySet = task.replay,
4200
4325
  parentBoundary = task.blockedBoundary,
4201
4326
  parentHoistableState = task.hoistableState,
@@ -4210,6 +4335,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4210
4335
  resumedBoundary.rootSegmentID = type;
4211
4336
  task.blockedBoundary = resumedBoundary;
4212
4337
  task.hoistableState = resumedBoundary.contentState;
4338
+ task.keyPath = key;
4213
4339
  task.replay = {
4214
4340
  nodes: ref,
4215
4341
  slots: name,
@@ -4233,10 +4359,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4233
4359
  }
4234
4360
  } catch (error) {
4235
4361
  (resumedBoundary.status = 4),
4236
- (childNodes = getThrownInfo(
4237
- request,
4238
- task.componentStack
4239
- )),
4362
+ (childNodes = getThrownInfo(task.componentStack)),
4240
4363
  (replay = logRecoverableError(
4241
4364
  request,
4242
4365
  error,
@@ -4251,13 +4374,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4251
4374
  (task.blockedBoundary = parentBoundary),
4252
4375
  (task.hoistableState = parentHoistableState),
4253
4376
  (task.replay = previousReplaySet),
4254
- (task.keyPath = prevKeyPath),
4255
- (task.componentStack = previousComponentStack);
4377
+ (task.keyPath = prevKeyPath);
4256
4378
  }
4257
4379
  task = createReplayTask(
4258
4380
  request,
4259
4381
  null,
4260
- { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
4382
+ {
4383
+ nodes: keyOrIndex,
4384
+ slots: node$jscomp$0,
4385
+ pendingTasks: 0
4386
+ },
4261
4387
  props,
4262
4388
  -1,
4263
4389
  parentBoundary,
@@ -4265,16 +4391,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4265
4391
  fallbackAbortSet,
4266
4392
  [key[0], "Suspense Fallback", key[2]],
4267
4393
  task.formatContext,
4268
- task.legacyContext,
4269
4394
  task.context,
4270
4395
  task.treeContext,
4271
- suspenseComponentStack,
4396
+ task.componentStack,
4272
4397
  !0
4273
4398
  );
4399
+ pushComponentStack(task);
4274
4400
  request.pingedTasks.push(task);
4275
4401
  }
4276
4402
  }
4277
- childIndex.splice(node$jscomp$0, 1);
4403
+ childIndex.splice(node, 1);
4278
4404
  break a;
4279
4405
  }
4280
4406
  }
@@ -4284,81 +4410,69 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4284
4410
  case REACT_PORTAL_TYPE:
4285
4411
  throw Error(formatProdErrorMessage(257));
4286
4412
  case REACT_LAZY_TYPE:
4287
- childNodes = task.componentStack;
4288
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4289
- props = node$jscomp$0._init;
4290
- node$jscomp$0 = props(node$jscomp$0._payload);
4291
- task.componentStack = childNodes;
4292
- renderNodeDestructive(request, task, node$jscomp$0, childIndex);
4413
+ childNodes = node._init;
4414
+ node = childNodes(node._payload);
4415
+ if (12 === request.status) throw null;
4416
+ renderNodeDestructive(request, task, node, childIndex);
4293
4417
  return;
4294
4418
  }
4295
- if (isArrayImpl(node$jscomp$0)) {
4296
- renderChildrenArray(request, task, node$jscomp$0, childIndex);
4419
+ if (isArrayImpl(node)) {
4420
+ renderChildrenArray(request, task, node, childIndex);
4297
4421
  return;
4298
4422
  }
4299
- null === node$jscomp$0 || "object" !== typeof node$jscomp$0
4423
+ null === node || "object" !== typeof node
4300
4424
  ? (childNodes = null)
4301
4425
  : ((childNodes =
4302
- (MAYBE_ITERATOR_SYMBOL && node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
4303
- node$jscomp$0["@@iterator"]),
4426
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
4427
+ node["@@iterator"]),
4304
4428
  (childNodes = "function" === typeof childNodes ? childNodes : null));
4305
- if (childNodes && (childNodes = childNodes.call(node$jscomp$0))) {
4306
- node$jscomp$0 = childNodes.next();
4307
- if (!node$jscomp$0.done) {
4429
+ if (childNodes && (childNodes = childNodes.call(node))) {
4430
+ node = childNodes.next();
4431
+ if (!node.done) {
4308
4432
  props = [];
4309
- do
4310
- props.push(node$jscomp$0.value),
4311
- (node$jscomp$0 = childNodes.next());
4312
- while (!node$jscomp$0.done);
4433
+ do props.push(node.value), (node = childNodes.next());
4434
+ while (!node.done);
4313
4435
  renderChildrenArray(request, task, props, childIndex);
4314
4436
  }
4315
4437
  return;
4316
4438
  }
4317
- if ("function" === typeof node$jscomp$0.then)
4439
+ if ("function" === typeof node.then)
4318
4440
  return (
4319
4441
  (task.thenableState = null),
4320
- renderNodeDestructive(
4321
- request,
4322
- task,
4323
- unwrapThenable(node$jscomp$0),
4324
- childIndex
4325
- )
4442
+ renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
4326
4443
  );
4327
- if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
4444
+ if (node.$$typeof === REACT_CONTEXT_TYPE)
4328
4445
  return renderNodeDestructive(
4329
4446
  request,
4330
4447
  task,
4331
- node$jscomp$0._currentValue2,
4448
+ node._currentValue2,
4332
4449
  childIndex
4333
4450
  );
4334
- childIndex = Object.prototype.toString.call(node$jscomp$0);
4451
+ childIndex = Object.prototype.toString.call(node);
4335
4452
  throw Error(
4336
4453
  formatProdErrorMessage(
4337
4454
  31,
4338
4455
  "[object Object]" === childIndex
4339
- ? "object with keys {" + Object.keys(node$jscomp$0).join(", ") + "}"
4456
+ ? "object with keys {" + Object.keys(node).join(", ") + "}"
4340
4457
  : childIndex
4341
4458
  )
4342
4459
  );
4343
4460
  }
4344
- if ("string" === typeof node$jscomp$0)
4461
+ if ("string" === typeof node)
4345
4462
  (childIndex = task.blockedSegment),
4346
4463
  null !== childIndex &&
4347
4464
  (childIndex.lastPushedText = pushTextInstance(
4348
4465
  childIndex.chunks,
4349
- node$jscomp$0,
4466
+ node,
4350
4467
  request.renderState,
4351
4468
  childIndex.lastPushedText
4352
4469
  ));
4353
- else if (
4354
- "number" === typeof node$jscomp$0 ||
4355
- "bigint" === typeof node$jscomp$0
4356
- )
4470
+ else if ("number" === typeof node || "bigint" === typeof node)
4357
4471
  (childIndex = task.blockedSegment),
4358
4472
  null !== childIndex &&
4359
4473
  (childIndex.lastPushedText = pushTextInstance(
4360
4474
  childIndex.chunks,
4361
- "" + node$jscomp$0,
4475
+ "" + node,
4362
4476
  request.renderState,
4363
4477
  childIndex.lastPushedText
4364
4478
  ));
@@ -4394,7 +4508,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4394
4508
  )
4395
4509
  throw x;
4396
4510
  task.replay.pendingTasks--;
4397
- children = getThrownInfo(request, task.componentStack);
4511
+ children = getThrownInfo(task.componentStack);
4398
4512
  var boundary = task.blockedBoundary,
4399
4513
  error = x;
4400
4514
  children = logRecoverableError(request, error, children);
@@ -4449,9 +4563,55 @@ function untrackBoundary(request, boundary) {
4449
4563
  void 0 !== boundary &&
4450
4564
  ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
4451
4565
  }
4566
+ function spawnNewSuspendedReplayTask(request, task, thenableState) {
4567
+ return createReplayTask(
4568
+ request,
4569
+ thenableState,
4570
+ task.replay,
4571
+ task.node,
4572
+ task.childIndex,
4573
+ task.blockedBoundary,
4574
+ task.hoistableState,
4575
+ task.abortSet,
4576
+ task.keyPath,
4577
+ task.formatContext,
4578
+ task.context,
4579
+ task.treeContext,
4580
+ task.componentStack,
4581
+ task.isFallback
4582
+ );
4583
+ }
4584
+ function spawnNewSuspendedRenderTask(request, task, thenableState) {
4585
+ var segment = task.blockedSegment,
4586
+ newSegment = createPendingSegment(
4587
+ request,
4588
+ segment.chunks.length,
4589
+ null,
4590
+ task.formatContext,
4591
+ segment.lastPushedText,
4592
+ !0
4593
+ );
4594
+ segment.children.push(newSegment);
4595
+ segment.lastPushedText = !1;
4596
+ return createRenderTask(
4597
+ request,
4598
+ thenableState,
4599
+ task.node,
4600
+ task.childIndex,
4601
+ task.blockedBoundary,
4602
+ newSegment,
4603
+ task.hoistableState,
4604
+ task.abortSet,
4605
+ task.keyPath,
4606
+ task.formatContext,
4607
+ task.context,
4608
+ task.treeContext,
4609
+ task.componentStack,
4610
+ task.isFallback
4611
+ );
4612
+ }
4452
4613
  function renderNode(request, task, node, childIndex) {
4453
4614
  var previousFormatContext = task.formatContext,
4454
- previousLegacyContext = task.legacyContext,
4455
4615
  previousContext = task.context,
4456
4616
  previousKeyPath = task.keyPath,
4457
4617
  previousTreeContext = task.treeContext,
@@ -4467,37 +4627,32 @@ function renderNode(request, task, node, childIndex) {
4467
4627
  thrownValue === SuspenseException
4468
4628
  ? getSuspendedThenable()
4469
4629
  : thrownValue),
4470
- "object" === typeof node &&
4471
- null !== node &&
4472
- "function" === typeof node.then)
4630
+ "object" === typeof node && null !== node)
4473
4631
  ) {
4474
- childIndex = getThenableStateAfterSuspending();
4475
- request = createReplayTask(
4476
- request,
4477
- childIndex,
4478
- task.replay,
4479
- task.node,
4480
- task.childIndex,
4481
- task.blockedBoundary,
4482
- task.hoistableState,
4483
- task.abortSet,
4484
- task.keyPath,
4485
- task.formatContext,
4486
- task.legacyContext,
4487
- task.context,
4488
- task.treeContext,
4489
- null !== task.componentStack ? task.componentStack.parent : null,
4490
- task.isFallback
4491
- ).ping;
4492
- node.then(request, request);
4493
- task.formatContext = previousFormatContext;
4494
- task.legacyContext = previousLegacyContext;
4495
- task.context = previousContext;
4496
- task.keyPath = previousKeyPath;
4497
- task.treeContext = previousTreeContext;
4498
- task.componentStack = previousComponentStack;
4499
- switchContext(previousContext);
4500
- return;
4632
+ if ("function" === typeof node.then) {
4633
+ childIndex = getThenableStateAfterSuspending();
4634
+ request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
4635
+ node.then(request, request);
4636
+ task.formatContext = previousFormatContext;
4637
+ task.context = previousContext;
4638
+ task.keyPath = previousKeyPath;
4639
+ task.treeContext = previousTreeContext;
4640
+ task.componentStack = previousComponentStack;
4641
+ switchContext(previousContext);
4642
+ return;
4643
+ }
4644
+ if ("Maximum call stack size exceeded" === node.message) {
4645
+ node = getThenableStateAfterSuspending();
4646
+ node = spawnNewSuspendedReplayTask(request, task, node);
4647
+ request.pingedTasks.push(node);
4648
+ task.formatContext = previousFormatContext;
4649
+ task.context = previousContext;
4650
+ task.keyPath = previousKeyPath;
4651
+ task.treeContext = previousTreeContext;
4652
+ task.componentStack = previousComponentStack;
4653
+ switchContext(previousContext);
4654
+ return;
4655
+ }
4501
4656
  }
4502
4657
  }
4503
4658
  else {
@@ -4505,62 +4660,45 @@ function renderNode(request, task, node, childIndex) {
4505
4660
  chunkLength = segment.chunks.length;
4506
4661
  try {
4507
4662
  return renderNodeDestructive(request, task, node, childIndex);
4508
- } catch (thrownValue$40) {
4663
+ } catch (thrownValue$48) {
4509
4664
  if (
4510
4665
  (resetHooksState(),
4511
4666
  (segment.children.length = childrenLength),
4512
4667
  (segment.chunks.length = chunkLength),
4513
4668
  (node =
4514
- thrownValue$40 === SuspenseException
4669
+ thrownValue$48 === SuspenseException
4515
4670
  ? getSuspendedThenable()
4516
- : thrownValue$40),
4517
- "object" === typeof node &&
4518
- null !== node &&
4519
- "function" === typeof node.then)
4671
+ : thrownValue$48),
4672
+ "object" === typeof node && null !== node)
4520
4673
  ) {
4521
- childIndex = getThenableStateAfterSuspending();
4522
- segment = task.blockedSegment;
4523
- childrenLength = createPendingSegment(
4524
- request,
4525
- segment.chunks.length,
4526
- null,
4527
- task.formatContext,
4528
- segment.lastPushedText,
4529
- !0
4530
- );
4531
- segment.children.push(childrenLength);
4532
- segment.lastPushedText = !1;
4533
- request = createRenderTask(
4534
- request,
4535
- childIndex,
4536
- task.node,
4537
- task.childIndex,
4538
- task.blockedBoundary,
4539
- childrenLength,
4540
- task.hoistableState,
4541
- task.abortSet,
4542
- task.keyPath,
4543
- task.formatContext,
4544
- task.legacyContext,
4545
- task.context,
4546
- task.treeContext,
4547
- null !== task.componentStack ? task.componentStack.parent : null,
4548
- task.isFallback
4549
- ).ping;
4550
- node.then(request, request);
4551
- task.formatContext = previousFormatContext;
4552
- task.legacyContext = previousLegacyContext;
4553
- task.context = previousContext;
4554
- task.keyPath = previousKeyPath;
4555
- task.treeContext = previousTreeContext;
4556
- task.componentStack = previousComponentStack;
4557
- switchContext(previousContext);
4558
- return;
4674
+ if ("function" === typeof node.then) {
4675
+ childIndex = getThenableStateAfterSuspending();
4676
+ request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
4677
+ node.then(request, request);
4678
+ task.formatContext = previousFormatContext;
4679
+ task.context = previousContext;
4680
+ task.keyPath = previousKeyPath;
4681
+ task.treeContext = previousTreeContext;
4682
+ task.componentStack = previousComponentStack;
4683
+ switchContext(previousContext);
4684
+ return;
4685
+ }
4686
+ if ("Maximum call stack size exceeded" === node.message) {
4687
+ node = getThenableStateAfterSuspending();
4688
+ node = spawnNewSuspendedRenderTask(request, task, node);
4689
+ request.pingedTasks.push(node);
4690
+ task.formatContext = previousFormatContext;
4691
+ task.context = previousContext;
4692
+ task.keyPath = previousKeyPath;
4693
+ task.treeContext = previousTreeContext;
4694
+ task.componentStack = previousComponentStack;
4695
+ switchContext(previousContext);
4696
+ return;
4697
+ }
4559
4698
  }
4560
4699
  }
4561
4700
  }
4562
4701
  task.formatContext = previousFormatContext;
4563
- task.legacyContext = previousLegacyContext;
4564
4702
  task.context = previousContext;
4565
4703
  task.keyPath = previousKeyPath;
4566
4704
  task.treeContext = previousTreeContext;
@@ -4618,26 +4756,30 @@ function abortRemainingReplayNodes(
4618
4756
  function abortTask(task, request, error) {
4619
4757
  var boundary = task.blockedBoundary,
4620
4758
  segment = task.blockedSegment;
4621
- null !== segment && (segment.status = 3);
4759
+ if (null !== segment) {
4760
+ if (6 === segment.status) return;
4761
+ segment.status = 3;
4762
+ }
4763
+ segment = getThrownInfo(task.componentStack);
4622
4764
  if (null === boundary) {
4623
- if (((boundary = {}), 1 !== request.status && 2 !== request.status)) {
4624
- task = task.replay;
4625
- if (null === task) {
4626
- logRecoverableError(request, error, boundary);
4765
+ if (13 !== request.status && 14 !== request.status) {
4766
+ boundary = task.replay;
4767
+ if (null === boundary) {
4768
+ logRecoverableError(request, error, segment);
4627
4769
  fatalError(request, error);
4628
4770
  return;
4629
4771
  }
4630
- task.pendingTasks--;
4631
- 0 === task.pendingTasks &&
4632
- 0 < task.nodes.length &&
4633
- ((boundary = logRecoverableError(request, error, boundary)),
4772
+ boundary.pendingTasks--;
4773
+ 0 === boundary.pendingTasks &&
4774
+ 0 < boundary.nodes.length &&
4775
+ ((task = logRecoverableError(request, error, segment)),
4634
4776
  abortRemainingReplayNodes(
4635
4777
  request,
4636
4778
  null,
4637
- task.nodes,
4638
- task.slots,
4779
+ boundary.nodes,
4780
+ boundary.slots,
4639
4781
  error,
4640
- boundary
4782
+ task
4641
4783
  ));
4642
4784
  request.pendingRootTasks--;
4643
4785
  0 === request.pendingRootTasks && completeShell(request);
@@ -4646,8 +4788,8 @@ function abortTask(task, request, error) {
4646
4788
  boundary.pendingTasks--,
4647
4789
  4 !== boundary.status &&
4648
4790
  ((boundary.status = 4),
4649
- (task = getThrownInfo(request, task.componentStack)),
4650
- (task = logRecoverableError(request, error, task)),
4791
+ (task = logRecoverableError(request, error, segment)),
4792
+ (boundary.status = 4),
4651
4793
  (boundary.errorDigest = task),
4652
4794
  untrackBoundary(request, boundary),
4653
4795
  boundary.parentFlushed &&
@@ -4701,7 +4843,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
4701
4843
  referrerPolicy: props$jscomp$0.referrerPolicy,
4702
4844
  media: props$jscomp$0.media
4703
4845
  });
4704
- if (2 <= (headers.remainingCapacity -= header.length))
4846
+ if (0 <= (headers.remainingCapacity -= header.length + 2))
4705
4847
  (renderState.resets.style[key] = PRELOAD_NO_CREDS),
4706
4848
  linkHeader && (linkHeader += ", "),
4707
4849
  (linkHeader += header),
@@ -4784,7 +4926,7 @@ function finishedTask(request, boundary, segment) {
4784
4926
  0 === request.allPendingTasks && completeAll(request);
4785
4927
  }
4786
4928
  function performWork(request$jscomp$2) {
4787
- if (2 !== request$jscomp$2.status) {
4929
+ if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
4788
4930
  var prevContext = currentActiveSnapshot,
4789
4931
  prevDispatcher = ReactSharedInternals.H;
4790
4932
  ReactSharedInternals.H = HooksDispatcher;
@@ -4806,12 +4948,15 @@ function performWork(request$jscomp$2) {
4806
4948
  if (0 !== task.replay.pendingTasks) {
4807
4949
  switchContext(task.context);
4808
4950
  try {
4809
- renderNodeDestructive(
4810
- request$jscomp$0,
4811
- task,
4812
- task.node,
4813
- task.childIndex
4814
- );
4951
+ "number" === typeof task.replay.slots
4952
+ ? resumeNode(
4953
+ request$jscomp$0,
4954
+ task,
4955
+ task.replay.slots,
4956
+ task.node,
4957
+ task.childIndex
4958
+ )
4959
+ : retryNode(request$jscomp$0, task);
4815
4960
  if (
4816
4961
  1 === task.replay.pendingTasks &&
4817
4962
  0 < task.replay.nodes.length
@@ -4834,19 +4979,17 @@ function performWork(request$jscomp$2) {
4834
4979
  var ping = task.ping;
4835
4980
  x.then(ping, ping);
4836
4981
  task.thenableState = getThenableStateAfterSuspending();
4837
- null !== task.componentStack &&
4838
- (task.componentStack = task.componentStack.parent);
4839
4982
  } else {
4840
4983
  task.replay.pendingTasks--;
4841
4984
  task.abortSet.delete(task);
4842
- var errorInfo = getThrownInfo(
4843
- request$jscomp$0,
4844
- task.componentStack
4845
- );
4985
+ var errorInfo = getThrownInfo(task.componentStack);
4846
4986
  request = void 0;
4847
4987
  var request$jscomp$1 = request$jscomp$0,
4848
4988
  boundary = task.blockedBoundary,
4849
- error$jscomp$0 = x,
4989
+ error$jscomp$0 =
4990
+ 12 === request$jscomp$0.status
4991
+ ? request$jscomp$0.fatalError
4992
+ : x,
4850
4993
  replayNodes = task.replay.nodes,
4851
4994
  resumeSlots = task.replay.slots;
4852
4995
  request = logRecoverableError(
@@ -4877,15 +5020,18 @@ function performWork(request$jscomp$2) {
4877
5020
  (request$jscomp$1 = segment),
4878
5021
  0 === request$jscomp$1.status)
4879
5022
  ) {
5023
+ request$jscomp$1.status = 6;
4880
5024
  switchContext(task.context);
4881
5025
  var childrenLength = request$jscomp$1.children.length,
4882
5026
  chunkLength = request$jscomp$1.chunks.length;
4883
5027
  try {
4884
- renderNodeDestructive(request, task, task.node, task.childIndex),
4885
- request.renderState.generateStaticMarkup ||
4886
- (request$jscomp$1.lastPushedText &&
4887
- request$jscomp$1.textEmbedded &&
4888
- request$jscomp$1.chunks.push("\x3c!-- --\x3e")),
5028
+ retryNode(request, task),
5029
+ pushSegmentFinale(
5030
+ request$jscomp$1.chunks,
5031
+ request.renderState,
5032
+ request$jscomp$1.lastPushedText,
5033
+ request$jscomp$1.textEmbedded
5034
+ ),
4889
5035
  task.abortSet.delete(task),
4890
5036
  (request$jscomp$1.status = 1),
4891
5037
  finishedTask(request, task.blockedBoundary, request$jscomp$1);
@@ -4896,22 +5042,20 @@ function performWork(request$jscomp$2) {
4896
5042
  var x$jscomp$0 =
4897
5043
  thrownValue === SuspenseException
4898
5044
  ? getSuspendedThenable()
4899
- : thrownValue;
5045
+ : 12 === request.status
5046
+ ? request.fatalError
5047
+ : thrownValue;
4900
5048
  if (
4901
5049
  "object" === typeof x$jscomp$0 &&
4902
5050
  null !== x$jscomp$0 &&
4903
5051
  "function" === typeof x$jscomp$0.then
4904
5052
  ) {
5053
+ request$jscomp$1.status = 0;
5054
+ task.thenableState = getThenableStateAfterSuspending();
4905
5055
  var ping$jscomp$0 = task.ping;
4906
5056
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
4907
- task.thenableState = getThenableStateAfterSuspending();
4908
- null !== task.componentStack &&
4909
- (task.componentStack = task.componentStack.parent);
4910
5057
  } else {
4911
- var errorInfo$jscomp$0 = getThrownInfo(
4912
- request,
4913
- task.componentStack
4914
- );
5058
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
4915
5059
  task.abortSet.delete(task);
4916
5060
  request$jscomp$1.status = 4;
4917
5061
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5098,20 +5242,20 @@ function flushCompletedBoundary(request, destination, boundary) {
5098
5242
  ? 0 === (completedSegments.instructions & 2)
5099
5243
  ? ((completedSegments.instructions |= 10),
5100
5244
  destination.push(
5101
- '$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(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'
5245
+ '$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("'
5102
5246
  ))
5103
5247
  : 0 === (completedSegments.instructions & 8)
5104
- ? ((completedSegments.instructions |= 8),
5248
+ ? ((completedSegments.instructions |= 8),
5249
+ destination.push(
5250
+ '$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("'
5251
+ ))
5252
+ : destination.push('$RR("')
5253
+ : 0 === (completedSegments.instructions & 2)
5254
+ ? ((completedSegments.instructions |= 2),
5105
5255
  destination.push(
5106
- '$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'
5256
+ '$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("'
5107
5257
  ))
5108
- : destination.push('$RR("')
5109
- : 0 === (completedSegments.instructions & 2)
5110
- ? ((completedSegments.instructions |= 2),
5111
- destination.push(
5112
- '$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("'
5113
- ))
5114
- : destination.push('$RC("');
5258
+ : destination.push('$RC("');
5115
5259
  completedSegments = i.toString(16);
5116
5260
  destination.push(request.boundaryPrefix);
5117
5261
  destination.push(completedSegments);
@@ -5302,11 +5446,11 @@ function flushCompletedQueues(request, destination) {
5302
5446
  completedBoundaries.splice(0, i);
5303
5447
  var partialBoundaries = request.partialBoundaries;
5304
5448
  for (i = 0; i < partialBoundaries.length; i++) {
5305
- var boundary$44 = partialBoundaries[i];
5449
+ var boundary$51 = partialBoundaries[i];
5306
5450
  a: {
5307
5451
  clientRenderedBoundaries = request;
5308
5452
  boundary = destination;
5309
- var completedSegments = boundary$44.completedSegments;
5453
+ var completedSegments = boundary$51.completedSegments;
5310
5454
  for (
5311
5455
  JSCompiler_inline_result = 0;
5312
5456
  JSCompiler_inline_result < completedSegments.length;
@@ -5316,7 +5460,7 @@ function flushCompletedQueues(request, destination) {
5316
5460
  !flushPartiallyCompletedSegment(
5317
5461
  clientRenderedBoundaries,
5318
5462
  boundary,
5319
- boundary$44,
5463
+ boundary$51,
5320
5464
  completedSegments[JSCompiler_inline_result]
5321
5465
  )
5322
5466
  ) {
@@ -5328,7 +5472,7 @@ function flushCompletedQueues(request, destination) {
5328
5472
  completedSegments.splice(0, JSCompiler_inline_result);
5329
5473
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
5330
5474
  boundary,
5331
- boundary$44.contentState,
5475
+ boundary$51.contentState,
5332
5476
  clientRenderedBoundaries.renderState
5333
5477
  );
5334
5478
  }
@@ -5361,6 +5505,7 @@ function flushCompletedQueues(request, destination) {
5361
5505
  ((partialBoundaries = endChunkForTag("body")),
5362
5506
  destination.push(partialBoundaries)),
5363
5507
  i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
5508
+ (request.status = 14),
5364
5509
  destination.push(null),
5365
5510
  (request.destination = null));
5366
5511
  }
@@ -5379,9 +5524,9 @@ function enqueueFlush(request) {
5379
5524
  }
5380
5525
  }
5381
5526
  function startFlowing(request, destination) {
5382
- if (1 === request.status)
5383
- (request.status = 2), destination.destroy(request.fatalError);
5384
- else if (2 !== request.status && null === request.destination) {
5527
+ if (13 === request.status)
5528
+ (request.status = 14), destination.destroy(request.fatalError);
5529
+ else if (14 !== request.status && null === request.destination) {
5385
5530
  request.destination = destination;
5386
5531
  try {
5387
5532
  flushCompletedQueues(request, destination);
@@ -5391,11 +5536,19 @@ function startFlowing(request, destination) {
5391
5536
  }
5392
5537
  }
5393
5538
  function abort(request, reason) {
5539
+ if (11 === request.status || 10 === request.status) request.status = 12;
5394
5540
  try {
5395
5541
  var abortableTasks = request.abortableTasks;
5396
5542
  if (0 < abortableTasks.size) {
5397
5543
  var error =
5398
- void 0 === reason ? Error(formatProdErrorMessage(432)) : reason;
5544
+ void 0 === reason
5545
+ ? Error(formatProdErrorMessage(432))
5546
+ : "object" === typeof reason &&
5547
+ null !== reason &&
5548
+ "function" === typeof reason.then
5549
+ ? Error(formatProdErrorMessage(530))
5550
+ : reason;
5551
+ request.fatalError = error;
5399
5552
  abortableTasks.forEach(function (task) {
5400
5553
  return abortTask(task, request, error);
5401
5554
  });
@@ -5403,8 +5556,8 @@ function abort(request, reason) {
5403
5556
  }
5404
5557
  null !== request.destination &&
5405
5558
  flushCompletedQueues(request, request.destination);
5406
- } catch (error$46) {
5407
- logRecoverableError(request, error$46, {}), fatalError(request, error$46);
5559
+ } catch (error$53) {
5560
+ logRecoverableError(request, error$53, {}), fatalError(request, error$53);
5408
5561
  }
5409
5562
  }
5410
5563
  function onError() {}
@@ -5436,6 +5589,7 @@ function renderToStringImpl(
5436
5589
  );
5437
5590
  children.flushScheduled = null !== children.destination;
5438
5591
  performWork(children);
5592
+ 10 === children.status && (children.status = 11);
5439
5593
  null === children.trackedPostpones &&
5440
5594
  safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
5441
5595
  abort(children, abortReason);