react-server-dom-webpack 18.3.0-next-85de6fde5-20230328 → 18.3.0-next-1308e49a6-20230330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +11 -1
  2. package/cjs/react-server-dom-webpack-client.browser.production.min.js +3 -3
  3. package/cjs/react-server-dom-webpack-client.edge.development.js +6 -0
  4. package/cjs/react-server-dom-webpack-client.edge.production.min.js +4 -3
  5. package/cjs/react-server-dom-webpack-client.node.development.js +6 -0
  6. package/cjs/react-server-dom-webpack-client.node.production.min.js +2 -2
  7. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +6 -0
  8. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2 -2
  9. package/cjs/react-server-dom-webpack-node-register.js +1 -1
  10. package/cjs/react-server-dom-webpack-plugin.js +9 -8
  11. package/cjs/react-server-dom-webpack-server.browser.development.js +19 -91
  12. package/cjs/react-server-dom-webpack-server.browser.production.min.js +48 -50
  13. package/cjs/react-server-dom-webpack-server.edge.development.js +19 -91
  14. package/cjs/react-server-dom-webpack-server.edge.production.min.js +48 -50
  15. package/cjs/react-server-dom-webpack-server.node.development.js +19 -91
  16. package/cjs/react-server-dom-webpack-server.node.production.min.js +50 -52
  17. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +19 -91
  18. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +49 -51
  19. package/esm/react-server-dom-webpack-node-loader.production.min.js +1 -1
  20. package/package.json +4 -4
  21. package/umd/react-server-dom-webpack-client.browser.development.js +11 -1
  22. package/umd/react-server-dom-webpack-client.browser.production.min.js +10 -10
  23. package/umd/react-server-dom-webpack-server.browser.development.js +19 -91
  24. package/umd/react-server-dom-webpack-server.browser.production.min.js +42 -43
@@ -10,63 +10,61 @@
10
10
  'use strict';var aa=require("util"),ba=require("async_hooks"),ca=require("react"),da=new ba.AsyncLocalStorage,f=null,m=0,n=!0;function p(a,b){a=a.write(b);n=n&&a}
11
11
  function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var c=f;0<m&&(c=f.subarray(m));c=r.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=r.encodeInto(b.slice(d),f).written);2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,b)):(c=f.length-m,c<b.byteLength&&
12
12
  (0===c?p(a,f):(f.set(b.subarray(0,c),m),m+=c,p(a,f),b=b.subarray(c)),f=new Uint8Array(2048),m=0),f.set(b,m),m+=b.byteLength,2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)));return n}var r=new aa.TextEncoder;function t(a){return r.encode(a)}var u=JSON.stringify;function ea(a,b,c){a=u(c,a.toJSON);return b.toString(16)+":"+a+"\n"}function v(a,b,c){a=u(c);return b.toString(16)+":"+a+"\n"}
