react-server-dom-webpack 19.0.0-canary-8afa144bd-20240416 → 19.0.0-canary-36e62c603-20240418

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 (37) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +39 -7
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +37 -6
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +7 -7
  4. package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
  5. package/cjs/react-server-dom-webpack-client.edge.development.js +39 -7
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +37 -6
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +18 -18
  8. package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
  9. package/cjs/react-server-dom-webpack-client.node.development.js +39 -7
  10. package/cjs/react-server-dom-webpack-client.node.production.js +37 -6
  11. package/cjs/react-server-dom-webpack-client.node.production.min.js +4 -4
  12. package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
  13. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +39 -7
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +37 -6
  15. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +16 -16
  16. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
  17. package/cjs/react-server-dom-webpack-server.browser.development.js +96 -51
  18. package/cjs/react-server-dom-webpack-server.browser.production.js +74 -40
  19. package/cjs/react-server-dom-webpack-server.browser.production.min.js +59 -58
  20. package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
  21. package/cjs/react-server-dom-webpack-server.edge.development.js +96 -51
  22. package/cjs/react-server-dom-webpack-server.edge.production.js +74 -40
  23. package/cjs/react-server-dom-webpack-server.edge.production.min.js +60 -60
  24. package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
  25. package/cjs/react-server-dom-webpack-server.node.development.js +96 -51
  26. package/cjs/react-server-dom-webpack-server.node.production.js +74 -40
  27. package/cjs/react-server-dom-webpack-server.node.production.min.js +60 -61
  28. package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
  29. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +96 -51
  30. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +74 -40
  31. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +58 -58
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
  33. package/package.json +3 -4
  34. package/umd/react-server-dom-webpack-client.browser.development.js +0 -2365
  35. package/umd/react-server-dom-webpack-client.browser.production.min.js +0 -35
  36. package/umd/react-server-dom-webpack-server.browser.development.js +0 -4027
  37. package/umd/react-server-dom-webpack-server.browser.production.min.js +0 -65
@@ -920,7 +920,14 @@ function trackUsedThenable(thenableState, thenable, index) {
920
920
 
921
921
  default:
922
922
  {
923
- if (typeof thenable.status === 'string') ; else {
923
+ if (typeof thenable.status === 'string') {
924
+ // Only instrument the thenable if the status if not defined. If
925
+ // it's defined, but an unknown value, assume it's been instrumented by
926
+ // some custom userspace implementation. We treat it as "pending".
927
+ // Attach a dummy listener, to ensure that any lazy initialization can
928
+ // happen. Flight lazily parses JSON when the value is actually awaited.
929
+ thenable.then(noop, noop);
930
+ } else {
924
931
  const pendingThenable = thenable;
925
932
  pendingThenable.status = 'pending';
926
933
  pendingThenable.then(fulfilledValue => {
@@ -935,21 +942,22 @@ function trackUsedThenable(thenableState, thenable, index) {
935
942
  rejectedThenable.status = 'rejected';
936
943
  rejectedThenable.reason = error;
937
944
  }
938
- }); // Check one more time in case the thenable resolved synchronously
939
-
940
- switch (thenable.status) {
941
- case 'fulfilled':
942
- {
943
- const fulfilledThenable = thenable;
944
- return fulfilledThenable.value;
945
- }
946
-
947
- case 'rejected':
948
- {
949
- const rejectedThenable = thenable;
950
- throw rejectedThenable.reason;
951
- }
952
- }
945
+ });
946
+ } // Check one more time in case the thenable resolved synchronously
947
+
948
+
949
+ switch (thenable.status) {
950
+ case 'fulfilled':
951
+ {
952
+ const fulfilledThenable = thenable;
953
+ return fulfilledThenable.value;
954
+ }
955
+
956
+ case 'rejected':
957
+ {
958
+ const rejectedThenable = thenable;
959
+ throw rejectedThenable.reason;
960
+ }
953
961
  } // Suspend.
954
962
  //
955
963
  // Throwing here is an implementation detail that allows us to unwind the
@@ -1385,6 +1393,7 @@ function createRequest(model, bundlerConfig, onError, identifierPrefix, onPostpo
1385
1393
  nextChunkId: 0,
1386
1394
  pendingChunks: 0,
1387
1395
  hints,
1396
+ abortListeners: new Set(),
1388
1397
  abortableTasks: abortSet,
1389
1398
  pingedTasks: pingedTasks,
1390
1399
  completedImportChunks: [],
@@ -1482,10 +1491,7 @@ function serializeThenable(request, task, thenable) {
1482
1491
  }
1483
1492
 
1484
1493
  request.abortableTasks.delete(newTask);
1485
-
1486
- if (request.destination !== null) {
1487
- flushCompletedChunks(request, request.destination);
1488
- }
1494
+ enqueueFlush(request);
1489
1495
  });
