react-server-dom-webpack 19.0.0-canary-96c584661-20240412 → 19.0.0-canary-657428a9e-20240416
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 +40 -7
- package/cjs/react-server-dom-webpack-client.browser.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +7 -7
- package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.edge.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +18 -18
- package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.node.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.node.production.min.js +4 -4
- 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 +40 -7
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +16 -16
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +127 -86
- package/cjs/react-server-dom-webpack-server.browser.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +59 -58
- package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +127 -86
- package/cjs/react-server-dom-webpack-server.edge.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +60 -60
- package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +127 -86
- package/cjs/react-server-dom-webpack-server.node.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.node.production.min.js +60 -61
- 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 +127 -86
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +95 -64
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +58 -58
- 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 +40 -7
- package/umd/react-server-dom-webpack-client.browser.production.min.js +19 -19
- package/umd/react-server-dom-webpack-server.browser.development.js +127 -86
- package/umd/react-server-dom-webpack-server.browser.production.min.js +55 -54
@@ -853,7 +853,14 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
853
853
|
|
854
854
|
default:
|
855
855
|
{
|
856
|
-
if (typeof thenable.status === 'string')
|
856
|
+
if (typeof thenable.status === 'string') {
|
857
|
+
// Only instrument the thenable if the status if not defined. If
|
858
|
+
// it's defined, but an unknown value, assume it's been instrumented by
|
859
|
+
// some custom userspace implementation. We treat it as "pending".
|
860
|
+
// Attach a dummy listener, to ensure that any lazy initialization can
|
861
|
+
// happen. Flight lazily parses JSON when the value is actually awaited.
|
862
|
+
thenable.then(noop, noop);
|
863
|
+
} else {
|
857
864
|
const pendingThenable = thenable;
|
858
865
|
pendingThenable.status = 'pending';
|
859
866
|
pendingThenable.then(fulfilledValue => {
|
@@ -868,21 +875,22 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
868
875
|
rejectedThenable.status = 'rejected';
|
869
876
|
rejectedThenable.reason = error;
|
870
877
|
}
|
871
|
-
});
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
878
|
+
});
|
879
|
+
} // Check one more time in case the thenable resolved synchronously
|
880
|
+
|
881
|
+
|
882
|
+
switch (thenable.status) {
|
883
|
+
case 'fulfilled':
|
884
|
+
{
|
885
|
+
const fulfilledThenable = thenable;
|
886
|
+
return fulfilledThenable.value;
|
887
|
+
}
|
888
|
+
|
889
|
+
case 'rejected':
|
890
|
+
{
|
891
|
+
const rejectedThenable = thenable;
|
892
|
+
throw rejectedThenable.reason;
|
893
|
+
}
|
886
894
|
} // Suspend.
|
887
895
|
//
|
888
896
|
// Throwing here is an implementation detail that allows us to unwind the
|
@@ -1318,6 +1326,7 @@ function createRequest(model, bundlerConfig, onError, identifierPrefix, onPostpo
|
|
1318
1326
|
nextChunkId: 0,
|
1319
1327
|
pendingChunks: 0,
|
1320
1328
|
hints,
|
1329
|
+
abortListeners: new Set(),
|
1321
1330
|
abortableTasks: abortSet,
|
1322
1331
|
pingedTasks: pingedTasks,
|
1323
1332
|
completedImportChunks: [],
|
@@ -1410,10 +1419,7 @@ function serializeThenable(request, task, thenable) {
|
|
1410
1419
|
}
|
1411
1420
|
|
1412
1421
|
request.abortableTasks.delete(newTask);
|
1413
|
-
|
1414
|
-
if (request.destination !== null) {
|
1415
|
-
flushCompletedChunks(request, request.destination);
|
1416
|
-
}
|
1422
|
+
enqueueFlush(request);
|
1417
1423
|
});
|
1418
1424
|
return newTask.id;
|
1419
1425
|
}
|
@@ -1539,7 +1545,6 @@ function renderFunctionComponent(request, task, key, Component, props, owner) {
|
|
1539
1545
|
}
|
1540
1546
|
|
1541
1547
|
function renderFragment(request, task, children) {
|
1542
|
-
|
1543
1548
|
if (task.keyPath !== null) {
|
1544
1549
|
// We have a Server Component that specifies a key but we're now splitting
|
1545
1550
|
// the tree using a fragment.
|
@@ -1566,10 +1571,6 @@ function renderFragment(request, task, children) {
|
|
1566
1571
|
|
1567
1572
|
return [fragment];
|
1568
1573
|
} // Since we're yielding here, that implicitly resets the keyPath context on the
|
1569
|
-
// way up. Which is what we want since we've consumed it. If this changes to
|
1570
|
-
// be recursive serialization, we need to reset the keyPath and implicitSlot,
|
1571
|
-
// before recursing here.
|
1572
|
-
|
1573
1574
|
|
1574
1575
|
return children;
|
1575
1576
|
}
|
@@ -1860,13 +1861,9 @@ function serializeTemporaryReference(request, temporaryReference) {
|
|
1860
1861
|
}
|
1861
1862
|
|
1862
1863
|
function serializeLargeTextString(request, text) {
|
1863
|
-
request.pendingChunks
|
1864
|
+
request.pendingChunks++;
|
1864
1865
|
const textId = request.nextChunkId++;
|
1865
|
-
|
1866
|
-
const binaryLength = byteLengthOfChunk(textChunk);
|
1867
|
-
const row = textId.toString(16) + ':T' + binaryLength.toString(16) + ',';
|
1868
|
-
const headerChunk = stringToChunk(row);
|
1869
|
-
request.completedRegularChunks.push(headerChunk, textChunk);
|
1866
|
+
emitTextChunk(request, textId, text);
|
1870
1867
|
return serializeByValueID(textId);
|
1871
1868
|
}
|
1872
1869
|
|
@@ -2143,7 +2140,7 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
|
|
2143
2140
|
|
2144
2141
|
if (iteratorFn) {
|
2145
2142
|
return renderFragment(request, task, Array.from(value));
|
2146
|
-
}
|
2143
|
+
}
|
2147
2144
|
|
2148
2145
|
|
2149
2146
|
const proto = getPrototypeOf(value);
|
@@ -2346,6 +2343,32 @@ function emitModelChunk(request, id, json) {
|
|
2346
2343
|
request.completedRegularChunks.push(processedChunk);
|
2347
2344
|
}
|
2348
2345
|
|
2346
|
+
function emitTextChunk(request, id, text) {
|
2347
|
+
request.pendingChunks++; // Extra chunk for the header.
|
2348
|
+
|
2349
|
+
const textChunk = stringToChunk(text);
|
2350
|
+
const binaryLength = byteLengthOfChunk(textChunk);
|
2351
|
+
const row = id.toString(16) + ':T' + binaryLength.toString(16) + ',';
|
2352
|
+
const headerChunk = stringToChunk(row);
|
2353
|
+
request.completedRegularChunks.push(headerChunk, textChunk);
|
2354
|
+
}
|
2355
|
+
|
2356
|
+
function emitChunk(request, task, value) {
|
2357
|
+
const id = task.id; // For certain types we have special types, we typically outlined them but
|
2358
|
+
// we can emit them directly for this row instead of through an indirection.
|
2359
|
+
|
2360
|
+
if (typeof value === 'string') {
|
2361
|
+
|
2362
|
+
emitTextChunk(request, id, value);
|
2363
|
+
return;
|
2364
|
+
}
|
2365
|
+
// $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
|
2366
|
+
|
2367
|
+
|
2368
|
+
const json = stringify(value, task.toJSON);
|
2369
|
+
emitModelChunk(request, task.id, json);
|
2370
|
+
}
|
2371
|
+
|
2349
2372
|
const emptyRoot = {};
|
2350
2373
|
|
2351
2374
|
function retryTask(request, task) {
|
@@ -2373,21 +2396,19 @@ function retryTask(request, task) {
|
|
2373
2396
|
|
2374
2397
|
task.keyPath = null;
|
2375
2398
|
task.implicitSlot = false;
|
2376
|
-
let json;
|
2377
2399
|
|
2378
2400
|
if (typeof resolvedModel === 'object' && resolvedModel !== null) {
|
2379
2401
|
// Object might contain unresolved values like additional elements.
|
2380
2402
|
// This is simulating what the JSON loop would do if this was part of it.
|
2381
|
-
|
2382
|
-
json = stringify(resolvedModel, task.toJSON);
|
2403
|
+
emitChunk(request, task, resolvedModel);
|
2383
2404
|
} else {
|
2384
2405
|
// If the value is a string, it means it's a terminal value and we already escaped it
|
2385
2406
|
// We don't need to escape it again so it's not passed the toJSON replacer.
|
2386
2407
|
// $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
|
2387
|
-
json = stringify(resolvedModel);
|
2408
|
+
const json = stringify(resolvedModel);
|
2409
|
+
emitModelChunk(request, task.id, json);
|
2388
2410
|
}
|
2389
2411
|
|
2390
|
-
emitModelChunk(request, task.id, json);
|
2391
2412
|
request.abortableTasks.delete(task);
|
2392
2413
|
task.status = COMPLETED;
|
2393
2414
|
} catch (thrownValue) {
|
@@ -2521,6 +2542,7 @@ function flushCompletedChunks(request, destination) {
|
|
2521
2542
|
if (request.pendingChunks === 0) {
|
2522
2543
|
|
2523
2544
|
close$1(destination);
|
2545
|
+
request.destination = null;
|
2524
2546
|
}
|
2525
2547
|
}
|
2526
2548
|
|
@@ -2574,11 +2596,10 @@ function stopFlowing(request) {
|
|
2574
2596
|
|
2575
2597
|
function abort(request, reason) {
|
2576
2598
|
try {
|
2577
|
-
const abortableTasks = request.abortableTasks;
|
2599
|
+
const abortableTasks = request.abortableTasks; // We have tasks to abort. We'll emit one error row and then emit a reference
|
2600
|
+
// to that row from every row that's still remaining.
|
2578
2601
|
|
2579
2602
|
if (abortableTasks.size > 0) {
|
2580
|
-
// We have tasks to abort. We'll emit one error row and then emit a reference
|
2581
|
-
// to that row from every row that's still remaining.
|
2582
2603
|
request.pendingChunks++;
|
2583
2604
|
const errorId = request.nextChunkId++;
|
2584
2605
|
|
@@ -2592,6 +2613,19 @@ function abort(request, reason) {
|
|
2592
2613
|
abortableTasks.clear();
|
2593
2614
|
}
|
2594
2615
|
|
2616
|
+
const abortListeners = request.abortListeners;
|
2617
|
+
|
2618
|
+
if (abortListeners.size > 0) {
|
2619
|
+
let error;
|
2620
|
+
|
2621
|
+
if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else {
|
2622
|
+
error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason;
|
2623
|
+
}
|
2624
|
+
|
2625
|
+
abortListeners.forEach(callback => callback(error));
|
2626
|
+
abortListeners.clear();
|
2627
|
+
}
|
2628
|
+
|
2595
2629
|
if (request.destination !== null) {
|
2596
2630
|
flushCompletedChunks(request, request.destination);
|
2597
2631
|
}
|
@@ -3019,7 +3053,7 @@ function getOutlinedModel(response, id) {
|
|
3019
3053
|
return chunk.value;
|
3020
3054
|
}
|
3021
3055
|
|
3022
|
-
function parseModelString(response,
|
3056
|
+
function parseModelString(response, obj, key, value) {
|
3023
3057
|
if (value[0] === '$') {
|
3024
3058
|
switch (value[1]) {
|
3025
3059
|
case '$':
|
@@ -3042,7 +3076,7 @@ function parseModelString(response, parentObject, key, value) {
|
|
3042
3076
|
const id = parseInt(value.slice(2), 16); // TODO: Just encode this in the reference inline instead of as a model.
|
3043
3077
|
|
3044
3078
|
const metaData = getOutlinedModel(response, id);
|
3045
|
-
return loadServerReference$1(response, metaData.id, metaData.bound, initializingChunk,
|
3079
|
+
return loadServerReference$1(response, metaData.id, metaData.bound, initializingChunk, obj, key);
|
3046
3080
|
}
|
3047
3081
|
|
3048
3082
|
case 'T':
|
@@ -3126,34 +3160,31 @@ function parseModelString(response, parentObject, key, value) {
|
|
3126
3160
|
// BigInt
|
3127
3161
|
return BigInt(value.slice(2));
|
3128
3162
|
}
|
3163
|
+
}
|
3129
3164
|
|
3130
|
-
default:
|
3131
|
-
{
|
3132
|
-
// We assume that anything else is a reference ID.
|
3133
|
-
const id = parseInt(value.slice(1), 16);
|
3134
|
-
const chunk = getChunk(response, id);
|
3135
3165
|
|
3136
|
-
|
3137
|
-
|
3138
|
-
initializeModelChunk(chunk);
|
3139
|
-
break;
|
3140
|
-
} // The status might have changed after initialization.
|
3166
|
+
const id = parseInt(value.slice(1), 16);
|
3167
|
+
const chunk = getChunk(response, id);
|
3141
3168
|
|
3169
|
+
switch (chunk.status) {
|
3170
|
+
case RESOLVED_MODEL:
|
3171
|
+
initializeModelChunk(chunk);
|
3172
|
+
break;
|
3173
|
+
} // The status might have changed after initialization.
|
3142
3174
|
|
3143
|
-
switch (chunk.status) {
|
3144
|
-
case INITIALIZED:
|
3145
|
-
return chunk.value;
|
3146
3175
|
|
3147
|
-
|
3148
|
-
|
3149
|
-
|
3150
|
-
chunk.then(createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk));
|
3151
|
-
return null;
|
3176
|
+
switch (chunk.status) {
|
3177
|
+
case INITIALIZED:
|
3178
|
+
return chunk.value;
|
3152
3179
|
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3180
|
+
case PENDING:
|
3181
|
+
case BLOCKED:
|
3182
|
+
const parentChunk = initializingChunk;
|
3183
|
+
chunk.then(createModelResolver(parentChunk, obj, key), createModelReject(parentChunk));
|
3184
|
+
return null;
|
3185
|
+
|
3186
|
+
default:
|
3187
|
+
throw chunk.reason;
|
3157
3188
|
}
|
3158
3189
|
}
|
3159
3190
|
|
@@ -12,70 +12,71 @@ var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference"
|
|
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
|
-
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var
|
16
|
-
},a.$$id+"#"+b,a.$$async),Object.defineProperty(
|
15
|
+
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=v({},a.$$id,!0),e=new Proxy(d,la);a.status="fulfilled";a.value=e;return a.then=v(function(g){return Promise.resolve(g(e))},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.");d=a[b];d||(d=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
|
+
},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,ja));return d}
|
17
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=ba.__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?x:null;if(b){var c=b.hints,
|
19
|
-
function pa(a,b,c){if("string"===typeof a){var
|
20
|
-
function qa(a,b){if("string"===typeof a){var c=x?x:null;if(c){var
|
21
|
-
function ra(a,b){if("string"===typeof a){var c=x?x:null;if(c){var
|
18
|
+
function na(a){if("string"===typeof a&&a){var b=x?x:null;if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),y(b,"D",a))}else w.D(a)}}function oa(a,b){if("string"===typeof a){var c=x?x:null;if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"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 d=x?x:null;if(d){var e=d.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,k=c.imageSizes,h="";"string"===typeof f&&""!==f?(h+="["+f+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;g+="[image]"+h}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(c=A(c))?y(d,"L",[a,b,c]):y(d,"L",[a,b]))}else w.L(a,b,c)}}
|
20
|
+
function qa(a,b){if("string"===typeof a){var c=x?x:null;if(c){var d=c.hints,e="m|"+a;if(d.has(e))return;d.add(e);return(b=A(b))?y(c,"m",[a,b]):y(c,"m",a)}w.m(a,b)}}function sa(a,b,c){if("string"===typeof a){var d=x?x:null;if(d){var e=d.hints,g="S|"+a;if(e.has(g))return;e.add(g);return(c=A(c))?y(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?y(d,"S",[a,b]):y(d,"S",a)}w.S(a,b,c)}}
|
21
|
+
function ra(a,b){if("string"===typeof a){var c=x?x:null;if(c){var d=c.hints,e="X|"+a;if(d.has(e))return;d.add(e);return(b=A(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?x:null;if(c){var d=c.hints,e="M|"+a;if(d.has(e))return;d.add(e);return(b=A(b))?y(c,"M",[a,b]):y(c,"M",a)}w.M(a,b)}}function A(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}
|
22
22
|
var ua=Symbol.for("react.temporary.reference"),va={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.");
|
23
23
|
}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.");}};
|
24
24
|
function wa(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:ua},$$id:{value:a}});return new Proxy(a,va)}
|
25
25
|
var B=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Da=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ea=Symbol.iterator,Fa=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`");
|
26
|
-
function
|
27
|
-
function
|
28
|
-
var
|
29
|
-
function
|
30
|
-
function
|
31
|
-
var
|
32
|
-
function
|
33
|
-
function
|
34
|
-
function
|
35
|
-
"object"===typeof
|
36
|
-
var
|
37
|
-
function
|
38
|
-
writtenObjects:new WeakMap,identifierPrefix:
|
39
|
-
function
|
40
|
-
|
26
|
+
function E(){}function Ga(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(E,E),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:"string"===typeof b.status?b.then(E,E):(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;}F=b;throw Fa;}}
|
27
|
+
var F=null;function Ha(){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,Ia=0,H=null;function Ja(){var a=H||[];H=null;return a}
|
28
|
+
var Oa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:I,useTransition:I,readContext:Ka,useContext:Ka,useReducer:I,useRef:I,useState:I,useInsertionEffect:I,useLayoutEffect:I,useImperativeHandle:I,useEffect:I,useId:La,useSyncExternalStore:I,useCacheRefresh:function(){return Ma},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Da;return b},use:Na};
|
29
|
+
function I(){throw Error("This Hook is not supported in Server Components.");}function Ma(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ka(){throw Error("Cannot read a Client Context from a Server Component.");}function La(){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)+":"}
|
30
|
+
function Na(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ia;Ia+=1;null===H&&(H=[]);return Ga(H,a,b)}a.$$typeof===ya&&Ka()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===ya)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));}
|
31
|
+
var Pa={getCacheForType:function(a){var b=(b=x?x:null)?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Qa=Array.isArray,Ra=Object.getPrototypeOf;function Sa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
32
|
+
function Ta(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Qa(a))return"[...]";if(null!==a&&a.$$typeof===Ua)return"client";a=Sa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Ua?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
33
|
+
function J(a){if("string"===typeof a)return a;switch(a){case Aa:return"Suspense";case Ba:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case za:return J(a.render);case Ca:return J(a.type);case C:var b=a._payload;a=a._init;try{return J(a(b))}catch(c){}}return""}var Ua=Symbol.for("react.client.reference");
|
34
|
+
function K(a,b){var c=Sa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Qa(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?K(f):Ta(f);""+g===b?(c=e.length,d=f.length,e+=f):e=10>f.length&&40>e.length+f.length?e+f:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+J(a.type)+"/>";else{if(a.$$typeof===Ua)return"client";e="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(e+=", ");var k=g[f],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h=
|
35
|
+
"object"===typeof h&&null!==h?K(h):Ta(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=ca.__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.');
|
36
|
+
var Va=Object.prototype,M=JSON.stringify;function Wa(a){console.error(a)}function Xa(){}
|
37
|
+
function Ya(a,b,c,d,e){if(null!==L.C&&L.C!==Pa)throw Error("Currently React only supports one RSC renderer at a time.");L.C=Pa;var g=new Set,f=[],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:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
|
38
|
+
writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?Wa:c,onPostpone:void 0===e?Xa:e};a=N(b,a,null,!1,g);f.push(a);return b}var x=null;
|
39
|
+
function Za(a,b,c){var d=N(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,$a(a,d),d.id;case "rejected":return b=O(a,c.reason),P(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;$a(a,d)},function(e){d.status=4;e=O(a,e);P(a,d.id,e);a.abortableTasks.delete(d);
|
40
|
+
ab(a)});return d.id}function y(a,b,c){c=M(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);ab(a)}function bb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
41
41
|
function cb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:C,_payload:a,_init:bb}}
|
42
|
-
function db(a,b,c,e
|
43
|
-
function S(a,b,c,
|
44
|
-
function fb(a,b,c,e,
|
45
|
-
c._init;c=f(c._payload);return fb(a,b,c,e,
|
46
|
-
function
|
47
|
-
a.abortableTasks);var D=u.ping;
|
48
|
-
function ib(a,b,c,
|
49
|
-
f];a.pendingChunks++;var D=a.nextChunkId++,aa=
|
50
|
-
function Q(a,b,c,e
|
51
|
-
if("function"===typeof
|
52
|
-
U(a,
|
53
|
-
return
|
54
|
-
|
55
|
-
|
56
|
-
" is not supported in Client Component props."+
|
57
|
-
function
|
58
|
-
function jb(a,b){if(0===b.status)try{V=b.model;var c=Q(a,b,R,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;
|
59
|
-
function gb(a){var b=
|
60
|
-
function
|
61
|
-
b.close()}function
|
62
|
-
function
|
63
|
-
function
|
64
|
-
function
|
65
|
-
function
|
66
|
-
|
67
|
-
function
|
68
|
-
function
|
69
|
-
function
|
70
|
-
function
|
71
|
-
function
|
72
|
-
|
73
|
-
|
74
|
-
function Jb(a,b
|
75
|
-
|
76
|
-
exports.
|
42
|
+
function db(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ia=0;H=g;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=cb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=Q(a,b,R,"",d);b.keyPath=e;b.implicitSlot=g;return a}function eb(a,b,c){return null!==b.keyPath?(a=[B,xa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
|
43
|
+
function S(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[B,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
|
44
|
+
function fb(a,b,c,d,e,g){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===r||c.$$typeof===ua?S(b,c,d,g):db(a,b,d,c,g);if("string"===typeof c)return S(b,c,d,g);if("symbol"===typeof c)return c===xa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",g.children),b.implicitSlot=d,a):S(b,c,d,g);if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return S(b,c,d,g);switch(c.$$typeof){case C:var f=
|
45
|
+
c._init;c=f(c._payload);return fb(a,b,c,d,e,g);case za:return db(a,b,d,c.render,g);case Ca:return fb(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Ta(c));}function $a(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,gb(a))}
|
46
|
+
function N(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return $a(a,f)},toJSON:function(k,h){var m=f.keyPath,z=f.implicitSlot;try{var u=Q(a,f,this,k,h)}catch(aa){if(k=aa===Fa?Ha():aa,h=f.model,h="object"===typeof h&&null!==h&&(h.$$typeof===B||h.$$typeof===C),"object"===typeof k&&null!==k&&"function"===typeof k.then){u=N(a,f.model,f.keyPath,f.implicitSlot,
|
47
|
+
a.abortableTasks);var D=u.ping;k.then(D,D);u.thenableState=Ja();f.keyPath=m;f.implicitSlot=z;u=h?"$L"+u.id.toString(16):T(u.id)}else if(f.keyPath=m,f.implicitSlot=z,h)a.pendingChunks++,m=a.nextChunkId++,z=O(a,k),P(a,m,z),u="$L"+m.toString(16);else throw k;}return u},thenableState:null};e.add(f);return f}function T(a){return"$"+a.toString(16)}function hb(a,b,c){a=M(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
48
|
+
function ib(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,f=g.get(e);if(void 0!==f)return b[0]===B&&"1"===c?"$L"+f.toString(16):T(f);try{var k=a.bundlerConfig,h=d.$$id;f="";var m=k[h];if(m)f=m.name;else{var z=h.lastIndexOf("#");-1!==z&&(f=h.slice(z+1),m=k[h.slice(0,z)]);if(!m)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 u=!0===d.$$async?[m.id,m.chunks,f,1]:[m.id,m.chunks,
|
49
|
+
f];a.pendingChunks++;var D=a.nextChunkId++,aa=M(u),Fb=D.toString(16)+":I"+aa+"\n",Gb=q.encode(Fb);a.completedImportChunks.push(Gb);g.set(e,D);return b[0]===B&&"1"===c?"$L"+D.toString(16):T(D)}catch(Hb){return a.pendingChunks++,b=a.nextChunkId++,c=O(a,Hb),P(a,b,c),T(b)}}function U(a,b){b=N(a,b,null,!1,a.abortableTasks);jb(a,b);return b.id}var V=!1;
|
50
|
+
function Q(a,b,c,d,e){b.model=e;if(e===B)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case B: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 fb(a,b,e.type,e.key,void 0!==d?d:null,c);case C:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===r)return ib(a,c,d,e);c=a.writtenObjects;d=c.get(e);
|
51
|
+
if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+Za(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=Za(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(Qa(e))return eb(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"+
|
52
|
+
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=Ea&&e[Ea]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return eb(a,b,Array.from(e));a=Ra(e);if(a!==Va&&(null===a||null!==Ra(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.");
|
53
|
+
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++,kb(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===r)return ib(a,c,d,e);if(e.$$typeof===t)return b=
|
54
|
+
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===ua)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.");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.'+
|
55
|
+
K(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return T(g);g=e.description;if(Symbol.for(g)!==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.")+K(c,d));a.pendingChunks++;c=a.nextChunkId++;d=hb(a,c,"$S"+g);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+
|
56
|
+
" is not supported in Client Component props."+K(c,d));}function O(a,b){var c=x;x=null;try{var d=a.onError;var e=d(b)}finally{x=c}if(null!=e&&"string"!==typeof e)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 e+'" instead');return e||""}
|
57
|
+
function lb(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function P(a,b,c){c={digest:c};b=b.toString(16)+":E"+M(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}function mb(a,b,c){b=b.toString(16)+":"+c+"\n";b=q.encode(b);a.completedRegularChunks.push(b)}function kb(a,b,c){a.pendingChunks++;c=q.encode(c);var d=c.byteLength;b=b.toString(16)+":T"+d.toString(16)+",";b=q.encode(b);a.completedRegularChunks.push(b,c)}var R={};
|
58
|
+
function jb(a,b){if(0===b.status)try{V=b.model;var c=Q(a,b,R,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;if("object"===typeof c&&null!==c){var d=b.id;if("string"===typeof c)kb(a,d,c);else{var e=M(c,b.toJSON);mb(a,b.id,e)}}else{var g=M(c);mb(a,b.id,g)}a.abortableTasks.delete(b);b.status=1}catch(m){var f=m===Fa?Ha():m;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var k=b.ping;f.then(k,k);b.thenableState=Ja()}else{a.abortableTasks.delete(b);b.status=4;var h=O(a,f);P(a,b.id,h)}}finally{}}
|
59
|
+
function gb(a){var b=L.H;L.H=Oa;var c=x;G=x=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)jb(a,d[e]);null!==a.destination&&nb(a,a.destination)}catch(g){O(a,g),lb(a,g)}finally{L.H=b,G=null,x=c}}
|
60
|
+
function nb(a,b){l=new Uint8Array(2048);n=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,p(b,c[d]);c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)p(b,e[d]);e.splice(0,d);var g=a.completedRegularChunks;for(d=0;d<g.length;d++)a.pendingChunks--,p(b,g[d]);g.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)a.pendingChunks--,p(b,f[d]);f.splice(0,d)}finally{a.flushScheduled=!1,l&&0<n&&(b.enqueue(new Uint8Array(l.buffer,0,n)),l=null,n=0)}0===
|
61
|
+
a.pendingChunks&&(b.close(),a.destination=null)}function ab(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;nb(a,b)}}
|
62
|
+
function ob(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,g=O(a,e);P(a,d,g,e);c.forEach(function(h){h.status=3;var m=T(d);h=hb(a,h.id,m);a.completedErrorChunks.push(h)});c.clear()}var f=a.abortListeners;if(0<f.size){var k=void 0===b?Error("The render was aborted by the server without a reason."):b;f.forEach(function(h){return h(k)});f.clear()}null!==a.destination&&nb(a,a.destination)}catch(h){O(a,
|
63
|
+
h),lb(a,h)}}function pb(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 qb=new Map;
|
64
|
+
function rb(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 sb(){}
|
65
|
+
function tb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++],g=b[d++],f=qb.get(e);void 0===f?(ub.set(e,g),g=__webpack_chunk_load__(e),c.push(g),f=qb.set.bind(qb,e,null),g.then(f,sb),qb.set(e,g)):null!==f&&c.push(f)}return 4===a.length?0===c.length?rb(a[0]):Promise.all(c).then(function(){return rb(a[0])}):0<c.length?Promise.all(c):null}
|
66
|
+
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]]}var ub=new Map,vb=__webpack_require__.u;__webpack_require__.u=function(a){var b=ub.get(a);return void 0!==b?b:vb(a)};function wb(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}wb.prototype=Object.create(Promise.prototype);
|
67
|
+
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)}
|
68
|
+
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,d,e,g){var f=pb(a._bundlerConfig,b);a=tb(f);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(f);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(f)});else return W(f);c.then(Bb(d,e,g),Cb(d));return null}var X=null,Y=null;
|
69
|
+
function xb(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 Db(a,b){a._chunks.forEach(function(c){"pending"===c.status&&zb(c,b)})}
|
70
|
+
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new wb("resolved_model",d,null,a):new wb("pending",null,null,a),c.set(b,d));return d}function Bb(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&&yb(e,d.value))}}function Cb(a){return function(b){return zb(a,b)}}
|
71
|
+
function Eb(a,b){a=Z(a,b);"resolved_model"===a.status&&xb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
72
|
+
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=Eb(a,d),Ab(a,d.id,d.bound,X,b,c);case "T":return wa(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Eb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Eb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,k){k.startsWith(e)&&g.append(k.slice(e.length),f)});
|
73
|
+
return g;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":xb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Bb(d,b,c),Cb(d)),null;default:throw a.reason;}}return d}
|
74
|
+
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(g,f){return"string"===typeof f?Ib(e,this,g,f):f}};return e}function Kb(a){Db(a,Error("Connection closed."))}function Lb(a,b,c){var d=pb(a,b);a=tb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=W(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}
|
75
|
+
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)};
|
76
|
+
exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,g){g.startsWith("$ACTION_")?g.startsWith("$ACTION_REF_")?(e="$ACTION_"+g.slice(12)+":",e=Mb(a,b,e),d=Lb(b,e.id,e.bound)):g.startsWith("$ACTION_ID_")&&(e=g.slice(11),d=Lb(b,e,null)):c.append(g,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
77
|
+
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(f,k){k.startsWith("$ACTION_REF_")&&(f="$ACTION_"+k.slice(12)+":",e=Mb(b,c,f))});if(null===e)return Promise.resolve(null);var g=e.id;return Promise.resolve(e.bound).then(function(f){return null===f?null:[a,d,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};
|
77
78
|
exports.registerClientReference=function(a,b,c){return v(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ha,configurable:!0}})};
|
78
|
-
exports.renderToReadableStream=function(a,b,c){var
|
79
|
-
f;try{
|
79
|
+
exports.renderToReadableStream=function(a,b,c){var d=Ya(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)ob(d,e.reason);else{var g=function(){ob(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){d.flushScheduled=null!==d.destination;gb(d)},pull:function(f){if(1===d.status)d.status=2,da(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=
|
80
|
+
f;try{nb(d,f)}catch(k){O(d,k),lb(d,k)}}},cancel:function(f){d.destination=null;ob(d,f)}},{highWaterMark:0})};
|
80
81
|
|
81
82
|
//# sourceMappingURL=react-server-dom-webpack-server.browser.production.min.js.map
|