react-server-dom-webpack 18.3.0-next-85de6fde5-20230328 → 18.3.0-next-0ffc7f632-20230330

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.
Files changed (21) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +11 -1
  2. package/cjs/react-server-dom-webpack-client.browser.production.min.js +3 -3
  3. package/cjs/react-server-dom-webpack-client.edge.development.js +6 -0
  4. package/cjs/react-server-dom-webpack-client.edge.production.min.js +4 -3
  5. package/cjs/react-server-dom-webpack-client.node.development.js +6 -0
  6. package/cjs/react-server-dom-webpack-client.node.production.min.js +2 -2
  7. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +6 -0
  8. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2 -2
  9. package/cjs/react-server-dom-webpack-server.browser.development.js +11 -1
  10. package/cjs/react-server-dom-webpack-server.browser.production.min.js +9 -9
  11. package/cjs/react-server-dom-webpack-server.edge.development.js +11 -1
  12. package/cjs/react-server-dom-webpack-server.edge.production.min.js +12 -12
  13. package/cjs/react-server-dom-webpack-server.node.development.js +11 -1
  14. package/cjs/react-server-dom-webpack-server.node.production.min.js +13 -13
  15. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +11 -1
  16. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +13 -13
  17. package/package.json +3 -3
  18. package/umd/react-server-dom-webpack-client.browser.development.js +11 -1
  19. package/umd/react-server-dom-webpack-client.browser.production.min.js +10 -10
  20. package/umd/react-server-dom-webpack-server.browser.development.js +11 -1
  21. package/umd/react-server-dom-webpack-server.browser.production.min.js +17 -17
@@ -669,6 +669,12 @@ function parseModelString(response, parentObject, key, value) {
669
669
  return undefined;
670
670
  }
671
671
 
672
+ case 'n':
673
+ {
674
+ // BigInt
675
+ return BigInt(value.substring(2));
676
+ }
677
+
672
678
  default:
