react-server-dom-webpack 18.3.0-next-8b9ac8175-20230131 → 18.3.0-next-2ef24145e-20230202

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.
@@ -165,7 +165,7 @@
165
165
  var stringify = JSON.stringify;
166
166
 
167
167
  function serializeRowHeader(tag, id) {
168
- return tag + id.toString(16) + ':';
168
+ return id.toString(16) + ':' + tag;
169
169
  }
170
170
 
171
171
  function processErrorChunkProd(request, id, digest) {
@@ -192,26 +192,17 @@
192
192
  }
193
193
  function processModelChunk(request, id, model) {
194
194
  var json = stringify(model, request.toJSON);
195
- var row = serializeRowHeader('J', id) + json + '\n';
195
+ var row = id.toString(16) + ':' + json + '\n';
196
196
  return stringToChunk(row);
197
197
  }
198
198
  function processReferenceChunk(request, id, reference) {
199
199
  var json = stringify(reference);
200
- var row = serializeRowHeader('J', id) + json + '\n';
200
+ var row = id.toString(16) + ':' + json + '\n';
201
201
  return stringToChunk(row);
202
202
  }
203
203
  function processModuleChunk(request, id, moduleMetaData) {
204
204
  var json = stringify(moduleMetaData);
205
- var row = serializeRowHeader('M', id) + json + '\n';
206
- return stringToChunk(row);
207
- }
208
- function processProviderChunk(request, id, contextName) {
209
- var row = serializeRowHeader('P', id) + contextName + '\n';
210
- return stringToChunk(row);
211
- }
212
- function processSymbolChunk(request, id, name) {
213
- var json = stringify(name);
214
- var row = serializeRowHeader('S', id) + json + '\n';
205
+ var row = serializeRowHeader('I', id) + json + '\n';
215
206
  return stringToChunk(row);
216
207
  }
217
208
 
@@ -224,7 +215,7 @@
224
215
  return reference.$$typeof === CLIENT_REFERENCE_TAG;
225
216
  }