13
- var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),y=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
14
- function B(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),null,!1,!1)});
15
- "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 B(a,3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(a){return a[1].toUpperCase()}
13
+ var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),z=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
14
+ function B(a,b,c,d,e){this.acceptsBooleans=2===a||3===a||4===a;this.attributeName=b;this.attributeNamespace=c;this.type=a;this.sanitizeURL=d;this.removeEmptyString=e}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(2,a.toLowerCase(),null,!1,!1)});
15
+ "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 B(3,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(5,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(a){return a[1].toUpperCase()}
16
16
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(C,D)});
17
- "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(C,D)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(C,D)});["tabIndex","crossOrigin"].forEach(function(a){new B(a,1,!1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new B(a,1,!1,a.toLowerCase(),null,!0,!0)});
18
- var sa={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,scale:!0,tabSize:!0,widows:!0,zIndex:!0,
19
- zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ta=["Webkit","ms","Moz","O"];Object.keys(sa).forEach(function(a){ta.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);sa[b]=sa[a]})});var ua=Array.isArray;t('"></template>');t("<script>");t("\x3c/script>");t('<script src="');t('<script type="module" src="');t('" integrity="');t('" async="">\x3c/script>');t("\x3c!-- --\x3e");t(' style="');
20
- t(":");t(";");t(" ");t('="');t('"');t('=""');t(">");t("/>");t(' selected=""');t("\n");t("<!DOCTYPE html>");t("</");t(">");t('<template id="');t('"></template>');t("\x3c!--$--\x3e");t('\x3c!--$?--\x3e<template id="');t('"></template>');t("\x3c!--$!--\x3e");t("\x3c!--/$--\x3e");t("<template");t('"');t(' data-dgst="');t(' data-msg="');t(' data-stck="');t("></template>");t('<div hidden id="');t('">');t("</div>");t('<svg aria-hidden="true" style="display:none" id="');t('">');t("</svg>");t('<math aria-hidden="true" style="display:none" id="');
21
- t('">');t("</math>");t('<table hidden id="');t('">');t("</table>");t('<table hidden><tbody id="');t('">');t("</tbody></table>");t('<table hidden><tr id="');t('">');t("</tr></table>");t('<table hidden><colgroup id="');t('">');t("</colgroup></table>");t('$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("');t('$RS("');t('","');t('")\x3c/script>');t('<template data-rsi="" data-sid="');
22
- t('" data-pid="');t('$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("');
17
+ "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(C,D)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(C,D)});["tabIndex","crossOrigin"].forEach(function(a){new B(1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new B(1,a.toLowerCase(),null,!0,!0)});var sa=Array.isArray;t('"></template>');t("<script>");t("\x3c/script>");t('<script src="');t('<script type="module" src="');t('" integrity="');
18
+ t('" async="">\x3c/script>');t("\x3c!-- --\x3e");t(' style="');t(":");t(";");t(" ");t('="');t('"');t('=""');t(">");t("/>");t(' selected=""');t("\n");t("<!DOCTYPE html>");t("</");t(">");t('<template id="');t('"></template>');t("\x3c!--$--\x3e");t('\x3c!--$?--\x3e<template id="');t('"></template>');t("\x3c!--$!--\x3e");t("\x3c!--/$--\x3e");t("<template");t('"');t(' data-dgst="');t(' data-msg="');t(' data-stck="');t("></template>");t('<div hidden id="');t('">');t("</div>");t('<svg aria-hidden="true" style="display:none" id="');
19
+ t('">');t("</svg>");t('<math aria-hidden="true" style="display:none" id="');t('">');t("</math>");t('<table hidden id="');t('">');t("</table>");t('<table hidden><tbody id="');t('">');t("</tbody></table>");t('<table hidden><tr id="');t('">');t("</tr></table>");t('<table hidden><colgroup id="');t('">');t("</colgroup></table>");t('$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("');
20
+ t('$RS("');t('","');t('")\x3c/script>');t('<template data-rsi="" data-sid="');t('" data-pid="');t('$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
21
  t('$RC("');t('$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("');
24
22
  t('$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("');
25
23
  t('$RR("');t('","');t('",');t('"');t(")\x3c/script>");t('<template data-rci="" data-bid="');t('<template data-rri="" data-bid="');t('" data-sid="');t('" data-sty="');t('$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("');t('$RX("');t('"');t(",");t(")\x3c/script>");t('<template data-rxi="" data-bid="');t('" data-dgst="');t('" data-msg="');t('" data-stck="');t('<style media="not all" data-precedence="');
26
24
  t('" data-href="');t('">');t("</style>");t('<style data-precedence="');t('" data-href="');t(" ");t('">');t("</style>");t("[");t(",[");t(",");t("]");var E=null;
27
- function F(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");F(a,c);b.context._currentValue=b.value}}}function va(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&va(a)}
28
- function wa(a){var b=a.parent;null!==b&&wa(b);a.context._currentValue=a.value}function xa(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?F(a,b):xa(a,b)}
29
- function ya(a,b){var c=b.parent;if(null===c)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?F(a,c):ya(a,c);b.context._currentValue=b.value}function za(a){var b=E;b!==a&&(null===b?wa(a):null===a?va(b):b.depth===a.depth?F(b,a):b.depth>a.depth?xa(b,a):ya(b,a),E=a)}function Aa(a,b){var c=a._currentValue;a._currentValue=b;var d=E;return E=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:c,value:b}}var Ba=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
30
- function Ca(){}function Da(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ca,Ca),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw Ba;}}var G=null;
31
- function Ea(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var I=null,J=0,K=null;function Fa(){var a=K;K=null;return a}function Ga(a){return a._currentValue}
32
- var Ka={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:Ga,useContext:Ga,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ha,useMutableSource:L,useSyncExternalStore:L,useCacheRefresh:function(){return Ia},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=qa;return b},use:Ja};
33
- function L(){throw Error("This Hook is not supported in Server Components.");}function Ia(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ha(){if(null===I)throw Error("useId can only be used while React is rendering");var a=I.identifierCount++;return":"+I.identifierPrefix+"S"+a.toString(32)+":"}
34
- function Ja(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=J;J+=1;null===K&&(K=[]);return Da(K,a,b)}if(a.$$typeof===ja)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function La(){return(new AbortController).signal}function Ma(){if(M)return M;var a=da.getStore();return a?a:new Map}
35
- var Na={getCacheSignal:function(){var a=Ma(),b=a.get(La);void 0===b&&(b=La(),a.set(La,b));return b},getCacheForType:function(a){var b=Ma(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},M=null;function Oa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
36
- function Pa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(ua(a))return"[...]";a=Oa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
37
- function N(a){if("string"===typeof a)return a;switch(a){case la:return"Suspense";case ma:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ka:return N(a.render);case oa:return N(a.type);case A:var b=a._payload;a=a._init;try{return N(a(b))}catch(c){}}return""}
38
- function O(a,b){var c=Oa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(ua(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?O(h):Pa(h);""+g===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===y)e="<"+N(a.type)+"/>";else{e="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(e+=", ");var k=g[h],l=JSON.stringify(k);e+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?O(l):
39
- Pa(l);k===b?(c=e.length,d=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Qa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ra=Qa.ContextRegistry,Sa=Qa.ReactCurrentDispatcher,Ta=Qa.ReactCurrentCache;function Ua(a){console.error(a)}
40
- function Va(a,b,c,d,e){if(null!==Ta.current&&Ta.current!==Na)throw Error("Currently React only supports one RSC renderer at a time.");Ta.current=Na;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,completedImportChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||
41
- "",identifierCount:1,onError:void 0===c?Ua:c,toJSON:function(l,w){return Wa(k,this,l,w)}};k.pendingChunks++;b=Xa(d);a=Ya(k,a,b,g);h.push(a);return k}var Za={};
42
- function $a(a,b){a.pendingChunks++;var c=Ya(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return c.model=b.value,ab(a,c),c.id;case "rejected":var d=P(a,b.reason);Q(a,c.id,d);return c.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){c.model=e;ab(a,c)},function(e){c.status=4;e=P(a,e);Q(a,c.id,e);null!==a.destination&&
43
- R(a,a.destination)});return c.id}function bb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function cb(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:A,_payload:a,_init:bb}}
44
- function T(a,b,c,d,e,g){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[y,b,c,e];J=0;K=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[y,b,c,e];if("symbol"===typeof b)return b===ha?e.children:[y,b,c,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[y,b,c,e];switch(b.$$typeof){case A:var h=
45
- b._init;b=h(b._payload);return T(a,b,c,d,e,g);case ka:return a=b.render,J=0,K=g,a(e,void 0);case oa:return T(a,b.type,c,d,e,g);case ia:return Aa(b._context,e.value),[y,b,c,{value:e.value,children:e.children,__pop:Za}]}}throw Error("Unsupported Server Component type: "+Pa(b));}function ab(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&setImmediate(function(){return db(a)})}
46
- function Ya(a,b,c,d){var e={id:a.nextChunkId++,status:0,model:b,context:c,ping:function(){return ab(a,e)},thenableState:null};d.add(e);return e}
47
- function eb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===y&&"1"===c?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[d.$$id];var l=d.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var w=a.nextChunkId++,na=u(l);var z=w.toString(16)+":I"+na+"\n";a.completedImportChunks.push(z);g.set(e,w);return b[0]===y&&"1"===c?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
25
+ function F(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");F(a,c);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
26
+ function ua(a){var b=a.parent;null!==b&&ua(b);a.context._currentValue=a.value}function va(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?F(a,b):va(a,b)}
27
+ function wa(a,b){var c=b.parent;if(null===c)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?F(a,c):wa(a,c);b.context._currentValue=b.value}function xa(a){var b=E;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?F(b,a):b.depth>a.depth?va(b,a):wa(b,a),E=a)}function ya(a,b){var c=a._currentValue;a._currentValue=b;var d=E;return E=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:c,value:b}}var za=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
28
+ function Aa(){}function Ba(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Aa,Aa),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw za;}}var G=null;
29
+ function Ca(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var I=null,J=0,K=null;function Da(){var a=K;K=null;return a}function Ea(a){return a._currentValue}
30
+ var Ia={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:Ea,useContext:Ea,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Fa,useMutableSource:L,useSyncExternalStore:L,useCacheRefresh:function(){return Ga},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=qa;return b},use:Ha};
31
+ function L(){throw Error("This Hook is not supported in Server Components.");}function Ga(){throw Error("Refreshing the cache is not supported in Server Components.");}function Fa(){if(null===I)throw Error("useId can only be used while React is rendering");var a=I.identifierCount++;return":"+I.identifierPrefix+"S"+a.toString(32)+":"}
32
+ function Ha(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=J;J+=1;null===K&&(K=[]);return Ba(K,a,b)}if(a.$$typeof===ja)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ja(){return(new AbortController).signal}function Ka(){if(M)return M;var a=da.getStore();return a?a:new Map}
33
+ var La={getCacheSignal:function(){var a=Ka(),b=a.get(Ja);void 0===b&&(b=Ja(),a.set(Ja,b));return b},getCacheForType:function(a){var b=Ka(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},M=null;function Ma(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
34
+ function Na(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(sa(a))return"[...]";a=Ma(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
35
+ function N(a){if("string"===typeof a)return a;switch(a){case la:return"Suspense";case na:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ka:return N(a.render);case oa:return N(a.type);case A:var b=a._payload;a=a._init;try{return N(a(b))}catch(c){}}return""}
36
+ function O(a,b){var c=Ma(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(sa(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?O(h):Na(h);""+g===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===z)e="<"+N(a.type)+"/>";else{e="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(e+=", ");var k=g[h],l=JSON.stringify(k);e+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?O(l):
37
+ Na(l);k===b?(c=e.length,d=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Oa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pa=Oa.ContextRegistry,Qa=Oa.ReactCurrentDispatcher,Ra=Oa.ReactCurrentCache;function Sa(a){console.error(a)}
38
+ function Ta(a,b,c,d,e){if(null!==Ra.current&&Ra.current!==La)throw Error("Currently React only supports one RSC renderer at a time.");Ra.current=La;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,completedImportChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||
39
+ "",identifierCount:1,onError:void 0===c?Sa:c,toJSON:function(l,w){return Ua(k,this,l,w)}};k.pendingChunks++;b=Va(d);a=Wa(k,a,b,g);h.push(a);return k}var Xa={};
40
+ function Ya(a,b){a.pendingChunks++;var c=Wa(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return c.model=b.value,Za(a,c),c.id;case "rejected":var d=P(a,b.reason);Q(a,c.id,d);return c.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){c.model=e;Za(a,c)},function(e){c.status=4;e=P(a,e);Q(a,c.id,e);null!==a.destination&&
41
+ R(a,a.destination)});return c.id}function $a(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function ab(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:A,_payload:a,_init:$a}}
42
+ function T(a,b,c,d,e,g){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[z,b,c,e];J=0;K=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:ab(e):e}if("string"===typeof b)return[z,b,c,e];if("symbol"===typeof b)return b===ha?e.children:[z,b,c,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[z,b,c,e];switch(b.$$typeof){case A:var h=
43
+ b._init;b=h(b._payload);return T(a,b,c,d,e,g);case ka:return a=b.render,J=0,K=g,a(e,void 0);case oa:return T(a,b.type,c,d,e,g);case ia:return ya(b._context,e.value),[z,b,c,{value:e.value,children:e.children,__pop:Xa}]}}throw Error("Unsupported Server Component type: "+Na(b));}function Za(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&setImmediate(function(){return bb(a)})}
44
+ function Wa(a,b,c,d){var e={id:a.nextChunkId++,status:0,model:b,context:c,ping:function(){return Za(a,e)},thenableState:null};d.add(e);return e}
45
+ function cb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===z&&"1"===c?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[d.$$id];var l=d.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var w=a.nextChunkId++,ma=u(l);var y=w.toString(16)+":I"+ma+"\n";a.completedImportChunks.push(y);g.set(e,w);return b[0]===z&&"1"===c?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
48
46
  a.nextChunkId++,c=P(a,S),Q(a,b,c),"$"+b.toString(16)}}
49
- function Wa(a,b,c,d){switch(d){case y:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===y||d.$$typeof===A);)try{switch(d.$$typeof){case y:var e=d;d=T(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=d._init;d=g(d._payload)}}catch(h){c=h===Ba?Ea():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=Ya(a,d,E,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=P(a,c);Q(a,d,c);return"$L"+
50
- d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===x)return eb(a,b,c,d);if("function"===typeof d.then)return"$@"+$a(a,d).toString(16);if(d.$$typeof===ia)return d=d._context._globalName,b=a.writtenProviders,c=b.get(c),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(d,c),d=v(a,c,"$P"+d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(d===Za){a=E;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=
51
- d===pa?a.context._defaultValue:d;E=a.parent;return}return!ua(d)&&(null===d||"object"!==typeof d?a=null:(a=ra&&d[ra]||d["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(d):d}if("string"===typeof d)return a="$"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d)return d;if("undefined"===typeof d)return"$undefined";if("function"===typeof d){if(d.$$typeof===x)return eb(a,b,c,d);if(d.$$typeof===fa)return c=a.writtenServerReferences,b=c.get(d),void 0!==b?a="$F"+b.toString(16):(b=d.$$bound,
47
+ function Ua(a,b,c,d){switch(d){case z:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===z||d.$$typeof===A);)try{switch(d.$$typeof){case z:var e=d;d=T(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=d._init;d=g(d._payload)}}catch(h){c=h===za?Ca():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=Wa(a,d,E,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Da(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=P(a,c);Q(a,d,c);return"$L"+
48
+ d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===x)return cb(a,b,c,d);if("function"===typeof d.then)return"$@"+Ya(a,d).toString(16);if(d.$$typeof===ia)return d=d._context._globalName,b=a.writtenProviders,c=b.get(c),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(d,c),d=v(a,c,"$P"+d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(d===Xa){a=E;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=
49
+ d===pa?a.context._defaultValue:d;E=a.parent;return}return!sa(d)&&(null===d||"object"!==typeof d?a=null:(a=ra&&d[ra]||d["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(d):d}if("string"===typeof d)return a="$"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d)return d;if("undefined"===typeof d)return"$undefined";if("function"===typeof d){if(d.$$typeof===x)return cb(a,b,c,d);if(d.$$typeof===fa)return c=a.writtenServerReferences,b=c.get(d),void 0!==b?a="$F"+b.toString(16):(b=d.$$bound,
52
50
  e={id:d.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(a,b,e),a.completedJSONChunks.push(e),c.set(d,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(c))throw Error("Event handlers cannot be passed to Client Component props."+O(b,c)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+O(b,c));}if("symbol"===
53
- typeof d){e=a.writtenSymbols;g=e.get(d);if(void 0!==g)return"$"+g.toString(16);g=d.description;if(Symbol.for(g)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")+O(b,c));a.pendingChunks++;c=a.nextChunkId++;b=v(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+
54
- O(b,c));throw Error("Type "+typeof d+" is not supported in Client Component props."+O(b,c));}function P(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||""}
55
- function fb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+u(c)+"\n";a.completedErrorChunks.push(b)}
56
- function db(a){var b=Sa.current,c=M;Sa.current=Ka;M=a.cache;I=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++){var g=d[e];var h=a;if(0===g.status){za(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var l=k,w=g.thenableState;g.model=k;k=T(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)l=k,g.model=k,k=T(h,l.type,l.key,l.ref,l.props,null)}var na=ea(h,g.id,k);h.completedJSONChunks.push(na);h.abortableTasks.delete(g);
57
- g.status=1}catch(H){var z=H===Ba?Ea():H;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var S=g.ping;z.then(S,S);g.thenableState=Fa()}else{h.abortableTasks.delete(g);g.status=4;var qb=P(h,z);Q(h,g.id,qb)}}}}null!==a.destination&&R(a,a.destination)}catch(H){P(a,H),fb(a,H)}finally{Sa.current=b,M=c,I=null}}
51
+ typeof d){e=a.writtenSymbols;g=e.get(d);if(void 0!==g)return"$"+g.toString(16);g=d.description;if(Symbol.for(g)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")+O(b,c));a.pendingChunks++;c=a.nextChunkId++;b=v(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+
52
+ " is not supported in Client Component props."+O(b,c));}function P(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||""}function db(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
53
+ function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+u(c)+"\n";a.completedErrorChunks.push(b)}
54
+ function bb(a){var b=Qa.current,c=M;Qa.current=Ia;M=a.cache;I=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++){var g=d[e];var h=a;if(0===g.status){xa(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===z){var l=k,w=g.thenableState;g.model=k;k=T(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===z;)l=k,g.model=k,k=T(h,l.type,l.key,l.ref,l.props,null)}var ma=ea(h,g.id,k);h.completedJSONChunks.push(ma);h.abortableTasks.delete(g);
55
+ g.status=1}catch(H){var y=H===za?Ca():H;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var S=g.ping;y.then(S,S);g.thenableState=Da()}else{h.abortableTasks.delete(g);g.status=4;var ob=P(h,y);Q(h,g.id,ob)}}}}null!==a.destination&&R(a,a.destination)}catch(H){P(a,H),db(a,H)}finally{Qa.current=b,M=c,I=null}}
58
56
  function R(a,b){f=new Uint8Array(2048);m=0;n=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!q(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedJSONChunks;for(d=0;d<e.length;d++)if(a.pendingChunks--,!q(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!q(b,g[d])){a.destination=null;d++;break}g.splice(0,d)}finally{f&&0<m&&b.write(f.subarray(0,m)),f=null,m=0,n=!0}"function"===
59
- typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function gb(a){setImmediate(function(){return da.run(a.cache,db,a)})}function hb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{R(a,b)}catch(c){P(a,c),fb(a,c)}}}
60
- function ib(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,d);c.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=v(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),fb(a,g)}}
61
- function Xa(a){if(a){var b=E;za(null);for(var c=0;c<a.length;c++){var d=a[c],e=d[0];d=d[1];Ra[e]||(Ra[e]=ca.createServerContext(e,pa));Aa(Ra[e],d)}a=E;za(b);return a}return null}function jb(a,b){var c=b.lastIndexOf("#");a=b.substr(0,c);b=b.substr(c+1);return{specifier:a,name:b}}var kb=new Map;
62
- function lb(a){var b=kb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);c.then(function(d){c.status="fulfilled";c.value=d},function(d){c.status="rejected";c.reason=d});kb.set(a.specifier,c);return c}function mb(a){var b=kb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]}function U(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}U.prototype=Object.create(Promise.prototype);
57
+ typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function eb(a){setImmediate(function(){return da.run(a.cache,bb,a)})}function fb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{R(a,b)}catch(c){P(a,c),db(a,c)}}}
58
+ function gb(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,d);c.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=v(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),db(a,g)}}
59
+ function Va(a){if(a){var b=E;xa(null);for(var c=0;c<a.length;c++){var d=a[c],e=d[0];d=d[1];Pa[e]||(Pa[e]=ca.createServerContext(e,pa));ya(Pa[e],d)}a=E;xa(b);return a}return null}function hb(a,b){var c=b.lastIndexOf("#");a=b.substr(0,c);b=b.substr(c+1);return{specifier:a,name:b}}var ib=new Map;
60
+ function jb(a){var b=ib.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);c.then(function(d){c.status="fulfilled";c.value=d},function(d){c.status="rejected";c.reason=d});ib.set(a.specifier,c);return c}function kb(a){var b=ib.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]}function U(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}U.prototype=Object.create(Promise.prototype);
63
61
  U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function W(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
64
- function nb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&W(c,b)}}function ob(a,b,c,d,e,g){var h=jb(a._bundlerConfig,b);a=lb(h);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var l=mb(h);return l.bind.apply(l,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return mb(h)});else return mb(h);c.then(pb(d,e,g),rb(d));return null}var X=null,Y=null;
65
- function V(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function sb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&nb(c,b)})}function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=new U("pending",null,null,a),c.set(b,d));return d}
66
- function pb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&W(e,d.value))}}function rb(a){return function(b){return nb(a,b)}}
67
- function tb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.substring(1);case "@":return b=parseInt(d.substring(2),16),Z(a,b);case "S":return Symbol.for(d.substring(2));case "F":d=parseInt(d.substring(2),16);d=Z(a,d);"resolved_model"===d.status&&V(d);if("fulfilled"!==d.status)throw d.reason;d=d.value;return ob(a,d.id,d.bound,X,b,c);case "u":return;default:d=parseInt(d.substring(1),16);a=Z(a,d);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=
68
- X,a.then(pb(d,b,c),rb(d)),null;default:throw a.reason;}}return d}function ub(a){var b=new Map,c={_bundlerConfig:a,_chunks:b,_fromJSON:function(d,e){return"string"===typeof e?tb(c,this,d,e):e}};return c}
69
- function vb(a,b,c){var d=a._chunks,e=d.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=c,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else d.set(b,new U("resolved_model",c,null,a))}function wb(a){sb(a,Error("Connection closed."))}function xb(a,b){return function(){return hb(b,a)}}
70
- exports.decodeReply=function(a,b){var c=ub(b);"string"===typeof a?vb(c,0,a):a.forEach(function(d,e){if("string"===typeof d)vb(c,+e,d);else throw Error("Not implemented.");});wb(c);return Z(c,0)};
71
- exports.decodeReplyFromBusboy=function(a,b){var c=ub(b);a.on("field",function(d,e){vb(c,+d,e)});a.on("file",function(d,e,g){if("base64"===g.encoding.toLowerCase())throw Error("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.");throw Error("Not implemented.");});a.on("finish",function(){wb(c)});a.on("error",function(d){sb(c,d)});return Z(c,0)};
72
- exports.renderToPipeableStream=function(a,b,c){var d=Va(a,b,c?c.onError:void 0,c?c.context:void 0,c?c.identifierPrefix:void 0),e=!1;gb(d);return{pipe:function(g){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;hb(d,g);g.on("drain",xb(g,d));return g},abort:function(g){ib(d,g)}}};
62
+ function lb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&W(c,b)}}function mb(a,b,c,d,e,g){var h=hb(a._bundlerConfig,b);a=jb(h);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var l=kb(h);return l.bind.apply(l,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return kb(h)});else return kb(h);c.then(nb(d,e,g),pb(d));return null}var X=null,Y=null;
63
+ function V(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function qb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&lb(c,b)})}function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=new U("pending",null,null,a),c.set(b,d));return d}
64
+ function nb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&W(e,d.value))}}function pb(a){return function(b){return lb(a,b)}}
65
+ function rb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.substring(1);case "@":return b=parseInt(d.substring(2),16),Z(a,b);case "S":return Symbol.for(d.substring(2));case "F":d=parseInt(d.substring(2),16);d=Z(a,d);"resolved_model"===d.status&&V(d);if("fulfilled"!==d.status)throw d.reason;d=d.value;return mb(a,d.id,d.bound,X,b,c);case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=Z(a,d);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
66
+ case "pending":case "blocked":return d=X,a.then(nb(d,b,c),pb(d)),null;default:throw a.reason;}}return d}function sb(a){var b=new Map,c={_bundlerConfig:a,_chunks:b,_fromJSON:function(d,e){return"string"===typeof e?rb(c,this,d,e):e}};return c}
67
+ function tb(a,b,c){var d=a._chunks,e=d.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=c,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else d.set(b,new U("resolved_model",c,null,a))}function ub(a){qb(a,Error("Connection closed."))}function vb(a,b){return function(){return fb(b,a)}}
68
+ exports.decodeReply=function(a,b){var c=sb(b);"string"===typeof a?tb(c,0,a):a.forEach(function(d,e){if("string"===typeof d)tb(c,+e,d);else throw Error("Not implemented.");});ub(c);return Z(c,0)};
69
+ exports.decodeReplyFromBusboy=function(a,b){var c=sb(b);a.on("field",function(d,e){tb(c,+d,e)});a.on("file",function(d,e,g){if("base64"===g.encoding.toLowerCase())throw Error("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.");throw Error("Not implemented.");});a.on("finish",function(){ub(c)});a.on("error",function(d){qb(c,d)});return Z(c,0)};
70
+ exports.renderToPipeableStream=function(a,b,c){var d=Ta(a,b,c?c.onError:void 0,c?c.context:void 0,c?c.identifierPrefix:void 0),e=!1;eb(d);return{pipe:function(g){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;fb(d,g);g.on("drain",vb(g,d));return g},abort:function(g){gb(d,g)}}};
@@ -8,7 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- import * as acorn from 'acorn';
11
+ import * as acorn from 'acorn-loose';
12
12
 