673
679
  {
674
680
  // We assume that anything else is a reference ID.
@@ -1285,6 +1291,10 @@ function serializeUndefined() {
1285
1291
  return '$undefined';
1286
1292
  }
1287
1293
 
1294
+ function serializeBigInt(n) {
1295
+ return '$n' + n.toString(10);
1296
+ }
1297
+
1288
1298
  function escapeStringValue(value) {
1289
1299
  if (value[0] === '$') {
1290
1300
  // We need to escape $ prefixed strings since we use those to encode
@@ -1433,7 +1443,7 @@ function processReply(root, resolve, reject) {
1433
1443
  }
1434
1444
 
1435
1445
  if (typeof value === 'bigint') {
1436
- throw new Error("BigInt (" + value + ") is not yet supported as an argument to a Server Function.");
1446
+ return serializeBigInt(value);
1437
1447
  }
1438
1448
 
1439
1449
  throw new Error("Type " + typeof value + " is not supported as an argument to a Server Function.");
@@ -18,13 +18,13 @@ function F(a){try{var b=a.value;if(b.async){var c=t.get(b.id);if("fulfilled"===c
18
18
  function Q(a,b,c){if(N){var d=N;d.deps++}else d=N={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&H(e,d.value))}}function R(a){return function(b){return J(a,b)}}
19
19
  function S(a,b){function c(){var e=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?d(b.id,g.value.concat(e)):Promise.resolve(g).then(function(h){return d(b.id,h.concat(e))}):d(b.id,e)}var d=a._callServer;w.set(c,b);return c}
20
20
  function T(a,b,c,d){if("$"===d[0]){if("$"===d)return x;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=P(a,b),{$$typeof:y,_payload:a,_init:G};case "@":return b=parseInt(d.substring(2),16),P(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),C[a]||(C[a]=l.createServerContext(a,z)),C[a].Provider;case "F":b=parseInt(d.substring(2),16);b=P(a,b);switch(b.status){case "resolved_model":E(b)}switch(b.status){case "fulfilled":return S(a,
21
- b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=P(a,d);switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=M,a.then(Q(d,b,c),R(d)),null;default:throw a.reason;}}}return d}function U(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
22
- function V(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=n(a._bundlerConfig,c);if(c=v(g)){if(e){var h=e;h.status="blocked"}else h=new D("blocked",null,null,a),d.set(b,h);c.then(function(){return L(h,g)},function(k){return J(h,k)})}else e?L(e,g):d.set(b,new D("resolved_module",g,null,a))}function W(a){O(a,Error("Connection closed."))}
21
+ b.value);default:throw b.reason;}case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=P(a,d);switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=M,a.then(Q(d,b,c),R(d)),null;default:throw a.reason;}}}return d}
22
+ function U(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function V(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=n(a._bundlerConfig,c);if(c=v(g)){if(e){var h=e;h.status="blocked"}else h=new D("blocked",null,null,a),d.set(b,h);c.then(function(){return L(h,g)},function(k){return J(h,k)})}else e?L(e,g):d.set(b,new D("resolved_module",g,null,a))}function W(a){O(a,Error("Connection closed."))}
23
23
  function X(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":V(a,d,b.substring(c+2));break;case "E":c=JSON.parse(b.substring(c+2)).digest;b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;
24
24
  var e=c.get(d);e?J(e,b):c.set(d,new D("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=c.value,d=c.reason,c.status="resolved_model",c.value=b,null!==a&&(E(c),I(c,a,d))):e.set(d,new D("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?T(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===x?{$$typeof:x,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}var ba=Array.isArray;
25
25
  function ca(a,b,c){function d(k,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);g++;var p=e++;f.then(function(r){r=JSON.stringify(r,d);var K=h;K.append(""+p,r);g--;0===g&&b(K)},function(r){c(r)});return"$@"+p.toString(16)}return!ba(f)&&B(f)?Array.from(f):f}if("string"===typeof f)return f="$"===f[0]?"$"+f:f,f;if("boolean"===typeof f||"number"===typeof f)return f;if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=w.get(f);
26
26
  if(void 0!==f)return f=JSON.stringify(f,d),null===h&&(h=new FormData),k=e++,h.set(""+k,f),"$F"+k.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){k=f.description;if(Symbol.for(k)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+
27
- k}if("bigint"===typeof f)throw Error("BigInt ("+f+") is not yet supported as an argument to a Server Function.");throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var e=1,g=0,h=null;a=JSON.stringify(a,d);null===h?b(a):(h.set("0",a),0===g&&b(h))}function Y(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:U,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}
27
+ k}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 e=1,g=0,h=null;a=JSON.stringify(a,d);null===h?b(a):(h.set("0",a),0===g&&b(h))}function Y(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:U,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}
28
28
  function Z(a,b){function c(g){var h=g.value;if(g.done)W(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var p=g.subarray(0,k);p=h.decode(p);X(a,f+p);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,m);return e.read().then(c).catch(d)}}function d(g){O(a,g)}var e=b.getReader();e.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(b);a.then(function(d){Z(c,d.body)},function(d){O(c,d)});return P(c,0)};
29
29
  exports.createFromReadableStream=function(a,b){b=Y(b);Z(b,a);return P(b,0)};
30
30
  exports.createFromXHR=function(a,b){function c(){for(var h=a.responseText,k=g,f=h.indexOf("\n",k);-1<f;)k=e._partialRow+h.substring(k,f),X(e,k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(){O(e,new TypeError("Network error"))}var e=Y(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(){c();W(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return P(e,0)};
@@ -649,6 +649,12 @@ function parseModelString(response, parentObject, key, value) {
649
649
  return undefined;
650
650
  }
651
651
 
652
+ case 'n':
653
+ {
654
+ // BigInt
655
+ return BigInt(value.substring(2));
656
+ }
657
+
652
658
  default:
653
659
  {
654
660
  // We assume that anything else is a reference ID.
@@ -18,9 +18,10 @@ function F(a){try{var b=a.value;if(b.async){var c=u.get(b.id);if("fulfilled"===c
18
18
  function P(a,b,c){if(M){var d=M;d.deps++}else d=M={deps:1,value:null};return function(f){b[c]=f;d.deps--;0===d.deps&&"blocked"===a.status&&(f=a.value,a.status="fulfilled",a.value=d.value,null!==f&&H(f,d.value))}}function Q(a){return function(b){return J(a,b)}}
19
19
  function R(a,b){function c(){var f=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?d(b.id,e.value.concat(f)):Promise.resolve(e).then(function(l){return d(b.id,l.concat(f))}):d(b.id,f)}var d=a._callServer;x.set(c,b);return c}
20
20
  function S(a,b,c,d){if("$"===d[0]){if("$"===d)return y;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=O(a,b),{$$typeof:A,_payload:a,_init:G};case "@":return b=parseInt(d.substring(2),16),O(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),C[a]||(C[a]=p.createServerContext(a,B)),C[a].Provider;case "F":b=parseInt(d.substring(2),16);b=O(a,b);switch(b.status){case "resolved_model":E(b)}switch(b.status){case "fulfilled":return R(a,
21
- b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=O(a,d);switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=L,a.then(P(d,b,c),Q(d)),null;default:throw a.reason;}}}return d}function T(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
22
- function U(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var e=r(a._bundlerConfig,c);if(c=w(e)){if(f){var l=f;l.status="blocked"}else l=new D("blocked",null,null,a),d.set(b,l);c.then(function(){return K(l,e)},function(m){return J(l,m)})}else f?K(f,e):d.set(b,new D("resolved_module",e,null,a))}function V(a){return function(b,c){return"string"===typeof c?S(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===y?{$$typeof:y,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
23
- function W(a,b){var c=new TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:T,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=V(a);return a}function X(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
21
+ b.value);default:throw b.reason;}case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=O(a,d);switch(a.status){case "resolved_model":E(a);break;case "resolved_module":F(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=L,a.then(P(d,b,c),Q(d)),null;default:throw a.reason;}}}return d}
22
+ function T(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function U(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var e=r(a._bundlerConfig,c);if(c=w(e)){if(f){var l=f;l.status="blocked"}else l=new D("blocked",null,null,a),d.set(b,l);c.then(function(){return K(l,e)},function(m){return J(l,m)})}else f?K(f,e):d.set(b,new D("resolved_module",e,null,a))}
23
+ function V(a){return function(b,c){return"string"===typeof c?S(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===y?{$$typeof:y,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function W(a,b){var c=new TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:T,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=V(a);return a}
24
+ function X(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
24
25
  function Y(a,b){function c(e){var l=e.value;if(e.done)N(a,Error("Connection closed."));else{e=l;l=a._stringDecoder;for(var m=e.indexOf(10);-1<m;){var g=a._partialRow;var n=e.subarray(0,m);n=l.decode(n);var h=g+n;g=a;if(""!==h){var k=h.indexOf(":",0);n=parseInt(h.substring(0,k),16);switch(h[k+1]){case "I":U(g,n,h.substring(k+2));break;case "E":k=JSON.parse(h.substring(k+2)).digest;h=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
25
26
  h.stack="Error: "+h.message;h.digest=k;k=g._chunks;var z=k.get(n);z?J(z,h):k.set(n,new D("rejected",null,h,g));break;default:h=h.substring(k+1),k=g._chunks,(z=k.get(n))?(g=z,n=h,"pending"===g.status&&(h=g.value,k=g.reason,g.status="resolved_model",g.value=n,null!==h&&(E(g),I(g,h,k)))):k.set(n,new D("resolved_model",h,null,g))}}a._partialRow="";e=e.subarray(m+1);m=e.indexOf(10)}a._partialRow+=l.decode(e,q);return f.read().then(c).catch(d)}}function d(e){N(a,e)}var f=b.getReader();f.read().then(c).catch(d)}
26
27
  exports.createFromFetch=function(a,b){var c=W(b&&b.moduleMap?b.moduleMap:null,X);a.then(function(d){Y(c,d.body)},function(d){N(c,d)});return O(c,0)};exports.createFromReadableStream=function(a,b){b=W(b&&b.moduleMap?b.moduleMap:null,X);Y(b,a);return O(b,0)};
@@ -650,6 +650,12 @@ function parseModelString(response, parentObject, key, value) {
650
650
  return undefined;
651
651
  }
652
652
 
653
+ case 'n':
654
+ {
655
+ // BigInt
656
+ return BigInt(value.substring(2));
657
+ }
658
+
653
659
  default:
654
660
  {
655
661
  // We assume that anything else is a reference ID.
@@ -18,8 +18,8 @@ function C(a){try{var b=a.value;if(b.async){var c=q.get(b.id);if("fulfilled"===c
18
18
  function M(a,b,c){if(J){var d=J;d.deps++}else d=J={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&E(e,d.value))}}function N(a){return function(b){return G(a,b)}}
19
19
  function O(a,b){function c(){var e=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?d(b.id,f.value.concat(e)):Promise.resolve(f).then(function(h){return d(b.id,h.concat(e))}):d(b.id,e)}var d=a._callServer;u.set(c,b);return c}
20
20
  function P(a,b,c,d){if("$"===d[0]){if("$"===d)return v;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=L(a,b),{$$typeof:x,_payload:a,_init:D};case "@":return b=parseInt(d.substring(2),16),L(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),z[a]||(z[a]=l.createServerContext(a,y)),z[a].Provider;case "F":b=parseInt(d.substring(2),16);b=L(a,b);switch(b.status){case "resolved_model":B(b)}switch(b.status){case "fulfilled":return O(a,
21
- b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=L(a,d);switch(a.status){case "resolved_model":B(a);break;case "resolved_module":C(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=I,a.then(M(d,b,c),N(d)),null;default:throw a.reason;}}}return d}function Q(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
22
- function R(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=n(a._bundlerConfig,c);if(c=t(f)){if(e){var h=e;h.status="blocked"}else h=new A("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,f)},function(g){return G(h,g)})}else e?H(e,f):d.set(b,new A("resolved_module",f,null,a))}
21
+ b.value);default:throw b.reason;}case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=L(a,d);switch(a.status){case "resolved_model":B(a);break;case "resolved_module":C(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=I,a.then(M(d,b,c),N(d)),null;default:throw a.reason;}}}return d}
22
+ function Q(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function R(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=n(a._bundlerConfig,c);if(c=t(f)){if(e){var h=e;h.status="blocked"}else h=new A("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,f)},function(g){return G(h,g)})}else e?H(e,f):d.set(b,new A("resolved_module",f,null,a))}
23
23
  function S(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":R(a,d,b.substring(c+2));break;case "E":c=JSON.parse(b.substring(c+2)).digest;b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;
24
24
  var e=c.get(d);e?G(e,b):c.set(d,new A("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=c.value,d=c.reason,c.status="resolved_model",c.value=b,null!==a&&(B(c),F(c,a,d))):e.set(d,new A("resolved_model",b,null,a))}}}function T(a){return function(b,c){return"string"===typeof c?P(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===v?{$$typeof:v,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
25
25
  function U(a,b){var c=new k.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:Q,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=T(a);return a}function V(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
@@ -591,6 +591,12 @@ function parseModelString(response, parentObject, key, value) {
591
591
  return undefined;
592
592
  }
593
593
 
594
+ case 'n':
595
+ {
596
+ // BigInt
597
+ return BigInt(value.substring(2));
598
+ }
599
+
594
600
  default:
595
601
  {
596
602
  // We assume that anything else is a reference ID.
@@ -15,8 +15,8 @@ function x(a){var c=E,b=F;E=a;F=null;try{var d=JSON.parse(a.value,a._response._f
15
15
  function G(a,c){a._chunks.forEach(function(b){"pending"===b.status&&C(b,c)})}function H(a,c){var b=a._chunks,d=b.get(c);d||(d=new w("pending",null,null,a),b.set(c,d));return d}function I(a,c,b){if(F){var d=F;d.deps++}else d=F={deps:1,value:null};return function(e){c[b]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&A(e,d.value))}}function J(a){return function(c){return C(a,c)}}
16
16
  function K(a,c){function b(){var e=Array.prototype.slice.call(arguments),f=c.bound;return f?"fulfilled"===f.status?d(c.id,f.value.concat(e)):Promise.resolve(f).then(function(h){return d(c.id,h.concat(e))}):d(c.id,e)}var d=a._callServer;q.set(b,c);return b}
17
17
  function L(a,c,b,d){if("$"===d[0]){if("$"===d)return r;switch(d[1]){case "$":return d.substring(1);case "L":return c=parseInt(d.substring(2),16),a=H(a,c),{$$typeof:t,_payload:a,_init:z};case "@":return c=parseInt(d.substring(2),16),H(a,c);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),v[a]||(v[a]=k.createServerContext(a,u)),v[a].Provider;case "F":c=parseInt(d.substring(2),16);c=H(a,c);switch(c.status){case "resolved_model":x(c)}switch(c.status){case "fulfilled":return K(a,
18
- c.value);default:throw c.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=H(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":y(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=E,a.then(I(d,c,b),J(d)),null;default:throw a.reason;}}}return d}function M(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}
19
- function N(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var f=a._bundlerConfig[b.id][b.name];if(b=p(f)){if(e){var h=e;h.status="blocked"}else h=new w("blocked",null,null,a),d.set(c,h);b.then(function(){return D(h,f)},function(n){return C(h,n)})}else e?D(e,f):d.set(c,new w("resolved_module",f,null,a))}
18
+ c.value);default:throw c.reason;}case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=H(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":y(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=E,a.then(I(d,c,b),J(d)),null;default:throw a.reason;}}}return d}
19
+ function M(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function N(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var f=a._bundlerConfig[b.id][b.name];if(b=p(f)){if(e){var h=e;h.status="blocked"}else h=new w("blocked",null,null,a),d.set(c,h);b.then(function(){return D(h,f)},function(n){return C(h,n)})}else e?D(e,f):d.set(c,new w("resolved_module",f,null,a))}
20
20
  function O(a,c){if(""!==c){var b=c.indexOf(":",0),d=parseInt(c.substring(0,b),16);switch(c[b+1]){case "I":N(a,d,c.substring(b+2));break;case "E":b=JSON.parse(c.substring(b+2)).digest;c=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");c.stack="Error: "+c.message;c.digest=b;b=a._chunks;
21
21
  var e=b.get(d);e?C(e,c):b.set(d,new w("rejected",null,c,a));break;default:c=c.substring(b+1),e=a._chunks,(b=e.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=c,null!==a&&(x(b),B(b,a,d))):e.set(d,new w("resolved_model",c,null,a))}}}function P(a){return function(c,b){return"string"===typeof b?L(a,this,c,b):"object"===typeof b&&null!==b?(c=b[0]===r?{$$typeof:r,type:b[1],key:b[2],ref:null,props:b[3],_owner:null}:b,c):b}}
22
22
  function Q(a,c){var b=new g.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==c?c:M,_chunks:d,_partialRow:"",_stringDecoder:b};a._fromJSON=P(a);return a}function R(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
@@ -1747,6 +1747,10 @@ function serializeUndefined() {
1747
1747
  return '$undefined';
1748
1748
  }
1749
1749
 
1750
+ function serializeBigInt(n) {
1751
+ return '$n' + n.toString(10);
1752
+ }
1753
+
1750
1754
  function serializeClientReference(request, parent, key, clientReference) {
1751
1755
  var clientReferenceKey = getClientReferenceKey(clientReference);
1752
1756
  var writtenClientReferences = request.writtenClientReferences;
@@ -2050,7 +2054,7 @@ function resolveModelToJSON(request, parent, key, value) {
2050
2054
  }
2051
2055
 
2052
2056
  if (typeof value === 'bigint') {
2053
- throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
2057
+ return serializeBigInt(value);
2054
2058
  }
2055
2059
 
2056
2060
  throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -2825,6 +2829,12 @@ function parseModelString(response, parentObject, key, value) {
2825
2829
  return undefined;
2826
2830
  }
2827
2831
 
2832
+ case 'n':
2833
+ {
2834
+ // BigInt
2835
+ return BigInt(value.substring(2));
2836
+ }
2837
+
2828
2838
  default:
2829
2839
  {
2830
2840
  // We assume that anything else is a reference ID.
@@ -10,10 +10,10 @@
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 d=f.length-m;d<b.length&&(0===d?a.enqueue(f):(f.set(b.subarray(0,d),m),a.enqueue(f),b=b.subarray(d)),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
11
  function ca(a,b,d){a=r(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function t(a,b,d){a=r(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
12
12
  var u=Symbol.for("react.client.reference"),da=Symbol.for("react.server.reference"),w=Symbol.for("react.element"),ea=Symbol.for("react.fragment"),fa=Symbol.for("react.provider"),ha=Symbol.for("react.server_context"),ia=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),ka=Symbol.for("react.suspense_list"),la=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
- function y(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new y(a,2,!1,a.toLowerCase(),null,!1,!1)});
14
- "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 y(a,3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
13
+ function z(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new z(a,2,!1,a.toLowerCase(),null,!1,!1)});
14
+ "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)});["rowSpan","start"].forEach(function(a){new z(a,5,!1,a.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
15
15
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(A,B)});
16
- "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(A,B)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(A,B)});["tabIndex","crossOrigin"].forEach(function(a){new y(a,1,!1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new y(a,1,!1,a.toLowerCase(),null,!0,!0)});
16
+ "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(A,B)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(A,B)});["tabIndex","crossOrigin"].forEach(function(a){new z(a,1,!1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new z(a,1,!1,a.toLowerCase(),null,!0,!0)});
17
17
  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,
18
18
  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 sa=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(":");
19
19
  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="');
@@ -42,17 +42,17 @@ function Xa(a,b){a.pendingChunks++;var d=Va(a,null,D,a.abortableTasks);switch(b.
42
42
  R(a,a.destination)});return d.id}function Za(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function $a(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:Za}}
43
43
  function S(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===u)return[w,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:$a(e):e}if("string"===typeof b)return[w,b,d,e];if("symbol"===typeof b)return b===ea?e.children:[w,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===u)return[w,b,d,e];switch(b.$$typeof){case x:var h=
44
44
  b._init;b=h(b._payload);return S(a,b,d,c,e,g);case ia:return a=b.render,I=0,J=g,a(e,void 0);case la:return S(a,b.type,d,c,e,g);case fa:return ya(b._context,e.value),[w,b,d,{value:e.value,children:e.children,__pop:Wa}]}}throw Error("Unsupported Server Component type: "+Ma(b));}function Ya(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&ab(a)}function Va(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return Ya(a,e)},thenableState:null};c.add(e);return e}
45
- function bb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===w&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,ma=r(l),z=v.toString(16)+":I"+ma+"\n";var P=p.encode(z);a.completedImportChunks.push(P);g.set(e,v);return b[0]===w&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(na){return a.pendingChunks++,
45
+ function bb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===w&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,ma=r(l),y=v.toString(16)+":I"+ma+"\n";var P=p.encode(y);a.completedImportChunks.push(P);g.set(e,v);return b[0]===w&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(na){return a.pendingChunks++,
46
46
  b=a.nextChunkId++,d=O(a,na),Q(a,b,d),"$"+b.toString(16)}}
47
47
  function Ta(a,b,d,c){switch(c){case w:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===w||c.$$typeof===x);)try{switch(c.$$typeof){case w:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case x:var g=c._init;c=g(c._payload)}}catch(h){d=h===za?Ca():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Va(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Da(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);Q(a,c,d);return"$L"+
48
48
  c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===u)return bb(a,b,d,c);if("function"===typeof c.then)return"$@"+Xa(a,c).toString(16);if(c.$$typeof===fa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=t(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Wa){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
49
49
  c===oa?a.context._defaultValue:c;D=a.parent;return}return!sa(c)&&(null===c||"object"!==typeof c?a=null:(a=qa&&c[qa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c)return c;if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===u)return bb(a,b,d,c);if(c.$$typeof===da)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
50
50
  e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ca(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===
51
- typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=t(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+c+") is not yet supported in Client Component props."+
52
- N(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}function O(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 cb(a,b){null!==a.destination?(a.status=2,ba(a.destination,b)):(a.status=1,a.fatalError=b)}
51
+ typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=t(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+
52
+ " is not supported in Client Component props."+N(b,d));}function O(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 cb(a,b){null!==a.destination?(a.status=2,ba(a.destination,b)):(a.status=1,a.fatalError=b)}
53
53
  function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+r(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}
54
54
  function ab(a){var b=Pa.current,d=L;Pa.current=Ia;L=a.cache;H=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){xa(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=S(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=S(h,l.type,l.key,l.ref,l.props,null)}var ma=ca(h,g.id,k);h.completedJSONChunks.push(ma);h.abortableTasks.delete(g);
55
- g.status=1}catch(G){var z=G===za?Ca():G;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var P=g.ping;z.then(P,P);g.thenableState=Da()}else{h.abortableTasks.delete(g);g.status=4;var na=O(h,z);Q(h,g.id,na)}}}}null!==a.destination&&R(a,a.destination)}catch(G){O(a,G),cb(a,G)}finally{Pa.current=b,L=d,H=null}}
55
+ g.status=1}catch(G){var y=G===za?Ca():G;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var P=g.ping;y.then(P,P);g.thenableState=Da()}else{h.abortableTasks.delete(g);g.status=4;var na=O(h,y);Q(h,g.id,na)}}}}null!==a.destination&&R(a,a.destination)}catch(G){O(a,G),cb(a,G)}finally{Pa.current=b,L=d,H=null}}
56
56
  function R(a,b){f=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)a.pendingChunks--,n(b,e[c]);e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{f&&0<m&&(b.enqueue(new Uint8Array(f.buffer,0,m)),f=null,m=0)}0===a.pendingChunks&&b.close()}
57
57
  function db(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=t(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){O(a,g),cb(a,g)}}
58
58
  function Ua(a){if(a){var b=D;xa(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Oa[e]||(Oa[e]=aa.createServerContext(e,oa));ya(Oa[e],c)}a=D;xa(b);return a}return null}var T=new Map,eb=new Map;function fb(){}
@@ -62,8 +62,8 @@ U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)
62
62
  function ib(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function jb(a,b,d,c,e,g){var h=a._bundlerConfig[b];a=gb(h);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var l=hb(h);return l.bind.apply(l,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return hb(h)});else return hb(h);d.then(kb(c,e,g),lb(c));return null}var X=null,Y=null;
63
63
  function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function mb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&ib(d,b)})}function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=new U("pending",null,null,a),d.set(b,c));return c}
64
64
  function kb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function lb(a){return function(b){return ib(a,b)}}
65
- function nb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return jb(a,c.id,c.bound,X,b,d);case "u":return;default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=
66
- X,a.then(kb(c,b,d),lb(c)),null;default:throw a.reason;}}return c}function ob(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?nb(d,this,c,e):e}};return d}
65
+ function nb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return jb(a,c.id,c.bound,X,b,d);case "u":return;case "n":return BigInt(c.substring(2));default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
66
+ case "pending":case "blocked":return c=X,a.then(kb(c,b,d),lb(c)),null;default:throw a.reason;}}return c}function ob(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?nb(d,this,c,e):e}};return d}
67
67
  function pb(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else c.set(b,new U("resolved_model",d,null,a))}
68
68
  exports.decodeReply=function(a,b){var d=ob(b);"string"===typeof a?pb(d,0,a):a.forEach(function(c,e){if("string"===typeof c)pb(d,+e,c);else throw Error("Not implemented.");});mb(d,Error("Connection closed."));return Z(d,0)};
69
69
  exports.renderToReadableStream=function(a,b,d){var c=Sa(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)db(c,e.reason);else{var g=function(){db(c,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){ab(c)},pull:function(h){if(1===c.status)c.status=2,ba(h,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=h;try{R(c,h)}catch(k){O(c,k),
@@ -1755,6 +1755,10 @@ function serializeUndefined() {
1755
1755
  return '$undefined';
1756
1756
  }
1757
1757
 
1758
+ function serializeBigInt(n) {
1759
+ return '$n' + n.toString(10);
1760
+ }
1761
+
1758
1762
  function serializeClientReference(request, parent, key, clientReference) {
1759
1763
  var clientReferenceKey = getClientReferenceKey(clientReference);
1760
1764
  var writtenClientReferences = request.writtenClientReferences;
@@ -2058,7 +2062,7 @@ function resolveModelToJSON(request, parent, key, value) {
2058
2062
  }
2059
2063
 
2060
2064
  if (typeof value === 'bigint') {
2061
- throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
2065
+ return serializeBigInt(value);
2062
2066
  }
2063
2067
 
2064
2068
  throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -2837,6 +2841,12 @@ function parseModelString(response, parentObject, key, value) {
2837
2841
  return undefined;
2838
2842
  }
2839
2843
 
2844
+ case 'n':
2845
+ {
2846
+ // BigInt
2847
+ return BigInt(value.substring(2));
2848
+ }
2849
+
2840
2850
  default:
2841
2851
  {
2842
2852
  // We assume that anything else is a reference ID.
@@ -9,7 +9,7 @@
9
9
  */
10
10
  'use strict';var aa=require("react"),f="function"===typeof AsyncLocalStorage,ba=f?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var d=m.length-n;d<b.length&&(0===d?a.enqueue(m):(m.set(b.subarray(0,d),n),a.enqueue(m),b=b.subarray(d)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;function r(a){return q.encode(a)}
11
11
  function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify;function da(a,b,d){a=t(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return q.encode(b)}function u(a,b,d){a=t(d);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
12
- var w=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),x=Symbol.for("react.element"),fa=Symbol.for("react.fragment"),ha=Symbol.for("react.provider"),ia=Symbol.for("react.server_context"),ja=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),la=Symbol.for("react.suspense_list"),ma=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),na=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
12
+ var w=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),y=Symbol.for("react.element"),fa=Symbol.for("react.fragment"),ha=Symbol.for("react.provider"),ia=Symbol.for("react.server_context"),ja=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),la=Symbol.for("react.suspense_list"),ma=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),na=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
13
13
  function A(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new A(a,2,!1,a.toLowerCase(),null,!1,!1)});
14
14
  "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 A(a,3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new A(a,5,!1,a.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function C(a){return a[1].toUpperCase()}
15
15
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(B,C)});
@@ -34,26 +34,26 @@ function Ja(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("func
34
34
  var Na={getCacheSignal:function(){var a=Ma(),b=a.get(La);void 0===b&&(b=La(),a.set(La,b));return b},getCacheForType:function(a){var b=Ma(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},L=null;function Oa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
35
35
  function Pa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(ua(a))return"[...]";a=Oa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
36
36
  function M(a){if("string"===typeof a)return a;switch(a){case ka:return"Suspense";case la:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ja:return M(a.render);case ma:return M(a.type);case z:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
37
- function N(a,b){var d=Oa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(ua(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?N(h):Pa(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===x)e="<"+M(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?N(l):
37
+ function N(a,b){var d=Oa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(ua(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?N(h):Pa(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===y)e="<"+M(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?N(l):
38
38
  Pa(l);k===b?(d=e.length,c=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Qa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ra=Qa.ContextRegistry,Sa=Qa.ReactCurrentDispatcher,Ta=Qa.ReactCurrentCache;function Ua(a){console.error(a)}
39
39
  function Va(a,b,d,c,e){if(null!==Ta.current&&Ta.current!==Na)throw Error("Currently React only supports one RSC renderer at a time.");Ta.current=Na;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||
40
40
  "",identifierCount:1,onError:void 0===d?Ua:d,toJSON:function(l,v){return Wa(k,this,l,v)}};k.pendingChunks++;b=Xa(c);a=Ya(k,a,b,g);h.push(a);return k}var Za={};
41
41
  function $a(a,b){a.pendingChunks++;var d=Ya(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,ab(a,d),d.id;case "rejected":var c=O(a,b.reason);Q(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;ab(a,d)},function(e){d.status=4;e=O(a,e);Q(a,d.id,e);null!==a.destination&&
42
42
  R(a,a.destination)});return d.id}function bb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function cb(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:z,_payload:a,_init:bb}}
43
- function S(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===w)return[x,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[x,b,d,e];if("symbol"===typeof b)return b===fa?e.children:[x,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===w)return[x,b,d,e];switch(b.$$typeof){case z:var h=
44
- b._init;b=h(b._payload);return S(a,b,d,c,e,g);case ja:return a=b.render,I=0,J=g,a(e,void 0);case ma:return S(a,b.type,d,c,e,g);case ha:return Aa(b._context,e.value),[x,b,d,{value:e.value,children:e.children,__pop:Za}]}}throw Error("Unsupported Server Component type: "+Pa(b));}function ab(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setTimeout(function(){return db(a)},0)}
43
+ function S(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===w)return[y,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[y,b,d,e];if("symbol"===typeof b)return b===fa?e.children:[y,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===w)return[y,b,d,e];switch(b.$$typeof){case z:var h=
44
+ b._init;b=h(b._payload);return S(a,b,d,c,e,g);case ja:return a=b.render,I=0,J=g,a(e,void 0);case ma:return S(a,b.type,d,c,e,g);case ha:return Aa(b._context,e.value),[y,b,d,{value:e.value,children:e.children,__pop:Za}]}}throw Error("Unsupported Server Component type: "+Pa(b));}function ab(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setTimeout(function(){return db(a)},0)}
45
45
  function Ya(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return ab(a,e)},thenableState:null};c.add(e);return e}
46
- function eb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===x&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,oa=t(l),y=v.toString(16)+":I"+oa+"\n";var P=q.encode(y);a.completedImportChunks.push(P);g.set(e,v);return b[0]===x&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(pa){return a.pendingChunks++,
46
+ function eb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===y&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,oa=t(l),x=v.toString(16)+":I"+oa+"\n";var P=q.encode(x);a.completedImportChunks.push(P);g.set(e,v);return b[0]===y&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(pa){return a.pendingChunks++,
47
47
  b=a.nextChunkId++,d=O(a,pa),Q(a,b,d),"$"+b.toString(16)}}
48
- function Wa(a,b,d,c){switch(c){case x:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===x||c.$$typeof===z);)try{switch(c.$$typeof){case x:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case z:var g=c._init;c=g(c._payload)}}catch(h){d=h===Ba?Ea():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Ya(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);Q(a,c,d);return"$L"+
48
+ function Wa(a,b,d,c){switch(c){case y:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===y||c.$$typeof===z);)try{switch(c.$$typeof){case y:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case z:var g=c._init;c=g(c._payload)}}catch(h){d=h===Ba?Ea():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Ya(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);Q(a,c,d);return"$L"+
49
49
  c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===w)return eb(a,b,d,c);if("function"===typeof c.then)return"$@"+$a(a,c).toString(16);if(c.$$typeof===ha)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=u(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Za){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
50
50
  c===na?a.context._defaultValue:c;D=a.parent;return}return!ua(c)&&(null===c||"object"!==typeof c?a=null:(a=ra&&c[ra]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c)return c;if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===w)return eb(a,b,d,c);if(c.$$typeof===ea)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
51
51
  e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===
52
- typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=u(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+c+") is not yet supported in Client Component props."+
53
- N(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}function O(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 fb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
52
+ typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=u(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+
53
+ " is not supported in Client Component props."+N(b,d));}function O(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 fb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
54
54
  function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+t(d)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
55
- function db(a){var b=Sa.current,d=L;Sa.current=Ka;L=a.cache;H=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){za(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===x){var l=k,v=g.thenableState;g.model=k;k=S(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===x;)l=k,g.model=k,k=S(h,l.type,l.key,l.ref,l.props,null)}var oa=da(h,g.id,k);h.completedJSONChunks.push(oa);h.abortableTasks.delete(g);
56
- g.status=1}catch(G){var y=G===Ba?Ea():G;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var P=g.ping;y.then(P,P);g.thenableState=Fa()}else{h.abortableTasks.delete(g);g.status=4;var pa=O(h,y);Q(h,g.id,pa)}}}}null!==a.destination&&R(a,a.destination)}catch(G){O(a,G),fb(a,G)}finally{Sa.current=b,L=d,H=null}}
55
+ function db(a){var b=Sa.current,d=L;Sa.current=Ka;L=a.cache;H=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){za(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var l=k,v=g.thenableState;g.model=k;k=S(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)l=k,g.model=k,k=S(h,l.type,l.key,l.ref,l.props,null)}var oa=da(h,g.id,k);h.completedJSONChunks.push(oa);h.abortableTasks.delete(g);
56
+ g.status=1}catch(G){var x=G===Ba?Ea():G;if("object"===typeof x&&null!==x&&"function"===typeof x.then){var P=g.ping;x.then(P,P);g.thenableState=Fa()}else{h.abortableTasks.delete(g);g.status=4;var pa=O(h,x);Q(h,g.id,pa)}}}}null!==a.destination&&R(a,a.destination)}catch(G){O(a,G),fb(a,G)}finally{Sa.current=b,L=d,H=null}}
57
57
  function R(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,p(b,d[c]);d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)a.pendingChunks--,p(b,e[c]);e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,p(b,g[c]);g.splice(0,c)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&b.close()}
58
58
  function gb(a){f?setTimeout(function(){return ba.run(a.cache,db,a)},0):setTimeout(function(){return db(a)},0)}function hb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=u(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){O(a,g),fb(a,g)}}
59
59
  function Xa(a){if(a){var b=D;za(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ra[e]||(Ra[e]=aa.createServerContext(e,na));Aa(Ra[e],c)}a=D;za(b);return a}return null}var T=new Map,ib=new Map;function jb(){}
@@ -63,8 +63,8 @@ U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)
63
63
  function mb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function nb(a,b,d,c,e,g){var h=a._bundlerConfig[b];a=kb(h);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var l=lb(h);return l.bind.apply(l,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return lb(h)});else return lb(h);d.then(ob(c,e,g),pb(c));return null}var X=null,Y=null;
64
64
  function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function qb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&mb(d,b)})}function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=new U("pending",null,null,a),d.set(b,c));return c}
65
65
  function ob(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function pb(a){return function(b){return mb(a,b)}}
66
- function rb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return nb(a,c.id,c.bound,X,b,d);case "u":return;default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=
67
- X,a.then(ob(c,b,d),pb(c)),null;default:throw a.reason;}}return c}function sb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?rb(d,this,c,e):e}};return d}
66
+ function rb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return nb(a,c.id,c.bound,X,b,d);case "u":return;case "n":return BigInt(c.substring(2));default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
67
+ case "pending":case "blocked":return c=X,a.then(ob(c,b,d),pb(c)),null;default:throw a.reason;}}return c}function sb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?rb(d,this,c,e):e}};return d}
68
68
  function tb(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else c.set(b,new U("resolved_model",d,null,a))}
69
69
  exports.decodeReply=function(a,b){var d=sb(b);"string"===typeof a?tb(d,0,a):a.forEach(function(c,e){if("string"===typeof c)tb(d,+e,c);else throw Error("Not implemented.");});qb(d,Error("Connection closed."));return Z(d,0)};
70
70
  exports.renderToReadableStream=function(a,b,d){var c=Va(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)hb(c,e.reason);else{var g=function(){hb(c,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){gb(c)},pull:function(h){if(1===c.status)c.status=2,ca(h,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=h;try{R(c,h)}catch(k){O(c,k),
@@ -1821,6 +1821,10 @@ function serializeUndefined() {
1821
1821
  return '$undefined';
1822
1822
  }
1823
1823
 
1824
+ function serializeBigInt(n) {
1825
+ return '$n' + n.toString(10);
1826
+ }
1827
+
1824
1828
  function serializeClientReference(request, parent, key, clientReference) {
1825
1829
  var clientReferenceKey = getClientReferenceKey(clientReference);
1826
1830
  var writtenClientReferences = request.writtenClientReferences;
@@ -2124,7 +2128,7 @@ function resolveModelToJSON(request, parent, key, value) {
2124
2128
  }
2125
2129
 
2126
2130
  if (typeof value === 'bigint') {
2127
- throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
2131
+ return serializeBigInt(value);
2128
2132
  }
2129
2133
 
2130
2134
  throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -2901,6 +2905,12 @@ function parseModelString(response, parentObject, key, value) {
2901
2905
  return undefined;
2902
2906
  }
2903
2907
 
2908
+ case 'n':
2909
+ {
2910
+ // BigInt
2911
+ return BigInt(value.substring(2));
2912
+ }
2913
+
2904
2914
  default:
2905
2915
  {
2906
2916
  // We assume that anything else is a reference ID.
@@ -10,7 +10,7 @@
10
10
  'use strict';var aa=require("util"),ba=require("async_hooks"),ca=require("react"),da=new ba.AsyncLocalStorage,f=null,m=0,n=!0;function p(a,b){a=a.write(b);n=n&&a}
11
11
  function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var d=f;0<m&&(d=f.subarray(m));d=r.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=r.encodeInto(b.slice(c),f).written);2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,b)):(d=f.length-m,d<b.byteLength&&
12
12
  (0===d?p(a,f):(f.set(b.subarray(0,d),m),m+=d,p(a,f),b=b.subarray(d)),f=new Uint8Array(2048),m=0),f.set(b,m),m+=b.byteLength,2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)));return n}var r=new aa.TextEncoder;function t(a){return r.encode(a)}var u=JSON.stringify;function ea(a,b,d){a=u(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function v(a,b,d){a=u(d);return b.toString(16)+":"+a+"\n"}
13
- var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),y=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"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
13
+ var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),z=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"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
14
14
  function B(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),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 B(a,3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}
16
16
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(C,sa)});
@@ -35,26 +35,26 @@ function Ka(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("func
35
35
  var Oa={getCacheSignal:function(){var a=Na(),b=a.get(Ma);void 0===b&&(b=Ma(),a.set(Ma,b));return b},getCacheForType:function(a){var b=Na(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},L=null;function Pa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
36
36
  function Qa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(va(a))return"[...]";a=Pa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
37
37
  function M(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 M(a.render);case na:return M(a.type);case A:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
38
- function N(a,b){var d=Pa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(va(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?N(h):Qa(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===y)e="<"+M(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?N(l):
38
+ function N(a,b){var d=Pa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(va(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?N(h):Qa(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===z)e="<"+M(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?N(l):
39
39
  Qa(l);k===b?(d=e.length,c=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Ra=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sa=Ra.ContextRegistry,Ta=Ra.ReactCurrentDispatcher,Ua=Ra.ReactCurrentCache;function Va(a){console.error(a)}
40
40
  function Wa(a,b,d,c,e){if(null!==Ua.current&&Ua.current!==Oa)throw Error("Currently React only supports one RSC renderer at a time.");Ua.current=Oa;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||
41
41
  "",identifierCount:1,onError:void 0===d?Va:d,toJSON:function(l,w){return Xa(k,this,l,w)}};k.pendingChunks++;b=Ya(c);a=Za(k,a,b,g);h.push(a);return k}var $a={};
42
42
  function ab(a,b){a.pendingChunks++;var d=Za(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,bb(a,d),d.id;case "rejected":var c=O(a,b.reason);P(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;bb(a,d)},function(e){d.status=4;e=O(a,e);P(a,d.id,e);null!==a.destination&&
43
43
  Q(a,a.destination)});return d.id}function cb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function db(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:A,_payload:a,_init:cb}}
44
- function R(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[y,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:db(e):e}if("string"===typeof b)return[y,b,d,e];if("symbol"===typeof b)return b===ha?e.children:[y,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[y,b,d,e];switch(b.$$typeof){case A:var h=
45
- b._init;b=h(b._payload);return R(a,b,d,c,e,g);case ka:return a=b.render,I=0,J=g,a(e,void 0);case na:return R(a,b.type,d,c,e,g);case ia:return Ba(b._context,e.value),[y,b,d,{value:e.value,children:e.children,__pop:$a}]}}throw Error("Unsupported Server Component type: "+Qa(b));}function bb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setImmediate(function(){return eb(a)})}
44
+ function R(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[z,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:db(e):e}if("string"===typeof b)return[z,b,d,e];if("symbol"===typeof b)return b===ha?e.children:[z,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[z,b,d,e];switch(b.$$typeof){case A:var h=
45
+ b._init;b=h(b._payload);return R(a,b,d,c,e,g);case ka:return a=b.render,I=0,J=g,a(e,void 0);case na:return R(a,b.type,d,c,e,g);case ia:return Ba(b._context,e.value),[z,b,d,{value:e.value,children:e.children,__pop:$a}]}}throw Error("Unsupported Server Component type: "+Qa(b));}function bb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setImmediate(function(){return eb(a)})}
46
46
  function Za(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return bb(a,e)},thenableState:null};c.add(e);return e}
47
- function fb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===y&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var w=a.nextChunkId++,oa=u(l);var z=w.toString(16)+":I"+oa+"\n";a.completedImportChunks.push(z);g.set(e,w);return b[0]===y&&"1"===d?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
47
+ function fb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===z&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var w=a.nextChunkId++,oa=u(l);var y=w.toString(16)+":I"+oa+"\n";a.completedImportChunks.push(y);g.set(e,w);return b[0]===z&&"1"===d?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
48
48
  a.nextChunkId++,d=O(a,S),P(a,b,d),"$"+b.toString(16)}}
49
- function Xa(a,b,d,c){switch(c){case y:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===y||c.$$typeof===A);)try{switch(c.$$typeof){case y:var e=c;c=R(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=c._init;c=g(c._payload)}}catch(h){d=h===Ca?Fa():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Za(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ga(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);P(a,c,d);return"$L"+
49
+ function Xa(a,b,d,c){switch(c){case z:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===A);)try{switch(c.$$typeof){case z:var e=c;c=R(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=c._init;c=g(c._payload)}}catch(h){d=h===Ca?Fa():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Za(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ga(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);P(a,c,d);return"$L"+
50
50
  c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===x)return fb(a,b,d,c);if("function"===typeof c.then)return"$@"+ab(a,c).toString(16);if(c.$$typeof===ia)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=v(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===$a){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
51
51
  c===pa?a.context._defaultValue:c;D=a.parent;return}return!va(c)&&(null===c||"object"!==typeof c?a=null:(a=ra&&c[ra]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c)return c;if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===x)return fb(a,b,d,c);if(c.$$typeof===fa)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
52
52
  e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===
53
- typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=v(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+c+") is not yet supported in Client Component props."+
54
- N(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}function O(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||""}
55
- function gb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function P(a,b,d){d={digest:d};b=b.toString(16)+":E"+u(d)+"\n";a.completedErrorChunks.push(b)}
56
- function eb(a){var b=Ta.current,d=L;Ta.current=La;L=a.cache;G=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){Aa(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var l=k,w=g.thenableState;g.model=k;k=R(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)l=k,g.model=k,k=R(h,l.type,l.key,l.ref,l.props,null)}var oa=ea(h,g.id,k);h.completedJSONChunks.push(oa);h.abortableTasks.delete(g);
57
- g.status=1}catch(H){var z=H===Ca?Fa():H;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var S=g.ping;z.then(S,S);g.thenableState=Ga()}else{h.abortableTasks.delete(g);g.status=4;var rb=O(h,z);P(h,g.id,rb)}}}}null!==a.destination&&Q(a,a.destination)}catch(H){O(a,H),gb(a,H)}finally{Ta.current=b,L=d,G=null}}
53
+ typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=v(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+
54
+ " is not supported in Client Component props."+N(b,d));}function O(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 gb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
55
+ function P(a,b,d){d={digest:d};b=b.toString(16)+":E"+u(d)+"\n";a.completedErrorChunks.push(b)}
56
+ function eb(a){var b=Ta.current,d=L;Ta.current=La;L=a.cache;G=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){Aa(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===z){var l=k,w=g.thenableState;g.model=k;k=R(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===z;)l=k,g.model=k,k=R(h,l.type,l.key,l.ref,l.props,null)}var oa=ea(h,g.id,k);h.completedJSONChunks.push(oa);h.abortableTasks.delete(g);
57
+ g.status=1}catch(H){var y=H===Ca?Fa():H;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var S=g.ping;y.then(S,S);g.thenableState=Ga()}else{h.abortableTasks.delete(g);g.status=4;var rb=O(h,y);P(h,g.id,rb)}}}}null!==a.destination&&Q(a,a.destination)}catch(H){O(a,H),gb(a,H)}finally{Ta.current=b,L=d,G=null}}
58
58
  function Q(a,b){f=new Uint8Array(2048);m=0;n=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!q(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)if(a.pendingChunks--,!q(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!q(b,g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{f&&0<m&&b.write(f.subarray(0,m)),f=null,m=0,n=!0}"function"===
59
59
  typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function hb(a){setImmediate(function(){return da.run(a.cache,eb,a)})}function ib(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{Q(a,b)}catch(d){O(a,d),gb(a,d)}}}
60
60
  function jb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;P(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=v(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&Q(a,a.destination)}catch(g){O(a,g),gb(a,g)}}
@@ -65,8 +65,8 @@ U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)
65
65
  function ob(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function pb(a,b,d,c,e,g){var h=a._bundlerConfig[b];a=mb(h);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var l=nb(h);return l.bind.apply(l,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return nb(h)});else return nb(h);d.then(qb(c,e,g),sb(c));return null}var X=null,Y=null;
66
66
  function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function tb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&ob(d,b)})}function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=new U("pending",null,null,a),d.set(b,c));return c}
67
67
  function qb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function sb(a){return function(b){return ob(a,b)}}
68
- function ub(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return pb(a,c.id,c.bound,X,b,d);case "u":return;default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=
69
- X,a.then(qb(c,b,d),sb(c)),null;default:throw a.reason;}}return c}function vb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?ub(d,this,c,e):e}};return d}
68
+ function ub(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return pb(a,c.id,c.bound,X,b,d);case "u":return;case "n":return BigInt(c.substring(2));default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
69
+ case "pending":case "blocked":return c=X,a.then(qb(c,b,d),sb(c)),null;default:throw a.reason;}}return c}function vb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?ub(d,this,c,e):e}};return d}
70
70
  function wb(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else c.set(b,new U("resolved_model",d,null,a))}function xb(a){tb(a,Error("Connection closed."))}function yb(a,b){return function(){return ib(b,a)}}
