react-server-dom-webpack 19.0.0-rc-df5f2736-20240712 → 19.0.0-rc-01172397-20240716

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.
@@ -22,36 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function warn(format) {
26
- for (
27
- var _len = arguments.length,
28
- args = Array(1 < _len ? _len - 1 : 0),
29
- _key = 1;
30
- _key < _len;
31
- _key++
32
- )
33
- args[_key - 1] = arguments[_key];
34
- printWarning("warn", format, args, Error("react-stack-top-frame"));
35
- }
36
- function error$jscomp$0(format) {
37
- for (
38
- var _len2 = arguments.length,
39
- args = Array(1 < _len2 ? _len2 - 1 : 0),
40
- _key2 = 1;
41
- _key2 < _len2;
42
- _key2++
43
- )
44
- args[_key2 - 1] = arguments[_key2];
45
- printWarning("error", format, args, Error("react-stack-top-frame"));
46
- }
47
- function printWarning(level, format, args, currentStack) {
48
- ReactSharedInternals.getCurrentStack &&
49
- ((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
50
- "" !== currentStack &&
51
- ((format += "%s"), (args = args.concat([currentStack]))));
52
- args.unshift(format);
53
- Function.prototype.apply.call(console[level], console, args);
54
- }
55
25
  function resolveClientReference(bundlerConfig, metadata) {
56
26
  if (bundlerConfig) {
57
27
  var moduleExports = bundlerConfig[metadata[0]];
@@ -441,12 +411,12 @@
441
411
  originalValue === value ||
442
412
  originalValue instanceof Date ||
443
413
  ("Object" !== objectName(originalValue)
444
- ? error$jscomp$0(
414
+ ? console.error(
445
415
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
446
416
  objectName(originalValue),
447
417
  describeObjectForErrorMessage(this, key)
448
418
  )
449
- : error$jscomp$0(
419
+ : console.error(
450
420
  "Only plain objects can be passed to Server Functions from the Client. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
451
421
  describeObjectForErrorMessage(this, key)
452
422
  ));
@@ -635,12 +605,12 @@
635
605
  return "$T";
636
606
  }
637
607
  value.$$typeof === REACT_CONTEXT_TYPE
638
- ? error$jscomp$0(
608
+ ? console.error(
639
609
  "React Context Providers cannot be passed to Server Functions from the Client.%s",
640
610
  describeObjectForErrorMessage(this, key)
641
611
  )
642
612
  : "Object" !== objectName(value)
643
- ? error$jscomp$0(
613
+ ? console.error(
644
614
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
645
615
  objectName(value),
646
616
  describeObjectForErrorMessage(this, key)
@@ -649,12 +619,12 @@
649
619
  ? Object.getOwnPropertySymbols &&
650
620
  ((parentReference = Object.getOwnPropertySymbols(value)),
651
621
  0 < parentReference.length &&
652
- error$jscomp$0(
622
+ console.error(
653
623
  "Only plain objects can be passed to Server Functions from the Client. Objects with symbol properties like %s are not supported.%s",
654
624
  parentReference[0].description,
655
625
  describeObjectForErrorMessage(this, key)
656
626
  ))
657
- : error$jscomp$0(
627
+ : console.error(
658
628
  "Only plain objects can be passed to Server Functions from the Client. Classes or other objects with methods are not supported.%s",
659
629
  describeObjectForErrorMessage(this, key)
660
630
  );
@@ -761,7 +731,7 @@
761
731
  if ("object" === typeof type)
762
732
  switch (
763
733
  ("number" === typeof type.tag &&
764
- error$jscomp$0(
734
+ console.error(
765
735
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
766
736
  ),
767
737
  type.$$typeof)
@@ -924,8 +894,8 @@
924
894
  }
925
895
  chunk.status = "fulfilled";
926
896
  chunk.value = value;
927
- } catch (error$1) {
928
- (chunk.status = "rejected"), (chunk.reason = error$1);
897
+ } catch (error) {
898
+ (chunk.status = "rejected"), (chunk.reason = error);
929
899
  } finally {
930
900
  initializingHandler = prevHandler;
931
901
  }
@@ -948,8 +918,8 @@
948
918
  : moduleExports[metadata[2]];
949
919
  chunk.status = "fulfilled";
950
920
  chunk.value = value;
951
- } catch (error$2) {
952
- (chunk.status = "rejected"), (chunk.reason = error$2);
921
+ } catch (error) {
922
+ (chunk.status = "rejected"), (chunk.reason = error);
953
923
  }
954
924
  }
955
925
  function reportGlobalError(response, error) {
@@ -1715,11 +1685,7 @@
1715
1685
  " " + id + " ",
1716
1686
  ""
1717
1687
  );
1718
- "error" === response
1719
- ? error$jscomp$0.apply(console, tag)
1720
- : "warn" === response
1721
- ? warn.apply(console, tag)
1722
- : console[response].apply(console, tag);
1688
+ console[response].apply(console, tag);
1723
1689
  }
1724
1690
  break;
1725
1691
  case 82:
@@ -1921,11 +1887,8 @@
1921
1887
  var reader = stream.getReader();
1922
1888
  reader.read().then(progress).catch(error);
1923
1889
  }
1924
- var React = require("react"),
1925
- ReactDOM = require("react-dom"),
1890
+ var ReactDOM = require("react-dom"),
1926
1891
  decoderOptions = { stream: !0 },
1927
- ReactSharedInternals =
1928
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1929
1892
  chunkCache = new Map(),
1930
1893
  chunkMap = new Map(),
1931
1894
  webpackGetChunkFilename = __webpack_require__.u;
@@ -22,36 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function warn(format) {
26
- for (
27
- var _len = arguments.length,
28
- args = Array(1 < _len ? _len - 1 : 0),
29
- _key = 1;
30
- _key < _len;
31
- _key++
32
- )
33
- args[_key - 1] = arguments[_key];
34
- printWarning("warn", format, args, Error("react-stack-top-frame"));
35
- }
36
- function error$jscomp$0(format) {
37
- for (
38
- var _len2 = arguments.length,
39
- args = Array(1 < _len2 ? _len2 - 1 : 0),
40
- _key2 = 1;
41
- _key2 < _len2;
42
- _key2++
43
- )
44
- args[_key2 - 1] = arguments[_key2];
45
- printWarning("error", format, args, Error("react-stack-top-frame"));
46
- }
47
- function printWarning(level, format, args, currentStack) {
48
- ReactSharedInternals.getCurrentStack &&
49
- ((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
50
- "" !== currentStack &&
51
- ((format += "%s"), (args = args.concat([currentStack]))));
52
- args.unshift(format);
53
- Function.prototype.apply.call(console[level], console, args);
54
- }
55
25
  function resolveClientReference(bundlerConfig, metadata) {
56
26
  if (bundlerConfig) {
57
27
  var moduleExports = bundlerConfig[metadata[0]];
@@ -462,12 +432,12 @@
462
432
  originalValue === value ||
463
433
  originalValue instanceof Date ||
464
434
  ("Object" !== objectName(originalValue)
465
- ? error$jscomp$0(
435
+ ? console.error(
466
436
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
467
437
  objectName(originalValue),
468
438
  describeObjectForErrorMessage(this, key)
469
439
  )
470
- : error$jscomp$0(
440
+ : console.error(
471
441
  "Only plain objects can be passed to Server Functions from the Client. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
472
442
  describeObjectForErrorMessage(this, key)
473
443
  ));
@@ -656,12 +626,12 @@
656
626
  return "$T";
657
627
  }
658
628
  value.$$typeof === REACT_CONTEXT_TYPE
659
- ? error$jscomp$0(
629
+ ? console.error(
660
630
  "React Context Providers cannot be passed to Server Functions from the Client.%s",
661
631
  describeObjectForErrorMessage(this, key)
662
632
  )
663
633
  : "Object" !== objectName(value)
664
- ? error$jscomp$0(
634
+ ? console.error(
665
635
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
666
636
  objectName(value),
667
637
  describeObjectForErrorMessage(this, key)
@@ -670,12 +640,12 @@
670
640
  ? Object.getOwnPropertySymbols &&
671
641
  ((parentReference = Object.getOwnPropertySymbols(value)),
672
642
  0 < parentReference.length &&
673
- error$jscomp$0(
643
+ console.error(
674
644
  "Only plain objects can be passed to Server Functions from the Client. Objects with symbol properties like %s are not supported.%s",
675
645
  parentReference[0].description,
676
646
  describeObjectForErrorMessage(this, key)
677
647
  ))
678
- : error$jscomp$0(
648
+ : console.error(
679
649
  "Only plain objects can be passed to Server Functions from the Client. Classes or other objects with methods are not supported.%s",
680
650
  describeObjectForErrorMessage(this, key)
681
651
  );
@@ -877,7 +847,7 @@
877
847
  reference = knownServerReferences.get(this);
878
848
  if (reference) {
879
849
  null != arguments[0] &&
880
- error$jscomp$0(
850
+ console.error(
881
851
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
882
852
  );
883
853
  var args = ArraySlice.call(arguments, 1),
@@ -932,7 +902,7 @@
932
902
  if ("object" === typeof type)
933
903
  switch (
934
904
  ("number" === typeof type.tag &&
935
- error$jscomp$0(
905
+ console.error(
936
906
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
937
907
  ),
938
908
  type.$$typeof)
@@ -1095,8 +1065,8 @@
1095
1065
  }
1096
1066
  chunk.status = "fulfilled";
1097
1067
  chunk.value = value;
1098
- } catch (error$1) {
1099
- (chunk.status = "rejected"), (chunk.reason = error$1);
1068
+ } catch (error) {
1069
+ (chunk.status = "rejected"), (chunk.reason = error);
1100
1070
  } finally {
1101
1071
  initializingHandler = prevHandler;
1102
1072
  }
@@ -1119,8 +1089,8 @@
1119
1089
  : moduleExports[metadata[2]];
1120
1090
  chunk.status = "fulfilled";
1121
1091
  chunk.value = value;
1122
- } catch (error$2) {
1123
- (chunk.status = "rejected"), (chunk.reason = error$2);
1092
+ } catch (error) {
1093
+ (chunk.status = "rejected"), (chunk.reason = error);
1124
1094
  }
1125
1095
  }
1126
1096
  function reportGlobalError(response, error) {
@@ -1891,11 +1861,7 @@
1891
1861
  " " + id + " ",
1892
1862
  ""
1893
1863
  );
1894
- "error" === response
1895
- ? error$jscomp$0.apply(console, tag)
1896
- : "warn" === response
1897
- ? warn.apply(console, tag)
1898
- : console[response].apply(console, tag);
1864
+ console[response].apply(console, tag);
1899
1865
  }
1900
1866
  break;
1901
1867
  case 82:
@@ -2102,11 +2068,8 @@
2102
2068
  var reader = stream.getReader();
2103
2069
  reader.read().then(progress).catch(error);
2104
2070
  }
2105
- var React = require("react"),
2106
- ReactDOM = require("react-dom"),
2071
+ var ReactDOM = require("react-dom"),
2107
2072
  decoderOptions = { stream: !0 },
2108
- ReactSharedInternals =
2109
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2110
2073
  chunkCache = new Map(),
2111
2074
  ReactDOMSharedInternals =
2112
2075
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -22,36 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function warn(format) {
26
- for (
27
- var _len = arguments.length,
28
- args = Array(1 < _len ? _len - 1 : 0),
29
- _key = 1;
30
- _key < _len;
31
- _key++
32
- )
33
- args[_key - 1] = arguments[_key];
34
- printWarning("warn", format, args, Error("react-stack-top-frame"));
35
- }
36
- function error$jscomp$0(format) {
37
- for (
38
- var _len2 = arguments.length,
39
- args = Array(1 < _len2 ? _len2 - 1 : 0),
40
- _key2 = 1;
41
- _key2 < _len2;
42
- _key2++
43
- )
44
- args[_key2 - 1] = arguments[_key2];
45
- printWarning("error", format, args, Error("react-stack-top-frame"));
46
- }
47
- function printWarning(level, format, args, currentStack) {
48
- ReactSharedInternals.getCurrentStack &&
49
- ((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
50
- "" !== currentStack &&
51
- ((format += "%s"), (args = args.concat([currentStack]))));
52
- args.unshift(format);
53
- Function.prototype.apply.call(console[level], console, args);
54
- }
55
25
  function resolveClientReference(bundlerConfig, metadata) {
56
26
  if (bundlerConfig) {
57
27
  var moduleExports = bundlerConfig[metadata[0]];
@@ -462,12 +432,12 @@
462
432
  originalValue === value ||
463
433
  originalValue instanceof Date ||
464
434
  ("Object" !== objectName(originalValue)
465
- ? error$jscomp$0(
435
+ ? console.error(
466
436
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
467
437
  objectName(originalValue),
468
438
  describeObjectForErrorMessage(this, key)
469
439
  )
470
- : error$jscomp$0(
440
+ : console.error(
471
441
  "Only plain objects can be passed to Server Functions from the Client. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
472
442
  describeObjectForErrorMessage(this, key)
473
443
  ));
@@ -656,12 +626,12 @@
656
626
  return "$T";
657
627
  }
658
628
  value.$$typeof === REACT_CONTEXT_TYPE
659
- ? error$jscomp$0(
629
+ ? console.error(
660
630
  "React Context Providers cannot be passed to Server Functions from the Client.%s",
661
631
  describeObjectForErrorMessage(this, key)
662
632
  )
663
633
  : "Object" !== objectName(value)
664
- ? error$jscomp$0(
634
+ ? console.error(
665
635
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
666
636
  objectName(value),
667
637
  describeObjectForErrorMessage(this, key)
@@ -670,12 +640,12 @@
670
640
  ? Object.getOwnPropertySymbols &&
671
641
  ((parentReference = Object.getOwnPropertySymbols(value)),
672
642
  0 < parentReference.length &&
673
- error$jscomp$0(
643
+ console.error(
674
644
  "Only plain objects can be passed to Server Functions from the Client. Objects with symbol properties like %s are not supported.%s",
675
645
  parentReference[0].description,
676
646
  describeObjectForErrorMessage(this, key)
677
647
  ))
678
- : error$jscomp$0(
648
+ : console.error(
679
649
  "Only plain objects can be passed to Server Functions from the Client. Classes or other objects with methods are not supported.%s",
680
650
  describeObjectForErrorMessage(this, key)
681
651
  );
@@ -877,7 +847,7 @@
877
847
  reference = knownServerReferences.get(this);
878
848
  if (reference) {
879
849
  null != arguments[0] &&
880
- error$jscomp$0(
850
+ console.error(
881
851
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
882
852
  );
883
853
  var args = ArraySlice.call(arguments, 1),
@@ -932,7 +902,7 @@
932
902
  if ("object" === typeof type)
933
903
  switch (
934
904
  ("number" === typeof type.tag &&
935
- error$jscomp$0(
905
+ console.error(
936
906
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
937
907
  ),
938
908
  type.$$typeof)
@@ -1095,8 +1065,8 @@
1095
1065
  }
1096
1066
  chunk.status = "fulfilled";
1097
1067
  chunk.value = value;
1098
- } catch (error$1) {
1099
- (chunk.status = "rejected"), (chunk.reason = error$1);
1068
+ } catch (error) {
1069
+ (chunk.status = "rejected"), (chunk.reason = error);
1100
1070
  } finally {
1101
1071
  initializingHandler = prevHandler;
1102
1072
  }
@@ -1119,8 +1089,8 @@
1119
1089
  : moduleExports[metadata[2]];
1120
1090
  chunk.status = "fulfilled";
1121
1091
  chunk.value = value;
1122
- } catch (error$2) {
1123
- (chunk.status = "rejected"), (chunk.reason = error$2);
1092
+ } catch (error) {
1093
+ (chunk.status = "rejected"), (chunk.reason = error);
1124
1094
  }
1125
1095
  }
1126
1096
  function reportGlobalError(response, error) {
@@ -1894,11 +1864,7 @@
1894
1864
  " " + id + " ",
1895
1865
  ""
1896
1866
  );
1897
- "error" === response
1898
- ? error$jscomp$0.apply(console, tag)
1899
- : "warn" === response
1900
- ? warn.apply(console, tag)
1901
- : console[response].apply(console, tag);
1867
+ console[response].apply(console, tag);
1902
1868
  }
1903
1869
  break;
1904
1870
  case 82:
@@ -1993,11 +1959,8 @@
1993
1959
  );
1994
1960
  }
1995
1961
  var util = require("util"),
1996
- React = require("react"),
1997
1962
  ReactDOM = require("react-dom"),
1998
1963
  decoderOptions = { stream: !0 },
1999
- ReactSharedInternals =
2000
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2001
1964
  chunkCache = new Map(),
2002
1965
  ReactDOMSharedInternals =
2003
1966
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -22,36 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function warn(format) {
26
- for (
27
- var _len = arguments.length,
28
- args = Array(1 < _len ? _len - 1 : 0),
29
- _key = 1;
30
- _key < _len;
31
- _key++
32
- )
33
- args[_key - 1] = arguments[_key];
34
- printWarning("warn", format, args, Error("react-stack-top-frame"));
35
- }
36
- function error$jscomp$0(format) {
37
- for (
38
- var _len2 = arguments.length,
39
- args = Array(1 < _len2 ? _len2 - 1 : 0),
40
- _key2 = 1;
41
- _key2 < _len2;
42
- _key2++
43
- )
44
- args[_key2 - 1] = arguments[_key2];
45
- printWarning("error", format, args, Error("react-stack-top-frame"));
46
- }
47
- function printWarning(level, format, args, currentStack) {
48
- ReactSharedInternals.getCurrentStack &&
49
- ((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
50
- "" !== currentStack &&
51
- ((format += "%s"), (args = args.concat([currentStack]))));
52
- args.unshift(format);
53
- Function.prototype.apply.call(console[level], console, args);
54
- }
55
25
  function resolveClientReference(bundlerConfig, metadata) {
56
26
  var moduleExports = bundlerConfig[metadata[0]];
57
27
  if ((bundlerConfig = moduleExports[metadata[2]]))
@@ -441,12 +411,12 @@
441
411
  originalValue === value ||
442
412
  originalValue instanceof Date ||
443
413
  ("Object" !== objectName(originalValue)
444
- ? error$jscomp$0(
414
+ ? console.error(
445
415
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
446
416
  objectName(originalValue),
447
417
  describeObjectForErrorMessage(this, key)
448
418
  )
449
- : error$jscomp$0(
419
+ : console.error(
450
420
  "Only plain objects can be passed to Server Functions from the Client. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
451
421
  describeObjectForErrorMessage(this, key)
452
422
  ));
@@ -635,12 +605,12 @@
635
605
  return "$T";
636
606
  }
637
607
  value.$$typeof === REACT_CONTEXT_TYPE
638
- ? error$jscomp$0(
608
+ ? console.error(
639
609
  "React Context Providers cannot be passed to Server Functions from the Client.%s",
640
610
  describeObjectForErrorMessage(this, key)
641
611
  )
642
612
  : "Object" !== objectName(value)
643
- ? error$jscomp$0(
613
+ ? console.error(
644
614
  "Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s",
645
615
  objectName(value),
646
616
  describeObjectForErrorMessage(this, key)
@@ -649,12 +619,12 @@
649
619
  ? Object.getOwnPropertySymbols &&
650
620
  ((parentReference = Object.getOwnPropertySymbols(value)),
651
621
  0 < parentReference.length &&
652
- error$jscomp$0(
622
+ console.error(
653
623
  "Only plain objects can be passed to Server Functions from the Client. Objects with symbol properties like %s are not supported.%s",
654
624
  parentReference[0].description,
655
625
  describeObjectForErrorMessage(this, key)
656
626
  ))
657
- : error$jscomp$0(
627
+ : console.error(
658
628
  "Only plain objects can be passed to Server Functions from the Client. Classes or other objects with methods are not supported.%s",
659
629
  describeObjectForErrorMessage(this, key)
660
630
  );
@@ -856,7 +826,7 @@
856
826
  reference = knownServerReferences.get(this);
857
827
  if (reference) {
858
828
  null != arguments[0] &&
859
- error$jscomp$0(
829
+ console.error(
860
830
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
861
831
  );
862
832
  var args = ArraySlice.call(arguments, 1),
@@ -911,7 +881,7 @@
911
881
  if ("object" === typeof type)
912
882
  switch (
913
883
  ("number" === typeof type.tag &&
914
- error$jscomp$0(
884
+ console.error(
915
885
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
916
886
  ),
917
887
  type.$$typeof)
@@ -1074,8 +1044,8 @@
1074
1044
  }
1075
1045
  chunk.status = "fulfilled";
1076
1046
  chunk.value = value;
1077
- } catch (error$1) {
1078
- (chunk.status = "rejected"), (chunk.reason = error$1);
1047
+ } catch (error) {
1048
+ (chunk.status = "rejected"), (chunk.reason = error);
1079
1049
  } finally {
1080
1050
  initializingHandler = prevHandler;
1081
1051
  }
@@ -1094,8 +1064,8 @@
1094
1064
  : moduleExports[metadata.name];
1095
1065
  chunk.status = "fulfilled";
1096
1066
  chunk.value = value;
1097
- } catch (error$2) {
1098
- (chunk.status = "rejected"), (chunk.reason = error$2);
1067
+ } catch (error) {
1068
+ (chunk.status = "rejected"), (chunk.reason = error);
1099
1069
  }
1100
1070
  }
1101
1071
  function reportGlobalError(response, error) {
@@ -1869,11 +1839,7 @@
1869
1839
  " " + id + " ",
1870
1840
  ""
1871
1841
  );
1872
- "error" === response
1873
- ? error$jscomp$0.apply(console, tag)
1874
- : "warn" === response
1875
- ? warn.apply(console, tag)
1876
- : console[response].apply(console, tag);
1842
+ console[response].apply(console, tag);
1877
1843
  }
1878
1844
  break;
1879
1845
  case 82:
@@ -1968,11 +1934,8 @@
1968
1934
  );
1969
1935
  }
1970
1936
  var util = require("util"),
1971
- React = require("react"),
1972
1937
  ReactDOM = require("react-dom"),
1973
1938
  decoderOptions = { stream: !0 },
1974
- ReactSharedInternals =
1975
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1976
1939
  asyncModuleCache = new Map(),
1977
1940
  ReactDOMSharedInternals =
1978
1941
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -22,23 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function error$jscomp$0(format) {
26
- for (
27
- var _len2 = arguments.length,
28
- args = Array(1 < _len2 ? _len2 - 1 : 0),
29
- _key2 = 1;
30
- _key2 < _len2;
31
- _key2++
32
- )
33
- args[_key2 - 1] = arguments[_key2];
34
- _len2 = format;
35
- _key2 = Error("react-stack-top-frame");
36
- ReactSharedInternalsServer.getCurrentStack &&
37
- ((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
38
- "" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
39
- args.unshift(_len2);
40
- Function.prototype.apply.call(console.error, console, args);
41
- }
42
25
  function scheduleWork(callback) {
43
26
  taskQueue.push(callback);
44
27
  channel.port2.postMessage(null);
@@ -98,7 +81,7 @@
98
81
  var newFn = FunctionBind.apply(this, arguments);
99
82
  if (this.$$typeof === SERVER_REFERENCE_TAG) {
100
83
  null != arguments[0] &&
101
- error$jscomp$0(
84
+ console.error(
102
85
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
103
86
  );
104
87
  var args = ArraySlice.call(arguments, 1);
@@ -858,7 +841,7 @@
858
841
  "[object Generator]" ===
859
842
  Object.prototype.toString.call(iterableChild)) ||
860
843
  callWithDebugContextInDEV(task, function () {
861
- error$jscomp$0(
844
+ console.error(
862
845
  "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
863
846
  );
864
847
  });
@@ -881,7 +864,7 @@
881
864
  "[object AsyncGenerator]" ===
882
865
  Object.prototype.toString.call(_iterableChild)) ||
883
866
  callWithDebugContextInDEV(task, function () {
884
- error$jscomp$0(
867
+ console.error(
885
868
  "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
886
869
  );
887
870
  });
@@ -1053,17 +1036,17 @@
1053
1036
  callWithDebugContextInDEV(task, function () {
1054
1037
  "Object" !== objectName(originalValue)
1055
1038
  ? "string" === typeof jsxChildrenParents.get(parent)
1056
- ? error$jscomp$0(
1039
+ ? console.error(
1057
1040
  "%s objects cannot be rendered as text children. Try formatting it using toString().%s",
1058
1041
  objectName(originalValue),
1059
1042
  describeObjectForErrorMessage(parent, parentPropertyName)
1060
1043
  )
1061
- : error$jscomp$0(
1044
+ : console.error(
1062
1045
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1063
1046
  objectName(originalValue),
1064
1047
  describeObjectForErrorMessage(parent, parentPropertyName)
1065
1048
  )
1066
- : error$jscomp$0(
1049
+ : console.error(
1067
1050
  "Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
1068
1051
  describeObjectForErrorMessage(parent, parentPropertyName)
1069
1052
  );
@@ -1480,7 +1463,7 @@
1480
1463
  return { name: value.name, env: value.env, owner: value.owner };
1481
1464
  if ("Object" !== objectName(value))
1482
1465
  callWithDebugContextInDEV(task, function () {
1483
- error$jscomp$0(
1466
+ console.error(
1484
1467
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1485
1468
  objectName(value),
1486
1469
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1488,7 +1471,7 @@
1488
1471
  });
1489
1472
  else if (!isSimpleObject(value))
1490
1473
  callWithDebugContextInDEV(task, function () {
1491
- error$jscomp$0(
1474
+ console.error(
1492
1475
  "Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
1493
1476
  describeObjectForErrorMessage(parent, parentPropertyName)
1494
1477
  );
@@ -1497,7 +1480,7 @@
1497
1480
  var symbols = Object.getOwnPropertySymbols(value);
1498
1481
  0 < symbols.length &&
1499
1482
  callWithDebugContextInDEV(task, function () {
1500
- error$jscomp$0(
1483
+ console.error(
1501
1484
  "Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
1502
1485
  symbols[0].description,
1503
1486
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1972,9 +1955,8 @@
1972
1955
  retryTask(request, pingedTasks[i]);
1973
1956
  null !== request.destination &&
1974
1957
  flushCompletedChunks(request, request.destination);
1975
- } catch (error$2) {
1976
- logRecoverableError(request, error$2, null),
1977
- fatalError(request, error$2);
1958
+ } catch (error) {
1959
+ logRecoverableError(request, error, null), fatalError(request, error);
1978
1960
  } finally {
1979
1961
  (ReactSharedInternalsServer.H = prevDispatcher),
1980
1962
  (currentRequest$1 = null),
@@ -2108,9 +2090,9 @@
2108
2090
  }
2109
2091
  null !== request.destination &&
2110
2092
  flushCompletedChunks(request, request.destination);
2111
- } catch (error$4) {
2112
- logRecoverableError(request, error$4, null),
2113
- fatalError(request, error$4);
2093
+ } catch (error$2) {
2094
+ logRecoverableError(request, error$2, null),
2095
+ fatalError(request, error$2);
2114
2096
  }
2115
2097
  }
2116
2098
  function resolveServerReference(bundlerConfig, id) {
@@ -2377,8 +2359,8 @@
2377
2359
  chunk.value = value;
2378
2360
  null !== resolveListeners && wakeChunk(resolveListeners, value);
2379
2361
  }
2380
- } catch (error$5) {
2381
- (chunk.status = "rejected"), (chunk.reason = error$5);
2362
+ } catch (error) {
2363
+ (chunk.status = "rejected"), (chunk.reason = error);
2382
2364
  } finally {
2383
2365
  (initializingChunk = prevChunk),
2384
2366
  (initializingChunkBlockedModel = prevBlocked);
@@ -2853,15 +2835,9 @@
2853
2835
  if ("fulfilled" !== body.status) throw body.reason;
2854
2836
  return body.value;
2855
2837
  }
2856
- var React = require("react"),
2857
- ReactDOM = require("react-dom"),
2858
- ReactSharedInternalsServer =
2859
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2860
- if (!ReactSharedInternalsServer)
2861
- throw Error(
2862
- 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
2863
- );
2864
- var channel = new MessageChannel(),
2838
+ var ReactDOM = require("react-dom"),
2839
+ React = require("react"),
2840
+ channel = new MessageChannel(),
2865
2841
  taskQueue = [];
2866
2842
  channel.port1.onmessage = function () {
2867
2843
  var task = taskQueue.shift();
@@ -3211,7 +3187,13 @@
3211
3187
  getOwner: function () {
3212
3188
  return currentOwner ? currentOwner : null;
3213
3189
  }
3214
- };
3190
+ },
3191
+ ReactSharedInternalsServer =
3192
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3193
+ if (!ReactSharedInternalsServer)
3194
+ throw Error(
3195
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
3196
+ );
3215
3197
  new ("function" === typeof WeakMap ? WeakMap : Map)();
3216
3198
  var isArrayImpl = Array.isArray,
3217
3199
  getPrototypeOf = Object.getPrototypeOf,
@@ -3386,9 +3368,9 @@
3386
3368
  request.destination = controller;
3387
3369
  try {
3388
3370
  flushCompletedChunks(request, controller);
3389
- } catch (error$3) {
3390
- logRecoverableError(request, error$3, null),
3391
- fatalError(request, error$3);
3371
+ } catch (error) {
3372
+ logRecoverableError(request, error, null),
3373
+ fatalError(request, error);
3392
3374
  }
3393
3375
  }
3394
3376
  },
@@ -22,23 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function error$jscomp$0(format) {
26
- for (
27
- var _len2 = arguments.length,
28
- args = Array(1 < _len2 ? _len2 - 1 : 0),
29
- _key2 = 1;
30
- _key2 < _len2;
31
- _key2++
32
- )
33
- args[_key2 - 1] = arguments[_key2];
34
- _len2 = format;
35
- _key2 = Error("react-stack-top-frame");
36
- ReactSharedInternalsServer.getCurrentStack &&
37
- ((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
38
- "" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
39
- args.unshift(_len2);
40
- Function.prototype.apply.call(console.error, console, args);
41
- }
42
25
  function handleErrorInNextTick(error) {
43
26
  setTimeout(function () {
44
27
  throw error;
@@ -94,7 +77,7 @@
94
77
  var newFn = FunctionBind.apply(this, arguments);
95
78
  if (this.$$typeof === SERVER_REFERENCE_TAG) {
96
79
  null != arguments[0] &&
97
- error$jscomp$0(
80
+ console.error(
98
81
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
99
82
  );
100
83
  var args = ArraySlice.call(arguments, 1);
@@ -864,7 +847,7 @@
864
847
  "[object Generator]" ===
865
848
  Object.prototype.toString.call(iterableChild)) ||
866
849
  callWithDebugContextInDEV(task, function () {
867
- error$jscomp$0(
850
+ console.error(
868
851
  "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
869
852
  );
870
853
  });
@@ -887,7 +870,7 @@
887
870
  "[object AsyncGenerator]" ===
888
871
  Object.prototype.toString.call(_iterableChild)) ||
889
872
  callWithDebugContextInDEV(task, function () {
890
- error$jscomp$0(
873
+ console.error(
891
874
  "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
892
875
  );
893
876
  });
@@ -1059,17 +1042,17 @@
1059
1042
  callWithDebugContextInDEV(task, function () {
1060
1043
  "Object" !== objectName(originalValue)
1061
1044
  ? "string" === typeof jsxChildrenParents.get(parent)
1062
- ? error$jscomp$0(
1045
+ ? console.error(
1063
1046
  "%s objects cannot be rendered as text children. Try formatting it using toString().%s",
1064
1047
  objectName(originalValue),
1065
1048
  describeObjectForErrorMessage(parent, parentPropertyName)
1066
1049
  )
1067
- : error$jscomp$0(
1050
+ : console.error(
1068
1051
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1069
1052
  objectName(originalValue),
1070
1053
  describeObjectForErrorMessage(parent, parentPropertyName)
1071
1054
  )
1072
- : error$jscomp$0(
1055
+ : console.error(
1073
1056
  "Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
1074
1057
  describeObjectForErrorMessage(parent, parentPropertyName)
1075
1058
  );
@@ -1486,7 +1469,7 @@
1486
1469
  return { name: value.name, env: value.env, owner: value.owner };
1487
1470
  if ("Object" !== objectName(value))
1488
1471
  callWithDebugContextInDEV(task, function () {
1489
- error$jscomp$0(
1472
+ console.error(
1490
1473
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1491
1474
  objectName(value),
1492
1475
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1494,7 +1477,7 @@
1494
1477
  });
1495
1478
  else if (!isSimpleObject(value))
1496
1479
  callWithDebugContextInDEV(task, function () {
1497
- error$jscomp$0(
1480
+ console.error(
1498
1481
  "Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
1499
1482
  describeObjectForErrorMessage(parent, parentPropertyName)
1500
1483
  );
@@ -1503,7 +1486,7 @@
1503
1486
  var symbols = Object.getOwnPropertySymbols(value);
1504
1487
  0 < symbols.length &&
1505
1488
  callWithDebugContextInDEV(task, function () {
1506
- error$jscomp$0(
1489
+ console.error(
1507
1490
  "Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
1508
1491
  symbols[0].description,
1509
1492
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1988,9 +1971,8 @@
1988
1971
  retryTask(request, pingedTasks[i]);
1989
1972
  null !== request.destination &&
1990
1973
  flushCompletedChunks(request, request.destination);
1991
- } catch (error$2) {
1992
- logRecoverableError(request, error$2, null),
1993
- fatalError(request, error$2);
1974
+ } catch (error) {
1975
+ logRecoverableError(request, error, null), fatalError(request, error);
1994
1976
  } finally {
1995
1977
  (ReactSharedInternalsServer.H = prevDispatcher),
1996
1978
  (currentRequest$1 = null),
@@ -2128,9 +2110,9 @@
2128
2110
  }
2129
2111
  null !== request.destination &&
2130
2112
  flushCompletedChunks(request, request.destination);
2131
- } catch (error$4) {
2132
- logRecoverableError(request, error$4, null),
2133
- fatalError(request, error$4);
2113
+ } catch (error$2) {
2114
+ logRecoverableError(request, error$2, null),
2115
+ fatalError(request, error$2);
2134
2116
  }
2135
2117
  }
2136
2118
  function resolveServerReference(bundlerConfig, id) {
@@ -2393,8 +2375,8 @@
2393
2375
  chunk.value = value;
2394
2376
  null !== resolveListeners && wakeChunk(resolveListeners, value);
2395
2377
  }
2396
- } catch (error$5) {
2397
- (chunk.status = "rejected"), (chunk.reason = error$5);
2378
+ } catch (error) {
2379
+ (chunk.status = "rejected"), (chunk.reason = error);
2398
2380
  } finally {
2399
2381
  (initializingChunk = prevChunk),
2400
2382
  (initializingChunkBlockedModel = prevBlocked);
@@ -2869,15 +2851,9 @@
2869
2851
  if ("fulfilled" !== body.status) throw body.reason;
2870
2852
  return body.value;
2871
2853
  }
2872
- var React = require("react"),
2873
- ReactDOM = require("react-dom"),
2874
- ReactSharedInternalsServer =
2875
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2876
- if (!ReactSharedInternalsServer)
2877
- throw Error(
2878
- 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
2879
- );
2880
- var LocalPromise = Promise,
2854
+ var ReactDOM = require("react-dom"),
2855
+ React = require("react"),
2856
+ LocalPromise = Promise,
2881
2857
  scheduleMicrotask =
2882
2858
  "function" === typeof queueMicrotask
2883
2859
  ? queueMicrotask
@@ -3236,7 +3212,13 @@
3236
3212
  }
3237
3213
  return null;
3238
3214
  }
3239
- };
3215
+ },
3216
+ ReactSharedInternalsServer =
3217
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3218
+ if (!ReactSharedInternalsServer)
3219
+ throw Error(
3220
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
3221
+ );
3240
3222
  new ("function" === typeof WeakMap ? WeakMap : Map)();
3241
3223
  var isArrayImpl = Array.isArray,
3242
3224
  getPrototypeOf = Object.getPrototypeOf,
@@ -3403,9 +3385,9 @@
3403
3385
  request.destination = controller;
3404
3386
  try {
3405
3387
  flushCompletedChunks(request, controller);
3406
- } catch (error$3) {
3407
- logRecoverableError(request, error$3, null),
3408
- fatalError(request, error$3);
3388
+ } catch (error) {
3389
+ logRecoverableError(request, error, null),
3390
+ fatalError(request, error);
3409
3391
  }
3410
3392
  }
3411
3393
  },
@@ -22,23 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function error$jscomp$0(format) {
26
- for (
27
- var _len2 = arguments.length,
28
- args = Array(1 < _len2 ? _len2 - 1 : 0),
29
- _key2 = 1;
30
- _key2 < _len2;
31
- _key2++
32
- )
33
- args[_key2 - 1] = arguments[_key2];
34
- _len2 = format;
35
- _key2 = Error("react-stack-top-frame");
36
- ReactSharedInternalsServer.getCurrentStack &&
37
- ((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
38
- "" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
39
- args.unshift(_len2);
40
- Function.prototype.apply.call(console.error, console, args);
41
- }
42
25
  function writeToDestination(destination, view) {
43
26
  destination = destination.write(view);
44
27
  destinationHasCapacity = destinationHasCapacity && destination;
@@ -121,7 +104,7 @@
121
104
  var newFn = FunctionBind.apply(this, arguments);
122
105
  if (this.$$typeof === SERVER_REFERENCE_TAG) {
123
106
  null != arguments[0] &&
124
- error$jscomp$0(
107
+ console.error(
125
108
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
126
109
  );
127
110
  var args = ArraySlice.call(arguments, 1);
@@ -890,7 +873,7 @@
890
873
  "[object Generator]" ===
891
874
  Object.prototype.toString.call(iterableChild)) ||
892
875
  callWithDebugContextInDEV(task, function () {
893
- error$jscomp$0(
876
+ console.error(
894
877
  "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
895
878
  );
896
879
  });
@@ -913,7 +896,7 @@
913
896
  "[object AsyncGenerator]" ===
914
897
  Object.prototype.toString.call(_iterableChild)) ||
915
898
  callWithDebugContextInDEV(task, function () {
916
- error$jscomp$0(
899
+ console.error(
917
900
  "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
918
901
  );
919
902
  });
@@ -1085,17 +1068,17 @@
1085
1068
  callWithDebugContextInDEV(task, function () {
1086
1069
  "Object" !== objectName(originalValue)
1087
1070
  ? "string" === typeof jsxChildrenParents.get(parent)
1088
- ? error$jscomp$0(
1071
+ ? console.error(
1089
1072
  "%s objects cannot be rendered as text children. Try formatting it using toString().%s",
1090
1073
  objectName(originalValue),
1091
1074
  describeObjectForErrorMessage(parent, parentPropertyName)
1092
1075
  )
1093
- : error$jscomp$0(
1076
+ : console.error(
1094
1077
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1095
1078
  objectName(originalValue),
1096
1079
  describeObjectForErrorMessage(parent, parentPropertyName)
1097
1080
  )
1098
- : error$jscomp$0(
1081
+ : console.error(
1099
1082
  "Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
1100
1083
  describeObjectForErrorMessage(parent, parentPropertyName)
1101
1084
  );
@@ -1510,7 +1493,7 @@
1510
1493
  return { name: value.name, env: value.env, owner: value.owner };
1511
1494
  if ("Object" !== objectName(value))
1512
1495
  callWithDebugContextInDEV(task, function () {
1513
- error$jscomp$0(
1496
+ console.error(
1514
1497
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1515
1498
  objectName(value),
1516
1499
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1518,7 +1501,7 @@
1518
1501
  });
1519
1502
  else if (!isSimpleObject(value))
1520
1503
  callWithDebugContextInDEV(task, function () {
1521
- error$jscomp$0(
1504
+ console.error(
1522
1505
  "Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
1523
1506
  describeObjectForErrorMessage(parent, parentPropertyName)
1524
1507
  );
@@ -1527,7 +1510,7 @@
1527
1510
  var symbols = Object.getOwnPropertySymbols(value);
1528
1511
  0 < symbols.length &&
1529
1512
  callWithDebugContextInDEV(task, function () {
1530
- error$jscomp$0(
1513
+ console.error(
1531
1514
  "Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
1532
1515
  symbols[0].description,
1533
1516
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1999,9 +1982,8 @@
1999
1982
  retryTask(request, pingedTasks[i]);
2000
1983
  null !== request.destination &&
2001
1984
  flushCompletedChunks(request, request.destination);
2002
- } catch (error$2) {
2003
- logRecoverableError(request, error$2, null),
2004
- fatalError(request, error$2);
1985
+ } catch (error) {
1986
+ logRecoverableError(request, error, null), fatalError(request, error);
2005
1987
  } finally {
2006
1988
  (ReactSharedInternalsServer.H = prevDispatcher),
2007
1989
  (currentRequest$1 = null),
@@ -2096,9 +2078,8 @@
2096
2078
  request.destination = destination;
2097
2079
  try {
2098
2080
  flushCompletedChunks(request, destination);
2099
- } catch (error$3) {
2100
- logRecoverableError(request, error$3, null),
2101
- fatalError(request, error$3);
2081
+ } catch (error) {
2082
+ logRecoverableError(request, error, null), fatalError(request, error);
2102
2083
  }
2103
2084
  }
2104
2085
  }
@@ -2149,9 +2130,9 @@
2149
2130
  }
2150
2131
  null !== request.destination &&
2151
2132
  flushCompletedChunks(request, request.destination);
2152
- } catch (error$4) {
2153
- logRecoverableError(request, error$4, null),
2154
- fatalError(request, error$4);
2133
+ } catch (error$2) {
2134
+ logRecoverableError(request, error$2, null),
2135
+ fatalError(request, error$2);
2155
2136
  }
2156
2137
  }
2157
2138
  function resolveServerReference(bundlerConfig, id) {
@@ -2414,8 +2395,8 @@
2414
2395
  chunk.value = value;
2415
2396
  null !== resolveListeners && wakeChunk(resolveListeners, value);
2416
2397
  }
2417
- } catch (error$5) {
2418
- (chunk.status = "rejected"), (chunk.reason = error$5);
2398
+ } catch (error) {
2399
+ (chunk.status = "rejected"), (chunk.reason = error);
2419
2400
  } finally {
2420
2401
  (initializingChunk = prevChunk),
2421
2402
  (initializingChunkBlockedModel = prevBlocked);
@@ -2909,18 +2890,12 @@
2909
2890
  abort(request, Error(reason));
2910
2891
  };
2911
2892
  }
2912
- var React = require("react"),
2913
- util = require("util");
2893
+ var util = require("util");
2914
2894
  require("crypto");
2915
2895
  var async_hooks = require("async_hooks"),
2916
2896
  ReactDOM = require("react-dom"),
2917
- ReactSharedInternalsServer =
2918
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2919
- if (!ReactSharedInternalsServer)
2920
- throw Error(
2921
- 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
2922
- );
2923
- var scheduleMicrotask = queueMicrotask,
2897
+ React = require("react"),
2898
+ scheduleMicrotask = queueMicrotask,
2924
2899
  currentView = null,
2925
2900
  writtenBytes = 0,
2926
2901
  destinationHasCapacity = !0,
@@ -3259,7 +3234,13 @@
3259
3234
  var owner = componentStorage.getStore();
3260
3235
  return owner ? owner : null;
3261
3236
  }
3262
- };
3237
+ },
3238
+ ReactSharedInternalsServer =
3239
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3240
+ if (!ReactSharedInternalsServer)
3241
+ throw Error(
3242
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
3243
+ );
3263
3244
  new ("function" === typeof WeakMap ? WeakMap : Map)();
3264
3245
  var isArrayImpl = Array.isArray,
3265
3246
  getPrototypeOf = Object.getPrototypeOf,
@@ -3391,12 +3372,12 @@
3391
3372
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
3392
3373
  );
3393
3374
  pendingFiles++;
3394
- var JSCompiler_object_inline_chunks_138 = [];
3375
+ var JSCompiler_object_inline_chunks_129 = [];
3395
3376
  value.on("data", function (chunk) {
3396
- JSCompiler_object_inline_chunks_138.push(chunk);
3377
+ JSCompiler_object_inline_chunks_129.push(chunk);
3397
3378
  });
3398
3379
  value.on("end", function () {
3399
- var blob = new Blob(JSCompiler_object_inline_chunks_138, {
3380
+ var blob = new Blob(JSCompiler_object_inline_chunks_129, {
3400
3381
  type: mimeType
3401
3382
  });
3402
3383
  response._formData.append(name, blob, filename);
@@ -22,23 +22,6 @@
22
22
  : (obj[key] = value);
23
23
  return obj;
24
24
  }
25
- function error$jscomp$0(format) {
26
- for (
27
- var _len2 = arguments.length,
28
- args = Array(1 < _len2 ? _len2 - 1 : 0),
29
- _key2 = 1;
30
- _key2 < _len2;
31
- _key2++
32
- )
33
- args[_key2 - 1] = arguments[_key2];
34
- _len2 = format;
35
- _key2 = Error("react-stack-top-frame");
36
- ReactSharedInternalsServer.getCurrentStack &&
37
- ((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
38
- "" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
39
- args.unshift(_len2);
40
- Function.prototype.apply.call(console.error, console, args);
41
- }
42
25
  function writeToDestination(destination, view) {
43
26
  destination = destination.write(view);
44
27
  destinationHasCapacity = destinationHasCapacity && destination;
@@ -121,7 +104,7 @@
121
104
  var newFn = FunctionBind.apply(this, arguments);
122
105
  if (this.$$typeof === SERVER_REFERENCE_TAG) {
123
106
  null != arguments[0] &&
124
- error$jscomp$0(
107
+ console.error(
125
108
  'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
126
109
  );
127
110
  var args = ArraySlice.call(arguments, 1);
@@ -890,7 +873,7 @@
890
873
  "[object Generator]" ===
891
874
  Object.prototype.toString.call(iterableChild)) ||
892
875
  callWithDebugContextInDEV(task, function () {
893
- error$jscomp$0(
876
+ console.error(
894
877
  "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
895
878
  );
896
879
  });
@@ -913,7 +896,7 @@
913
896
  "[object AsyncGenerator]" ===
914
897
  Object.prototype.toString.call(_iterableChild)) ||
915
898
  callWithDebugContextInDEV(task, function () {
916
- error$jscomp$0(
899
+ console.error(
917
900
  "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
918
901
  );
919
902
  });
@@ -1085,17 +1068,17 @@
1085
1068
  callWithDebugContextInDEV(task, function () {
1086
1069
  "Object" !== objectName(originalValue)
1087
1070
  ? "string" === typeof jsxChildrenParents.get(parent)
1088
- ? error$jscomp$0(
1071
+ ? console.error(
1089
1072
  "%s objects cannot be rendered as text children. Try formatting it using toString().%s",
1090
1073
  objectName(originalValue),
1091
1074
  describeObjectForErrorMessage(parent, parentPropertyName)
1092
1075
  )
1093
- : error$jscomp$0(
1076
+ : console.error(
1094
1077
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1095
1078
  objectName(originalValue),
1096
1079
  describeObjectForErrorMessage(parent, parentPropertyName)
1097
1080
  )
1098
- : error$jscomp$0(
1081
+ : console.error(
1099
1082
  "Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
1100
1083
  describeObjectForErrorMessage(parent, parentPropertyName)
1101
1084
  );
@@ -1510,7 +1493,7 @@
1510
1493
  return { name: value.name, env: value.env, owner: value.owner };
1511
1494
  if ("Object" !== objectName(value))
1512
1495
  callWithDebugContextInDEV(task, function () {
1513
- error$jscomp$0(
1496
+ console.error(
1514
1497
  "Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
1515
1498
  objectName(value),
1516
1499
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1518,7 +1501,7 @@
1518
1501
  });
1519
1502
  else if (!isSimpleObject(value))
1520
1503
  callWithDebugContextInDEV(task, function () {
1521
- error$jscomp$0(
1504
+ console.error(
1522
1505
  "Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
1523
1506
  describeObjectForErrorMessage(parent, parentPropertyName)
1524
1507
  );
@@ -1527,7 +1510,7 @@
1527
1510
  var symbols = Object.getOwnPropertySymbols(value);
1528
1511
  0 < symbols.length &&
1529
1512
  callWithDebugContextInDEV(task, function () {
1530
- error$jscomp$0(
1513
+ console.error(
1531
1514
  "Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
1532
1515
  symbols[0].description,
1533
1516
  describeObjectForErrorMessage(parent, parentPropertyName)
@@ -1999,9 +1982,8 @@
1999
1982
  retryTask(request, pingedTasks[i]);
2000
1983
  null !== request.destination &&
2001
1984
  flushCompletedChunks(request, request.destination);
2002
- } catch (error$2) {
2003
- logRecoverableError(request, error$2, null),
2004
- fatalError(request, error$2);
1985
+ } catch (error) {
1986
+ logRecoverableError(request, error, null), fatalError(request, error);
2005
1987
  } finally {
2006
1988
  (ReactSharedInternalsServer.H = prevDispatcher),
2007
1989
  (currentRequest$1 = null),
@@ -2096,9 +2078,8 @@
2096
2078
  request.destination = destination;
2097
2079
  try {
2098
2080
  flushCompletedChunks(request, destination);
2099
- } catch (error$3) {
2100
- logRecoverableError(request, error$3, null),
2101
- fatalError(request, error$3);
2081
+ } catch (error) {
2082
+ logRecoverableError(request, error, null), fatalError(request, error);
2102
2083
  }
2103
2084
  }
2104
2085
  }
@@ -2149,9 +2130,9 @@
2149
2130
  }
2150
2131
  null !== request.destination &&
2151
2132
  flushCompletedChunks(request, request.destination);
2152
- } catch (error$4) {
2153
- logRecoverableError(request, error$4, null),
2154
- fatalError(request, error$4);
2133
+ } catch (error$2) {
2134
+ logRecoverableError(request, error$2, null),
2135
+ fatalError(request, error$2);
2155
2136
  }
2156
2137
  }
2157
2138
  function resolveServerReference(bundlerConfig, id) {
@@ -2379,8 +2360,8 @@
2379
2360
  chunk.value = value;
2380
2361
  null !== resolveListeners && wakeChunk(resolveListeners, value);
2381
2362
  }
2382
- } catch (error$5) {
2383
- (chunk.status = "rejected"), (chunk.reason = error$5);
2363
+ } catch (error) {
2364
+ (chunk.status = "rejected"), (chunk.reason = error);
2384
2365
  } finally {
2385
2366
  (initializingChunk = prevChunk),
2386
2367
  (initializingChunkBlockedModel = prevBlocked);
@@ -2874,18 +2855,12 @@
2874
2855
  abort(request, Error(reason));
2875
2856
  };
2876
2857
  }
2877
- var React = require("react"),
2878
- util = require("util");
2858
+ var util = require("util");
2879
2859
  require("crypto");
2880
2860
  var async_hooks = require("async_hooks"),
2881
2861
  ReactDOM = require("react-dom"),
2882
- ReactSharedInternalsServer =
2883
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2884
- if (!ReactSharedInternalsServer)
2885
- throw Error(
2886
- 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
2887
- );
2888
- var scheduleMicrotask = queueMicrotask,
2862
+ React = require("react"),
2863
+ scheduleMicrotask = queueMicrotask,
2889
2864
  currentView = null,
2890
2865
  writtenBytes = 0,
2891
2866
  destinationHasCapacity = !0,
@@ -3224,7 +3199,13 @@
3224
3199
  var owner = componentStorage.getStore();
3225
3200
  return owner ? owner : null;
3226
3201
  }
3227
- };
3202
+ },
3203
+ ReactSharedInternalsServer =
3204
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3205
+ if (!ReactSharedInternalsServer)
3206
+ throw Error(
3207
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
3208
+ );
3228
3209
  new ("function" === typeof WeakMap ? WeakMap : Map)();
3229
3210
  var isArrayImpl = Array.isArray,
3230
3211
  getPrototypeOf = Object.getPrototypeOf,
@@ -3356,12 +3337,12 @@
3356
3337
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
3357
3338
  );
3358
3339
  pendingFiles++;
3359
- var JSCompiler_object_inline_chunks_138 = [];
3340
+ var JSCompiler_object_inline_chunks_129 = [];
3360
3341
  value.on("data", function (chunk) {
3361
- JSCompiler_object_inline_chunks_138.push(chunk);
3342
+ JSCompiler_object_inline_chunks_129.push(chunk);
3362
3343
  });
3363
3344
  value.on("end", function () {
3364
- var blob = new Blob(JSCompiler_object_inline_chunks_138, {
3345
+ var blob = new Blob(JSCompiler_object_inline_chunks_129, {
3365
3346
  type: mimeType
3366
3347
  });
3367
3348
  response._formData.append(name, blob, filename);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-server-dom-webpack",
3
3
  "description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4
- "version": "19.0.0-rc-df5f2736-20240712",
4
+ "version": "19.0.0-rc-01172397-20240716",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -77,8 +77,8 @@
77
77
  "node": ">=0.10.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "react": "19.0.0-rc-df5f2736-20240712",
81
- "react-dom": "19.0.0-rc-df5f2736-20240712",
80
+ "react": "19.0.0-rc-01172397-20240716",
81
+ "react-dom": "19.0.0-rc-01172397-20240716",
82
82
  "webpack": "^5.59.0"
83
83
  },
84
84
  "dependencies": {