13
13
  const assign = Object.assign;
14
14
 
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": "18.3.0-next-85de6fde5-20230328",
4
+ "version": "18.3.0-next-1308e49a6-20230330",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -78,12 +78,12 @@
78
78
  "node": ">=0.10.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "react": "18.3.0-next-85de6fde5-20230328",
82
- "react-dom": "18.3.0-next-85de6fde5-20230328",
81
+ "react": "18.3.0-next-1308e49a6-20230330",
82
+ "react-dom": "18.3.0-next-1308e49a6-20230330",
83
83
  "webpack": "^5.59.0"
84
84
  },
85
85
  "dependencies": {
86
- "acorn": "^6.2.1",
86
+ "acorn-loose": "^8.3.0",
87
87
  "neo-async": "^2.6.1",
88
88
  "loose-envify": "^1.1.0"
89
89
  },
@@ -666,6 +666,12 @@
666
666
  return undefined;
667
667
  }
668
668
 
669
+ case 'n':
670
+ {
671
+ // BigInt
672
+ return BigInt(value.substring(2));
673
+ }
674
+
669
675
  default:
670
676
  {
671
677
  // We assume that anything else is a reference ID.
@@ -1282,6 +1288,10 @@
1282
1288
  return '$undefined';
1283
1289
  }