71
71
  exports.decodeReply=function(a,b){var d=vb(b);"string"===typeof a?wb(d,0,a):a.forEach(function(c,e){if("string"===typeof c)wb(d,+e,c);else throw Error("Not implemented.");});xb(d);return Z(d,0)};
72
72
  exports.decodeReplyFromBusboy=function(a,b){var d=vb(b);a.on("field",function(c,e){wb(d,+c,e)});a.on("file",function(c,e,g){if("base64"===g.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");throw Error("Not implemented.");});a.on("finish",function(){xb(d)});a.on("error",function(c){tb(d,c)});return Z(d,0)};
@@ -1821,6 +1821,10 @@ function serializeUndefined() {
1821
1821
  return '$undefined';
1822
1822
  }
1823
1823
 
1824
+ function serializeBigInt(n) {
1825
+ return '$n' + n.toString(10);
1826
+ }
1827
+
1824
1828
  function serializeClientReference(request, parent, key, clientReference) {
1825
1829
  var clientReferenceKey = getClientReferenceKey(clientReference);
1826
1830
  var writtenClientReferences = request.writtenClientReferences;
@@ -2124,7 +2128,7 @@ function resolveModelToJSON(request, parent, key, value) {
2124
2128
  }
2125
2129
 
2126
2130
  if (typeof value === 'bigint') {
2127
- throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
2131
+ return serializeBigInt(value);
2128
2132
  }
2129
2133
 
2130
2134
  throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -2861,6 +2865,12 @@ function parseModelString(response, parentObject, key, value) {
2861
2865
  return undefined;
2862
2866
  }
2863
2867
 
2868
+ case 'n':
2869
+ {
2870
+ // BigInt
2871
+ return BigInt(value.substring(2));
2872
+ }
2873
+
2864
2874
  default:
2865
2875
  {
2866
2876
  // We assume that anything else is a reference ID.
@@ -10,7 +10,7 @@
10
10
  'use strict';var aa=require("util"),ba=require("async_hooks"),ca=require("react"),da=new ba.AsyncLocalStorage,f=null,m=0,n=!0;function p(a,b){a=a.write(b);n=n&&a}
11
11
  function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var c=f;0<m&&(c=f.subarray(m));c=r.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=r.encodeInto(b.slice(d),f).written);2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,b)):(c=f.length-m,c<b.byteLength&&
12
12
  (0===c?p(a,f):(f.set(b.subarray(0,c),m),m+=c,p(a,f),b=b.subarray(c)),f=new Uint8Array(2048),m=0),f.set(b,m),m+=b.byteLength,2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)));return n}var r=new aa.TextEncoder;function t(a){return r.encode(a)}var u=JSON.stringify;function ea(a,b,c){a=u(c,a.toJSON);return b.toString(16)+":"+a+"\n"}function v(a,b,c){a=u(c);return b.toString(16)+":"+a+"\n"}
