react-server-dom-webpack 18.3.0-next-a8875eab7-20230310 → 18.3.0-next-56a3c18e5-20230314
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 +582 -1
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +22 -19
- package/cjs/react-server-dom-webpack-client.edge.development.js +4 -1
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +16 -16
- package/cjs/react-server-dom-webpack-client.node.development.js +4 -1
- package/cjs/react-server-dom-webpack-client.node.production.min.js +18 -18
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +15 -15
- package/cjs/react-server-dom-webpack-server.browser.development.js +1146 -617
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +57 -46
- package/cjs/react-server-dom-webpack-server.edge.development.js +1146 -617
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +55 -44
- package/cjs/react-server-dom-webpack-server.node.development.js +1181 -613
- package/cjs/react-server-dom-webpack-server.node.production.min.js +58 -46
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +1145 -617
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +52 -41
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +582 -1
- package/umd/react-server-dom-webpack-client.browser.production.min.js +17 -14
- package/umd/react-server-dom-webpack-server.browser.development.js +1146 -617
- package/umd/react-server-dom-webpack-server.browser.production.min.js +44 -37
@@ -7,22 +7,25 @@
|
|
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 l=require("react"),m={stream:!0};function n(a,b){return a?(a=a[b.id][b.name],b.async?{id:a.id,chunks:a.chunks,name:a.name,async:!0}:a):b}var
|
11
|
-
function
|
12
|
-
var
|
13
|
-
|
14
|
-
function
|
15
|
-
function
|
16
|
-
function
|
17
|
-
function
|
18
|
-
function
|
19
|
-
function
|
20
|
-
function
|
21
|
-
b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=
|
22
|
-
function
|
23
|
-
function
|
24
|
-
var e=c.get(d);e?
|
25
|
-
function
|
26
|
-
|
27
|
-
|
28
|
-
|
10
|
+
'use strict';var l=require("react"),m={stream:!0};function n(a,b){return a?(a=a[b.id][b.name],b.async?{id:a.id,chunks:a.chunks,name:a.name,async:!0}:a):b}var q=new Map,t=new Map;function u(){}
|
11
|
+
function v(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],g=q.get(e);if(void 0===g){g=__webpack_chunk_load__(e);c.push(g);var h=q.set.bind(q,e,null);g.then(h,u);q.set(e,g)}else null!==g&&c.push(g)}if(a.async){if(b=t.get(a.id))return"fulfilled"===b.status?null:b;var k=Promise.all(c).then(function(){return __webpack_require__(a.id)});k.then(function(f){k.status="fulfilled";k.value=f},function(f){k.status="rejected";k.reason=f});t.set(a.id,k);return k}return 0<c.length?Promise.all(c):null}
|
12
|
+
var w=new WeakMap,x=Symbol.for("react.element"),y=Symbol.for("react.lazy"),z=Symbol.for("react.default_value"),A=Symbol.iterator;function B(a){if(null===a||"object"!==typeof a)return null;a=A&&a[A]||a["@@iterator"];return"function"===typeof a?a:null}var C=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function D(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}D.prototype=Object.create(Promise.prototype);
|
13
|
+
D.prototype.then=function(a,b){switch(this.status){case "resolved_model":E(this);break;case "resolved_module":F(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)}};
|
14
|
+
function G(a){switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function H(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function I(a,b,c){switch(a.status){case "fulfilled":H(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&H(c,a.reason)}}
|
15
|
+
function J(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&H(c,b)}}function L(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(F(a),I(a,c,d))}}var M=null,N=null;
|
16
|
+
function E(a){var b=M,c=N;M=a;N=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==N&&0<N.deps?(N.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{M=b,N=c}}
|
17
|
+
function F(a){try{var b=a.value;if(b.async){var c=t.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 O(a,b){a._chunks.forEach(function(c){"pending"===c.status&&J(c,b)})}function P(a,b){var c=a._chunks,d=c.get(b);d||(d=new D("pending",null,null,a),c.set(b,d));return d}
|
18
|
+
function Q(a,b,c){if(N){var d=N;d.deps++}else d=N={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&&H(e,d.value))}}function R(a){return function(b){return J(a,b)}}
|
19
|
+
function S(a,b){function c(){var e=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?d(b.id,g.value.concat(e)):Promise.resolve(g).then(function(h){return d(b.id,h.concat(e))}):d(b.id,e)}var d=a._callServer;w.set(c,b);return c}
|
20
|
+
function T(a,b,c,d){if("$"===d[0]){if("$"===d)return x;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=P(a,b),{$$typeof:y,_payload:a,_init:G};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),C[a]||(C[a]=l.createServerContext(a,z)),C[a].Provider;case "F":b=parseInt(d.substring(2),16);b=P(a,b);switch(b.status){case "resolved_model":E(b)}switch(b.status){case "fulfilled":return S(a,
|
21
|
+
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":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=M,a.then(Q(d,b,c),R(d)),null;default:throw a.reason;}}}return d}function U(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
22
|
+
function V(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=v(g)){if(e){var h=e;h.status="blocked"}else h=new D("blocked",null,null,a),d.set(b,h);c.then(function(){return L(h,g)},function(k){return J(h,k)})}else e?L(e,g):d.set(b,new D("resolved_module",g,null,a))}function W(a){O(a,Error("Connection closed."))}
|
23
|
+
function X(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":V(a,d,b.substring(c+2));break;case "E":c=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;
|
24
|
+
var e=c.get(d);e?J(e,b):c.set(d,new D("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",c.value=b,null!==a&&(E(c),I(c,a,d))):e.set(d,new D("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?T(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===x?{$$typeof:x,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}var ba=Array.isArray;
|
25
|
+
function ca(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 p=e++;f.then(function(r){r=JSON.stringify(r,d);var K=h;K.append(""+p,r);g--;0===g&&b(K)},function(r){c(r)});return"$@"+p.toString(16)}return!ba(f)&&B(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=w.get(f);
|
26
|
+
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.");}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"+
|
27
|
+
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===h?b(a):(h.set("0",a),0===g&&b(h))}function Y(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:U,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}
|
28
|
+
function Z(a,b){function c(g){var h=g.value;if(g.done)W(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var p=g.subarray(0,k);p=h.decode(p);X(a,f+p);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,m);return e.read().then(c).catch(d)}}function d(g){O(a,g)}var e=b.getReader();e.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(b);a.then(function(d){Z(c,d.body)},function(d){O(c,d)});return P(c,0)};
|
29
|
+
exports.createFromReadableStream=function(a,b){b=Y(b);Z(b,a);return P(b,0)};
|
30
|
+
exports.createFromXHR=function(a,b){function c(){for(var h=a.responseText,k=g,f=h.indexOf("\n",k);-1<f;)k=e._partialRow+h.substring(k,f),X(e,k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(){O(e,new TypeError("Network error"))}var e=Y(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(){c();W(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return P(e,0)};
|
31
|
+
exports.encodeReply=function(a){return new Promise(function(b,c){ca(a,b,c)})};
|
@@ -51,7 +51,7 @@ function resolveClientReference(bundlerConfig, metadata) {
|
|
51
51
|
}
|
52
52
|
|
53
53
|
return metadata;
|
54
|
-
}
|
54
|
+
}
|
55
55
|
// If they're still pending they're a thenable. This map also exists
|
56
56
|
// in Webpack but unfortunately it's not exposed so we have to
|
57
57
|
// replicate it in user space. null means that it has already loaded.
|
@@ -150,6 +150,8 @@ function requireModule(metadata) {
|
|
150
150
|
return moduleExports[metadata.name];
|
151
151
|
}
|
152
152
|
|
153
|
+
var knownServerReferences = new WeakMap();
|
154
|
+
|
153
155
|
// ATTENTION
|
154
156
|
// When adding new symbols to this file,
|
155
157
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
@@ -563,6 +565,7 @@ function createServerReferenceProxy(response, metaData) {
|
|
563
565
|
});
|
564
566
|
};
|
565
567
|
|
568
|
+
knownServerReferences.set(proxy, metaData);
|
566
569
|
return proxy;
|
567
570
|
}
|
568
571
|
|
@@ -8,19 +8,19 @@
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
10
|
'use strict';var p=require("react"),q={stream:!0};function r(a,b){return a?(a=a[b.id][b.name],b.async?{id:a.id,chunks:a.chunks,name:a.name,async:!0}:a):b}var t=new Map,u=new Map;function v(){}
|
11
|
-
function w(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var f=b[d],e=t.get(f);if(void 0===e){e=__webpack_chunk_load__(f);c.push(e);var
|
12
|
-
var x=Symbol.for("react.element"),
|
13
|
-
|
14
|
-
function
|
15
|
-
function
|
16
|
-
function
|
17
|
-
function
|
18
|
-
function
|
19
|
-
function
|
20
|
-
function
|
21
|
-
b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=
|
22
|
-
function
|
23
|
-
function
|
24
|
-
function
|
25
|
-
h.stack="Error: "+h.message;h.digest=k;k=g._chunks;var z=k.get(n);z?
|
26
|
-
exports.createFromFetch=function(a,b){var c=
|
11
|
+
function w(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var f=b[d],e=t.get(f);if(void 0===e){e=__webpack_chunk_load__(f);c.push(e);var l=t.set.bind(t,f,null);e.then(l,v);t.set(f,e)}else null!==e&&c.push(e)}if(a.async){if(b=u.get(a.id))return"fulfilled"===b.status?null:b;var m=Promise.all(c).then(function(){return __webpack_require__(a.id)});m.then(function(g){m.status="fulfilled";m.value=g},function(g){m.status="rejected";m.reason=g});u.set(a.id,m);return m}return 0<c.length?Promise.all(c):null}
|
12
|
+
var x=new WeakMap,y=Symbol.for("react.element"),A=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),C=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function D(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}D.prototype=Object.create(Promise.prototype);
|
13
|
+
D.prototype.then=function(a,b){switch(this.status){case "resolved_model":E(this);break;case "resolved_module":F(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)}};
|
14
|
+
function G(a){switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function H(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function I(a,b,c){switch(a.status){case "fulfilled":H(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&H(c,a.reason)}}
|
15
|
+
function J(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&H(c,b)}}function K(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(F(a),I(a,c,d))}}var L=null,M=null;
|
16
|
+
function E(a){var b=L,c=M;L=a;M=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==M&&0<M.deps?(M.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(f){a.status="rejected",a.reason=f}finally{L=b,M=c}}
|
17
|
+
function F(a){try{var b=a.value;if(b.async){var c=u.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var f="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=f}catch(e){a.status="rejected",a.reason=e}}function N(a,b){a._chunks.forEach(function(c){"pending"===c.status&&J(c,b)})}function O(a,b){var c=a._chunks,d=c.get(b);d||(d=new D("pending",null,null,a),c.set(b,d));return d}
|
18
|
+
function P(a,b,c){if(M){var d=M;d.deps++}else d=M={deps:1,value:null};return function(f){b[c]=f;d.deps--;0===d.deps&&"blocked"===a.status&&(f=a.value,a.status="fulfilled",a.value=d.value,null!==f&&H(f,d.value))}}function Q(a){return function(b){return J(a,b)}}
|
19
|
+
function R(a,b){function c(){var f=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?d(b.id,e.value.concat(f)):Promise.resolve(e).then(function(l){return d(b.id,l.concat(f))}):d(b.id,f)}var d=a._callServer;x.set(c,b);return c}
|
20
|
+
function S(a,b,c,d){if("$"===d[0]){if("$"===d)return y;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=O(a,b),{$$typeof:A,_payload:a,_init:G};case "@":return b=parseInt(d.substring(2),16),O(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),C[a]||(C[a]=p.createServerContext(a,B)),C[a].Provider;case "F":b=parseInt(d.substring(2),16);b=O(a,b);switch(b.status){case "resolved_model":E(b)}switch(b.status){case "fulfilled":return R(a,
|
21
|
+
b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=O(a,d);switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=L,a.then(P(d,b,c),Q(d)),null;default:throw a.reason;}}}return d}function T(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
22
|
+
function U(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var e=r(a._bundlerConfig,c);if(c=w(e)){if(f){var l=f;l.status="blocked"}else l=new D("blocked",null,null,a),d.set(b,l);c.then(function(){return K(l,e)},function(m){return J(l,m)})}else f?K(f,e):d.set(b,new D("resolved_module",e,null,a))}function V(a){return function(b,c){return"string"===typeof c?S(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===y?{$$typeof:y,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
|
23
|
+
function W(a,b){var c=new TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:T,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=V(a);return a}function X(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
24
|
+
function Y(a,b){function c(e){var l=e.value;if(e.done)N(a,Error("Connection closed."));else{e=l;l=a._stringDecoder;for(var m=e.indexOf(10);-1<m;){var g=a._partialRow;var n=e.subarray(0,m);n=l.decode(n);var h=g+n;g=a;if(""!==h){var k=h.indexOf(":",0);n=parseInt(h.substring(0,k),16);switch(h[k+1]){case "I":U(g,n,h.substring(k+2));break;case "E":k=JSON.parse(h.substring(k+2)).digest;h=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.");
|
25
|
+
h.stack="Error: "+h.message;h.digest=k;k=g._chunks;var z=k.get(n);z?J(z,h):k.set(n,new D("rejected",null,h,g));break;default:h=h.substring(k+1),k=g._chunks,(z=k.get(n))?(g=z,n=h,"pending"===g.status&&(h=g.value,k=g.reason,g.status="resolved_model",g.value=n,null!==h&&(E(g),I(g,h,k)))):k.set(n,new D("resolved_model",h,null,g))}}a._partialRow="";e=e.subarray(m+1);m=e.indexOf(10)}a._partialRow+=l.decode(e,q);return f.read().then(c).catch(d)}}function d(e){N(a,e)}var f=b.getReader();f.read().then(c).catch(d)}
|
26
|
+
exports.createFromFetch=function(a,b){var c=W(b&&b.moduleMap?b.moduleMap:null,X);a.then(function(d){Y(c,d.body)},function(d){N(c,d)});return O(c,0)};exports.createFromReadableStream=function(a,b){b=W(b&&b.moduleMap?b.moduleMap:null,X);Y(b,a);return O(b,0)};
|
@@ -52,7 +52,7 @@ function resolveClientReference(bundlerConfig, metadata) {
|
|
52
52
|
}
|
53
53
|
|
54
54
|
return metadata;
|
55
|
-
}
|
55
|
+
}
|
56
56
|
// If they're still pending they're a thenable. This map also exists
|
57
57
|
// in Webpack but unfortunately it's not exposed so we have to
|
58
58
|
// replicate it in user space. null means that it has already loaded.
|
@@ -151,6 +151,8 @@ function requireModule(metadata) {
|
|
151
151
|
return moduleExports[metadata.name];
|
152
152
|
}
|
153
153
|
|
154
|
+
var knownServerReferences = new WeakMap();
|
155
|
+
|
154
156
|
// ATTENTION
|
155
157
|
// When adding new symbols to this file,
|
156
158
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
@@ -564,6 +566,7 @@ function createServerReferenceProxy(response, metaData) {
|
|
564
566
|
});
|
565
567
|
};
|
566
568
|
|
569
|
+
knownServerReferences.set(proxy, metaData);
|
567
570
|
return proxy;
|
568
571
|
}
|
569
572
|
|
@@ -7,21 +7,21 @@
|
|
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 k=require("util"),l=require("react"),m={stream:!0};function n(a,
|
11
|
-
function t(a){for(var
|
12
|
-
var u=Symbol.for("react.element"),
|
13
|
-
|
14
|
-
function
|
15
|
-
function
|
16
|
-
function
|
17
|
-
function
|
18
|
-
function
|
19
|
-
function
|
20
|
-
function
|
21
|
-
|
22
|
-
function
|
23
|
-
function
|
24
|
-
var e=
|
25
|
-
function
|
26
|
-
exports.createFromNodeStream=function(a,
|
27
|
-
Error("Connection closed."))});return
|
10
|
+
'use strict';var k=require("util"),l=require("react"),m={stream:!0};function n(a,b){return a?(a=a[b.id][b.name],b.async?{id:a.id,chunks:a.chunks,name:a.name,async:!0}:a):b}var p=new Map,q=new Map;function r(){}
|
11
|
+
function t(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],f=p.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var h=p.set.bind(p,e,null);f.then(h,r);p.set(e,f)}else null!==f&&c.push(f)}if(a.async){if(b=q.get(a.id))return"fulfilled"===b.status?null:b;var g=Promise.all(c).then(function(){return __webpack_require__(a.id)});g.then(function(w){g.status="fulfilled";g.value=w},function(w){g.status="rejected";g.reason=w});q.set(a.id,g);return g}return 0<c.length?Promise.all(c):null}
|
12
|
+
var u=new WeakMap,v=Symbol.for("react.element"),x=Symbol.for("react.lazy"),y=Symbol.for("react.default_value"),z=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function A(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}A.prototype=Object.create(Promise.prototype);
|
13
|
+
A.prototype.then=function(a,b){switch(this.status){case "resolved_model":B(this);break;case "resolved_module":C(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)}};
|
14
|
+
function D(a){switch(a.status){case "resolved_model":B(a);break;case "resolved_module":C(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function E(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function F(a,b,c){switch(a.status){case "fulfilled":E(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&E(c,a.reason)}}
|
15
|
+
function G(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&E(c,b)}}function H(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(C(a),F(a,c,d))}}var I=null,J=null;
|
16
|
+
function B(a){var b=I,c=J;I=a;J=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==J&&0<J.deps?(J.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{I=b,J=c}}
|
17
|
+
function C(a){try{var b=a.value;if(b.async){var c=q.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(f){a.status="rejected",a.reason=f}}function K(a,b){a._chunks.forEach(function(c){"pending"===c.status&&G(c,b)})}function L(a,b){var c=a._chunks,d=c.get(b);d||(d=new A("pending",null,null,a),c.set(b,d));return d}
|
18
|
+
function M(a,b,c){if(J){var d=J;d.deps++}else d=J={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&&E(e,d.value))}}function N(a){return function(b){return G(a,b)}}
|
19
|
+
function O(a,b){function c(){var e=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?d(b.id,f.value.concat(e)):Promise.resolve(f).then(function(h){return d(b.id,h.concat(e))}):d(b.id,e)}var d=a._callServer;u.set(c,b);return c}
|
20
|
+
function P(a,b,c,d){if("$"===d[0]){if("$"===d)return v;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=L(a,b),{$$typeof:x,_payload:a,_init:D};case "@":return b=parseInt(d.substring(2),16),L(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),z[a]||(z[a]=l.createServerContext(a,y)),z[a].Provider;case "F":b=parseInt(d.substring(2),16);b=L(a,b);switch(b.status){case "resolved_model":B(b)}switch(b.status){case "fulfilled":return O(a,
|
21
|
+
b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=L(a,d);switch(a.status){case "resolved_model":B(a);break;case "resolved_module":C(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=I,a.then(M(d,b,c),N(d)),null;default:throw a.reason;}}}return d}function Q(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
22
|
+
function R(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=n(a._bundlerConfig,c);if(c=t(f)){if(e){var h=e;h.status="blocked"}else h=new A("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,f)},function(g){return G(h,g)})}else e?H(e,f):d.set(b,new A("resolved_module",f,null,a))}
|
23
|
+
function S(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":R(a,d,b.substring(c+2));break;case "E":c=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;
|
24
|
+
var e=c.get(d);e?G(e,b):c.set(d,new A("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",c.value=b,null!==a&&(B(c),F(c,a,d))):e.set(d,new A("resolved_model",b,null,a))}}}function T(a){return function(b,c){return"string"===typeof c?P(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===v?{$$typeof:v,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
|
25
|
+
function U(a,b){var c=new k.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:Q,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=T(a);return a}function V(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
26
|
+
exports.createFromNodeStream=function(a,b){var c=U(b,V);a.on("data",function(d){if("string"===typeof d){for(var e=0,f=d.indexOf("\n",e);-1<f;)e=c._partialRow+d.substring(e,f),S(c,e),c._partialRow="",e=f+1,f=d.indexOf("\n",e);c._partialRow+=d.substring(e)}else{f=c._stringDecoder;for(e=d.indexOf(10);-1<e;){var h=c._partialRow;var g=d.subarray(0,e);g=f.decode(g);S(c,h+g);c._partialRow="";d=d.subarray(e+1);e=d.indexOf(10)}c._partialRow+=f.decode(d,m)}});a.on("error",function(d){K(c,d)});a.on("end",function(){K(c,
|
27
|
+
Error("Connection closed."))});return L(c,0)};
|
@@ -92,6 +92,8 @@ function requireModule(metadata) {
|
|
92
92
|
return moduleExports[metadata.name];
|
93
93
|
}
|
94
94
|
|
95
|
+
var knownServerReferences = new WeakMap();
|
96
|
+
|
95
97
|
// ATTENTION
|
96
98
|
// When adding new symbols to this file,
|
97
99
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
@@ -505,6 +507,7 @@ function createServerReferenceProxy(response, metaData) {
|
|
505
507
|
});
|
506
508
|
};
|
507
509
|
|
510
|
+
knownServerReferences.set(proxy, metaData);
|
508
511
|
return proxy;
|
509
512
|
}
|
510
513
|
|
@@ -7,18 +7,18 @@
|
|
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 g=require("util"),
|
11
|
-
function
|
12
|
-
function
|
13
|
-
function
|
14
|
-
function
|
15
|
-
function
|
16
|
-
function
|
17
|
-
function
|
18
|
-
c.value);default:throw c.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=
|
19
|
-
function
|
20
|
-
function
|
21
|
-
var e=b.get(d);e?
|
22
|
-
function
|
23
|
-
exports.createFromNodeStream=function(a,c){var b=
|
24
|
-
Error("Connection closed."))});return
|
10
|
+
'use strict';var g=require("util"),k=require("react"),l={stream:!0},m=new Map;function p(a){var c=m.get(a.specifier);if(c)return"fulfilled"===c.status?null:c;var b=import(a.specifier);b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});m.set(a.specifier,b);return b}var q=new WeakMap,r=Symbol.for("react.element"),t=Symbol.for("react.lazy"),u=Symbol.for("react.default_value"),v=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;
|
11
|
+
function w(a,c,b,d){this.status=a;this.value=c;this.reason=b;this._response=d}w.prototype=Object.create(Promise.prototype);w.prototype.then=function(a,c){switch(this.status){case "resolved_model":x(this);break;case "resolved_module":y(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));c&&(null===this.reason&&(this.reason=[]),this.reason.push(c));break;default:c(this.reason)}};
|
12
|
+
function z(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":y(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function A(a,c){for(var b=0;b<a.length;b++)(0,a[b])(c)}function B(a,c,b){switch(a.status){case "fulfilled":A(c,a.value);break;case "pending":case "blocked":a.value=c;a.reason=b;break;case "rejected":b&&A(b,a.reason)}}
|
13
|
+
function C(a,c){if("pending"===a.status||"blocked"===a.status){var b=a.reason;a.status="rejected";a.reason=c;null!==b&&A(b,c)}}function D(a,c){if("pending"===a.status||"blocked"===a.status){var b=a.value,d=a.reason;a.status="resolved_module";a.value=c;null!==b&&(y(a),B(a,b,d))}}var E=null,F=null;
|
14
|
+
function x(a){var c=E,b=F;E=a;F=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==F&&0<F.deps?(F.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{E=c,F=b}}function y(a){try{var c=a.value,b=m.get(c.specifier);if("fulfilled"===b.status)var d=b.value;else throw b.reason;var e="*"===c.name?d:""===c.name?d.default:d[c.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}
|
15
|
+
function G(a,c){a._chunks.forEach(function(b){"pending"===b.status&&C(b,c)})}function H(a,c){var b=a._chunks,d=b.get(c);d||(d=new w("pending",null,null,a),b.set(c,d));return d}function I(a,c,b){if(F){var d=F;d.deps++}else d=F={deps:1,value:null};return function(e){c[b]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&A(e,d.value))}}function J(a){return function(c){return C(a,c)}}
|
16
|
+
function K(a,c){function b(){var e=Array.prototype.slice.call(arguments),f=c.bound;return f?"fulfilled"===f.status?d(c.id,f.value.concat(e)):Promise.resolve(f).then(function(h){return d(c.id,h.concat(e))}):d(c.id,e)}var d=a._callServer;q.set(b,c);return b}
|
17
|
+
function L(a,c,b,d){if("$"===d[0]){if("$"===d)return r;switch(d[1]){case "$":return d.substring(1);case "L":return c=parseInt(d.substring(2),16),a=H(a,c),{$$typeof:t,_payload:a,_init:z};case "@":return c=parseInt(d.substring(2),16),H(a,c);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),v[a]||(v[a]=k.createServerContext(a,u)),v[a].Provider;case "F":c=parseInt(d.substring(2),16);c=H(a,c);switch(c.status){case "resolved_model":x(c)}switch(c.status){case "fulfilled":return K(a,
|
18
|
+
c.value);default:throw c.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=H(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":y(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=E,a.then(I(d,c,b),J(d)),null;default:throw a.reason;}}}return d}function M(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
19
|
+
function N(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var f=a._bundlerConfig[b.id][b.name];if(b=p(f)){if(e){var h=e;h.status="blocked"}else h=new w("blocked",null,null,a),d.set(c,h);b.then(function(){return D(h,f)},function(n){return C(h,n)})}else e?D(e,f):d.set(c,new w("resolved_module",f,null,a))}
|
20
|
+
function O(a,c){if(""!==c){var b=c.indexOf(":",0),d=parseInt(c.substring(0,b),16);switch(c[b+1]){case "I":N(a,d,c.substring(b+2));break;case "E":b=JSON.parse(c.substring(b+2)).digest;c=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.");c.stack="Error: "+c.message;c.digest=b;b=a._chunks;
|
21
|
+
var e=b.get(d);e?C(e,c):b.set(d,new w("rejected",null,c,a));break;default:c=c.substring(b+1),e=a._chunks,(b=e.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=c,null!==a&&(x(b),B(b,a,d))):e.set(d,new w("resolved_model",c,null,a))}}}function P(a){return function(c,b){return"string"===typeof b?L(a,this,c,b):"object"===typeof b&&null!==b?(c=b[0]===r?{$$typeof:r,type:b[1],key:b[2],ref:null,props:b[3],_owner:null}:b,c):b}}
|
22
|
+
function Q(a,c){var b=new g.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==c?c:M,_chunks:d,_partialRow:"",_stringDecoder:b};a._fromJSON=P(a);return a}function R(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
23
|
+
exports.createFromNodeStream=function(a,c){var b=Q(c,R);a.on("data",function(d){if("string"===typeof d){for(var e=0,f=d.indexOf("\n",e);-1<f;)e=b._partialRow+d.substring(e,f),O(b,e),b._partialRow="",e=f+1,f=d.indexOf("\n",e);b._partialRow+=d.substring(e)}else{f=b._stringDecoder;for(e=d.indexOf(10);-1<e;){var h=b._partialRow;var n=d.subarray(0,e);n=f.decode(n);O(b,h+n);b._partialRow="";d=d.subarray(e+1);e=d.indexOf(10)}b._partialRow+=f.decode(d,l)}});a.on("error",function(d){G(b,d)});a.on("end",function(){G(b,
|
24
|
+
Error("Connection closed."))});return H(b,0)};
|