1490
1496
  return newTask.id;
1491
1497
  }
@@ -1611,7 +1617,6 @@ function renderFunctionComponent(request, task, key, Component, props, owner) {
1611
1617
  }
1612
1618
 
1613
1619
  function renderFragment(request, task, children) {
1614
-
1615
1620
  if (task.keyPath !== null) {
1616
1621
  // We have a Server Component that specifies a key but we're now splitting
1617
1622
  // the tree using a fragment.
@@ -1638,10 +1643,6 @@ function renderFragment(request, task, children) {
1638
1643
 
1639
1644
  return [fragment];
1640
1645
  } // Since we're yielding here, that implicitly resets the keyPath context on the
1641
- // way up. Which is what we want since we've consumed it. If this changes to
1642
- // be recursive serialization, we need to reset the keyPath and implicitSlot,
1643
- // before recursing here.
1644
-
1645
1646
 
1646
1647
  return children;
1647
1648
  }
@@ -1932,13 +1933,9 @@ function serializeTemporaryReference(request, temporaryReference) {
1932
1933
  }
1933
1934
 
1934
1935
  function serializeLargeTextString(request, text) {
1935
- request.pendingChunks += 2;
1936
+ request.pendingChunks++;
1936
1937
  const textId = request.nextChunkId++;
1937
- const textChunk = stringToChunk(text);
1938
- const binaryLength = byteLengthOfChunk(textChunk);
1939
- const row = textId.toString(16) + ':T' + binaryLength.toString(16) + ',';
1940
- const headerChunk = stringToChunk(row);
1941
- request.completedRegularChunks.push(headerChunk, textChunk);
1938
+ emitTextChunk(request, textId, text);
1942
1939
  return serializeByValueID(textId);
1943
1940
  }
1944
1941
 
@@ -2215,7 +2212,7 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2215
2212
 
2216
2213
  if (iteratorFn) {
2217
2214
  return renderFragment(request, task, Array.from(value));
2218
- } // Verify that this is a simple plain object.
2215
+ }
2219
2216
 
2220
2217
 
2221
2218
  const proto = getPrototypeOf(value);
@@ -2420,6 +2417,32 @@ function emitModelChunk(request, id, json) {
2420
2417
  request.completedRegularChunks.push(processedChunk);
2421
2418
  }
2422
2419
 
2420
+ function emitTextChunk(request, id, text) {
2421
+ request.pendingChunks++; // Extra chunk for the header.
2422
+
2423
+ const textChunk = stringToChunk(text);
2424
+ const binaryLength = byteLengthOfChunk(textChunk);
2425
+ const row = id.toString(16) + ':T' + binaryLength.toString(16) + ',';
2426
+ const headerChunk = stringToChunk(row);
2427
+ request.completedRegularChunks.push(headerChunk, textChunk);
2428
+ }
2429
+
2430
+ function emitChunk(request, task, value) {
2431
+ const id = task.id; // For certain types we have special types, we typically outlined them but
2432
+ // we can emit them directly for this row instead of through an indirection.
2433
+
2434
+ if (typeof value === 'string') {
2435
+
2436
+ emitTextChunk(request, id, value);
2437
+ return;
2438
+ }
2439
+ // $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
2440
+
2441
+
2442
+ const json = stringify(value, task.toJSON);
2443
+ emitModelChunk(request, task.id, json);
2444
+ }
2445
+
2423
2446
  const emptyRoot = {};
2424
2447
 