13
- var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),y=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"),oa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
13
+ var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),z=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"),oa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
14
14
  function B(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}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),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 B(a,3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(a){return a[1].toUpperCase()}
16
16
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(C,D)});
@@ -35,26 +35,26 @@ function Ja(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("func
35
35
  var Na={getCacheSignal:function(){var a=Ma(),b=a.get(La);void 0===b&&(b=La(),a.set(La,b));return b},getCacheForType:function(a){var b=Ma(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},M=null;function Oa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
36
36
  function Pa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(ua(a))return"[...]";a=Oa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
37
37
  function N(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 N(a.render);case oa:return N(a.type);case A:var b=a._payload;a=a._init;try{return N(a(b))}catch(c){}}return""}
38
- function O(a,b){var c=Oa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(ua(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?O(h):Pa(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===y)e="<"+N(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?O(l):
38
+ function O(a,b){var c=Oa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(ua(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?O(h):Pa(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===z)e="<"+N(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?O(l):
39
39
  Pa(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}var Qa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ra=Qa.ContextRegistry,Sa=Qa.ReactCurrentDispatcher,Ta=Qa.ReactCurrentCache;function Ua(a){console.error(a)}
40
40
  function Va(a,b,c,d,e){if(null!==Ta.current&&Ta.current!==Na)throw Error("Currently React only supports one RSC renderer at a time.");Ta.current=Na;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||
41
41
  "",identifierCount:1,onError:void 0===c?Ua:c,toJSON:function(l,w){return Wa(k,this,l,w)}};k.pendingChunks++;b=Xa(d);a=Ya(k,a,b,g);h.push(a);return k}var Za={};
42
42
  function $a(a,b){a.pendingChunks++;var c=Ya(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return c.model=b.value,ab(a,c),c.id;case "rejected":var d=P(a,b.reason);Q(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;ab(a,c)},function(e){c.status=4;e=P(a,e);Q(a,c.id,e);null!==a.destination&&
43
43
  R(a,a.destination)});return c.id}function bb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function cb(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:A,_payload:a,_init:bb}}
44
- function T(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===x)return[y,b,c,e];J=0;K=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[y,b,c,e];if("symbol"===typeof b)return b===ha?e.children:[y,b,c,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[y,b,c,e];switch(b.$$typeof){case A:var h=
45
- b._init;b=h(b._payload);return T(a,b,c,d,e,g);case ka:return a=b.render,J=0,K=g,a(e,void 0);case oa:return T(a,b.type,c,d,e,g);case ia:return Aa(b._context,e.value),[y,b,c,{value:e.value,children:e.children,__pop:Za}]}}throw Error("Unsupported Server Component type: "+Pa(b));}function ab(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&setImmediate(function(){return db(a)})}
44
+ function T(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===x)return[z,b,c,e];J=0;K=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[z,b,c,e];if("symbol"===typeof b)return b===ha?e.children:[z,b,c,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[z,b,c,e];switch(b.$$typeof){case A:var h=
45
+ b._init;b=h(b._payload);return T(a,b,c,d,e,g);case ka:return a=b.render,J=0,K=g,a(e,void 0);case oa:return T(a,b.type,c,d,e,g);case ia:return Aa(b._context,e.value),[z,b,c,{value:e.value,children:e.children,__pop:Za}]}}throw Error("Unsupported Server Component type: "+Pa(b));}function ab(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&setImmediate(function(){return db(a)})}
46
46
  function Ya(a,b,c,d){var e={id:a.nextChunkId++,status:0,model:b,context:c,ping:function(){return ab(a,e)},thenableState:null};d.add(e);return e}
47
- function eb(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]===y&&"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 w=a.nextChunkId++,na=u(l);var z=w.toString(16)+":I"+na+"\n";a.completedImportChunks.push(z);g.set(e,w);return b[0]===y&&"1"===c?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
47
+ function eb(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]===z&&"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 w=a.nextChunkId++,na=u(l);var y=w.toString(16)+":I"+na+"\n";a.completedImportChunks.push(y);g.set(e,w);return b[0]===z&&"1"===c?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
48
48
  a.nextChunkId++,c=P(a,S),Q(a,b,c),"$"+b.toString(16)}}
49
- function Wa(a,b,c,d){switch(d){case y:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===y||d.$$typeof===A);)try{switch(d.$$typeof){case y:var e=d;d=T(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=d._init;d=g(d._payload)}}catch(h){c=h===Ba?Ea():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=Ya(a,d,E,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=P(a,c);Q(a,d,c);return"$L"+
49
+ function Wa(a,b,c,d){switch(d){case z:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===z||d.$$typeof===A);)try{switch(d.$$typeof){case z:var e=d;d=T(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=d._init;d=g(d._payload)}}catch(h){c=h===Ba?Ea():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=Ya(a,d,E,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=P(a,c);Q(a,d,c);return"$L"+
50
50
  d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===x)return eb(a,b,c,d);if("function"===typeof d.then)return"$@"+$a(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=v(a,c,"$P"+d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(d===Za){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
51
  d===pa?a.context._defaultValue:d;E=a.parent;return}return!ua(d)&&(null===d||"object"!==typeof d?a=null:(a=ra&&d[ra]||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)return d;if("undefined"===typeof d)return"$undefined";if("function"===typeof d){if(d.$$typeof===x)return eb(a,b,c,d);if(d.$$typeof===fa)return c=a.writtenServerReferences,b=c.get(d),void 0!==b?a="$F"+b.toString(16):(b=d.$$bound,
52
52
  e={id:d.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(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."+O(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".'+O(b,c));}if("symbol"===
53
- typeof d){e=a.writtenSymbols;g=e.get(d);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.")+O(b,c));a.pendingChunks++;c=a.nextChunkId++;b=v(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."+
54
- O(b,c));throw Error("Type "+typeof d+" is not supported in Client Component props."+O(b,c));}function P(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}
55
- function fb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+u(c)+"\n";a.completedErrorChunks.push(b)}
56
- function db(a){var b=Sa.current,c=M;Sa.current=Ka;M=a.cache;I=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){za(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var l=k,w=g.thenableState;g.model=k;k=T(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)l=k,g.model=k,k=T(h,l.type,l.key,l.ref,l.props,null)}var na=ea(h,g.id,k);h.completedJSONChunks.push(na);h.abortableTasks.delete(g);
57
- g.status=1}catch(H){var z=H===Ba?Ea():H;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var S=g.ping;z.then(S,S);g.thenableState=Fa()}else{h.abortableTasks.delete(g);g.status=4;var qb=P(h,z);Q(h,g.id,qb)}}}}null!==a.destination&&R(a,a.destination)}catch(H){P(a,H),fb(a,H)}finally{Sa.current=b,M=c,I=null}}
53
+ typeof d){e=a.writtenSymbols;g=e.get(d);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.")+O(b,c));a.pendingChunks++;c=a.nextChunkId++;b=v(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+
54
+ " is not supported in Client Component props."+O(b,c));}function P(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function fb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
55
+ function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+u(c)+"\n";a.completedErrorChunks.push(b)}
56
+ function db(a){var b=Sa.current,c=M;Sa.current=Ka;M=a.cache;I=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){za(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===z){var l=k,w=g.thenableState;g.model=k;k=T(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===z;)l=k,g.model=k,k=T(h,l.type,l.key,l.ref,l.props,null)}var na=ea(h,g.id,k);h.completedJSONChunks.push(na);h.abortableTasks.delete(g);
57
+ g.status=1}catch(H){var y=H===Ba?Ea():H;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var S=g.ping;y.then(S,S);g.thenableState=Fa()}else{h.abortableTasks.delete(g);g.status=4;var qb=P(h,y);Q(h,g.id,qb)}}}}null!==a.destination&&R(a,a.destination)}catch(H){P(a,H),fb(a,H)}finally{Sa.current=b,M=c,I=null}}
58
58
  function R(a,b){f=new Uint8Array(2048);m=0;n=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!q(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedJSONChunks;for(d=0;d<e.length;d++)if(a.pendingChunks--,!q(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!q(b,g[d])){a.destination=null;d++;break}g.splice(0,d)}finally{f&&0<m&&b.write(f.subarray(0,m)),f=null,m=0,n=!0}"function"===
59
59
  typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function gb(a){setImmediate(function(){return da.run(a.cache,db,a)})}function hb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{R(a,b)}catch(c){P(a,c),fb(a,c)}}}
60
60
  function ib(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,d);c.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=v(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),fb(a,g)}}