1284
1290
 
1291
+ function serializeBigInt(n) {
1292
+ return '$n' + n.toString(10);
1293
+ }
1294
+
1285
1295
  function escapeStringValue(value) {
1286
1296
  if (value[0] === '$') {
1287
1297
  // We need to escape $ prefixed strings since we use those to encode
@@ -1430,7 +1440,7 @@
1430
1440
  }
1431
1441
 
1432
1442
  if (typeof value === 'bigint') {
1433
- throw new Error("BigInt (" + value + ") is not yet supported as an argument to a Server Function.");
1443
+ return serializeBigInt(value);
1434
1444
  }
1435
1445
 
1436
1446
  throw new Error("Type " + typeof value + " is not supported as an argument to a Server Function.");
@@ -14,14 +14,14 @@ a.reason)}}function y(a,b){if("pending"===a.status||"blocked"===a.status){var c=
14
14
  "rejected",a.reason=e}finally{z=b,m=c}}function w(a){try{var b=a.value;if(b.async){var c=B.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(g){a.status="rejected",a.reason=g}}function A(a,b){a._chunks.forEach(function(c){"pending"===c.status&&y(c,b)})}function p(a,b){var c=a._chunks,d=c.get(b);d||(d=new n("pending",null,null,a),c.set(b,d));
15
15
  return d}function S(a,b,c){if(m){var d=m;d.deps++}else d=m={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&x(e,d.value))}}function T(a){return function(b){return y(a,b)}}function U(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?c(b.id,e.value.concat(d)):Promise.resolve(e).then(function(g){return c(b.id,g.concat(d))}):c(b.id,
16
16
  d)};I.set(a,b);return a}function V(a,b,c,d){if("$"===d[0]){if("$"===d)return C;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=p(a,b),{$$typeof:W,_payload:a,_init:R};case "@":return b=parseInt(d.substring(2),16),p(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),D[a]||(D[a]=q.createServerContext(a,X)),D[a].Provider;case "F":b=parseInt(d.substring(2),16);b=p(a,b);switch(b.status){case "resolved_model":t(b)}switch(b.status){case "fulfilled":return U(a,
17
- b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=p(a,d);switch(a.status){case "resolved_model":t(a);break;case "resolved_module":w(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=z,a.then(S(d,b,c),T(d)),null;default:throw a.reason;}}}return d}function Y(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Z(a,b,c){var d=a._chunks,
18
- e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=N(a._bundlerConfig,c);if(c=P(g)){if(e){var h=e;h.status="blocked"}else h=new n("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,g)},function(k){return y(h,k)})}else e?H(e,g):d.set(b,new n("resolved_module",g,null,a))}function J(a){A(a,Error("Connection closed."))}function K(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":Z(a,d,b.substring(c+2));break;case "E":c=JSON.parse(b.substring(c+2)).digest;
19
- b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;var e=c.get(d);e?y(e,b):c.set(d,new n("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=c.value,d=c.reason,c.status="resolved_model",
20
- c.value=b,null!==a&&(t(c),G(c,a,d))):e.set(d,new n("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?V(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ba(a,b,c){function d(k,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);g++;var r=e++;f.then(function(u){u=JSON.stringify(u,d);var L=h;L.append(""+r,u);g--;0===g&&
21
- b(L)},function(u){c(u)});return"$@"+r.toString(16)}return!ca(f)&&Q(f)?Array.from(f):f}if("string"===typeof f)return f="$"===f[0]?"$"+f:f,f;if("boolean"===typeof f||"number"===typeof f)return f;if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,d),null===h&&(h=new FormData),k=e++,h.set(""+k,f),"$F"+k.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");
22
- }if("symbol"===typeof f){k=f.description;if(Symbol.for(k)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+k}if("bigint"===typeof f)throw Error("BigInt ("+f+") is not yet supported as an argument to a Server Function.");throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var e=1,g=0,h=null;a=JSON.stringify(a,d);null===
23
- h?b(a):(h.set("0",a),0===g&&b(h))}function E(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:Y,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}function M(a,b){function c(g){var h=g.value;if(g.done)J(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var r=g.subarray(0,k);r=h.decode(r);K(a,f+r);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,da);
24
- return e.read().then(c).catch(d)}}function d(g){A(a,g)}var e=b.getReader();e.read().then(c).catch(d)}var da={stream:!0},v=new Map,B=new Map,I=new WeakMap,C=Symbol.for("react.element"),W=Symbol.for("react.lazy"),X=Symbol.for("react.default_value"),F=Symbol.iterator,D=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;n.prototype=Object.create(Promise.prototype);n.prototype.then=function(a,b){switch(this.status){case "resolved_model":t(this);break;case "resolved_module":w(this)}switch(this.status){case "fulfilled":a(this.value);
25
- break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var z=null,m=null,ca=Array.isArray;l.createFromFetch=function(a,b){var c=E(b);a.then(function(d){M(c,d.body)},function(d){A(c,d)});return p(c,0)};l.createFromReadableStream=function(a,b){b=E(b);M(b,a);return p(b,0)};l.createFromXHR=function(a,b){function c(h){h=a.responseText;for(var k=g,f=h.indexOf("\n",k);-1<f;)k=
26
- e._partialRow+h.substring(k,f),K(e,k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(h){A(e,new TypeError("Network error"))}var e=E(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(h){c();J(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return p(e,0)};l.encodeReply=function(a){return new Promise(function(b,c){ba(a,b,c)})}});
17
+ b.value);default:throw b.reason;}case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=p(a,d);switch(a.status){case "resolved_model":t(a);break;case "resolved_module":w(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=z,a.then(S(d,b,c),T(d)),null;default:throw a.reason;}}}return d}function Y(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
18
+ }function Z(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=N(a._bundlerConfig,c);if(c=P(g)){if(e){var h=e;h.status="blocked"}else h=new n("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,g)},function(k){return y(h,k)})}else e?H(e,g):d.set(b,new n("resolved_module",g,null,a))}function J(a){A(a,Error("Connection closed."))}function K(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":Z(a,d,b.substring(c+2));break;case "E":c=
19
+ JSON.parse(b.substring(c+2)).digest;b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;var e=c.get(d);e?y(e,b):c.set(d,new n("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=
20
+ c.value,d=c.reason,c.status="resolved_model",c.value=b,null!==a&&(t(c),G(c,a,d))):e.set(d,new n("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?V(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ba(a,b,c){function d(k,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);g++;var r=e++;f.then(function(u){u=JSON.stringify(u,
21
+ d);var L=h;L.append(""+r,u);g--;0===g&&b(L)},function(u){c(u)});return"$@"+r.toString(16)}return!ca(f)&&Q(f)?Array.from(f):f}if("string"===typeof f)return f="$"===f[0]?"$"+f:f,f;if("boolean"===typeof f||"number"===typeof f)return f;if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,d),null===h&&(h=new FormData),k=e++,h.set(""+k,f),"$F"+k.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");
22
+ }if("symbol"===typeof f){k=f.description;if(Symbol.for(k)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+k}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var e=1,g=0,h=null;a=JSON.stringify(a,d);null===h?b(a):(h.set("0",a),0===g&&b(h))}function E(a){a=a&&a.callServer?
23
+ a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:Y,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}function M(a,b){function c(g){var h=g.value;if(g.done)J(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var r=g.subarray(0,k);r=h.decode(r);K(a,f+r);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,da);return e.read().then(c).catch(d)}}function d(g){A(a,g)}var e=b.getReader();
24
+ e.read().then(c).catch(d)}var da={stream:!0},v=new Map,B=new Map,I=new WeakMap,C=Symbol.for("react.element"),W=Symbol.for("react.lazy"),X=Symbol.for("react.default_value"),F=Symbol.iterator,D=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;n.prototype=Object.create(Promise.prototype);n.prototype.then=function(a,b){switch(this.status){case "resolved_model":t(this);break;case "resolved_module":w(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&
25
+ (null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var z=null,m=null,ca=Array.isArray;l.createFromFetch=function(a,b){var c=E(b);a.then(function(d){M(c,d.body)},function(d){A(c,d)});return p(c,0)};l.createFromReadableStream=function(a,b){b=E(b);M(b,a);return p(b,0)};l.createFromXHR=function(a,b){function c(h){h=a.responseText;for(var k=g,f=h.indexOf("\n",k);-1<f;)k=e._partialRow+h.substring(k,f),K(e,
26
+ k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(h){A(e,new TypeError("Network error"))}var e=E(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(h){c();J(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return p(e,0)};l.encodeReply=function(a){return new Promise(function(b,c){ba(a,b,c)})}});
27
27
  })();
@@ -263,8 +263,8 @@
263
263
  return null;
264
264
  }
265
265
 
266
+ // A simple string attribute.
266
267
  // Attributes that aren't in the filter are presumed to have this type.
267
-
268
268
  var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
269
269
  // "enumerated" attributes with "true" and "false" as possible values.
270
270
  // When true, it should be set to a "true" string.
@@ -284,12 +284,10 @@
284
284
 
285
285
  var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
286
286
 
287
- function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
287
+ function PropertyInfoRecord(type, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
288
288
  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
289
289
  this.attributeName = attributeName;
290
290
  this.attributeNamespace = attributeNamespace;
291
- this.mustUseProperty = mustUseProperty;
292
- this.propertyName = name;
293
291
  this.type = type;
294
292
  this.sanitizeURL = sanitizeURL;
295
293
  this.removeEmptyString = removeEmptyString;
@@ -299,8 +297,7 @@
299
297
 
300
298
  ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
301
299
  // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
302
- new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
303
- name.toLowerCase(), // attributeName
300
+ new PropertyInfoRecord(BOOLEANISH_STRING, name.toLowerCase(), // attributeName
304
301
  null, // attributeNamespace
305
302
  false, // sanitizeURL
306
303
  false);
@@ -311,17 +308,15 @@
311
308
  'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
312
309
  'itemScope'].forEach(function (name) {
313
310
  // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
314
- new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
315
- name.toLowerCase(), // attributeName
311
+ new PropertyInfoRecord(BOOLEAN, name.toLowerCase(), // attributeName
316
312
  null, // attributeNamespace
317
313
  false, // sanitizeURL
318
314
  false);
319
- }); // These are the few React props that we set as DOM properties
315
+ }); // These are HTML attributes that are "overloaded booleans": they behave like
320
316
 
321
317
  ['rowSpan', 'start'].forEach(function (name) {
322
318
  // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
323
- new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
324
- name.toLowerCase(), // attributeName
319
+ new PropertyInfoRecord(NUMERIC, name.toLowerCase(), // attributeName
325
320
  null, // attributeNamespace
326
321
  false, // sanitizeURL
327
322
  false);
@@ -362,96 +357,19 @@
362
357
 
363
358
  ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
364
359
  // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
365
- new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
366
- attributeName.toLowerCase(), // attributeName
360
+ new PropertyInfoRecord(STRING, attributeName.toLowerCase(), // attributeName
367
361
  null, // attributeNamespace
368
362
  false, // sanitizeURL
369
363
  false);
370
364
  }); // These attributes accept URLs. These must not allow javascript: URLS.
371
365
  ['src', 'href', 'action'].forEach(function (attributeName) {
372
366
  // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
373
- new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
374
- attributeName.toLowerCase(), // attributeName
367
+ new PropertyInfoRecord(STRING, attributeName.toLowerCase(), // attributeName
375
368
  null, // attributeNamespace
376
369
  true, // sanitizeURL
377
370
  true);
378
371
  });
379
372
 
380
- /**
381
- * CSS properties which accept numbers but are not in units of "px".
382
- */
383
- var isUnitlessNumber = {
384
- animationIterationCount: true,
385
- aspectRatio: true,
386
- borderImageOutset: true,
387
- borderImageSlice: true,
388
- borderImageWidth: true,
389
- boxFlex: true,
390
- boxFlexGroup: true,
391
- boxOrdinalGroup: true,
392
- columnCount: true,
393
- columns: true,
394
- flex: true,
395
- flexGrow: true,
396
- flexPositive: true,
397
- flexShrink: true,
398
- flexNegative: true,
399
- flexOrder: true,
400
- gridArea: true,
401
- gridRow: true,
402
- gridRowEnd: true,
403
- gridRowSpan: true,
404
- gridRowStart: true,
405
- gridColumn: true,
406
- gridColumnEnd: true,
407
- gridColumnSpan: true,
408
- gridColumnStart: true,
409
- fontWeight: true,
410
- lineClamp: true,
411
- lineHeight: true,
412
- opacity: true,
413
- order: true,
414
- orphans: true,
415
- scale: true,
416
- tabSize: true,
417
- widows: true,
418
- zIndex: true,
419
- zoom: true,
420
- // SVG-related properties
421
- fillOpacity: true,
422
- floodOpacity: true,
423
- stopOpacity: true,
424
- strokeDasharray: true,
425
- strokeDashoffset: true,
426
- strokeMiterlimit: true,
427
- strokeOpacity: true,
428
- strokeWidth: true
429
- };
430
- /**
431
- * @param {string} prefix vendor-specific prefix, eg: Webkit
432
- * @param {string} key style name, eg: transitionDuration
433
- * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
434
- * WebkitTransitionDuration
435
- */
436
-
437
- function prefixKey(prefix, key) {
438
- return prefix + key.charAt(0).toUpperCase() + key.substring(1);
439
- }
440
- /**
441
- * Support style names that may come passed in prefixed by adding permutations
442
- * of vendor prefixes.
443
- */
444
-
445
-
446
- var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
447
- // infinite loop, because it iterates over the newly added props too.
448
-
449
- Object.keys(isUnitlessNumber).forEach(function (prop) {
450
- prefixes.forEach(function (prefix) {
451
- isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
452
- });
453
- });
454
-
455
373
  var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
456
374
 
457
375
  function isArray(a) {
@@ -1744,6 +1662,10 @@
1744
1662
  return '$undefined';
1745
1663
  }
1746
1664
 
1665
+ function serializeBigInt(n) {
1666
+ return '$n' + n.toString(10);
1667
+ }
1668
+
1747
1669
  function serializeClientReference(request, parent, key, clientReference) {
1748
1670
  var clientReferenceKey = getClientReferenceKey(clientReference);
1749
1671
  var writtenClientReferences = request.writtenClientReferences;
@@ -2047,7 +1969,7 @@
2047
1969
  }
2048
1970
 
2049
1971
  if (typeof value === 'bigint') {
2050
- throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
1972
+ return serializeBigInt(value);
2051
1973
  }
2052
1974
 
2053
1975
  throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -2822,6 +2744,12 @@
2822
2744
  return undefined;
2823
2745
  }
2824
2746
 
2747
+ case 'n':
2748
+ {
2749
+ // BigInt
2750
+ return BigInt(value.substring(2));
2751
+ }
2752
+
2825
2753
  default:
2826
2754
  {
2827
2755
  // We assume that anything else is a reference ID.