react-server-dom-webpack 0.0.0-experimental-1d3fc9c9c-20221023 → 18.3.0-next-e7c5af45c-20221023
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.
- package/cjs/react-server-dom-webpack-server.browser.development.js +96 -133
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +34 -33
- package/cjs/react-server-dom-webpack-server.node.development.js +96 -133
- package/cjs/react-server-dom-webpack-server.node.production.min.js +35 -35
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-server.browser.development.js +96 -133
- package/umd/react-server-dom-webpack-server.browser.production.min.js +39 -38
@@ -293,10 +293,6 @@ var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This preven
|
|
293
293
|
// defaultValue property -- do we need this?
|
294
294
|
'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
|
295
295
|
|
296
|
-
{
|
297
|
-
reservedProps.push('innerText', 'textContent');
|
298
|
-
}
|
299
|
-
|
300
296
|
reservedProps.forEach(function (name) {
|
301
297
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
302
298
|
properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
|
@@ -851,84 +847,80 @@ function readContext(context) {
|
|
851
847
|
// changes to one module should be reflected in the others.
|
852
848
|
// TODO: Rename this module and the corresponding Fiber one to "Thenable"
|
853
849
|
// instead of "Wakeable". Or some other more appropriate name.
|
854
|
-
// TODO: Sparse arrays are bad for performance.
|
855
850
|
function createThenableState() {
|
856
851
|
// The ThenableState is created the first time a component suspends. If it
|
857
852
|
// suspends again, we'll reuse the same state.
|
858
853
|
return [];
|
859
|
-
}
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
854
|
+
}
|
855
|
+
|
856
|
+
function noop() {}
|
857
|
+
|
858
|
+
function trackUsedThenable(thenableState, thenable, index) {
|
859
|
+
var previous = thenableState[index];
|
860
|
+
|
861
|
+
if (previous === undefined) {
|
862
|
+
thenableState.push(thenable);
|
863
|
+
} else {
|
864
|
+
if (previous !== thenable) {
|
865
|
+
// Reuse the previous thenable, and drop the new one. We can assume
|
866
|
+
// they represent the same value, because components are idempotent.
|
867
|
+
// Avoid an unhandled rejection errors for the Promises that we'll
|
868
|
+
// intentionally ignore.
|
869
|
+
thenable.then(noop, noop);
|
870
|
+
thenable = previous;
|
871
|
+
}
|
872
|
+
} // We use an expando to track the status and result of a thenable so that we
|
868
873
|
// can synchronously unwrap the value. Think of this as an extension of the
|
869
874
|
// Promise API, or a custom interface that is a superset of Thenable.
|
870
875
|
//
|
871
876
|
// If the thenable doesn't have a status, set it to "pending" and attach
|
872
877
|
// a listener that will update its status and result when it resolves.
|
873
878
|
|
879
|
+
|
874
880
|
switch (thenable.status) {
|
875
881
|
case 'fulfilled':
|
882
|
+
{
|
883
|
+
var fulfilledValue = thenable.value;
|
884
|
+
return fulfilledValue;
|
885
|
+
}
|
886
|
+
|
876
887
|
case 'rejected':
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
// TODO: Log a warning?
|
882
|
-
break;
|
888
|
+
{
|
889
|
+
var rejectedError = thenable.reason;
|
890
|
+
throw rejectedError;
|
891
|
+
}
|
883
892
|
|
884
893
|
default:
|
885
894
|
{
|
886
|
-
if (typeof thenable.status === 'string') {
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
895
|
+
if (typeof thenable.status === 'string') ; else {
|
896
|
+
var pendingThenable = thenable;
|
897
|
+
pendingThenable.status = 'pending';
|
898
|
+
pendingThenable.then(function (fulfilledValue) {
|
899
|
+
if (thenable.status === 'pending') {
|
900
|
+
var fulfilledThenable = thenable;
|
901
|
+
fulfilledThenable.status = 'fulfilled';
|
902
|
+
fulfilledThenable.value = fulfilledValue;
|
903
|
+
}
|
904
|
+
}, function (error) {
|
905
|
+
if (thenable.status === 'pending') {
|
906
|
+
var rejectedThenable = thenable;
|
907
|
+
rejectedThenable.status = 'rejected';
|
908
|
+
rejectedThenable.reason = error;
|
909
|
+
}
|
910
|
+
});
|
911
|
+
} // Suspend.
|
912
|
+
// TODO: Throwing here is an implementation detail that allows us to
|
913
|
+
// unwind the call stack. But we shouldn't allow it to leak into
|
914
|
+
// userspace. Throw an opaque placeholder value instead of the
|
915
|
+
// actual thenable. If it doesn't get captured by the work loop, log
|
916
|
+
// a warning, because that means something in userspace must have
|
917
|
+
// caught it.
|
892
918
|
|
893
|
-
|
894
|
-
|
895
|
-
pendingThenable.then(function (fulfilledValue) {
|
896
|
-
if (thenable.status === 'pending') {
|
897
|
-
var fulfilledThenable = thenable;
|
898
|
-
fulfilledThenable.status = 'fulfilled';
|
899
|
-
fulfilledThenable.value = fulfilledValue;
|
900
|
-
}
|
901
|
-
}, function (error) {
|
902
|
-
if (thenable.status === 'pending') {
|
903
|
-
var rejectedThenable = thenable;
|
904
|
-
rejectedThenable.status = 'rejected';
|
905
|
-
rejectedThenable.reason = error;
|
906
|
-
}
|
907
|
-
});
|
908
|
-
break;
|
919
|
+
|
920
|
+
throw thenable;
|
909
921
|
}
|
910
922
|
}
|
911
923
|
}
|
912
|
-
function trackUsedThenable(thenableState, thenable, index) {
|
913
|
-
// This is only a separate function from trackSuspendedWakeable for symmetry
|
914
|
-
// with Fiber.
|
915
|
-
// TODO: Disallow throwing a thenable directly. It must go through `use` (or
|
916
|
-
// some equivalent for internal Suspense implementations). We can't do this in
|
917
|
-
// Fiber yet because it's a breaking change but we can do it in Server
|
918
|
-
// Components because Server Components aren't released yet.
|
919
|
-
thenableState[index] = thenable;
|
920
|
-
}
|
921
|
-
function getPreviouslyUsedThenableAtIndex(thenableState, index) {
|
922
|
-
if (thenableState !== null) {
|
923
|
-
var thenable = thenableState[index];
|
924
|
-
|
925
|
-
if (thenable !== undefined) {
|
926
|
-
return thenable;
|
927
|
-
}
|
928
|
-
}
|
929
|
-
|
930
|
-
return null;
|
931
|
-
}
|
932
924
|
|
933
925
|
var currentRequest = null;
|
934
926
|
var thenableIndexCounter = 0;
|
@@ -1018,8 +1010,6 @@ function useId() {
|
|
1018
1010
|
return ':' + currentRequest.identifierPrefix + 'S' + id.toString(32) + ':';
|
1019
1011
|
}
|
1020
1012
|
|
1021
|
-
function noop() {}
|
1022
|
-
|
1023
1013
|
function use(usable) {
|
1024
1014
|
if (usable !== null && typeof usable === 'object') {
|
1025
1015
|
// $FlowFixMe[method-unbinding]
|
@@ -1030,70 +1020,11 @@ function use(usable) {
|
|
1030
1020
|
var index = thenableIndexCounter;
|
1031
1021
|
thenableIndexCounter += 1;
|
1032
1022
|
|
1033
|
-
|
1034
|
-
|
1035
|
-
{
|
1036
|
-
var fulfilledValue = thenable.value;
|
1037
|
-
return fulfilledValue;
|
1038
|
-
}
|
1039
|
-
|
1040
|
-
case 'rejected':
|
1041
|
-
{
|
1042
|
-
var rejectedError = thenable.reason;
|
1043
|
-
throw rejectedError;
|
1044
|
-
}
|
1045
|
-
|
1046
|
-
default:
|
1047
|
-
{
|
1048
|
-
var prevThenableAtIndex = getPreviouslyUsedThenableAtIndex(thenableState, index);
|
1049
|
-
|
1050
|
-
if (prevThenableAtIndex !== null) {
|
1051
|
-
if (thenable !== prevThenableAtIndex) {
|
1052
|
-
// Avoid an unhandled rejection errors for the Promises that we'll
|
1053
|
-
// intentionally ignore.
|
1054
|
-
thenable.then(noop, noop);
|
1055
|
-
}
|
1056
|
-
|
1057
|
-
switch (prevThenableAtIndex.status) {
|
1058
|
-
case 'fulfilled':
|
1059
|
-
{
|
1060
|
-
var _fulfilledValue = prevThenableAtIndex.value;
|
1061
|
-
return _fulfilledValue;
|
1062
|
-
}
|
1063
|
-
|
1064
|
-
case 'rejected':
|
1065
|
-
{
|
1066
|
-
var _rejectedError = prevThenableAtIndex.reason;
|
1067
|
-
throw _rejectedError;
|
1068
|
-
}
|
1069
|
-
|
1070
|
-
default:
|
1071
|
-
{
|
1072
|
-
// The thenable still hasn't resolved. Suspend with the same
|
1073
|
-
// thenable as last time to avoid redundant listeners.
|
1074
|
-
throw prevThenableAtIndex;
|
1075
|
-
}
|
1076
|
-
}
|
1077
|
-
} else {
|
1078
|
-
// This is the first time something has been used at this index.
|
1079
|
-
// Stash the thenable at the current index so we can reuse it during
|
1080
|
-
// the next attempt.
|
1081
|
-
if (thenableState === null) {
|
1082
|
-
thenableState = createThenableState();
|
1083
|
-
}
|
1084
|
-
|
1085
|
-
trackUsedThenable(thenableState, thenable, index); // Suspend.
|
1086
|
-
// TODO: Throwing here is an implementation detail that allows us to
|
1087
|
-
// unwind the call stack. But we shouldn't allow it to leak into
|
1088
|
-
// userspace. Throw an opaque placeholder value instead of the
|
1089
|
-
// actual thenable. If it doesn't get captured by the work loop, log
|
1090
|
-
// a warning, because that means something in userspace must have
|
1091
|
-
// caught it.
|
1092
|
-
|
1093
|
-
throw thenable;
|
1094
|
-
}
|
1095
|
-
}
|
1023
|
+
if (thenableState === null) {
|
1024
|
+
thenableState = createThenableState();
|
1096
1025
|
}
|
1026
|
+
|
1027
|
+
return trackUsedThenable(thenableState, thenable, index);
|
1097
1028
|
} else if (usable.$$typeof === REACT_SERVER_CONTEXT_TYPE) {
|
1098
1029
|
var context = usable;
|
1099
1030
|
return readContext$1(context);
|
@@ -1241,10 +1172,46 @@ function readThenable(thenable) {
|
|
1241
1172
|
}
|
1242
1173
|
|
1243
1174
|
function createLazyWrapperAroundWakeable(wakeable) {
|
1244
|
-
|
1175
|
+
// This is a temporary fork of the `use` implementation until we accept
|
1176
|
+
// promises everywhere.
|
1177
|
+
var thenable = wakeable;
|
1178
|
+
|
1179
|
+
switch (thenable.status) {
|
1180
|
+
case 'fulfilled':
|
1181
|
+
case 'rejected':
|
1182
|
+
break;
|
1183
|
+
|
1184
|
+
default:
|
1185
|
+
{
|
1186
|
+
if (typeof thenable.status === 'string') {
|
1187
|
+
// Only instrument the thenable if the status if not defined. If
|
1188
|
+
// it's defined, but an unknown value, assume it's been instrumented by
|
1189
|
+
// some custom userspace implementation. We treat it as "pending".
|
1190
|
+
break;
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
var pendingThenable = thenable;
|
1194
|
+
pendingThenable.status = 'pending';
|
1195
|
+
pendingThenable.then(function (fulfilledValue) {
|
1196
|
+
if (thenable.status === 'pending') {
|
1197
|
+
var fulfilledThenable = thenable;
|
1198
|
+
fulfilledThenable.status = 'fulfilled';
|
1199
|
+
fulfilledThenable.value = fulfilledValue;
|
1200
|
+
}
|
1201
|
+
}, function (error) {
|
1202
|
+
if (thenable.status === 'pending') {
|
1203
|
+
var rejectedThenable = thenable;
|
1204
|
+
rejectedThenable.status = 'rejected';
|
1205
|
+
rejectedThenable.reason = error;
|
1206
|
+
}
|
1207
|
+
});
|
1208
|
+
break;
|
1209
|
+
}
|
1210
|
+
}
|
1211
|
+
|
1245
1212
|
var lazyType = {
|
1246
1213
|
$$typeof: REACT_LAZY_TYPE,
|
1247
|
-
_payload:
|
1214
|
+
_payload: thenable,
|
1248
1215
|
_init: readThenable
|
1249
1216
|
};
|
1250
1217
|
return lazyType;
|
@@ -1833,8 +1800,6 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
1833
1800
|
var newTask = createTask(request, value, getActiveContext(), request.abortableTasks);
|
1834
1801
|
var ping = newTask.ping;
|
1835
1802
|
x.then(ping, ping);
|
1836
|
-
var wakeable = x;
|
1837
|
-
trackSuspendedWakeable(wakeable);
|
1838
1803
|
newTask.thenableState = getThenableStateAfterSuspending();
|
1839
1804
|
return serializeByRefID(newTask.id);
|
1840
1805
|
} else {
|
@@ -2079,8 +2044,6 @@ function retryTask(request, task) {
|
|
2079
2044
|
// Something suspended again, let's pick it back up later.
|
2080
2045
|
var ping = task.ping;
|
2081
2046
|
x.then(ping, ping);
|
2082
|
-
var wakeable = x;
|
2083
|
-
trackSuspendedWakeable(wakeable);
|
2084
2047
|
task.thenableState = getThenableStateAfterSuspending();
|
2085
2048
|
return;
|
2086
2049
|
} else {
|
@@ -7,9 +7,9 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
11
|
-
function r(a){return q.encode(a)}function
|
12
|
-
function y(a,b,d,c,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}
|
10
|
+
'use strict';var ba=require("react");var e="function"===typeof AsyncLocalStorage,ca=e?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var d=m.length-n;d<b.length&&(0===d?a.enqueue(m):(m.set(b.subarray(0,d),n),a.enqueue(m),b=b.subarray(d)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;
|
11
|
+
function r(a){return q.encode(a)}function da(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify,v=Symbol.for("react.module.reference"),w=Symbol.for("react.element"),ea=Symbol.for("react.fragment"),fa=Symbol.for("react.provider"),ha=Symbol.for("react.server_context"),ia=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),ka=Symbol.for("react.suspense_list"),la=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),ma=Symbol.for("react.default_value"),na=Symbol.for("react.memo_cache_sentinel");
|
12
|
+
function y(a,b,d,c,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new y(a,0,!1,a,null,!1,!1)});
|
13
13
|
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new y(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new y(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new y(a,2,!1,a,null,!1,!1)});
|
14
14
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new y(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new y(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new y(a,4,!1,a,null,!1,!1)});
|
15
15
|
["cols","rows","size","span"].forEach(function(a){new y(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
|
@@ -17,39 +17,40 @@ function y(a,b,d,c,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attribut
|
|
17
17
|
B);new y(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(A,B);new y(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(A,B);new y(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new y(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
18
18
|
new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){new y(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
19
19
|
var C={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
20
|
-
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
20
|
+
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oa=["Webkit","ms","Moz","O"];Object.keys(C).forEach(function(a){oa.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);C[b]=C[a]})});var pa=Array.isArray;r("<script>");r("\x3c/script>");r('<script src="');r('<script type="module" src="');r('" integrity="');r('" async="">\x3c/script>');r("\x3c!-- --\x3e");r(' style="');r(":");r(";");r(" ");r('="');r('"');
|
21
21
|
r('=""');r(">");r("/>");r(' selected=""');r("\n");r("<!DOCTYPE html>");r("</");r(">");r('<template id="');r('"></template>');r("\x3c!--$--\x3e");r('\x3c!--$?--\x3e<template id="');r('"></template>');r("\x3c!--$!--\x3e");r("\x3c!--/$--\x3e");r("<template");r('"');r(' data-dgst="');r(' data-msg="');r(' data-stck="');r("></template>");r('<div hidden id="');r('">');r("</div>");r('<svg aria-hidden="true" style="display:none" id="');r('">');r("</svg>");r('<math aria-hidden="true" style="display:none" id="');
|
22
22
|
r('">');r("</math>");r('<table hidden id="');r('">');r("</table>");r('<table hidden><tbody id="');r('">');r("</tbody></table>");r('<table hidden><tr id="');r('">');r("</tr></table>");r('<table hidden><colgroup id="');r('">');r("</colgroup></table>");r('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');r('$RS("');r('","');r('")\x3c/script>');r('$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("');
|
23
23
|
r('$RC("');r('$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(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
24
24
|
r('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
25
25
|
r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(")\x3c/script>");r(",");r('<style data-precedence="');r('"></style>');r("[");r(",[");r(",");r("]");var D=null;
|
26
|
-
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function
|
27
|
-
function
|
28
|
-
function
|
29
|
-
function
|
30
|
-
var Da={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:
|
31
|
-
function
|
32
|
-
function
|
33
|
-
|
34
|
-
function
|
35
|
-
d?
|
36
|
-
function
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
function
|
42
|
-
|
43
|
-
|
44
|
-
c)return
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
function
|
50
|
-
|
26
|
+
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function qa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&qa(a)}
|
27
|
+
function ra(a){var b=a.parent;null!==b&&ra(b);a.context._currentValue=a.value}function sa(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):sa(a,b)}
|
28
|
+
function ta(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):ta(a,d);b.context._currentValue=b.value}function F(a){var b=D;b!==a&&(null===b?ra(a):null===a?qa(b):b.depth===a.depth?E(b,a):b.depth>a.depth?sa(b,a):ta(b,a),D=a)}function ua(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}function va(){}
|
29
|
+
function wa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(va,va),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(a=b,a.status="pending",a.then(function(a){if("pending"===b.status){var c=b;c.status="fulfilled";c.value=a}},function(a){if("pending"===b.status){var c=b;c.status="rejected";c.reason=a}})),b;}}var G=null,H=0,I=null;function xa(){var a=I;I=null;return a}function ya(a){return a._currentValue}
|
30
|
+
var Da={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:J,useTransition:J,readContext:ya,useContext:ya,useReducer:J,useRef:J,useState:J,useInsertionEffect:J,useLayoutEffect:J,useImperativeHandle:J,useEffect:J,useId:za,useMutableSource:J,useSyncExternalStore:J,useCacheRefresh:function(){return Ba},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=na;return b},use:Ca};
|
31
|
+
function J(){throw Error("This Hook is not supported in Server Components.");}function Ba(){throw Error("Refreshing the cache is not supported in Server Components.");}function za(){if(null===G)throw Error("useId can only be used while React is rendering");var a=G.identifierCount++;return":"+G.identifierPrefix+"S"+a.toString(32)+":"}
|
32
|
+
function Ca(a){if(null!==a&&"object"===typeof a){if("function"===typeof a.then){var b=H;H+=1;null===I&&(I=[]);return wa(I,a,b)}if(a.$$typeof===ha)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function K(){return(new AbortController).signal}function Ea(){if(L)return L;if(e){var a=ca.getStore();if(a)return a}return new Map}
|
33
|
+
var Fa={getCacheSignal:function(){var a=Ea(),b=a.get(K);void 0===b&&(b=K(),a.set(K,b));return b},getCacheForType:function(a){var b=Ea(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},L=null,M=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=M.ContextRegistry,O=M.ReactCurrentDispatcher,P=M.ReactCurrentCache;function Ga(a){console.error(a)}
|
34
|
+
function Ha(a,b,d,c,f){if(null!==P.current&&P.current!==Fa)throw Error("Currently React only supports one RSC renderer at a time.");P.current=Fa;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:f||"",identifierCount:1,onError:void 0===
|
35
|
+
d?Ga:d,toJSON:function(a,b){return Ia(k,this,a,b)}};k.pendingChunks++;b=Ja(c);a=Ka(k,a,b,g);h.push(a);return k}var La={};function Ma(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
36
|
+
function Na(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:x,_payload:a,_init:Ma}}
|
37
|
+
function Q(a,b,d,c,f){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof a){if(a.$$typeof===v)return[w,a,b,c];H=0;I=f;c=a(c);return"object"===typeof c&&null!==c&&"function"===typeof c.then?Na(c):c}if("string"===typeof a)return[w,a,b,c];if("symbol"===typeof a)return a===ea?c.children:[w,a,b,c];if(null!=a&&"object"===typeof a){if(a.$$typeof===v)return[w,a,b,c];switch(a.$$typeof){case x:var g=a._init;a=g(a._payload);
|
38
|
+
return Q(a,b,d,c,f);case ia:return b=a.render,H=0,I=f,b(c,void 0);case la:return Q(a.type,b,d,c,f);case fa:return ua(a._context,c.value),[w,a,b,{value:c.value,children:c.children,__pop:La}]}}throw Error("Unsupported Server Component type: "+R(a));}function Ka(a,b,d,c){var f={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){var b=a.pingedTasks;b.push(f);1===b.length&&S(a)},thenableState:null};c.add(f);return f}
|
39
|
+
function Oa(a,b,d,c){var f=c.filepath+"#"+c.name+(c.async?"#async":""),g=a.writtenModules,h=g.get(f);if(void 0!==h)return b[0]===w&&"1"===d?"@"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.filepath][c.name];var l=c.async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var z=a.nextChunkId++,X=t(l),Y="M"+z.toString(16)+":"+X+"\n";var Z=q.encode(Y);a.completedModuleChunks.push(Z);g.set(f,z);return b[0]===w&&"1"===d?"@"+z.toString(16):"$"+z.toString(16)}catch(aa){return a.pendingChunks++,
|
40
|
+
b=a.nextChunkId++,d=T(a,aa),U(a,b,d),"$"+b.toString(16)}}function Pa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function R(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(pa(a))return"[...]";a=Pa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
41
|
+
function V(a){if("string"===typeof a)return a;switch(a){case ja:return"Suspense";case ka:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ia:return V(a.render);case la:return V(a.type);case x:var b=a._payload;a=a._init;try{return V(a(b))}catch(d){}}return""}
|
42
|
+
function W(a,b){var d=Pa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(pa(a)){var f="[";for(var g=0;g<a.length;g++){0<g&&(f+=", ");var h=a[g];h="object"===typeof h&&null!==h?W(h):R(h);""+g===b?(d=f.length,c=h.length,f+=h):f=10>h.length&&40>f.length+h.length?f+h:f+"..."}f+="]"}else if(a.$$typeof===w)f="<"+V(a.type)+"/>";else{f="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(f+=", ");var k=g[h],l=JSON.stringify(k);f+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?W(l):
|
43
|
+
R(l);k===b?(d=f.length,c=l.length,f+=l):f=10>l.length&&40>f.length+l.length?f+l:f+"..."}f+="}"}return void 0===b?f:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+f+"\n "+a):"\n "+f}
|
44
|
+
function Ia(a,b,d,c){switch(c){case w:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===w||c.$$typeof===x);)try{switch(c.$$typeof){case w:var f=c;c=Q(f.type,f.key,f.ref,f.props,null);break;case x:var g=c._init;c=g(c._payload)}}catch(h){if("object"===typeof h&&null!==h&&"function"===typeof h.then)return a.pendingChunks++,a=Ka(a,c,D,a.abortableTasks),c=a.ping,h.then(c,c),a.thenableState=xa(),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=T(a,h);U(a,c,d);return"@"+c.toString(16)}if(null===
|
45
|
+
c)return null;if("object"===typeof c){if(c.$$typeof===v)return Oa(a,b,d,c);if(c.$$typeof===fa)return f=c._context._globalName,b=a.writtenProviders,c=b.get(d),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(f,c),d="P"+c.toString(16)+":"+f+"\n",d=q.encode(d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(c===La){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=c===ma?a.context._defaultValue:c;D=
|
46
|
+
a.parent;return}return c}if("string"===typeof c)return a="$"===c[0]||"@"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c||"undefined"===typeof c)return c;if("function"===typeof c){if(c.$$typeof===v)return Oa(a,b,d,c);if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+W(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
|
47
|
+
W(b,d));}if("symbol"===typeof c){f=a.writtenSymbols;g=f.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+W(b,d));a.pendingChunks++;d=a.nextChunkId++;b=t(g);b="S"+d.toString(16)+":"+b+"\n";b=q.encode(b);a.completedModuleChunks.push(b);f.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+
|
48
|
+
c+") is not yet supported in Client Component props."+W(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+W(b,d));}function T(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}
|
49
|
+
function Qa(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function U(a,b,d){d={digest:d};b="E"+b.toString(16)+":"+t(d)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
|
50
|
+
function S(a){var b=O.current,d=L;O.current=Da;L=a.cache;G=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var f=0;f<c.length;f++){var g=c[f];var h=a;if(0===g.status){F(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===w){var l=k,z=g.thenableState;g.model=k;k=Q(l.type,l.key,l.ref,l.props,z);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===w;)l=k,g.model=k,k=Q(l.type,l.key,l.ref,l.props,null)}var X=g.id,Y=t(k,h.toJSON),Z="J"+X.toString(16)+":"+Y+"\n";var aa=
|
51
|
+
q.encode(Z);h.completedJSONChunks.push(aa);h.abortableTasks.delete(g);g.status=1}catch(u){if("object"===typeof u&&null!==u&&"function"===typeof u.then){var Aa=g.ping;u.then(Aa,Aa);g.thenableState=xa()}else{h.abortableTasks.delete(g);g.status=4;var Ta=T(h,u);U(h,g.id,Ta)}}}}null!==a.destination&&Ra(a,a.destination)}catch(u){T(a,u),Qa(a,u)}finally{O.current=b,L=d,G=null}}
|
51
52
|
function Ra(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedModuleChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!p(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!p(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!p(b,g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===
|
52
|
-
a.pendingChunks&&b.close()}function Sa(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=
|
53
|
-
function
|
54
|
-
exports.renderToReadableStream=function(a,b,d){var c=
|
55
|
-
a)}catch(k){
|
53
|
+
a.pendingChunks&&b.close()}function Sa(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=T(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var f=a.nextChunkId++;U(a,f,c);d.forEach(function(b){b.status=3;var c="$"+f.toString(16);b=b.id;c=t(c);c="J"+b.toString(16)+":"+c+"\n";c=q.encode(c);a.completedErrorChunks.push(c)});d.clear()}null!==a.destination&&Ra(a,a.destination)}catch(g){T(a,g),Qa(a,g)}}
|
54
|
+
function Ja(a){if(a){var b=D;F(null);for(var d=0;d<a.length;d++){var c=a[d],f=c[0];c=c[1];N[f]||(N[f]=ba.createServerContext(f,ma));ua(N[f],c)}a=D;F(b);return a}return null}
|
55
|
+
exports.renderToReadableStream=function(a,b,d){var c=Ha(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var f=d.signal;if(f.aborted)Sa(c,f.reason);else{var g=function(){Sa(c,f.reason);f.removeEventListener("abort",g)};f.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){e?ca.run(c.cache,S,c):S(c)},pull:function(a){if(1===c.status)c.status=2,da(a,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=a;try{Ra(c,
|
56
|
+
a)}catch(k){T(c,k),Qa(c,k)}}},cancel:function(){}},{highWaterMark:0})};
|