react-server-dom-webpack 18.3.0-canary-14898b6a9-20240318 → 18.3.0-canary-4b84f1161-20240318
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-client.browser.development.js +91 -189
- package/cjs/react-server-dom-webpack-client.browser.production.js +60 -43
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -23
- package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +96 -241
- package/cjs/react-server-dom-webpack-client.edge.production.js +65 -84
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +29 -29
- package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +96 -241
- package/cjs/react-server-dom-webpack-client.node.production.js +65 -84
- package/cjs/react-server-dom-webpack-client.node.production.min.js +29 -28
- package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +96 -241
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +65 -84
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +30 -30
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-node-register.js.map +1 -1
- package/cjs/react-server-dom-webpack-plugin.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +406 -550
- package/cjs/react-server-dom-webpack-server.browser.production.js +351 -373
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +68 -65
- package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +406 -553
- package/cjs/react-server-dom-webpack-server.edge.production.js +350 -375
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +69 -66
- package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +406 -550
- package/cjs/react-server-dom-webpack-server.node.production.js +350 -372
- package/cjs/react-server-dom-webpack-server.node.production.min.js +72 -70
- package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +406 -550
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +350 -372
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +69 -67
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +91 -189
- package/umd/react-server-dom-webpack-client.browser.production.min.js +23 -22
- package/umd/react-server-dom-webpack-server.browser.development.js +406 -550
- package/umd/react-server-dom-webpack-server.browser.production.min.js +52 -52
@@ -7,73 +7,75 @@
|
|
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
|
12
|
-
(0===
|
13
|
-
function
|
14
|
-
var
|
10
|
+
'use strict';var ba=require("util");require("crypto");var ca=require("async_hooks"),da=require("react"),ea=require("react-dom"),l=null,m=0,p=!0;function q(a,b){a=a.write(b);p=p&&a}
|
11
|
+
function r(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(q(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),q(a,fa.encode(b));else{var d=l;0<m&&(d=l.subarray(m));d=fa.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(q(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(c),l).written);2048===m&&(q(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(q(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),q(a,b)):(d=l.length-m,d<b.byteLength&&
|
12
|
+
(0===d?q(a,l):(l.set(b.subarray(0,d),m),m+=d,q(a,l),b=b.subarray(d)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(q(a,l),l=new Uint8Array(2048),m=0)));return p}var fa=new ba.TextEncoder,t=Symbol.for("react.client.reference"),v=Symbol.for("react.server.reference");function w(a,b,d){return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:b},$$async:{value:d}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
|
13
|
+
function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===v){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a}
|
14
|
+
var ka=Promise.prototype,la={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
|
15
15
|
}throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}};
|
16
|
-
function
|
17
|
-
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var
|
18
|
-
},a.$$id+"#"+b,a.$$async),Object.defineProperty(
|
19
|
-
var
|
20
|
-
function
|
21
|
-
function
|
22
|
-
function
|
23
|
-
function A(a){if(null==a)return null;var b=!1,
|
24
|
-
Symbol.for("react.postpone");var
|
25
|
-
function Ha(a
|
26
|
-
function
|
27
|
-
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function
|
32
|
-
function
|
33
|
-
function
|
34
|
-
"
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
function
|
39
|
-
|
40
|
-
function jb(a){
|
41
|
-
function
|
42
|
-
function
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
function
|
47
|
-
g];a.pendingChunks++;var
|
48
|
-
function
|
49
|
-
|
50
|
-
return"$
|
51
|
-
a.nextChunkId++,
|
52
|
-
c=b.get(
|
53
|
-
|
54
|
-
|
55
|
-
function
|
56
|
-
function
|
57
|
-
function
|
58
|
-
|
59
|
-
|
60
|
-
function
|
61
|
-
|
62
|
-
function
|
63
|
-
function
|
64
|
-
function
|
65
|
-
function
|
66
|
-
function
|
67
|
-
function
|
68
|
-
function
|
69
|
-
|
70
|
-
function
|
71
|
-
|
72
|
-
function
|
73
|
-
|
74
|
-
|
75
|
-
exports.
|
76
|
-
|
77
|
-
exports.
|
16
|
+
function ma(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case "__esModule":var d=a.$$id;a.default=w(function(){throw Error("Attempted to call the default export of "+d+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
|
17
|
+
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var c=w({},a.$$id,!0),e=new Proxy(c,na);a.status="fulfilled";a.value=e;return a.then=w(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}c=a[b];c||(c=w(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
|
18
|
+
},a.$$id+"#"+b,a.$$async),Object.defineProperty(c,"name",{value:b}),c=a[b]=new Proxy(c,la));return c}
|
19
|
+
var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b){var d=Object.getOwnPropertyDescriptor(a,b);d||(d={value:ma(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,d));return d},getPrototypeOf:function(){return ka},set:function(){throw Error("Cannot assign to a client module from a server module.");}},va={prefetchDNS:oa,preconnect:pa,preload:qa,preloadModule:ra,preinitStyle:sa,preinitScript:ta,preinitModuleScript:ua};
|
20
|
+
function oa(a){if("string"===typeof a&&a){var b=x();if(b){var d=b.hints,c="D|"+a;d.has(c)||(d.add(c),y(b,"D",a))}}}function pa(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="C|"+(null==b?"null":b)+"|"+a;c.has(e)||(c.add(e),"string"===typeof b?y(d,"C",[a,b]):y(d,"C",a))}}}
|
21
|
+
function qa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="L";if("image"===b&&d){var g=d.imageSrcSet,k=d.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(d=A(d))?y(c,"L",[a,b,d]):y(c,"L",[a,b]))}}}function ra(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="m|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"m",[a,b]):y(d,"m",a)}}}
|
22
|
+
function sa(a,b,d){if("string"===typeof a){var c=x();if(c){var e=c.hints,f="S|"+a;if(!e.has(f))return e.add(f),(d=A(d))?y(c,"S",[a,"string"===typeof b?b:0,d]):"string"===typeof b?y(c,"S",[a,b]):y(c,"S",a)}}}function ta(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="X|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"X",[a,b]):y(d,"X",a)}}}function ua(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="M|"+a;if(!c.has(e))return c.add(e),(b=A(b))?y(d,"M",[a,b]):y(d,"M",a)}}}
|
23
|
+
function A(a){if(null==a)return null;var b=!1,d={},c;for(c in a)null!=a[c]&&(b=!0,d[c]=a[c]);return b?d:null}var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.server_context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel");
|
24
|
+
Symbol.for("react.postpone");var Fa=Symbol.iterator,D=null;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 Ga(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ga(a)}
|
25
|
+
function Ha(a){var b=a.parent;null!==b&&Ha(b);a.context._currentValue=a.value}function Ia(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):Ia(a,b)}
|
26
|
+
function Ja(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):Ja(a,d);b.context._currentValue=b.value}var Ka=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`");
|
27
|
+
function La(){}function Ma(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(La,La),b=d);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(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ka;}}var F=null;
|
28
|
+
function Na(){if(null===F)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=F;F=null;return a}var G=null,H=0,I=null;function Oa(){var a=I;I=null;return a}function Pa(a){return a._currentValue}
|
29
|
+
var Ta={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:J,useTransition:J,readContext:Pa,useContext:Pa,useReducer:J,useRef:J,useState:J,useInsertionEffect:J,useLayoutEffect:J,useImperativeHandle:J,useEffect:J,useId:Qa,useSyncExternalStore:J,useCacheRefresh:function(){return Ra},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=Ea;return b},use:Sa};
|
30
|
+
function J(){throw Error("This Hook is not supported in Server Components.");}function Ra(){throw Error("Refreshing the cache is not supported in Server Components.");}function Qa(){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)+":"}
|
31
|
+
function Sa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=H;H+=1;null===I&&(I=[]);return Ma(I,a,b)}if(a.$$typeof===za)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ua(){return(new AbortController).signal}function Va(){var a=x();return a?a.cache:new Map}
|
32
|
+
var Wa={getCacheSignal:function(){var a=Va(),b=a.get(Ua);void 0===b&&(b=Ua(),a.set(Ua,b));return b},getCacheForType:function(a){var b=Va(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Xa=Array.isArray,Ya=Object.getPrototypeOf;function Za(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
33
|
+
function $a(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Xa(a))return"[...]";a=Za(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
34
|
+
function K(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return K(a.render);case Da:return K(a.type);case C:var b=a._payload;a=a._init;try{return K(a(b))}catch(d){}}return""}
|
35
|
+
function L(a,b){var d=Za(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Xa(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?L(g):$a(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+K(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h="object"===typeof h&&null!==h?L(h):
|
36
|
+
$a(h);k===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var ab=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bb=da.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;if(!bb)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');
|
37
|
+
var cb=Object.prototype,M=JSON.stringify,db=bb.ReactCurrentCache,eb=ab.ReactCurrentDispatcher;function fb(a){console.error(a)}function gb(){}
|
38
|
+
function hb(a,b,d,c,e,f){if(null!==db.current&&db.current!==Wa)throw Error("Currently React only supports one RSC renderer at a time.");wa.current=va;db.current=Wa;var g=new Set;c=[];var k=new Set,h={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:c,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
39
|
+
writtenServerReferences:new Map,writtenProviders:new Map,writtenObjects:new WeakMap,identifierPrefix:e||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===d?fb:d,onPostpone:void 0===f?gb:f,toJSON:function(n,z){return ib(h,this,n,z)}};h.pendingChunks++;a=N(h,a,null,g);c.push(a);return h}var O=null;function x(){if(O)return O;var a=xa.getStore();return a?a:null}
|
40
|
+
function jb(a,b){a.pendingChunks++;var d=N(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,kb(a,d),d.id;case "rejected":var c=P(a,b.reason);Q(a,d.id,c);return d.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){d.model=e;kb(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);a.abortableTasks.delete(d);
|
41
|
+
null!==a.destination&&R(a,a.destination)});return d.id}function y(a,b,d){d=M(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");lb(a)}function mb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
42
|
+
function nb(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:C,_payload:a,_init:mb}}
|
43
|
+
function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===t)return[B,b,d,e];H=0;I=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:nb(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===ya?e.children:[B,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===t)return[B,b,d,e];switch(b.$$typeof){case C:var g=
|
44
|
+
b._init;b=g(b._payload);return S(a,b,d,c,e,f);case Aa:return a=b.render,H=0,I=f,a(e,void 0);case Da:return S(a,b.type,d,c,e,f)}}throw Error("Unsupported Server Component type: "+$a(b));}function kb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return ob(a)}))}function N(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return kb(a,e)},thenableState:null};c.add(e);return e}
|
45
|
+
function T(a){return"$"+a.toString(16)}function pb(a,b,d){a=M(d);return b.toString(16)+":"+a+"\n"}
|
46
|
+
function qb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===B&&"1"===d?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=c.$$id;g="";var n=k[h];if(n)g=n.name;else{var z=h.lastIndexOf("#");-1!==z&&(g=h.slice(z+1),n=k[h.slice(0,z)]);if(!n)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var u=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
|
47
|
+
g];a.pendingChunks++;var aa=a.nextChunkId++,Mb=M(u),Nb=aa.toString(16)+":I"+Mb+"\n";a.completedImportChunks.push(Nb);f.set(e,aa);return b[0]===B&&"1"===d?"$L"+aa.toString(16):T(aa)}catch(Ob){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,Ob),Q(a,b,d),T(b)}}function U(a,b){a.pendingChunks++;b=N(a,b,D,a.abortableTasks);rb(a,b);return b.id}var V=!1;
|
48
|
+
function ib(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===C);)try{switch(c.$$typeof){case B:var e=a.writtenObjects,f=e.get(c);if(void 0!==f){if(-1===f){var g=U(a,c);return T(g)}if(V===c)V=null;else return T(f)}else e.set(c,-1);var k=c;c=S(a,k.type,k.key,k.ref,k.props,null);break;case C:var h=c._init;c=h(c._payload)}}catch(n){b=n===Ka?Na():n;if("object"===typeof b&&null!==b&&"function"===typeof b.then)return a.pendingChunks++,a=N(a,c,D,a.abortableTasks),
|
49
|
+
c=a.ping,b.then(c,c),a.thenableState=Oa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;b=P(a,b);Q(a,c,b);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===t)return qb(a,b,d,c);b=a.writtenObjects;d=b.get(c);if("function"===typeof c.then){if(void 0!==d)if(V===c)V=null;else return"$@"+d.toString(16);a=jb(a,c);b.set(c,a);return"$@"+a.toString(16)}if(void 0!==d){if(-1===d)return a=U(a,c),T(a);if(V===c)V=null;else return T(d)}else b.set(c,-1);if(Xa(c))return c;
|
50
|
+
if(c instanceof Map){c=Array.from(c);for(b=0;b<c.length;b++)d=c[b][0],"object"===typeof d&&null!==d&&(e=a.writtenObjects,void 0===e.get(d)&&e.set(d,-1));return"$Q"+U(a,c).toString(16)}if(c instanceof Set){c=Array.from(c);for(b=0;b<c.length;b++)d=c[b],"object"===typeof d&&null!==d&&(e=a.writtenObjects,void 0===e.get(d)&&e.set(d,-1));return"$W"+U(a,c).toString(16)}null===c||"object"!==typeof c?a=null:(a=Fa&&c[Fa]||c["@@iterator"],a="function"===typeof a?a:null);if(a)return Array.from(c);a=Ya(c);if(a!==
|
51
|
+
cb&&(null===a||null!==Ya(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;if(1024<=c.length)return a.pendingChunks+=2,b=a.nextChunkId++,d="string"===typeof c?Buffer.byteLength(c,"utf8"):c.byteLength,d=b.toString(16)+":T"+d.toString(16)+",",a.completedRegularChunks.push(d,c),T(b);a="$"===c[0]?"$"+
|
52
|
+
c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===t)return qb(a,b,d,c);if(c.$$typeof===v)return b=a.writtenServerReferences,d=b.get(c),void 0!==d?a="$F"+d.toString(16):(d=c.$$bound,d={id:c.$$id,bound:d?Promise.resolve(d):null},a=U(a,d),b.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+
|
53
|
+
L(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 unless you explicitly expose it by marking it with "use server".'+L(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return T(f);f=c.description;if(Symbol.for(f)!==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.")+
|
54
|
+
L(b,d));a.pendingChunks++;b=a.nextChunkId++;d=pb(a,b,"$S"+f);a.completedImportChunks.push(d);e.set(c,b);return T(b)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+L(b,d));}
|
55
|
+
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 sb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
56
|
+
function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+M(d)+"\n";a.completedErrorChunks.push(b)}
|
57
|
+
function rb(a,b){if(0===b.status){var d=D,c=b.context;d!==c&&(null===d?Ha(c):null===c?Ga(d):d.depth===c.depth?E(d,c):d.depth>c.depth?Ia(d,c):Ja(d,c),D=c);try{var e=b.model;if("object"===typeof e&&null!==e&&e.$$typeof===B){a.writtenObjects.set(e,b.id);d=e;var f=b.thenableState;b.model=e;e=S(a,d.type,d.key,d.ref,d.props,f);for(b.thenableState=null;"object"===typeof e&&null!==e&&e.$$typeof===B;)a.writtenObjects.set(e,b.id),f=e,b.model=e,e=S(a,f.type,f.key,f.ref,f.props,null)}"object"===typeof e&&null!==
|
58
|
+
e&&a.writtenObjects.set(e,b.id);var g=b.id;V=e;var k=M(e,a.toJSON),h=g.toString(16)+":"+k+"\n";a.completedRegularChunks.push(h);a.abortableTasks.delete(b);b.status=1}catch(n){g=n===Ka?Na():n,"object"===typeof g&&null!==g&&"function"===typeof g.then?(a=b.ping,g.then(a,a),b.thenableState=Oa()):(a.abortableTasks.delete(b),b.status=4,g=P(a,g),Q(a,b.id,g))}}}
|
59
|
+
function ob(a){var b=eb.current;eb.current=Ta;var d=O;G=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++)rb(a,c[e]);null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),sb(a,f)}finally{eb.current=b,G=null,O=d}}
|
60
|
+
function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!r(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!r(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!r(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--,!r(b,g[c])){a.destination=
|
61
|
+
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,p=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function tb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return xa.run(a,ob,a)})}function lb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return R(a,b)})}}
|
62
|
+
function ub(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(d){P(a,d),sb(a,d)}}}
|
63
|
+
function vb(a,b){try{var d=a.abortableTasks;if(0<d.size){a.pendingChunks++;var c=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=P(a,e);Q(a,c,f,e);d.forEach(function(g){g.status=3;var k=T(c);g=pb(a,g.id,k);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),sb(a,g)}}function wb(a,b){var d=b.lastIndexOf("#");a=b.slice(0,d);b=b.slice(d+1);return{specifier:a,name:b}}var xb=new Map;
|
64
|
+
function yb(a){var b=xb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var d=import(a.specifier);a.async&&(d=d.then(function(c){return c.default}));d.then(function(c){var e=d;e.status="fulfilled";e.value=c},function(c){var e=d;e.status="rejected";e.reason=c});xb.set(a.specifier,d);return d}function W(a){var b=xb.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]}
|
65
|
+
function zb(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}zb.prototype=Object.create(Promise.prototype);zb.prototype.then=function(a,b){switch(this.status){case "resolved_model":Ab(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)}};
|
66
|
+
function Bb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}function Cb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Bb(d,b)}}function Db(a,b,d,c,e,f){var g=wb(a._bundlerConfig,b);a=yb(g);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return W(g)});else return W(g);d.then(Eb(c,e,f),Fb(c));return null}var X=null,Y=null;
|
67
|
+
function Ab(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Gb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Cb(d,b)})}
|
68
|
+
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new zb("resolved_model",c,null,a):new zb("pending",null,null,a),d.set(b,c));return c}function Eb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Bb(e,c.value))}}function Fb(a){return function(b){return Cb(a,b)}}
|
69
|
+
function Hb(a,b){a=Z(a,b);"resolved_model"===a.status&&Ab(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
70
|
+
function Ib(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":return c=parseInt(c.slice(2),16),c=Hb(a,c),Db(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Hb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Hb(a,b),new Set(a);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),
|
71
|
+
g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":Ab(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Eb(c,b,d),Fb(c)),null;default:throw a.reason;}}return c}
|
72
|
+
function Jb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?Ib(e,this,f,g):g}};return e}
|
73
|
+
function Kb(a,b,d){a._formData.append(b,d);var c=a._prefix;if(b.startsWith(c)&&(a=a._chunks,b=+b.slice(c.length),(b=a.get(b))&&"pending"===b.status&&(c=b.value,a=b.reason,b.status="resolved_model",b.value=d,null!==c)))switch(Ab(b),b.status){case "fulfilled":Bb(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&Bb(a,b.reason)}}function Lb(a){Gb(a,Error("Connection closed."))}
|
74
|
+
function Pb(a,b,d){var c=wb(a,b);a=yb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=W(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(c)}):Promise.resolve(W(c))}function Qb(a,b,d){a=Jb(b,d,a);Lb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Rb(a,b){return function(){return ub(b,a)}}function Sb(a,b){return function(){a.destination=null;vb(a,Error(b))}}
|
75
|
+
exports.createClientModuleProxy=function(a){a=w({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Qb(a,b,e),c=Pb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Pb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
|
76
|
+
exports.decodeFormState=function(a,b,d){var c=b.get("$ACTION_KEY");if("string"!==typeof c)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Qb(b,d,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,c,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Jb(b,"",a);b=Z(a,0);Lb(a);return b};
|
77
|
+
exports.decodeReplyFromBusboy=function(a,b){var d=Jb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Kb(d,f,g)});a.on("file",function(f,g,k){var h=k.filename,n=k.mimeType;if("base64"===k.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.");c++;var z=[];g.on("data",function(u){z.push(u)});g.on("end",function(){var u=
|
78
|
+
new Blob(z,{type:n});d._formData.append(f,u,h);c--;if(0===c){for(u=0;u<e.length;u+=2)Kb(d,e[u],e[u+1]);e.length=0}})});a.on("finish",function(){Lb(d)});a.on("error",function(f){Gb(d,f)});return Z(d,0)};exports.registerClientReference=function(a,b,d){return w(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:ja}})};
|
79
|
+
exports.renderToPipeableStream=function(a,b,d){var c=hb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;tb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;ub(c,f);f.on("drain",Rb(f,c));f.on("error",Sb(c,"The destination stream errored while writing data."));f.on("close",Sb(c,"The destination stream closed early."));return f},abort:function(f){vb(c,f)}}};
|
78
80
|
|
79
81
|
//# sourceMappingURL=react-server-dom-webpack-server.node.unbundled.production.min.js.map
|