@@ -64,8 +64,8 @@ U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)
64
64
  function nb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&W(c,b)}}function ob(a,b,c,d,e,g){var h=jb(a._bundlerConfig,b);a=lb(h);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var l=mb(h);return l.bind.apply(l,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return mb(h)});else return mb(h);c.then(pb(d,e,g),rb(d));return null}var X=null,Y=null;
65
65
  function V(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function sb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&nb(c,b)})}function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=new U("pending",null,null,a),c.set(b,d));return d}
66
66
  function pb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&W(e,d.value))}}function rb(a){return function(b){return nb(a,b)}}
67
- function tb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.substring(1);case "@":return b=parseInt(d.substring(2),16),Z(a,b);case "S":return Symbol.for(d.substring(2));case "F":d=parseInt(d.substring(2),16);d=Z(a,d);"resolved_model"===d.status&&V(d);if("fulfilled"!==d.status)throw d.reason;d=d.value;return ob(a,d.id,d.bound,X,b,c);case "u":return;default:d=parseInt(d.substring(1),16);a=Z(a,d);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=
68
- X,a.then(pb(d,b,c),rb(d)),null;default:throw a.reason;}}return d}function ub(a){var b=new Map,c={_bundlerConfig:a,_chunks:b,_fromJSON:function(d,e){return"string"===typeof e?tb(c,this,d,e):e}};return c}
67
+ function tb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.substring(1);case "@":return b=parseInt(d.substring(2),16),Z(a,b);case "S":return Symbol.for(d.substring(2));case "F":d=parseInt(d.substring(2),16);d=Z(a,d);"resolved_model"===d.status&&V(d);if("fulfilled"!==d.status)throw d.reason;d=d.value;return ob(a,d.id,d.bound,X,b,c);case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=Z(a,d);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
68
+ case "pending":case "blocked":return d=X,a.then(pb(d,b,c),rb(d)),null;default:throw a.reason;}}return d}function ub(a){var b=new Map,c={_bundlerConfig:a,_chunks:b,_fromJSON:function(d,e){return"string"===typeof e?tb(c,this,d,e):e}};return c}
69
69
  function vb(a,b,c){var d=a._chunks,e=d.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=c,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else d.set(b,new U("resolved_model",c,null,a))}function wb(a){sb(a,Error("Connection closed."))}function xb(a,b){return function(){return hb(b,a)}}