226
217
  function resolveModuleMetaData(config, clientReference) {
227
- var resolvedModuleData = config[clientReference.filepath][clientReference.name];
218
+ var resolvedModuleData = config.clientManifest[clientReference.filepath][clientReference.name];
228
219
 
229
220
  if (clientReference.async) {
230
221
  return {
@@ -1227,6 +1218,81 @@
1227
1218
  var jsxPropsParents = new WeakMap();
1228
1219
  var jsxChildrenParents = new WeakMap();
1229
1220
 
1221
+ function serializeThenable(request, thenable) {
1222
+ request.pendingChunks++;
1223
+ var newTask = createTask(request, null, getActiveContext(), request.abortableTasks);
1224
+
1225
+ switch (thenable.status) {
1226
+ case 'fulfilled':
1227
+ {
1228
+ // We have the resolved value, we can go ahead and schedule it for serialization.
1229
+ newTask.model = thenable.value;
1230
+ pingTask(request, newTask);
1231
+ return newTask.id;
1232
+ }
1233
+
1234
+ case 'rejected':
1235
+ {
1236
+ var x = thenable.reason;
1237
+ var digest = logRecoverableError(request, x);
1238
+
1239
+ {
1240
+ var _getErrorMessageAndSt = getErrorMessageAndStackDev(x),
1241
+ message = _getErrorMessageAndSt.message,
1242
+ stack = _getErrorMessageAndSt.stack;
1243
+
1244
+ emitErrorChunkDev(request, newTask.id, digest, message, stack);
1245
+ }
1246
+
1247
+ return newTask.id;
1248
+ }
1249
+
1250
+ default:
1251
+ {
1252
+ if (typeof thenable.status === 'string') {
1253
+ // Only instrument the thenable if the status if not defined. If
1254
+ // it's defined, but an unknown value, assume it's been instrumented by
1255
+ // some custom userspace implementation. We treat it as "pending".
1256
+ break;
1257
+ }
1258
+
1259
+ var pendingThenable = thenable;
1260
+ pendingThenable.status = 'pending';
1261
+ pendingThenable.then(function (fulfilledValue) {
1262
+ if (thenable.status === 'pending') {
1263
+ var fulfilledThenable = thenable;
1264
+ fulfilledThenable.status = 'fulfilled';
1265
+ fulfilledThenable.value = fulfilledValue;
1266
+ }
1267
+ }, function (error) {
1268
+ if (thenable.status === 'pending') {
1269
+ var rejectedThenable = thenable;
1270
+ rejectedThenable.status = 'rejected';
1271
+ rejectedThenable.reason = error;
1272
+ }
1273
+ });
1274
+ break;
1275
+ }
1276
+ }
1277
+
1278
+ thenable.then(function (value) {
1279
+ newTask.model = value;
1280
+ pingTask(request, newTask);
1281
+ }, function (reason) {
1282
+ // TODO: Is it safe to directly emit these without being inside a retry?
1283
+ var digest = logRecoverableError(request, reason);
1284
+
1285
+ {
1286
+ var _getErrorMessageAndSt2 = getErrorMessageAndStackDev(reason),
1287
+ _message = _getErrorMessageAndSt2.message,
1288
+ _stack = _getErrorMessageAndSt2.stack;
1289
+
1290
+ emitErrorChunkDev(request, newTask.id, digest, _message, _stack);
1291
+ }
1292
+ });
1293
+ return newTask.id;
1294
+ }
1295
+
1230
1296
  function readThenable(thenable) {
1231
1297
  if (thenable.status === 'fulfilled') {
1232
1298
  return thenable.value;
@@ -1283,7 +1349,7 @@
1283
1349
  return lazyType;
1284
1350
  }
1285
1351
 
1286
- function attemptResolveElement(type, key, ref, props, prevThenableState) {
1352
+ function attemptResolveElement(request, type, key, ref, props, prevThenableState) {
1287
1353
  if (ref !== null && ref !== undefined) {
1288
1354
  // When the ref moves to the regular props object this will implicitly
1289
1355
  // throw for functions. We could probably relax it to a DEV warning for other
@@ -1310,6 +1376,16 @@
1310
1376
  var result = type(props);
1311
1377
 
1312
1378
  if (typeof result === 'object' && result !== null && typeof result.then === 'function') {
1379
+ // When the return value is in children position we can resolve it immediately,
1380
+ // to its value without a wrapper if it's synchronously available.
1381
+ var thenable = result;
1382
+
1383
+ if (thenable.status === 'fulfilled') {
1384
+ return thenable.value;
1385
+ } // TODO: Once we accept Promises as children on the client, we can just return
1386
+ // the thenable here.
1387
+
1388
+
1313
1389
  return createLazyWrapperAroundWakeable(result);
1314
1390
  }
1315
1391
 
@@ -1341,7 +1417,7 @@
1341
1417
  var payload = type._payload;
1342
1418
  var init = type._init;
1343
1419
  var wrappedType = init(payload);
1344
- return attemptResolveElement(wrappedType, key, ref, props, prevThenableState);
1420
+ return attemptResolveElement(request, wrappedType, key, ref, props, prevThenableState);
1345
1421
  }
1346
1422
 
1347
1423
  case REACT_FORWARD_REF_TYPE:
@@ -1353,7 +1429,7 @@
1353
1429
 
1354
1430
  case REACT_MEMO_TYPE:
1355
1431
  {
1356
- return attemptResolveElement(type.type, key, ref, props, prevThenableState);
1432
+ return attemptResolveElement(request, type.type, key, ref, props, prevThenableState);
1357
1433
  }
1358
1434
 
1359
1435
  case REACT_PROVIDER_TYPE:
@@ -1418,8 +1494,20 @@
1418
1494
  return '$' + id.toString(16);
1419
1495
  }
1420
1496
 
1421
- function serializeByRefID(id) {
1422
- return '@' + id.toString(16);
1497
+ function serializeLazyID(id) {
1498
+ return '$L' + id.toString(16);
1499
+ }
1500
+
1501
+ function serializePromiseID(id) {
1502
+ return '$@' + id.toString(16);
1503
+ }
1504
+
1505
+ function serializeSymbolReference(name) {
1506
+ return '$S' + name;
1507
+ }
1508
+
1509
+ function serializeProviderReference(name) {
1510
+ return '$P' + name;
1423
1511
  }
1424
1512
 
1425
1513
  function serializeClientReference(request, parent, key, moduleReference) {
@@ -1434,7 +1522,7 @@
1434
1522
  // knows how to deal with lazy values. This lets us suspend
1435
1523
  // on this component rather than its parent until the code has
1436
1524
  // loaded.
1437
- return serializeByRefID(existingId);
1525
+ return serializeLazyID(existingId);
1438
1526
  }
1439
1527
 
1440
1528
  return serializeByValueID(existingId);
@@ -1453,7 +1541,7 @@
1453
1541
  // knows how to deal with lazy values. This lets us suspend
1454
1542
  // on this component rather than its parent until the code has
1455
1543
  // loaded.
1456
- return serializeByRefID(moduleId);
1544
+ return serializeLazyID(moduleId);
1457
1545
  }
1458
1546
 
1459
1547
  return serializeByValueID(moduleId);
@@ -1463,9 +1551,9 @@
1463
1551
  var digest = logRecoverableError(request, x);
1464
1552
 
1465
1553
  {
1466
- var _getErrorMessageAndSt = getErrorMessageAndStackDev(x),
1467
- message = _getErrorMessageAndSt.message,
1468
- stack = _getErrorMessageAndSt.stack;
1554
+ var _getErrorMessageAndSt3 = getErrorMessageAndStackDev(x),
1555
+ message = _getErrorMessageAndSt3.message,
1556
+ stack = _getErrorMessageAndSt3.stack;
1469
1557
 
1470
1558
  emitErrorChunkDev(request, errorId, digest, message, stack);
1471
1559
  }
@@ -1475,7 +1563,7 @@
1475
1563
  }
1476
1564
 
1477
1565
  function escapeStringValue(value) {
1478
- if (value[0] === '$' || value[0] === '@') {
1566
+ if (value[0] === '$') {
1479
1567
  // We need to escape $ or @ prefixed strings since we use those to encode
1480
1568
  // references to IDs and as special symbol values.
1481
1569
  return '$' + value;
@@ -1847,7 +1935,7 @@
1847
1935
  // TODO: Concatenate keys of parents onto children.
1848
1936
  var element = value; // Attempt to render the Server Component.
1849
1937
 
1850
- value = attemptResolveElement(element.type, element.key, element.ref, element.props, null);
1938
+ value = attemptResolveElement(request, element.type, element.key, element.ref, element.props, null);
1851
1939
  break;
1852
1940
  }
1853
1941
 
@@ -1874,7 +1962,7 @@
1874
1962
  var ping = newTask.ping;
1875
1963
  x.then(ping, ping);
1876
1964
  newTask.thenableState = getThenableStateAfterSuspending();
1877
- return serializeByRefID(newTask.id);
1965
+ return serializeLazyID(newTask.id);
1878
1966
  } else {
1879
1967
  // Something errored. We'll still send everything we have up until this point.
1880
1968
  // We'll replace this element with a lazy reference that throws on the client
@@ -1884,14 +1972,14 @@
1884
1972
  var digest = logRecoverableError(request, x);
1885
1973
 
1886
1974
  {
1887
- var _getErrorMessageAndSt2 = getErrorMessageAndStackDev(x),
1888
- message = _getErrorMessageAndSt2.message,
1889
- stack = _getErrorMessageAndSt2.stack;
1975
+ var _getErrorMessageAndSt4 = getErrorMessageAndStackDev(x),
1976
+ message = _getErrorMessageAndSt4.message,
1977
+ stack = _getErrorMessageAndSt4.stack;
1890
1978
 
1891
1979
  emitErrorChunkDev(request, errorId, digest, message, stack);
1892
1980
  }
1893
1981
 
1894
- return serializeByRefID(errorId);
1982
+ return serializeLazyID(errorId);
1895
1983
  }
1896
1984
  }
1897
1985
  }
@@ -1903,6 +1991,11 @@
1903
1991
  if (typeof value === 'object') {
1904
1992
  if (isClientReference(value)) {
1905
1993
  return serializeClientReference(request, parent, key, value);
1994
+ } else if (typeof value.then === 'function') {
1995
+ // We assume that any object with a .then property is a "Thenable" type,
1996
+ // or a Promise type. Either of which can be represented by a Promise.
1997
+ var promiseId = serializeThenable(request, value);
1998
+ return serializePromiseID(promiseId);
1906
1999
  } else if (value.$$typeof === REACT_PROVIDER_TYPE) {
1907
2000
  var providerKey = value._context._globalName;
1908
2001
  var writtenProviders = request.writtenProviders;
@@ -2062,12 +2155,14 @@
2062
2155
  }
2063
2156
 
2064
2157
  function emitSymbolChunk(request, id, name) {
2065
- var processedChunk = processSymbolChunk(request, id, name);
2158
+ var symbolReference = serializeSymbolReference(name);
2159
+ var processedChunk = processReferenceChunk(request, id, symbolReference);
2066
2160
  request.completedModuleChunks.push(processedChunk);
2067
2161
  }
2068
2162
 
2069
2163
  function emitProviderChunk(request, id, contextName) {
2070
- var processedChunk = processProviderChunk(request, id, contextName);
2164
+ var contextReference = serializeProviderReference(contextName);
2165
+ var processedChunk = processReferenceChunk(request, id, contextReference);
2071
2166
  request.completedJSONChunks.push(processedChunk);
2072
2167
  }
2073
2168
 
@@ -2092,7 +2187,7 @@
2092
2187
  // also suspends.
2093
2188
 
2094
2189
  task.model = value;
2095
- value = attemptResolveElement(element.type, element.key, element.ref, element.props, prevThenableState); // Successfully finished this component. We're going to keep rendering
2190
+ value = attemptResolveElement(request, element.type, element.key, element.ref, element.props, prevThenableState); // Successfully finished this component. We're going to keep rendering
2096
2191
  // using the same task, but we reset its thenable state before continuing.
2097
2192
 
2098
2193
  task.thenableState = null; // Keep rendering and reuse the same task. This inner loop is separate
@@ -2103,7 +2198,7 @@
2103
2198
  // TODO: Concatenate keys of parents onto children.
2104
2199
  var nextElement = value;
2105
2200
  task.model = value;
2106
- value = attemptResolveElement(nextElement.type, nextElement.key, nextElement.ref, nextElement.props, null);
2201
+ value = attemptResolveElement(request, nextElement.type, nextElement.key, nextElement.ref, nextElement.props, null);
2107
2202
  }
2108
2203
  }
2109
2204
 
@@ -2131,9 +2226,9 @@
2131
2226
  var digest = logRecoverableError(request, x);
2132
2227
 
2133
2228
  {
2134
- var _getErrorMessageAndSt3 = getErrorMessageAndStackDev(x),
2135
- message = _getErrorMessageAndSt3.message,
2136
- stack = _getErrorMessageAndSt3.stack;
2229
+ var _getErrorMessageAndSt5 = getErrorMessageAndStackDev(x),
2230
+ message = _getErrorMessageAndSt5.message,
2231
+ stack = _getErrorMessageAndSt5.stack;
2137
2232
 
2138
2233
  emitErrorChunkDev(request, task.id, digest, message, stack);
2139
2234
  }
@@ -2299,9 +2394,9 @@
2299
2394
  var errorId = request.nextChunkId++;
2300
2395
 
2301
2396
  if (true) {
2302
- var _getErrorMessageAndSt4 = getErrorMessageAndStackDev(error),
2303
- message = _getErrorMessageAndSt4.message,
2304
- stack = _getErrorMessageAndSt4.stack;
2397
+ var _getErrorMessageAndSt6 = getErrorMessageAndStackDev(error),
2398
+ message = _getErrorMessageAndSt6.message,
2399
+ stack = _getErrorMessageAndSt6.stack;
2305
2400
 
2306
2401
  emitErrorChunkDev(request, errorId, digest, message, stack);
2307
2402
  } else {
@@ -2344,8 +2439,8 @@
2344
2439
  return rootContextSnapshot;
2345
2440
  }
2346
2441
 
2347
- function renderToReadableStream(model, webpackMap, options) {
2348
- var request = createRequest(model, webpackMap, options ? options.onError : undefined, options ? options.context : undefined, options ? options.identifierPrefix : undefined);
2442
+ function renderToReadableStream(model, webpackMaps, options) {
2443
+ var request = createRequest(model, webpackMaps, options ? options.onError : undefined, options ? options.context : undefined, options ? options.identifierPrefix : undefined);
2349
2444
 
2350
2445
  if (options && options.signal) {
2351
2446
  var signal = options.signal;
@@ -7,44 +7,46 @@
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- (function(){'use strict';(function(r,z){"object"===typeof exports&&"undefined"!==typeof module?z(exports,require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react","react-dom"],z):(r=r||self,z(r.ReactServerDOMServer={},r.React,r.ReactDOM))})(this,function(r,z,G){function N(a,c){if(0!==c.length)if(512<c.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(c);else{var e=p.length-n;e<c.length&&(0===e?a.enqueue(p):(p.set(c.subarray(0,
11
- e),n),a.enqueue(p),c=c.subarray(e)),p=new Uint8Array(512),n=0);p.set(c,n);n+=c.length}return!0}function b(a){return x.encode(a)}function ca(a,c){"function"===typeof a.error?a.error(c):a.close()}function m(a,c,e,d,b,f,g){this.acceptsBooleans=2===c||3===c||4===c;this.attributeName=d;this.attributeNamespace=b;this.mustUseProperty=e;this.propertyName=a;this.type=c;this.sanitizeURL=f;this.removeEmptyString=g}function H(a,c){if(a!==c){a.context._currentValue=a.parentValue;a=a.parent;var e=c.parent;if(null===
12
- a){if(null!==e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");H(a,e);c.context._currentValue=c.value}}}function da(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&da(a)}function ea(a){var c=a.parent;null!==c&&ea(c);a.context._currentValue=a.value}function fa(a,c){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
13
- a.depth===c.depth?H(a,c):fa(a,c)}function ha(a,c){var e=c.parent;if(null===e)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===e.depth?H(a,e):ha(a,e);c.context._currentValue=c.value}function O(a){var c=u;c!==a&&(null===c?ea(a):null===a?da(c):c.depth===a.depth?H(c,a):c.depth>a.depth?fa(c,a):ha(c,a),u=a)}function ia(a,c){var e=a._currentValue;a._currentValue=c;var d=u;return u=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:e,
14
- value:c}}function ja(){}function Aa(a,c,e){e=a[e];void 0===e?a.push(c):e!==c&&(c.then(ja,ja),c=e);switch(c.status){case "fulfilled":return c.value;case "rejected":throw c.reason;default:if("string"!==typeof c.status)switch(a=c,a.status="pending",a.then(function(a){if("pending"===c.status){var d=c;d.status="fulfilled";d.value=a}},function(a){if("pending"===c.status){var d=c;d.status="rejected";d.reason=a}}),c.status){case "fulfilled":return c.value;case "rejected":throw c.reason;}I=c;throw P;}}function ka(){if(null===
15
- I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}function la(){var a=v;v=null;return a}function ma(a){return a._currentValue}function q(){throw Error("This Hook is not supported in Server Components.");}function Ba(){throw Error("Refreshing the cache is not supported in Server Components.");}function Q(){return(new AbortController).signal}function na(){if(A)return A;if(R){var a=oa.getStore();if(a)return a}return new Map}function Ca(a){console.error(a)}
16
- function Da(a,c,e,d,b){if(null!==S.current&&S.current!==pa)throw Error("Currently React only supports one RSC renderer at a time.");S.current=pa;var k=new Set,g=[],h={status:0,fatalError:null,destination:null,bundlerConfig:c,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:k,pingedTasks:g,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:b||"",identifierCount:1,onError:void 0===
17
- e?Ca:e,toJSON:function(a,c){return Ea(h,this,a,c)}};h.pendingChunks++;c=Fa(d);a=qa(h,a,c,k);g.push(a);return h}function Ga(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function Ha(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(c){"pending"===a.status&&(a.status="fulfilled",a.value=c)},function(c){"pending"===a.status&&(a.status="rejected",a.reason=c)}))}return{$$typeof:B,
18
- _payload:a,_init:Ga}}function C(a,c,e,d,b){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof a){if(a.$$typeof===J)return[t,a,c,d];K=0;v=b;d=a(d);return"object"===typeof d&&null!==d&&"function"===typeof d.then?Ha(d):d}if("string"===typeof a)return[t,a,c,d];if("symbol"===typeof a)return a===Ia?d.children:[t,a,c,d];if(null!=a&&"object"===typeof a){if(a.$$typeof===J)return[t,a,c,d];switch(a.$$typeof){case B:var k=a._init;
19
- a=k(a._payload);return C(a,c,e,d,b);case ra:return c=a.render,K=0,v=b,c(d,void 0);case sa:return C(a.type,c,e,d,b);case ta:return ia(a._context,d.value),[t,a,c,{value:d.value,children:d.children,__pop:ua}]}}throw Error("Unsupported Server Component type: "+T(a));}function qa(a,c,e,d){var b={id:a.nextChunkId++,status:0,model:c,context:e,ping:function(){var c=a.pingedTasks;c.push(b);1===c.length&&U(a)},thenableState:null};d.add(b);return b}function va(a,c,e,d){var b=d.filepath+"#"+d.name+(d.async?"#async":
20
- ""),f=a.writtenModules,g=f.get(b);if(void 0!==g)return c[0]===t&&"1"===e?"@"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig[d.filepath][d.name];var l=d.async?{id:h.id,chunks:h.chunks,name:h.name,async:!0}:h;a.pendingChunks++;var m=a.nextChunkId++,n=D(l),p="M"+m.toString(16)+":"+n+"\n";var q=x.encode(p);a.completedModuleChunks.push(q);f.set(b,m);return c[0]===t&&"1"===e?"@"+m.toString(16):"$"+m.toString(16)}catch(Ja){return a.pendingChunks++,c=a.nextChunkId++,e=y(a,Ja),L(a,c,e),"$"+c.toString(16)}}
21
- function wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,e){return e})}function T(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(xa(a))return"[...]";a=wa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function M(a){if("string"===typeof a)return a;switch(a){case Ka:return"Suspense";case La:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ra:return M(a.render);
22
- case sa:return M(a.type);case B:var c=a._payload;a=a._init;try{return M(a(c))}catch(e){}}return""}function w(a,c){var e=wa(a);if("Object"!==e&&"Array"!==e)return e;e=-1;var d=0;if(xa(a)){var b="[";for(var f=0;f<a.length;f++){0<f&&(b+=", ");var g=a[f];g="object"===typeof g&&null!==g?w(g):T(g);""+f===c?(e=b.length,d=g.length,b+=g):b=10>g.length&&40>b.length+g.length?b+g:b+"..."}b+="]"}else if(a.$$typeof===t)b="<"+M(a.type)+"/>";else{b="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(b+=", ");var h=
23
- f[g],l=JSON.stringify(h);b+=('"'+h+'"'===l?h:l)+": ";l=a[h];l="object"===typeof l&&null!==l?w(l):T(l);h===c?(e=b.length,d=l.length,b+=l):b=10>l.length&&40>b.length+l.length?b+l:b+"..."}b+="}"}return void 0===c?b:-1<e&&0<d?(a=" ".repeat(e)+"^".repeat(d),"\n "+b+"\n "+a):"\n "+b}function Ea(a,c,b,d){switch(d){case t:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===t||d.$$typeof===B);)try{switch(d.$$typeof){case t:var e=d;d=C(e.type,e.key,e.ref,e.props,null);break;case B:var f=d._init;
24
- d=f(d._payload)}}catch(g){b=g===P?ka():g;if("object"===typeof b&&null!==b&&"function"===typeof b.then)return a.pendingChunks++,a=qa(a,d,u,a.abortableTasks),d=a.ping,b.then(d,d),a.thenableState=la(),"@"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;b=y(a,b);L(a,d,b);return"@"+d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===J)return va(a,c,b,d);if(d.$$typeof===ta)return e=d._context._globalName,c=a.writtenProviders,d=c.get(b),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,
25
- c.set(e,d),b="P"+d.toString(16)+":"+e+"\n",b=x.encode(b),a.completedJSONChunks.push(b)),"$"+d.toString(16);if(d===ua){a=u;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=d===ya?a.context._defaultValue:d;u=a.parent;return}return d}if("string"===typeof d)return a="$"===d[0]||"@"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d||"undefined"===typeof d)return d;if("function"===typeof d){if(d.$$typeof===
26
- J)return va(a,c,b,d);if(/^on[A-Z]/.test(b))throw Error("Event handlers cannot be passed to Client Component props."+w(c,b)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+w(c,b));}if("symbol"===typeof d){e=a.writtenSymbols;f=e.get(d);if(void 0!==f)return"$"+f.toString(16);f=d.description;if(Symbol.for(f)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+
27
- (d.description+") cannot be found among global symbols.")+w(c,b));a.pendingChunks++;b=a.nextChunkId++;c=D(f);c="S"+b.toString(16)+":"+c+"\n";c=x.encode(c);a.completedModuleChunks.push(c);e.set(d,b);return"$"+b.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+w(c,b));throw Error("Type "+typeof d+" is not supported in Client Component props."+w(c,b));}function y(a,c){a=a.onError;c=a(c);if(null!=c&&"string"!==typeof c)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 "'+
28
- typeof c+'" instead');return c||""}function V(a,c){null!==a.destination?(a.status=2,ca(a.destination,c)):(a.status=1,a.fatalError=c)}function L(a,c,b){b={digest:b};c="E"+c.toString(16)+":"+D(b)+"\n";c=x.encode(c);a.completedErrorChunks.push(c)}function U(a){var c=W.current,b=A;W.current=Ma;A=a.cache;E=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var k=0;k<d.length;k++){var f=d[k];var g=a;if(0===f.status){O(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===t){var l=h,m=
29
- f.thenableState;f.model=h;h=C(l.type,l.key,l.ref,l.props,m);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===t;)l=h,f.model=h,h=C(l.type,l.key,l.ref,l.props,null)}var n=f.id,p=D(h,g.toJSON),q="J"+n.toString(16)+":"+p+"\n";var u=x.encode(q);g.completedJSONChunks.push(u);g.abortableTasks.delete(f);f.status=1}catch(F){var r=F===P?ka():F;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var v=f.ping;r.then(v,v);f.thenableState=la()}else{g.abortableTasks.delete(f);f.status=
30
- 4;var w=y(g,r);L(g,f.id,w)}}}}null!==a.destination&&X(a,a.destination)}catch(F){y(a,F),V(a,F)}finally{W.current=c,A=b,E=null}}function X(a,c){p=new Uint8Array(512);n=0;try{for(var b=a.completedModuleChunks,d=0;d<b.length;d++)if(a.pendingChunks--,!N(c,b[d])){a.destination=null;d++;break}b.splice(0,d);var k=a.completedJSONChunks;for(d=0;d<k.length;d++)if(a.pendingChunks--,!N(c,k[d])){a.destination=null;d++;break}k.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,
31
- !N(c,f[d])){a.destination=null;d++;break}f.splice(0,d)}finally{p&&0<n&&(c.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&c.close()}function za(a,c){try{var b=a.abortableTasks;if(0<b.size){var d=y(a,void 0===c?Error("The render was aborted by the server without a reason."):c);a.pendingChunks++;var k=a.nextChunkId++;L(a,k,d);b.forEach(function(c){c.status=3;var b="$"+k.toString(16);c=c.id;b=D(b);b="J"+c.toString(16)+":"+b+"\n";b=x.encode(b);a.completedErrorChunks.push(b)});b.clear()}null!==
32
- a.destination&&X(a,a.destination)}catch(f){y(a,f),V(a,f)}}function Fa(a){if(a){var b=u;O(null);for(var e=0;e<a.length;e++){var d=a[e],k=d[0];d=d[1];Y[k]||(Y[k]=z.createServerContext(k,ya));ia(Y[k],d)}a=u;O(b);return a}return null}var R="function"===typeof AsyncLocalStorage,oa=R?new AsyncLocalStorage:null,p=null,n=0,x=new TextEncoder,D=JSON.stringify,J=Symbol.for("react.client.reference"),t=Symbol.for("react.element"),Ia=Symbol.for("react.fragment"),ta=Symbol.for("react.provider"),Na=Symbol.for("react.server_context"),
33
- ra=Symbol.for("react.forward_ref"),Ka=Symbol.for("react.suspense"),La=Symbol.for("react.suspense_list"),sa=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),ya=Symbol.for("react.default_value"),Oa=Symbol.for("react.memo_cache_sentinel");"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new m(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor",
34
- "for"],["httpEquiv","http-equiv"]].forEach(function(a){new m(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new m(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new m(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new m(a,
35
- 3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new m(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new m(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new m(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new m(a,5,!1,a.toLowerCase(),null,!1,!1)});var Z=/[\-:]([a-z])/g,aa=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=
36
- a.replace(Z,aa);new m(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Z,aa);new m(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Z,aa);new m(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!1,!1)});new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",
37
- !0,!1);["src","href","action","formAction"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!0,!0)});var ba={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
38
- fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pa=["Webkit","ms","Moz","O"];Object.keys(ba).forEach(function(a){Pa.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);ba[b]=ba[a]})});var xa=Array.isArray;b('"></template>');b("<script>");b("\x3c/script>");b('<script src="');b('<script type="module" src="');
10
+ (function(){'use strict';(function(r,y){"object"===typeof exports&&"undefined"!==typeof module?y(exports,require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react","react-dom"],y):(r=r||self,y(r.ReactServerDOMServer={},r.React,r.ReactDOM))})(this,function(r,y,G){function N(a,c){if(0!==c.length)if(512<c.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(c);else{var e=p.length-n;e<c.length&&(0===e?a.enqueue(p):(p.set(c.subarray(0,
11
+ e),n),a.enqueue(p),c=c.subarray(e)),p=new Uint8Array(512),n=0);p.set(c,n);n+=c.length}return!0}function b(a){return A.encode(a)}function fa(a,c){"function"===typeof a.error?a.error(c):a.close()}function O(a,c,e){a=H(e);c=c.toString(16)+":"+a+"\n";return A.encode(c)}function l(a,c,e,d,m,b,g){this.acceptsBooleans=2===c||3===c||4===c;this.attributeName=d;this.attributeNamespace=m;this.mustUseProperty=e;this.propertyName=a;this.type=c;this.sanitizeURL=b;this.removeEmptyString=g}function I(a,c){if(a!==
12
+ c){a.context._currentValue=a.parentValue;a=a.parent;var e=c.parent;if(null===a){if(null!==e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");I(a,e);c.context._currentValue=c.value}}}function ha(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ha(a)}function ia(a){var c=a.parent;null!==c&&ia(c);a.context._currentValue=a.value}function ja(a,c){a.context._currentValue=
13
+ a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?I(a,c):ja(a,c)}function ka(a,c){var e=c.parent;if(null===e)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===e.depth?I(a,e):ka(a,e);c.context._currentValue=c.value}function P(a){var c=u;c!==a&&(null===c?ia(a):null===a?ha(c):c.depth===a.depth?I(c,a):c.depth>a.depth?ja(c,a):ka(c,a),
14
+ u=a)}function la(a,c){var e=a._currentValue;a._currentValue=c;var d=u;return u=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:e,value:c}}function ma(){}function Ca(a,c,e){e=a[e];void 0===e?a.push(c):e!==c&&(c.then(ma,ma),c=e);switch(c.status){case "fulfilled":return c.value;case "rejected":throw c.reason;default:if("string"!==typeof c.status)switch(a=c,a.status="pending",a.then(function(a){if("pending"===c.status){var e=c;e.status="fulfilled";e.value=a}},function(a){if("pending"===c.status){var e=
15
+ c;e.status="rejected";e.reason=a}}),c.status){case "fulfilled":return c.value;case "rejected":throw c.reason;}J=c;throw Q;}}function na(){if(null===J)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=J;J=null;return a}function oa(){var a=v;v=null;return a}function pa(a){return a._currentValue}function q(){throw Error("This Hook is not supported in Server Components.");}function Da(){throw Error("Refreshing the cache is not supported in Server Components.");
16
+ }function R(){return(new AbortController).signal}function qa(){if(B)return B;if(S){var a=ra.getStore();if(a)return a}return new Map}function Ea(a){console.error(a)}function Fa(a,c,e,d,m){if(null!==T.current&&T.current!==sa)throw Error("Currently React only supports one RSC renderer at a time.");T.current=sa;var b=new Set,g=[],h={status:0,fatalError:null,destination:null,bundlerConfig:c,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:b,pingedTasks:g,completedModuleChunks:[],completedJSONChunks:[],
17
+ completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:m||"",identifierCount:1,onError:void 0===e?Ea:e,toJSON:function(a,c){return Ga(h,this,a,c)}};h.pendingChunks++;c=Ha(d);a=U(h,a,c,b);g.push(a);return h}function Ia(a,c){a.pendingChunks++;var e=U(a,null,u,a.abortableTasks);switch(c.status){case "fulfilled":return e.model=c.value,V(a,e),e.id;case "rejected":var d=w(a,c.reason);z(a,e.id,d);return e.id;default:"string"!==typeof c.status&&(c.status=
18
+ "pending",c.then(function(a){"pending"===c.status&&(c.status="fulfilled",c.value=a)},function(a){"pending"===c.status&&(c.status="rejected",c.reason=a)}))}c.then(function(c){e.model=c;V(a,e)},function(c){c=w(a,c);z(a,e.id,c)});return e.id}function Ja(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function Ka(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(c){"pending"===
19
+ a.status&&(a.status="fulfilled",a.value=c)},function(c){"pending"===a.status&&(a.status="rejected",a.reason=c)}))}return{$$typeof:C,_payload:a,_init:Ja}}function D(a,c,e,d,b,f){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c){if(c.$$typeof===K)return[t,c,e,b];L=0;v=f;b=c(b);return"object"===typeof b&&null!==b&&"function"===typeof b.then?"fulfilled"===b.status?b.value:Ka(b):b}if("string"===typeof c)return[t,
20
+ c,e,b];if("symbol"===typeof c)return c===La?b.children:[t,c,e,b];if(null!=c&&"object"===typeof c){if(c.$$typeof===K)return[t,c,e,b];switch(c.$$typeof){case C:var m=c._init;c=m(c._payload);return D(a,c,e,d,b,f);case ta:return a=c.render,L=0,v=f,a(b,void 0);case ua:return D(a,c.type,e,d,b,f);case va:return la(c._context,b.value),[t,c,e,{value:b.value,children:b.children,__pop:wa}]}}throw Error("Unsupported Server Component type: "+W(c));}function V(a,c){var e=a.pingedTasks;e.push(c);1===e.length&&X(a)}
21
+ function U(a,c,e,d){var b={id:a.nextChunkId++,status:0,model:c,context:e,ping:function(){return V(a,b)},thenableState:null};d.add(b);return b}function xa(a,c,e,d){var b=d.filepath+"#"+d.name+(d.async?"#async":""),f=a.writtenModules,g=f.get(b);if(void 0!==g)return c[0]===t&&"1"===e?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig.clientManifest[d.filepath][d.name];var k=d.async?{id:h.id,chunks:h.chunks,name:h.name,async:!0}:h;a.pendingChunks++;var l=a.nextChunkId++,n=H(k),p=l.toString(16)+
22
+ ":I"+n+"\n";var q=A.encode(p);a.completedModuleChunks.push(q);f.set(b,l);return c[0]===t&&"1"===e?"$L"+l.toString(16):"$"+l.toString(16)}catch(Ma){return a.pendingChunks++,c=a.nextChunkId++,e=w(a,Ma),z(a,c,e),"$"+c.toString(16)}}function ya(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,e){return e})}function W(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(za(a))return"[...]";a=ya(a);return"Object"===
23
+ a?"{...}":a;case "function":return"function";default:return String(a)}}function M(a){if("string"===typeof a)return a;switch(a){case Na:return"Suspense";case Oa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ta:return M(a.render);case ua:return M(a.type);case C:var c=a._payload;a=a._init;try{return M(a(c))}catch(e){}}return""}function x(a,c){var e=ya(a);if("Object"!==e&&"Array"!==e)return e;e=-1;var d=0;if(za(a)){var b="[";for(var f=0;f<a.length;f++){0<f&&(b+=", ");var g=a[f];
24
+ g="object"===typeof g&&null!==g?x(g):W(g);""+f===c?(e=b.length,d=g.length,b+=g):b=10>g.length&&40>b.length+g.length?b+g:b+"..."}b+="]"}else if(a.$$typeof===t)b="<"+M(a.type)+"/>";else{b="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(b+=", ");var h=f[g],k=JSON.stringify(h);b+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?x(k):W(k);h===c?(e=b.length,d=k.length,b+=k):b=10>k.length&&40>b.length+k.length?b+k:b+"..."}b+="}"}return void 0===c?b:-1<e&&0<d?(a=" ".repeat(e)+"^".repeat(d),
25
+ "\n "+b+"\n "+a):"\n "+b}function Ga(a,c,b,d){switch(d){case t:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===t||d.$$typeof===C);)try{switch(d.$$typeof){case t:var e=d;d=D(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=d._init;d=f(d._payload)}}catch(g){b=g===Q?na():g;if("object"===typeof b&&null!==b&&"function"===typeof b.then)return a.pendingChunks++,a=U(a,d,u,a.abortableTasks),d=a.ping,b.then(d,d),a.thenableState=oa(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;
26
+ b=w(a,b);z(a,d,b);return"$L"+d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===K)return xa(a,c,b,d);if("function"===typeof d.then)return"$@"+Ia(a,d).toString(16);if(d.$$typeof===va)return d=d._context._globalName,c=a.writtenProviders,b=c.get(b),void 0===b&&(a.pendingChunks++,b=a.nextChunkId++,c.set(d,b),d=O(a,b,"$P"+d),a.completedJSONChunks.push(d)),"$"+b.toString(16);if(d===wa){a=u;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
27
+ d=a.parentValue;a.context._currentValue=d===Aa?a.context._defaultValue:d;u=a.parent;return}return d}if("string"===typeof d)return a="$"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d||"undefined"===typeof d)return d;if("function"===typeof d){if(d.$$typeof===K)return xa(a,c,b,d);if(/^on[A-Z]/.test(b))throw Error("Event handlers cannot be passed to Client Component props."+x(c,b)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
28
+ x(c,b));}if("symbol"===typeof d){e=a.writtenSymbols;f=e.get(d);if(void 0!==f)return"$"+f.toString(16);f=d.description;if(Symbol.for(f)!==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.")+x(c,b));a.pendingChunks++;b=a.nextChunkId++;c=O(a,b,"$S"+f);a.completedModuleChunks.push(c);e.set(d,b);return"$"+b.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+
29
+ x(c,b));throw Error("Type "+typeof d+" is not supported in Client Component props."+x(c,b));}function w(a,c){a=a.onError;c=a(c);if(null!=c&&"string"!==typeof c)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 c+'" instead');return c||""}function Y(a,c){null!==a.destination?(a.status=2,fa(a.destination,c)):(a.status=1,a.fatalError=c)}function z(a,
30
+ c,b){b={digest:b};c=c.toString(16)+":E"+H(b)+"\n";c=A.encode(c);a.completedErrorChunks.push(c)}function X(a){var c=Z.current,b=B;Z.current=Pa;B=a.cache;E=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var m=0;m<d.length;m++){var f=d[m];var g=a;if(0===f.status){P(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===t){var k=h,l=f.thenableState;f.model=h;h=D(g,k.type,k.key,k.ref,k.props,l);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===t;)k=h,f.model=h,h=
31
+ D(g,k.type,k.key,k.ref,k.props,null)}var n=f.id,p=H(h,g.toJSON),q=n.toString(16)+":"+p+"\n";var u=A.encode(q);g.completedJSONChunks.push(u);g.abortableTasks.delete(f);f.status=1}catch(F){var r=F===Q?na():F;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var v=f.ping;r.then(v,v);f.thenableState=oa()}else{g.abortableTasks.delete(f);f.status=4;var x=w(g,r);z(g,f.id,x)}}}}null!==a.destination&&aa(a,a.destination)}catch(F){w(a,F),Y(a,F)}finally{Z.current=c,B=b,E=null}}function aa(a,c){p=
32
+ new Uint8Array(512);n=0;try{for(var b=a.completedModuleChunks,d=0;d<b.length;d++)if(a.pendingChunks--,!N(c,b[d])){a.destination=null;d++;break}b.splice(0,d);var m=a.completedJSONChunks;for(d=0;d<m.length;d++)if(a.pendingChunks--,!N(c,m[d])){a.destination=null;d++;break}m.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!N(c,f[d])){a.destination=null;d++;break}f.splice(0,d)}finally{p&&0<n&&(c.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&
33
+ c.close()}function Ba(a,c){try{var b=a.abortableTasks;if(0<b.size){var d=w(a,void 0===c?Error("The render was aborted by the server without a reason."):c);a.pendingChunks++;var m=a.nextChunkId++;z(a,m,d);b.forEach(function(c){c.status=3;var b="$"+m.toString(16);c=O(a,c.id,b);a.completedErrorChunks.push(c)});b.clear()}null!==a.destination&&aa(a,a.destination)}catch(f){w(a,f),Y(a,f)}}function Ha(a){if(a){var c=u;P(null);for(var b=0;b<a.length;b++){var d=a[b],m=d[0];d=d[1];ba[m]||(ba[m]=y.createServerContext(m,
34
+ Aa));la(ba[m],d)}a=u;P(c);return a}return null}var S="function"===typeof AsyncLocalStorage,ra=S?new AsyncLocalStorage:null,p=null,n=0,A=new TextEncoder,H=JSON.stringify,K=Symbol.for("react.client.reference"),t=Symbol.for("react.element"),La=Symbol.for("react.fragment"),va=Symbol.for("react.provider"),Qa=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),Na=Symbol.for("react.suspense"),Oa=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Aa=
35
+ Symbol.for("react.default_value"),Ra=Symbol.for("react.memo_cache_sentinel");"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new l(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new l(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new l(a,
36
+ 2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new l(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new l(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new l(a,
37
+ 3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new l(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new l(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new l(a,5,!1,a.toLowerCase(),null,!1,!1)});var ca=/[\-:]([a-z])/g,da=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var c=
38
+ a.replace(ca,da);new l(c,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var c=a.replace(ca,da);new l(c,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var c=a.replace(ca,da);new l(c,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new l(a,1,!1,a.toLowerCase(),null,!1,!1)});new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",
39
+ !0,!1);["src","href","action","formAction"].forEach(function(a){new l(a,1,!1,a.toLowerCase(),null,!0,!0)});var ea={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
40
+ fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sa=["Webkit","ms","Moz","O"];Object.keys(ea).forEach(function(a){Sa.forEach(function(c){c=c+a.charAt(0).toUpperCase()+a.substring(1);ea[c]=ea[a]})});var za=Array.isArray;b('"></template>');b("<script>");b("\x3c/script>");b('<script src="');b('<script type="module" src="');
39
41
  b('" integrity="');b('" async="">\x3c/script>');b("\x3c!-- --\x3e");b(' style="');b(":");b(";");b(" ");b('="');b('"');b('=""');b(">");b("/>");b(' selected=""');b("\n");b("<!DOCTYPE html>");b("</");b(">");b('<template id="');b('"></template>');b("\x3c!--$--\x3e");b('\x3c!--$?--\x3e<template id="');b('"></template>');b("\x3c!--$!--\x3e");b("\x3c!--/$--\x3e");b("<template");b('"');b(' data-dgst="');b(' data-msg="');b(' data-stck="');b("></template>");b('<div hidden id="');b('">');b("</div>");b('<svg aria-hidden="true" style="display:none" id="');
40
42
  b('">');b("</svg>");b('<math aria-hidden="true" style="display:none" id="');b('">');b("</math>");b('<table hidden id="');b('">');b("</table>");b('<table hidden><tbody id="');b('">');b("</tbody></table>");b('<table hidden><tr id="');b('">');b("</tr></table>");b('<table hidden><colgroup id="');b('">');b("</colgroup></table>");b('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');
41
43
  b('$RS("');b('","');b('")\x3c/script>');b('<template data-rsi="" data-sid="');b('" data-pid="');b('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("');
42
44
  b('$RC("');b('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
43
45
  b('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
44
46
  b('$RR("');b('","');b('",');b('"');b(")\x3c/script>");b('<template data-rci="" data-bid="');b('<template data-rri="" data-bid="');b('" data-sid="');b('" data-sty="');b('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');b('$RX("');b('"');b(",");b(")\x3c/script>");b('<template data-rxi="" data-bid="');b('" data-dgst="');b('" data-msg="');b('" data-stck="');b('<style data-precedence="');
45
- b('"></style>');b("[");b(",[");b(",");b("]");var u=null,P=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`"),I=null,E=null,K=0,v=
46
- null,Ma={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:ma,useContext:ma,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===E)throw Error("useId can only be used while React is rendering");var a=E.identifierCount++;return":"+E.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q,useCacheRefresh:function(){return Ba},
47
- useMemoCache:function(a){for(var b=Array(a),e=0;e<a;e++)b[e]=Oa;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===v&&(v=[]);return Aa(v,a,b)}if(a.$$typeof===Na)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},pa={getCacheSignal:function(){var a=na(),b=a.get(Q);void 0===b&&(b=Q(),a.set(Q,b));return b},getCacheForType:function(a){var b=na(),e=b.get(a);void 0===e&&(e=a(),b.set(a,
48
- e));return e}},A=null;G=z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var Y=G.ContextRegistry,W=G.ReactCurrentDispatcher,S=G.ReactCurrentCache,ua={};r.renderToReadableStream=function(a,b,e){var c=Da(a,b,e?e.onError:void 0,e?e.context:void 0,e?e.identifierPrefix:void 0);if(e&&e.signal){var k=e.signal;if(k.aborted)za(c,k.reason);else{var f=function(){za(c,k.reason);k.removeEventListener("abort",f)};k.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(a){R?oa.run(c.cache,
49
- U,c):U(c)},pull:function(a){if(1===c.status)c.status=2,ca(a,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=a;try{X(c,a)}catch(h){y(c,h),V(c,h)}}},cancel:function(a){}},{highWaterMark:0})}});
47
+ b('"></style>');b("[");b(",[");b(",");b("]");var u=null,Q=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`"),J=null,E=null,L=0,v=
48
+ null,Pa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:pa,useContext:pa,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===E)throw Error("useId can only be used while React is rendering");var a=E.identifierCount++;return":"+E.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q,useCacheRefresh:function(){return Da},
49
+ useMemoCache:function(a){for(var c=Array(a),b=0;b<a;b++)c[b]=Ra;return c},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var c=L;L+=1;null===v&&(v=[]);return Ca(v,a,c)}if(a.$$typeof===Qa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},sa={getCacheSignal:function(){var a=qa(),c=a.get(R);void 0===c&&(c=R(),a.set(R,c));return c},getCacheForType:function(a){var c=qa(),b=c.get(a);void 0===b&&(b=a(),c.set(a,
50
+ b));return b}},B=null;G=y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var ba=G.ContextRegistry,Z=G.ReactCurrentDispatcher,T=G.ReactCurrentCache,wa={};r.renderToReadableStream=function(a,c,b){var d=Fa(a,c,b?b.onError:void 0,b?b.context:void 0,b?b.identifierPrefix:void 0);if(b&&b.signal){var e=b.signal;if(e.aborted)Ba(d,e.reason);else{var f=function(){Ba(d,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(a){S?ra.run(d.cache,
51
+ X,d):X(d)},pull:function(a){if(1===d.status)d.status=2,fa(a,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=a;try{aa(d,a)}catch(h){w(d,h),Y(d,h)}}},cancel:function(a){}},{highWaterMark:0})}});
50
52
  })();