react-server-dom-webpack 18.3.0-canary-88df88f94-20230613 → 18.3.0-canary-613e6f5fc-20230616
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 +14 -7
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +26 -26
- package/cjs/react-server-dom-webpack-client.edge.development.js +14 -7
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +25 -25
- package/cjs/react-server-dom-webpack-client.node.development.js +14 -7
- package/cjs/react-server-dom-webpack-client.node.production.min.js +11 -11
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +14 -7
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +7 -7
- package/cjs/react-server-dom-webpack-server.node.development.js +2 -1
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +2 -1
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +14 -7
- package/umd/react-server-dom-webpack-client.browser.production.min.js +21 -21
@@ -1784,35 +1784,42 @@ function processBinaryChunk(response, chunk) {
|
|
1784
1784
|
case ROW_CHUNK_BY_LENGTH:
|
1785
1785
|
{
|
1786
1786
|
// We're looking for the remaining byte length
|
1787
|
-
|
1788
|
-
|
1787
|
+
lastIdx = i + rowLength;
|
1788
|
+
|
1789
|
+
if (lastIdx > chunk.length) {
|
1790
|
+
lastIdx = -1;
|
1789
1791
|
}
|
1790
1792
|
|
1791
1793
|
break;
|
1792
1794
|
}
|
1793
1795
|
}
|
1794
1796
|
|
1797
|
+
var offset = chunk.byteOffset + i;
|
1798
|
+
|
1795
1799
|
if (lastIdx > -1) {
|
1796
1800
|
// We found the last chunk of the row
|
1797
|
-
var offset = chunk.byteOffset + i;
|
1798
1801
|
var length = lastIdx - i;
|
1799
1802
|
var lastChunk = new Uint8Array(chunk.buffer, offset, length);
|
1800
1803
|
processFullRow(response, rowID, rowTag, buffer, lastChunk); // Reset state machine for a new row
|
1801
1804
|
|
1805
|
+
i = lastIdx;
|
1806
|
+
|
1807
|
+
if (rowState === ROW_CHUNK_BY_NEWLINE) {
|
1808
|
+
// If we're trailing by a newline we need to skip it.
|
1809
|
+
i++;
|
1810
|
+
}
|
1811
|
+
|
1802
1812
|
rowState = ROW_ID;
|
1803
1813
|
rowTag = 0;
|
1804
1814
|
rowID = 0;
|
1805
1815
|
rowLength = 0;
|
1806
1816
|
buffer.length = 0;
|
1807
|
-
i = lastIdx + 1;
|
1808
1817
|
} else {
|
1809
1818
|
// The rest of this row is in a future chunk. We stash the rest of the
|
1810
1819
|
// current chunk until we can process the full row.
|
1811
|
-
var _offset = chunk.byteOffset + i;
|
1812
|
-
|
1813
1820
|
var _length = chunk.byteLength - i;
|
1814
1821
|
|
1815
|
-
var remainingSlice = new Uint8Array(chunk.buffer,
|
1822
|
+
var remainingSlice = new Uint8Array(chunk.buffer, offset, _length);
|
1816
1823
|
buffer.push(remainingSlice); // Update how many bytes we're still waiting for. If we're looking for
|
1817
1824
|
// a newline, this doesn't hurt since we'll just ignore it.
|
1818
1825
|
|
@@ -7,29 +7,29 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
11
|
-
function z(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],h=w.get(g);if(void 0===h){h=__webpack_chunk_load__(g);c.push(h);var n=w.set.bind(w,g,null);h.then(n,y);w.set(g,h)}else null!==h&&c.push(h)}if(a.async){if(b=x.get(a.id))return"fulfilled"===b.status?null:b;var e=Promise.all(c).then(function(){return __webpack_require__(a.id)});e.then(function(
|
12
|
-
var A=
|
13
|
-
function
|
14
|
-
1]&&this[
|
15
|
-
if(Symbol.for(
|
16
|
-
function
|
17
|
-
function
|
18
|
-
var
|
19
|
-
|
20
|
-
function
|
21
|
-
function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&
|
22
|
-
function
|
23
|
-
function
|
24
|
-
function
|
25
|
-
function
|
26
|
-
function
|
27
|
-
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=X(a,d);switch(a.status){case "resolved_model":
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function Z(a,b){function c(h){var n=h.value;if(h.done)W(a,Error("Connection closed."));else{var e=0,
|
32
|
-
n.
|
33
|
-
k.stack="Error: "+k.message;k.digest=e;e=
|
34
|
-
f;a._rowTag=k;a._rowLength=
|
35
|
-
exports.createServerReference=function(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}c.$$FORM_ACTION=
|
10
|
+
'use strict';var r=require("react-dom"),t=require("react"),u={stream:!0};function v(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var w=new Map,x=new Map;function y(){}
|
11
|
+
function z(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],h=w.get(g);if(void 0===h){h=__webpack_chunk_load__(g);c.push(h);var n=w.set.bind(w,g,null);h.then(n,y);w.set(g,h)}else null!==h&&c.push(h)}if(a.async){if(b=x.get(a.id))return"fulfilled"===b.status?null:b;var e=Promise.all(c).then(function(){return __webpack_require__(a.id)});e.then(function(m){e.status="fulfilled";e.value=m},function(m){e.status="rejected";e.reason=m});x.set(a.id,e);return e}return 0<c.length?Promise.all(c):null}
|
12
|
+
var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,B=Symbol.for("react.element"),C=Symbol.for("react.lazy"),D=Symbol.for("react.default_value"),F=Symbol.iterator;function aa(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===typeof a?a:null}var ba=Array.isArray,G=new WeakMap;function ca(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
13
|
+
function I(a,b,c,d){function g(m,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===e&&(e=new FormData);n++;var k=h++;f.then(function(p){p=JSON.stringify(p,g);var q=e;q.append(b+k,p);n--;0===n&&c(q)},function(p){d(p)});return"$@"+k.toString(16)}if(f instanceof FormData){null===e&&(e=new FormData);var l=e;m=h++;var E=b+m+"_";f.forEach(function(p,q){l.append(E+q,p)});return"$K"+m.toString(16)}return!ba(f)&&aa(f)?Array.from(f):f}if("string"===typeof f){if("Z"===
|
14
|
+
f[f.length-1]&&this[m]instanceof Date)return"$D"+f;f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return ca(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=G.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===e&&(e=new FormData),m=h++,e.set(b+m,f),"$F"+m.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){m=
|
15
|
+
f.description;if(Symbol.for(m)!==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"+m}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,n=0,e=null;a=JSON.stringify(a,g);null===e?c(a):(e.set(b+"0",a),0===n&&c(e))}var J=new WeakMap;
|
16
|
+
function da(a){var b,c,d=new Promise(function(g,h){b=g;c=h});I(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}d.status="fulfilled";d.value=g;b(g)},function(g){d.status="rejected";d.reason=g;c(g)});return d}
|
17
|
+
function K(a){var b=G.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=J.get(b);c||(c=da(b),J.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(g,h){d.append("$ACTION_"+a+":"+h,g)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}
|
18
|
+
var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function M(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}M.prototype=Object.create(Promise.prototype);
|
19
|
+
M.prototype.then=function(a,b){switch(this.status){case "resolved_model":N(this);break;case "resolved_module":O(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)}};
|
20
|
+
function ea(a){switch(a.status){case "resolved_model":N(a);break;case "resolved_module":O(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function P(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Q(a,b,c){switch(a.status){case "fulfilled":P(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&P(c,a.reason)}}
|
21
|
+
function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&P(c,b)}}function T(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&&(O(a),Q(a,c,d))}}var U=null,V=null;
|
22
|
+
function N(a){var b=U,c=V;U=a;V=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==V&&0<V.deps?(V.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(g){a.status="rejected",a.reason=g}finally{U=b,V=c}}
|
23
|
+
function O(a){try{var b=a.value;if(b.async){var c=x.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var g="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=g}catch(h){a.status="rejected",a.reason=h}}function W(a,b){a._chunks.forEach(function(c){"pending"===c.status&&S(c,b)})}function X(a,b){var c=a._chunks,d=c.get(b);d||(d=new M("pending",null,null,a),c.set(b,d));return d}
|
24
|
+
function fa(a,b,c){if(V){var d=V;d.deps++}else d=V={deps:1,value:null};return function(g){b[c]=g;d.deps--;0===d.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=d.value,null!==g&&P(g,d.value))}}function ha(a){return function(b){return S(a,b)}}
|
25
|
+
function ia(a,b){function c(){var g=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?d(b.id,h.value.concat(g)):Promise.resolve(h).then(function(n){return d(b.id,n.concat(g))}):d(b.id,g)}var d=a._callServer;c.$$FORM_ACTION=K;G.set(c,b);return c}
|
26
|
+
function ja(a,b,c,d){if("$"===d[0]){if("$"===d)return B;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=X(a,b),{$$typeof:C,_payload:a,_init:ea};case "@":return b=parseInt(d.slice(2),16),X(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),L[a]||(L[a]=t.createServerContext(a,D)),L[a].Provider;case "F":b=parseInt(d.slice(2),16);b=X(a,b);switch(b.status){case "resolved_model":N(b)}switch(b.status){case "fulfilled":return ia(a,b.value);default:throw b.reason;
|
27
|
+
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=X(a,d);switch(a.status){case "resolved_model":N(a);break;case "resolved_module":O(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=U,a.then(fa(d,b,c),ha(d)),null;default:throw a.reason;}}}return d}
|
28
|
+
function ka(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Y(a,b){var c=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ka,_chunks:c,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=la(a);return a}
|
29
|
+
function ma(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var h=v(a._bundlerConfig,c);if(c=z(h)){if(g){var n=g;n.status="blocked"}else n=new M("blocked",null,null,a),d.set(b,n);c.then(function(){return T(n,h)},function(e){return S(n,e)})}else g?T(g,h):d.set(b,new M("resolved_module",h,null,a))}
|
30
|
+
function la(a){return function(b,c){return"string"===typeof c?ja(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===B?{$$typeof:B,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
|
31
|
+
function Z(a,b){function c(h){var n=h.value;if(h.done)W(a,Error("Connection closed."));else{var e=0,m=a._rowState,f=a._rowID,k=a._rowTag,l=a._rowLength;h=a._buffer;for(var E=n.length;e<E;){var p=-1;switch(m){case 0:p=n[e++];58===p?m=1:f=f<<4|(96<p?p-87:p-48);continue;case 1:m=n[e];84===m?(k=m,m=2,e++):64<m&&91>m?(k=m,m=3,e++):(k=0,m=3);continue;case 2:p=n[e++];44===p?m=4:l=l<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,e);break;case 4:p=e+l,p>n.length&&(p=-1)}var q=n.byteOffset+e;if(-1<p){e=
|
32
|
+
new Uint8Array(n.buffer,q,p-e);l=a;q=k;k="";for(var R=l._stringDecoder,H=0;H<h.length;H++)k+=R.decode(h[H],u);k="string"===typeof e?k+e:k+R.decode(e);switch(q){case 73:ma(l,f,k);break;case 72:f=k[0];k=k.slice(1);l=JSON.parse(k,l._fromJSON);k=void 0;if(q=A.current)switch("string"===typeof l?e=l:(e=l[0],k=l[1]),f){case "D":q.prefetchDNS(e,k);break;case "C":q.preconnect(e,k);break;case "L":q.preload(e,k);break;case "I":q.preinit(e,k)}break;case 69:k=JSON.parse(k);e=k.digest;k=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.");
|
33
|
+
k.stack="Error: "+k.message;k.digest=e;e=l._chunks;(q=e.get(f))?S(q,k):e.set(f,new M("rejected",null,k,l));break;case 84:l._chunks.set(f,new M("fulfilled",k,null,l));break;default:e=l._chunks,(q=e.get(f))?(l=q,f=k,"pending"===l.status&&(k=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==k&&(N(l),Q(l,k,e)))):e.set(f,new M("resolved_model",k,null,l))}e=p;3===m&&e++;l=f=k=m=0;h.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-e);h.push(n);l-=n.byteLength;break}}a._rowState=m;a._rowID=
|
34
|
+
f;a._rowTag=k;a._rowLength=l;return g.read().then(c).catch(d)}}function d(h){W(a,h)}var g=b.getReader();g.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(null,b&&b.callServer?b.callServer:void 0);a.then(function(d){Z(c,d.body)},function(d){W(c,d)});return X(c,0)};exports.createFromReadableStream=function(a,b){b=Y(null,b&&b.callServer?b.callServer:void 0);Z(b,a);return X(b,0)};
|
35
|
+
exports.createServerReference=function(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}c.$$FORM_ACTION=K;G.set(c,{id:a,bound:null});return c};exports.encodeReply=function(a){return new Promise(function(b,c){I(a,"",b,c)})};
|
@@ -1768,35 +1768,42 @@ function processBinaryChunk(response, chunk) {
|
|
1768
1768
|
case ROW_CHUNK_BY_LENGTH:
|
1769
1769
|
{
|
1770
1770
|
// We're looking for the remaining byte length
|
1771
|
-
|
1772
|
-
|
1771
|
+
lastIdx = i + rowLength;
|
1772
|
+
|
1773
|
+
if (lastIdx > chunk.length) {
|
1774
|
+
lastIdx = -1;
|
1773
1775
|
}
|
1774
1776
|
|
1775
1777
|
break;
|
1776
1778
|
}
|
1777
1779
|
}
|
1778
1780
|
|
1781
|
+
var offset = chunk.byteOffset + i;
|
1782
|
+
|
1779
1783
|
if (lastIdx > -1) {
|
1780
1784
|
// We found the last chunk of the row
|
1781
|
-
var offset = chunk.byteOffset + i;
|
1782
1785
|
var length = lastIdx - i;
|
1783
1786
|
var lastChunk = new Uint8Array(chunk.buffer, offset, length);
|
1784
1787
|
processFullRow(response, rowID, rowTag, buffer, lastChunk); // Reset state machine for a new row
|
1785
1788
|
|
1789
|
+
i = lastIdx;
|
1790
|
+
|
1791
|
+
if (rowState === ROW_CHUNK_BY_NEWLINE) {
|
1792
|
+
// If we're trailing by a newline we need to skip it.
|
1793
|
+
i++;
|
1794
|
+
}
|
1795
|
+
|
1786
1796
|
rowState = ROW_ID;
|
1787
1797
|
rowTag = 0;
|
1788
1798
|
rowID = 0;
|
1789
1799
|
rowLength = 0;
|
1790
1800
|
buffer.length = 0;
|
1791
|
-
i = lastIdx + 1;
|
1792
1801
|
} else {
|
1793
1802
|
// The rest of this row is in a future chunk. We stash the rest of the
|
1794
1803
|
// current chunk until we can process the full row.
|
1795
|
-
var _offset = chunk.byteOffset + i;
|
1796
|
-
|
1797
1804
|
var _length = chunk.byteLength - i;
|
1798
1805
|
|
1799
|
-
var remainingSlice = new Uint8Array(chunk.buffer,
|
1806
|
+
var remainingSlice = new Uint8Array(chunk.buffer, offset, _length);
|
1800
1807
|
buffer.push(remainingSlice); // Update how many bytes we're still waiting for. If we're looking for
|
1801
1808
|
// a newline, this doesn't hurt since we'll just ignore it.
|
1802
1809
|
|
@@ -7,28 +7,28 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
11
|
-
function z(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],h=w.get(g);if(void 0===h){h=__webpack_chunk_load__(g);c.push(h);var n=w.set.bind(w,g,null);h.then(n,y);w.set(g,h)}else null!==h&&c.push(h)}if(a.async){if(b=x.get(a.id))return"fulfilled"===b.status?null:b;var e=Promise.all(c).then(function(){return __webpack_require__(a.id)});e.then(function(
|
12
|
-
var A=
|
13
|
-
function
|
14
|
-
1]&&this[
|
15
|
-
if(Symbol.for(
|
16
|
-
function
|
17
|
-
function
|
18
|
-
var
|
19
|
-
|
20
|
-
function
|
21
|
-
function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&
|
22
|
-
function
|
23
|
-
function
|
24
|
-
function
|
25
|
-
function
|
26
|
-
function
|
27
|
-
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=W(a,d);switch(a.status){case "resolved_model":
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function Z(a,b){function c(h){var n=h.value;if(h.done)V(a,Error("Connection closed."));else{var e=0,
|
32
|
-
n.
|
33
|
-
k.stack="Error: "+k.message;k.digest=e;e=
|
34
|
-
f;a._rowTag=k;a._rowLength=
|
10
|
+
'use strict';var r=require("react-dom"),t=require("react"),u={stream:!0};function v(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var w=new Map,x=new Map;function y(){}
|
11
|
+
function z(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],h=w.get(g);if(void 0===h){h=__webpack_chunk_load__(g);c.push(h);var n=w.set.bind(w,g,null);h.then(n,y);w.set(g,h)}else null!==h&&c.push(h)}if(a.async){if(b=x.get(a.id))return"fulfilled"===b.status?null:b;var e=Promise.all(c).then(function(){return __webpack_require__(a.id)});e.then(function(m){e.status="fulfilled";e.value=m},function(m){e.status="rejected";e.reason=m});x.set(a.id,e);return e}return 0<c.length?Promise.all(c):null}
|
12
|
+
var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,B=Symbol.for("react.element"),C=Symbol.for("react.lazy"),D=Symbol.for("react.default_value"),F=Symbol.iterator;function G(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===typeof a?a:null}var aa=Array.isArray,H=new WeakMap;function ba(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
13
|
+
function ca(a,b,c,d){function g(m,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===e&&(e=new FormData);n++;var k=h++;f.then(function(p){p=JSON.stringify(p,g);var q=e;q.append(b+k,p);n--;0===n&&c(q)},function(p){d(p)});return"$@"+k.toString(16)}if(f instanceof FormData){null===e&&(e=new FormData);var l=e;m=h++;var E=b+m+"_";f.forEach(function(p,q){l.append(E+q,p)});return"$K"+m.toString(16)}return!aa(f)&&G(f)?Array.from(f):f}if("string"===typeof f){if("Z"===
|
14
|
+
f[f.length-1]&&this[m]instanceof Date)return"$D"+f;f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return ba(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=H.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===e&&(e=new FormData),m=h++,e.set(b+m,f),"$F"+m.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){m=
|
15
|
+
f.description;if(Symbol.for(m)!==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"+m}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,n=0,e=null;a=JSON.stringify(a,g);null===e?c(a):(e.set(b+"0",a),0===n&&c(e))}var J=new WeakMap;
|
16
|
+
function da(a){var b,c,d=new Promise(function(g,h){b=g;c=h});ca(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}d.status="fulfilled";d.value=g;b(g)},function(g){d.status="rejected";d.reason=g;c(g)});return d}
|
17
|
+
function ea(a){var b=H.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=J.get(b);c||(c=da(b),J.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(g,h){d.append("$ACTION_"+a+":"+h,g)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}
|
18
|
+
var K=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function L(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}L.prototype=Object.create(Promise.prototype);
|
19
|
+
L.prototype.then=function(a,b){switch(this.status){case "resolved_model":M(this);break;case "resolved_module":N(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)}};
|
20
|
+
function fa(a){switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function O(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function P(a,b,c){switch(a.status){case "fulfilled":O(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&O(c,a.reason)}}
|
21
|
+
function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&O(c,b)}}function S(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&&(N(a),P(a,c,d))}}var T=null,U=null;
|
22
|
+
function M(a){var b=T,c=U;T=a;U=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==U&&0<U.deps?(U.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(g){a.status="rejected",a.reason=g}finally{T=b,U=c}}
|
23
|
+
function N(a){try{var b=a.value;if(b.async){var c=x.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var g="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=g}catch(h){a.status="rejected",a.reason=h}}function V(a,b){a._chunks.forEach(function(c){"pending"===c.status&&R(c,b)})}function W(a,b){var c=a._chunks,d=c.get(b);d||(d=new L("pending",null,null,a),c.set(b,d));return d}
|
24
|
+
function ha(a,b,c){if(U){var d=U;d.deps++}else d=U={deps:1,value:null};return function(g){b[c]=g;d.deps--;0===d.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=d.value,null!==g&&O(g,d.value))}}function ia(a){return function(b){return R(a,b)}}
|
25
|
+
function ja(a,b){function c(){var g=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?d(b.id,h.value.concat(g)):Promise.resolve(h).then(function(n){return d(b.id,n.concat(g))}):d(b.id,g)}var d=a._callServer;c.$$FORM_ACTION=ea;H.set(c,b);return c}
|
26
|
+
function ka(a,b,c,d){if("$"===d[0]){if("$"===d)return B;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=W(a,b),{$$typeof:C,_payload:a,_init:fa};case "@":return b=parseInt(d.slice(2),16),W(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),K[a]||(K[a]=t.createServerContext(a,D)),K[a].Provider;case "F":b=parseInt(d.slice(2),16);b=W(a,b);switch(b.status){case "resolved_model":M(b)}switch(b.status){case "fulfilled":return ja(a,b.value);default:throw b.reason;
|
27
|
+
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=W(a,d);switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=T,a.then(ha(d,b,c),ia(d)),null;default:throw a.reason;}}}return d}
|
28
|
+
function la(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function X(a,b){var c=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:la,_chunks:c,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ma(a);return a}
|
29
|
+
function na(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var h=v(a._bundlerConfig,c);if(c=z(h)){if(g){var n=g;n.status="blocked"}else n=new L("blocked",null,null,a),d.set(b,n);c.then(function(){return S(n,h)},function(e){return R(n,e)})}else g?S(g,h):d.set(b,new L("resolved_module",h,null,a))}
|
30
|
+
function ma(a){return function(b,c){return"string"===typeof c?ka(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===B?{$$typeof:B,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function Y(){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.");}
|
31
|
+
function Z(a,b){function c(h){var n=h.value;if(h.done)V(a,Error("Connection closed."));else{var e=0,m=a._rowState,f=a._rowID,k=a._rowTag,l=a._rowLength;h=a._buffer;for(var E=n.length;e<E;){var p=-1;switch(m){case 0:p=n[e++];58===p?m=1:f=f<<4|(96<p?p-87:p-48);continue;case 1:m=n[e];84===m?(k=m,m=2,e++):64<m&&91>m?(k=m,m=3,e++):(k=0,m=3);continue;case 2:p=n[e++];44===p?m=4:l=l<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,e);break;case 4:p=e+l,p>n.length&&(p=-1)}var q=n.byteOffset+e;if(-1<p){e=
|
32
|
+
new Uint8Array(n.buffer,q,p-e);l=a;q=k;k="";for(var Q=l._stringDecoder,I=0;I<h.length;I++)k+=Q.decode(h[I],u);k="string"===typeof e?k+e:k+Q.decode(e);switch(q){case 73:na(l,f,k);break;case 72:f=k[0];k=k.slice(1);l=JSON.parse(k,l._fromJSON);k=void 0;if(q=A.current)switch("string"===typeof l?e=l:(e=l[0],k=l[1]),f){case "D":q.prefetchDNS(e,k);break;case "C":q.preconnect(e,k);break;case "L":q.preload(e,k);break;case "I":q.preinit(e,k)}break;case 69:k=JSON.parse(k);e=k.digest;k=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.");
|
33
|
+
k.stack="Error: "+k.message;k.digest=e;e=l._chunks;(q=e.get(f))?R(q,k):e.set(f,new L("rejected",null,k,l));break;case 84:l._chunks.set(f,new L("fulfilled",k,null,l));break;default:e=l._chunks,(q=e.get(f))?(l=q,f=k,"pending"===l.status&&(k=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==k&&(M(l),P(l,k,e)))):e.set(f,new L("resolved_model",k,null,l))}e=p;3===m&&e++;l=f=k=m=0;h.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-e);h.push(n);l-=n.byteLength;break}}a._rowState=m;a._rowID=
|
34
|
+
f;a._rowTag=k;a._rowLength=l;return g.read().then(c).catch(d)}}function d(h){V(a,h)}var g=b.getReader();g.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=X(b&&b.moduleMap?b.moduleMap:null,Y);a.then(function(d){Z(c,d.body)},function(d){V(c,d)});return W(c,0)};exports.createFromReadableStream=function(a,b){b=X(b&&b.moduleMap?b.moduleMap:null,Y);Z(b,a);return W(b,0)};exports.createServerReference=function(){return Y};
|
@@ -1769,35 +1769,42 @@ function processBinaryChunk(response, chunk) {
|
|
1769
1769
|
case ROW_CHUNK_BY_LENGTH:
|
1770
1770
|
{
|
1771
1771
|
// We're looking for the remaining byte length
|
1772
|
-
|
1773
|
-
|
1772
|
+
lastIdx = i + rowLength;
|
1773
|
+
|
1774
|
+
if (lastIdx > chunk.length) {
|
1775
|
+
lastIdx = -1;
|
1774
1776
|
}
|
1775
1777
|
|
1776
1778
|
break;
|
1777
1779
|
}
|
1778
1780
|
}
|
1779
1781
|
|
1782
|
+
var offset = chunk.byteOffset + i;
|
1783
|
+
|
1780
1784
|
if (lastIdx > -1) {
|
1781
1785
|
// We found the last chunk of the row
|
1782
|
-
var offset = chunk.byteOffset + i;
|
1783
1786
|
var length = lastIdx - i;
|
1784
1787
|
var lastChunk = new Uint8Array(chunk.buffer, offset, length);
|
1785
1788
|
processFullRow(response, rowID, rowTag, buffer, lastChunk); // Reset state machine for a new row
|
1786
1789
|
|
1790
|
+
i = lastIdx;
|
1791
|
+
|
1792
|
+
if (rowState === ROW_CHUNK_BY_NEWLINE) {
|
1793
|
+
// If we're trailing by a newline we need to skip it.
|
1794
|
+
i++;
|
1795
|
+
}
|
1796
|
+
|
1787
1797
|
rowState = ROW_ID;
|
1788
1798
|
rowTag = 0;
|
1789
1799
|
rowID = 0;
|
1790
1800
|
rowLength = 0;
|
1791
1801
|
buffer.length = 0;
|
1792
|
-
i = lastIdx + 1;
|
1793
1802
|
} else {
|
1794
1803
|
// The rest of this row is in a future chunk. We stash the rest of the
|
1795
1804
|
// current chunk until we can process the full row.
|
1796
|
-
var _offset = chunk.byteOffset + i;
|
1797
|
-
|
1798
1805
|
var _length = chunk.byteLength - i;
|
1799
1806
|
|
1800
|
-
var remainingSlice = new Uint8Array(chunk.buffer,
|
1807
|
+
var remainingSlice = new Uint8Array(chunk.buffer, offset, _length);
|
1801
1808
|
buffer.push(remainingSlice); // Update how many bytes we're still waiting for. If we're looking for
|
1802
1809
|
// a newline, this doesn't hurt since we'll just ignore it.
|
1803
1810
|
|
@@ -7,12 +7,12 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
11
|
-
function B(a){for(var c=a.chunks,b=[],d=0;d<c.length;d++){var e=c[d],g=y.get(e);if(void 0===g){g=__webpack_chunk_load__(e);b.push(g);var l=y.set.bind(y,e,null);g.then(l,A);y.set(e,g)}else null!==g&&b.push(g)}if(a.async){if(c=z.get(a.id))return"fulfilled"===c.status?null:c;var f=Promise.all(b).then(function(){return __webpack_require__(a.id)});f.then(function(
|
12
|
-
var C=
|
13
|
-
function L(a,c,b,d){function e(h
|
14
|
-
1]&&this[
|
15
|
-
if(Symbol.for(
|
10
|
+
'use strict';var q=require("util"),r=require("react-dom"),t=require("react"),u={stream:!0};function v(a,c){if(a){var b=a[c.id];if(a=b[c.name])b=a.name;else{a=b["*"];if(!a)throw Error('Could not find the module "'+c.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');b=c.name}return{id:a.id,chunks:a.chunks,name:b,async:!!c.async}}return c}var y=new Map,z=new Map;function A(){}
|
11
|
+
function B(a){for(var c=a.chunks,b=[],d=0;d<c.length;d++){var e=c[d],g=y.get(e);if(void 0===g){g=__webpack_chunk_load__(e);b.push(g);var l=y.set.bind(y,e,null);g.then(l,A);y.set(e,g)}else null!==g&&b.push(g)}if(a.async){if(c=z.get(a.id))return"fulfilled"===c.status?null:c;var f=Promise.all(b).then(function(){return __webpack_require__(a.id)});f.then(function(k){f.status="fulfilled";f.value=k},function(k){f.status="rejected";f.reason=k});z.set(a.id,f);return f}return 0<b.length?Promise.all(b):null}
|
12
|
+
var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,D=Symbol.for("react.element"),E=Symbol.for("react.lazy"),F=Symbol.for("react.default_value"),G=Symbol.iterator;function H(a){if(null===a||"object"!==typeof a)return null;a=G&&a[G]||a["@@iterator"];return"function"===typeof a?a:null}var I=Array.isArray,J=new WeakMap;function K(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
13
|
+
function L(a,c,b,d){function e(k,h){if(null===h)return null;if("object"===typeof h){if("function"===typeof h.then){null===f&&(f=new FormData);l++;var w=g++;h.then(function(p){p=JSON.stringify(p,e);var x=f;x.append(c+w,p);l--;0===l&&b(x)},function(p){d(p)});return"$@"+w.toString(16)}if(h instanceof FormData){null===f&&(f=new FormData);var m=f;k=g++;var n=c+k+"_";h.forEach(function(p,x){m.append(n+x,p)});return"$K"+k.toString(16)}return!I(h)&&H(h)?Array.from(h):h}if("string"===typeof h){if("Z"===h[h.length-
|
14
|
+
1]&&this[k]instanceof Date)return"$D"+h;h="$"===h[0]?"$"+h:h;return h}if("boolean"===typeof h)return h;if("number"===typeof h)return K(h);if("undefined"===typeof h)return"$undefined";if("function"===typeof h){h=J.get(h);if(void 0!==h)return h=JSON.stringify(h,e),null===f&&(f=new FormData),k=g++,f.set(c+k,h),"$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 h){k=h.description;
|
15
|
+
if(Symbol.for(k)!==h)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(h.description+") cannot be found among global symbols."));return"$S"+k}if("bigint"===typeof h)return"$n"+h.toString(10);throw Error("Type "+typeof h+" is not supported as an argument to a Server Function.");}var g=1,l=0,f=null;a=JSON.stringify(a,e);null===f?b(a):(f.set(c+"0",a),0===l&&b(f))}var M=new WeakMap;
|
16
16
|
function aa(a){var c,b,d=new Promise(function(e,g){c=e;b=g});L(a,"",function(e){if("string"===typeof e){var g=new FormData;g.append("0",e);e=g}d.status="fulfilled";d.value=e;c(e)},function(e){d.status="rejected";d.reason=e;b(e)});return d}
|
17
17
|
function ba(a){var c=J.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var b=null;if(null!==c.bound){b=M.get(c);b||(b=aa(c),M.set(c,b));if("rejected"===b.status)throw b.reason;if("fulfilled"!==b.status)throw b;c=b.value;var d=new FormData;c.forEach(function(e,g){d.append("$ACTION_"+a+":"+g,e)});b=d;c="$ACTION_REF_"+a}else c="$ACTION_ID_"+c.id;return{name:c,method:"POST",encType:"multipart/form-data",data:b}}
|
18
18
|
var N=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function O(a,c,b,d){this.status=a;this.value=c;this.reason=b;this._response=d}O.prototype=Object.create(Promise.prototype);
|
@@ -25,10 +25,10 @@ function da(a,c,b){if(W){var d=W;d.deps++}else d=W={deps:1,value:null};return fu
|
|
25
25
|
function fa(a,c){function b(){var e=Array.prototype.slice.call(arguments),g=c.bound;return g?"fulfilled"===g.status?d(c.id,g.value.concat(e)):Promise.resolve(g).then(function(l){return d(c.id,l.concat(e))}):d(c.id,e)}var d=a._callServer;b.$$FORM_ACTION=ba;J.set(b,c);return b}
|
26
26
|
function ha(a,c,b,d){if("$"===d[0]){if("$"===d)return D;switch(d[1]){case "$":return d.slice(1);case "L":return c=parseInt(d.slice(2),16),a=Y(a,c),{$$typeof:E,_payload:a,_init:ca};case "@":return c=parseInt(d.slice(2),16),Y(a,c);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),N[a]||(N[a]=t.createServerContext(a,F)),N[a].Provider;case "F":c=parseInt(d.slice(2),16);c=Y(a,c);switch(c.status){case "resolved_model":P(c)}switch(c.status){case "fulfilled":return fa(a,c.value);default:throw c.reason;
|
27
27
|
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Y(a,d);switch(a.status){case "resolved_model":P(a);break;case "resolved_module":Q(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=V,a.then(da(d,c,b),ea(d)),null;default:throw a.reason;}}}return d}
|
28
|
-
function ia(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ja(a,c){var b=new Map;a={_bundlerConfig:a,_callServer:void 0!==c?c:ia,_chunks:b,_stringDecoder:new
|
28
|
+
function ia(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ja(a,c){var b=new Map;a={_bundlerConfig:a,_callServer:void 0!==c?c:ia,_chunks:b,_stringDecoder:new q.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ka(a);return a}
|
29
29
|
function la(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var g=v(a._bundlerConfig,b);if(b=B(g)){if(e){var l=e;l.status="blocked"}else l=new O("blocked",null,null,a),d.set(c,l);b.then(function(){return U(l,g)},function(f){return T(l,f)})}else e?U(e,g):d.set(c,new O("resolved_module",g,null,a))}
|
30
30
|
function ka(a){return function(c,b){return"string"===typeof b?ha(a,this,c,b):"object"===typeof b&&null!==b?(c=b[0]===D?{$$typeof:D,type:b[1],key:b[2],ref:null,props:b[3],_owner:null}:b,c):b}}function Z(){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.");}
|
31
|
-
exports.createFromNodeStream=function(a,c){var b=ja(c,Z);a.on("data",function(d){for(var e=0,g=b._rowState,l=b._rowID,f=b._rowTag,
|
32
|
-
|
33
|
-
f.stack="Error: "+f.message;f.digest=
|
34
|
-
l;b._rowTag=f;b._rowLength=
|
31
|
+
exports.createFromNodeStream=function(a,c){var b=ja(c,Z);a.on("data",function(d){for(var e=0,g=b._rowState,l=b._rowID,f=b._rowTag,k=b._rowLength,h=b._buffer,w=d.length;e<w;){var m=-1;switch(g){case 0:m=d[e++];58===m?g=1:l=l<<4|(96<m?m-87:m-48);continue;case 1:g=d[e];84===g?(f=g,g=2,e++):64<g&&91>g?(f=g,g=3,e++):(f=0,g=3);continue;case 2:m=d[e++];44===m?g=4:k=k<<4|(96<m?m-87:m-48);continue;case 3:m=d.indexOf(10,e);break;case 4:m=e+k,m>d.length&&(m=-1)}var n=d.byteOffset+e;if(-1<m){k=new Uint8Array(d.buffer,
|
32
|
+
n,m-e);e=f;f="";n=b._stringDecoder;for(var p=0;p<h.length;p++)f+=n.decode(h[p],u);f="string"===typeof k?f+k:f+n.decode(k);switch(e){case 73:la(b,l,f);break;case 72:l=f[0];f=f.slice(1);f=JSON.parse(f,b._fromJSON);k=void 0;if(n=C.current)switch("string"===typeof f?e=f:(e=f[0],k=f[1]),l){case "D":n.prefetchDNS(e,k);break;case "C":n.preconnect(e,k);break;case "L":n.preload(e,k);break;case "I":n.preinit(e,k)}break;case 69:f=JSON.parse(f);k=f.digest;f=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.");
|
33
|
+
f.stack="Error: "+f.message;f.digest=k;k=b._chunks;(e=k.get(l))?T(e,f):k.set(l,new O("rejected",null,f,b));break;case 84:b._chunks.set(l,new O("fulfilled",f,null,b));break;default:k=b._chunks,(e=k.get(l))?(l=e,"pending"===l.status&&(k=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==k&&(P(l),S(l,k,e)))):k.set(l,new O("resolved_model",f,null,b))}e=m;3===g&&e++;k=l=f=g=0;h.length=0}else{d=new Uint8Array(d.buffer,n,d.byteLength-e);h.push(d);k-=d.byteLength;break}}b._rowState=g;b._rowID=
|
34
|
+
l;b._rowTag=f;b._rowLength=k});a.on("error",function(d){X(b,d)});a.on("end",function(){X(b,Error("Connection closed."))});return Y(b,0)};exports.createServerReference=function(){return Z};
|
@@ -1718,35 +1718,42 @@ function processBinaryChunk(response, chunk) {
|
|
1718
1718
|
case ROW_CHUNK_BY_LENGTH:
|
1719
1719
|
{
|
1720
1720
|
// We're looking for the remaining byte length
|
1721
|
-
|
1722
|
-
|
1721
|
+
lastIdx = i + rowLength;
|
1722
|
+
|
1723
|
+
if (lastIdx > chunk.length) {
|
1724
|
+
lastIdx = -1;
|
1723
1725
|
}
|
1724
1726
|
|
1725
1727
|
break;
|
1726
1728
|
}
|
1727
1729
|
}
|
1728
1730
|
|
1731
|
+
var offset = chunk.byteOffset + i;
|
1732
|
+
|
1729
1733
|
if (lastIdx > -1) {
|
1730
1734
|
// We found the last chunk of the row
|
1731
|
-
var offset = chunk.byteOffset + i;
|
1732
1735
|
var length = lastIdx - i;
|
1733
1736
|
var lastChunk = new Uint8Array(chunk.buffer, offset, length);
|
1734
1737
|
processFullRow(response, rowID, rowTag, buffer, lastChunk); // Reset state machine for a new row
|
1735
1738
|
|
1739
|
+
i = lastIdx;
|
1740
|
+
|
1741
|
+
if (rowState === ROW_CHUNK_BY_NEWLINE) {
|
1742
|
+
// If we're trailing by a newline we need to skip it.
|
1743
|
+
i++;
|
1744
|
+
}
|
1745
|
+
|
1736
1746
|
rowState = ROW_ID;
|
1737
1747
|
rowTag = 0;
|
1738
1748
|
rowID = 0;
|
1739
1749
|
rowLength = 0;
|
1740
1750
|
buffer.length = 0;
|
1741
|
-
i = lastIdx + 1;
|
1742
1751
|
} else {
|
1743
1752
|
// The rest of this row is in a future chunk. We stash the rest of the
|
1744
1753
|
// current chunk until we can process the full row.
|
1745
|
-
var _offset = chunk.byteOffset + i;
|
1746
|
-
|
1747
1754
|
var _length = chunk.byteLength - i;
|
1748
1755
|
|
1749
|
-
var remainingSlice = new Uint8Array(chunk.buffer,
|
1756
|
+
var remainingSlice = new Uint8Array(chunk.buffer, offset, _length);
|
1750
1757
|
buffer.push(remainingSlice); // Update how many bytes we're still waiting for. If we're looking for
|
1751
1758
|
// a newline, this doesn't hurt since we'll just ignore it.
|
1752
1759
|
|
@@ -7,10 +7,10 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
11
|
-
function z(a){var c=y.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});y.set(a.specifier,b);return b}var A=
|
10
|
+
'use strict';var q=require("util"),r=require("react-dom"),t=require("react"),u={stream:!0};function x(a,c){var b=a[c.id];if(a=b[c.name])c=a.name;else{a=b["*"];if(!a)throw Error('Could not find the module "'+c.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=c.name}return{specifier:a.specifier,name:c}}var y=new Map;
|
11
|
+
function z(a){var c=y.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});y.set(a.specifier,b);return b}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,B=Symbol.for("react.element"),C=Symbol.for("react.lazy"),D=Symbol.for("react.default_value"),E=Symbol.iterator;
|
12
12
|
function F(a){if(null===a||"object"!==typeof a)return null;a=E&&a[E]||a["@@iterator"];return"function"===typeof a?a:null}var G=Array.isArray,H=new WeakMap;function I(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
13
|
-
function J(a,c,b,d){function e(h,g){if(null===g)return null;if("object"===typeof g){if("function"===typeof g.then){null===f&&(f=new FormData);l++;var v=k++;g.then(function(
|
13
|
+
function J(a,c,b,d){function e(h,g){if(null===g)return null;if("object"===typeof g){if("function"===typeof g.then){null===f&&(f=new FormData);l++;var v=k++;g.then(function(p){p=JSON.stringify(p,e);var w=f;w.append(c+v,p);l--;0===l&&b(w)},function(p){d(p)});return"$@"+v.toString(16)}if(g instanceof FormData){null===f&&(f=new FormData);var m=f;h=k++;var n=c+h+"_";g.forEach(function(p,w){m.append(n+w,p)});return"$K"+h.toString(16)}return!G(g)&&F(g)?Array.from(g):g}if("string"===typeof g){if("Z"===g[g.length-
|
14
14
|
1]&&this[h]instanceof Date)return"$D"+g;g="$"===g[0]?"$"+g:g;return g}if("boolean"===typeof g)return g;if("number"===typeof g)return I(g);if("undefined"===typeof g)return"$undefined";if("function"===typeof g){g=H.get(g);if(void 0!==g)return g=JSON.stringify(g,e),null===f&&(f=new FormData),h=k++,f.set(c+h,g),"$F"+h.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 g){h=g.description;
|
15
15
|
if(Symbol.for(h)!==g)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(g.description+") cannot be found among global symbols."));return"$S"+h}if("bigint"===typeof g)return"$n"+g.toString(10);throw Error("Type "+typeof g+" is not supported as an argument to a Server Function.");}var k=1,l=0,f=null;a=JSON.stringify(a,e);null===f?b(a):(f.set(c+"0",a),0===l&&b(f))}var K=new WeakMap;
|
16
16
|
function L(a){var c,b,d=new Promise(function(e,k){c=e;b=k});J(a,"",function(e){if("string"===typeof e){var k=new FormData;k.append("0",e);e=k}d.status="fulfilled";d.value=e;c(e)},function(e){d.status="rejected";d.reason=e;b(e)});return d}
|
@@ -24,10 +24,10 @@ function X(a,c){a._chunks.forEach(function(b){"pending"===b.status&&T(b,c)})}fun
|
|
24
24
|
function da(a,c){function b(){var e=Array.prototype.slice.call(arguments),k=c.bound;return k?"fulfilled"===k.status?d(c.id,k.value.concat(e)):Promise.resolve(k).then(function(l){return d(c.id,l.concat(e))}):d(c.id,e)}var d=a._callServer;b.$$FORM_ACTION=M;H.set(b,c);return b}
|
25
25
|
function ea(a,c,b,d){if("$"===d[0]){if("$"===d)return B;switch(d[1]){case "$":return d.slice(1);case "L":return c=parseInt(d.slice(2),16),a=Y(a,c),{$$typeof:C,_payload:a,_init:aa};case "@":return c=parseInt(d.slice(2),16),Y(a,c);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),N[a]||(N[a]=t.createServerContext(a,D)),N[a].Provider;case "F":c=parseInt(d.slice(2),16);c=Y(a,c);switch(c.status){case "resolved_model":P(c)}switch(c.status){case "fulfilled":return da(a,c.value);default:throw c.reason;
|
26
26
|
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Y(a,d);switch(a.status){case "resolved_model":P(a);break;case "resolved_module":Q(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=V,a.then(ba(d,c,b),ca(d)),null;default:throw a.reason;}}}return d}
|
27
|
-
function fa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ha(a,c){var b=new Map;a={_bundlerConfig:a,_callServer:void 0!==c?c:fa,_chunks:b,_stringDecoder:new
|
27
|
+
function fa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ha(a,c){var b=new Map;a={_bundlerConfig:a,_callServer:void 0!==c?c:fa,_chunks:b,_stringDecoder:new q.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ia(a);return a}
|
28
28
|
function ja(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var k=x(a._bundlerConfig,b);if(b=z(k)){if(e){var l=e;l.status="blocked"}else l=new O("blocked",null,null,a),d.set(c,l);b.then(function(){return U(l,k)},function(f){return T(l,f)})}else e?U(e,k):d.set(c,new O("resolved_module",k,null,a))}
|
29
29
|
function ia(a){return function(c,b){return"string"===typeof b?ea(a,this,c,b):"object"===typeof b&&null!==b?(c=b[0]===B?{$$typeof:B,type:b[1],key:b[2],ref:null,props:b[3],_owner:null}:b,c):b}}function Z(){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.");}
|
30
|
-
exports.createFromNodeStream=function(a,c){var b=ha(c,Z);a.on("data",function(d){for(var e=0,k=b._rowState,l=b._rowID,f=b._rowTag,h=b._rowLength,g=b._buffer,v=d.length;e<v;){var m=-1;switch(k){case 0:m=d[e++];58===m?k=1:l=l<<4|(96<m?m-87:m-48);continue;case 1:
|
31
|
-
|
32
|
-
f.stack="Error: "+f.message;f.digest=h;h=b._chunks;(e=h.get(l))?T(e,f):h.set(l,new O("rejected",null,f,b));break;case 84:b._chunks.set(l,new O("fulfilled",f,null,b));break;default:h=b._chunks,(e=h.get(l))?(l=e,"pending"===l.status&&(h=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==h&&(P(l),S(l,h,e)))):h.set(l,new O("resolved_model",f,null,b))}h=l=f=k=0;g.length=0
|
30
|
+
exports.createFromNodeStream=function(a,c){var b=ha(c,Z);a.on("data",function(d){for(var e=0,k=b._rowState,l=b._rowID,f=b._rowTag,h=b._rowLength,g=b._buffer,v=d.length;e<v;){var m=-1;switch(k){case 0:m=d[e++];58===m?k=1:l=l<<4|(96<m?m-87:m-48);continue;case 1:k=d[e];84===k?(f=k,k=2,e++):64<k&&91>k?(f=k,k=3,e++):(f=0,k=3);continue;case 2:m=d[e++];44===m?k=4:h=h<<4|(96<m?m-87:m-48);continue;case 3:m=d.indexOf(10,e);break;case 4:m=e+h,m>d.length&&(m=-1)}var n=d.byteOffset+e;if(-1<m){h=new Uint8Array(d.buffer,
|
31
|
+
n,m-e);e=f;f="";n=b._stringDecoder;for(var p=0;p<g.length;p++)f+=n.decode(g[p],u);f="string"===typeof h?f+h:f+n.decode(h);switch(e){case 73:ja(b,l,f);break;case 72:l=f[0];f=f.slice(1);f=JSON.parse(f,b._fromJSON);h=void 0;if(n=A.current)switch("string"===typeof f?e=f:(e=f[0],h=f[1]),l){case "D":n.prefetchDNS(e,h);break;case "C":n.preconnect(e,h);break;case "L":n.preload(e,h);break;case "I":n.preinit(e,h)}break;case 69:f=JSON.parse(f);h=f.digest;f=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.");
|
32
|
+
f.stack="Error: "+f.message;f.digest=h;h=b._chunks;(e=h.get(l))?T(e,f):h.set(l,new O("rejected",null,f,b));break;case 84:b._chunks.set(l,new O("fulfilled",f,null,b));break;default:h=b._chunks,(e=h.get(l))?(l=e,"pending"===l.status&&(h=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==h&&(P(l),S(l,h,e)))):h.set(l,new O("resolved_model",f,null,b))}e=m;3===k&&e++;h=l=f=k=0;g.length=0}else{d=new Uint8Array(d.buffer,n,d.byteLength-e);g.push(d);h-=d.byteLength;break}}b._rowState=k;b._rowID=
|
33
33
|
l;b._rowTag=f;b._rowLength=h});a.on("error",function(d){X(b,d)});a.on("end",function(){X(b,Error("Connection closed."))});return Y(b,0)};exports.createServerReference=function(){return Z};
|
@@ -3186,7 +3186,8 @@ function decodeReplyFromBusboy(busboyStream, webpackMap) {
|
|
3186
3186
|
close(response);
|
3187
3187
|
});
|
3188
3188
|
busboyStream.on('error', function (err) {
|
3189
|
-
reportGlobalError(response,
|
3189
|
+
reportGlobalError(response, // $FlowFixMe[incompatible-call] types Error and mixed are incompatible
|
3190
|
+
err);
|
3190
3191
|
});
|
3191
3192
|
return getRoot(response);
|
3192
3193
|
}
|
@@ -3118,7 +3118,8 @@ function decodeReplyFromBusboy(busboyStream, webpackMap) {
|
|
3118
3118
|
close(response);
|
3119
3119
|
});
|
3120
3120
|
busboyStream.on('error', function (err) {
|
3121
|
-
reportGlobalError(response,
|
3121
|
+
reportGlobalError(response, // $FlowFixMe[incompatible-call] types Error and mixed are incompatible
|
3122
|
+
err);
|
3122
3123
|
});
|
3123
3124
|
return getRoot(response);
|
3124
3125
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-server-dom-webpack",
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
4
|
-
"version": "18.3.0-canary-
|
4
|
+
"version": "18.3.0-canary-613e6f5fc-20230616",
|
5
5
|
"keywords": [
|
6
6
|
"react"
|
7
7
|
],
|
@@ -78,8 +78,8 @@
|
|
78
78
|
"node": ">=0.10.0"
|
79
79
|
},
|
80
80
|
"peerDependencies": {
|
81
|
-
"react": "18.3.0-canary-
|
82
|
-
"react-dom": "18.3.0-canary-
|
81
|
+
"react": "18.3.0-canary-613e6f5fc-20230616",
|
82
|
+
"react-dom": "18.3.0-canary-613e6f5fc-20230616",
|
83
83
|
"webpack": "^5.59.0"
|
84
84
|
},
|
85
85
|
"dependencies": {
|
@@ -1780,35 +1780,42 @@
|
|
1780
1780
|
case ROW_CHUNK_BY_LENGTH:
|
1781
1781
|
{
|
1782
1782
|
// We're looking for the remaining byte length
|
1783
|
-
|
1784
|
-
|
1783
|
+
lastIdx = i + rowLength;
|
1784
|
+
|
1785
|
+
if (lastIdx > chunk.length) {
|
1786
|
+
lastIdx = -1;
|
1785
1787
|
}
|
1786
1788
|
|
1787
1789
|
break;
|
1788
1790
|
}
|
1789
1791
|
}
|
1790
1792
|
|
1793
|
+
var offset = chunk.byteOffset + i;
|
1794
|
+
|
1791
1795
|
if (lastIdx > -1) {
|
1792
1796
|
// We found the last chunk of the row
|
1793
|
-
var offset = chunk.byteOffset + i;
|
1794
1797
|
var length = lastIdx - i;
|
1795
1798
|
var lastChunk = new Uint8Array(chunk.buffer, offset, length);
|
1796
1799
|
processFullRow(response, rowID, rowTag, buffer, lastChunk); // Reset state machine for a new row
|
1797
1800
|
|
1801
|
+
i = lastIdx;
|
1802
|
+
|
1803
|
+
if (rowState === ROW_CHUNK_BY_NEWLINE) {
|
1804
|
+
// If we're trailing by a newline we need to skip it.
|
1805
|
+
i++;
|
1806
|
+
}
|
1807
|
+
|
1798
1808
|
rowState = ROW_ID;
|
1799
1809
|
rowTag = 0;
|
1800
1810
|
rowID = 0;
|
1801
1811
|
rowLength = 0;
|
1802
1812
|
buffer.length = 0;
|
1803
|
-
i = lastIdx + 1;
|
1804
1813
|
} else {
|
1805
1814
|
// The rest of this row is in a future chunk. We stash the rest of the
|
1806
1815
|
// current chunk until we can process the full row.
|
1807
|
-
var _offset = chunk.byteOffset + i;
|
1808
|
-
|
1809
1816
|
var _length = chunk.byteLength - i;
|
1810
1817
|
|
1811
|
-
var remainingSlice = new Uint8Array(chunk.buffer,
|
1818
|
+
var remainingSlice = new Uint8Array(chunk.buffer, offset, _length);
|
1812
1819
|
buffer.push(remainingSlice); // Update how many bytes we're still waiting for. If we're looking for
|
1813
1820
|
// a newline, this doesn't hurt since we'll just ignore it.
|
1814
1821
|
|
@@ -7,25 +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
|
-
(function(){'use strict';(function(
|
11
|
-
c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}function
|
12
|
-
"rejected";e.reason=
|
13
|
-
JSON.stringify(
|
14
|
-
if("function"===typeof f){f=z.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===e&&(e=new FormData),
|
15
|
-
return"$S"+
|
16
|
-
if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=O.get(b);c||(c=
|
17
|
-
this.value=b;this.reason=c;this._response=d}function
|
18
|
-
"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&B(c,b)}}function Q(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),P(a,c,d))}}function x(a){var b=D,c=
|
19
|
-
a.value;if(b.async){var c=E.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var g="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=g}catch(k){a.status="rejected",a.reason=k}}function G(a,b){a._chunks.forEach(function(c){"pending"===c.status&&C(c,b)})}function v(a,b){var c=a._chunks,d=c.get(b);d||(d=new
|
20
|
-
value:null};return function(g){b[c]=g;d.deps--;0===d.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=d.value,null!==g&&B(g,d.value))}}function
|
21
|
-
d[0]){if("$"===d)return H;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=v(a,b),{$$typeof:
|
22
|
-
case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=v(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=D,a.then(
|
23
|
-
}function R(a,b){var c=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:
|
24
|
-
k,null,a))}function
|
25
|
-
64<
|
26
|
-
f){case "D":
|
27
|
-
C(
|
28
|
-
function d(k){G(a,k)}var g=b.getReader();g.read().then(c).catch(d)}var
|
29
|
-
break;case "resolved_module":A(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)}};var D=null,
|
30
|
-
b.callServer:void 0);S(b,a);return v(b,0)};
|
10
|
+
(function(){'use strict';(function(r,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],w):(r="undefined"!==typeof globalThis?globalThis:r||self,w(r.ReactServerDOMClient={},r.ReactDOM,r.React))})(this,function(r,w,K){function U(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');
|
11
|
+
c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}function V(){}function W(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],k=y.get(g);if(void 0===k){k=__webpack_chunk_load__(g);c.push(k);var n=y.set.bind(y,g,null);k.then(n,V);y.set(g,k)}else null!==k&&c.push(k)}if(a.async){if(b=E.get(a.id))return"fulfilled"===b.status?null:b;var e=Promise.all(c).then(function(){return __webpack_require__(a.id)});e.then(function(m){e.status="fulfilled";e.value=m},function(m){e.status=
|
12
|
+
"rejected";e.reason=m});E.set(a.id,e);return e}return 0<c.length?Promise.all(c):null}function X(a){if(null===a||"object"!==typeof a)return null;a=L&&a[L]||a["@@iterator"];return"function"===typeof a?a:null}function Y(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function M(a,b,c,d){function g(m,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===e&&(e=new FormData);n++;var h=k++;f.then(function(p){p=
|
13
|
+
JSON.stringify(p,g);var q=e;q.append(b+h,p);n--;0===n&&c(q)},function(p){d(p)});return"$@"+h.toString(16)}if(f instanceof FormData){null===e&&(e=new FormData);var l=e;m=k++;var F=b+m+"_";f.forEach(function(p,q){l.append(F+q,p)});return"$K"+m.toString(16)}return!Z(f)&&X(f)?Array.from(f):f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[m]instanceof Date)return"$D"+f;f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return Y(f);if("undefined"===typeof f)return"$undefined";
|
14
|
+
if("function"===typeof f){f=z.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===e&&(e=new FormData),m=k++,e.set(b+m,f),"$F"+m.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){m=f.description;if(Symbol.for(m)!==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."));
|
15
|
+
return"$S"+m}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var k=1,n=0,e=null;a=JSON.stringify(a,g);null===e?c(a):(e.set(b+"0",a),0===n&&c(e))}function aa(a){var b,c,d=new Promise(function(g,k){b=g;c=k});M(a,"",function(g){if("string"===typeof g){var k=new FormData;k.append("0",g);g=k}d.status="fulfilled";d.value=g;b(g)},function(g){d.status="rejected";d.reason=g;c(g)});return d}function N(a){var b=z.get(this);
|
16
|
+
if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=O.get(b);c||(c=aa(b),O.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(g,k){d.append("$ACTION_"+a+":"+k,g)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}function u(a,b,c,d){this.status=
|
17
|
+
a;this.value=b;this.reason=c;this._response=d}function ba(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function B(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function P(a,b,c){switch(a.status){case "fulfilled":B(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&B(c,a.reason)}}function C(a,b){if("pending"===a.status||
|
18
|
+
"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&B(c,b)}}function Q(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),P(a,c,d))}}function x(a){var b=D,c=t;D=a;t=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==t&&0<t.deps?(t.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(g){a.status="rejected",a.reason=g}finally{D=b,t=c}}function A(a){try{var b=
|
19
|
+
a.value;if(b.async){var c=E.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var g="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=g}catch(k){a.status="rejected",a.reason=k}}function G(a,b){a._chunks.forEach(function(c){"pending"===c.status&&C(c,b)})}function v(a,b){var c=a._chunks,d=c.get(b);d||(d=new u("pending",null,null,a),c.set(b,d));return d}function ca(a,b,c){if(t){var d=t;d.deps++}else d=t={deps:1,
|
20
|
+
value:null};return function(g){b[c]=g;d.deps--;0===d.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=d.value,null!==g&&B(g,d.value))}}function da(a){return function(b){return C(a,b)}}function ea(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?c(b.id,g.value.concat(d)):Promise.resolve(g).then(function(k){return c(b.id,k.concat(d))}):c(b.id,d)};a.$$FORM_ACTION=N;z.set(a,b);return a}function fa(a,b,c,d){if("$"===
|
21
|
+
d[0]){if("$"===d)return H;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=v(a,b),{$$typeof:ha,_payload:a,_init:ba};case "@":return b=parseInt(d.slice(2),16),v(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),I[a]||(I[a]=K.createServerContext(a,ia)),I[a].Provider;case "F":b=parseInt(d.slice(2),16);b=v(a,b);switch(b.status){case "resolved_model":x(b)}switch(b.status){case "fulfilled":return ea(a,b.value);default:throw b.reason;}case "I":return Infinity;
|
22
|
+
case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=v(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=D,a.then(ca(d,b,c),da(d)),null;default:throw a.reason;}}}return d}function ja(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
|
23
|
+
}function R(a,b){var c=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ja,_chunks:c,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ka(a);return a}function la(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var k=U(a._bundlerConfig,c);if(c=W(k)){if(g){var n=g;n.status="blocked"}else n=new u("blocked",null,null,a),d.set(b,n);c.then(function(){return Q(n,k)},function(e){return C(n,e)})}else g?Q(g,k):d.set(b,new u("resolved_module",
|
24
|
+
k,null,a))}function ka(a){return function(b,c){return"string"===typeof c?fa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===H?{$$typeof:H,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function S(a,b){function c(k){var n=k.value;if(k.done)G(a,Error("Connection closed."));else{var e=0,m=a._rowState,f=a._rowID,h=a._rowTag,l=a._rowLength;k=a._buffer;for(var F=n.length;e<F;){var p=-1;switch(m){case 0:p=n[e++];58===p?m=1:f=f<<4|(96<p?p-87:p-48);continue;case 1:m=n[e];84===m?(h=m,m=2,e++):
|
25
|
+
64<m&&91>m?(h=m,m=3,e++):(h=0,m=3);continue;case 2:p=n[e++];44===p?m=4:l=l<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,e);break;case 4:p=e+l,p>n.length&&(p=-1)}var q=n.byteOffset+e;if(-1<p){e=new Uint8Array(n.buffer,q,p-e);l=a;q=h;h="";for(var T=l._stringDecoder,J=0;J<k.length;J++)h+=T.decode(k[J],ma);h="string"===typeof e?h+e:h+T.decode(e);switch(q){case 73:la(l,f,h);break;case 72:f=h[0];h=h.slice(1);l=JSON.parse(h,l._fromJSON);h=void 0;if(q=na.current)switch("string"===typeof l?e=l:(e=l[0],
|
26
|
+
h=l[1]),f){case "D":q.prefetchDNS(e,h);break;case "C":q.preconnect(e,h);break;case "L":q.preload(e,h);break;case "I":q.preinit(e,h)}break;case 69:h=JSON.parse(h);e=h.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.");h.stack="Error: "+h.message;h.digest=e;e=l._chunks;(q=e.get(f))?
|
27
|
+
C(q,h):e.set(f,new u("rejected",null,h,l));break;case 84:l._chunks.set(f,new u("fulfilled",h,null,l));break;default:e=l._chunks,(q=e.get(f))?(l=q,f=h,"pending"===l.status&&(h=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==h&&(x(l),P(l,h,e)))):e.set(f,new u("resolved_model",h,null,l))}e=p;3===m&&e++;l=f=h=m=0;k.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-e);k.push(n);l-=n.byteLength;break}}a._rowState=m;a._rowID=f;a._rowTag=h;a._rowLength=l;return g.read().then(c).catch(d)}}
|
28
|
+
function d(k){G(a,k)}var g=b.getReader();g.read().then(c).catch(d)}var ma={stream:!0},y=new Map,E=new Map,na=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,H=Symbol.for("react.element"),ha=Symbol.for("react.lazy"),ia=Symbol.for("react.default_value"),L=Symbol.iterator,Z=Array.isArray,z=new WeakMap,O=new WeakMap,I=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;u.prototype=Object.create(Promise.prototype);u.prototype.then=function(a,b){switch(this.status){case "resolved_model":x(this);
|
29
|
+
break;case "resolved_module":A(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)}};var D=null,t=null;r.createFromFetch=function(a,b){var c=R(null,b&&b.callServer?b.callServer:void 0);a.then(function(d){S(c,d.body)},function(d){G(c,d)});return v(c,0)};r.createFromReadableStream=function(a,b){b=R(null,b&&b.callServer?
|
30
|
+
b.callServer:void 0);S(b,a);return v(b,0)};r.createServerReference=function(a,b){var c=function(){var d=Array.prototype.slice.call(arguments);return b(a,d)};c.$$FORM_ACTION=N;z.set(c,{id:a,bound:null});return c};r.encodeReply=function(a){return new Promise(function(b,c){M(a,"",b,c)})}});
|
31
31
|
})();
|