70
70
  exports.decodeReply=function(a,b){var c=ub(b);"string"===typeof a?vb(c,0,a):a.forEach(function(d,e){if("string"===typeof d)vb(c,+e,d);else throw Error("Not implemented.");});wb(c);return Z(c,0)};
71
71
  exports.decodeReplyFromBusboy=function(a,b){var c=ub(b);a.on("field",function(d,e){vb(c,+d,e)});a.on("file",function(d,e,g){if("base64"===g.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");throw Error("Not implemented.");});a.on("finish",function(){wb(c)});a.on("error",function(d){sb(c,d)});return Z(c,0)};
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-next-85de6fde5-20230328",
4
+ "version": "18.3.0-next-0ffc7f632-20230330",
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-next-85de6fde5-20230328",
82
- "react-dom": "18.3.0-next-85de6fde5-20230328",
81
+ "react": "18.3.0-next-0ffc7f632-20230330",
82
+ "react-dom": "18.3.0-next-0ffc7f632-20230330",
83
83
  "webpack": "^5.59.0"
84
84
  },
85
85
  "dependencies": {
@@ -666,6 +666,12 @@
666
666
  return undefined;
667
667
  }
668
668
 
669
+ case 'n':
670
+ {
671
+ // BigInt
672
+ return BigInt(value.substring(2));
673
+ }
674
+
669
675
  default:
670
676
  {
671
677
  // We assume that anything else is a reference ID.
@@ -1282,6 +1288,10 @@
1282
1288
  return '$undefined';
1283
1289
  }
1284
1290
 
1291
+ function serializeBigInt(n) {
1292
+ return '$n' + n.toString(10);
1293
+ }
1294
+
1285
1295
  function escapeStringValue(value) {
1286
1296
  if (value[0] === '$') {
1287
1297
  // We need to escape $ prefixed strings since we use those to encode
@@ -1430,7 +1440,7 @@
1430
1440
  }
1431
1441
 
1432
1442
  if (typeof value === 'bigint') {
1433
- throw new Error("BigInt (" + value + ") is not yet supported as an argument to a Server Function.");
1443
+ return serializeBigInt(value);
1434
1444
  }
1435
1445
 
1436
1446
  throw new Error("Type " + typeof value + " is not supported as an argument to a Server Function.");
@@ -14,14 +14,14 @@ a.reason)}}function y(a,b){if("pending"===a.status||"blocked"===a.status){var c=
14
14
  "rejected",a.reason=e}finally{z=b,m=c}}function w(a){try{var b=a.value;if(b.async){var c=B.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(g){a.status="rejected",a.reason=g}}function A(a,b){a._chunks.forEach(function(c){"pending"===c.status&&y(c,b)})}function p(a,b){var c=a._chunks,d=c.get(b);d||(d=new n("pending",null,null,a),c.set(b,d));
15
15
  return d}function S(a,b,c){if(m){var d=m;d.deps++}else d=m={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&&x(e,d.value))}}function T(a){return function(b){return y(a,b)}}function U(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?c(b.id,e.value.concat(d)):Promise.resolve(e).then(function(g){return c(b.id,g.concat(d))}):c(b.id,
16
16
  d)};I.set(a,b);return a}function V(a,b,c,d){if("$"===d[0]){if("$"===d)return C;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=p(a,b),{$$typeof:W,_payload:a,_init:R};case "@":return b=parseInt(d.substring(2),16),p(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),D[a]||(D[a]=q.createServerContext(a,X)),D[a].Provider;case "F":b=parseInt(d.substring(2),16);b=p(a,b);switch(b.status){case "resolved_model":t(b)}switch(b.status){case "fulfilled":return U(a,
17
- b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=p(a,d);switch(a.status){case "resolved_model":t(a);break;case "resolved_module":w(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=z,a.then(S(d,b,c),T(d)),null;default:throw a.reason;}}}return d}function Y(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Z(a,b,c){var d=a._chunks,
18
- e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=N(a._bundlerConfig,c);if(c=P(g)){if(e){var h=e;h.status="blocked"}else h=new n("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,g)},function(k){return y(h,k)})}else e?H(e,g):d.set(b,new n("resolved_module",g,null,a))}function J(a){A(a,Error("Connection closed."))}function K(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":Z(a,d,b.substring(c+2));break;case "E":c=JSON.parse(b.substring(c+2)).digest;
19
- b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;var e=c.get(d);e?y(e,b):c.set(d,new n("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=c.value,d=c.reason,c.status="resolved_model",
20
- c.value=b,null!==a&&(t(c),G(c,a,d))):e.set(d,new n("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?V(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ba(a,b,c){function d(k,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);g++;var r=e++;f.then(function(u){u=JSON.stringify(u,d);var L=h;L.append(""+r,u);g--;0===g&&
21
- b(L)},function(u){c(u)});return"$@"+r.toString(16)}return!ca(f)&&Q(f)?Array.from(f):f}if("string"===typeof f)return f="$"===f[0]?"$"+f:f,f;if("boolean"===typeof f||"number"===typeof f)return f;if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,d),null===h&&(h=new FormData),k=e++,h.set(""+k,f),"$F"+k.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");
22
- }if("symbol"===typeof f){k=f.description;if(Symbol.for(k)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+k}if("bigint"===typeof f)throw Error("BigInt ("+f+") is not yet supported as an argument to a Server Function.");throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var e=1,g=0,h=null;a=JSON.stringify(a,d);null===
23
- h?b(a):(h.set("0",a),0===g&&b(h))}function E(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:Y,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}function M(a,b){function c(g){var h=g.value;if(g.done)J(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var r=g.subarray(0,k);r=h.decode(r);K(a,f+r);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,da);
24
- return e.read().then(c).catch(d)}}function d(g){A(a,g)}var e=b.getReader();e.read().then(c).catch(d)}var da={stream:!0},v=new Map,B=new Map,I=new WeakMap,C=Symbol.for("react.element"),W=Symbol.for("react.lazy"),X=Symbol.for("react.default_value"),F=Symbol.iterator,D=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;n.prototype=Object.create(Promise.prototype);n.prototype.then=function(a,b){switch(this.status){case "resolved_model":t(this);break;case "resolved_module":w(this)}switch(this.status){case "fulfilled":a(this.value);
25
- 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 z=null,m=null,ca=Array.isArray;l.createFromFetch=function(a,b){var c=E(b);a.then(function(d){M(c,d.body)},function(d){A(c,d)});return p(c,0)};l.createFromReadableStream=function(a,b){b=E(b);M(b,a);return p(b,0)};l.createFromXHR=function(a,b){function c(h){h=a.responseText;for(var k=g,f=h.indexOf("\n",k);-1<f;)k=
26
- e._partialRow+h.substring(k,f),K(e,k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(h){A(e,new TypeError("Network error"))}var e=E(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(h){c();J(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return p(e,0)};l.encodeReply=function(a){return new Promise(function(b,c){ba(a,b,c)})}});
17
+ b.value);default:throw b.reason;}case "u":return;case "n":return BigInt(d.substring(2));default:d=parseInt(d.substring(1),16);a=p(a,d);switch(a.status){case "resolved_model":t(a);break;case "resolved_module":w(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=z,a.then(S(d,b,c),T(d)),null;default:throw a.reason;}}}return d}function Y(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
18
+ }function Z(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=N(a._bundlerConfig,c);if(c=P(g)){if(e){var h=e;h.status="blocked"}else h=new n("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,g)},function(k){return y(h,k)})}else e?H(e,g):d.set(b,new n("resolved_module",g,null,a))}function J(a){A(a,Error("Connection closed."))}function K(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":Z(a,d,b.substring(c+2));break;case "E":c=
19
+ JSON.parse(b.substring(c+2)).digest;b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;var e=c.get(d);e?y(e,b):c.set(d,new n("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=
20
+ c.value,d=c.reason,c.status="resolved_model",c.value=b,null!==a&&(t(c),G(c,a,d))):e.set(d,new n("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?V(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ba(a,b,c){function d(k,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);g++;var r=e++;f.then(function(u){u=JSON.stringify(u,
21
+ d);var L=h;L.append(""+r,u);g--;0===g&&b(L)},function(u){c(u)});return"$@"+r.toString(16)}return!ca(f)&&Q(f)?Array.from(f):f}if("string"===typeof f)return f="$"===f[0]?"$"+f:f,f;if("boolean"===typeof f||"number"===typeof f)return f;if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,d),null===h&&(h=new FormData),k=e++,h.set(""+k,f),"$F"+k.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");
22
+ }if("symbol"===typeof f){k=f.description;if(Symbol.for(k)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+k}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 e=1,g=0,h=null;a=JSON.stringify(a,d);null===h?b(a):(h.set("0",a),0===g&&b(h))}function E(a){a=a&&a.callServer?
23
+ a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:Y,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}function M(a,b){function c(g){var h=g.value;if(g.done)J(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var r=g.subarray(0,k);r=h.decode(r);K(a,f+r);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,da);return e.read().then(c).catch(d)}}function d(g){A(a,g)}var e=b.getReader();
24
+ e.read().then(c).catch(d)}var da={stream:!0},v=new Map,B=new Map,I=new WeakMap,C=Symbol.for("react.element"),W=Symbol.for("react.lazy"),X=Symbol.for("react.default_value"),F=Symbol.iterator,D=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;n.prototype=Object.create(Promise.prototype);n.prototype.then=function(a,b){switch(this.status){case "resolved_model":t(this);break;case "resolved_module":w(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&
25
+ (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 z=null,m=null,ca=Array.isArray;l.createFromFetch=function(a,b){var c=E(b);a.then(function(d){M(c,d.body)},function(d){A(c,d)});return p(c,0)};l.createFromReadableStream=function(a,b){b=E(b);M(b,a);return p(b,0)};l.createFromXHR=function(a,b){function c(h){h=a.responseText;for(var k=g,f=h.indexOf("\n",k);-1<f;)k=e._partialRow+h.substring(k,f),K(e,
26
+ k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(h){A(e,new TypeError("Network error"))}var e=E(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(h){c();J(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return p(e,0)};l.encodeReply=function(a){return new Promise(function(b,c){ba(a,b,c)})}});
27
27
  })();
@@ -1744,6 +1744,10 @@
1744
1744
  return '$undefined';
1745
1745
  }
1746
1746
 
1747
+ function serializeBigInt(n) {
1748
+ return '$n' + n.toString(10);
1749
+ }
1750
+
1747
1751
  function serializeClientReference(request, parent, key, clientReference) {
1748
1752
  var clientReferenceKey = getClientReferenceKey(clientReference);
1749
1753
  var writtenClientReferences = request.writtenClientReferences;
@@ -2047,7 +2051,7 @@
2047
2051
  }
2048
2052
 
2049
2053
  if (typeof value === 'bigint') {
2050
- throw new Error("BigInt (" + value + ") is not yet supported in Client Component props." + describeObjectForErrorMessage(parent, key));
2054
+ return serializeBigInt(value);
2051
2055
  }
2052
2056
 
2053
2057
  throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
@@ -2822,6 +2826,12 @@
2822
2826
  return undefined;
2823
2827
  }
2824
2828
 
2829
+ case 'n':
2830
+ {
2831
+ // BigInt
2832
+ return BigInt(value.substring(2));
2833
+ }
2834
+
2825
2835
  default:
2826
2836
  {
2827
2837
  // We assume that anything else is a reference ID.
@@ -7,39 +7,39 @@
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(w,B){"object"===typeof exports&&"undefined"!==typeof module?B(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],B):(w="undefined"!==typeof globalThis?globalThis:w||self,B(w.ReactServerDOMServer={},w.React))})(this,function(w,B){function X(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(b);else{var d=p.length-n;d<b.length&&(0===d?a.enqueue(p):(p.set(b.subarray(0,
10
+ (function(){'use strict';(function(w,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],A):(w="undefined"!==typeof globalThis?globalThis:w||self,A(w.ReactServerDOMServer={},w.React))})(this,function(w,A){function X(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(b);else{var d=p.length-n;d<b.length&&(0===d?a.enqueue(p):(p.set(b.subarray(0,
11
11
  d),n),a.enqueue(p),b=b.subarray(d)),p=new Uint8Array(512),n=0);p.set(b,n);n+=b.length}return!0}function f(a){return D.encode(a)}function ta(a,b){"function"===typeof a.error?a.error(b):a.close()}function ua(a,b,d){a=K(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return D.encode(b)}function Y(a,b,d){a=K(d);b=b.toString(16)+":"+a+"\n";return D.encode(b)}function E(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=
12
12
  a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}function L(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");L(a,d);b.context._currentValue=b.value}}}function va(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&va(a)}function wa(a){var b=
13
13
  a.parent;null!==b&&wa(b);a.context._currentValue=a.value}function xa(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?L(a,b):xa(a,b)}function ya(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?L(a,d):ya(a,d);b.context._currentValue=b.value}function Z(a){var b=
14
14
  r;b!==a&&(null===b?wa(a):null===a?va(b):b.depth===a.depth?L(b,a):b.depth>a.depth?xa(b,a):ya(b,a),r=a)}function za(a,b){var d=a._currentValue;a._currentValue=b;var c=r;return r=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}function Aa(){}function Ta(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Aa,Aa),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===
15
15
  b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}M=b;throw aa;}}function Ba(){if(null===M)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=M;M=null;return a}function Ca(){var a=x;x=null;return a}function Da(a){return a._currentValue}function q(){throw Error("This Hook is not supported in Server Components.");
16
16
  }function Ua(){throw Error("Refreshing the cache is not supported in Server Components.");}function ba(){return(new AbortController).signal}function Ea(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}function ca(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(da(a))return"[...]";a=Ea(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function N(a){if("string"===
17
- typeof a)return a;switch(a){case Va:return"Suspense";case Wa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Fa:return N(a.render);case Ga:return N(a.type);case F:var b=a._payload;a=a._init;try{return N(a(b))}catch(d){}}return""}function y(a,b){var d=Ea(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(da(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?y(h):ca(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>
18
- e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===m)e="<"+N(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?y(l):ca(l);k===b?(d=e.length,c=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}function Xa(a){console.error(a)}function Ya(a,b,d,c,e){if(null!==
17
+ typeof a)return a;switch(a){case Va:return"Suspense";case Wa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Fa:return N(a.render);case Ga:return N(a.type);case F:var b=a._payload;a=a._init;try{return N(a(b))}catch(d){}}return""}function B(a,b){var d=Ea(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(da(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?B(h):ca(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>
18
+ e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===m)e="<"+N(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?B(l):ca(l);k===b?(d=e.length,c=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}function Xa(a){console.error(a)}function Ya(a,b,d,c,e){if(null!==
19
19
  ea.current&&ea.current!==Ha)throw Error("Currently React only supports one RSC renderer at a time.");ea.current=Ha;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||"",identifierCount:1,onError:void 0===
20
20
  d?Xa:d,toJSON:function(l,v){return Za(k,this,l,v)}};k.pendingChunks++;b=$a(c);a=fa(k,a,b,g);h.push(a);return k}function ab(a,b){a.pendingChunks++;var d=fa(a,null,r,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,ha(a,d),d.id;case "rejected":var c=t(a,b.reason);C(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=
21
21
  e)}))}b.then(function(e){d.model=e;ha(a,d)},function(e){d.status=4;e=t(a,e);C(a,d.id,e);null!==a.destination&&O(a,a.destination)});return d.id}function bb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function cb(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",
22
22
  a.reason=b)}))}return{$$typeof:F,_payload:a,_init:bb}}function G(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===P)return[m,b,d,e];Q=0;x=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[m,b,d,e];if("symbol"===typeof b)return b===db?e.children:[m,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===
23
23
  P)return[m,b,d,e];switch(b.$$typeof){case F:var h=b._init;b=h(b._payload);return G(a,b,d,c,e,g);case Fa:return a=b.render,Q=0,x=g,a(e,void 0);case Ga:return G(a,b.type,d,c,e,g);case Ia:return za(b._context,e.value),[m,b,d,{value:e.value,children:e.children,__pop:Ja}]}}throw Error("Unsupported Server Component type: "+ca(b));}function ha(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&Ka(a)}function fa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return ha(a,e)},thenableState:null};
24
- c.add(e);return e}function La(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===m&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,ia=K(l),z=v.toString(16)+":I"+ia+"\n";var R=D.encode(z);a.completedImportChunks.push(R);g.set(e,v);return b[0]===m&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(ja){return a.pendingChunks++,
24
+ c.add(e);return e}function La(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===m&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,ia=K(l),y=v.toString(16)+":I"+ia+"\n";var R=D.encode(y);a.completedImportChunks.push(R);g.set(e,v);return b[0]===m&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(ja){return a.pendingChunks++,
25
25
  b=a.nextChunkId++,d=t(a,ja),C(a,b,d),"$"+b.toString(16)}}function Za(a,b,d,c){switch(c){case m:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===m||c.$$typeof===F);)try{switch(c.$$typeof){case m:var e=c;c=G(a,e.type,e.key,e.ref,e.props,null);break;case F:var g=c._init;c=g(c._payload)}}catch(h){d=h===aa?Ba():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=fa(a,c,r,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ca(),"$L"+a.id.toString(16);
26
26
  a.pendingChunks++;c=a.nextChunkId++;d=t(a,d);C(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===P)return La(a,b,d,c);if("function"===typeof c.then)return"$@"+ab(a,c).toString(16);if(c.$$typeof===Ia)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=Y(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Ja){a=r;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
27
27
  c=a.parentValue;a.context._currentValue=c===Ma?a.context._defaultValue:c;r=a.parent;return}return!da(c)&&(null===c||"object"!==typeof c?a=null:(a=Na&&c[Na]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c)return c;if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===P)return La(a,b,d,c);if(c.$$typeof===eb)return d=a.writtenServerReferences,b=d.get(c),
28
- void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ua(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+y(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+
29
- y(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+y(b,d));a.pendingChunks++;d=a.nextChunkId++;b=Y(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+c+") is not yet supported in Client Component props."+
30
- y(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+y(b,d));}function t(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 ka(a,b){null!==a.destination?(a.status=2,ta(a.destination,b)):(a.status=1,a.fatalError=b)}function C(a,
31
- b,d){d={digest:d};b=b.toString(16)+":E"+K(d)+"\n";b=D.encode(b);a.completedErrorChunks.push(b)}function Ka(a){var b=la.current,d=A;la.current=fb;A=a.cache;H=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){Z(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===m){var l=k,v=g.thenableState;g.model=k;k=G(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===m;)l=k,g.model=
32
- k,k=G(h,l.type,l.key,l.ref,l.props,null)}var ia=ua(h,g.id,k);h.completedJSONChunks.push(ia);h.abortableTasks.delete(g);g.status=1}catch(I){var z=I===aa?Ba():I;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var R=g.ping;z.then(R,R);g.thenableState=Ca()}else{h.abortableTasks.delete(g);g.status=4;var ja=t(h,z);C(h,g.id,ja)}}}}null!==a.destination&&O(a,a.destination)}catch(I){t(a,I),ka(a,I)}finally{la.current=b,A=d,H=null}}function O(a,b){p=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,
33
- c=0;c<d.length;c++)a.pendingChunks--,X(b,d[c]);d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)a.pendingChunks--,X(b,e[c]);e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,X(b,g[c]);g.splice(0,c)}finally{p&&0<n&&(b.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&b.close()}function Oa(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=t(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;
34
- var e=a.nextChunkId++;C(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=Y(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&O(a,a.destination)}catch(g){t(a,g),ka(a,g)}}function $a(a){if(a){var b=r;Z(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];ma[e]||(ma[e]=B.createServerContext(e,Ma));za(ma[e],c)}a=r;Z(b);return a}return null}function gb(){}function hb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],g=S.get(e);if(void 0===g){g=__webpack_chunk_load__(e);
28
+ void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ua(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+B(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+
29
+ B(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+B(b,d));a.pendingChunks++;d=a.nextChunkId++;b=Y(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+
30
+ typeof c+" is not supported in Client Component props."+B(b,d));}function t(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 ka(a,b){null!==a.destination?(a.status=2,ta(a.destination,b)):(a.status=1,a.fatalError=b)}function C(a,b,d){d={digest:d};
31
+ b=b.toString(16)+":E"+K(d)+"\n";b=D.encode(b);a.completedErrorChunks.push(b)}function Ka(a){var b=la.current,d=z;la.current=fb;z=a.cache;H=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){Z(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===m){var l=k,v=g.thenableState;g.model=k;k=G(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===m;)l=k,g.model=k,k=G(h,l.type,l.key,
32
+ l.ref,l.props,null)}var ia=ua(h,g.id,k);h.completedJSONChunks.push(ia);h.abortableTasks.delete(g);g.status=1}catch(I){var y=I===aa?Ba():I;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var R=g.ping;y.then(R,R);g.thenableState=Ca()}else{h.abortableTasks.delete(g);g.status=4;var ja=t(h,y);C(h,g.id,ja)}}}}null!==a.destination&&O(a,a.destination)}catch(I){t(a,I),ka(a,I)}finally{la.current=b,z=d,H=null}}function O(a,b){p=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<
33
+ d.length;c++)a.pendingChunks--,X(b,d[c]);d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)a.pendingChunks--,X(b,e[c]);e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,X(b,g[c]);g.splice(0,c)}finally{p&&0<n&&(b.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&b.close()}function Oa(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=t(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;
34
+ var e=a.nextChunkId++;C(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=Y(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&O(a,a.destination)}catch(g){t(a,g),ka(a,g)}}function $a(a){if(a){var b=r;Z(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];ma[e]||(ma[e]=A.createServerContext(e,Ma));za(ma[e],c)}a=r;Z(b);return a}return null}function gb(){}function hb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],g=S.get(e);if(void 0===g){g=__webpack_chunk_load__(e);
35
35
  d.push(g);var h=S.set.bind(S,e,null);g.then(h,gb);S.set(e,g)}else null!==g&&d.push(g)}if(a.async){if(b=na.get(a.id))return"fulfilled"===b.status?null:b;var k=Promise.all(d).then(function(){return __webpack_require__(a.id)});k.then(function(l){k.status="fulfilled";k.value=l},function(l){k.status="rejected";k.reason=l});na.set(a.id,k);return k}return 0<d.length?Promise.all(d):null}function oa(a){if(a.async){var b=na.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);
36
36
  return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function T(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}function U(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}function Pa(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&U(d,b)}}function ib(a,b,d,c,e,g){var h=a._bundlerConfig[b];a=hb(h);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var l=oa(h);return l.bind.apply(l,[null].concat(k))});else if(a)d=
37
37
  Promise.resolve(a).then(function(){return oa(h)});else return oa(h);d.then(Qa(c,e,g),Ra(c));return null}function V(a){var b=J,d=u;J=a;u=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==u&&0<u.deps?(u.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{J=b,u=d}}function jb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Pa(d,b)})}function W(a,b){var d=a._chunks,c=d.get(b);c||(c=new T("pending",
38
38
  null,null,a),d.set(b,c));return c}function Qa(a,b,d){if(u){var c=u;c.deps++}else c=u={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&U(e,c.value))}}function Ra(a){return function(b){return Pa(a,b)}}function kb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),W(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),
