react-server-dom-webpack 19.0.0-canary-4c12339ce-20240408 → 19.0.0-canary-96c584661-20240412
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-server-dom-webpack-client.browser.development.js +115 -100
- package/cjs/react-server-dom-webpack-client.browser.production.js +92 -72
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -24
- package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +123 -108
- package/cjs/react-server-dom-webpack-client.edge.production.js +100 -80
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +24 -23
- package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +123 -108
- package/cjs/react-server-dom-webpack-client.node.production.js +100 -80
- package/cjs/react-server-dom-webpack-client.node.production.min.js +23 -22
- package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +123 -108
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +100 -80
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +22 -21
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-node-register.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.browser.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +68 -68
- package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.edge.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +53 -53
- package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.node.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.node.production.min.js +56 -56
- package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +53 -53
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +115 -100
- package/umd/react-server-dom-webpack-client.browser.production.min.js +24 -24
- package/umd/react-server-dom-webpack-server.browser.development.js +75 -39
- package/umd/react-server-dom-webpack-server.browser.production.min.js +53 -53
@@ -405,19 +405,45 @@ function getServerReferenceBoundArguments(config, serverReference) {
|
|
405
405
|
return serverReference.$$bound;
|
406
406
|
}
|
407
407
|
|
408
|
-
const ReactDOMSharedInternals = ReactDOM.
|
409
|
-
|
410
|
-
const
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
408
|
+
const ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
409
|
+
|
410
|
+
const previousDispatcher = ReactDOMSharedInternals.d;
|
411
|
+
/* ReactDOMCurrentDispatcher */
|
412
|
+
|
413
|
+
ReactDOMSharedInternals.d
|
414
|
+
/* ReactDOMCurrentDispatcher */
|
415
|
+
= {
|
416
|
+
f
|
417
|
+
/* flushSyncWork */
|
418
|
+
: previousDispatcher.f
|
419
|
+
/* flushSyncWork */
|
420
|
+
,
|
421
|
+
r
|
422
|
+
/* requestFormReset */
|
423
|
+
: previousDispatcher.r
|
424
|
+
/* requestFormReset */
|
425
|
+
,
|
426
|
+
D
|
427
|
+
/* prefetchDNS */
|
428
|
+
: prefetchDNS,
|
429
|
+
C
|
430
|
+
/* preconnect */
|
431
|
+
: preconnect,
|
432
|
+
L
|
433
|
+
/* preload */
|
434
|
+
: preload,
|
435
|
+
m
|
436
|
+
/* preloadModule */
|
437
|
+
: preloadModule$1,
|
438
|
+
X
|
439
|
+
/* preinitScript */
|
440
|
+
: preinitScript,
|
441
|
+
S
|
442
|
+
/* preinitStyle */
|
443
|
+
: preinitStyle,
|
444
|
+
M
|
445
|
+
/* preinitModuleScript */
|
446
|
+
: preinitModuleScript
|
421
447
|
};
|
422
448
|
|
423
449
|
function prefetchDNS(href) {
|
@@ -436,7 +462,9 @@ function prefetchDNS(href) {
|
|
436
462
|
hints.add(key);
|
437
463
|
emitHint(request, 'D', href);
|
438
464
|
} else {
|
439
|
-
previousDispatcher.
|
465
|
+
previousDispatcher.D(
|
466
|
+
/* prefetchDNS */
|
467
|
+
href);
|
440
468
|
}
|
441
469
|
}
|
442
470
|
}
|
@@ -462,7 +490,9 @@ function preconnect(href, crossOrigin) {
|
|
462
490
|
emitHint(request, 'C', href);
|
463
491
|
}
|
464
492
|
} else {
|
465
|
-
previousDispatcher.
|
493
|
+
previousDispatcher.C(
|
494
|
+
/* preconnect */
|
495
|
+
href, crossOrigin);
|
466
496
|
}
|
467
497
|
}
|
468
498
|
}
|
@@ -495,7 +525,9 @@ function preload(href, as, options) {
|
|
495
525
|
emitHint(request, 'L', [href, as]);
|
496
526
|
}
|
497
527
|
} else {
|
498
|
-
previousDispatcher.
|
528
|
+
previousDispatcher.L(
|
529
|
+
/* preload */
|
530
|
+
href, as, options);
|
499
531
|
}
|
500
532
|
}
|
501
533
|
}
|
@@ -522,7 +554,9 @@ function preloadModule$1(href, options) {
|
|
522
554
|
return emitHint(request, 'm', href);
|
523
555
|
}
|
524
556
|
} else {
|
525
|
-
previousDispatcher.
|
557
|
+
previousDispatcher.m(
|
558
|
+
/* preloadModule */
|
559
|
+
href, options);
|
526
560
|
}
|
527
561
|
}
|
528
562
|
}
|
@@ -551,7 +585,9 @@ function preinitStyle(href, precedence, options) {
|
|
551
585
|
return emitHint(request, 'S', href);
|
552
586
|
}
|
553
587
|
} else {
|
554
|
-
previousDispatcher.
|
588
|
+
previousDispatcher.S(
|
589
|
+
/* preinitStyle */
|
590
|
+
href, precedence, options);
|
555
591
|
}
|
556
592
|
}
|
557
593
|
}
|
@@ -578,7 +614,9 @@ function preinitScript(src, options) {
|
|
578
614
|
return emitHint(request, 'X', src);
|
579
615
|
}
|
580
616
|
} else {
|
581
|
-
previousDispatcher.
|
617
|
+
previousDispatcher.X(
|
618
|
+
/* preinitScript */
|
619
|
+
src, options);
|
582
620
|
}
|
583
621
|
}
|
584
622
|
}
|
@@ -605,7 +643,9 @@ function preinitModuleScript(src, options) {
|
|
605
643
|
return emitHint(request, 'M', src);
|
606
644
|
}
|
607
645
|
} else {
|
608
|
-
previousDispatcher.
|
646
|
+
previousDispatcher.M(
|
647
|
+
/* preinitModuleScript */
|
648
|
+
src, options);
|
609
649
|
}
|
610
650
|
}
|
611
651
|
} // Flight normally encodes undefined as a special character however for directive option
|
@@ -1235,15 +1275,15 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
1235
1275
|
return '\n ' + str;
|
1236
1276
|
}
|
1237
1277
|
|
1238
|
-
const
|
1278
|
+
const ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
|
1279
|
+
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
1239
1280
|
|
1240
|
-
|
1241
|
-
React.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
1242
|
-
|
1243
|
-
if (!ReactSharedServerInternals) {
|
1281
|
+
if (!ReactSharedInternalsServer) {
|
1244
1282
|
throw new 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.');
|
1245
1283
|
}
|
1246
1284
|
|
1285
|
+
const ReactSharedInternals = ReactSharedInternalsServer;
|
1286
|
+
|
1247
1287
|
const ObjectPrototype = Object.prototype;
|
1248
1288
|
const stringify = JSON.stringify; // Serializable values
|
1249
1289
|
// Thenable<ReactClientValue>
|
@@ -1256,8 +1296,6 @@ const ERRORED$1 = 4; // object reference status
|
|
1256
1296
|
|
1257
1297
|
const SEEN_BUT_NOT_YET_OUTLINED = -1;
|
1258
1298
|
const NEVER_OUTLINED = -2;
|
1259
|
-
const ReactCurrentCache = ReactSharedServerInternals.ReactCurrentCache;
|
1260
|
-
const ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
1261
1299
|
|
1262
1300
|
function defaultErrorHandler(error) {
|
1263
1301
|
console['error'](error); // Don't transform to our wrapper
|
@@ -1270,11 +1308,11 @@ const OPEN = 0;
|
|
1270
1308
|
const CLOSING = 1;
|
1271
1309
|
const CLOSED = 2;
|
1272
1310
|
function createRequest(model, bundlerConfig, onError, identifierPrefix, onPostpone, environmentName) {
|
1273
|
-
if (
|
1311
|
+
if (ReactSharedInternals.C !== null && ReactSharedInternals.C !== DefaultCacheDispatcher) {
|
1274
1312
|
throw new Error('Currently React only supports one RSC renderer at a time.');
|
1275
1313
|
}
|
1276
1314
|
|
1277
|
-
|
1315
|
+
ReactSharedInternals.C = DefaultCacheDispatcher;
|
1278
1316
|
const abortSet = new Set();
|
1279
1317
|
const pingedTasks = [];
|
1280
1318
|
const cleanupQueue = [];
|
@@ -2401,8 +2439,8 @@ function retryTask(request, task) {
|
|
2401
2439
|
}
|
2402
2440
|
|
2403
2441
|
function performWork(request) {
|
2404
|
-
const prevDispatcher =
|
2405
|
-
|
2442
|
+
const prevDispatcher = ReactSharedInternals.H;
|
2443
|
+
ReactSharedInternals.H = HooksDispatcher;
|
2406
2444
|
const prevRequest = currentRequest;
|
2407
2445
|
currentRequest = request;
|
2408
2446
|
prepareToUseHooksForRequest(request);
|
@@ -2423,7 +2461,7 @@ function performWork(request) {
|
|
2423
2461
|
logRecoverableError(request, error);
|
2424
2462
|
fatalError(request, error);
|
2425
2463
|
} finally {
|
2426
|
-
|
2464
|
+
ReactSharedInternals.H = prevDispatcher;
|
2427
2465
|
resetHooksForRequest();
|
2428
2466
|
currentRequest = prevRequest;
|
2429
2467
|
}
|
@@ -7,23 +7,23 @@
|
|
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("react-dom"),
|
10
|
+
'use strict';var aa=require("react-dom"),ba=require("react"),m=null,n=0;function p(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(2048),n=0),a.enqueue(b);else{var c=m.length-n;c<b.byteLength&&(0===c?a.enqueue(m):(m.set(b.subarray(0,c),n),a.enqueue(m),b=b.subarray(c)),m=new Uint8Array(2048),n=0);m.set(b,n);n+=b.byteLength}return!0}var q=new TextEncoder;function da(a,b){"function"===typeof a.error?a.error(b):a.close()}
|
11
11
|
var r=Symbol.for("react.client.reference"),u=Symbol.for("react.server.reference");function v(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var ea=Function.prototype.bind,fa=Array.prototype.slice;function ha(){var a=ea.apply(this,arguments);if(this.$$typeof===u){var b=fa.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ha}})}return a}
|
12
12
|
var ia=Promise.prototype,ja={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.");
|
13
13
|
}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.");}};
|
14
14
|
function ka(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 "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=v(function(){throw Error("Attempted to call the default export of "+c+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
|
15
15
|
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var e=v({},a.$$id,!0),d=new Proxy(e,la);a.status="fulfilled";a.value=d;return a.then=v(function(g){return Promise.resolve(g(d))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");e=a[b];e||(e=v(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" 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.");
|
16
16
|
},a.$$id+"#"+b,a.$$async),Object.defineProperty(e,"name",{value:b}),e=a[b]=new Proxy(e,ja));return e}
|
17
|
-
var la={get:function(a,b){return ka(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ka(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ia},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ma=aa.
|
18
|
-
|
19
|
-
function pa(a,b,c){if("string"===typeof a){var e=x();if(e){var d=e.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;d.has(g)||(d.add(g),(c=z(c))?y(e,"L",[a,b,c]):y(e,"L",[a,b]))}else w.
|
20
|
-
function qa(a,b){if("string"===typeof a){var c=x();if(c){var e=c.hints,d="m|"+a;if(e.has(d))return;e.add(d);return(b=z(b))?y(c,"m",[a,b]):y(c,"m",a)}w.
|
21
|
-
function
|
22
|
-
|
17
|
+
var la={get:function(a,b){return ka(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ka(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ia},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ma=aa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=ma.d;ma.d={f:w.f,r:w.r,D:na,C:oa,L:pa,m:qa,X:ra,S:sa,M:ta};
|
18
|
+
function na(a){if("string"===typeof a&&a){var b=x();if(b){var c=b.hints,e="D|"+a;c.has(e)||(c.add(e),y(b,"D",a))}else w.D(a)}}function oa(a,b){if("string"===typeof a){var c=x();if(c){var e=c.hints,d="C|"+(null==b?"null":b)+"|"+a;e.has(d)||(e.add(d),"string"===typeof b?y(c,"C",[a,b]):y(c,"C",a))}else w.C(a,b)}}
|
19
|
+
function pa(a,b,c){if("string"===typeof a){var e=x();if(e){var d=e.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;d.has(g)||(d.add(g),(c=z(c))?y(e,"L",[a,b,c]):y(e,"L",[a,b]))}else w.L(a,b,c)}}
|
20
|
+
function qa(a,b){if("string"===typeof a){var c=x();if(c){var e=c.hints,d="m|"+a;if(e.has(d))return;e.add(d);return(b=z(b))?y(c,"m",[a,b]):y(c,"m",a)}w.m(a,b)}}function sa(a,b,c){if("string"===typeof a){var e=x();if(e){var d=e.hints,g="S|"+a;if(d.has(g))return;d.add(g);return(c=z(c))?y(e,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?y(e,"S",[a,b]):y(e,"S",a)}w.S(a,b,c)}}
|
21
|
+
function ra(a,b){if("string"===typeof a){var c=x();if(c){var e=c.hints,d="X|"+a;if(e.has(d))return;e.add(d);return(b=z(b))?y(c,"X",[a,b]):y(c,"X",a)}w.X(a,b)}}function ta(a,b){if("string"===typeof a){var c=x();if(c){var e=c.hints,d="M|"+a;if(e.has(d))return;e.add(d);return(b=z(b))?y(c,"M",[a,b]):y(c,"M",a)}w.M(a,b)}}function z(a){if(null==a)return null;var b=!1,c={},e;for(e in a)null!=a[e]&&(b=!0,c[e]=a[e]);return b?c:null}var B="function"===typeof AsyncLocalStorage,ua=B?new AsyncLocalStorage:null;
|
22
|
+
"object"===typeof async_hooks?async_hooks.createHook:function(){return{enable:function(){},disable:function(){}}};"object"===typeof async_hooks?async_hooks.executionAsyncId:null;
|
23
23
|
var va=Symbol.for("react.temporary.reference"),wa={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return;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.");
|
24
24
|
}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.");}};
|
25
25
|
function xa(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:va},$$id:{value:a}});return new Proxy(a,wa)}
|
26
|
-
var C=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),
|
26
|
+
var C=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Fa=Symbol.iterator,Ga=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`");
|
27
27
|
function Ha(){}function Ia(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ha,Ha),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(e){if("pending"===b.status){var d=b;d.status="fulfilled";d.value=e}},function(e){if("pending"===b.status){var d=b;d.status="rejected";d.reason=e}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ga;}}var F=null;
|
28
28
|
function Ja(){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,Ka=0,H=null;function La(){var a=H||[];H=null;return a}
|
29
29
|
var Qa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:I,useTransition:I,readContext:Ma,useContext:Ma,useReducer:I,useRef:I,useState:I,useInsertionEffect:I,useLayoutEffect:I,useImperativeHandle:I,useEffect:I,useId:Na,useSyncExternalStore:I,useCacheRefresh:function(){return Oa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ea;return b},use:Pa};
|
@@ -31,53 +31,53 @@ function I(){throw Error("This Hook is not supported in Server Components.");}fu
|
|
31
31
|
function Pa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ka;Ka+=1;null===H&&(H=[]);return Ia(H,a,b)}a.$$typeof===za&&Ma()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===za)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));}
|
32
32
|
var Ra={getCacheForType:function(a){var b=(b=x())?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Sa=Array.isArray,Ta=Object.getPrototypeOf;function Ua(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
33
33
|
function Va(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Sa(a))return"[...]";if(null!==a&&a.$$typeof===Wa)return"client";a=Ua(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Wa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
34
|
-
function J(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return J(a.render);case Da:return J(a.type);case
|
34
|
+
function J(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return J(a.render);case Da:return J(a.type);case D:var b=a._payload;a=a._init;try{return J(a(b))}catch(c){}}return""}var Wa=Symbol.for("react.client.reference");
|
35
35
|
function K(a,b){var c=Ua(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var e=0;if(Sa(a)){var d="[";for(var g=0;g<a.length;g++){0<g&&(d+=", ");var f=a[g];f="object"===typeof f&&null!==f?K(f):Va(f);""+g===b?(c=d.length,e=f.length,d+=f):d=10>f.length&&40>d.length+f.length?d+f:d+"..."}d+="]"}else if(a.$$typeof===C)d="<"+J(a.type)+"/>";else{if(a.$$typeof===Wa)return"client";d="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(d+=", ");var h=g[f],k=JSON.stringify(h);d+=('"'+h+'"'===k?h:k)+": ";k=a[h];k=
|
36
|
-
"object"===typeof k&&null!==k?K(k):Va(k);h===b?(c=d.length,e=k.length,d+=k):d=10>k.length&&40>d.length+k.length?d+k:d+"..."}d+="}"}return void 0===b?d:-1<c&&0<e?(a=" ".repeat(c)+"^".repeat(e),"\n "+d+"\n "+a):"\n "+d}var
|
37
|
-
|
38
|
-
function
|
39
|
-
writtenObjects:new WeakMap,identifierPrefix:e||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?
|
40
|
-
function
|
41
|
-
null!==a.destination&&
|
42
|
-
function
|
43
|
-
function
|
44
|
-
function
|
45
|
-
function
|
46
|
-
switch(c.$$typeof){case
|
47
|
-
function
|
48
|
-
a.abortableTasks);var
|
49
|
-
function
|
50
|
-
f];a.pendingChunks++;var
|
51
|
-
function
|
52
|
-
if("function"===typeof d.then){if(void 0!==e){if(null!==b.keyPath||b.implicitSlot)return"$@"+
|
53
|
-
U(a,d).toString(16)}if(d instanceof Set){d=Array.from(d);for(b=0;b<d.length;b++)c=d[b],"object"===typeof c&&null!==c&&(e=a.writtenObjects,void 0===e.get(c)&&e.set(c,-1));return"$W"+U(a,d).toString(16)}if("function"===typeof FormData&&d instanceof FormData)return d=Array.from(d.entries()),"$K"+U(a,d).toString(16);null===d||"object"!==typeof d?c=null:(c=Fa&&d[Fa]||d["@@iterator"],c="function"===typeof c?c:null);if(c)return
|
36
|
+
"object"===typeof k&&null!==k?K(k):Va(k);h===b?(c=d.length,e=k.length,d+=k):d=10>k.length&&40>d.length+k.length?d+k:d+"..."}d+="}"}return void 0===b?d:-1<c&&0<e?(a=" ".repeat(c)+"^".repeat(e),"\n "+d+"\n "+a):"\n "+d}var L=ba.__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.');
|
37
|
+
var Xa=Object.prototype,M=JSON.stringify;function Ya(a){console.error(a)}function Za(){}
|
38
|
+
function $a(a,b,c,e,d){if(null!==L.C&&L.C!==Ra)throw Error("Currently React only supports one RSC renderer at a time.");L.C=Ra;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
|
39
|
+
writtenObjects:new WeakMap,identifierPrefix:e||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?Ya:c,onPostpone:void 0===d?Za:d};a=N(b,a,null,!1,g);f.push(a);return b}var O=null;function x(){if(O)return O;if(B){var a=ua.getStore();if(a)return a}return null}
|
40
|
+
function ab(a,b,c){var e=N(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return e.model=c.value,bb(a,e),e.id;case "rejected":return b=P(a,c.reason),Q(a,e.id,b),e.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(d){"pending"===c.status&&(c.status="fulfilled",c.value=d)},function(d){"pending"===c.status&&(c.status="rejected",c.reason=d)}))}c.then(function(d){e.model=d;bb(a,e)},function(d){e.status=4;d=P(a,d);Q(a,e.id,d);a.abortableTasks.delete(e);
|
41
|
+
null!==a.destination&&R(a,a.destination)});return e.id}function y(a,b,c){c=M(c);var e=a.nextChunkId++;b="H"+b;b=e.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);cb(a)}function db(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
42
|
+
function eb(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:db}}
|
43
|
+
function fb(a,b,c,e,d){var g=b.thenableState;b.thenableState=null;Ka=0;H=g;e=e(d,void 0);if("object"===typeof e&&null!==e&&"function"===typeof e.then){d=e;if("fulfilled"===d.status)return d.value;e=eb(e)}d=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===d?c:d+","+c:null===d&&(b.implicitSlot=!0);a=S(a,b,gb,"",e);b.keyPath=d;b.implicitSlot=g;return a}function hb(a,b,c){return null!==b.keyPath?(a=[C,ya,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
|
44
|
+
function ib(a,b,c,e){var d=a.keyPath;null===c?c=d:null!==d&&(c=d+","+c);b=[C,b,c,e];return a.implicitSlot&&null!==c?[b]:b}
|
45
|
+
function jb(a,b,c,e,d,g){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===r||c.$$typeof===va?ib(b,c,e,g):fb(a,b,e,c,g);if("string"===typeof c)return ib(b,c,e,g);if("symbol"===typeof c)return c===ya&&null===e?(e=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=S(a,b,gb,"",g.children),b.implicitSlot=e,a):ib(b,c,e,g);if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return ib(b,c,e,g);
|
46
|
+
switch(c.$$typeof){case D:var f=c._init;c=f(c._payload);return jb(a,b,c,e,d,g);case Aa:return fb(a,b,e,c.render,g);case Da:return jb(a,b,c.type,e,d,g)}}throw Error("Unsupported Server Component type: "+Va(c));}function bb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return kb(a)},0))}
|
47
|
+
function N(a,b,c,e,d){a.pendingChunks++;var g=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||e||a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:e,ping:function(){return bb(a,f)},toJSON:function(h,k){var l=f.keyPath,A=f.implicitSlot;try{var t=S(a,f,this,h,k)}catch(ca){if(h=ca===Ga?Ja():ca,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===C||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){t=N(a,f.model,f.keyPath,f.implicitSlot,
|
48
|
+
a.abortableTasks);var E=t.ping;h.then(E,E);t.thenableState=La();f.keyPath=l;f.implicitSlot=A;t=k?"$L"+t.id.toString(16):T(t.id)}else if(f.keyPath=l,f.implicitSlot=A,k)a.pendingChunks++,l=a.nextChunkId++,A=P(a,h),Q(a,l,A),t="$L"+l.toString(16);else throw h;}return t},thenableState:null};d.add(f);return f}function T(a){return"$"+a.toString(16)}function lb(a,b,c){a=M(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
49
|
+
function mb(a,b,c,e){var d=e.$$async?e.$$id+"#async":e.$$id,g=a.writtenClientReferences,f=g.get(d);if(void 0!==f)return b[0]===C&&"1"===c?"$L"+f.toString(16):T(f);try{var h=a.bundlerConfig,k=e.$$id;f="";var l=h[k];if(l)f=l.name;else{var A=k.lastIndexOf("#");-1!==A&&(f=k.slice(A+1),l=h[k.slice(0,A)]);if(!l)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var t=!0===e.$$async?[l.id,l.chunks,f,1]:[l.id,l.chunks,
|
50
|
+
f];a.pendingChunks++;var E=a.nextChunkId++,ca=M(t),Fb=E.toString(16)+":I"+ca+"\n",Gb=q.encode(Fb);a.completedImportChunks.push(Gb);g.set(d,E);return b[0]===C&&"1"===c?"$L"+E.toString(16):T(E)}catch(Hb){return a.pendingChunks++,b=a.nextChunkId++,c=P(a,Hb),Q(a,b,c),T(b)}}function U(a,b){b=N(a,b,null,!1,a.abortableTasks);nb(a,b);return b.id}var V=!1;
|
51
|
+
function S(a,b,c,e,d){b.model=d;if(d===C)return"$";if(null===d)return null;if("object"===typeof d){switch(d.$$typeof){case C:c=a.writtenObjects;e=c.get(d);if(void 0!==e){if(null===b.keyPath&&!b.implicitSlot)if(V===d)V=null;else return-1===e?(a=U(a,d),T(a)):T(e)}else c.set(d,-1),c.set(d.props,-2);c=d.props;e=c.ref;return jb(a,b,d.type,d.key,void 0!==e?e:null,c);case D:return b.thenableState=null,c=d._init,d=c(d._payload),S(a,b,gb,"",d)}if(d.$$typeof===r)return mb(a,c,e,d);c=a.writtenObjects;e=c.get(d);
|
52
|
+
if("function"===typeof d.then){if(void 0!==e){if(null!==b.keyPath||b.implicitSlot)return"$@"+ab(a,b,d).toString(16);if(V===d)V=null;else return"$@"+e.toString(16)}a=ab(a,b,d);c.set(d,a);return"$@"+a.toString(16)}if(void 0!==e)if(V===d)V=null;else{if(-1===e)return a=U(a,d),T(a);if(-2!==e)return T(e)}else c.set(d,-1);if(Sa(d))return hb(a,b,d);if(d instanceof Map){d=Array.from(d);for(b=0;b<d.length;b++)c=d[b][0],"object"===typeof c&&null!==c&&(e=a.writtenObjects,void 0===e.get(c)&&e.set(c,-1));return"$Q"+
|
53
|
+
U(a,d).toString(16)}if(d instanceof Set){d=Array.from(d);for(b=0;b<d.length;b++)c=d[b],"object"===typeof c&&null!==c&&(e=a.writtenObjects,void 0===e.get(c)&&e.set(c,-1));return"$W"+U(a,d).toString(16)}if("function"===typeof FormData&&d instanceof FormData)return d=Array.from(d.entries()),"$K"+U(a,d).toString(16);null===d||"object"!==typeof d?c=null:(c=Fa&&d[Fa]||d["@@iterator"],c="function"===typeof c?c:null);if(c)return hb(a,b,Array.from(d));a=Ta(d);if(a!==Xa&&(null===a||null!==Ta(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.");
|
54
54
|
return d}if("string"===typeof d){if("Z"===d[d.length-1]&&c[e]instanceof Date)return"$D"+d;if(1024<=d.length)return a.pendingChunks+=2,b=a.nextChunkId++,d=q.encode(d),c=d.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,d),T(b);a="$"===d[0]?"$"+d:d;return a}if("boolean"===typeof d)return d;if("number"===typeof d)return Number.isFinite(d)?0===d&&-Infinity===1/d?"$-0":d:Infinity===d?"$Infinity":-Infinity===d?"$-Infinity":"$NaN";if("undefined"===typeof d)return"$undefined";
|
55
|
-
if("function"===typeof d){if(d.$$typeof===r)return
|
56
|
-
K(c,e));}if("symbol"===typeof d){b=a.writtenSymbols;var g=b.get(d);if(void 0!==g)return T(g);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.")+K(c,e));a.pendingChunks++;c=a.nextChunkId++;e=
|
57
|
-
" is not supported in Client Component props."+K(c,e));}function
|
58
|
-
function
|
59
|
-
function
|
60
|
-
function
|
61
|
-
function
|
62
|
-
b.close()}function
|
63
|
-
function
|
64
|
-
function
|
65
|
-
function
|
66
|
-
function
|
67
|
-
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
|
68
|
-
|
69
|
-
function
|
70
|
-
function
|
71
|
-
function Z(a,b){var c=a._chunks,e=c.get(b);e||(e=a._formData.get(a._prefix+b),e=null!=e?new
|
72
|
-
function
|
73
|
-
function
|
74
|
-
case "I":return Infinity;case "-":return"$-0"===e?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(e.slice(2)));case "n":return BigInt(e.slice(2));default:e=parseInt(e.slice(1),16);a=Z(a,e);switch(a.status){case "resolved_model":
|
75
|
-
function
|
76
|
-
function
|
77
|
-
exports.decodeAction=function(a,b){var c=new FormData,e=null;a.forEach(function(d,g){g.startsWith("$ACTION_")?g.startsWith("$ACTION_REF_")?(d="$ACTION_"+g.slice(12)+":",d=
|
78
|
-
exports.decodeFormState=function(a,b,c){var e=b.get("$ACTION_KEY");if("string"!==typeof e)return Promise.resolve(null);var d=null;b.forEach(function(f,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",d=
|
55
|
+
if("function"===typeof d){if(d.$$typeof===r)return mb(a,c,e,d);if(d.$$typeof===u)return b=a.writtenServerReferences,c=b.get(d),void 0!==c?a="$F"+c.toString(16):(c=d.$$bound,c={id:d.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(d,a),a="$F"+a.toString(16)),a;if(d.$$typeof===va)return"$T"+d.$$id;if(/^on[A-Z]/.test(e))throw Error("Event handlers cannot be passed to Client Component props."+K(c,e)+"\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.'+
|
56
|
+
K(c,e));}if("symbol"===typeof d){b=a.writtenSymbols;var g=b.get(d);if(void 0!==g)return T(g);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.")+K(c,e));a.pendingChunks++;c=a.nextChunkId++;e=lb(a,c,"$S"+g);a.completedImportChunks.push(e);b.set(d,c);return T(c)}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+
|
57
|
+
" is not supported in Client Component props."+K(c,e));}function P(a,b){var c=O;O=null;try{var e=a.onError;var d=B?ua.run(void 0,e,b):e(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||""}
|
58
|
+
function ob(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+M(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var gb={};
|
59
|
+
function nb(a,b){if(0===b.status)try{V=b.model;var c=S(a,b,gb,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;var e="object"===typeof c&&null!==c?M(c,b.toJSON):M(c),d=b.id.toString(16)+":"+e+"\n",g=q.encode(d);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(l){var f=l===Ga?Ja():l;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=La()}else{a.abortableTasks.delete(b);b.status=4;var k=P(a,f);Q(a,b.id,k)}}finally{}}
|
60
|
+
function kb(a){var b=L.H;L.H=Qa;var c=O;G=O=a;try{var e=a.pingedTasks;a.pingedTasks=[];for(var d=0;d<e.length;d++)nb(a,e[d]);null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),ob(a,g)}finally{L.H=b,G=null,O=c}}
|
61
|
+
function R(a,b){m=new Uint8Array(2048);n=0;try{for(var c=a.completedImportChunks,e=0;e<c.length;e++)a.pendingChunks--,p(b,c[e]);c.splice(0,e);var d=a.completedHintChunks;for(e=0;e<d.length;e++)p(b,d[e]);d.splice(0,e);var g=a.completedRegularChunks;for(e=0;e<g.length;e++)a.pendingChunks--,p(b,g[e]);g.splice(0,e);var f=a.completedErrorChunks;for(e=0;e<f.length;e++)a.pendingChunks--,p(b,f[e]);f.splice(0,e)}finally{a.flushScheduled=!1,m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&
|
62
|
+
b.close()}function pb(a){a.flushScheduled=null!==a.destination;B?setTimeout(function(){return ua.run(a,kb,a)},0):setTimeout(function(){return kb(a)},0)}function cb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return R(a,b)},0)}}
|
63
|
+
function qb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var e=a.nextChunkId++,d=void 0===b?Error("The render was aborted by the server without a reason."):b,g=P(a,d);Q(a,e,g,d);c.forEach(function(f){f.status=3;var h=T(e);f=lb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),ob(a,f)}}
|
64
|
+
function rb(a,b){var c="",e=a[b];if(e)c=e.name;else{var d=b.lastIndexOf("#");-1!==d&&(c=b.slice(d+1),e=a[b.slice(0,d)]);if(!e)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[e.id,e.chunks,c]}var sb=new Map;
|
65
|
+
function tb(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 ub(){}
|
66
|
+
function vb(a){for(var b=a[1],c=[],e=0;e<b.length;){var d=b[e++];b[e++];var g=sb.get(d);if(void 0===g){g=__webpack_chunk_load__(d);c.push(g);var f=sb.set.bind(sb,d,null);g.then(f,ub);sb.set(d,g)}else null!==g&&c.push(g)}return 4===a.length?0===c.length?tb(a[0]):Promise.all(c).then(function(){return tb(a[0])}):0<c.length?Promise.all(c):null}
|
67
|
+
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 wb(a,b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}wb.prototype=Object.create(Promise.prototype);
|
68
|
+
wb.prototype.then=function(a,b){switch(this.status){case "resolved_model":xb(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 yb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
|
69
|
+
function zb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&yb(c,b)}}function Ab(a,b,c,e,d,g){var f=rb(a._bundlerConfig,b);a=vb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=W(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return W(f)});else return W(f);c.then(Bb(e,d,g),Cb(e));return null}var X=null,Y=null;
|
70
|
+
function xb(a){var b=X,c=Y;X=a;Y=null;try{var e=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=e,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=e)}catch(d){a.status="rejected",a.reason=d}finally{X=b,Y=c}}function Db(a,b){a._chunks.forEach(function(c){"pending"===c.status&&zb(c,b)})}
|
71
|
+
function Z(a,b){var c=a._chunks,e=c.get(b);e||(e=a._formData.get(a._prefix+b),e=null!=e?new wb("resolved_model",e,null,a):new wb("pending",null,null,a),c.set(b,e));return e}function Bb(a,b,c){if(Y){var e=Y;e.deps++}else e=Y={deps:1,value:null};return function(d){b[c]=d;e.deps--;0===e.deps&&"blocked"===a.status&&(d=a.value,a.status="fulfilled",a.value=e.value,null!==d&&yb(d,e.value))}}function Cb(a){return function(b){return zb(a,b)}}
|
72
|
+
function Eb(a,b){a=Z(a,b);"resolved_model"===a.status&&xb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
73
|
+
function Ib(a,b,c,e){if("$"===e[0])switch(e[1]){case "$":return e.slice(1);case "@":return b=parseInt(e.slice(2),16),Z(a,b);case "F":return e=parseInt(e.slice(2),16),e=Eb(a,e),Ab(a,e.id,e.bound,X,b,c);case "T":return xa(e.slice(2));case "Q":return b=parseInt(e.slice(2),16),a=Eb(a,b),new Map(a);case "W":return b=parseInt(e.slice(2),16),a=Eb(a,b),new Set(a);case "K":b=e.slice(2);var d=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(d)&&g.append(h.slice(d.length),f)});return g;
|
74
|
+
case "I":return Infinity;case "-":return"$-0"===e?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(e.slice(2)));case "n":return BigInt(e.slice(2));default:e=parseInt(e.slice(1),16);a=Z(a,e);switch(a.status){case "resolved_model":xb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return e=X,a.then(Bb(e,b,c),Cb(e)),null;default:throw a.reason;}}return e}
|
75
|
+
function Jb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,e=new Map,d={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:e,_fromJSON:function(g,f){return"string"===typeof f?Ib(d,this,g,f):f}};return d}function Kb(a){Db(a,Error("Connection closed."))}function Lb(a,b,c){var e=rb(a,b);a=vb(e);return c?Promise.all([c,a]).then(function(d){d=d[0];var g=W(e);return g.bind.apply(g,[null].concat(d))}):a?Promise.resolve(a).then(function(){return W(e)}):Promise.resolve(W(e))}
|
76
|
+
function Mb(a,b,c){a=Jb(b,c,a);Kb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,la)};
|
77
|
+
exports.decodeAction=function(a,b){var c=new FormData,e=null;a.forEach(function(d,g){g.startsWith("$ACTION_")?g.startsWith("$ACTION_REF_")?(d="$ACTION_"+g.slice(12)+":",d=Mb(a,b,d),e=Lb(b,d.id,d.bound)):g.startsWith("$ACTION_ID_")&&(d=g.slice(11),e=Lb(b,d,null)):c.append(g,d)});return null===e?null:e.then(function(d){return d.bind(null,c)})};
|
78
|
+
exports.decodeFormState=function(a,b,c){var e=b.get("$ACTION_KEY");if("string"!==typeof e)return Promise.resolve(null);var d=null;b.forEach(function(f,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",d=Mb(b,c,f))});if(null===d)return Promise.resolve(null);var g=d.id;return Promise.resolve(d.bound).then(function(f){return null===f?null:[a,e,g,f.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);Kb(a);return b};
|
79
79
|
exports.registerClientReference=function(a,b,c){return v(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ha,configurable:!0}})};
|
80
|
-
exports.renderToReadableStream=function(a,b,c){var e
|
81
|
-
h),
|
80
|
+
exports.renderToReadableStream=function(a,b,c){var e=$a(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var d=c.signal;if(d.aborted)qb(e,d.reason);else{var g=function(){qb(e,d.reason);d.removeEventListener("abort",g)};d.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){pb(e)},pull:function(f){if(1===e.status)e.status=2,da(f,e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=f;try{R(e,f)}catch(h){P(e,
|
81
|
+
h),ob(e,h)}}},cancel:function(f){e.destination=null;qb(e,f)}},{highWaterMark:0})};
|
82
82
|
|
83
83
|
//# sourceMappingURL=react-server-dom-webpack-server.edge.production.min.js.map
|