react-server-dom-webpack 19.0.0-canary-96c584661-20240412 → 19.0.0-canary-657428a9e-20240416
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 +40 -7
- package/cjs/react-server-dom-webpack-client.browser.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +7 -7
- package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.edge.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +18 -18
- package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.node.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.node.production.min.js +4 -4
- 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 +40 -7
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +16 -16
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +127 -86
- package/cjs/react-server-dom-webpack-server.browser.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +59 -58
- package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +127 -86
- package/cjs/react-server-dom-webpack-server.edge.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +60 -60
- package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +127 -86
- package/cjs/react-server-dom-webpack-server.node.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.node.production.min.js +60 -61
- 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 +127 -86
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +58 -58
- 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 +40 -7
- package/umd/react-server-dom-webpack-client.browser.production.min.js +19 -19
- package/umd/react-server-dom-webpack-server.browser.development.js +127 -86
- package/umd/react-server-dom-webpack-server.browser.production.min.js +55 -54
@@ -7,9 +7,9 @@
|
|
7
7
|
This source code is licensed under the MIT license found in the
|
8
8
|
LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var aa=require("util");require("crypto");var ba=require("async_hooks"),da=require("react-dom"),ea=require("react"),l=null,m=0,q=!0;function
|
11
|
-
function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(
|
12
|
-
(0===c?
|
10
|
+
'use strict';var aa=require("util");require("crypto");var ba=require("async_hooks"),da=require("react-dom"),ea=require("react"),l=null,m=0,q=!0;function t(a,b){a=a.write(b);q=q&&a}
|
11
|
+
function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(t(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),t(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(t(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(t(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(t(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),t(a,b)):(c=l.length-m,c<b.byteLength&&
|
12
|
+
(0===c?t(a,l):(l.set(b.subarray(0,c),m),m+=c,t(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(t(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new aa.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
|
13
13
|
function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a}
|
14
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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];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.");}};
|
@@ -25,60 +25,60 @@ var wa=new ba.AsyncLocalStorage,xa=Symbol.for("react.temporary.reference"),ya={g
|
|
25
25
|
}throw Error("Cannot access "+String(b)+" on the server. You cannot dot into a temporary client reference from a server component. You can only pass the value through to the client.");},set:function(){throw Error("Cannot assign to a temporary client reference from a server module.");}};
|
26
26
|
function za(a){a=Object.defineProperties(function(){throw Error("Attempted to call a temporary Client Reference from the server but it 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.");},{$$typeof:{value:xa},$$id:{value:a}});return new Proxy(a,ya)}
|
27
27
|
var C=Symbol.for("react.element"),Aa=Symbol.for("react.fragment"),Ba=Symbol.for("react.context"),Ca=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ea=Symbol.for("react.suspense_list"),Fa=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ga=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ha=Symbol.iterator,Ia=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
|
29
|
-
function
|
30
|
-
var
|
31
|
-
function
|
32
|
-
function
|
33
|
-
var
|
34
|
-
function
|
35
|
-
function
|
36
|
-
function
|
37
|
-
"object"===typeof h&&null!==h?
|
38
|
-
var
|
39
|
-
function
|
40
|
-
writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c
|
41
|
-
function
|
42
|
-
|
43
|
-
function
|
44
|
-
function
|
45
|
-
function
|
46
|
-
function
|
47
|
-
switch(c.$$typeof){case D:var g=c._init;c=g(c._payload);return
|
48
|
-
function
|
49
|
-
a.abortableTasks);var E=n.ping;k.then(E,E);n.thenableState=
|
50
|
-
function
|
51
|
-
g];a.pendingChunks++;var E=a.nextChunkId++,ca=
|
52
|
-
function S(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return
|
53
|
-
if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+
|
54
|
-
U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}if("function"===typeof FormData&&e instanceof FormData)return e=Array.from(e.entries()),"$K"+U(a,e).toString(16);null===e||"object"!==typeof e?c=null:(c=Ha&&e[Ha]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return
|
55
|
-
return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
function
|
60
|
-
function
|
61
|
-
|
62
|
-
function
|
63
|
-
|
64
|
-
|
65
|
-
function
|
66
|
-
function
|
67
|
-
function
|
68
|
-
|
69
|
-
function
|
70
|
-
function
|
71
|
-
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new
|
72
|
-
function
|
73
|
-
function
|
74
|
-
case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2))
|
75
|
-
function
|
76
|
-
function
|
77
|
-
function
|
78
|
-
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=
|
79
|
-
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=
|
80
|
-
exports.decodeReplyFromBusboy=function(a,b){var c=
|
81
|
-
new Blob(
|
82
|
-
exports.renderToPipeableStream=function(a,b,c){var d=
|
28
|
+
function F(){}function Ja(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(F,F),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:"string"===typeof b.status?b.then(F,F):(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}}));switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw Ia;}}
|
29
|
+
var G=null;function Ka(){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 H=null,La=0,I=null;function Ma(){var a=I||[];I=null;return a}
|
30
|
+
var Ra={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:J,useTransition:J,readContext:Na,useContext:Na,useReducer:J,useRef:J,useState:J,useInsertionEffect:J,useLayoutEffect:J,useImperativeHandle:J,useEffect:J,useId:Oa,useSyncExternalStore:J,useCacheRefresh:function(){return Pa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ga;return b},use:Qa};
|
31
|
+
function J(){throw Error("This Hook is not supported in Server Components.");}function Pa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Na(){throw Error("Cannot read a Client Context from a Server Component.");}function Oa(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"}
|
32
|
+
function Qa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=La;La+=1;null===I&&(I=[]);return Ja(I,a,b)}a.$$typeof===Ba&&Na()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===Ba)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}
|
33
|
+
var Sa={getCacheForType:function(a){var b=(b=z())?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ta=Array.isArray,Ua=Object.getPrototypeOf;function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
34
|
+
function Wa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ta(a))return"[...]";if(null!==a&&a.$$typeof===Xa)return"client";a=Va(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Xa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
35
|
+
function K(a){if("string"===typeof a)return a;switch(a){case Da:return"Suspense";case Ea:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return K(a.render);case Fa:return K(a.type);case D:var b=a._payload;a=a._init;try{return K(a(b))}catch(c){}}return""}var Xa=Symbol.for("react.client.reference");
|
36
|
+
function L(a,b){var c=Va(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ta(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):Wa(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+K(a.type)+"/>";else{if(a.$$typeof===Xa)return"client";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=
|
37
|
+
"object"===typeof h&&null!==h?L(h):Wa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var M=ea.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(!M)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.');
|
38
|
+
var Ya=Object.prototype,N=JSON.stringify;function Za(a){console.error(a)}function $a(){}
|
39
|
+
function ab(a,b,c,d,e){if(null!==M.C&&M.C!==Sa)throw Error("Currently React only supports one RSC renderer at a time.");M.C=Sa;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortListeners:new Set,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
|
40
|
+
writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?Za:c,onPostpone:void 0===e?$a:e};a=O(b,a,null,!1,f);g.push(a);return b}var P=null;function z(){if(P)return P;var a=wa.getStore();return a?a:null}
|
41
|
+
function bb(a,b,c){var d=O(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,cb(a,d),d.id;case "rejected":return b=Q(a,c.reason),R(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;cb(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);a.abortableTasks.delete(d);
|
42
|
+
db(a)});return d.id}function A(a,b,c){c=N(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");db(a)}function eb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
43
|
+
function fb(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:D,_payload:a,_init:eb}}
|
44
|
+
function gb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;La=0;I=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=fb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=S(a,b,hb,"",d);b.keyPath=e;b.implicitSlot=f;return a}function ib(a,b,c){return null!==b.keyPath?(a=[C,Aa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
|
45
|
+
function jb(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[C,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
|
46
|
+
function kb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v||c.$$typeof===xa?jb(b,c,d,f):gb(a,b,d,c,f);if("string"===typeof c)return jb(b,c,d,f);if("symbol"===typeof c)return c===Aa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=S(a,b,hb,"",f.children),b.implicitSlot=d,a):jb(b,c,d,f);if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return jb(b,c,d,f);
|
47
|
+
switch(c.$$typeof){case D:var g=c._init;c=g(c._payload);return kb(a,b,c,d,e,f);case Ca:return gb(a,b,d,c.render,f);case Fa:return kb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Wa(c));}function cb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return lb(a)}))}
|
48
|
+
function O(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return cb(a,g)},toJSON:function(k,h){var p=g.keyPath,r=g.implicitSlot;try{var n=S(a,g,this,k,h)}catch(ca){if(k=ca===Ia?Ka():ca,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===C||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=O(a,g.model,g.keyPath,g.implicitSlot,
|
49
|
+
a.abortableTasks);var E=n.ping;k.then(E,E);n.thenableState=Ma();g.keyPath=p;g.implicitSlot=r;n=h?"$L"+n.id.toString(16):T(n.id)}else if(g.keyPath=p,g.implicitSlot=r,h)a.pendingChunks++,p=a.nextChunkId++,r=Q(a,k),R(a,p,r),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function T(a){return"$"+a.toString(16)}function mb(a,b,c){a=N(c);return b.toString(16)+":"+a+"\n"}
|
50
|
+
function nb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var r=h.lastIndexOf("#");-1!==r&&(g=h.slice(r+1),p=k[h.slice(0,r)]);if(!p)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 n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
|
51
|
+
g];a.pendingChunks++;var E=a.nextChunkId++,ca=N(n),Lb=E.toString(16)+":I"+ca+"\n";a.completedImportChunks.push(Lb);f.set(e,E);return b[0]===C&&"1"===c?"$L"+E.toString(16):T(E)}catch(Mb){return a.pendingChunks++,b=a.nextChunkId++,c=Q(a,Mb),R(a,b,c),T(b)}}function U(a,b){b=O(a,b,null,!1,a.abortableTasks);ob(a,b);return b.id}var V=!1;
|
52
|
+
function S(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return kb(a,b,e.type,e.key,void 0!==d?d:null,c);case D:return b.thenableState=null,c=e._init,e=c(e._payload),S(a,b,hb,"",e)}if(e.$$typeof===v)return nb(a,c,d,e);c=a.writtenObjects;d=c.get(e);
|
53
|
+
if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+bb(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=bb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(V===e)V=null;else{if(-1===d)return a=U(a,e),T(a);if(-2!==d)return T(d)}else c.set(e,-1);if(Ta(e))return ib(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
|
54
|
+
U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}if("function"===typeof FormData&&e instanceof FormData)return e=Array.from(e.entries()),"$K"+U(a,e).toString(16);null===e||"object"!==typeof e?c=null:(c=Ha&&e[Ha]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return ib(a,b,Array.from(e));a=Ua(e);if(a!==Ya&&(null===a||null!==Ua(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.");
|
55
|
+
return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks++,b=a.nextChunkId++,pb(a,b,e),T(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return nb(a,c,d,e);if(e.$$typeof===w)return b=
|
56
|
+
a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===xa)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+L(c,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". Or maybe you meant to call this function rather than return it.'+
|
57
|
+
L(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return T(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+L(c,d));a.pendingChunks++;c=a.nextChunkId++;d=mb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return T(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
|
58
|
+
" is not supported in Client Component props."+L(c,d));}function Q(a,b){var c=P;P=null;try{var d=wa.run(void 0,a.onError,b)}finally{P=c}if(null!=d&&"string"!==typeof d)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 d+'" instead');return d||""}
|
59
|
+
function qb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function R(a,b,c){c={digest:c};b=b.toString(16)+":E"+N(c)+"\n";a.completedErrorChunks.push(b)}function pb(a,b,c){a.pendingChunks++;var d="string"===typeof c?Buffer.byteLength(c,"utf8"):c.byteLength;b=b.toString(16)+":T"+d.toString(16)+",";a.completedRegularChunks.push(b,c)}var hb={};
|
60
|
+
function ob(a,b){if(0===b.status)try{V=b.model;var c=S(a,b,hb,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;if("object"===typeof c&&null!==c){var d=b.id;if("string"===typeof c)pb(a,d,c);else{var e=N(c,b.toJSON),f=b.id.toString(16)+":"+e+"\n";a.completedRegularChunks.push(f)}}else{var g=N(c),k=b.id.toString(16)+":"+g+"\n";a.completedRegularChunks.push(k)}a.abortableTasks.delete(b);b.status=1}catch(n){var h=n===Ia?Ka():n;if("object"===typeof h&&null!==h&&"function"===typeof h.then){var p=b.ping;
|
61
|
+
h.then(p,p);b.thenableState=Ma()}else{a.abortableTasks.delete(b);b.status=4;var r=Q(a,h);R(a,b.id,r)}}finally{}}function lb(a){var b=M.H;M.H=Ra;var c=P;H=P=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)ob(a,d[e]);null!==a.destination&&rb(a,a.destination)}catch(f){Q(a,f),qb(a,f)}finally{M.H=b,H=null,P=c}}
|
62
|
+
function rb(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
|
63
|
+
null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&(b.end(),a.destination=null)}function sb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,lb,a)})}function db(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return rb(a,b)})}}
|
64
|
+
function tb(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{rb(a,b)}catch(c){Q(a,c),qb(a,c)}}}
|
65
|
+
function ub(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=Q(a,e);R(a,d,f,e);c.forEach(function(h){h.status=3;var p=T(d);h=mb(a,h.id,p);a.completedErrorChunks.push(h)});c.clear()}var g=a.abortListeners;if(0<g.size){var k=void 0===b?Error("The render was aborted by the server without a reason."):b;g.forEach(function(h){return h(k)});g.clear()}null!==a.destination&&rb(a,a.destination)}catch(h){Q(a,
|
66
|
+
h),qb(a,h)}}function vb(a,b){var c=b.lastIndexOf("#");a=b.slice(0,c);b=b.slice(c+1);return{specifier:a,name:b}}var wb=new Map;function xb(a){var b=wb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);a.async&&(c=c.then(function(d){return d.default}));c.then(function(d){var e=c;e.status="fulfilled";e.value=d},function(d){var e=c;e.status="rejected";e.reason=d});wb.set(a.specifier,c);return c}
|
67
|
+
function W(a){var b=wb.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 yb(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}yb.prototype=Object.create(Promise.prototype);
|
68
|
+
yb.prototype.then=function(a,b){switch(this.status){case "resolved_model":zb(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 Ab(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
|
69
|
+
function Bb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Ab(c,b)}}function Cb(a,b,c,d,e,f){var g=vb(a._bundlerConfig,b);a=xb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(g)});else return W(g);c.then(Db(d,e,f),Eb(d));return null}var X=null,Y=null;
|
70
|
+
function zb(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 Fb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Bb(c,b)})}
|
71
|
+
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new yb("resolved_model",d,null,a):new yb("pending",null,null,a),c.set(b,d));return d}function Db(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&&Ab(e,d.value))}}function Eb(a){return function(b){return Bb(a,b)}}
|
72
|
+
function Gb(a,b){a=Z(a,b);"resolved_model"===a.status&&zb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
73
|
+
function Hb(a,b,c,d){if("$"===d[0]){switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Gb(a,d),Cb(a,d.id,d.bound,X,b,c);case "T":return za(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Gb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Gb(a,b),new Set(a);case "K":b=d.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),g)});
|
74
|
+
return f;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2))}d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":zb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Db(d,b,c),Eb(d)),null;default:throw a.reason;}}return d}
|
75
|
+
function Ib(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Hb(e,this,f,g):g}};return e}
|
76
|
+
function Jb(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(zb(b),b.status){case "fulfilled":Ab(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Ab(a,b.reason)}}function Kb(a){Fb(a,Error("Connection closed."))}
|
77
|
+
function Nb(a,b,c){var d=vb(a,b);a=xb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=W(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}function Ob(a,b,c){a=Ib(b,c,a);Kb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Pb(a,b){return function(){return tb(b,a)}}function Qb(a,b){return function(){a.destination=null;ub(a,Error(b))}}
|
78
|
+
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Ob(a,b,e),d=Nb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Nb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
79
|
+
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Ob(b,c,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,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Ib(b,"",a);b=Z(a,0);Kb(a);return b};
|
80
|
+
exports.decodeReplyFromBusboy=function(a,b){var c=Ib(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Jb(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=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.");d++;var r=[];g.on("data",function(n){r.push(n)});g.on("end",function(){var n=
|
81
|
+
new Blob(r,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Jb(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Kb(c)});a.on("error",function(f){Fb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})};
|
82
|
+
exports.renderToPipeableStream=function(a,b,c){var d=ab(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;sb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;tb(d,f);f.on("drain",Pb(f,d));f.on("error",Qb(d,"The destination stream errored while writing data."));f.on("close",Qb(d,"The destination stream closed early."));return f},abort:function(f){ub(d,f)}}};
|
83
83
|
|
84
84
|
//# sourceMappingURL=react-server-dom-webpack-server.node.unbundled.production.min.js.map
|