39
- 16);c=W(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ib(a,c.id,c.bound,J,b,d);case "u":return;default:c=parseInt(c.substring(1),16);a=W(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=J,a.then(Qa(c,b,d),Ra(c)),null;default:throw a.reason;}}return c}function lb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?kb(d,
40
- this,c,e):e}};return d}function Sa(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":U(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&U(b,e.reason)}}else c.set(b,new T("resolved_model",d,null,a))}var p=null,n=0,D=new TextEncoder,K=JSON.stringify,P=Symbol.for("react.client.reference"),eb=Symbol.for("react.server.reference"),m=Symbol.for("react.element"),
41
- db=Symbol.for("react.fragment"),Ia=Symbol.for("react.provider"),mb=Symbol.for("react.server_context"),Fa=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Wa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Ma=Symbol.for("react.default_value"),nb=Symbol.for("react.memo_cache_sentinel"),Na=Symbol.iterator;["contentEditable","draggable","spellCheck","value"].forEach(function(a){new E(a,2,!1,a.toLowerCase(),null,!1,!1)});"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 E(a,
42
- 3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new E(a,5,!1,a.toLowerCase(),null,!1,!1)});var pa=/[\-:]([a-z])/g,qa=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(pa,
39
+ 16);c=W(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ib(a,c.id,c.bound,J,b,d);case "u":return;case "n":return BigInt(c.substring(2));default:c=parseInt(c.substring(1),16);a=W(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=J,a.then(Qa(c,b,d),Ra(c)),null;default:throw a.reason;}}return c}function lb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,
40
+ e){return"string"===typeof e?kb(d,this,c,e):e}};return d}function Sa(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":U(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&U(b,e.reason)}}else c.set(b,new T("resolved_model",d,null,a))}var p=null,n=0,D=new TextEncoder,K=JSON.stringify,P=Symbol.for("react.client.reference"),eb=Symbol.for("react.server.reference"),
41
+ m=Symbol.for("react.element"),db=Symbol.for("react.fragment"),Ia=Symbol.for("react.provider"),mb=Symbol.for("react.server_context"),Fa=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Wa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Ma=Symbol.for("react.default_value"),nb=Symbol.for("react.memo_cache_sentinel"),Na=Symbol.iterator;["contentEditable","draggable","spellCheck","value"].forEach(function(a){new E(a,2,!1,a.toLowerCase(),null,!1,!1)});
42
+ "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 E(a,3,!1,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new E(a,5,!1,a.toLowerCase(),null,!1,!1)});var pa=/[\-:]([a-z])/g,qa=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(pa,
43
43
  qa)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(pa,qa)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(pa,qa)});["tabIndex","crossOrigin"].forEach(function(a){new E(a,1,!1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new E(a,1,!1,a.toLowerCase(),null,!0,!0)});var ra={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,
44
44
  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,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,
45
45
  strokeOpacity:!0,strokeWidth:!0},ob=["Webkit","ms","Moz","O"];Object.keys(ra).forEach(function(a){ob.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);ra[b]=ra[a]})});var da=Array.isArray;f('"></template>');f("<script>");f("\x3c/script>");f('<script src="');f('<script type="module" src="');f('" integrity="');f('" async="">\x3c/script>');f("\x3c!-- --\x3e");f(' style="');f(":");f(";");f(" ");f('="');f('"');f('=""');f(">");f("/>");f(' selected=""');f("\n");f("<!DOCTYPE html>");f("</");
