react-server-dom-webpack 18.3.0-next-b72ed698f-20230303 → 18.3.0-next-1528c5ccd-20230306
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 +2 -2
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.node.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-node-register.js +7 -8
- package/cjs/react-server-dom-webpack-plugin.js +8 -8
- package/cjs/react-server-dom-webpack-server.browser.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +40 -39
- package/cjs/react-server-dom-webpack-server.edge.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +39 -38
- package/cjs/react-server-dom-webpack-server.node.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.node.production.min.js +41 -40
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +41 -40
- package/esm/react-server-dom-webpack-node-loader.production.min.js +2 -4
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +2 -2
- package/umd/react-server-dom-webpack-client.browser.production.min.js +1 -1
- package/umd/react-server-dom-webpack-server.browser.development.js +45 -11
- package/umd/react-server-dom-webpack-server.browser.production.min.js +39 -39
@@ -549,13 +549,13 @@ function createServerReferenceProxy(response, metaData) {
|
|
549
549
|
|
550
550
|
if (p.status === INITIALIZED) {
|
551
551
|
var bound = p.value;
|
552
|
-
return callServer(metaData, bound.concat(args));
|
552
|
+
return callServer(metaData.id, bound.concat(args));
|
553
553
|
} // Since this is a fake Promise whose .then doesn't chain, we have to wrap it.
|
554
554
|
// TODO: Remove the wrapper once that's fixed.
|
555
555
|
|
556
556
|
|
557
557
|
return Promise.resolve(p).then(function (bound) {
|
558
|
-
return callServer(metaData, bound.concat(args));
|
558
|
+
return callServer(metaData.id, bound.concat(args));
|
559
559
|
});
|
560
560
|
};
|
561
561
|
|
@@ -15,7 +15,7 @@ function C(a){switch(a.status){case "resolved_model":z(a);break;case "resolved_m
|
|
15
15
|
function F(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&D(c,b)}}function G(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&&(A(a),E(a,c,d))}}var H=null,I=null;
|
16
16
|
function z(a){var b=H,c=I;H=a;I=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==I&&0<I.deps?(I.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{H=b,I=c}}
|
17
17
|
function A(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 J(a,b){a._chunks.forEach(function(c){"pending"===c.status&&F(c,b)})}function K(a,b){var c=a._chunks,d=c.get(b);d||(d=new y("pending",null,null,a),c.set(b,d));return d}
|
18
|
-
function L(a,b,c){if(I){var d=I;d.deps++}else d=I={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&&D(e,d.value))}}function M(a){return function(b){return F(a,b)}}function N(a,b){var c=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),e=b.bound;return"fulfilled"===e.status?c(b,e.value.concat(d)):Promise.resolve(e).then(function(f){return c(b,f.concat(d))})}}
|
18
|
+
function L(a,b,c){if(I){var d=I;d.deps++}else d=I={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&&D(e,d.value))}}function M(a){return function(b){return F(a,b)}}function N(a,b){var c=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),e=b.bound;return"fulfilled"===e.status?c(b.id,e.value.concat(d)):Promise.resolve(e).then(function(f){return c(b.id,f.concat(d))})}}
|
19
19
|
function O(a,b,c,d){if("$"===d[0]){if("$"===d)return u;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=K(a,b),{$$typeof:v,_payload:a,_init:C};case "@":return b=parseInt(d.substring(2),16),K(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),x[a]||(x[a]=l.createServerContext(a,w)),x[a].Provider;case "F":b=parseInt(d.substring(2),16);b=K(a,b);switch(b.status){case "resolved_model":z(b)}switch(b.status){case "fulfilled":return N(a,
|
20
20
|
b.value);default:throw b.reason;}default:d=parseInt(d.substring(1),16);a=K(a,d);switch(a.status){case "resolved_model":z(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=H,a.then(L(d,b,c),M(d)),null;default:throw a.reason;}}}return d}function P(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
21
21
|
function Q(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 y("blocked",null,null,a),d.set(b,h);c.then(function(){return G(h,f)},function(g){return F(h,g)})}else e?G(e,f):d.set(b,new y("resolved_module",f,null,a))}function R(a){J(a,Error("Connection closed."))}
|
@@ -549,13 +549,13 @@ function createServerReferenceProxy(response, metaData) {
|
|
549
549
|
|
550
550
|
if (p.status === INITIALIZED) {
|
551
551
|
var bound = p.value;
|
552
|
-
return callServer(metaData, bound.concat(args));
|
552
|
+
return callServer(metaData.id, bound.concat(args));
|
553
553
|
} // Since this is a fake Promise whose .then doesn't chain, we have to wrap it.
|
554
554
|
// TODO: Remove the wrapper once that's fixed.
|
555
555
|
|
556
556
|
|
557
557
|
return Promise.resolve(p).then(function (bound) {
|
558
|
-
return callServer(metaData, bound.concat(args));
|
558
|
+
return callServer(metaData.id, bound.concat(args));
|
559
559
|
});
|
560
560
|
};
|
561
561
|
|
@@ -15,7 +15,7 @@ function F(a){switch(a.status){case "resolved_model":D(a);break;case "resolved_m
|
|
15
15
|
function I(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&G(c,b)}}function J(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&&(E(a),H(a,c,d))}}var K=null,L=null;
|
16
16
|
function D(a){var b=K,c=L;K=a;L=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==L&&0<L.deps?(L.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{K=b,L=c}}
|
17
17
|
function E(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 M(a,b){a._chunks.forEach(function(c){"pending"===c.status&&I(c,b)})}function N(a,b){var c=a._chunks,d=c.get(b);d||(d=new C("pending",null,null,a),c.set(b,d));return d}
|
18
|
-
function O(a,b,c){if(L){var d=L;d.deps++}else d=L={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&&G(f,d.value))}}function P(a){return function(b){return I(a,b)}}function Q(a,b){var c=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),f=b.bound;return"fulfilled"===f.status?c(b,f.value.concat(d)):Promise.resolve(f).then(function(e){return c(b,e.concat(d))})}}
|
18
|
+
function O(a,b,c){if(L){var d=L;d.deps++}else d=L={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&&G(f,d.value))}}function P(a){return function(b){return I(a,b)}}function Q(a,b){var c=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),f=b.bound;return"fulfilled"===f.status?c(b.id,f.value.concat(d)):Promise.resolve(f).then(function(e){return c(b.id,e.concat(d))})}}
|
19
19
|
function R(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=N(a,b),{$$typeof:y,_payload:a,_init:F};case "@":return b=parseInt(d.substring(2),16),N(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),B[a]||(B[a]=p.createServerContext(a,A)),B[a].Provider;case "F":b=parseInt(d.substring(2),16);b=N(a,b);switch(b.status){case "resolved_model":D(b)}switch(b.status){case "fulfilled":return Q(a,
|
20
20
|
b.value);default:throw b.reason;}default:d=parseInt(d.substring(1),16);a=N(a,d);switch(a.status){case "resolved_model":D(a);break;case "resolved_module":E(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=K,a.then(O(d,b,c),P(d)),null;default:throw a.reason;}}}return d}function S(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
21
21
|
function T(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 m=f;m.status="blocked"}else m=new C("blocked",null,null,a),d.set(b,m);c.then(function(){return J(m,e)},function(l){return I(m,l)})}else f?J(f,e):d.set(b,new C("resolved_module",e,null,a))}function U(a){return function(b,c){return"string"===typeof c?R(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}}
|
@@ -550,13 +550,13 @@ function createServerReferenceProxy(response, metaData) {
|
|
550
550
|
|
551
551
|
if (p.status === INITIALIZED) {
|
552
552
|
var bound = p.value;
|
553
|
-
return callServer(metaData, bound.concat(args));
|
553
|
+
return callServer(metaData.id, bound.concat(args));
|
554
554
|
} // Since this is a fake Promise whose .then doesn't chain, we have to wrap it.
|
555
555
|
// TODO: Remove the wrapper once that's fixed.
|
556
556
|
|
557
557
|
|
558
558
|
return Promise.resolve(p).then(function (bound) {
|
559
|
-
return callServer(metaData, bound.concat(args));
|
559
|
+
return callServer(metaData.id, bound.concat(args));
|
560
560
|
});
|
561
561
|
};
|
562
562
|
|
@@ -15,7 +15,7 @@ function C(a){switch(a.status){case "resolved_model":A(a);break;case "resolved_m
|
|
15
15
|
function F(a,c){if("pending"===a.status||"blocked"===a.status){var b=a.reason;a.status="rejected";a.reason=c;null!==b&&D(b,c)}}function G(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&&(B(a),E(a,b,d))}}var H=null,I=null;
|
16
16
|
function A(a){var c=H,b=I;H=a;I=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==I&&0<I.deps?(I.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{H=c,I=b}}
|
17
17
|
function B(a){try{var c=a.value;if(c.async){var b=q.get(c.id);if("fulfilled"===b.status)var d=b.value;else throw b.reason;}else d=__webpack_require__(c.id);var e="*"===c.name?d:""===c.name?d.__esModule?d.default:d:d[c.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}function J(a,c){a._chunks.forEach(function(b){"pending"===b.status&&F(b,c)})}function K(a,c){var b=a._chunks,d=b.get(c);d||(d=new z("pending",null,null,a),b.set(c,d));return d}
|
18
|
-
function L(a,c,b){if(I){var d=I;d.deps++}else d=I={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&&D(e,d.value))}}function M(a){return function(c){return F(a,c)}}function N(a,c){var b=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),e=c.bound;return"fulfilled"===e.status?b(c,e.value.concat(d)):Promise.resolve(e).then(function(f){return b(c,f.concat(d))})}}
|
18
|
+
function L(a,c,b){if(I){var d=I;d.deps++}else d=I={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&&D(e,d.value))}}function M(a){return function(c){return F(a,c)}}function N(a,c){var b=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),e=c.bound;return"fulfilled"===e.status?b(c.id,e.value.concat(d)):Promise.resolve(e).then(function(f){return b(c.id,f.concat(d))})}}
|
19
19
|
function O(a,c,b,d){if("$"===d[0]){if("$"===d)return u;switch(d[1]){case "$":return d.substring(1);case "L":return c=parseInt(d.substring(2),16),a=K(a,c),{$$typeof:v,_payload:a,_init:C};case "@":return c=parseInt(d.substring(2),16),K(a,c);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),y[a]||(y[a]=l.createServerContext(a,x)),y[a].Provider;case "F":c=parseInt(d.substring(2),16);c=K(a,c);switch(c.status){case "resolved_model":A(c)}switch(c.status){case "fulfilled":return N(a,
|
20
20
|
c.value);default:throw c.reason;}default:d=parseInt(d.substring(1),16);a=K(a,d);switch(a.status){case "resolved_model":A(a);break;case "resolved_module":B(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=H,a.then(L(d,c,b),M(d)),null;default:throw a.reason;}}}return d}function P(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
21
21
|
function Q(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var f=n(a._bundlerConfig,b);if(b=t(f)){if(e){var h=e;h.status="blocked"}else h=new z("blocked",null,null,a),d.set(c,h);b.then(function(){return G(h,f)},function(g){return F(h,g)})}else e?G(e,f):d.set(c,new z("resolved_module",f,null,a))}
|
@@ -491,13 +491,13 @@ function createServerReferenceProxy(response, metaData) {
|
|
491
491
|
|
492
492
|
if (p.status === INITIALIZED) {
|
493
493
|
var bound = p.value;
|
494
|
-
return callServer(metaData, bound.concat(args));
|
494
|
+
return callServer(metaData.id, bound.concat(args));
|
495
495
|
} // Since this is a fake Promise whose .then doesn't chain, we have to wrap it.
|
496
496
|
// TODO: Remove the wrapper once that's fixed.
|
497
497
|
|
498
498
|
|
499
499
|
return Promise.resolve(p).then(function (bound) {
|
500
|
-
return callServer(metaData, bound.concat(args));
|
500
|
+
return callServer(metaData.id, bound.concat(args));
|
501
501
|
});
|
502
502
|
};
|
503
503
|
|
@@ -13,7 +13,7 @@ function y(a){switch(a.status){case "resolved_model":w(a);break;case "resolved_m
|
|
13
13
|
function B(a,c){if("pending"===a.status||"blocked"===a.status){var b=a.reason;a.status="rejected";a.reason=c;null!==b&&z(b,c)}}function C(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&&(x(a),A(a,b,d))}}var D=null,E=null;
|
14
14
|
function w(a){var c=D,b=E;D=a;E=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==E&&0<E.deps?(E.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{D=c,E=b}}function x(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
15
|
function F(a,c){a._chunks.forEach(function(b){"pending"===b.status&&B(b,c)})}function G(a,c){var b=a._chunks,d=b.get(c);d||(d=new v("pending",null,null,a),b.set(c,d));return d}function H(a,c,b){if(E){var d=E;d.deps++}else d=E={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&&z(e,d.value))}}function I(a){return function(c){return B(a,c)}}
|
16
|
-
function J(a,c){var b=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),e=c.bound;return"fulfilled"===e.status?b(c,e.value.concat(d)):Promise.resolve(e).then(function(f){return b(c,f.concat(d))})}}
|
16
|
+
function J(a,c){var b=a._callServer;return function(){var d=Array.prototype.slice.call(arguments),e=c.bound;return"fulfilled"===e.status?b(c.id,e.value.concat(d)):Promise.resolve(e).then(function(f){return b(c.id,f.concat(d))})}}
|
17
17
|
function K(a,c,b,d){if("$"===d[0]){if("$"===d)return q;switch(d[1]){case "$":return d.substring(1);case "L":return c=parseInt(d.substring(2),16),a=G(a,c),{$$typeof:r,_payload:a,_init:y};case "@":return c=parseInt(d.substring(2),16),G(a,c);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),u[a]||(u[a]=h.createServerContext(a,t)),u[a].Provider;case "F":c=parseInt(d.substring(2),16);c=G(a,c);switch(c.status){case "resolved_model":w(c)}switch(c.status){case "fulfilled":return J(a,
|
18
18
|
c.value);default:throw c.reason;}default:d=parseInt(d.substring(1),16);a=G(a,d);switch(a.status){case "resolved_model":w(a);break;case "resolved_module":x(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=D,a.then(H(d,c,b),I(d)),null;default:throw a.reason;}}}return d}function L(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
|
19
19
|
function M(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 k=e;k.status="blocked"}else k=new v("blocked",null,null,a),d.set(c,k);b.then(function(){return C(k,f)},function(n){return B(k,n)})}else e?C(e,f):d.set(c,new v("resolved_module",f,null,a))}
|
@@ -11,11 +11,10 @@
|
|
11
11
|
'use strict';
|
12
12
|
|
13
13
|
'use strict';const n=require("acorn"),p=require("url"),r=require("module");
|
14
|
-
module.exports=function(){const h=Symbol.for("react.client.reference"),k=Symbol.for("react.server.reference"),t=Promise.prototype,u=Function.prototype.bind;Function.prototype.bind=function(a){const c=u.apply(this,arguments);if(this.$$typeof===k){const b=Array.prototype.slice.call(arguments,1);c.$$typeof=k;c.$$
|
15
|
-
case "
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
p
|
21
|
-
new Proxy(b,q));if(e)if(l.apply(this,arguments),e=p.pathToFileURL(c).href,b=this.exports,"function"===typeof b)Object.defineProperties(b,{$$typeof:{value:k},$$filepath:{value:e},$$name:{value:"*"},$$bound:{value:[]}});else for(d=Object.keys(b),f=0;f<d.length;f++){g=d[f];const m=b[d[f]];"function"===typeof m&&Object.defineProperties(m,{$$typeof:{value:k},$$filepath:{value:e},$$name:{value:g},$$bound:{value:[]}})}}};
|
14
|
+
module.exports=function(){const h=Symbol.for("react.client.reference"),k=Symbol.for("react.server.reference"),t=Promise.prototype,u=Function.prototype.bind;Function.prototype.bind=function(a){const c=u.apply(this,arguments);if(this.$$typeof===k){const b=Array.prototype.slice.call(arguments,1);c.$$typeof=k;c.$$id=this.$$id;c.$$bound=this.$$bound.concat(b)}return c};const v={get:function(a,c){switch(c){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;
|
15
|
+
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.");}throw Error("Cannot access "+(String(a.name)+"."+String(c))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");
|
16
|
+
},set:function(){throw Error("Cannot assign to a client module from a server module.");}},q={get:function(a,c){switch(c){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":const d=a.$$id;a.default=Object.defineProperties(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
|
+
},{$$typeof:{value:h},$$id:{value:a.$$id+"#"},$$async:{value:a.$$async}});return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var b=Object.defineProperties({},{$$typeof:{value:h},$$id:{value:a.$$id},$$async:{value:!0}});const e=new Proxy(b,q);a.status="fulfilled";a.value=e;return a.then=Object.defineProperties(function(f){return Promise.resolve(f(e))},{$$typeof:{value:h},$$id:{value:a.$$id+"#then"},$$async:{value:!1}})}b=a[c];b||(b=Object.defineProperties(function(){throw Error("Attempted to call "+
|
18
|
+
String(c)+"() from the server but "+String(c)+" 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.");},{name:{value:c},$$typeof:{value:h},$$id:{value:a.$$id+"#"+c},$$async:{value:a.$$async}}),b=a[c]=new Proxy(b,v));return b},getPrototypeOf(){return t},set:function(){throw Error("Cannot assign to a client module from a server module.");}},l=r.prototype._compile;r.prototype._compile=function(a,
|
19
|
+
c){if(-1===a.indexOf("use client")&&-1===a.indexOf("use server"))return l.apply(this,arguments);try{var b=n.parse(a,{ecmaVersion:"2024",sourceType:"source"}).body}catch(m){return console.error("Error parsing %s %s",p,m.message),l.apply(this,arguments)}var d=!1,e=!1;for(var f=0;f<b.length;f++){var g=b[f];if("ExpressionStatement"!==g.type||!g.directive)break;"use client"===g.directive&&(d=!0);"use server"===g.directive&&(e=!0)}if(!d&&!e)return l.apply(this,arguments);if(d&&e)throw Error('Cannot have both "use client" and "use server" directives in the same file.');
|
20
|
+
d&&(b=p.pathToFileURL(c).href,b=Object.defineProperties({},{$$typeof:{value:h},$$id:{value:b},$$async:{value:!1}}),this.exports=new Proxy(b,q));if(e)if(l.apply(this,arguments),e=p.pathToFileURL(c).href,b=this.exports,"function"===typeof b)Object.defineProperties(b,{$$typeof:{value:k},$$id:{value:e},$$bound:{value:[]}});else for(d=Object.keys(b),f=0;f<d.length;f++){g=d[f];const m=b[d[f]];"function"===typeof m&&Object.defineProperties(m,{$$typeof:{value:k},$$id:{value:e+"#"+g},$$bound:{value:[]}})}}};
|
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
'use strict';
|
12
12
|
|
13
|
-
'use strict';var
|
14
|
-
class
|
15
|
-
recursive:!0,include:/\.(js|ts|jsx|tsx)$/}];"string"===typeof b.chunkName?(this.chunkName=b.chunkName,/\[(index|request)\]/.test(this.chunkName)||(this.chunkName+="[index]")):this.chunkName="client[index]";this.clientManifestFilename=b.clientManifestFilename||"react-client-manifest.json";this.ssrManifestFilename=b.ssrManifestFilename||"react-ssr-manifest.json"}apply(b){const
|
16
|
-
{});
|
17
|
-
null,
|
18
|
-
|
19
|
-
Array.from(
|
20
|
-
{resource:
|
13
|
+
'use strict';var q=require("path"),t=require("url"),x=require("neo-async"),y=require("webpack/lib/dependencies/ModuleDependency"),z=require("webpack/lib/dependencies/NullDependency"),A=require("webpack/lib/Template"),B=require("webpack");const C=Array.isArray;class D extends y{constructor(b){super(b)}get type(){return"client-reference"}}const E=require.resolve("../client.browser.js");
|
14
|
+
class F{constructor(b){this.ssrManifestFilename=this.clientManifestFilename=this.chunkName=this.clientReferences=void 0;if(!b||"boolean"!==typeof b.isServer)throw Error("React Server Plugin: You must specify the isServer option as a boolean.");if(b.isServer)throw Error("TODO: Implement the server compiler.");b.clientReferences?"string"!==typeof b.clientReferences&&C(b.clientReferences)?this.clientReferences=b.clientReferences:this.clientReferences=[b.clientReferences]:this.clientReferences=[{directory:".",
|
15
|
+
recursive:!0,include:/\.(js|ts|jsx|tsx)$/}];"string"===typeof b.chunkName?(this.chunkName=b.chunkName,/\[(index|request)\]/.test(this.chunkName)||(this.chunkName+="[index]")):this.chunkName="client[index]";this.clientManifestFilename=b.clientManifestFilename||"react-client-manifest.json";this.ssrManifestFilename=b.ssrManifestFilename||"react-ssr-manifest.json"}apply(b){const n=this;let p,u=!1;b.hooks.beforeCompile.tapAsync("React Server Plugin",(c,a)=>{c=c.contextModuleFactory;const e=b.resolverFactory.get("context",
|
16
|
+
{});n.resolveAllClientFiles(b.context,e,b.inputFileSystem,c,function(d,h){d?a(d):(p=h,a())})});b.hooks.thisCompilation.tap("React Server Plugin",(c,a)=>{a=a.normalModuleFactory;c.dependencyFactories.set(D,a);c.dependencyTemplates.set(D,new z.Template);c=e=>{e.hooks.program.tap("React Server Plugin",()=>{const d=e.state.module;if(d.resource===E&&(u=!0,p))for(let k=0;k<p.length;k++){const l=p[k];var h=n.chunkName.replace(/\[index\]/g,""+k).replace(/\[request\]/g,A.toPath(l.userRequest));h=new B.AsyncDependenciesBlock({name:h},
|
17
|
+
null,l.request);h.addDependency(l);d.addBlock(h)}})};a.hooks.parser.for("javascript/auto").tap("HarmonyModulesPlugin",c);a.hooks.parser.for("javascript/esm").tap("HarmonyModulesPlugin",c);a.hooks.parser.for("javascript/dynamic").tap("HarmonyModulesPlugin",c)});b.hooks.make.tap("React Server Plugin",c=>{c.hooks.processAssets.tap({name:"React Server Plugin",stage:B.Compilation.PROCESS_ASSETS_STAGE_REPORT},function(){if(!1===u)c.warnings.push(new B.WebpackError("Client runtime at react-server-dom-webpack/client was not found. React Server Components module map file "+
|
18
|
+
n.clientManifestFilename+" was not created."));else{var a={},e={};c.chunkGroups.forEach(function(h){function k(f,g){if(/\.(js|ts)x?$/.test(g.resource)){var r=c.moduleGraph.getExportsInfo(g).getProvidedExports(),m=t.pathToFileURL(g.resource).href;if(void 0!==m){const v={};a[m]={id:f,chunks:l,name:"*"};v["*"]={specifier:m,name:"*"};a[m+"#"]={id:f,chunks:l,name:""};v[""]={specifier:m,name:""};Array.isArray(r)&&r.forEach(function(w){a[m+"#"+w]={id:f,chunks:l,name:w};v[w]={specifier:m,name:w}});e[f]=v}}}
|
19
|
+
const l=h.chunks.map(function(f){return f.id});h.chunks.forEach(function(f){f=c.chunkGraph.getChunkModulesIterable(f);Array.from(f).forEach(function(g){const r=c.chunkGraph.getModuleId(g);k(r,g);g.modules&&g.modules.forEach(m=>{k(r,m)})})})});var d=JSON.stringify(a,null,2);c.emitAsset(n.clientManifestFilename,new B.sources.RawSource(d,!1));d=JSON.stringify(e,null,2);c.emitAsset(n.ssrManifestFilename,new B.sources.RawSource(d,!1))}})})}resolveAllClientFiles(b,n,p,u,c){x.map(this.clientReferences,(a,
|
20
|
+
e)=>{"string"===typeof a?e(null,[new D(a)]):n.resolve({},b,a.directory,{},(d,h)=>{if(d)return e(d);u.resolveDependencies(p,{resource:h,resourceQuery:"",recursive:void 0===a.recursive?!0:a.recursive,regExp:a.include,include:void 0,exclude:a.exclude},(k,l)=>{if(k)return e(k);k=l.map(f=>{var g=q.join(h,f.userRequest);g=new D(g);g.userRequest=f.userRequest;return g});e(null,k)})})},(a,e)=>{if(a)return c(a);a=[];for(let d=0;d<e.length;d++)a.push.apply(a,e[d]);c(null,a)})}}module.exports=F;
|
@@ -185,6 +185,7 @@ function processErrorChunkDev(request, id, digest, message, stack) {
|
|
185
185
|
return stringToChunk(row);
|
186
186
|
}
|
187
187
|
function processModelChunk(request, id, model) {
|
188
|
+
// $FlowFixMe[incompatible-type] stringify can return null
|
188
189
|
var json = stringify(model, request.toJSON);
|
189
190
|
var row = id.toString(16) + ':' + json + '\n';
|
190
191
|
return stringToChunk(row);
|
@@ -195,6 +196,7 @@ function processReferenceChunk(request, id, reference) {
|
|
195
196
|
return stringToChunk(row);
|
196
197
|
}
|
197
198
|
function processImportChunk(request, id, clientReferenceMetadata) {
|
199
|
+
// $FlowFixMe[incompatible-type] stringify can return null
|
198
200
|
var json = stringify(clientReferenceMetadata);
|
199
201
|
var row = serializeRowHeader('I', id) + json + '\n';
|
200
202
|
return stringToChunk(row);
|
@@ -204,7 +206,7 @@ function processImportChunk(request, id, clientReferenceMetadata) {
|
|
204
206
|
var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
|
205
207
|
var SERVER_REFERENCE_TAG = Symbol.for('react.server.reference');
|
206
208
|
function getClientReferenceKey(reference) {
|
207
|
-
return reference
|
209
|
+
return reference.$$async ? reference.$$id + '#async' : reference.$$id;
|
208
210
|
}
|
209
211
|
function isClientReference(reference) {
|
210
212
|
return reference.$$typeof === CLIENT_REFERENCE_TAG;
|
@@ -213,9 +215,9 @@ function isServerReference(reference) {
|
|
213
215
|
return reference.$$typeof === SERVER_REFERENCE_TAG;
|
214
216
|
}
|
215
217
|
function resolveClientReferenceMetadata(config, clientReference) {
|
216
|
-
var resolvedModuleData = config[clientReference
|
218
|
+
var resolvedModuleData = config[clientReference.$$id];
|
217
219
|
|
218
|
-
if (clientReference
|
220
|
+
if (clientReference.$$async) {
|
219
221
|
return {
|
220
222
|
id: resolvedModuleData.id,
|
221
223
|
chunks: resolvedModuleData.chunks,
|
@@ -228,8 +230,7 @@ function resolveClientReferenceMetadata(config, clientReference) {
|
|
228
230
|
}
|
229
231
|
function resolveServerReferenceMetadata(config, serverReference) {
|
230
232
|
return {
|
231
|
-
id: serverReference.$$
|
232
|
-
name: serverReference.$$name,
|
233
|
+
id: serverReference.$$id,
|
233
234
|
bound: Promise.resolve(serverReference.$$bound)
|
234
235
|
};
|
235
236
|
}
|
@@ -249,6 +250,21 @@ var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
249
250
|
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
250
251
|
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
|
251
252
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for('react.memo_cache_sentinel');
|
253
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
254
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
255
|
+
function getIteratorFn(maybeIterable) {
|
256
|
+
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
257
|
+
return null;
|
258
|
+
}
|
259
|
+
|
260
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
261
|
+
|
262
|
+
if (typeof maybeIterator === 'function') {
|
263
|
+
return maybeIterator;
|
264
|
+
}
|
265
|
+
|
266
|
+
return null;
|
267
|
+
}
|
252
268
|
|
253
269
|
// It is handled by React separately and shouldn't be written to the DOM.
|
254
270
|
|
@@ -550,7 +566,7 @@ function isArray(a) {
|
|
550
566
|
// Run `yarn generate-inline-fizz-runtime` to generate.
|
551
567
|
var clientRenderBoundary = '$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};';
|
552
568
|
var completeBoundary = '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};';
|
553
|
-
var completeBoundaryWithStyles = '$RM=new Map;\n$RR=function(
|
569
|
+
var completeBoundaryWithStyles = '$RM=new Map;\n$RR=function(t,u,y){function v(n){this.s=n}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};';
|
554
570
|
var completeSegment = '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};';
|
555
571
|
|
556
572
|
stringToPrecomputedChunk('"></template>');
|
@@ -650,11 +666,16 @@ stringToPrecomputedChunk('" data-dgst="');
|
|
650
666
|
stringToPrecomputedChunk('" data-msg="');
|
651
667
|
stringToPrecomputedChunk('" data-stck="');
|
652
668
|
|
653
|
-
stringToPrecomputedChunk('<
|
654
|
-
stringToPrecomputedChunk('
|
655
|
-
stringToPrecomputedChunk('
|
656
|
-
stringToPrecomputedChunk('
|
669
|
+
stringToPrecomputedChunk('<style media="not all" data-precedence="');
|
670
|
+
stringToPrecomputedChunk('" data-href="');
|
671
|
+
stringToPrecomputedChunk('">');
|
672
|
+
stringToPrecomputedChunk('</style>'); // Tracks whether the boundary currently flushing is flushign style tags or has any
|
657
673
|
|
674
|
+
stringToPrecomputedChunk('<style data-precedence="');
|
675
|
+
stringToPrecomputedChunk('" data-href="');
|
676
|
+
stringToPrecomputedChunk(' ');
|
677
|
+
stringToPrecomputedChunk('">');
|
678
|
+
stringToPrecomputedChunk('</style>');
|
658
679
|
stringToPrecomputedChunk('[');
|
659
680
|
stringToPrecomputedChunk(',[');
|
660
681
|
stringToPrecomputedChunk(',');
|
@@ -1271,7 +1292,8 @@ function serializeThenable(request, thenable) {
|
|
1271
1292
|
newTask.model = value;
|
1272
1293
|
pingTask(request, newTask);
|
1273
1294
|
}, function (reason) {
|
1274
|
-
// TODO:
|
1295
|
+
newTask.status = ERRORED; // TODO: We should ideally do this inside performWork so it's scheduled
|
1296
|
+
|
1275
1297
|
var digest = logRecoverableError(request, reason);
|
1276
1298
|
|
1277
1299
|
{
|
@@ -1281,6 +1303,10 @@ function serializeThenable(request, thenable) {
|
|
1281
1303
|
|
1282
1304
|
emitErrorChunkDev(request, newTask.id, digest, _message, _stack);
|
1283
1305
|
}
|
1306
|
+
|
1307
|
+
if (request.destination !== null) {
|
1308
|
+
flushCompletedChunks(request, request.destination);
|
1309
|
+
}
|
1284
1310
|
});
|
1285
1311
|
return newTask.id;
|
1286
1312
|
}
|
@@ -2034,6 +2060,14 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
2034
2060
|
return undefined;
|
2035
2061
|
}
|
2036
2062
|
|
2063
|
+
if (!isArray(value)) {
|
2064
|
+
var iteratorFn = getIteratorFn(value);
|
2065
|
+
|
2066
|
+
if (iteratorFn) {
|
2067
|
+
return Array.from(value);
|
2068
|
+
}
|
2069
|
+
}
|
2070
|
+
|
2037
2071
|
{
|
2038
2072
|
if (value !== null && !isArray(value)) {
|
2039
2073
|
// Verify that this is a simple plain object.
|
@@ -8,8 +8,8 @@
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
10
|
'use strict';var aa=require("react"),f=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(f.buffer,0,m)),f=new Uint8Array(512),m=0),a.enqueue(b);else{var c=f.length-m;c<b.length&&(0===c?a.enqueue(f):(f.set(b.subarray(0,c),m),a.enqueue(f),b=b.subarray(c)),f=new Uint8Array(512),m=0);f.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function q(a){return p.encode(a)}function ba(a,b){"function"===typeof a.error?a.error(b):a.close()}var r=JSON.stringify;
|
11
|
-
function
|
12
|
-
var u=Symbol.for("react.client.reference"),
|
11
|
+
function ca(a,b,c){a=r(c,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function t(a,b,c){a=r(c);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
|
12
|
+
var u=Symbol.for("react.client.reference"),da=Symbol.for("react.server.reference"),w=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),na=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),oa=Symbol.for("react.default_value"),pa=Symbol.for("react.memo_cache_sentinel"),qa=Symbol.iterator;
|
13
13
|
function z(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new z(a,0,!1,a,null,!1,!1)});
|
14
14
|
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new z(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new z(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new z(a,2,!1,a,null,!1,!1)});
|
15
15
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new z(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new z(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new z(a,4,!1,a,null,!1,!1)});
|
@@ -18,44 +18,45 @@ function z(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attribut
|
|
18
18
|
B);new z(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(A,B);new z(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(A,B);new z(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new z(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
19
19
|
new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){new z(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
20
20
|
var C={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,widows:!0,zIndex:!0,
|
21
|
-
zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
21
|
+
zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ra=["Webkit","ms","Moz","O"];Object.keys(C).forEach(function(a){ra.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);C[b]=C[a]})});var D=Array.isArray;q('"></template>');q("<script>");q("\x3c/script>");q('<script src="');q('<script type="module" src="');q('" integrity="');q('" async="">\x3c/script>');q("\x3c!-- --\x3e");q(' style="');q(":");
|
22
22
|
q(";");q(" ");q('="');q('"');q('=""');q(">");q("/>");q(' selected=""');q("\n");q("<!DOCTYPE html>");q("</");q(">");q('<template id="');q('"></template>');q("\x3c!--$--\x3e");q('\x3c!--$?--\x3e<template id="');q('"></template>');q("\x3c!--$!--\x3e");q("\x3c!--/$--\x3e");q("<template");q('"');q(' data-dgst="');q(' data-msg="');q(' data-stck="');q("></template>");q('<div hidden id="');q('">');q("</div>");q('<svg aria-hidden="true" style="display:none" id="');q('">');q("</svg>");q('<math aria-hidden="true" style="display:none" id="');
|
23
23
|
q('">');q("</math>");q('<table hidden id="');q('">');q("</table>");q('<table hidden><tbody id="');q('">');q("</tbody></table>");q('<table hidden><tr id="');q('">');q("</tr></table>");q('<table hidden><colgroup id="');q('">');q("</colgroup></table>");q('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');q('$RS("');q('","');q('")\x3c/script>');q('<template data-rsi="" data-sid="');
|
24
24
|
q('" data-pid="');q('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("');
|
25
|
-
q('$RC("');q('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(
|
26
|
-
q('$RM=new Map;\n$RR=function(
|
27
|
-
q('$RR("');q('","');q('",');q('"');q(")\x3c/script>");q('<template data-rci="" data-bid="');q('<template data-rri="" data-bid="');q('" data-sid="');q('" data-sty="');q('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');q('$RX("');q('"');q(",");q(")\x3c/script>");q('<template data-rxi="" data-bid="');q('" data-dgst="');q('" data-msg="');q('" data-stck="');q('<
|
28
|
-
q("</
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function
|
32
|
-
function
|
33
|
-
|
34
|
-
function
|
35
|
-
function
|
36
|
-
|
37
|
-
function
|
38
|
-
|
39
|
-
|
40
|
-
function Oa(a){
|
41
|
-
function
|
42
|
-
|
43
|
-
|
44
|
-
b=a.
|
25
|
+
q('$RC("');q('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this.s=n}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("');
|
26
|
+
q('$RM=new Map;\n$RR=function(t,u,y){function v(n){this.s=n}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("');
|
27
|
+
q('$RR("');q('","');q('",');q('"');q(")\x3c/script>");q('<template data-rci="" data-bid="');q('<template data-rri="" data-bid="');q('" data-sid="');q('" data-sty="');q('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');q('$RX("');q('"');q(",");q(")\x3c/script>");q('<template data-rxi="" data-bid="');q('" data-dgst="');q('" data-msg="');q('" data-stck="');q('<style media="not all" data-precedence="');
|
28
|
+
q('" data-href="');q('">');q("</style>");q('<style data-precedence="');q('" data-href="');q(" ");q('">');q("</style>");q("[");q(",[");q(",");q("]");var E=null;
|
29
|
+
function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,c);b.context._currentValue=b.value}}}function sa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&sa(a)}
|
30
|
+
function ta(a){var b=a.parent;null!==b&&ta(b);a.context._currentValue=a.value}function ua(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?G(a,b):ua(a,b)}
|
31
|
+
function va(a,b){var c=b.parent;if(null===c)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?G(a,c):va(a,c);b.context._currentValue=b.value}function H(a){var b=E;b!==a&&(null===b?ta(a):null===a?sa(b):b.depth===a.depth?G(b,a):b.depth>a.depth?ua(b,a):va(b,a),E=a)}function wa(a,b){var c=a._currentValue;a._currentValue=b;var d=E;return E=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:c,value:b}}var I=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`");
|
32
|
+
function xa(){}function ya(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(xa,xa),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}J=b;throw I;}}var J=null;
|
33
|
+
function za(){if(null===J)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=J;J=null;return a}var K=null,L=0,N=null;function Aa(){var a=N;N=null;return a}function Ba(a){return a._currentValue}
|
34
|
+
var Fa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:O,useTransition:O,readContext:Ba,useContext:Ba,useReducer:O,useRef:O,useState:O,useInsertionEffect:O,useLayoutEffect:O,useImperativeHandle:O,useEffect:O,useId:Ca,useMutableSource:O,useSyncExternalStore:O,useCacheRefresh:function(){return Da},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=pa;return b},use:Ea};
|
35
|
+
function O(){throw Error("This Hook is not supported in Server Components.");}function Da(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ca(){if(null===K)throw Error("useId can only be used while React is rendering");var a=K.identifierCount++;return":"+K.identifierPrefix+"S"+a.toString(32)+":"}
|
36
|
+
function Ea(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=L;L+=1;null===N&&(N=[]);return ya(N,a,b)}if(a.$$typeof===ja)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function P(){return(new AbortController).signal}
|
37
|
+
var Ga={getCacheSignal:function(){var a=Q?Q:new Map,b=a.get(P);void 0===b&&(b=P(),a.set(P,b));return b},getCacheForType:function(a){var b=Q?Q:new Map,c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Q=null,R=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=R.ContextRegistry,T=R.ReactCurrentDispatcher,Ha=R.ReactCurrentCache;function Ia(a){console.error(a)}
|
38
|
+
function Ja(a,b,c,d,e){if(null!==Ha.current&&Ha.current!==Ga)throw Error("Currently React only supports one RSC renderer at a time.");Ha.current=Ga;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||
|
39
|
+
"",identifierCount:1,onError:void 0===c?Ia:c,toJSON:function(l,v){return Ka(k,this,l,v)}};k.pendingChunks++;b=La(d);a=Ma(k,a,b,g);h.push(a);return k}var Na={};
|
40
|
+
function Oa(a,b){a.pendingChunks++;var c=Ma(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return c.model=b.value,Pa(a,c),c.id;case "rejected":var d=U(a,b.reason);V(a,c.id,d);return c.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){c.model=e;Pa(a,c)},function(e){c.status=4;e=U(a,e);V(a,c.id,e);null!==a.destination&&
|
41
|
+
W(a,a.destination)});return c.id}function Qa(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function Ra(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:x,_payload:a,_init:Qa}}
|
42
|
+
function X(a,b,c,d,e,g){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===u)return[w,b,c,e];L=0;N=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:Ra(e):e}if("string"===typeof b)return[w,b,c,e];if("symbol"===typeof b)return b===ha?e.children:[w,b,c,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===u)return[w,b,c,e];switch(b.$$typeof){case x:var h=
|
43
|
+
b._init;b=h(b._payload);return X(a,b,c,d,e,g);case ka:return a=b.render,L=0,N=g,a(e,void 0);case na:return X(a,b.type,c,d,e,g);case ia:return wa(b._context,e.value),[w,b,c,{value:e.value,children:e.children,__pop:Na}]}}throw Error("Unsupported Server Component type: "+Sa(b));}function Pa(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&Ta(a)}function Ma(a,b,c,d){var e={id:a.nextChunkId++,status:0,model:b,context:c,ping:function(){return Pa(a,e)},thenableState:null};d.add(e);return e}
|
44
|
+
function Ua(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===w&&"1"===c?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[d.$$id];var l=d.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,ea=r(l),y=v.toString(16)+":I"+ea+"\n";var M=p.encode(y);a.completedImportChunks.push(M);g.set(e,v);return b[0]===w&&"1"===c?"$L"+v.toString(16):"$"+v.toString(16)}catch(fa){return a.pendingChunks++,
|
45
|
+
b=a.nextChunkId++,c=U(a,fa),V(a,b,c),"$"+b.toString(16)}}function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}function Sa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(D(a))return"[...]";a=Va(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
45
46
|
function Y(a){if("string"===typeof a)return a;switch(a){case la:return"Suspense";case ma:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ka:return Y(a.render);case na:return Y(a.type);case x:var b=a._payload;a=a._init;try{return Y(a(b))}catch(c){}}return""}
|
46
|
-
function Z(a,b){var c=
|
47
|
-
|
48
|
-
function
|
49
|
-
d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===u)return
|
50
|
-
d===oa?a.context._defaultValue:d;
|
51
|
-
b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(c))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,c)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+Z(b,c));}if("symbol"===typeof d){e=a.writtenSymbols;g=e.get(d);
|
52
|
-
(d.description+") cannot be found among global symbols.")+Z(b,c));a.pendingChunks++;c=a.nextChunkId++;b=t(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+Z(b,c));throw Error("Type "+
|
53
|
-
function
|
54
|
-
function
|
55
|
-
function
|
56
|
-
g.status=1}catch(F){var y=F===
|
57
|
-
function
|
58
|
-
function
|
59
|
-
function
|
60
|
-
exports.renderToReadableStream=function(a,b,c){var d=
|
61
|
-
|
47
|
+
function Z(a,b){var c=Va(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(D(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?Z(h):Sa(h);""+g===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===w)e="<"+Y(a.type)+"/>";else{e="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(e+=", ");var k=g[h],l=JSON.stringify(k);e+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?Z(l):
|
48
|
+
Sa(l);k===b?(c=e.length,d=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}
|
49
|
+
function Ka(a,b,c,d){switch(d){case w:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===w||d.$$typeof===x);)try{switch(d.$$typeof){case w:var e=d;d=X(a,e.type,e.key,e.ref,e.props,null);break;case x:var g=d._init;d=g(d._payload)}}catch(h){c=h===I?za():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=Ma(a,d,E,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Aa(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=U(a,c);V(a,d,c);return"$L"+
|
50
|
+
d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===u)return Ua(a,b,c,d);if("function"===typeof d.then)return"$@"+Oa(a,d).toString(16);if(d.$$typeof===ia)return d=d._context._globalName,b=a.writtenProviders,c=b.get(c),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(d,c),d=t(a,c,"$P"+d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(d===Na){a=E;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=
|
51
|
+
d===oa?a.context._defaultValue:d;E=a.parent;return}return!D(d)&&(null===d||"object"!==typeof d?a=null:(a=qa&&d[qa]||d["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(d):d}if("string"===typeof d)return a="$"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d||"undefined"===typeof d)return d;if("function"===typeof d){if(d.$$typeof===u)return Ua(a,b,c,d);if(d.$$typeof===da)return c=a.writtenServerReferences,b=c.get(d),void 0!==b?a="$F"+b.toString(16):(e={id:d.$$id,bound:Promise.resolve(d.$$bound)},
|
52
|
+
a.pendingChunks++,b=a.nextChunkId++,e=ca(a,b,e),a.completedJSONChunks.push(e),c.set(d,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(c))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,c)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+Z(b,c));}if("symbol"===typeof d){e=a.writtenSymbols;g=e.get(d);
|
53
|
+
if(void 0!==g)return"$"+g.toString(16);g=d.description;if(Symbol.for(g)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")+Z(b,c));a.pendingChunks++;c=a.nextChunkId++;b=t(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+Z(b,c));throw Error("Type "+
|
54
|
+
typeof d+" is not supported in Client Component props."+Z(b,c));}function U(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 Wa(a,b){null!==a.destination?(a.status=2,ba(a.destination,b)):(a.status=1,a.fatalError=b)}
|
55
|
+
function V(a,b,c){c={digest:c};b=b.toString(16)+":E"+r(c)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}
|
56
|
+
function Ta(a){var b=T.current,c=Q;T.current=Fa;Q=a.cache;K=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++){var g=d[e];var h=a;if(0===g.status){H(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===w){var l=k,v=g.thenableState;g.model=k;k=X(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===w;)l=k,g.model=k,k=X(h,l.type,l.key,l.ref,l.props,null)}var ea=ca(h,g.id,k);h.completedJSONChunks.push(ea);h.abortableTasks.delete(g);
|
57
|
+
g.status=1}catch(F){var y=F===I?za():F;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var M=g.ping;y.then(M,M);g.thenableState=Aa()}else{h.abortableTasks.delete(g);g.status=4;var fa=U(h,y);V(h,g.id,fa)}}}}null!==a.destination&&W(a,a.destination)}catch(F){U(a,F),Wa(a,F)}finally{T.current=b,Q=c,K=null}}
|
58
|
+
function W(a,b){f=new Uint8Array(512);m=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,n(b,c[d]);c.splice(0,d);var e=a.completedJSONChunks;for(d=0;d<e.length;d++)a.pendingChunks--,n(b,e[d]);e.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)a.pendingChunks--,n(b,g[d]);g.splice(0,d)}finally{f&&0<m&&(b.enqueue(new Uint8Array(f.buffer,0,m)),f=null,m=0)}0===a.pendingChunks&&b.close()}
|
59
|
+
function Xa(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=U(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;V(a,e,d);c.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=t(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&W(a,a.destination)}catch(g){U(a,g),Wa(a,g)}}
|
60
|
+
function La(a){if(a){var b=E;H(null);for(var c=0;c<a.length;c++){var d=a[c],e=d[0];d=d[1];S[e]||(S[e]=aa.createServerContext(e,oa));wa(S[e],d)}a=E;H(b);return a}return null}
|
61
|
+
exports.renderToReadableStream=function(a,b,c){var d=Ja(a,b,c?c.onError:void 0,c?c.context:void 0,c?c.identifierPrefix:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)Xa(d,e.reason);else{var g=function(){Xa(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){Ta(d)},pull:function(h){if(1===d.status)d.status=2,ba(h,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=h;try{W(d,h)}catch(k){U(d,k),
|
62
|
+
Wa(d,k)}}},cancel:function(){}},{highWaterMark:0})};
|