2425
2448
  function retryTask(request, task) {
@@ -2447,21 +2470,19 @@ function retryTask(request, task) {
2447
2470
 
2448
2471
  task.keyPath = null;
2449
2472
  task.implicitSlot = false;
2450
- let json;
2451
2473
 
2452
2474
  if (typeof resolvedModel === 'object' && resolvedModel !== null) {
2453
2475
  // Object might contain unresolved values like additional elements.
2454
2476
  // This is simulating what the JSON loop would do if this was part of it.
2455
- // $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
2456
- json = stringify(resolvedModel, task.toJSON);
2477
+ emitChunk(request, task, resolvedModel);
2457
2478
  } else {
2458
2479
  // If the value is a string, it means it's a terminal value and we already escaped it
2459
2480
  // We don't need to escape it again so it's not passed the toJSON replacer.
2460
2481
  // $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
2461
- json = stringify(resolvedModel);
2482
+ const json = stringify(resolvedModel);
2483
+ emitModelChunk(request, task.id, json);
2462
2484
  }
2463
2485
 
2464
- emitModelChunk(request, task.id, json);
2465
2486
  request.abortableTasks.delete(task);
2466
2487
  task.status = COMPLETED;
2467
2488
  } catch (thrownValue) {
@@ -2613,6 +2634,7 @@ function flushCompletedChunks(request, destination) {
2613
2634
  if (request.pendingChunks === 0) {
2614
2635
 
2615
2636
  close$1(destination);
2637
+ request.destination = null;
2616
2638
  }
2617
2639
  }
2618
2640
 
@@ -2666,11 +2688,10 @@ function stopFlowing(request) {
2666
2688
 
2667
2689
  function abort(request, reason) {
2668
2690
  try {
2669
- const abortableTasks = request.abortableTasks;
2691
+ const abortableTasks = request.abortableTasks; // We have tasks to abort. We'll emit one error row and then emit a reference
2692
+ // to that row from every row that's still remaining.
2670
2693
 
2671
2694
  if (abortableTasks.size > 0) {
2672
- // We have tasks to abort. We'll emit one error row and then emit a reference
2673
- // to that row from every row that's still remaining.
2674
2695
  request.pendingChunks++;
2675
2696
  const errorId = request.nextChunkId++;
2676
2697
 
@@ -2684,6 +2705,19 @@ function abort(request, reason) {
2684
2705
  abortableTasks.clear();
2685
2706
  }
2686
2707
 
2708
+ const abortListeners = request.abortListeners;
2709
+
2710
+ if (abortListeners.size > 0) {
2711
+ let error;
2712
+
2713
+ if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else {
2714
+ error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason;
2715
+ }
2716
+
2717
+ abortListeners.forEach(callback => callback(error));
2718
+ abortListeners.clear();
2719
+ }
2720
+
2687
2721
  if (request.destination !== null) {
2688
2722
  flushCompletedChunks(request, request.destination);
2689
2723
  }
@@ -7,9 +7,9 @@
7
7
  This source code is licensed under the MIT license found in the
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';var aa=require("util");require("crypto");var ba=require("async_hooks"),da=require("react-dom"),ea=require("react"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a}
11
- function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(c=l.length-m,c<b.byteLength&&
12
- (0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new aa.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
10
+ 'use strict';var aa=require("util");require("crypto");var ba=require("async_hooks"),da=require("react-dom"),ea=require("react"),l=null,m=0,q=!0;function t(a,b){a=a.write(b);q=q&&a}
11
+ function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(t(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),t(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(t(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(t(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(t(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),t(a,b)):(c=l.length-m,c<b.byteLength&&
12
+ (0===c?t(a,l):(l.set(b.subarray(0,c),m),m+=c,t(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(t(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new aa.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
13
13
  function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a}
14
14
  var ka=Promise.prototype,la={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
15
15
  }throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}};
@@ -25,63 +25,62 @@ var wa=new ba.AsyncLocalStorage,xa=Symbol.for("react.temporary.reference"),ya={g
25
25
  }throw Error("Cannot access "+String(b)+" on the server. You cannot dot into a temporary client reference from a server component. You can only pass the value through to the client.");},set:function(){throw Error("Cannot assign to a temporary client reference from a server module.");}};
26
26
  function za(a){a=Object.defineProperties(function(){throw Error("Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},{$$typeof:{value:xa},$$id:{value:a}});return new Proxy(a,ya)}
27
27
  var C=Symbol.for("react.element"),Aa=Symbol.for("react.fragment"),Ba=Symbol.for("react.context"),Ca=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ea=Symbol.for("react.suspense_list"),Fa=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ga=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ha=Symbol.iterator,Ia=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
28
- function Ja(){}function Ka(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ja,Ja),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ia;}}var F=null;
29
- function La(){if(null===F)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=F;F=null;return a}var G=null,Ma=0,H=null;function Na(){var a=H||[];H=null;return a}
30
- var Sa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:I,useTransition:I,readContext:Oa,useContext:Oa,useReducer:I,useRef:I,useState:I,useInsertionEffect:I,useLayoutEffect:I,useImperativeHandle:I,useEffect:I,useId:Pa,useSyncExternalStore:I,useCacheRefresh:function(){return Qa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ga;return b},use:Ra};
31
- function I(){throw Error("This Hook is not supported in Server Components.");}function Qa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Oa(){throw Error("Cannot read a Client Context from a Server Component.");}function Pa(){if(null===G)throw Error("useId can only be used while React is rendering");var a=G.identifierCount++;return":"+G.identifierPrefix+"S"+a.toString(32)+":"}
32
- function Ra(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ma;Ma+=1;null===H&&(H=[]);return Ka(H,a,b)}a.$$typeof===Ba&&Oa()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===Ba)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}
33
- var Ta={getCacheForType:function(a){var b=(b=z())?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ua=Array.isArray,Va=Object.getPrototypeOf;function Wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
34
- function Xa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ua(a))return"[...]";if(null!==a&&a.$$typeof===Ya)return"client";a=Wa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Ya?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
35
- function J(a){if("string"===typeof a)return a;switch(a){case Da:return"Suspense";case Ea:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return J(a.render);case Fa:return J(a.type);case D:var b=a._payload;a=a._init;try{return J(a(b))}catch(c){}}return""}var Ya=Symbol.for("react.client.reference");
36
- function K(a,b){var c=Wa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ua(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?K(g):Xa(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+J(a.type)+"/>";else{if(a.$$typeof===Ya)return"client";e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h=
37
- "object"===typeof h&&null!==h?K(h):Xa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var L=ea.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(!L)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');
38
- var Za=Object.prototype,M=JSON.stringify;function $a(a){console.error(a)}function ab(){}
39
- function bb(a,b,c,d,e){if(null!==L.C&&L.C!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");L.C=Ta;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
40
- writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?$a:c,onPostpone:void 0===e?ab:e};a=N(b,a,null,!1,f);g.push(a);return b}var O=null;function z(){if(O)return O;var a=wa.getStore();return a?a:null}
41
- function cb(a,b,c){var d=N(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,db(a,d),d.id;case "rejected":return b=P(a,c.reason),Q(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;db(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);a.abortableTasks.delete(d);
42
- null!==a.destination&&R(a,a.destination)});return d.id}function A(a,b,c){c=M(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");eb(a)}function fb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
43
- function gb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:fb}}
44
- function hb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;Ma=0;H=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=gb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=S(a,b,ib,"",d);b.keyPath=e;b.implicitSlot=f;return a}function jb(a,b,c){return null!==b.keyPath?(a=[C,Aa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
45
- function kb(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[C,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
46
- function lb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v||c.$$typeof===xa?kb(b,c,d,f):hb(a,b,d,c,f);if("string"===typeof c)return kb(b,c,d,f);if("symbol"===typeof c)return c===Aa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=S(a,b,ib,"",f.children),b.implicitSlot=d,a):kb(b,c,d,f);if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return kb(b,c,d,f);
47
- switch(c.$$typeof){case D:var g=c._init;c=g(c._payload);return lb(a,b,c,d,e,f);case Ca:return hb(a,b,d,c.render,f);case Fa:return lb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Xa(c));}function db(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return mb(a)}))}
48
- function N(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return db(a,g)},toJSON:function(k,h){var p=g.keyPath,t=g.implicitSlot;try{var n=S(a,g,this,k,h)}catch(ca){if(k=ca===Ia?La():ca,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===C||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=N(a,g.model,g.keyPath,g.implicitSlot,
49
- a.abortableTasks);var E=n.ping;k.then(E,E);n.thenableState=Na();g.keyPath=p;g.implicitSlot=t;n=h?"$L"+n.id.toString(16):T(n.id)}else if(g.keyPath=p,g.implicitSlot=t,h)a.pendingChunks++,p=a.nextChunkId++,t=P(a,k),Q(a,p,t),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function T(a){return"$"+a.toString(16)}function nb(a,b,c){a=M(c);return b.toString(16)+":"+a+"\n"}
50
- function ob(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var t=h.lastIndexOf("#");-1!==t&&(g=h.slice(t+1),p=k[h.slice(0,t)]);if(!p)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
51
- g];a.pendingChunks++;var E=a.nextChunkId++,ca=M(n),Lb=E.toString(16)+":I"+ca+"\n";a.completedImportChunks.push(Lb);f.set(e,E);return b[0]===C&&"1"===c?"$L"+E.toString(16):T(E)}catch(Mb){return a.pendingChunks++,b=a.nextChunkId++,c=P(a,Mb),Q(a,b,c),T(b)}}function U(a,b){b=N(a,b,null,!1,a.abortableTasks);pb(a,b);return b.id}var V=!1;
52
- function S(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return lb(a,b,e.type,e.key,void 0!==d?d:null,c);case D:return b.thenableState=null,c=e._init,e=c(e._payload),S(a,b,ib,"",e)}if(e.$$typeof===v)return ob(a,c,d,e);c=a.writtenObjects;d=c.get(e);
53
- if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+cb(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=cb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(V===e)V=null;else{if(-1===d)return a=U(a,e),T(a);if(-2!==d)return T(d)}else c.set(e,-1);if(Ua(e))return jb(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
54
- U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}if("function"===typeof FormData&&e instanceof FormData)return e=Array.from(e.entries()),"$K"+U(a,e).toString(16);null===e||"object"!==typeof e?c=null:(c=Ha&&e[Ha]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return jb(a,b,Array.from(e));a=Va(e);if(a!==Za&&(null===a||null!==Va(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");
55
- return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=a.nextChunkId++,c="string"===typeof e?Buffer.byteLength(e,"utf8"):e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",a.completedRegularChunks.push(c,e),T(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===
56
- typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return ob(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===xa)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+K(c,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
57
- throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.'+K(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return T(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+
58
- K(c,d));a.pendingChunks++;c=a.nextChunkId++;d=nb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return T(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+" is not supported in Client Component props."+K(c,d));}
59
- function P(a,b){var c=O;O=null;try{var d=wa.run(void 0,a.onError,b)}finally{O=c}if(null!=d&&"string"!==typeof d)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d||""}function qb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
60
- function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+M(c)+"\n";a.completedErrorChunks.push(b)}var ib={};
61
- function pb(a,b){if(0===b.status)try{V=b.model;var c=S(a,b,ib,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?M(c,b.toJSON):M(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(h){var f=h===Ia?La():h;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=Na()}else{a.abortableTasks.delete(b);b.status=4;var k=P(a,f);Q(a,b.id,k)}}finally{}}
62
- function mb(a){var b=L.H;L.H=Sa;var c=O;G=O=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)pb(a,d[e]);null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),qb(a,f)}finally{L.H=b,G=null,O=c}}
63
- function R(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
64
- null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function rb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,mb,a)})}function eb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return R(a,b)})}}
65
- function sb(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),qb(a,c)}}}
66
- function tb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=P(a,e);Q(a,d,f,e);c.forEach(function(g){g.status=3;var k=T(d);g=nb(a,g.id,k);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),qb(a,g)}}
67
- function ub(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var vb=new Map;
68
- function wb(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function xb(){}
69
- function yb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var f=vb.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var g=vb.set.bind(vb,e,null);f.then(g,xb);vb.set(e,f)}else null!==f&&c.push(f)}return 4===a.length?0===c.length?wb(a[0]):Promise.all(c).then(function(){return wb(a[0])}):0<c.length?Promise.all(c):null}
70
- function W(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function zb(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}zb.prototype=Object.create(Promise.prototype);
71
- zb.prototype.then=function(a,b){switch(this.status){case "resolved_model":Ab(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Bb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
72
- function Cb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Bb(c,b)}}function Db(a,b,c,d,e,f){var g=ub(a._bundlerConfig,b);a=yb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(g)});else return W(g);c.then(Eb(d,e,f),Fb(d));return null}var X=null,Y=null;
73
- function Ab(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 Gb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Cb(c,b)})}
74
- function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new zb("resolved_model",d,null,a):new zb("pending",null,null,a),c.set(b,d));return d}function Eb(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&&Bb(e,d.value))}}function Fb(a){return function(b){return Cb(a,b)}}
75
- function Hb(a,b){a=Z(a,b);"resolved_model"===a.status&&Ab(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
76
- function Ib(a,b,c,d){if("$"===d[0]){switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Hb(a,d),Db(a,d.id,d.bound,X,b,c);case "T":return za(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Hb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Hb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});
77
- return f;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2))}d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":Ab(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Eb(d,b,c),Fb(d)),null;default:throw a.reason;}}return d}
78
- function Jb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Ib(e,this,f,g):g}};return e}
79
- function Kb(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(Ab(b),b.status){case "fulfilled":Bb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Bb(a,b.reason)}}function Nb(a){Gb(a,Error("Connection closed."))}
80
- function Ob(a,b,c){var d=ub(a,b);a=yb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=W(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}function Pb(a,b,c){a=Jb(b,c,a);Nb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Qb(a,b){return function(){return sb(b,a)}}function Rb(a,b){return function(){a.destination=null;tb(a,Error(b))}}
81
- exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Pb(a,b,e),d=Ob(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Ob(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
82
- exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Pb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Jb(b,"",a);b=Z(a,0);Nb(a);return b};
83
- exports.decodeReplyFromBusboy=function(a,b){var c=Jb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Kb(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=k.mimeType;if("base64"===k.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");d++;var t=[];g.on("data",function(n){t.push(n)});g.on("end",function(){var n=
84
- new Blob(t,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Kb(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Nb(c)});a.on("error",function(f){Gb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})};
85
- exports.renderToPipeableStream=function(a,b,c){var d=bb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;rb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;sb(d,f);f.on("drain",Qb(f,d));f.on("error",Rb(d,"The destination stream errored while writing data."));f.on("close",Rb(d,"The destination stream closed early."));return f},abort:function(f){tb(d,f)}}};
28
+ function F(){}function Ja(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(F,F),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:"string"===typeof b.status?b.then(F,F):(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}));switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw Ia;}}
29
+ var G=null;function Ka(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var H=null,La=0,I=null;function Ma(){var a=I||[];I=null;return a}
30
+ var Ra={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:J,useTransition:J,readContext:Na,useContext:Na,useReducer:J,useRef:J,useState:J,useInsertionEffect:J,useLayoutEffect:J,useImperativeHandle:J,useEffect:J,useId:Oa,useSyncExternalStore:J,useCacheRefresh:function(){return Pa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ga;return b},use:Qa};
31
+ function J(){throw Error("This Hook is not supported in Server Components.");}function Pa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Na(){throw Error("Cannot read a Client Context from a Server Component.");}function Oa(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"}
32
+ function Qa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=La;La+=1;null===I&&(I=[]);return Ja(I,a,b)}a.$$typeof===Ba&&Na()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===Ba)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}
33
+ var Sa={getCacheForType:function(a){var b=(b=z())?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ta=Array.isArray,Ua=Object.getPrototypeOf;function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
34
+ function Wa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ta(a))return"[...]";if(null!==a&&a.$$typeof===Xa)return"client";a=Va(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Xa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
35
+ function K(a){if("string"===typeof a)return a;switch(a){case Da:return"Suspense";case Ea:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return K(a.render);case Fa:return K(a.type);case D:var b=a._payload;a=a._init;try{return K(a(b))}catch(c){}}return""}var Xa=Symbol.for("react.client.reference");
36
+ function L(a,b){var c=Va(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ta(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?L(g):Wa(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+K(a.type)+"/>";else{if(a.$$typeof===Xa)return"client";e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h=
37
+ "object"===typeof h&&null!==h?L(h):Wa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var M=ea.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(!M)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');
38
+ var Ya=Object.prototype,N=JSON.stringify;function Za(a){console.error(a)}function $a(){}
39
+ function ab(a,b,c,d,e){if(null!==M.C&&M.C!==Sa)throw Error("Currently React only supports one RSC renderer at a time.");M.C=Sa;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortListeners:new Set,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
40
+ writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?Za:c,onPostpone:void 0===e?$a:e};a=O(b,a,null,!1,f);g.push(a);return b}var P=null;function z(){if(P)return P;var a=wa.getStore();return a?a:null}
41
+ function bb(a,b,c){var d=O(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,cb(a,d),d.id;case "rejected":return b=Q(a,c.reason),R(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;cb(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);a.abortableTasks.delete(d);
42
+ db(a)});return d.id}function A(a,b,c){c=N(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");db(a)}function eb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
43
+ function fb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:eb}}
44
+ function gb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;La=0;I=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=fb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=S(a,b,hb,"",d);b.keyPath=e;b.implicitSlot=f;return a}function ib(a,b,c){return null!==b.keyPath?(a=[C,Aa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
45
+ function jb(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[C,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
46
+ function kb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v||c.$$typeof===xa?jb(b,c,d,f):gb(a,b,d,c,f);if("string"===typeof c)return jb(b,c,d,f);if("symbol"===typeof c)return c===Aa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=S(a,b,hb,"",f.children),b.implicitSlot=d,a):jb(b,c,d,f);if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return jb(b,c,d,f);
47
+ switch(c.$$typeof){case D:var g=c._init;c=g(c._payload);return kb(a,b,c,d,e,f);case Ca:return gb(a,b,d,c.render,f);case Fa:return kb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Wa(c));}function cb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return lb(a)}))}
48
+ function O(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return cb(a,g)},toJSON:function(k,h){var p=g.keyPath,r=g.implicitSlot;try{var n=S(a,g,this,k,h)}catch(ca){if(k=ca===Ia?Ka():ca,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===C||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=O(a,g.model,g.keyPath,g.implicitSlot,
49
+ a.abortableTasks);var E=n.ping;k.then(E,E);n.thenableState=Ma();g.keyPath=p;g.implicitSlot=r;n=h?"$L"+n.id.toString(16):T(n.id)}else if(g.keyPath=p,g.implicitSlot=r,h)a.pendingChunks++,p=a.nextChunkId++,r=Q(a,k),R(a,p,r),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function T(a){return"$"+a.toString(16)}function mb(a,b,c){a=N(c);return b.toString(16)+":"+a+"\n"}
50
+ function nb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var r=h.lastIndexOf("#");-1!==r&&(g=h.slice(r+1),p=k[h.slice(0,r)]);if(!p)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
51
+ g];a.pendingChunks++;var E=a.nextChunkId++,ca=N(n),Mb=E.toString(16)+":I"+ca+"\n";a.completedImportChunks.push(Mb);f.set(e,E);return b[0]===C&&"1"===c?"$L"+E.toString(16):T(E)}catch(Nb){return a.pendingChunks++,b=a.nextChunkId++,c=Q(a,Nb),R(a,b,c),T(b)}}function U(a,b){b=O(a,b,null,!1,a.abortableTasks);ob(a,b);return b.id}var V=!1;
52
+ function S(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return kb(a,b,e.type,e.key,void 0!==d?d:null,c);case D:return b.thenableState=null,c=e._init,e=c(e._payload),S(a,b,hb,"",e)}if(e.$$typeof===v)return nb(a,c,d,e);c=a.writtenObjects;d=c.get(e);
53
+ if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+bb(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=bb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(V===e)V=null;else{if(-1===d)return a=U(a,e),T(a);if(-2!==d)return T(d)}else c.set(e,-1);if(Ta(e))return ib(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
54
+ U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}if("function"===typeof FormData&&e instanceof FormData)return e=Array.from(e.entries()),"$K"+U(a,e).toString(16);null===e||"object"!==typeof e?c=null:(c=Ha&&e[Ha]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return ib(a,b,Array.from(e));a=Ua(e);if(a!==Ya&&(null===a||null!==Ua(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");
55
+ return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks++,b=a.nextChunkId++,pb(a,b,e),T(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return nb(a,c,d,e);if(e.$$typeof===w)return b=
56
+ a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===xa)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+L(c,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.'+
57
+ L(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return T(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+L(c,d));a.pendingChunks++;c=a.nextChunkId++;d=mb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return T(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
58
+ " is not supported in Client Component props."+L(c,d));}function Q(a,b){var c=P;P=null;try{var d=wa.run(void 0,a.onError,b)}finally{P=c}if(null!=d&&"string"!==typeof d)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d||""}
59
+ function qb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function R(a,b,c){c={digest:c};b=b.toString(16)+":E"+N(c)+"\n";a.completedErrorChunks.push(b)}function pb(a,b,c){a.pendingChunks++;var d="string"===typeof c?Buffer.byteLength(c,"utf8"):c.byteLength;b=b.toString(16)+":T"+d.toString(16)+",";a.completedRegularChunks.push(b,c)}var hb={};
60
+ function ob(a,b){if(0===b.status)try{V=b.model;var c=S(a,b,hb,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;if("object"===typeof c&&null!==c){var d=b.id;if("string"===typeof c)pb(a,d,c);else{var e=N(c,b.toJSON),f=b.id.toString(16)+":"+e+"\n";a.completedRegularChunks.push(f)}}else{var g=N(c),k=b.id.toString(16)+":"+g+"\n";a.completedRegularChunks.push(k)}a.abortableTasks.delete(b);b.status=1}catch(n){var h=n===Ia?Ka():n;if("object"===typeof h&&null!==h&&"function"===typeof h.then){var p=b.ping;
61
+ h.then(p,p);b.thenableState=Ma()}else{a.abortableTasks.delete(b);b.status=4;var r=Q(a,h);R(a,b.id,r)}}finally{}}function lb(a){var b=M.H;M.H=Ra;var c=P;H=P=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)ob(a,d[e]);null!==a.destination&&rb(a,a.destination)}catch(f){Q(a,f),qb(a,f)}finally{M.H=b,H=null,P=c}}
62
+ function rb(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
63
+ null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&(b.end(),a.destination=null)}function sb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,lb,a)})}function db(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return rb(a,b)})}}
64
+ function tb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{rb(a,b)}catch(c){Q(a,c),qb(a,c)}}}
65
+ function ub(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=Q(a,e);R(a,d,f,e);c.forEach(function(h){h.status=3;var p=T(d);h=mb(a,h.id,p);a.completedErrorChunks.push(h)});c.clear()}var g=a.abortListeners;if(0<g.size){var k=void 0===b?Error("The render was aborted by the server without a reason."):b;g.forEach(function(h){return h(k)});g.clear()}null!==a.destination&&rb(a,a.destination)}catch(h){Q(a,
66
+ h),qb(a,h)}}function vb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var wb=new Map;
67
+ function xb(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function yb(){}
68
+ function zb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var f=wb.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var g=wb.set.bind(wb,e,null);f.then(g,yb);wb.set(e,f)}else null!==f&&c.push(f)}return 4===a.length?0===c.length?xb(a[0]):Promise.all(c).then(function(){return xb(a[0])}):0<c.length?Promise.all(c):null}
69
+ function W(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function Ab(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}Ab.prototype=Object.create(Promise.prototype);
70
+ Ab.prototype.then=function(a,b){switch(this.status){case "resolved_model":Bb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Cb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
71
+ function Db(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Cb(c,b)}}function Eb(a,b,c,d,e,f){var g=vb(a._bundlerConfig,b);a=zb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(g)});else return W(g);c.then(Fb(d,e,f),Gb(d));return null}var X=null,Y=null;
72
+ function Bb(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 Hb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Db(c,b)})}
73
+ function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new Ab("resolved_model",d,null,a):new Ab("pending",null,null,a),c.set(b,d));return d}function Fb(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&&Cb(e,d.value))}}function Gb(a){return function(b){return Db(a,b)}}
74
+ function Ib(a,b){a=Z(a,b);"resolved_model"===a.status&&Bb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
75
+ function Jb(a,b,c,d){if("$"===d[0]){switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Ib(a,d),Eb(a,d.id,d.bound,X,b,c);case "T":return za(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Ib(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Ib(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});
76
+ return f;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2))}d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":Bb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Fb(d,b,c),Gb(d)),null;default:throw a.reason;}}return d}
77
+ function Kb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Jb(e,this,f,g):g}};return e}
78
+ function Lb(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(Bb(b),b.status){case "fulfilled":Cb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Cb(a,b.reason)}}function Ob(a){Hb(a,Error("Connection closed."))}
79
+ function Pb(a,b,c){var d=vb(a,b);a=zb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=W(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}function Qb(a,b,c){a=Kb(b,c,a);Ob(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Rb(a,b){return function(){return tb(b,a)}}function Sb(a,b){return function(){a.destination=null;ub(a,Error(b))}}
80
+ exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Qb(a,b,e),d=Pb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Pb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
81
+ exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Qb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Kb(b,"",a);b=Z(a,0);Ob(a);return b};
82
+ exports.decodeReplyFromBusboy=function(a,b){var c=Kb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Lb(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=k.mimeType;if("base64"===k.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");d++;var r=[];g.on("data",function(n){r.push(n)});g.on("end",function(){var n=
83
+ new Blob(r,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Lb(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Ob(c)});a.on("error",function(f){Hb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})};
84
+ exports.renderToPipeableStream=function(a,b,c){var d=ab(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;sb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;tb(d,f);f.on("drain",Rb(f,d));f.on("error",Sb(d,"The destination stream errored while writing data."));f.on("close",Sb(d,"The destination stream closed early."));return f},abort:function(f){ub(d,f)}}};
86
85
 
87
86
  //# sourceMappingURL=react-server-dom-webpack-server.node.production.min.js.map