@@ -50,8 +50,8 @@ f('$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,
50
50
  f('$RR("');f('","');f('",');f('"');f(")\x3c/script>");f('<template data-rci="" data-bid="');f('<template data-rri="" data-bid="');f('" data-sid="');f('" data-sty="');f('$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("');f('$RX("');f('"');f(",");f(")\x3c/script>");f('<template data-rxi="" data-bid="');f('" data-dgst="');f('" data-msg="');f('" data-stck="');f('<style media="not all" data-precedence="');
51
51
  f('" data-href="');f('">');f("</style>");f('<style data-precedence="');f('" data-href="');f(" ");f('">');f("</style>");f("[");f(",[");f(",");f("]");var r=null,aa=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`"),
52
52
  M=null,H=null,Q=0,x=null,fb={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:Da,useContext:Da,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q,
53
- useCacheRefresh:function(){return Ua},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=nb;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Q;Q+=1;null===x&&(x=[]);return Ta(x,a,b)}if(a.$$typeof===mb)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},Ha={getCacheSignal:function(){var a=A?A:new Map,b=a.get(ba);void 0===b&&(b=ba(),a.set(ba,b));return b},getCacheForType:function(a){var b=
54
- A?A:new Map,d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},A=null,sa=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ma=sa.ContextRegistry,la=sa.ReactCurrentDispatcher,ea=sa.ReactCurrentCache,Ja={},S=new Map,na=new Map;T.prototype=Object.create(Promise.prototype);T.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));
53
+ useCacheRefresh:function(){return Ua},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=nb;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Q;Q+=1;null===x&&(x=[]);return Ta(x,a,b)}if(a.$$typeof===mb)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},Ha={getCacheSignal:function(){var a=z?z:new Map,b=a.get(ba);void 0===b&&(b=ba(),a.set(ba,b));return b},getCacheForType:function(a){var b=
54
+ z?z:new Map,d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},z=null,sa=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ma=sa.ContextRegistry,la=sa.ReactCurrentDispatcher,ea=sa.ReactCurrentCache,Ja={},S=new Map,na=new Map;T.prototype=Object.create(Promise.prototype);T.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));
55
55
  b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var J=null,u=null;w.decodeReply=function(a,b){var d=lb(b);"string"===typeof a?Sa(d,0,a):a.forEach(function(c,e){if("string"===typeof c)Sa(d,+e,c);else throw Error("Not implemented.");});jb(d,Error("Connection closed."));return W(d,0)};w.renderToReadableStream=function(a,b,d){var c=Ya(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)Oa(c,e.reason);
56
56
  else{var g=function(){Oa(c,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(h){Ka(c)},pull:function(h){if(1===c.status)c.status=2,ta(h,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=h;try{O(c,h)}catch(k){t(c,k),ka(c,k)}}},cancel:function(h){}},{highWaterMark:0})}});
57
57
  })();