react-server-dom-webpack
Advanced tools
Comparing version 18.3.0-canary-16d053d59-20230506 to 18.3.0-canary-178c267a4e-20241218
@@ -20,2 +20,5 @@ /** | ||
// ----------------------------------------------------------------------------- | ||
var enableBinaryFlight = false; | ||
function createStringDecoder() { | ||
@@ -34,11 +37,62 @@ return new TextDecoder(); | ||
function parseModel(response, json) { | ||
return JSON.parse(json, response._fromJSON); | ||
var badgeFormat = '%c%s%c '; // Same badge styling as DevTools. | ||
var badgeStyle = // We use a fixed background if light-dark is not supported, otherwise | ||
// we use a transparent background. | ||
'background: #e6e6e6;' + 'background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));' + 'color: #000000;' + 'color: light-dark(#000000, #ffffff);' + 'border-radius: 2px'; | ||
var resetStyle = ''; | ||
var pad = ' '; | ||
function printToConsole(methodName, args, badgeName) { | ||
var offset = 0; | ||
switch (methodName) { | ||
case 'dir': | ||
case 'dirxml': | ||
case 'groupEnd': | ||
case 'table': | ||
{ | ||
// These methods cannot be colorized because they don't take a formatting string. | ||
// eslint-disable-next-line react-internal/no-production-logging | ||
console[methodName].apply(console, args); | ||
return; | ||
} | ||
case 'assert': | ||
{ | ||
// assert takes formatting options as the second argument. | ||
offset = 1; | ||
} | ||
} | ||
var newArgs = args.slice(0); | ||
if (typeof newArgs[offset] === 'string') { | ||
newArgs.splice(offset, 1, badgeFormat + newArgs[offset], badgeStyle, pad + badgeName + pad, resetStyle); | ||
} else { | ||
newArgs.splice(offset, 0, badgeFormat, badgeStyle, pad + badgeName + pad, resetStyle); | ||
} // eslint-disable-next-line react-internal/no-production-logging | ||
console[methodName].apply(console, newArgs); | ||
return; | ||
} | ||
// eslint-disable-next-line no-unused-vars | ||
// This is the parsed shape of the wire format which is why it is | ||
// condensed to only the essentialy information | ||
var ID = 0; | ||
var CHUNKS = 1; | ||
var NAME = 2; // export const ASYNC = 3; | ||
// This logic is correct because currently only include the 4th tuple member | ||
// when the module is async. If that changes we will need to actually assert | ||
// the value is true. We don't index into the 4th slot because flow does not | ||
// like the potential out of bounds access | ||
function isAsyncImport(metadata) { | ||
return metadata.length === 4; | ||
} | ||
function resolveClientReference(bundlerConfig, metadata) { | ||
if (bundlerConfig) { | ||
var moduleExports = bundlerConfig[metadata.id]; | ||
var resolvedModuleData = moduleExports[metadata.name]; | ||
var moduleExports = bundlerConfig[metadata[ID]]; | ||
var resolvedModuleData = moduleExports[metadata[NAME]]; | ||
var name; | ||
@@ -54,14 +108,15 @@ | ||
if (!resolvedModuleData) { | ||
throw new Error('Could not find the module "' + metadata.id + '" in the React SSR Manifest. ' + 'This is probably a bug in the React Server Components bundler.'); | ||
throw new Error('Could not find the module "' + metadata[ID] + '" in the React SSR Manifest. ' + 'This is probably a bug in the React Server Components bundler.'); | ||
} | ||
name = metadata.name; | ||
name = metadata[NAME]; | ||
} | ||
return { | ||
id: resolvedModuleData.id, | ||
chunks: resolvedModuleData.chunks, | ||
name: name, | ||
async: !!metadata.async | ||
}; | ||
if (isAsyncImport(metadata)) { | ||
return [resolvedModuleData.id, resolvedModuleData.chunks, name, 1 | ||
/* async */ | ||
]; | ||
} else { | ||
return [resolvedModuleData.id, resolvedModuleData.chunks, name]; | ||
} | ||
} | ||
@@ -76,4 +131,28 @@ | ||
var chunkCache = new Map(); | ||
var asyncModuleCache = new Map(); | ||
function requireAsyncModule(id) { | ||
// We've already loaded all the chunks. We can require the module. | ||
var promise = __webpack_require__(id); | ||
if (typeof promise.then !== 'function') { | ||
// This wasn't a promise after all. | ||
return null; | ||
} else if (promise.status === 'fulfilled') { | ||
// This module was already resolved earlier. | ||
return null; | ||
} else { | ||
// Instrument the Promise to stash the result. | ||
promise.then(function (value) { | ||
var fulfilledThenable = promise; | ||
fulfilledThenable.status = 'fulfilled'; | ||
fulfilledThenable.value = value; | ||
}, function (reason) { | ||
var rejectedThenable = promise; | ||
rejectedThenable.status = 'rejected'; | ||
rejectedThenable.reason = reason; | ||
}); | ||
return promise; | ||
} | ||
} | ||
function ignoreReject() {// We rely on rejected promises to be handled by another listener. | ||
@@ -85,12 +164,13 @@ } // Start preloading the modules since we might need them soon. | ||
function preloadModule(metadata) { | ||
var chunks = metadata.chunks; | ||
var chunks = metadata[CHUNKS]; | ||
var promises = []; | ||
var i = 0; | ||
for (var i = 0; i < chunks.length; i++) { | ||
var chunkId = chunks[i]; | ||
while (i < chunks.length) { | ||
var chunkId = chunks[i++]; | ||
var chunkFilename = chunks[i++]; | ||
var entry = chunkCache.get(chunkId); | ||
if (entry === undefined) { | ||
var thenable = __webpack_chunk_load__(chunkId); | ||
var thenable = loadChunk(chunkId, chunkFilename); | ||
promises.push(thenable); // $FlowFixMe[method-unbinding] | ||
@@ -106,26 +186,9 @@ | ||
if (metadata.async) { | ||
var existingPromise = asyncModuleCache.get(metadata.id); | ||
if (existingPromise) { | ||
if (existingPromise.status === 'fulfilled') { | ||
return null; | ||
} | ||
return existingPromise; | ||
if (isAsyncImport(metadata)) { | ||
if (promises.length === 0) { | ||
return requireAsyncModule(metadata[ID]); | ||
} else { | ||
var modulePromise = Promise.all(promises).then(function () { | ||
return __webpack_require__(metadata.id); | ||
return Promise.all(promises).then(function () { | ||
return requireAsyncModule(metadata[ID]); | ||
}); | ||
modulePromise.then(function (value) { | ||
var fulfilledThenable = modulePromise; | ||
fulfilledThenable.status = 'fulfilled'; | ||
fulfilledThenable.value = value; | ||
}, function (reason) { | ||
var rejectedThenable = modulePromise; | ||
rejectedThenable.status = 'rejected'; | ||
rejectedThenable.reason = reason; | ||
}); | ||
asyncModuleCache.set(metadata.id, modulePromise); | ||
return modulePromise; | ||
} | ||
@@ -141,19 +204,14 @@ } else if (promises.length > 0) { | ||
function requireModule(metadata) { | ||
var moduleExports; | ||
var moduleExports = __webpack_require__(metadata[ID]); | ||
if (metadata.async) { | ||
// We assume that preloadModule has been called before, which | ||
// should have added something to the module cache. | ||
var promise = asyncModuleCache.get(metadata.id); | ||
if (promise.status === 'fulfilled') { | ||
moduleExports = promise.value; | ||
if (isAsyncImport(metadata)) { | ||
if (typeof moduleExports.then !== 'function') ; else if (moduleExports.status === 'fulfilled') { | ||
// This Promise should've been instrumented by preloadModule. | ||
moduleExports = moduleExports.value; | ||
} else { | ||
throw promise.reason; | ||
throw moduleExports.reason; | ||
} | ||
} else { | ||
moduleExports = __webpack_require__(metadata.id); | ||
} | ||
if (metadata.name === '*') { | ||
if (metadata[NAME] === '*') { | ||
// This is a placeholder value that represents that the caller imported this | ||
@@ -164,3 +222,3 @@ // as a CommonJS module as is. | ||
if (metadata.name === '') { | ||
if (metadata[NAME] === '') { | ||
// This is a placeholder value that represents that the caller accessed the | ||
@@ -171,5 +229,28 @@ // default property of this if it was an ESM interop module. | ||
return moduleExports[metadata.name]; | ||
return moduleExports[metadata[NAME]]; | ||
} | ||
var chunkMap = new Map(); | ||
/** | ||
* We patch the chunk filename function in webpack to insert our own resolution | ||
* of chunks that come from Flight and may not be known to the webpack runtime | ||
*/ | ||
var webpackGetChunkFilename = __webpack_require__.u; | ||
__webpack_require__.u = function (chunkId) { | ||
var flightChunk = chunkMap.get(chunkId); | ||
if (flightChunk !== undefined) { | ||
return flightChunk; | ||
} | ||
return webpackGetChunkFilename(chunkId); | ||
}; | ||
function loadChunk(chunkId, filename) { | ||
chunkMap.set(chunkId, filename); | ||
return __webpack_chunk_load__(chunkId); | ||
} | ||
var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
@@ -183,16 +264,8 @@ | ||
if (dispatcher) { | ||
var href, options; | ||
if (typeof model === 'string') { | ||
href = model; | ||
} else { | ||
href = model[0]; | ||
options = model[1]; | ||
} | ||
switch (code) { | ||
case 'D': | ||
{ | ||
// $FlowFixMe[prop-missing] options are not refined to their types by code | ||
dispatcher.prefetchDNS(href, options); | ||
var refined = refineModel(code, model); | ||
var href = refined; | ||
dispatcher.prefetchDNS(href); | ||
return; | ||
@@ -203,4 +276,13 @@ } | ||
{ | ||
// $FlowFixMe[prop-missing] options are not refined to their types by code | ||
dispatcher.preconnect(href, options); | ||
var _refined = refineModel(code, model); | ||
if (typeof _refined === 'string') { | ||
var _href = _refined; | ||
dispatcher.preconnect(_href); | ||
} else { | ||
var _href2 = _refined[0]; | ||
var crossOrigin = _refined[1]; | ||
dispatcher.preconnect(_href2, crossOrigin); | ||
} | ||
return; | ||
@@ -211,17 +293,90 @@ } | ||
{ | ||
// $FlowFixMe[prop-missing] options are not refined to their types by code | ||
// $FlowFixMe[incompatible-call] options are not refined to their types by code | ||
dispatcher.preload(href, options); | ||
var _refined2 = refineModel(code, model); | ||
var _href3 = _refined2[0]; | ||
var as = _refined2[1]; | ||
if (_refined2.length === 3) { | ||
var options = _refined2[2]; | ||
dispatcher.preload(_href3, as, options); | ||
} else { | ||
dispatcher.preload(_href3, as); | ||
} | ||
return; | ||
} | ||
case 'I': | ||
case 'm': | ||
{ | ||
// $FlowFixMe[prop-missing] options are not refined to their types by code | ||
// $FlowFixMe[incompatible-call] options are not refined to their types by code | ||
dispatcher.preinit(href, options); | ||
var _refined3 = refineModel(code, model); | ||
if (typeof _refined3 === 'string') { | ||
var _href4 = _refined3; | ||
dispatcher.preloadModule(_href4); | ||
} else { | ||
var _href5 = _refined3[0]; | ||
var _options = _refined3[1]; | ||
dispatcher.preloadModule(_href5, _options); | ||
} | ||
return; | ||
} | ||
case 'S': | ||
{ | ||
var _refined4 = refineModel(code, model); | ||
if (typeof _refined4 === 'string') { | ||
var _href6 = _refined4; | ||
dispatcher.preinitStyle(_href6); | ||
} else { | ||
var _href7 = _refined4[0]; | ||
var precedence = _refined4[1] === 0 ? undefined : _refined4[1]; | ||
var _options2 = _refined4.length === 3 ? _refined4[2] : undefined; | ||
dispatcher.preinitStyle(_href7, precedence, _options2); | ||
} | ||
return; | ||
} | ||
case 'X': | ||
{ | ||
var _refined5 = refineModel(code, model); | ||
if (typeof _refined5 === 'string') { | ||
var _href8 = _refined5; | ||
dispatcher.preinitScript(_href8); | ||
} else { | ||
var _href9 = _refined5[0]; | ||
var _options3 = _refined5[1]; | ||
dispatcher.preinitScript(_href9, _options3); | ||
} | ||
return; | ||
} | ||
case 'M': | ||
{ | ||
var _refined6 = refineModel(code, model); | ||
if (typeof _refined6 === 'string') { | ||
var _href10 = _refined6; | ||
dispatcher.preinitModuleScript(_href10); | ||
} else { | ||
var _href11 = _refined6[0]; | ||
var _options4 = _refined6[1]; | ||
dispatcher.preinitModuleScript(_href11, _options4); | ||
} | ||
return; | ||
} | ||
} | ||
} | ||
} // Flow is having trouble refining the HintModels so we help it a bit. | ||
// This should be compiled out in the production build. | ||
function refineModel(code, model) { | ||
return model; | ||
} | ||
@@ -273,3 +428,3 @@ | ||
var REACT_ELEMENT_TYPE = Symbol.for('react.element'); | ||
var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); | ||
var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext | ||
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); | ||
@@ -280,3 +435,2 @@ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); | ||
var REACT_LAZY_TYPE = Symbol.for('react.lazy'); | ||
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value'); | ||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
@@ -304,2 +458,4 @@ var FAUX_ITERATOR_SYMBOL = '@@iterator'; | ||
var getPrototypeOf = Object.getPrototypeOf; | ||
// in case they error. | ||
@@ -323,3 +479,3 @@ | ||
if (Object.getPrototypeOf(object)) { | ||
if (getPrototypeOf(object)) { | ||
return false; | ||
@@ -340,3 +496,3 @@ } | ||
function isSimpleObject(object) { | ||
if (!isObjectPrototype(Object.getPrototypeOf(object))) { | ||
if (!isObjectPrototype(getPrototypeOf(object))) { | ||
return false; | ||
@@ -394,2 +550,6 @@ } | ||
if (value !== null && value.$$typeof === CLIENT_REFERENCE_TAG) { | ||
return describeClientReference(); | ||
} | ||
var name = objectName(value); | ||
@@ -405,4 +565,12 @@ | ||
case 'function': | ||
return 'function'; | ||
{ | ||
if (value.$$typeof === CLIENT_REFERENCE_TAG) { | ||
return describeClientReference(); | ||
} | ||
var _name = value.displayName || value.name; | ||
return _name ? 'function ' + _name : 'function'; | ||
} | ||
default: | ||
@@ -452,2 +620,8 @@ // eslint-disable-next-line react-internal/safe-string-coercion | ||
var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference'); | ||
function describeClientReference(ref) { | ||
return 'client'; | ||
} | ||
function describeObjectForErrorMessage(objectOrArray, expandedName) { | ||
@@ -478,3 +652,2 @@ var objKind = objectName(objectOrArray); | ||
} else if (typeof value === 'object' && value !== null) { | ||
// $FlowFixMe[incompatible-call] found when upgrading Flow | ||
substr = '{' + describeObjectForErrorMessage(value) + '}'; | ||
@@ -512,3 +685,2 @@ } else { | ||
if (typeof _value === 'object' && _value !== null) { | ||
// $FlowFixMe[incompatible-call] found when upgrading Flow | ||
_substr = describeObjectForErrorMessage(_value); | ||
@@ -535,2 +707,4 @@ } else { | ||
str = '<' + describeElementType(objectOrArray.type) + '/>'; | ||
} else if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) { | ||
return describeClientReference(); | ||
} else if (jsxPropsParents.has(objectOrArray)) { | ||
@@ -553,3 +727,2 @@ // Print JSX | ||
if (name === expandedName && typeof _value2 === 'object' && _value2 !== null) { | ||
// $FlowFixMe[incompatible-call] found when upgrading Flow | ||
_substr2 = describeObjectForErrorMessage(_value2); | ||
@@ -588,5 +761,5 @@ } else { | ||
var _name = _names[_i3]; | ||
str += describeKeyForErrorMessage(_name) + ': '; | ||
var _value3 = _object[_name]; | ||
var _name2 = _names[_i3]; | ||
str += describeKeyForErrorMessage(_name2) + ': '; | ||
var _value3 = _object[_name2]; | ||
@@ -596,3 +769,2 @@ var _substr3 = void 0; | ||
if (typeof _value3 === 'object' && _value3 !== null) { | ||
// $FlowFixMe[incompatible-call] found when upgrading Flow | ||
_substr3 = describeObjectForErrorMessage(_value3); | ||
@@ -603,3 +775,3 @@ } else { | ||
if (_name === expandedName) { | ||
if (_name2 === expandedName) { | ||
start = str.length; | ||
@@ -631,2 +803,3 @@ length = _substr3.length; | ||
var ObjectPrototype = Object.prototype; | ||
var knownServerReferences = new WeakMap(); // Serializable values | ||
@@ -687,2 +860,10 @@ // Thenable<ReactServerValue> | ||
function serializeMapID(id) { | ||
return '$Q' + id.toString(16); | ||
} | ||
function serializeSetID(id) { | ||
return '$W' + id.toString(16); | ||
} | ||
function escapeStringValue(value) { | ||
@@ -753,2 +934,7 @@ if (value[0] === '$') { | ||
return serializePromiseID(promiseId); | ||
} | ||
if (isArray(value)) { | ||
// $FlowFixMe[incompatible-return] | ||
return value; | ||
} // TODO: Should we the Object.prototype.toString.call() to test for cross-realm objects? | ||
@@ -776,29 +962,55 @@ | ||
if (!isArray(value)) { | ||
var iteratorFn = getIteratorFn(value); | ||
if (value instanceof Map) { | ||
var partJSON = JSON.stringify(Array.from(value), resolveToJSON); | ||
if (iteratorFn) { | ||
return Array.from(value); | ||
if (formData === null) { | ||
formData = new FormData(); | ||
} | ||
var mapId = nextPartId++; | ||
formData.append(formFieldPrefix + mapId, partJSON); | ||
return serializeMapID(mapId); | ||
} | ||
if (value instanceof Set) { | ||
var _partJSON = JSON.stringify(Array.from(value), resolveToJSON); | ||
if (formData === null) { | ||
formData = new FormData(); | ||
} | ||
var setId = nextPartId++; | ||
formData.append(formFieldPrefix + setId, _partJSON); | ||
return serializeSetID(setId); | ||
} | ||
var iteratorFn = getIteratorFn(value); | ||
if (iteratorFn) { | ||
return Array.from(value); | ||
} // Verify that this is a simple plain object. | ||
var proto = getPrototypeOf(value); | ||
if (proto !== ObjectPrototype && (proto === null || getPrototypeOf(proto) !== null)) { | ||
throw new Error('Only plain objects, and a few built-ins, can be passed to Server Actions. ' + 'Classes or null prototypes are not supported.'); | ||
} | ||
{ | ||
if (value !== null && !isArray(value)) { | ||
// Verify that this is a simple plain object. | ||
if (value.$$typeof === REACT_ELEMENT_TYPE) { | ||
error('React Element cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (value.$$typeof === REACT_LAZY_TYPE) { | ||
error('React Lazy cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (value.$$typeof === REACT_PROVIDER_TYPE) { | ||
error('React Context Providers cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (objectName(value) !== 'Object') { | ||
error('Only plain objects can be passed to Client Components from Server Components. ' + '%s objects are not supported.%s', objectName(value), describeObjectForErrorMessage(parent, key)); | ||
} else if (!isSimpleObject(value)) { | ||
error('Only plain objects can be passed to Client Components from Server Components. ' + 'Classes or other objects with methods are not supported.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(value); | ||
if (value.$$typeof === REACT_ELEMENT_TYPE) { | ||
error('React Element cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (value.$$typeof === REACT_LAZY_TYPE) { | ||
error('React Lazy cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (value.$$typeof === (REACT_PROVIDER_TYPE)) { | ||
error('React Context Providers cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (objectName(value) !== 'Object') { | ||
error('Only plain objects can be passed to Server Functions from the Client. ' + '%s objects are not supported.%s', objectName(value), describeObjectForErrorMessage(parent, key)); | ||
} else if (!isSimpleObject(value)) { | ||
error('Only plain objects can be passed to Server Functions from the Client. ' + 'Classes or other objects with methods are not supported.%s', describeObjectForErrorMessage(parent, key)); | ||
} else if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(value); | ||
if (symbols.length > 0) { | ||
error('Only plain objects can be passed to Client Components from Server Components. ' + 'Objects with symbol properties like %s are not supported.%s', symbols[0].description, describeObjectForErrorMessage(parent, key)); | ||
} | ||
if (symbols.length > 0) { | ||
error('Only plain objects can be passed to Server Functions from the Client. ' + 'Objects with symbol properties like %s are not supported.%s', symbols[0].description, describeObjectForErrorMessage(parent, key)); | ||
} | ||
@@ -817,3 +1029,3 @@ } | ||
// $FlowFixMe[incompatible-use] | ||
var _originalValue = parent[key]; // $FlowFixMe[method-unbinding] | ||
var _originalValue = parent[key]; | ||
@@ -897,82 +1109,9 @@ if (_originalValue instanceof Date) { | ||
} | ||
var boundCache = new WeakMap(); | ||
function encodeFormData(reference) { | ||
var resolve, reject; // We need to have a handle on the thenable so that we can synchronously set | ||
// its status from processReply, when it can complete synchronously. | ||
function registerServerReference(proxy, reference, encodeFormAction) { | ||
var thenable = new Promise(function (res, rej) { | ||
resolve = res; | ||
reject = rej; | ||
}); | ||
processReply(reference, '', function (body) { | ||
if (typeof body === 'string') { | ||
var data = new FormData(); | ||
data.append('0', body); | ||
body = data; | ||
} | ||
knownServerReferences.set(proxy, reference); | ||
} // $FlowFixMe[method-unbinding] | ||
var fulfilled = thenable; | ||
fulfilled.status = 'fulfilled'; | ||
fulfilled.value = body; | ||
resolve(body); | ||
}, function (e) { | ||
var rejected = thenable; | ||
rejected.status = 'rejected'; | ||
rejected.reason = e; | ||
reject(e); | ||
}); | ||
return thenable; | ||
} | ||
function encodeFormAction(identifierPrefix) { | ||
var reference = knownServerReferences.get(this); | ||
if (!reference) { | ||
throw new Error('Tried to encode a Server Action from a different instance than the encoder is from. ' + 'This is a bug in React.'); | ||
} | ||
var data = null; | ||
var name; | ||
var boundPromise = reference.bound; | ||
if (boundPromise !== null) { | ||
var thenable = boundCache.get(reference); | ||
if (!thenable) { | ||
thenable = encodeFormData(reference); | ||
boundCache.set(reference, thenable); | ||
} | ||
if (thenable.status === 'rejected') { | ||
throw thenable.reason; | ||
} else if (thenable.status !== 'fulfilled') { | ||
throw thenable; | ||
} | ||
var encodedFormData = thenable.value; // This is hacky but we need the identifier prefix to be added to | ||
// all fields but the suspense cache would break since we might get | ||
// a new identifier each time. So we just append it at the end instead. | ||
var prefixedData = new FormData(); // $FlowFixMe[prop-missing] | ||
encodedFormData.forEach(function (value, key) { | ||
prefixedData.append('$ACTION_' + identifierPrefix + ':' + key, value); | ||
}); | ||
data = prefixedData; // We encode the name of the prefix containing the data. | ||
name = '$ACTION_REF_' + identifierPrefix; | ||
} else { | ||
// This is the simple case so we can just encode the ID. | ||
name = '$ACTION_ID_' + reference.id; | ||
} | ||
return { | ||
name: name, | ||
method: 'POST', | ||
encType: 'multipart/form-data', | ||
data: data | ||
}; | ||
} | ||
function createServerReference(id, callServer) { | ||
function createServerReference(id, callServer, encodeFormAction) { | ||
var proxy = function () { | ||
@@ -982,8 +1121,5 @@ // $FlowFixMe[method-unbinding] | ||
return callServer(id, args); | ||
}; // Expose encoder for use by SSR. | ||
// TODO: Only expose this in SSR builds and not the browser client. | ||
}; | ||
proxy.$$FORM_ACTION = encodeFormAction; | ||
knownServerReferences.set(proxy, { | ||
registerServerReference(proxy, { | ||
id: id, | ||
@@ -995,14 +1131,10 @@ bound: null | ||
var ContextRegistry = ReactSharedInternals.ContextRegistry; | ||
function getOrCreateServerContext(globalName) { | ||
if (!ContextRegistry[globalName]) { | ||
ContextRegistry[globalName] = React.createServerContext(globalName, // $FlowFixMe[incompatible-call] function signature doesn't reflect the symbol value | ||
REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED); | ||
} | ||
return ContextRegistry[globalName]; | ||
} | ||
var ROW_ID = 0; | ||
var ROW_TAG = 1; | ||
var ROW_LENGTH = 2; | ||
var ROW_CHUNK_BY_NEWLINE = 3; | ||
var ROW_CHUNK_BY_LENGTH = 4; | ||
var PENDING = 'pending'; | ||
var BLOCKED = 'blocked'; | ||
var CYCLIC = 'cyclic'; | ||
var RESOLVED_MODEL = 'resolved_model'; | ||
@@ -1018,2 +1150,6 @@ var RESOLVED_MODULE = 'resolved_module'; | ||
this._response = response; | ||
{ | ||
this._debugInfo = null; | ||
} | ||
} // We subclass Promise.prototype so that we get other methods like .catch | ||
@@ -1046,2 +1182,3 @@ | ||
case BLOCKED: | ||
case CYCLIC: | ||
if (resolve) { | ||
@@ -1091,2 +1228,3 @@ if (chunk.value === null) { | ||
case BLOCKED: | ||
case CYCLIC: | ||
// eslint-disable-next-line no-throw-literal | ||
@@ -1135,2 +1273,3 @@ throw chunk; | ||
case BLOCKED: | ||
case CYCLIC: | ||
chunk.value = resolveListeners; | ||
@@ -1175,2 +1314,7 @@ chunk.reason = rejectListeners; | ||
function createInitializedTextChunk(response, value) { | ||
// $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors | ||
return new Chunk(INITIALIZED, value, null, response); | ||
} | ||
function resolveModelChunk(chunk, value) { | ||
@@ -1224,5 +1368,13 @@ if (chunk.status !== PENDING) { | ||
initializingChunkBlockedModel = null; | ||
var resolvedModel = chunk.value; // We go to the CYCLIC state until we've fully resolved this. | ||
// We do this before parsing in case we try to initialize the same chunk | ||
// while parsing the model. Such as in a cyclic reference. | ||
var cyclicChunk = chunk; | ||
cyclicChunk.status = CYCLIC; | ||
cyclicChunk.value = null; | ||
cyclicChunk.reason = null; | ||
try { | ||
var value = parseModel(chunk._response, chunk.value); | ||
var value = parseModel(chunk._response, resolvedModel); | ||
@@ -1238,5 +1390,10 @@ if (initializingChunkBlockedModel !== null && initializingChunkBlockedModel.deps > 0) { | ||
} else { | ||
var resolveListeners = cyclicChunk.value; | ||
var initializedChunk = chunk; | ||
initializedChunk.status = INITIALIZED; | ||
initializedChunk.value = value; | ||
if (resolveListeners !== null) { | ||
wakeChunk(resolveListeners, value); | ||
} | ||
} | ||
@@ -1280,15 +1437,18 @@ } catch (error) { | ||
function createElement(type, key, props) { | ||
var element = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
// Built-in properties that belong on the element | ||
type: type, | ||
key: key, | ||
ref: null, | ||
props: props, | ||
// Record the component responsible for creating this element. | ||
_owner: null | ||
}; | ||
var element; | ||
{ | ||
element = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
type: type, | ||
key: key, | ||
ref: null, | ||
props: props, | ||
// Record the component responsible for creating this element. | ||
_owner: null | ||
}; | ||
} | ||
{ | ||
// We don't really need to add any of these but keeping them for good measure. | ||
@@ -1304,15 +1464,10 @@ // Unfortunately, _store is enumerable in jest matchers so for equality to | ||
}); | ||
Object.defineProperty(element, '_self', { | ||
}); // debugInfo contains Server Component debug information. | ||
Object.defineProperty(element, '_debugInfo', { | ||
configurable: false, | ||
enumerable: false, | ||
writable: false, | ||
writable: true, | ||
value: null | ||
}); | ||
Object.defineProperty(element, '_source', { | ||
configurable: false, | ||
enumerable: false, | ||
writable: false, | ||
value: null | ||
}); | ||
} | ||
@@ -1329,2 +1484,9 @@ | ||
}; | ||
{ | ||
// Ensure we have a live array to track future debug info. | ||
var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []); | ||
lazyType._debugInfo = chunkDebugInfo; | ||
} | ||
return lazyType; | ||
@@ -1345,3 +1507,3 @@ } | ||
function createModelResolver(chunk, parentObject, key) { | ||
function createModelResolver(chunk, parentObject, key, cyclic) { | ||
var blocked; | ||
@@ -1351,6 +1513,9 @@ | ||
blocked = initializingChunkBlockedModel; | ||
blocked.deps++; | ||
if (!cyclic) { | ||
blocked.deps++; | ||
} | ||
} else { | ||
blocked = initializingChunkBlockedModel = { | ||
deps: 1, | ||
deps: cyclic ? 0 : 1, | ||
value: null | ||
@@ -1409,11 +1574,30 @@ }; | ||
}); | ||
}; // Expose encoder for use by SSR. | ||
// TODO: Only expose this in SSR builds and not the browser client. | ||
}; | ||
proxy.$$FORM_ACTION = encodeFormAction; | ||
knownServerReferences.set(proxy, metaData); | ||
registerServerReference(proxy, metaData); | ||
return proxy; | ||
} | ||
function getOutlinedModel(response, id) { | ||
var chunk = getChunk(response, id); | ||
switch (chunk.status) { | ||
case RESOLVED_MODEL: | ||
initializeModelChunk(chunk); | ||
break; | ||
} // The status might have changed after initialization. | ||
switch (chunk.status) { | ||
case INITIALIZED: | ||
{ | ||
return chunk.value; | ||
} | ||
// We always encode it first in the stream so it won't be pending. | ||
default: | ||
throw chunk.reason; | ||
} | ||
} | ||
function parseModelString(response, parentObject, key, value) { | ||
@@ -1446,2 +1630,7 @@ if (value[0] === '$') { | ||
// Promise | ||
if (value.length === 2) { | ||
// Infinite promise that never resolves. | ||
return new Promise(function () {}); | ||
} | ||
var _id = parseInt(value.slice(2), 16); | ||
@@ -1460,8 +1649,2 @@ | ||
case 'P': | ||
{ | ||
// Server Context Provider | ||
return getOrCreateServerContext(value.slice(2)).Provider; | ||
} | ||
case 'F': | ||
@@ -1472,22 +1655,23 @@ { | ||
var _chunk2 = getChunk(response, _id2); | ||
var metadata = getOutlinedModel(response, _id2); | ||
return createServerReferenceProxy(response, metadata); | ||
} | ||
switch (_chunk2.status) { | ||
case RESOLVED_MODEL: | ||
initializeModelChunk(_chunk2); | ||
break; | ||
} // The status might have changed after initialization. | ||
case 'Q': | ||
{ | ||
// Map | ||
var _id3 = parseInt(value.slice(2), 16); | ||
var data = getOutlinedModel(response, _id3); | ||
return new Map(data); | ||
} | ||
switch (_chunk2.status) { | ||
case INITIALIZED: | ||
{ | ||
var metadata = _chunk2.value; | ||
return createServerReferenceProxy(response, metadata); | ||
} | ||
// We always encode it first in the stream so it won't be pending. | ||
case 'W': | ||
{ | ||
// Set | ||
var _id4 = parseInt(value.slice(2), 16); | ||
default: | ||
throw _chunk2.reason; | ||
} | ||
var _data = getOutlinedModel(response, _id4); | ||
return new Set(_data); | ||
} | ||
@@ -1536,16 +1720,33 @@ | ||
case 'E': | ||
{ | ||
{ | ||
// In DEV mode we allow indirect eval to produce functions for logging. | ||
// This should not compile to eval() because then it has local scope access. | ||
try { | ||
// eslint-disable-next-line no-eval | ||
return (0, eval)(value.slice(2)); | ||
} catch (x) { | ||
// We currently use this to express functions so we fail parsing it, | ||
// let's just return a blank function as a place holder. | ||
return function () {}; | ||
} | ||
} // Fallthrough | ||
} | ||
default: | ||
{ | ||
// We assume that anything else is a reference ID. | ||
var _id3 = parseInt(value.slice(1), 16); | ||
var _id5 = parseInt(value.slice(1), 16); | ||
var _chunk3 = getChunk(response, _id3); | ||
var _chunk2 = getChunk(response, _id5); | ||
switch (_chunk3.status) { | ||
switch (_chunk2.status) { | ||
case RESOLVED_MODEL: | ||
initializeModelChunk(_chunk3); | ||
initializeModelChunk(_chunk2); | ||
break; | ||
case RESOLVED_MODULE: | ||
initializeModuleChunk(_chunk3); | ||
initializeModuleChunk(_chunk2); | ||
break; | ||
@@ -1555,11 +1756,34 @@ } // The status might have changed after initialization. | ||
switch (_chunk3.status) { | ||
switch (_chunk2.status) { | ||
case INITIALIZED: | ||
return _chunk3.value; | ||
var chunkValue = _chunk2.value; | ||
if (_chunk2._debugInfo) { | ||
// If we have a direct reference to an object that was rendered by a synchronous | ||
// server component, it might have some debug info about how it was rendered. | ||
// We forward this to the underlying object. This might be a React Element or | ||
// an Array fragment. | ||
// If this was a string / number return value we lose the debug info. We choose | ||
// that tradeoff to allow sync server components to return plain values and not | ||
// use them as React Nodes necessarily. We could otherwise wrap them in a Lazy. | ||
if (typeof chunkValue === 'object' && chunkValue !== null && (Array.isArray(chunkValue) || chunkValue.$$typeof === REACT_ELEMENT_TYPE) && !chunkValue._debugInfo) { | ||
// We should maybe use a unique symbol for arrays but this is a React owned array. | ||
// $FlowFixMe[prop-missing]: This should be added to elements. | ||
Object.defineProperty(chunkValue, '_debugInfo', { | ||
configurable: false, | ||
enumerable: false, | ||
writable: true, | ||
value: _chunk2._debugInfo | ||
}); | ||
} | ||
} | ||
return chunkValue; | ||
case PENDING: | ||
case BLOCKED: | ||
case CYCLIC: | ||
var parentChunk = initializingChunk; | ||
_chunk3.then(createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk)); | ||
_chunk2.then(createModelResolver(parentChunk, parentObject, key, _chunk2.status === CYCLIC), createModelReject(parentChunk)); | ||
@@ -1569,3 +1793,3 @@ return null; | ||
default: | ||
throw _chunk3.reason; | ||
throw _chunk2.reason; | ||
} | ||
@@ -1578,2 +1802,3 @@ } | ||
} | ||
function parseModelTuple(response, value) { | ||
@@ -1595,11 +1820,24 @@ var tuple = value; | ||
function createResponse$1(bundlerConfig, callServer) { | ||
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce) { | ||
var chunks = new Map(); | ||
var response = { | ||
_bundlerConfig: bundlerConfig, | ||
_moduleLoading: moduleLoading, | ||
_callServer: callServer !== undefined ? callServer : missingCall, | ||
_chunks: chunks | ||
}; | ||
_encodeFormAction: encodeFormAction, | ||
_nonce: nonce, | ||
_chunks: chunks, | ||
_stringDecoder: createStringDecoder(), | ||
_fromJSON: null, | ||
_rowState: 0, | ||
_rowID: 0, | ||
_rowTag: 0, | ||
_rowLength: 0, | ||
_buffer: [] | ||
}; // Don't inline this call because it causes closure to outline the call above. | ||
response._fromJSON = createFromJSONCallback(response); | ||
return response; | ||
} | ||
function resolveModel(response, id, model) { | ||
@@ -1615,2 +1853,10 @@ var chunks = response._chunks; | ||
} | ||
function resolveText(response, id, text) { | ||
var chunks = response._chunks; // We assume that we always reference large strings after they've been | ||
// emitted. | ||
chunks.set(id, createInitializedTextChunk(response, text)); | ||
} | ||
function resolveModule(response, id, model) { | ||
@@ -1620,3 +1866,3 @@ var chunks = response._chunks; | ||
var clientReferenceMetadata = parseModel(response, model); | ||
var clientReference = resolveClientReference(response._bundlerConfig, clientReferenceMetadata); // TODO: Add an option to encode modules that are lazy loaded. | ||
var clientReference = resolveClientReference(response._bundlerConfig, clientReferenceMetadata); | ||
// For now we preload all modules as early as possible since it's likely | ||
@@ -1657,2 +1903,3 @@ // that we'll need them. | ||
} | ||
function resolveErrorDev(response, id, digest, message, stack) { | ||
@@ -1674,2 +1921,3 @@ | ||
} | ||
function resolveHint(response, code, model) { | ||
@@ -1679,39 +1927,55 @@ var hintModel = parseModel(response, model); | ||
} | ||
function close(response) { | ||
// In case there are any remaining unresolved chunks, they won't | ||
// be resolved now. So we need to issue an error to those. | ||
// Ideally we should be able to early bail out if we kept a | ||
// ref count of pending chunks. | ||
reportGlobalError(response, new Error('Connection closed.')); | ||
function resolveDebugInfo(response, id, debugInfo) { | ||
var chunk = getChunk(response, id); | ||
var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []); | ||
chunkDebugInfo.push(debugInfo); | ||
} | ||
function processFullRow(response, row) { | ||
if (row === '') { | ||
return; | ||
function resolveConsoleEntry(response, value) { | ||
var payload = parseModel(response, value); | ||
var methodName = payload[0]; // TODO: Restore the fake stack before logging. | ||
// const stackTrace = payload[1]; | ||
var env = payload[2]; | ||
var args = payload.slice(3); | ||
printToConsole(methodName, args, env); | ||
} | ||
function processFullRow(response, id, tag, buffer, chunk) { | ||
var stringDecoder = response._stringDecoder; | ||
var row = ''; | ||
for (var i = 0; i < buffer.length; i++) { | ||
row += readPartialStringChunk(stringDecoder, buffer[i]); | ||
} | ||
var colon = row.indexOf(':', 0); | ||
var id = parseInt(row.slice(0, colon), 16); | ||
var tag = row[colon + 1]; // When tags that are not text are added, check them here before | ||
// parsing the row as text. | ||
// switch (tag) { | ||
// } | ||
row += readFinalStringChunk(stringDecoder, chunk); | ||
switch (tag) { | ||
case 'I': | ||
case 73 | ||
/* "I" */ | ||
: | ||
{ | ||
resolveModule(response, id, row.slice(colon + 2)); | ||
resolveModule(response, id, row); | ||
return; | ||
} | ||
case 'H': | ||
case 72 | ||
/* "H" */ | ||
: | ||
{ | ||
var code = row[colon + 2]; | ||
resolveHint(response, code, row.slice(colon + 3)); | ||
var code = row[0]; | ||
resolveHint(response, code, row.slice(1)); | ||
return; | ||
} | ||
case 'E': | ||
case 69 | ||
/* "E" */ | ||
: | ||
{ | ||
var errorInfo = JSON.parse(row.slice(colon + 2)); | ||
var errorInfo = JSON.parse(row); | ||
@@ -1725,6 +1989,42 @@ { | ||
case 84 | ||
/* "T" */ | ||
: | ||
{ | ||
resolveText(response, id, row); | ||
return; | ||
} | ||
case 68 | ||
/* "D" */ | ||
: | ||
{ | ||
{ | ||
var debugInfo = JSON.parse(row); | ||
resolveDebugInfo(response, id, debugInfo); | ||
return; | ||
} // Fallthrough to share the error with Console entries. | ||
} | ||
case 87 | ||
/* "W" */ | ||
: | ||
{ | ||
{ | ||
resolveConsoleEntry(response, row); | ||
return; | ||
} | ||
} | ||
case 80 | ||
/* "P" */ | ||
: | ||
// Fallthrough | ||
default: | ||
/* """ "{" "[" "t" "f" "n" "0" - "9" */ | ||
{ | ||
// We assume anything else is JSON. | ||
resolveModel(response, id, row.slice(colon + 1)); | ||
resolveModel(response, id, row); | ||
return; | ||
@@ -1735,31 +2035,139 @@ } | ||
function processStringChunk(response, chunk, offset) { | ||
var linebreak = chunk.indexOf('\n', offset); | ||
function processBinaryChunk(response, chunk) { | ||
var i = 0; | ||
var rowState = response._rowState; | ||
var rowID = response._rowID; | ||
var rowTag = response._rowTag; | ||
var rowLength = response._rowLength; | ||
var buffer = response._buffer; | ||
var chunkLength = chunk.length; | ||
while (linebreak > -1) { | ||
var fullrow = response._partialRow + chunk.slice(offset, linebreak); | ||
processFullRow(response, fullrow); | ||
response._partialRow = ''; | ||
offset = linebreak + 1; | ||
linebreak = chunk.indexOf('\n', offset); | ||
} | ||
while (i < chunkLength) { | ||
var lastIdx = -1; | ||
response._partialRow += chunk.slice(offset); | ||
} | ||
function processBinaryChunk(response, chunk) { | ||
switch (rowState) { | ||
case ROW_ID: | ||
{ | ||
var byte = chunk[i++]; | ||
var stringDecoder = response._stringDecoder; | ||
var linebreak = chunk.indexOf(10); // newline | ||
if (byte === 58 | ||
/* ":" */ | ||
) { | ||
// Finished the rowID, next we'll parse the tag. | ||
rowState = ROW_TAG; | ||
} else { | ||
rowID = rowID << 4 | (byte > 96 ? byte - 87 : byte - 48); | ||
} | ||
while (linebreak > -1) { | ||
var fullrow = response._partialRow + readFinalStringChunk(stringDecoder, chunk.subarray(0, linebreak)); | ||
processFullRow(response, fullrow); | ||
response._partialRow = ''; | ||
chunk = chunk.subarray(linebreak + 1); | ||
linebreak = chunk.indexOf(10); // newline | ||
continue; | ||
} | ||
case ROW_TAG: | ||
{ | ||
var resolvedRowTag = chunk[i]; | ||
if (resolvedRowTag === 84 | ||
/* "T" */ | ||
|| enableBinaryFlight | ||
/* "V" */ | ||
) { | ||
rowTag = resolvedRowTag; | ||
rowState = ROW_LENGTH; | ||
i++; | ||
} else if (resolvedRowTag > 64 && resolvedRowTag < 91 | ||
/* "A"-"Z" */ | ||
) { | ||
rowTag = resolvedRowTag; | ||
rowState = ROW_CHUNK_BY_NEWLINE; | ||
i++; | ||
} else { | ||
rowTag = 0; | ||
rowState = ROW_CHUNK_BY_NEWLINE; // This was an unknown tag so it was probably part of the data. | ||
} | ||
continue; | ||
} | ||
case ROW_LENGTH: | ||
{ | ||
var _byte = chunk[i++]; | ||
if (_byte === 44 | ||
/* "," */ | ||
) { | ||
// Finished the rowLength, next we'll buffer up to that length. | ||
rowState = ROW_CHUNK_BY_LENGTH; | ||
} else { | ||
rowLength = rowLength << 4 | (_byte > 96 ? _byte - 87 : _byte - 48); | ||
} | ||
continue; | ||
} | ||
case ROW_CHUNK_BY_NEWLINE: | ||
{ | ||
// We're looking for a newline | ||
lastIdx = chunk.indexOf(10 | ||
/* "\n" */ | ||
, i); | ||
break; | ||
} | ||
case ROW_CHUNK_BY_LENGTH: | ||
{ | ||
// We're looking for the remaining byte length | ||
lastIdx = i + rowLength; | ||
if (lastIdx > chunk.length) { | ||
lastIdx = -1; | ||
} | ||
break; | ||
} | ||
} | ||
var offset = chunk.byteOffset + i; | ||
if (lastIdx > -1) { | ||
// We found the last chunk of the row | ||
var length = lastIdx - i; | ||
var lastChunk = new Uint8Array(chunk.buffer, offset, length); | ||
processFullRow(response, rowID, rowTag, buffer, lastChunk); // Reset state machine for a new row | ||
i = lastIdx; | ||
if (rowState === ROW_CHUNK_BY_NEWLINE) { | ||
// If we're trailing by a newline we need to skip it. | ||
i++; | ||
} | ||
rowState = ROW_ID; | ||
rowTag = 0; | ||
rowID = 0; | ||
rowLength = 0; | ||
buffer.length = 0; | ||
} else { | ||
// The rest of this row is in a future chunk. We stash the rest of the | ||
// current chunk until we can process the full row. | ||
var _length = chunk.byteLength - i; | ||
var remainingSlice = new Uint8Array(chunk.buffer, offset, _length); | ||
buffer.push(remainingSlice); // Update how many bytes we're still waiting for. If we're looking for | ||
// a newline, this doesn't hurt since we'll just ignore it. | ||
rowLength -= remainingSlice.byteLength; | ||
break; | ||
} | ||
} | ||
response._partialRow += readPartialStringChunk(stringDecoder, chunk); | ||
response._rowState = rowState; | ||
response._rowID = rowID; | ||
response._rowTag = rowTag; | ||
response._rowLength = rowLength; | ||
} | ||
function parseModel(response, json) { | ||
return JSON.parse(json, response._fromJSON); | ||
} | ||
function createFromJSONCallback(response) { | ||
@@ -1781,20 +2189,14 @@ // $FlowFixMe[missing-this-annot] | ||
function createResponse(bundlerConfig, callServer) { | ||
// NOTE: CHECK THE COMPILER OUTPUT EACH TIME YOU CHANGE THIS. | ||
// It should be inlined to one object literal but minor changes can break it. | ||
var stringDecoder = createStringDecoder() ; | ||
var response = createResponse$1(bundlerConfig, callServer); | ||
response._partialRow = ''; | ||
{ | ||
response._stringDecoder = stringDecoder; | ||
} // Don't inline this call because it causes closure to outline the call above. | ||
response._fromJSON = createFromJSONCallback(response); | ||
return response; | ||
function close(response) { | ||
// In case there are any remaining unresolved chunks, they won't | ||
// be resolved now. So we need to issue an error to those. | ||
// Ideally we should be able to early bail out if we kept a | ||
// ref count of pending chunks. | ||
reportGlobalError(response, new Error('Connection closed.')); | ||
} | ||
function createResponseFromOptions(options) { | ||
return createResponse(null, options && options.callServer ? options.callServer : undefined); | ||
return createResponse(null, null, options && options.callServer ? options.callServer : undefined, undefined, // encodeFormAction | ||
undefined // nonce | ||
); | ||
} | ||
@@ -1842,29 +2244,2 @@ | ||
function createFromXHR(request, options) { | ||
var response = createResponseFromOptions(options); | ||
var processedLength = 0; | ||
function progress(e) { | ||
var chunk = request.responseText; | ||
processStringChunk(response, chunk, processedLength); | ||
processedLength = chunk.length; | ||
} | ||
function load(e) { | ||
progress(); | ||
close(response); | ||
} | ||
function error(e) { | ||
reportGlobalError(response, new TypeError('Network error')); | ||
} | ||
request.addEventListener('progress', progress); | ||
request.addEventListener('load', load); | ||
request.addEventListener('error', error); | ||
request.addEventListener('abort', error); | ||
request.addEventListener('timeout', error); | ||
return getRoot(response); | ||
} | ||
function encodeReply(value) | ||
@@ -1880,3 +2255,2 @@ /* We don't use URLSearchParams yet but maybe */ | ||
exports.createFromReadableStream = createFromReadableStream; | ||
exports.createFromXHR = createFromXHR; | ||
exports.createServerReference = createServerReference; | ||
@@ -1883,0 +2257,0 @@ exports.encodeReply = encodeReply; |
@@ -1,36 +0,38 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-client.browser.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var m=require("react-dom"),p=require("react"),q={stream:!0};function r(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var t=new Map,u=new Map;function w(){} | ||
function x(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],f=t.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var k=t.set.bind(t,e,null);f.then(k,w);t.set(e,f)}else null!==f&&c.push(f)}if(a.async){if(b=u.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(c).then(function(){return __webpack_require__(a.id)});h.then(function(l){h.status="fulfilled";h.value=l},function(l){h.status="rejected";h.reason=l});u.set(a.id,h);return h}return 0<c.length?Promise.all(c):null} | ||
var y=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),A=Symbol.for("react.lazy"),B=Symbol.for("react.default_value"),C=Symbol.iterator;function D(a){if(null===a||"object"!==typeof a)return null;a=C&&a[C]||a["@@iterator"];return"function"===typeof a?a:null}var E=Array.isArray,F=new WeakMap;function aa(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function G(a,b,c,d){function e(l,g){if(null===g)return null;if("object"===typeof g){if("function"===typeof g.then){null===h&&(h=new FormData);k++;var I=f++;g.then(function(n){n=JSON.stringify(n,e);var v=h;v.append(b+I,n);k--;0===k&&c(v)},function(n){d(n)});return"$@"+I.toString(16)}if(g instanceof FormData){null===h&&(h=new FormData);var ba=h;l=f++;var ca=b+l+"_";g.forEach(function(n,v){ba.append(ca+v,n)});return"$K"+l.toString(16)}return!E(g)&&D(g)?Array.from(g):g}if("string"===typeof g){if("Z"=== | ||
g[g.length-1]&&this[l]instanceof Date)return"$D"+g;g="$"===g[0]?"$"+g:g;return g}if("boolean"===typeof g)return g;if("number"===typeof g)return aa(g);if("undefined"===typeof g)return"$undefined";if("function"===typeof g){g=F.get(g);if(void 0!==g)return g=JSON.stringify(g,e),null===h&&(h=new FormData),l=f++,h.set(b+l,g),"$F"+l.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof g){l= | ||
g.description;if(Symbol.for(l)!==g)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(g.description+") cannot be found among global symbols."));return"$S"+l}if("bigint"===typeof g)return"$n"+g.toString(10);throw Error("Type "+typeof g+" is not supported as an argument to a Server Function.");}var f=1,k=0,h=null;a=JSON.stringify(a,e);null===h?c(a):(h.set(b+"0",a),0===k&&c(h))}var H=new WeakMap; | ||
function da(a){var b,c,d=new Promise(function(e,f){b=e;c=f});G(a,"",function(e){if("string"===typeof e){var f=new FormData;f.append("0",e);e=f}d.status="fulfilled";d.value=e;b(e)},function(e){d.status="rejected";d.reason=e;c(e)});return d} | ||
function J(a){var b=F.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=H.get(b);c||(c=da(b),H.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(e,f){d.append("$ACTION_"+a+":"+f,e)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} | ||
var K=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function L(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}L.prototype=Object.create(Promise.prototype); | ||
L.prototype.then=function(a,b){switch(this.status){case "resolved_model":M(this);break;case "resolved_module":N(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 ea(a){switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function O(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function P(a,b,c){switch(a.status){case "fulfilled":O(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&O(c,a.reason)}} | ||
function Q(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&O(c,b)}}function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(N(a),P(a,c,d))}}var S=null,T=null; | ||
function M(a){var b=S,c=T;S=a;T=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==T&&0<T.deps?(T.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{S=b,T=c}} | ||
function N(a){try{var b=a.value;if(b.async){var c=u.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}function U(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Q(c,b)})}function V(a,b){var c=a._chunks,d=c.get(b);d||(d=new L("pending",null,null,a),c.set(b,d));return d} | ||
function fa(a,b,c){if(T){var d=T;d.deps++}else d=T={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&&O(e,d.value))}}function ha(a){return function(b){return Q(a,b)}} | ||
function ia(a,b){function c(){var e=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?d(b.id,f.value.concat(e)):Promise.resolve(f).then(function(k){return d(b.id,k.concat(e))}):d(b.id,e)}var d=a._callServer;c.$$FORM_ACTION=J;F.set(c,b);return c} | ||
function ja(a,b,c,d){if("$"===d[0]){if("$"===d)return z;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=V(a,b),{$$typeof:A,_payload:a,_init:ea};case "@":return b=parseInt(d.slice(2),16),V(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),K[a]||(K[a]=p.createServerContext(a,B)),K[a].Provider;case "F":b=parseInt(d.slice(2),16);b=V(a,b);switch(b.status){case "resolved_model":M(b)}switch(b.status){case "fulfilled":return ia(a,b.value);default:throw b.reason; | ||
}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));default:d=parseInt(d.slice(1),16);a=V(a,d);switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=S,a.then(fa(d,b,c),ha(d)),null;default:throw a.reason;}}}return d} | ||
function ka(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function la(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=r(a._bundlerConfig,c);if(c=x(f)){if(e){var k=e;k.status="blocked"}else k=new L("blocked",null,null,a),d.set(b,k);c.then(function(){return R(k,f)},function(h){return Q(k,h)})}else e?R(e,f):d.set(b,new L("resolved_module",f,null,a))} | ||
function W(a){U(a,Error("Connection closed."))} | ||
function X(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":la(a,d,b.slice(c+2));break;case "H":d=b[c+2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=y.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");e.stack= | ||
"Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?Q(c,e):b.set(d,new L("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(M(b),P(b,a,d))):c.set(d,new L("resolved_model",e,null,a))}}}function ma(a){return function(b,c){return"string"===typeof c?ja(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===z?{$$typeof:z,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}} | ||
function Y(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:ka,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=ma(a);return a} | ||
function Z(a,b){function c(f){var k=f.value;if(f.done)W(a);else{f=k;k=a._stringDecoder;for(var h=f.indexOf(10);-1<h;){var l=a._partialRow;var g=f.subarray(0,h);g=k.decode(g);X(a,l+g);a._partialRow="";f=f.subarray(h+1);h=f.indexOf(10)}a._partialRow+=k.decode(f,q);return e.read().then(c).catch(d)}}function d(f){U(a,f)}var e=b.getReader();e.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(b);a.then(function(d){Z(c,d.body)},function(d){U(c,d)});return V(c,0)}; | ||
exports.createFromReadableStream=function(a,b){b=Y(b);Z(b,a);return V(b,0)}; | ||
exports.createFromXHR=function(a,b){function c(){for(var k=a.responseText,h=f,l=k.indexOf("\n",h);-1<l;)h=e._partialRow+k.slice(h,l),X(e,h),e._partialRow="",h=l+1,l=k.indexOf("\n",h);e._partialRow+=k.slice(h);f=k.length}function d(){U(e,new TypeError("Network error"))}var e=Y(b),f=0;a.addEventListener("progress",c);a.addEventListener("load",function(){c();W(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return V(e,0)}; | ||
exports.createServerReference=function(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}c.$$FORM_ACTION=J;F.set(c,{id:a,bound:null});return c};exports.encodeReply=function(a){return new Promise(function(b,c){G(a,"",b,c)})}; | ||
/* | ||
React | ||
react-server-dom-webpack-client.browser.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var r=require("react-dom"),t={stream:!0};function u(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var v=new Map; | ||
function w(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 x(){} | ||
function y(a){for(var b=a[1],c=[],e=0;e<b.length;){var l=b[e++],k=b[e++],n=v.get(l);void 0===n?(z.set(l,k),k=__webpack_chunk_load__(l),c.push(k),n=v.set.bind(v,l,null),k.then(n,x),v.set(l,k)):null!==n&&c.push(n)}return 4===a.length?0===c.length?w(a[0]):Promise.all(c).then(function(){return w(a[0])}):0<c.length?Promise.all(c):null}var z=new Map,A=__webpack_require__.u;__webpack_require__.u=function(a){var b=z.get(a);return void 0!==b?b:A(a)}; | ||
var B=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C=Symbol.for("react.element"),E=Symbol.for("react.lazy"),F=Symbol.iterator;function H(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===typeof a?a:null}var I=Array.isArray,J=Object.getPrototypeOf,aa=Object.prototype,K=new WeakMap;function ba(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function ca(a,b,c,e){function l(m,d){if(null===d)return null;if("object"===typeof d){if("function"===typeof d.then){null===g&&(g=new FormData);n++;var h=k++;d.then(function(p){p=JSON.stringify(p,l);var q=g;q.append(b+h,p);n--;0===n&&c(q)},function(p){e(p)});return"$@"+h.toString(16)}if(I(d))return d;if(d instanceof FormData){null===g&&(g=new FormData);var f=g;m=k++;var D=b+m+"_";d.forEach(function(p,q){f.append(D+q,p)});return"$K"+m.toString(16)}if(d instanceof Map)return d=JSON.stringify(Array.from(d), | ||
l),null===g&&(g=new FormData),m=k++,g.append(b+m,d),"$Q"+m.toString(16);if(d instanceof Set)return d=JSON.stringify(Array.from(d),l),null===g&&(g=new FormData),m=k++,g.append(b+m,d),"$W"+m.toString(16);if(H(d))return Array.from(d);m=J(d);if(m!==aa&&(null===m||null!==J(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return d}if("string"===typeof d){if("Z"===d[d.length-1]&&this[m]instanceof Date)return"$D"+d; | ||
d="$"===d[0]?"$"+d:d;return d}if("boolean"===typeof d)return d;if("number"===typeof d)return ba(d);if("undefined"===typeof d)return"$undefined";if("function"===typeof d){d=K.get(d);if(void 0!==d)return d=JSON.stringify(d,l),null===g&&(g=new FormData),m=k++,g.set(b+m,d),"$F"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof d){m=d.description;if(Symbol.for(m)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+ | ||
(d.description+") cannot be found among global symbols."));return"$S"+m}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+" is not supported as an argument to a Server Function.");}var k=1,n=0,g=null;a=JSON.stringify(a,l);null===g?c(a):(g.set(b+"0",a),0===n&&c(g))}function da(a,b){K.set(a,b)}function L(a,b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}L.prototype=Object.create(Promise.prototype); | ||
L.prototype.then=function(a,b){switch(this.status){case "resolved_model":M(this);break;case "resolved_module":N(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":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 ea(a){switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function O(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Q(a,b,c){switch(a.status){case "fulfilled":O(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&O(c,a.reason)}} | ||
function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&O(c,b)}}function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,e=a.reason;a.status="resolved_module";a.value=b;null!==c&&(N(a),Q(a,c,e))}}var T=null,U=null; | ||
function M(a){var b=T,c=U;T=a;U=null;var e=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var l=JSON.parse(e,a._response._fromJSON);if(null!==U&&0<U.deps)U.value=l,a.status="blocked",a.value=null,a.reason=null;else{var k=a.value;a.status="fulfilled";a.value=l;null!==k&&O(k,l)}}catch(n){a.status="rejected",a.reason=n}finally{T=b,U=c}} | ||
function N(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var e="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:c[b[2]];a.status="fulfilled";a.value=e}catch(l){a.status="rejected",a.reason=l}}function V(a,b){a._chunks.forEach(function(c){"pending"===c.status&&R(c,b)})}function W(a,b){var c=a._chunks,e=c.get(b);e||(e=new L("pending",null,null,a),c.set(b,e));return e} | ||
function fa(a,b,c,e){if(U){var l=U;e||l.deps++}else l=U={deps:e?0:1,value:null};return function(k){b[c]=k;l.deps--;0===l.deps&&"blocked"===a.status&&(k=a.value,a.status="fulfilled",a.value=l.value,null!==k&&O(k,l.value))}}function ha(a){return function(b){return R(a,b)}} | ||
function ia(a,b){function c(){var l=Array.prototype.slice.call(arguments),k=b.bound;return k?"fulfilled"===k.status?e(b.id,k.value.concat(l)):Promise.resolve(k).then(function(n){return e(b.id,n.concat(l))}):e(b.id,l)}var e=a._callServer;K.set(c,b);return c}function X(a,b){a=W(a,b);switch(a.status){case "resolved_model":M(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}} | ||
function ja(a,b,c,e){if("$"===e[0]){if("$"===e)return C;switch(e[1]){case "$":return e.slice(1);case "L":return b=parseInt(e.slice(2),16),a=W(a,b),{$$typeof:E,_payload:a,_init:ea};case "@":if(2===e.length)return new Promise(function(){});b=parseInt(e.slice(2),16);return W(a,b);case "S":return Symbol.for(e.slice(2));case "F":return b=parseInt(e.slice(2),16),b=X(a,b),ia(a,b);case "Q":return b=parseInt(e.slice(2),16),a=X(a,b),new Map(a);case "W":return b=parseInt(e.slice(2),16),a=X(a,b),new Set(a);case "I":return Infinity; | ||
case "-":return"$-0"===e?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(e.slice(2)));case "n":return BigInt(e.slice(2));default:e=parseInt(e.slice(1),16);a=W(a,e);switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return e=T,a.then(fa(e,b,c,"cyclic"===a.status),ha(e)),null;default:throw a.reason;}}}return e} | ||
function ka(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Y(a,b,c,e,l){var k=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:ka,_encodeFormAction:e,_nonce:l,_chunks:k,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=la(a);return a} | ||
function ma(a,b,c){var e=a._chunks,l=e.get(b);c=JSON.parse(c,a._fromJSON);var k=u(a._bundlerConfig,c);if(c=y(k)){if(l){var n=l;n.status="blocked"}else n=new L("blocked",null,null,a),e.set(b,n);c.then(function(){return S(n,k)},function(g){return R(n,g)})}else l?S(l,k):e.set(b,new L("resolved_module",k,null,a))} | ||
function la(a){return function(b,c){return"string"===typeof c?ja(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}} | ||
function Z(a,b){function c(k){var n=k.value;if(k.done)V(a,Error("Connection closed."));else{var g=0,m=a._rowState,d=a._rowID,h=a._rowTag,f=a._rowLength;k=a._buffer;for(var D=n.length;g<D;){var p=-1;switch(m){case 0:p=n[g++];58===p?m=1:d=d<<4|(96<p?p-87:p-48);continue;case 1:m=n[g];84===m?(h=m,m=2,g++):64<m&&91>m?(h=m,m=3,g++):(h=0,m=3);continue;case 2:p=n[g++];44===p?m=4:f=f<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,g);break;case 4:p=g+f,p>n.length&&(p=-1)}var q=n.byteOffset+g;if(-1<p){g= | ||
new Uint8Array(n.buffer,q,p-g);f=a;q=h;var P=f._stringDecoder;h="";for(var G=0;G<k.length;G++)h+=P.decode(k[G],t);h+=P.decode(g);switch(q){case 73:ma(f,d,h);break;case 72:d=h[0];h=h.slice(1);f=JSON.parse(h,f._fromJSON);if(h=B.current)switch(d){case "D":h.prefetchDNS(f);break;case "C":"string"===typeof f?h.preconnect(f):h.preconnect(f[0],f[1]);break;case "L":d=f[0];g=f[1];3===f.length?h.preload(d,g,f[2]):h.preload(d,g);break;case "m":"string"===typeof f?h.preloadModule(f):h.preloadModule(f[0],f[1]); | ||
break;case "S":"string"===typeof f?h.preinitStyle(f):h.preinitStyle(f[0],0===f[1]?void 0:f[1],3===f.length?f[2]:void 0);break;case "X":"string"===typeof f?h.preinitScript(f):h.preinitScript(f[0],f[1]);break;case "M":"string"===typeof f?h.preinitModuleScript(f):h.preinitModuleScript(f[0],f[1])}break;case 69:h=JSON.parse(h);g=h.digest;h=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
h.stack="Error: "+h.message;h.digest=g;g=f._chunks;(q=g.get(d))?R(q,h):g.set(d,new L("rejected",null,h,f));break;case 84:f._chunks.set(d,new L("fulfilled",h,null,f));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:g=f._chunks,(q=g.get(d))?(f=q,d=h,"pending"===f.status&&(h=f.value,g=f.reason,f.status="resolved_model", | ||
f.value=d,null!==h&&(M(f),Q(f,h,g)))):g.set(d,new L("resolved_model",h,null,f))}g=p;3===m&&g++;f=d=h=m=0;k.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-g);k.push(n);f-=n.byteLength;break}}a._rowState=m;a._rowID=d;a._rowTag=h;a._rowLength=f;return l.read().then(c).catch(e)}}function e(k){V(a,k)}var l=b.getReader();l.read().then(c).catch(e)} | ||
exports.createFromFetch=function(a,b){var c=Y(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);a.then(function(e){Z(c,e.body)},function(e){V(c,e)});return W(c,0)};exports.createFromReadableStream=function(a,b){b=Y(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);Z(b,a);return W(b,0)};exports.createServerReference=function(a,b){function c(){var e=Array.prototype.slice.call(arguments);return b(a,e)}da(c,{id:a,bound:null});return c}; | ||
exports.encodeReply=function(a){return new Promise(function(b,c){ca(a,"",b,c)})}; | ||
//# sourceMappingURL=react-server-dom-webpack-client.browser.production.min.js.map |
@@ -1,34 +0,43 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-client.edge.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var q=require("react-dom"),t=require("react"),u={stream:!0};function v(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var w=new Map,y=new Map;function z(){} | ||
function A(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var f=b[d],g=w.get(f);if(void 0===g){g=__webpack_chunk_load__(f);c.push(g);var n=w.set.bind(w,f,null);g.then(n,z);w.set(f,g)}else null!==g&&c.push(g)}if(a.async){if(b=y.get(a.id))return"fulfilled"===b.status?null:b;var l=Promise.all(c).then(function(){return __webpack_require__(a.id)});l.then(function(h){l.status="fulfilled";l.value=h},function(h){l.status="rejected";l.reason=h});y.set(a.id,l);return l}return 0<c.length?Promise.all(c):null} | ||
var B=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C=Symbol.for("react.element"),D=Symbol.for("react.lazy"),E=Symbol.for("react.default_value"),F=Symbol.iterator;function G(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===typeof a?a:null}var H=Array.isArray,I=new WeakMap;function J(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function aa(a,b,c,d){function f(h,e){if(null===e)return null;if("object"===typeof e){if("function"===typeof e.then){null===l&&(l=new FormData);n++;var k=g++;e.then(function(r){r=JSON.stringify(r,f);var x=l;x.append(b+k,r);n--;0===n&&c(x)},function(r){d(r)});return"$@"+k.toString(16)}if(e instanceof FormData){null===l&&(l=new FormData);var m=l;h=g++;var p=b+h+"_";e.forEach(function(r,x){m.append(p+x,r)});return"$K"+h.toString(16)}return!H(e)&&G(e)?Array.from(e):e}if("string"===typeof e){if("Z"===e[e.length- | ||
1]&&this[h]instanceof Date)return"$D"+e;e="$"===e[0]?"$"+e:e;return e}if("boolean"===typeof e)return e;if("number"===typeof e)return J(e);if("undefined"===typeof e)return"$undefined";if("function"===typeof e){e=I.get(e);if(void 0!==e)return e=JSON.stringify(e,f),null===l&&(l=new FormData),h=g++,l.set(b+h,e),"$F"+h.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof e){h=e.description; | ||
if(Symbol.for(h)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(e.description+") cannot be found among global symbols."));return"$S"+h}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+" is not supported as an argument to a Server Function.");}var g=1,n=0,l=null;a=JSON.stringify(a,f);null===l?c(a):(l.set(b+"0",a),0===n&&c(l))}var K=new WeakMap; | ||
function ba(a){var b,c,d=new Promise(function(f,g){b=f;c=g});aa(a,"",function(f){if("string"===typeof f){var g=new FormData;g.append("0",f);f=g}d.status="fulfilled";d.value=f;b(f)},function(f){d.status="rejected";d.reason=f;c(f)});return d} | ||
function ca(a){var b=I.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=K.get(b);c||(c=ba(b),K.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(f,g){d.append("$ACTION_"+a+":"+g,f)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} | ||
var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function M(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}M.prototype=Object.create(Promise.prototype); | ||
M.prototype.then=function(a,b){switch(this.status){case "resolved_model":N(this);break;case "resolved_module":O(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 da(a){switch(a.status){case "resolved_model":N(a);break;case "resolved_module":O(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function P(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Q(a,b,c){switch(a.status){case "fulfilled":P(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&P(c,a.reason)}} | ||
function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&P(c,b)}}function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(O(a),Q(a,c,d))}}var T=null,U=null; | ||
function N(a){var b=T,c=U;T=a;U=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==U&&0<U.deps?(U.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(f){a.status="rejected",a.reason=f}finally{T=b,U=c}} | ||
function O(a){try{var b=a.value;if(b.async){var c=y.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var f="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=f}catch(g){a.status="rejected",a.reason=g}}function V(a,b){a._chunks.forEach(function(c){"pending"===c.status&&R(c,b)})}function W(a,b){var c=a._chunks,d=c.get(b);d||(d=new M("pending",null,null,a),c.set(b,d));return d} | ||
function ea(a,b,c){if(U){var d=U;d.deps++}else d=U={deps:1,value:null};return function(f){b[c]=f;d.deps--;0===d.deps&&"blocked"===a.status&&(f=a.value,a.status="fulfilled",a.value=d.value,null!==f&&P(f,d.value))}}function fa(a){return function(b){return R(a,b)}} | ||
function ha(a,b){function c(){var f=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?d(b.id,g.value.concat(f)):Promise.resolve(g).then(function(n){return d(b.id,n.concat(f))}):d(b.id,f)}var d=a._callServer;c.$$FORM_ACTION=ca;I.set(c,b);return c} | ||
function ia(a,b,c,d){if("$"===d[0]){if("$"===d)return C;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=W(a,b),{$$typeof:D,_payload:a,_init:da};case "@":return b=parseInt(d.slice(2),16),W(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),L[a]||(L[a]=t.createServerContext(a,E)),L[a].Provider;case "F":b=parseInt(d.slice(2),16);b=W(a,b);switch(b.status){case "resolved_model":N(b)}switch(b.status){case "fulfilled":return ha(a,b.value);default:throw b.reason; | ||
}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));default:d=parseInt(d.slice(1),16);a=W(a,d);switch(a.status){case "resolved_model":N(a);break;case "resolved_module":O(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=T,a.then(ea(d,b,c),fa(d)),null;default:throw a.reason;}}}return d} | ||
function ja(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ka(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var g=v(a._bundlerConfig,c);if(c=A(g)){if(f){var n=f;n.status="blocked"}else n=new M("blocked",null,null,a),d.set(b,n);c.then(function(){return S(n,g)},function(l){return R(n,l)})}else f?S(f,g):d.set(b,new M("resolved_module",g,null,a))} | ||
function la(a){return function(b,c){return"string"===typeof c?ia(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function X(a,b){var c=new TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ja,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=la(a);return a} | ||
function Y(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");} | ||
function Z(a,b){function c(g){var n=g.value;if(g.done)V(a,Error("Connection closed."));else{g=n;n=a._stringDecoder;for(var l=g.indexOf(10);-1<l;){var h=a._partialRow;var e=g.subarray(0,l);e=n.decode(e);var k=h+e;h=a;if(""!==k){var m=k.indexOf(":",0);e=parseInt(k.slice(0,m),16);switch(k[m+1]){case "I":ka(h,e,k.slice(m+2));break;case "H":e=k[m+2];k=k.slice(m+3);h=JSON.parse(k,h._fromJSON);k=void 0;var p=B.current;if(p)switch("string"===typeof h?m=h:(m=h[0],k=h[1]),e){case "D":p.prefetchDNS(m,k);break; | ||
case "C":p.preconnect(m,k);break;case "L":p.preload(m,k);break;case "I":p.preinit(m,k)}break;case "E":m=JSON.parse(k.slice(m+2)).digest;k=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");k.stack="Error: "+k.message;k.digest=m;m=h._chunks;(p=m.get(e))?R(p,k):m.set(e,new M("rejected", | ||
null,k,h));break;default:k=k.slice(m+1),m=h._chunks,(p=m.get(e))?(h=p,e=k,"pending"===h.status&&(k=h.value,m=h.reason,h.status="resolved_model",h.value=e,null!==k&&(N(h),Q(h,k,m)))):m.set(e,new M("resolved_model",k,null,h))}}a._partialRow="";g=g.subarray(l+1);l=g.indexOf(10)}a._partialRow+=n.decode(g,u);return f.read().then(c).catch(d)}}function d(g){V(a,g)}var f=b.getReader();f.read().then(c).catch(d)} | ||
exports.createFromFetch=function(a,b){var c=X(b&&b.moduleMap?b.moduleMap:null,Y);a.then(function(d){Z(c,d.body)},function(d){V(c,d)});return W(c,0)};exports.createFromReadableStream=function(a,b){b=X(b&&b.moduleMap?b.moduleMap:null,Y);Z(b,a);return W(b,0)};exports.createServerReference=function(){return Y}; | ||
/* | ||
React | ||
react-server-dom-webpack-client.edge.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var r=require("react-dom"),t={stream:!0};function u(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var v=new Map; | ||
function w(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 x(){} | ||
function aa(a){for(var b=a[1],c=[],d=0;d<b.length;){var f=b[d++];b[d++];var h=v.get(f);if(void 0===h){h=__webpack_chunk_load__(f);c.push(h);var n=v.set.bind(v,f,null);h.then(n,x);v.set(f,h)}else null!==h&&c.push(h)}return 4===a.length?0===c.length?w(a[0]):Promise.all(c).then(function(){return w(a[0])}):0<c.length?Promise.all(c):null} | ||
function ba(a,b,c){if(null!==a)for(var d=1;d<b.length;d+=2){var f=c,h=y.current;if(h){var n=h.preinitScript,k=a.prefix+b[d];var m=a.crossOrigin;m="string"===typeof m?"use-credentials"===m?m:"":void 0;n.call(h,k,{crossOrigin:m,nonce:f})}}}var y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),ca=Symbol.for("react.lazy"),A=Symbol.iterator; | ||
function da(a){if(null===a||"object"!==typeof a)return null;a=A&&a[A]||a["@@iterator"];return"function"===typeof a?a:null}var ea=Array.isArray,B=Object.getPrototypeOf,fa=Object.prototype,C=new WeakMap;function ha(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function E(a,b,c,d){function f(m,e){if(null===e)return null;if("object"===typeof e){if("function"===typeof e.then){null===k&&(k=new FormData);n++;var l=h++;e.then(function(p){p=JSON.stringify(p,f);var q=k;q.append(b+l,p);n--;0===n&&c(q)},function(p){d(p)});return"$@"+l.toString(16)}if(ea(e))return e;if(e instanceof FormData){null===k&&(k=new FormData);var g=k;m=h++;var D=b+m+"_";e.forEach(function(p,q){g.append(D+q,p)});return"$K"+m.toString(16)}if(e instanceof Map)return e=JSON.stringify(Array.from(e), | ||
f),null===k&&(k=new FormData),m=h++,k.append(b+m,e),"$Q"+m.toString(16);if(e instanceof Set)return e=JSON.stringify(Array.from(e),f),null===k&&(k=new FormData),m=h++,k.append(b+m,e),"$W"+m.toString(16);if(da(e))return Array.from(e);m=B(e);if(m!==fa&&(null===m||null!==B(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&this[m]instanceof Date)return"$D"+e; | ||
e="$"===e[0]?"$"+e:e;return e}if("boolean"===typeof e)return e;if("number"===typeof e)return ha(e);if("undefined"===typeof e)return"$undefined";if("function"===typeof e){e=C.get(e);if(void 0!==e)return e=JSON.stringify(e,f),null===k&&(k=new FormData),m=h++,k.set(b+m,e),"$F"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof e){m=e.description;if(Symbol.for(m)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+ | ||
(e.description+") cannot be found among global symbols."));return"$S"+m}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+" is not supported as an argument to a Server Function.");}var h=1,n=0,k=null;a=JSON.stringify(a,f);null===k?c(a):(k.set(b+"0",a),0===n&&c(k))}var F=new WeakMap; | ||
function ia(a){var b,c,d=new Promise(function(f,h){b=f;c=h});E(a,"",function(f){if("string"===typeof f){var h=new FormData;h.append("0",f);f=h}d.status="fulfilled";d.value=f;b(f)},function(f){d.status="rejected";d.reason=f;c(f)});return d} | ||
function ja(a){var b=C.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=F.get(b);c||(c=ia(b),F.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(f,h){d.append("$ACTION_"+a+":"+h,f)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} | ||
function G(a,b){var c=C.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(c.id!==a)return!1;var d=c.bound;if(null===d)return 0===b;switch(d.status){case "fulfilled":return d.value.length===b;case "pending":throw d;case "rejected":throw d.reason;default:throw"string"!==typeof d.status&&(d.status="pending",d.then(function(f){d.status="fulfilled";d.value=f},function(f){d.status="rejected";d.reason=f})),d;}} | ||
function I(a,b,c){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===c?ja:function(){var d=C.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var f=d.bound;null===f&&(f=Promise.resolve([]));return c(d.id,f)}},$$IS_SIGNATURE_EQUAL:{value:G},bind:{value:J}});C.set(a,b)}var ka=Function.prototype.bind,la=Array.prototype.slice; | ||
function J(){var a=ka.apply(this,arguments),b=C.get(this);if(b){var c=la.call(arguments,1),d=null;d=null!==b.bound?Promise.resolve(b.bound).then(function(f){return f.concat(c)}):Promise.resolve(c);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:G},bind:{value:J}});C.set(a,{id:b.id,bound:d})}return a}function ma(a,b,c){function d(){var f=Array.prototype.slice.call(arguments);return b(a,f)}I(d,{id:a,bound:null},c);return d} | ||
function K(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}K.prototype=Object.create(Promise.prototype);K.prototype.then=function(a,b){switch(this.status){case "resolved_model":L(this);break;case "resolved_module":M(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":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 na(a){switch(a.status){case "resolved_model":L(a);break;case "resolved_module":M(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function N(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function O(a,b,c){switch(a.status){case "fulfilled":N(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&N(c,a.reason)}} | ||
function P(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&N(c,b)}}function Q(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(M(a),O(a,c,d))}}var R=null,S=null; | ||
function L(a){var b=R,c=S;R=a;S=null;var d=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var f=JSON.parse(d,a._response._fromJSON);if(null!==S&&0<S.deps)S.value=f,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=f;null!==h&&N(h,f)}}catch(n){a.status="rejected",a.reason=n}finally{R=b,S=c}} | ||
function M(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var d="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:c[b[2]];a.status="fulfilled";a.value=d}catch(f){a.status="rejected",a.reason=f}}function T(a,b){a._chunks.forEach(function(c){"pending"===c.status&&P(c,b)})}function U(a,b){var c=a._chunks,d=c.get(b);d||(d=new K("pending",null,null,a),c.set(b,d));return d} | ||
function oa(a,b,c,d){if(S){var f=S;d||f.deps++}else f=S={deps:d?0:1,value:null};return function(h){b[c]=h;f.deps--;0===f.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=f.value,null!==h&&N(h,f.value))}}function pa(a){return function(b){return P(a,b)}} | ||
function qa(a,b){function c(){var f=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?d(b.id,h.value.concat(f)):Promise.resolve(h).then(function(n){return d(b.id,n.concat(f))}):d(b.id,f)}var d=a._callServer;I(c,b,a._encodeFormAction);return c}function W(a,b){a=U(a,b);switch(a.status){case "resolved_model":L(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}} | ||
function ra(a,b,c,d){if("$"===d[0]){if("$"===d)return z;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=U(a,b),{$$typeof:ca,_payload:a,_init:na};case "@":if(2===d.length)return new Promise(function(){});b=parseInt(d.slice(2),16);return U(a,b);case "S":return Symbol.for(d.slice(2));case "F":return b=parseInt(d.slice(2),16),b=W(a,b),qa(a,b);case "Q":return b=parseInt(d.slice(2),16),a=W(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=W(a,b),new Set(a); | ||
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));default:d=parseInt(d.slice(1),16);a=U(a,d);switch(a.status){case "resolved_model":L(a);break;case "resolved_module":M(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return d=R,a.then(oa(d,b,c,"cyclic"===a.status),pa(d)),null;default:throw a.reason;}}}return d} | ||
function sa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ta(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var h=u(a._bundlerConfig,c);ba(a._moduleLoading,c[1],a._nonce);if(c=aa(h)){if(f){var n=f;n.status="blocked"}else n=new K("blocked",null,null,a),d.set(b,n);c.then(function(){return Q(n,h)},function(k){return P(n,k)})}else f?Q(f,h):d.set(b,new K("resolved_module",h,null,a))} | ||
function ua(a){return function(b,c){return"string"===typeof c?ra(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===z?{$$typeof:z,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function X(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");} | ||
function Y(a){var b=a.ssrManifest.moduleMap,c=a.ssrManifest.moduleLoading,d=a.encodeFormAction;a="string"===typeof a.nonce?a.nonce:void 0;var f=new Map;b={_bundlerConfig:b,_moduleLoading:c,_callServer:void 0!==X?X:sa,_encodeFormAction:d,_nonce:a,_chunks:f,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};b._fromJSON=ua(b);return b} | ||
function Z(a,b){function c(h){var n=h.value;if(h.done)T(a,Error("Connection closed."));else{var k=0,m=a._rowState,e=a._rowID,l=a._rowTag,g=a._rowLength;h=a._buffer;for(var D=n.length;k<D;){var p=-1;switch(m){case 0:p=n[k++];58===p?m=1:e=e<<4|(96<p?p-87:p-48);continue;case 1:m=n[k];84===m?(l=m,m=2,k++):64<m&&91>m?(l=m,m=3,k++):(l=0,m=3);continue;case 2:p=n[k++];44===p?m=4:g=g<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,k);break;case 4:p=k+g,p>n.length&&(p=-1)}var q=n.byteOffset+k;if(-1<p){k= | ||
new Uint8Array(n.buffer,q,p-k);g=a;q=l;var V=g._stringDecoder;l="";for(var H=0;H<h.length;H++)l+=V.decode(h[H],t);l+=V.decode(k);switch(q){case 73:ta(g,e,l);break;case 72:e=l[0];l=l.slice(1);g=JSON.parse(l,g._fromJSON);if(l=y.current)switch(e){case "D":l.prefetchDNS(g);break;case "C":"string"===typeof g?l.preconnect(g):l.preconnect(g[0],g[1]);break;case "L":e=g[0];k=g[1];3===g.length?l.preload(e,k,g[2]):l.preload(e,k);break;case "m":"string"===typeof g?l.preloadModule(g):l.preloadModule(g[0],g[1]); | ||
break;case "S":"string"===typeof g?l.preinitStyle(g):l.preinitStyle(g[0],0===g[1]?void 0:g[1],3===g.length?g[2]:void 0);break;case "X":"string"===typeof g?l.preinitScript(g):l.preinitScript(g[0],g[1]);break;case "M":"string"===typeof g?l.preinitModuleScript(g):l.preinitModuleScript(g[0],g[1])}break;case 69:l=JSON.parse(l);k=l.digest;l=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
l.stack="Error: "+l.message;l.digest=k;k=g._chunks;(q=k.get(e))?P(q,l):k.set(e,new K("rejected",null,l,g));break;case 84:g._chunks.set(e,new K("fulfilled",l,null,g));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:k=g._chunks,(q=k.get(e))?(g=q,e=l,"pending"===g.status&&(l=g.value,k=g.reason,g.status="resolved_model", | ||
g.value=e,null!==l&&(L(g),O(g,l,k)))):k.set(e,new K("resolved_model",l,null,g))}k=p;3===m&&k++;g=e=l=m=0;h.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-k);h.push(n);g-=n.byteLength;break}}a._rowState=m;a._rowID=e;a._rowTag=l;a._rowLength=g;return f.read().then(c).catch(d)}}function d(h){T(a,h)}var f=b.getReader();f.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(b);a.then(function(d){Z(c,d.body)},function(d){T(c,d)});return U(c,0)}; | ||
exports.createFromReadableStream=function(a,b){b=Y(b);Z(b,a);return U(b,0)};exports.createServerReference=function(a){return ma(a,X)};exports.encodeReply=function(a){return new Promise(function(b,c){E(a,"",b,c)})}; | ||
//# sourceMappingURL=react-server-dom-webpack-client.edge.production.min.js.map |
@@ -1,34 +0,42 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-client.node.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var m=require("util"),p=require("react-dom"),q=require("react"),r={stream:!0};function t(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var v=new Map,w=new Map;function x(){} | ||
function y(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],f=v.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var k=v.set.bind(v,e,null);f.then(k,x);v.set(e,f)}else null!==f&&c.push(f)}if(a.async){if(b=w.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(c).then(function(){return __webpack_require__(a.id)});h.then(function(l){h.status="fulfilled";h.value=l},function(l){h.status="rejected";h.reason=l});w.set(a.id,h);return h}return 0<c.length?Promise.all(c):null} | ||
var z=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A=Symbol.for("react.element"),B=Symbol.for("react.lazy"),C=Symbol.for("react.default_value"),D=Symbol.iterator;function E(a){if(null===a||"object"!==typeof a)return null;a=D&&a[D]||a["@@iterator"];return"function"===typeof a?a:null}var G=Array.isArray,H=new WeakMap;function I(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function J(a,b,c,d){function e(l,g){if(null===g)return null;if("object"===typeof g){if("function"===typeof g.then){null===h&&(h=new FormData);k++;var F=f++;g.then(function(n){n=JSON.stringify(n,e);var u=h;u.append(b+F,n);k--;0===k&&c(u)},function(n){d(n)});return"$@"+F.toString(16)}if(g instanceof FormData){null===h&&(h=new FormData);var Z=h;l=f++;var aa=b+l+"_";g.forEach(function(n,u){Z.append(aa+u,n)});return"$K"+l.toString(16)}return!G(g)&&E(g)?Array.from(g):g}if("string"===typeof g){if("Z"=== | ||
g[g.length-1]&&this[l]instanceof Date)return"$D"+g;g="$"===g[0]?"$"+g:g;return g}if("boolean"===typeof g)return g;if("number"===typeof g)return I(g);if("undefined"===typeof g)return"$undefined";if("function"===typeof g){g=H.get(g);if(void 0!==g)return g=JSON.stringify(g,e),null===h&&(h=new FormData),l=f++,h.set(b+l,g),"$F"+l.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof g){l= | ||
g.description;if(Symbol.for(l)!==g)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(g.description+") cannot be found among global symbols."));return"$S"+l}if("bigint"===typeof g)return"$n"+g.toString(10);throw Error("Type "+typeof g+" is not supported as an argument to a Server Function.");}var f=1,k=0,h=null;a=JSON.stringify(a,e);null===h?c(a):(h.set(b+"0",a),0===k&&c(h))}var K=new WeakMap; | ||
function ba(a){var b,c,d=new Promise(function(e,f){b=e;c=f});J(a,"",function(e){if("string"===typeof e){var f=new FormData;f.append("0",e);e=f}d.status="fulfilled";d.value=e;b(e)},function(e){d.status="rejected";d.reason=e;c(e)});return d} | ||
function ca(a){var b=H.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=K.get(b);c||(c=ba(b),K.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(e,f){d.append("$ACTION_"+a+":"+f,e)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} | ||
var L=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function M(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}M.prototype=Object.create(Promise.prototype); | ||
M.prototype.then=function(a,b){switch(this.status){case "resolved_model":N(this);break;case "resolved_module":O(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 da(a){switch(a.status){case "resolved_model":N(a);break;case "resolved_module":O(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function P(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Q(a,b,c){switch(a.status){case "fulfilled":P(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&P(c,a.reason)}} | ||
function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&P(c,b)}}function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(O(a),Q(a,c,d))}}var T=null,U=null; | ||
function N(a){var b=T,c=U;T=a;U=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==U&&0<U.deps?(U.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{T=b,U=c}} | ||
function O(a){try{var b=a.value;if(b.async){var c=w.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}function V(a,b){a._chunks.forEach(function(c){"pending"===c.status&&R(c,b)})}function W(a,b){var c=a._chunks,d=c.get(b);d||(d=new M("pending",null,null,a),c.set(b,d));return d} | ||
function ea(a,b,c){if(U){var d=U;d.deps++}else d=U={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&&P(e,d.value))}}function fa(a){return function(b){return R(a,b)}} | ||
function ha(a,b){function c(){var e=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?d(b.id,f.value.concat(e)):Promise.resolve(f).then(function(k){return d(b.id,k.concat(e))}):d(b.id,e)}var d=a._callServer;c.$$FORM_ACTION=ca;H.set(c,b);return c} | ||
function ia(a,b,c,d){if("$"===d[0]){if("$"===d)return A;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=W(a,b),{$$typeof:B,_payload:a,_init:da};case "@":return b=parseInt(d.slice(2),16),W(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),L[a]||(L[a]=q.createServerContext(a,C)),L[a].Provider;case "F":b=parseInt(d.slice(2),16);b=W(a,b);switch(b.status){case "resolved_model":N(b)}switch(b.status){case "fulfilled":return ha(a,b.value);default:throw b.reason; | ||
}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));default:d=parseInt(d.slice(1),16);a=W(a,d);switch(a.status){case "resolved_model":N(a);break;case "resolved_module":O(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=T,a.then(ea(d,b,c),fa(d)),null;default:throw a.reason;}}}return d} | ||
function ja(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ka(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=t(a._bundlerConfig,c);if(c=y(f)){if(e){var k=e;k.status="blocked"}else k=new M("blocked",null,null,a),d.set(b,k);c.then(function(){return S(k,f)},function(h){return R(k,h)})}else e?S(e,f):d.set(b,new M("resolved_module",f,null,a))} | ||
function X(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":ka(a,d,b.slice(c+2));break;case "H":d=b[c+2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=z.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
e.stack="Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?R(c,e):b.set(d,new M("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(N(b),Q(b,a,d))):c.set(d,new M("resolved_model",e,null,a))}}} | ||
function la(a){return function(b,c){return"string"===typeof c?ia(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===A?{$$typeof:A,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ma(a,b){var c=new m.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ja,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=la(a);return a} | ||
function Y(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");} | ||
exports.createFromNodeStream=function(a,b){var c=ma(b,Y);a.on("data",function(d){if("string"===typeof d){for(var e=0,f=d.indexOf("\n",e);-1<f;)e=c._partialRow+d.slice(e,f),X(c,e),c._partialRow="",e=f+1,f=d.indexOf("\n",e);c._partialRow+=d.slice(e)}else{f=c._stringDecoder;for(e=d.indexOf(10);-1<e;){var k=c._partialRow;var h=d.subarray(0,e);h=f.decode(h);X(c,k+h);c._partialRow="";d=d.subarray(e+1);e=d.indexOf(10)}c._partialRow+=f.decode(d,r)}});a.on("error",function(d){V(c,d)});a.on("end",function(){V(c, | ||
Error("Connection closed."))});return W(c,0)};exports.createServerReference=function(){return Y}; | ||
/* | ||
React | ||
react-server-dom-webpack-client.node.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var p=require("util"),r=require("react-dom"),t={stream:!0};function v(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var w=new Map; | ||
function x(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 y(){} | ||
function z(a){for(var b=a[1],c=[],d=0;d<b.length;){var g=b[d++];b[d++];var h=w.get(g);if(void 0===h){h=__webpack_chunk_load__(g);c.push(h);var l=w.set.bind(w,g,null);h.then(l,y);w.set(g,h)}else null!==h&&c.push(h)}return 4===a.length?0===c.length?x(a[0]):Promise.all(c).then(function(){return x(a[0])}):0<c.length?Promise.all(c):null} | ||
function A(a,b,c){if(null!==a)for(var d=1;d<b.length;d+=2){var g=c,h=B.current;if(h){var l=h.preinitScript,k=a.prefix+b[d];var e=a.crossOrigin;e="string"===typeof e?"use-credentials"===e?e:"":void 0;l.call(h,k,{crossOrigin:e,nonce:g})}}}var B=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C=Symbol.for("react.element"),E=Symbol.for("react.lazy"),F=Symbol.iterator; | ||
function G(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===typeof a?a:null}var aa=Array.isArray,H=Object.getPrototypeOf,ba=Object.prototype,I=new WeakMap;function ca(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function da(a,b,c,d){function g(e,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===k&&(k=new FormData);l++;var u=h++;f.then(function(n){n=JSON.stringify(n,g);var q=k;q.append(b+u,n);l--;0===l&&c(q)},function(n){d(n)});return"$@"+u.toString(16)}if(aa(f))return f;if(f instanceof FormData){null===k&&(k=new FormData);var D=k;e=h++;var m=b+e+"_";f.forEach(function(n,q){D.append(m+q,n)});return"$K"+e.toString(16)}if(f instanceof Map)return f=JSON.stringify(Array.from(f), | ||
g),null===k&&(k=new FormData),e=h++,k.append(b+e,f),"$Q"+e.toString(16);if(f instanceof Set)return f=JSON.stringify(Array.from(f),g),null===k&&(k=new FormData),e=h++,k.append(b+e,f),"$W"+e.toString(16);if(G(f))return Array.from(f);e=H(f);if(e!==ba&&(null===e||null!==H(e)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[e]instanceof Date)return"$D"+f; | ||
f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return ca(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===k&&(k=new FormData),e=h++,k.set(b+e,f),"$F"+e.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){e=f.description;if(Symbol.for(e)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+ | ||
(f.description+") cannot be found among global symbols."));return"$S"+e}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,l=0,k=null;a=JSON.stringify(a,g);null===k?c(a):(k.set(b+"0",a),0===l&&c(k))}var J=new WeakMap; | ||
function ea(a){var b,c,d=new Promise(function(g,h){b=g;c=h});da(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}d.status="fulfilled";d.value=g;b(g)},function(g){d.status="rejected";d.reason=g;c(g)});return d} | ||
function fa(a){var b=I.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=J.get(b);c||(c=ea(b),J.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(g,h){d.append("$ACTION_"+a+":"+h,g)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} | ||
function K(a,b){var c=I.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(c.id!==a)return!1;var d=c.bound;if(null===d)return 0===b;switch(d.status){case "fulfilled":return d.value.length===b;case "pending":throw d;case "rejected":throw d.reason;default:throw"string"!==typeof d.status&&(d.status="pending",d.then(function(g){d.status="fulfilled";d.value=g},function(g){d.status="rejected";d.reason=g})),d;}} | ||
function L(a,b,c){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===c?fa:function(){var d=I.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var g=d.bound;null===g&&(g=Promise.resolve([]));return c(d.id,g)}},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,b)}var ha=Function.prototype.bind,ia=Array.prototype.slice; | ||
function M(){var a=ha.apply(this,arguments),b=I.get(this);if(b){var c=ia.call(arguments,1),d=null;d=null!==b.bound?Promise.resolve(b.bound).then(function(g){return g.concat(c)}):Promise.resolve(c);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,{id:b.id,bound:d})}return a}function ja(a,b,c){function d(){var g=Array.prototype.slice.call(arguments);return b(a,g)}L(d,{id:a,bound:null},c);return d} | ||
function N(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}N.prototype=Object.create(Promise.prototype);N.prototype.then=function(a,b){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":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 ka(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function Q(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function R(a,b,c){switch(a.status){case "fulfilled":Q(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&Q(c,a.reason)}} | ||
function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Q(c,b)}}function T(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(P(a),R(a,c,d))}}var U=null,V=null; | ||
function O(a){var b=U,c=V;U=a;V=null;var d=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var g=JSON.parse(d,a._response._fromJSON);if(null!==V&&0<V.deps)V.value=g,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=g;null!==h&&Q(h,g)}}catch(l){a.status="rejected",a.reason=l}finally{U=b,V=c}} | ||
function P(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var d="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:c[b[2]];a.status="fulfilled";a.value=d}catch(g){a.status="rejected",a.reason=g}}function W(a,b){a._chunks.forEach(function(c){"pending"===c.status&&S(c,b)})}function X(a,b){var c=a._chunks,d=c.get(b);d||(d=new N("pending",null,null,a),c.set(b,d));return d} | ||
function la(a,b,c,d){if(V){var g=V;d||g.deps++}else g=V={deps:d?0:1,value:null};return function(h){b[c]=h;g.deps--;0===g.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=g.value,null!==h&&Q(h,g.value))}}function ma(a){return function(b){return S(a,b)}} | ||
function na(a,b){function c(){var g=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?d(b.id,h.value.concat(g)):Promise.resolve(h).then(function(l){return d(b.id,l.concat(g))}):d(b.id,g)}var d=a._callServer;L(c,b,a._encodeFormAction);return c}function Y(a,b){a=X(a,b);switch(a.status){case "resolved_model":O(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}} | ||
function oa(a,b,c,d){if("$"===d[0]){if("$"===d)return C;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=X(a,b),{$$typeof:E,_payload:a,_init:ka};case "@":if(2===d.length)return new Promise(function(){});b=parseInt(d.slice(2),16);return X(a,b);case "S":return Symbol.for(d.slice(2));case "F":return b=parseInt(d.slice(2),16),b=Y(a,b),na(a,b);case "Q":return b=parseInt(d.slice(2),16),a=Y(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Y(a,b),new Set(a);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));default:d=parseInt(d.slice(1),16);a=X(a,d);switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return d=U,a.then(la(d,b,c,"cyclic"===a.status),ma(d)),null;default:throw a.reason;}}}return d} | ||
function pa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function qa(a,b,c,d,g){var h=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:pa,_encodeFormAction:d,_nonce:g,_chunks:h,_stringDecoder:new p.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ra(a);return a} | ||
function sa(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var h=v(a._bundlerConfig,c);A(a._moduleLoading,c[1],a._nonce);if(c=z(h)){if(g){var l=g;l.status="blocked"}else l=new N("blocked",null,null,a),d.set(b,l);c.then(function(){return T(l,h)},function(k){return S(l,k)})}else g?T(g,h):d.set(b,new N("resolved_module",h,null,a))} | ||
function ra(a){return function(b,c){return"string"===typeof c?oa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");} | ||
exports.createFromNodeStream=function(a,b,c){var d=qa(b.moduleMap,b.moduleLoading,Z,c?c.encodeFormAction:void 0,c&&"string"===typeof c.nonce?c.nonce:void 0);a.on("data",function(g){for(var h=0,l=d._rowState,k=d._rowID,e=d._rowTag,f=d._rowLength,u=d._buffer,D=g.length;h<D;){var m=-1;switch(l){case 0:m=g[h++];58===m?l=1:k=k<<4|(96<m?m-87:m-48);continue;case 1:l=g[h];84===l?(e=l,l=2,h++):64<l&&91>l?(e=l,l=3,h++):(e=0,l=3);continue;case 2:m=g[h++];44===m?l=4:f=f<<4|(96<m?m-87:m-48);continue;case 3:m= | ||
g.indexOf(10,h);break;case 4:m=h+f,m>g.length&&(m=-1)}var n=g.byteOffset+h;if(-1<m){f=new Uint8Array(g.buffer,n,m-h);h=e;n=d._stringDecoder;e="";for(var q=0;q<u.length;q++)e+=n.decode(u[q],t);e+=n.decode(f);switch(h){case 73:sa(d,k,e);break;case 72:k=e[0];e=e.slice(1);e=JSON.parse(e,d._fromJSON);if(f=B.current)switch(k){case "D":f.prefetchDNS(e);break;case "C":"string"===typeof e?f.preconnect(e):f.preconnect(e[0],e[1]);break;case "L":k=e[0];h=e[1];3===e.length?f.preload(k,h,e[2]):f.preload(k,h);break; | ||
case "m":"string"===typeof e?f.preloadModule(e):f.preloadModule(e[0],e[1]);break;case "S":"string"===typeof e?f.preinitStyle(e):f.preinitStyle(e[0],0===e[1]?void 0:e[1],3===e.length?e[2]:void 0);break;case "X":"string"===typeof e?f.preinitScript(e):f.preinitScript(e[0],e[1]);break;case "M":"string"===typeof e?f.preinitModuleScript(e):f.preinitModuleScript(e[0],e[1])}break;case 69:e=JSON.parse(e);f=e.digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
e.stack="Error: "+e.message;e.digest=f;f=d._chunks;(h=f.get(k))?S(h,e):f.set(k,new N("rejected",null,e,d));break;case 84:d._chunks.set(k,new N("fulfilled",e,null,d));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:f=d._chunks,(h=f.get(k))?(k=h,"pending"===k.status&&(f=k.value,h=k.reason,k.status="resolved_model", | ||
k.value=e,null!==f&&(O(k),R(k,f,h)))):f.set(k,new N("resolved_model",e,null,d))}h=m;3===l&&h++;f=k=e=l=0;u.length=0}else{g=new Uint8Array(g.buffer,n,g.byteLength-h);u.push(g);f-=g.byteLength;break}}d._rowState=l;d._rowID=k;d._rowTag=e;d._rowLength=f});a.on("error",function(g){W(d,g)});a.on("end",function(){W(d,Error("Connection closed."))});return X(d,0)};exports.createServerReference=function(a){return ja(a,Z)}; | ||
//# sourceMappingURL=react-server-dom-webpack-client.node.production.min.js.map |
@@ -1,33 +0,41 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-client.node.unbundled.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var m=require("util"),p=require("react-dom"),q=require("react"),r={stream:!0};function u(a,b){var c=a[b.id];if(a=c[b.name])b=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');b=b.name}return{specifier:a.specifier,name:b}}var v=new Map; | ||
function w(a){var b=v.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);c.then(function(d){c.status="fulfilled";c.value=d},function(d){c.status="rejected";c.reason=d});v.set(a.specifier,c);return c}var x=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=Symbol.for("react.element"),z=Symbol.for("react.lazy"),A=Symbol.for("react.default_value"),B=Symbol.iterator; | ||
function C(a){if(null===a||"object"!==typeof a)return null;a=B&&a[B]||a["@@iterator"];return"function"===typeof a?a:null}var D=Array.isArray,F=new WeakMap;function G(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function H(a,b,c,d){function e(l,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);k++;var E=g++;f.then(function(n){n=JSON.stringify(n,e);var t=h;t.append(b+E,n);k--;0===k&&c(t)},function(n){d(n)});return"$@"+E.toString(16)}if(f instanceof FormData){null===h&&(h=new FormData);var X=h;l=g++;var Y=b+l+"_";f.forEach(function(n,t){X.append(Y+t,n)});return"$K"+l.toString(16)}return!D(f)&&C(f)?Array.from(f):f}if("string"===typeof f){if("Z"===f[f.length- | ||
1]&&this[l]instanceof Date)return"$D"+f;f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return G(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=F.get(f);if(void 0!==f)return f=JSON.stringify(f,e),null===h&&(h=new FormData),l=g++,h.set(b+l,f),"$F"+l.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){l=f.description; | ||
if(Symbol.for(l)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+l}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var g=1,k=0,h=null;a=JSON.stringify(a,e);null===h?c(a):(h.set(b+"0",a),0===k&&c(h))}var I=new WeakMap; | ||
function J(a){var b,c,d=new Promise(function(e,g){b=e;c=g});H(a,"",function(e){if("string"===typeof e){var g=new FormData;g.append("0",e);e=g}d.status="fulfilled";d.value=e;b(e)},function(e){d.status="rejected";d.reason=e;c(e)});return d} | ||
function aa(a){var b=F.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=I.get(b);c||(c=J(b),I.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(e,g){d.append("$ACTION_"+a+":"+g,e)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} | ||
var K=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function L(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}L.prototype=Object.create(Promise.prototype); | ||
L.prototype.then=function(a,b){switch(this.status){case "resolved_model":M(this);break;case "resolved_module":N(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 ba(a){switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function O(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function P(a,b,c){switch(a.status){case "fulfilled":O(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&O(c,a.reason)}} | ||
function Q(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&O(c,b)}}function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(N(a),P(a,c,d))}}var S=null,T=null; | ||
function M(a){var b=S,c=T;S=a;T=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==T&&0<T.deps?(T.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{S=b,T=c}}function N(a){try{var b=a.value,c=v.get(b.specifier);if("fulfilled"===c.status)var d=c.value;else throw c.reason;var e="*"===b.name?d:""===b.name?d.default:d[b.name];a.status="fulfilled";a.value=e}catch(g){a.status="rejected",a.reason=g}} | ||
function U(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Q(c,b)})}function V(a,b){var c=a._chunks,d=c.get(b);d||(d=new L("pending",null,null,a),c.set(b,d));return d}function ca(a,b,c){if(T){var d=T;d.deps++}else d=T={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&&O(e,d.value))}}function da(a){return function(b){return Q(a,b)}} | ||
function ea(a,b){function c(){var e=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?d(b.id,g.value.concat(e)):Promise.resolve(g).then(function(k){return d(b.id,k.concat(e))}):d(b.id,e)}var d=a._callServer;c.$$FORM_ACTION=aa;F.set(c,b);return c} | ||
function fa(a,b,c,d){if("$"===d[0]){if("$"===d)return y;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=V(a,b),{$$typeof:z,_payload:a,_init:ba};case "@":return b=parseInt(d.slice(2),16),V(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),K[a]||(K[a]=q.createServerContext(a,A)),K[a].Provider;case "F":b=parseInt(d.slice(2),16);b=V(a,b);switch(b.status){case "resolved_model":M(b)}switch(b.status){case "fulfilled":return ea(a,b.value);default:throw b.reason; | ||
}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));default:d=parseInt(d.slice(1),16);a=V(a,d);switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=S,a.then(ca(d,b,c),da(d)),null;default:throw a.reason;}}}return d} | ||
function ha(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ia(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=u(a._bundlerConfig,c);if(c=w(g)){if(e){var k=e;k.status="blocked"}else k=new L("blocked",null,null,a),d.set(b,k);c.then(function(){return R(k,g)},function(h){return Q(k,h)})}else e?R(e,g):d.set(b,new L("resolved_module",g,null,a))} | ||
function W(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":ia(a,d,b.slice(c+2));break;case "H":d=b[c+2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=x.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
e.stack="Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?Q(c,e):b.set(d,new L("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(M(b),P(b,a,d))):c.set(d,new L("resolved_model",e,null,a))}}} | ||
function ja(a){return function(b,c){return"string"===typeof c?fa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===y?{$$typeof:y,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ka(a,b){var c=new m.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ha,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=ja(a);return a} | ||
function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");} | ||
exports.createFromNodeStream=function(a,b){var c=ka(b,Z);a.on("data",function(d){if("string"===typeof d){for(var e=0,g=d.indexOf("\n",e);-1<g;)e=c._partialRow+d.slice(e,g),W(c,e),c._partialRow="",e=g+1,g=d.indexOf("\n",e);c._partialRow+=d.slice(e)}else{g=c._stringDecoder;for(e=d.indexOf(10);-1<e;){var k=c._partialRow;var h=d.subarray(0,e);h=g.decode(h);W(c,k+h);c._partialRow="";d=d.subarray(e+1);e=d.indexOf(10)}c._partialRow+=g.decode(d,r)}});a.on("error",function(d){U(c,d)});a.on("end",function(){U(c, | ||
Error("Connection closed."))});return V(c,0)};exports.createServerReference=function(){return Z}; | ||
/* | ||
React | ||
react-server-dom-webpack-client.node.unbundled.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var p=require("util"),r=require("react-dom"),t={stream:!0};function v(a,c){var d=a[c[0]];if(a=d[c[2]])d=a.name;else{a=d["*"];if(!a)throw Error('Could not find the module "'+c[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');d=c[2]}return{specifier:a.specifier,name:d,async:4===c.length}}var w=new Map; | ||
function x(a){var c=w.get(a.specifier);if(c)return"fulfilled"===c.status?null:c;var d=import(a.specifier);a.async&&(d=d.then(function(b){return b.default}));d.then(function(b){var g=d;g.status="fulfilled";g.value=b},function(b){var g=d;g.status="rejected";g.reason=b});w.set(a.specifier,d);return d} | ||
function y(a,c,d){if(null!==a)for(var b=1;b<c.length;b+=2){var g=d,h=z.current;if(h){var l=h.preinitScript,k=a.prefix+c[b];var e=a.crossOrigin;e="string"===typeof e?"use-credentials"===e?e:"":void 0;l.call(h,k,{crossOrigin:e,nonce:g})}}}var z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A=Symbol.for("react.element"),B=Symbol.for("react.lazy"),C=Symbol.iterator; | ||
function E(a){if(null===a||"object"!==typeof a)return null;a=C&&a[C]||a["@@iterator"];return"function"===typeof a?a:null}var F=Array.isArray,G=Object.getPrototypeOf,H=Object.prototype,I=new WeakMap;function aa(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} | ||
function ba(a,c,d,b){function g(e,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===k&&(k=new FormData);l++;var u=h++;f.then(function(n){n=JSON.stringify(n,g);var q=k;q.append(c+u,n);l--;0===l&&d(q)},function(n){b(n)});return"$@"+u.toString(16)}if(F(f))return f;if(f instanceof FormData){null===k&&(k=new FormData);var D=k;e=h++;var m=c+e+"_";f.forEach(function(n,q){D.append(m+q,n)});return"$K"+e.toString(16)}if(f instanceof Map)return f=JSON.stringify(Array.from(f), | ||
g),null===k&&(k=new FormData),e=h++,k.append(c+e,f),"$Q"+e.toString(16);if(f instanceof Set)return f=JSON.stringify(Array.from(f),g),null===k&&(k=new FormData),e=h++,k.append(c+e,f),"$W"+e.toString(16);if(E(f))return Array.from(f);e=G(f);if(e!==H&&(null===e||null!==G(e)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[e]instanceof Date)return"$D"+f;f= | ||
"$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return aa(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===k&&(k=new FormData),e=h++,k.set(c+e,f),"$F"+e.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){e=f.description;if(Symbol.for(e)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+ | ||
(f.description+") cannot be found among global symbols."));return"$S"+e}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,l=0,k=null;a=JSON.stringify(a,g);null===k?d(a):(k.set(c+"0",a),0===l&&d(k))}var J=new WeakMap; | ||
function ca(a){var c,d,b=new Promise(function(g,h){c=g;d=h});ba(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}b.status="fulfilled";b.value=g;c(g)},function(g){b.status="rejected";b.reason=g;d(g)});return b} | ||
function da(a){var c=I.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var d=null;if(null!==c.bound){d=J.get(c);d||(d=ca(c),J.set(c,d));if("rejected"===d.status)throw d.reason;if("fulfilled"!==d.status)throw d;c=d.value;var b=new FormData;c.forEach(function(g,h){b.append("$ACTION_"+a+":"+h,g)});d=b;c="$ACTION_REF_"+a}else c="$ACTION_ID_"+c.id;return{name:c,method:"POST",encType:"multipart/form-data",data:d}} | ||
function K(a,c){var d=I.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(d.id!==a)return!1;var b=d.bound;if(null===b)return 0===c;switch(b.status){case "fulfilled":return b.value.length===c;case "pending":throw b;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(b.status="pending",b.then(function(g){b.status="fulfilled";b.value=g},function(g){b.status="rejected";b.reason=g})),b;}} | ||
function L(a,c,d){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===d?da:function(){var b=I.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var g=b.bound;null===g&&(g=Promise.resolve([]));return d(b.id,g)}},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,c)}var ea=Function.prototype.bind,fa=Array.prototype.slice; | ||
function M(){var a=ea.apply(this,arguments),c=I.get(this);if(c){var d=fa.call(arguments,1),b=null;b=null!==c.bound?Promise.resolve(c.bound).then(function(g){return g.concat(d)}):Promise.resolve(d);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,{id:c.id,bound:b})}return a}function ha(a,c,d){function b(){var g=Array.prototype.slice.call(arguments);return c(a,g)}L(b,{id:a,bound:null},d);return b} | ||
function N(a,c,d,b){this.status=a;this.value=c;this.reason=d;this._response=b}N.prototype=Object.create(Promise.prototype);N.prototype.then=function(a,c){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":a&&(null===this.value&&(this.value=[]),this.value.push(a));c&&(null===this.reason&&(this.reason=[]),this.reason.push(c));break;default:c(this.reason)}}; | ||
function ia(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function Q(a,c){for(var d=0;d<a.length;d++)(0,a[d])(c)}function R(a,c,d){switch(a.status){case "fulfilled":Q(c,a.value);break;case "pending":case "blocked":case "cyclic":a.value=c;a.reason=d;break;case "rejected":d&&Q(d,a.reason)}} | ||
function S(a,c){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=c;null!==d&&Q(d,c)}}function T(a,c){if("pending"===a.status||"blocked"===a.status){var d=a.value,b=a.reason;a.status="resolved_module";a.value=c;null!==d&&(P(a),R(a,d,b))}}var U=null,V=null; | ||
function O(a){var c=U,d=V;U=a;V=null;var b=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var g=JSON.parse(b,a._response._fromJSON);if(null!==V&&0<V.deps)V.value=g,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=g;null!==h&&Q(h,g)}}catch(l){a.status="rejected",a.reason=l}finally{U=c,V=d}} | ||
function P(a){try{var c=a.value,d=w.get(c.specifier);if("fulfilled"===d.status)var b=d.value;else throw d.reason;var g="*"===c.name?b:""===c.name?b.default:b[c.name];a.status="fulfilled";a.value=g}catch(h){a.status="rejected",a.reason=h}}function W(a,c){a._chunks.forEach(function(d){"pending"===d.status&&S(d,c)})}function X(a,c){var d=a._chunks,b=d.get(c);b||(b=new N("pending",null,null,a),d.set(c,b));return b} | ||
function ja(a,c,d,b){if(V){var g=V;b||g.deps++}else g=V={deps:b?0:1,value:null};return function(h){c[d]=h;g.deps--;0===g.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=g.value,null!==h&&Q(h,g.value))}}function ka(a){return function(c){return S(a,c)}} | ||
function la(a,c){function d(){var g=Array.prototype.slice.call(arguments),h=c.bound;return h?"fulfilled"===h.status?b(c.id,h.value.concat(g)):Promise.resolve(h).then(function(l){return b(c.id,l.concat(g))}):b(c.id,g)}var b=a._callServer;L(d,c,a._encodeFormAction);return d}function Y(a,c){a=X(a,c);switch(a.status){case "resolved_model":O(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}} | ||
function ma(a,c,d,b){if("$"===b[0]){if("$"===b)return A;switch(b[1]){case "$":return b.slice(1);case "L":return c=parseInt(b.slice(2),16),a=X(a,c),{$$typeof:B,_payload:a,_init:ia};case "@":if(2===b.length)return new Promise(function(){});c=parseInt(b.slice(2),16);return X(a,c);case "S":return Symbol.for(b.slice(2));case "F":return c=parseInt(b.slice(2),16),c=Y(a,c),la(a,c);case "Q":return c=parseInt(b.slice(2),16),a=Y(a,c),new Map(a);case "W":return c=parseInt(b.slice(2),16),a=Y(a,c),new Set(a);case "I":return Infinity; | ||
case "-":return"$-0"===b?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(b.slice(2)));case "n":return BigInt(b.slice(2));default:b=parseInt(b.slice(1),16);a=X(a,b);switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return b=U,a.then(ja(b,c,d,"cyclic"===a.status),ka(b)),null;default:throw a.reason;}}}return b} | ||
function na(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function oa(a,c,d,b,g){var h=new Map;a={_bundlerConfig:a,_moduleLoading:c,_callServer:void 0!==d?d:na,_encodeFormAction:b,_nonce:g,_chunks:h,_stringDecoder:new p.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=pa(a);return a} | ||
function qa(a,c,d){var b=a._chunks,g=b.get(c);d=JSON.parse(d,a._fromJSON);var h=v(a._bundlerConfig,d);y(a._moduleLoading,d[1],a._nonce);if(d=x(h)){if(g){var l=g;l.status="blocked"}else l=new N("blocked",null,null,a),b.set(c,l);d.then(function(){return T(l,h)},function(k){return S(l,k)})}else g?T(g,h):b.set(c,new N("resolved_module",h,null,a))} | ||
function pa(a){return function(c,d){return"string"===typeof d?ma(a,this,c,d):"object"===typeof d&&null!==d?(c=d[0]===A?{$$typeof:A,type:d[1],key:d[2],ref:null,props:d[3],_owner:null}:d,c):d}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");} | ||
exports.createFromNodeStream=function(a,c,d){var b=oa(c.moduleMap,c.moduleLoading,Z,d?d.encodeFormAction:void 0,d&&"string"===typeof d.nonce?d.nonce:void 0);a.on("data",function(g){for(var h=0,l=b._rowState,k=b._rowID,e=b._rowTag,f=b._rowLength,u=b._buffer,D=g.length;h<D;){var m=-1;switch(l){case 0:m=g[h++];58===m?l=1:k=k<<4|(96<m?m-87:m-48);continue;case 1:l=g[h];84===l?(e=l,l=2,h++):64<l&&91>l?(e=l,l=3,h++):(e=0,l=3);continue;case 2:m=g[h++];44===m?l=4:f=f<<4|(96<m?m-87:m-48);continue;case 3:m= | ||
g.indexOf(10,h);break;case 4:m=h+f,m>g.length&&(m=-1)}var n=g.byteOffset+h;if(-1<m){f=new Uint8Array(g.buffer,n,m-h);h=e;n=b._stringDecoder;e="";for(var q=0;q<u.length;q++)e+=n.decode(u[q],t);e+=n.decode(f);switch(h){case 73:qa(b,k,e);break;case 72:k=e[0];e=e.slice(1);e=JSON.parse(e,b._fromJSON);if(f=z.current)switch(k){case "D":f.prefetchDNS(e);break;case "C":"string"===typeof e?f.preconnect(e):f.preconnect(e[0],e[1]);break;case "L":k=e[0];h=e[1];3===e.length?f.preload(k,h,e[2]):f.preload(k,h);break; | ||
case "m":"string"===typeof e?f.preloadModule(e):f.preloadModule(e[0],e[1]);break;case "S":"string"===typeof e?f.preinitStyle(e):f.preinitStyle(e[0],0===e[1]?void 0:e[1],3===e.length?e[2]:void 0);break;case "X":"string"===typeof e?f.preinitScript(e):f.preinitScript(e[0],e[1]);break;case "M":"string"===typeof e?f.preinitModuleScript(e):f.preinitModuleScript(e[0],e[1])}break;case 69:e=JSON.parse(e);f=e.digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
e.stack="Error: "+e.message;e.digest=f;f=b._chunks;(h=f.get(k))?S(h,e):f.set(k,new N("rejected",null,e,b));break;case 84:b._chunks.set(k,new N("fulfilled",e,null,b));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:f=b._chunks,(h=f.get(k))?(k=h,"pending"===k.status&&(f=k.value,h=k.reason,k.status="resolved_model", | ||
k.value=e,null!==f&&(O(k),R(k,f,h)))):f.set(k,new N("resolved_model",e,null,b))}h=m;3===l&&h++;f=k=e=l=0;u.length=0}else{g=new Uint8Array(g.buffer,n,g.byteLength-h);u.push(g);f-=g.byteLength;break}}b._rowState=l;b._rowID=k;b._rowTag=e;b._rowLength=f});a.on("error",function(g){W(b,g)});a.on("end",function(){W(b,Error("Connection closed."))});return X(b,0)};exports.createServerReference=function(a){return ha(a,Z)}; | ||
//# sourceMappingURL=react-server-dom-webpack-client.node.unbundled.production.min.js.map |
@@ -1,20 +0,14 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-node-register.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* | ||
React | ||
react-server-dom-webpack-node-register.js | ||
'use strict'; | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
'use strict';const n=require("acorn-loose"),p=require("url"),r=require("module"); | ||
module.exports=function(){const h=Symbol.for("react.client.reference"),k=Symbol.for("react.server.reference"),t=Promise.prototype,u=Function.prototype.bind;Function.prototype.bind=function(a){const c=u.apply(this,arguments);if(this.$$typeof===k){const b=Array.prototype.slice.call(arguments,1);c.$$typeof=k;c.$$id=this.$$id;c.$$bound=this.$$bound?this.$$bound.concat(b):b}return c};const v={get:function(a,c){switch(c){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 "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.");}throw Error("Cannot access "+(String(a.name)+"."+String(c))+" 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.");}},q={get:function(a,c){switch(c){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 "__esModule":const d=a.$$id;a.default=Object.defineProperties(function(){throw Error("Attempted to call the default export of "+d+" 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."); | ||
},{$$typeof:{value:h},$$id:{value:a.$$id+"#"},$$async:{value:a.$$async}});return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var b=Object.defineProperties({},{$$typeof:{value:h},$$id:{value:a.$$id},$$async:{value:!0}});const e=new Proxy(b,q);a.status="fulfilled";a.value=e;return a.then=Object.defineProperties(function(f){return Promise.resolve(f(e))},{$$typeof:{value:h},$$id:{value:a.$$id+"#then"},$$async:{value:!1}})}b=a[c];b||(b=Object.defineProperties(function(){throw Error("Attempted to call "+ | ||
String(c)+"() from the server but "+String(c)+" 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.");},{name:{value:c},$$typeof:{value:h},$$id:{value:a.$$id+"#"+c},$$async:{value:a.$$async}}),b=a[c]=new Proxy(b,v));return b},getPrototypeOf(){return t},set:function(){throw Error("Cannot assign to a client module from a server module.");}},l=r.prototype._compile;r.prototype._compile=function(a, | ||
c){if(-1===a.indexOf("use client")&&-1===a.indexOf("use server"))return l.apply(this,arguments);try{var b=n.parse(a,{ecmaVersion:"2024",sourceType:"source"}).body}catch(m){return console.error("Error parsing %s %s",p,m.message),l.apply(this,arguments)}var d=!1,e=!1;for(var f=0;f<b.length;f++){var g=b[f];if("ExpressionStatement"!==g.type||!g.directive)break;"use client"===g.directive&&(d=!0);"use server"===g.directive&&(e=!0)}if(!d&&!e)return l.apply(this,arguments);if(d&&e)throw Error('Cannot have both "use client" and "use server" directives in the same file.'); | ||
d&&(b=p.pathToFileURL(c).href,b=Object.defineProperties({},{$$typeof:{value:h},$$id:{value:b},$$async:{value:!1}}),this.exports=new Proxy(b,q));if(e)if(l.apply(this,arguments),e=p.pathToFileURL(c).href,b=this.exports,"function"===typeof b)Object.defineProperties(b,{$$typeof:{value:k},$$id:{value:e},$$bound:{value:null}});else for(d=Object.keys(b),f=0;f<d.length;f++){g=d[f];const m=b[d[f]];"function"===typeof m&&Object.defineProperties(m,{$$typeof:{value:k},$$id:{value:e+"#"+g},$$bound:{value:null}})}}}; | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';const h=require("acorn-loose"),l=require("url"),q=require("module"); | ||
module.exports=function(){const m=require("react-server-dom-webpack/server"),n=m.registerServerReference,r=m.createClientModuleProxy,f=q.prototype._compile;q.prototype._compile=function(k,p){if(-1===k.indexOf("use client")&&-1===k.indexOf("use server"))return f.apply(this,arguments);try{var a=h.parse(k,{ecmaVersion:"2024",sourceType:"source"}).body}catch(g){return console.error("Error parsing %s %s",l,g.message),f.apply(this,arguments)}var b=!1,d=!1;for(var c=0;c<a.length;c++){var e=a[c];if("ExpressionStatement"!== | ||
e.type||!e.directive)break;"use client"===e.directive&&(b=!0);"use server"===e.directive&&(d=!0)}if(!b&&!d)return f.apply(this,arguments);if(b&&d)throw Error('Cannot have both "use client" and "use server" directives in the same file.');b&&(a=l.pathToFileURL(p).href,this.exports=r(a));if(d)if(f.apply(this,arguments),d=l.pathToFileURL(p).href,a=this.exports,"function"===typeof a)n(a,d,null);else for(b=Object.keys(a),c=0;c<b.length;c++){e=b[c];const g=a[b[c]];"function"===typeof g&&n(g,d,e)}}}; | ||
//# sourceMappingURL=react-server-dom-webpack-node-register.js.map |
@@ -1,21 +0,24 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-plugin.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* | ||
React | ||
react-server-dom-webpack-plugin.js | ||
'use strict'; | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
'use strict';var r=require("path"),u=require("url"),x=require("neo-async"),A=require("acorn-loose"),B=require("webpack/lib/dependencies/ModuleDependency"),C=require("webpack/lib/dependencies/NullDependency"),D=require("webpack/lib/Template"),E=require("webpack");const F=Array.isArray;class G extends B{constructor(b){super(b)}get type(){return"client-reference"}}const H=require.resolve("../client.browser.js"); | ||
class I{constructor(b){this.ssrManifestFilename=this.clientManifestFilename=this.chunkName=this.clientReferences=void 0;if(!b||"boolean"!==typeof b.isServer)throw Error("React Server Plugin: You must specify the isServer option as a boolean.");if(b.isServer)throw Error("TODO: Implement the server compiler.");b.clientReferences?"string"!==typeof b.clientReferences&&F(b.clientReferences)?this.clientReferences=b.clientReferences:this.clientReferences=[b.clientReferences]:this.clientReferences=[{directory:".", | ||
recursive:!0,include:/\.(js|ts|jsx|tsx)$/}];"string"===typeof b.chunkName?(this.chunkName=b.chunkName,/\[(index|request)\]/.test(this.chunkName)||(this.chunkName+="[index]")):this.chunkName="client[index]";this.clientManifestFilename=b.clientManifestFilename||"react-client-manifest.json";this.ssrManifestFilename=b.ssrManifestFilename||"react-ssr-manifest.json"}apply(b){const n=this;let p,t=!1;b.hooks.beforeCompile.tapAsync("React Server Plugin",(e,g)=>{e=e.contextModuleFactory;const l=b.resolverFactory.get("context", | ||
{}),a=b.resolverFactory.get("normal");n.resolveAllClientFiles(b.context,l,a,b.inputFileSystem,e,function(c,d){c?g(c):(p=d,g())})});b.hooks.thisCompilation.tap("React Server Plugin",(e,g)=>{g=g.normalModuleFactory;e.dependencyFactories.set(G,g);e.dependencyTemplates.set(G,new C.Template);e=l=>{l.hooks.program.tap("React Server Plugin",()=>{const a=l.state.module;if(a.resource===H&&(t=!0,p))for(let d=0;d<p.length;d++){const m=p[d];var c=n.chunkName.replace(/\[index\]/g,""+d).replace(/\[request\]/g, | ||
D.toPath(m.userRequest));c=new E.AsyncDependenciesBlock({name:c},null,m.request);c.addDependency(m);a.addBlock(c)}})};g.hooks.parser.for("javascript/auto").tap("HarmonyModulesPlugin",e);g.hooks.parser.for("javascript/esm").tap("HarmonyModulesPlugin",e);g.hooks.parser.for("javascript/dynamic").tap("HarmonyModulesPlugin",e)});b.hooks.make.tap("React Server Plugin",e=>{e.hooks.processAssets.tap({name:"React Server Plugin",stage:E.Compilation.PROCESS_ASSETS_STAGE_REPORT},function(){if(!1===t)e.warnings.push(new E.WebpackError("Client runtime at react-server-dom-webpack/client was not found. React Server Components module map file "+ | ||
n.clientManifestFilename+" was not created."));else{var g=new Set((p||[]).map(d=>d.request)),l={},a={};e.chunkGroups.forEach(function(d){function m(k,f){if(g.has(f.resource)&&(f=u.pathToFileURL(f.resource).href,void 0!==f)){const h={};l[f]={id:k,chunks:q,name:"*"};h["*"]={specifier:f,name:"*"};a[k]=h}}const q=d.chunks.map(function(k){return k.id});d.chunks.forEach(function(k){k=e.chunkGraph.getChunkModulesIterable(k);Array.from(k).forEach(function(f){const h=e.chunkGraph.getModuleId(f);m(h,f);f.modules&& | ||
f.modules.forEach(v=>{m(h,v)})})})});var c=JSON.stringify(l,null,2);e.emitAsset(n.clientManifestFilename,new E.sources.RawSource(c,!1));c=JSON.stringify(a,null,2);e.emitAsset(n.ssrManifestFilename,new E.sources.RawSource(c,!1))}})})}resolveAllClientFiles(b,n,p,t,e,g){function l(a){if(-1===a.indexOf("use client"))return!1;let c;try{c=A.parse(a,{ecmaVersion:"2024",sourceType:"module"}).body}catch(d){return!1}for(a=0;a<c.length;a++){const d=c[a];if("ExpressionStatement"!==d.type||!d.directive)break; | ||
if("use client"===d.directive)return!0}return!1}x.map(this.clientReferences,(a,c)=>{"string"===typeof a?c(null,[new G(a)]):n.resolve({},b,a.directory,{},(d,m)=>{if(d)return c(d);e.resolveDependencies(t,{resource:m,resourceQuery:"",recursive:void 0===a.recursive?!0:a.recursive,regExp:a.include,include:void 0,exclude:a.exclude},(q,k)=>{if(q)return c(q);q=k.map(f=>{var h=r.join(m,f.userRequest);h=new G(h);h.userRequest=f.userRequest;return h});x.filter(q,(f,h)=>{p.resolve({},b,f.request,{},(v,y)=>{if(v|| | ||
"string"!==typeof y)return h(null,!1);t.readFile(y,"utf-8",(w,z)=>{if(w||"string"!==typeof z)return h(null,!1);w=l(z);h(null,w)})})},c)})})},(a,c)=>{if(a)return g(a);a=[];for(let d=0;d<c.length;d++)a.push.apply(a,c[d]);g(null,a)})}}module.exports=I; | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var w=require("path"),x=require("url"),y=require("neo-async"),z=require("acorn-loose"),B=require("webpack/lib/dependencies/ModuleDependency"),C=require("webpack/lib/dependencies/NullDependency"),D=require("webpack/lib/Template"),E=require("webpack"); | ||
function F(a,g){if(a){if("string"===typeof a)return G(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return G(a,g)}}function G(a,g){if(null==g||g>a.length)g=a.length;for(var c=0,n=Array(g);c<g;c++)n[c]=a[c];return n} | ||
function H(a,g){var c;if("undefined"===typeof Symbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(c=F(a))||g&&a&&"number"===typeof a.length){c&&(a=c);var n=0;g=function(){};return{s:g,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(b){throw b;},f:g}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var d=!0,e=!1,p;return{s:function(){c=a[Symbol.iterator]()}, | ||
n:function(){var b=c.next();d=b.done;return b},e:function(b){e=!0;p=b},f:function(){try{d||null==c.return||c.return()}finally{if(e)throw p;}}}}const I=Array.isArray;class J extends B{constructor(a){super(a)}get type(){return"client-reference"}}const K=require.resolve("../client.browser.js"); | ||
class L{constructor(a){this.ssrManifestFilename=this.clientManifestFilename=this.chunkName=this.clientReferences=void 0;if(!a||"boolean"!==typeof a.isServer)throw Error("React Server Plugin: You must specify the isServer option as a boolean.");if(a.isServer)throw Error("TODO: Implement the server compiler.");a.clientReferences?"string"!==typeof a.clientReferences&&I(a.clientReferences)?this.clientReferences=a.clientReferences:this.clientReferences=[a.clientReferences]:this.clientReferences=[{directory:".", | ||
recursive:!0,include:/\.(js|ts|jsx|tsx)$/}];"string"===typeof a.chunkName?(this.chunkName=a.chunkName,/\[(index|request)\]/.test(this.chunkName)||(this.chunkName+="[index]")):this.chunkName="client[index]";this.clientManifestFilename=a.clientManifestFilename||"react-client-manifest.json";this.ssrManifestFilename=a.ssrManifestFilename||"react-ssr-manifest.json"}apply(a){const g=this;let c,n=!1;a.hooks.beforeCompile.tapAsync("React Server Plugin",(d,e)=>{d=d.contextModuleFactory;const p=a.resolverFactory.get("context", | ||
{}),b=a.resolverFactory.get("normal");g.resolveAllClientFiles(a.context,p,b,a.inputFileSystem,d,function(f,h){f?e(f):(c=h,e())})});a.hooks.thisCompilation.tap("React Server Plugin",(d,e)=>{e=e.normalModuleFactory;d.dependencyFactories.set(J,e);d.dependencyTemplates.set(J,new C.Template);d=p=>{p.hooks.program.tap("React Server Plugin",()=>{const b=p.state.module;if(b.resource===K&&(n=!0,c))for(let h=0;h<c.length;h++){const t=c[h];var f=g.chunkName.replace(/\[index\]/g,""+h).replace(/\[request\]/g, | ||
D.toPath(t.userRequest));f=new E.AsyncDependenciesBlock({name:f},null,t.request);f.addDependency(t);b.addBlock(f)}})};e.hooks.parser.for("javascript/auto").tap("HarmonyModulesPlugin",d);e.hooks.parser.for("javascript/esm").tap("HarmonyModulesPlugin",d);e.hooks.parser.for("javascript/dynamic").tap("HarmonyModulesPlugin",d)});a.hooks.make.tap("React Server Plugin",d=>{d.hooks.processAssets.tap({name:"React Server Plugin",stage:E.Compilation.PROCESS_ASSETS_STAGE_REPORT},function(){if(!1===n)d.warnings.push(new E.WebpackError("Client runtime at react-server-dom-webpack/client was not found. React Server Components module map file "+ | ||
g.clientManifestFilename+" was not created."));else{var e=d.outputOptions.crossOriginLoading;e="string"===typeof e?"use-credentials"===e?e:"anonymous":null;var p=new Set((c||[]).map(m=>m.request)),b={},f={};e={moduleLoading:{prefix:d.outputOptions.publicPath||"",crossOrigin:e},moduleMap:f};var h=new Set;d.entrypoints.forEach(m=>{(m=m.getRuntimeChunk())&&m.files.forEach(v=>{h.add(v)})});d.chunkGroups.forEach(function(m){function v(k,l){if(p.has(l.resource)&&(l=x.pathToFileURL(l.resource).href,void 0!== | ||
l)){const q={};b[l]={id:k,chunks:u,name:"*"};q["*"]={specifier:l,name:"*"};f[k]=q}}const u=[];m.chunks.forEach(function(k){var l=H(k.files),q;try{for(l.s();!(q=l.n()).done;){const r=q.value;if(!r.endsWith(".js"))break;if(r.endsWith(".hot-update.js"))break;u.push(k.id,r);break}}catch(r){l.e(r)}finally{l.f()}});m.chunks.forEach(function(k){k=d.chunkGraph.getChunkModulesIterable(k);Array.from(k).forEach(function(l){const q=d.chunkGraph.getModuleId(l);v(q,l);l.modules&&l.modules.forEach(r=>{v(q,r)})})})}); | ||
var t=JSON.stringify(b,null,2);d.emitAsset(g.clientManifestFilename,new E.sources.RawSource(t,!1));e=JSON.stringify(e,null,2);d.emitAsset(g.ssrManifestFilename,new E.sources.RawSource(e,!1))}})})}resolveAllClientFiles(a,g,c,n,d,e){function p(b){if(-1===b.indexOf("use client"))return!1;let f;try{f=z.parse(b,{ecmaVersion:"2024",sourceType:"module"}).body}catch(h){return!1}for(b=0;b<f.length;b++){const h=f[b];if("ExpressionStatement"!==h.type||!h.directive)break;if("use client"===h.directive)return!0}return!1} | ||
y.map(this.clientReferences,(b,f)=>{"string"===typeof b?f(null,[new J(b)]):g.resolve({},a,b.directory,{},(h,t)=>{if(h)return f(h);d.resolveDependencies(n,{resource:t,resourceQuery:"",recursive:void 0===b.recursive?!0:b.recursive,regExp:b.include,include:void 0,exclude:b.exclude},(m,v)=>{if(m)return f(m);m=v.map(u=>{var k=w.join(t,u.userRequest);k=new J(k);k.userRequest=u.userRequest;return k});y.filter(m,(u,k)=>{c.resolve({},a,u.request,{},(l,q)=>{if(l||"string"!==typeof q)return k(null,!1);n.readFile(q, | ||
"utf-8",(r,A)=>{if(r||"string"!==typeof A)return k(null,!1);r=p(A);k(null,r)})})},f)})})},(b,f)=>{if(b)return e(b);b=[];for(let h=0;h<f.length;h++)b.push.apply(b,f[h]);e(null,b)})}}module.exports=L; | ||
//# sourceMappingURL=react-server-dom-webpack-plugin.js.map |
@@ -1,64 +0,77 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-server.browser.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var aa=require("react-dom"),ba=require("react"),l=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(l.buffer,0,m)),l=new Uint8Array(512),m=0),a.enqueue(b);else{var d=l.length-m;d<b.length&&(0===d?a.enqueue(l):(l.set(b.subarray(0,d),m),a.enqueue(l),b=b.subarray(d)),l=new Uint8Array(512),m=0);l.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var q=JSON.stringify; | ||
function da(a,b,d){a=q(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function r(a,b,d){a=q(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}var u=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),la={prefetchDNS:fa,preconnect:ha,preload:ia,preinit:ka};function fa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?w(d,"D",[a,b]):w(d,"D",a),B(d))}}} | ||
function ha(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?w(d,"C",[a,b]):w(d,"C",a),B(d))}}}function ia(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),w(d,"L",[a,b]),B(d))}}} | ||
function ka(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),w(d,"I",[a,b]),B(d))}}} | ||
var ma=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C=Symbol.for("react.element"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.provider"),pa=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),ra=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),ta=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),ua=Symbol.for("react.default_value"),va=Symbol.for("react.memo_cache_sentinel"),wa=Symbol.iterator,E=null; | ||
function F(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");F(a,d);b.context._currentValue=b.value}}}function xa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&xa(a)} | ||
function ya(a){var b=a.parent;null!==b&&ya(b);a.context._currentValue=a.value}function za(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?F(a,b):za(a,b)} | ||
function Aa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?F(a,d):Aa(a,d);b.context._currentValue=b.value}function G(a){var b=E;b!==a&&(null===b?ya(a):null===a?xa(b):b.depth===a.depth?F(b,a):b.depth>a.depth?za(b,a):Aa(b,a),E=a)}function Ba(a,b){var d=a._currentValue;a._currentValue=b;var c=E;return E=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var H=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`"); | ||
function Ca(){}function Da(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ca,Ca),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}I=b;throw H;}}var I=null; | ||
function Ea(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,K=0,L=null;function Fa(){var a=L;L=null;return a}function Ga(a){return a._currentValue} | ||
var Ka={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:M,useTransition:M,readContext:Ga,useContext:Ga,useReducer:M,useRef:M,useState:M,useInsertionEffect:M,useLayoutEffect:M,useImperativeHandle:M,useEffect:M,useId:Ha,useMutableSource:M,useSyncExternalStore:M,useCacheRefresh:function(){return Ia},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=va;return b},use:Ja}; | ||
function M(){throw Error("This Hook is not supported in Server Components.");}function Ia(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ha(){if(null===J)throw Error("useId can only be used while React is rendering");var a=J.identifierCount++;return":"+J.identifierPrefix+"S"+a.toString(32)+":"} | ||
function Ja(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Da(L,a,b)}if(a.$$typeof===pa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function N(){return(new AbortController).signal}function La(){var a=v?v:null;return a?a.cache:new Map} | ||
var Ma={getCacheSignal:function(){var a=La(),b=a.get(N);void 0===b&&(b=N(),a.set(N,b));return b},getCacheForType:function(a){var b=La(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Na=Array.isArray;function Oa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})} | ||
function Pa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Na(a))return"[...]";a=Oa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function O(a){if("string"===typeof a)return a;switch(a){case ra:return"Suspense";case sa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case qa:return O(a.render);case ta:return O(a.type);case D:var b=a._payload;a=a._init;try{return O(a(b))}catch(d){}}return""} | ||
function P(a,b){var d=Oa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Na(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?P(g):Pa(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+O(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?P(k): | ||
Pa(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Qa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ra=Qa.ContextRegistry,Sa=Qa.ReactCurrentDispatcher,Ta=Qa.ReactCurrentCache;function Ua(a){console.error(a)} | ||
function Va(a,b,d,c,e){if(null!==Ta.current&&Ta.current!==Ma)throw Error("Currently React only supports one RSC renderer at a time.");ma.current=la;Ta.current=Ma;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Ua:d,toJSON:function(t,x){return Wa(k,this,t,x)}};k.pendingChunks++;b=Xa(c);a=Ya(k,a,b,f);g.push(a);return k}var v=null,Za={}; | ||
function $a(a,b){a.pendingChunks++;var d=Ya(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,ab(a,d),d.id;case "rejected":var c=Q(a,b.reason);R(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;ab(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);null!==a.destination&& | ||
S(a,a.destination)});return d.id}function bb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function cb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:bb}} | ||
function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===u)return[C,b,d,e];K=0;L=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:cb(e):e}if("string"===typeof b)return[C,b,d,e];if("symbol"===typeof b)return b===na?e.children:[C,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===u)return[C,b,d,e];switch(b.$$typeof){case D:var g= | ||
b._init;b=g(b._payload);return T(a,b,d,c,e,f);case qa:return a=b.render,K=0,L=f,a(e,void 0);case ta:return T(a,b.type,d,c,e,f);case oa:return Ba(b._context,e.value),[C,b,d,{value:e.value,children:e.children,__pop:Za}]}}throw Error("Unsupported Server Component type: "+Pa(b));}function ab(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,db(a))} | ||
function Ya(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return ab(a,e)},thenableState:null};c.add(e);return e} | ||
function eb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var t=h[k];if(t)g=t.name;else{var x=k.lastIndexOf("#");-1!==x&&(g=k.slice(x+1),t=h[k.slice(0,x)]);if(!t)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var y={id:t.id,chunks:t.chunks,name:g, | ||
async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,ja=q(y),A=z.toString(16)+":I"+ja+"\n";var sb=p.encode(A);a.completedImportChunks.push(sb);f.set(e,z);return b[0]===C&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(tb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,tb),R(a,b,d),"$"+b.toString(16)}} | ||
function Wa(a,b,d,c){switch(c){case C:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===C||c.$$typeof===D);)try{switch(c.$$typeof){case C:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case D:var f=c._init;c=f(c._payload)}}catch(g){d=g===H?Ea():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Ya(a,c,E,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+ | ||
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===u)return eb(a,b,d,c);if("function"===typeof c.then)return"$@"+$a(a,c).toString(16);if(c.$$typeof===oa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=r(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Za){a=E;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue= | ||
c===ua?a.context._defaultValue:c;E=a.parent;return}return!Na(c)&&(null===c||"object"!==typeof c?a=null:(a=wa&&c[wa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined"; | ||
if("function"===typeof c){if(c.$$typeof===u)return eb(a,b,d,c);if(c.$$typeof===ea)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+P(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component."); | ||
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+P(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+P(b,d));a.pendingChunks++;d=a.nextChunkId++;b= | ||
r(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+P(b,d));} | ||
function Q(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function fb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)} | ||
function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+q(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function w(a,b,d){var c=a.nextChunkId++;d=q(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)} | ||
function db(a){var b=Sa.current;Sa.current=Ka;var d=v;J=v=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){G(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===C){var k=h,t=f.thenableState;f.model=h;h=T(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===C;)k=h,f.model=h,h=T(g,k.type,k.key,k.ref,k.props,null)}var x=da(g,f.id,h);g.completedJSONChunks.push(x);g.abortableTasks.delete(f); | ||
f.status=1}catch(A){var y=A===H?Ea():A;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var z=f.ping;y.then(z,z);f.thenableState=Fa()}else{g.abortableTasks.delete(f);f.status=4;var ja=Q(g,y);R(g,f.id,ja)}}}}null!==a.destination&&S(a,a.destination)}catch(A){Q(a,A),fb(a,A)}finally{Sa.current=b,J=null,v=d}} | ||
function S(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&& | ||
b.close()}function B(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;S(a,b)}} | ||
function gb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=Q(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;R(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=r(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(f){Q(a,f),fb(a,f)}} | ||
function Xa(a){if(a){var b=E;G(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ra[e]||(Ra[e]=ba.createServerContext(e,ua));Ba(Ra[e],c)}a=E;G(b);return a}return null}function hb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)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{id:c.id,chunks:c.chunks,name:d,async:!1}} | ||
var U=new Map,ib=new Map;function jb(){} | ||
function kb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,jb);U.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=ib.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});ib.set(a.id,h);return h}return 0<d.length?Promise.all(d): | ||
null}function V(a){if(a.async){var b=ib.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype); | ||
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":lb(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 mb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)} | ||
function nb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&mb(d,b)}}function ob(a,b,d,c,e,f){var g=hb(a._bundlerConfig,b);a=kb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(pb(c,e,f),qb(c));return null}var X=null,Y=null; | ||
function lb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function rb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&nb(d,b)})} | ||
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function pb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&mb(e,c.value))}}function qb(a){return function(b){return nb(a,b)}} | ||
function ub(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&lb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ob(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity; | ||
case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":lb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(pb(c,b,d),qb(c)),null;default:throw a.reason;}}return c} | ||
function vb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?ub(e,this,f,g):g}};return e}function wb(a){rb(a,Error("Connection closed."))}function xb(a,b,d){var c=hb(a,b);a=kb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))} | ||
exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=vb(b,e,a);wb(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=xb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=xb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})}; | ||
exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=vb(b,"",a);wb(a);return Z(a,0)}; | ||
exports.renderToReadableStream=function(a,b,d){var c=Va(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)gb(c,e.reason);else{var f=function(){gb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;db(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination= | ||
g;try{S(c,g)}catch(h){Q(c,h),fb(c,h)}}},cancel:function(){}},{highWaterMark:0})}; | ||
/* | ||
React | ||
react-server-dom-webpack-server.browser.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var aa=require("react"),ba=require("react-dom"),l=null,n=0;function p(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<n&&(a.enqueue(new Uint8Array(l.buffer,0,n)),l=new Uint8Array(2048),n=0),a.enqueue(b);else{var c=l.length-n;c<b.byteLength&&(0===c?a.enqueue(l):(l.set(b.subarray(0,c),n),a.enqueue(l),b=b.subarray(c)),l=new Uint8Array(2048),n=0);l.set(b,n);n+=b.byteLength}return!0}var q=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()} | ||
var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference");function u(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var da=Function.prototype.bind,ea=Array.prototype.slice;function fa(){var a=da.apply(this,arguments);if(this.$$typeof===t){var b=ea.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:fa}})}return a} | ||
var ha=Promise.prototype,ia={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."); | ||
}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.");}}; | ||
function ja(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=u(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."); | ||
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=u({},a.$$id,!0),e=new Proxy(d,ka);a.status="fulfilled";a.value=e;return a.then=u(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=u(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."); | ||
},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,ia));return d} | ||
var ka={get:function(a,b){return ja(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ja(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module.");}},sa={prefetchDNS:la,preconnect:ma,preload:na,preloadModule:oa,preinitStyle:pa,preinitScript:qa,preinitModuleScript:ra}; | ||
function la(a){if("string"===typeof a&&a){var b=w?w:null;if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),x(b,"D",a))}}}function ma(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?x(c,"C",[a,b]):x(c,"C",a))}}} | ||
function na(a,b,c){if("string"===typeof a){var d=w?w:null;if(d){var e=d.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(c=z(c))?x(d,"L",[a,b,c]):x(d,"L",[a,b]))}}}function oa(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=z(b))?x(c,"m",[a,b]):x(c,"m",a)}}} | ||
function pa(a,b,c){if("string"===typeof a){var d=w?w:null;if(d){var e=d.hints,g="S|"+a;if(!e.has(g))return e.add(g),(c=z(c))?x(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?x(d,"S",[a,b]):x(d,"S",a)}}}function qa(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=z(b))?x(c,"X",[a,b]):x(c,"X",a)}}} | ||
function ra(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=z(b))?x(c,"M",[a,b]):x(c,"M",a)}}}function z(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} | ||
var ta=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A=Symbol.for("react.element"),ua=Symbol.for("react.fragment"),va=Symbol.for("react.context"),wa=Symbol.for("react.forward_ref"),xa=Symbol.for("react.suspense"),ya=Symbol.for("react.suspense_list"),za=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Aa=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ba=Symbol.iterator,Ca=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`"); | ||
function Da(){}function Ea(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Da,Da),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}D=b;throw Ca;}}var D=null; | ||
function Fa(){if(null===D)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=D;D=null;return a}var E=null,Ga=0,F=null;function Ha(){var a=F||[];F=null;return a} | ||
var Ma={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:G,useTransition:G,readContext:Ia,useContext:Ia,useReducer:G,useRef:G,useState:G,useInsertionEffect:G,useLayoutEffect:G,useImperativeHandle:G,useEffect:G,useId:Ja,useSyncExternalStore:G,useCacheRefresh:function(){return Ka},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Aa;return b},use:La}; | ||
function G(){throw Error("This Hook is not supported in Server Components.");}function Ka(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ia(){throw Error("Cannot read a Client Context from a Server Component.");}function Ja(){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)+":"} | ||
function La(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ga;Ga+=1;null===F&&(F=[]);return Ea(F,a,b)}a.$$typeof===va&&Ia()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===va)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));}function Na(){return(new AbortController).signal} | ||
function Oa(){var a=w?w:null;return a?a.cache:new Map}var Pa={getCacheSignal:function(){var a=Oa(),b=a.get(Na);void 0===b&&(b=Na(),a.set(Na,b));return b},getCacheForType:function(a){var b=Oa(),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})} | ||
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)}} | ||
function H(a){if("string"===typeof a)return a;switch(a){case xa:return"Suspense";case ya:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case wa:return H(a.render);case za:return H(a.type);case C:var b=a._payload;a=a._init;try{return H(a(b))}catch(c){}}return""}var Ua=Symbol.for("react.client.reference"); | ||
function I(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?I(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===A)e="<"+H(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 h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k= | ||
"object"===typeof k&&null!==k?I(k):Ta(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Va=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wa=aa.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
if(!Wa)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.');var Xa=Object.prototype,J=JSON.stringify,Ya=Wa.ReactCurrentCache,Za=Va.ReactCurrentDispatcher;function $a(a){console.error(a)}function ab(){} | ||
function bb(a,b,c,d,e){if(null!==Ya.current&&Ya.current!==Pa)throw Error("Currently React only supports one RSC renderer at a time.");ta.current=sa;Ya.current=Pa;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?$a:c,onPostpone:void 0===e?ab:e};a=K(b,a,null,!1,g);f.push(a);return b}var w=null; | ||
function cb(a,b,c){var d=K(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,db(a,d),d.id;case "rejected":return b=L(a,c.reason),M(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;db(a,d)},function(e){d.status=4;e=L(a,e);M(a,d.id,e);a.abortableTasks.delete(d); | ||
null!==a.destination&&N(a,a.destination)});return d.id}function x(a,b,c){c=J(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination&&(c=a.destination,a.flushScheduled=!0,N(a,c))}function eb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;} | ||
function fb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:C,_payload:a,_init:eb}} | ||
function gb(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ga=0;F=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=fb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=O(a,b,P,"",d);b.keyPath=e;b.implicitSlot=g;return a} | ||
function hb(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?[A,c,d,g]:gb(a,b,d,c,g);if("string"===typeof c)return[A,c,d,g];if("symbol"===typeof c)return c===ua&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=O(a,b,P,"",g.children),b.implicitSlot=d,a):[A,c,d,g];if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return[A,c,d,g];switch(c.$$typeof){case C:var f= | ||
c._init;c=f(c._payload);return hb(a,b,c,d,e,g);case wa:return gb(a,b,d,c.render,g);case za:return hb(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Ta(c));}function db(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,ib(a))} | ||
function K(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return db(a,f)},toJSON:function(h,k){var m=f.keyPath,y=f.implicitSlot;try{var v=O(a,f,this,h,k)}catch(Y){if(h=Y===Ca?Fa():Y,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===A||k.$$typeof===C),"object"===typeof h&&null!==h&&"function"===typeof h.then){v=K(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks); | ||
var B=v.ping;h.then(B,B);v.thenableState=Ha();f.keyPath=m;f.implicitSlot=y;v=k?"$L"+v.id.toString(16):Q(v.id)}else if(f.keyPath=m,f.implicitSlot=y,k)a.pendingChunks++,m=a.nextChunkId++,y=L(a,h),M(a,m,y),v="$L"+m.toString(16);else throw h;}return v},thenableState:null};e.add(f);return f}function Q(a){return"$"+a.toString(16)}function jb(a,b,c){a=J(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)} | ||
function kb(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]===A&&"1"===c?"$L"+f.toString(16):Q(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var m=h[k];if(m)f=m.name;else{var y=k.lastIndexOf("#");-1!==y&&(f=k.slice(y+1),m=h[k.slice(0,y)]);if(!m)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var v=!0===d.$$async?[m.id,m.chunks,f,1]:[m.id,m.chunks, | ||
f];a.pendingChunks++;var B=a.nextChunkId++,Y=J(v),Cb=B.toString(16)+":I"+Y+"\n",Db=q.encode(Cb);a.completedImportChunks.push(Db);g.set(e,B);return b[0]===A&&"1"===c?"$L"+B.toString(16):Q(B)}catch(Eb){return a.pendingChunks++,b=a.nextChunkId++,c=L(a,Eb),M(a,b,c),Q(b)}}function R(a,b){b=K(a,b,null,!1,a.abortableTasks);lb(a,b);return b.id}var S=!1; | ||
function O(a,b,c,d,e){b.model=e;if(e===A)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case A:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(S===e)S=null;else return-1===d?(a=R(a,e),Q(a)):Q(d);else c.set(e,-1);return hb(a,b,e.type,e.key,e.ref,e.props);case C:return b.thenableState=null,c=e._init,e=c(e._payload),O(a,b,P,"",e)}if(e.$$typeof===r)return kb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(S===e)S=null;else return"$@"+ | ||
d.toString(16);a=cb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(S===e)S=null;else return-1===d?(a=R(a,e),Q(a)):Q(d);else c.set(e,-1);if(Qa(e))return 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"+R(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"+R(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ba&&e[Ba]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Ra(e);if(a!==Xa&&(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.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b= | ||
a.nextChunkId++,e=q.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,e),Q(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 kb(a,c,d,e);if(e.$$typeof===t)return b=a.writtenServerReferences, | ||
c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=R(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+I(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.'+ | ||
I(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return Q(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.")+I(c,d));a.pendingChunks++;c=a.nextChunkId++;d=jb(a,c,"$S"+g);a.completedImportChunks.push(d);b.set(e,c);return Q(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+ | ||
" is not supported in Client Component props."+I(c,d));}function L(a,b){var c=w;w=null;try{var d=a.onError;var e=d(b)}finally{w=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||""} | ||
function mb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}function M(a,b,c){c={digest:c};b=b.toString(16)+":E"+J(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var P={}; | ||
function lb(a,b){if(0===b.status)try{S=b.model;var c=O(a,b,P,"",b.model);S=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?J(c,b.toJSON):J(c),e=b.id.toString(16)+":"+d+"\n",g=q.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(m){var f=m===Ca?Fa():m;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=Ha()}else{a.abortableTasks.delete(b);b.status=4;var k=L(a,f);M(a,b.id,k)}}finally{}} | ||
function ib(a){var b=Za.current;Za.current=Ma;var c=w;E=w=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)lb(a,d[e]);null!==a.destination&&N(a,a.destination)}catch(g){L(a,g),mb(a,g)}finally{Za.current=b,E=null,w=c}} | ||
function N(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===a.pendingChunks&& | ||
b.close()}function nb(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=L(a,e);M(a,d,g,e);c.forEach(function(f){f.status=3;var h=Q(d);f=jb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&N(a,a.destination)}catch(f){L(a,f),mb(a,f)}} | ||
function ob(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 T=new Map; | ||
function pb(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 qb(){} | ||
function rb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++],g=b[d++],f=T.get(e);void 0===f?(sb.set(e,g),g=__webpack_chunk_load__(e),c.push(g),f=T.set.bind(T,e,null),g.then(f,qb),T.set(e,g)):null!==f&&c.push(f)}return 4===a.length?0===c.length?pb(a[0]):Promise.all(c).then(function(){return pb(a[0])}):0<c.length?Promise.all(c):null} | ||
function U(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 sb=new Map,tb=__webpack_require__.u;__webpack_require__.u=function(a){var b=sb.get(a);return void 0!==b?b:tb(a)};function V(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}V.prototype=Object.create(Promise.prototype); | ||
V.prototype.then=function(a,b){switch(this.status){case "resolved_model":ub(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 vb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)} | ||
function wb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&vb(c,b)}}function xb(a,b,c,d,e,g){var f=ob(a._bundlerConfig,b);a=rb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=U(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return U(f)});else return U(f);c.then(yb(d,e,g),zb(d));return null}var W=null,X=null; | ||
function ub(a){var b=W,c=X;W=a;X=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==X&&0<X.deps?(X.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{W=b,X=c}}function Ab(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&wb(c,b)})} | ||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new V("resolved_model",d,null,a):a._closed?new V("rejected",null,a._closedReason,a):new V("pending",null,null,a),c.set(b,d));return d}function yb(a,b,c){if(X){var d=X;d.deps++}else d=X={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&&vb(e,d.value))}}function zb(a){return function(b){return wb(a,b)}} | ||
function Bb(a,b){a=Z(a,b);"resolved_model"===a.status&&ub(a);if("fulfilled"!==a.status)throw a.reason;return a.value} | ||
function Fb(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 "S":return Symbol.for(d.slice(2));case "F":return d=parseInt(d.slice(2),16),d=Bb(a,d),xb(a,d.id,d.bound,W,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Bb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Bb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(e)&&g.append(h.slice(e.length), | ||
f)});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));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":ub(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=W,a.then(yb(d,b,c),zb(d)),null;default:throw a.reason;}}return d} | ||
function Gb(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?Fb(e,this,g,f):f},_closed:!1,_closedReason:null};return e}function Hb(a){Ab(a,Error("Connection closed."))} | ||
function Ib(a,b,c){var d=ob(a,b);a=rb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=U(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return U(d)}):Promise.resolve(U(d))}function Jb(a,b,c){a=Gb(b,c,a);Hb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=u({},a,!1);return new Proxy(a,ka)}; | ||
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=Jb(a,b,e),d=Ib(b,e.id,e.bound)):g.startsWith("$ACTION_ID_")&&(e=g.slice(11),d=Ib(b,e,null)):c.append(g,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})}; | ||
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,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",e=Jb(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=Gb(b,"",a);b=Z(a,0);Hb(a);return b}; | ||
exports.registerClientReference=function(a,b,c){return u(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:fa,configurable:!0}})}; | ||
exports.renderToReadableStream=function(a,b,c){var d=bb(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)nb(d,e.reason);else{var g=function(){nb(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){d.flushScheduled=null!==d.destination;ib(d)},pull:function(f){if(1===d.status)d.status=2,ca(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination= | ||
f;try{N(d,f)}catch(h){L(d,h),mb(d,h)}}},cancel:function(f){d.destination=null;nb(d,f)}},{highWaterMark:0})}; | ||
//# sourceMappingURL=react-server-dom-webpack-server.browser.production.min.js.map |
@@ -1,64 +0,78 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-server.edge.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var aa=require("react"),ba=require("react-dom"),l=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(l.buffer,0,m)),l=new Uint8Array(512),m=0),a.enqueue(b);else{var d=l.length-m;d<b.length&&(0===d?a.enqueue(l):(l.set(b.subarray(0,d),m),a.enqueue(l),b=b.subarray(d)),l=new Uint8Array(512),m=0);l.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var q=JSON.stringify; | ||
function da(a,b,d){a=q(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function t(a,b,d){a=q(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}var u=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),ka={prefetchDNS:fa,preconnect:ha,preload:ia,preinit:ja};function fa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?A(d,"D",[a,b]):A(d,"D",a),B(d))}}} | ||
function ha(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?A(d,"C",[a,b]):A(d,"C",a),B(d))}}}function ia(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),A(d,"L",[a,b]),B(d))}}} | ||
function ja(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),A(d,"I",[a,b]),B(d))}}} | ||
var la=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C="function"===typeof AsyncLocalStorage,na=C?new AsyncLocalStorage:null,D=Symbol.for("react.element"),oa=Symbol.for("react.fragment"),pa=Symbol.for("react.provider"),qa=Symbol.for("react.server_context"),ra=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),ta=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),va=Symbol.for("react.default_value"),wa=Symbol.for("react.memo_cache_sentinel"), | ||
xa=Symbol.iterator,F=null;function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,d);b.context._currentValue=b.value}}}function ya(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ya(a)} | ||
function za(a){var b=a.parent;null!==b&&za(b);a.context._currentValue=a.value}function Aa(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?G(a,b):Aa(a,b)} | ||
function Ba(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?G(a,d):Ba(a,d);b.context._currentValue=b.value}function H(a){var b=F;b!==a&&(null===b?za(a):null===a?ya(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Aa(b,a):Ba(b,a),F=a)}function Ca(a,b){var d=a._currentValue;a._currentValue=b;var c=F;return F=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Da=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`"); | ||
function Ea(){}function Fa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ea,Ea),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}I=b;throw Da;}}var I=null; | ||
function Ga(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,K=0,L=null;function Ha(){var a=L;L=null;return a}function Ia(a){return a._currentValue} | ||
var Ma={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:M,useTransition:M,readContext:Ia,useContext:Ia,useReducer:M,useRef:M,useState:M,useInsertionEffect:M,useLayoutEffect:M,useImperativeHandle:M,useEffect:M,useId:Ja,useMutableSource:M,useSyncExternalStore:M,useCacheRefresh:function(){return Ka},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=wa;return b},use:La}; | ||
function M(){throw Error("This Hook is not supported in Server Components.");}function Ka(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ja(){if(null===J)throw Error("useId can only be used while React is rendering");var a=J.identifierCount++;return":"+J.identifierPrefix+"S"+a.toString(32)+":"} | ||
function La(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Fa(L,a,b)}if(a.$$typeof===qa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Na(){return(new AbortController).signal}function Oa(){var a=v();return a?a.cache:new Map} | ||
var Pa={getCacheSignal:function(){var a=Oa(),b=a.get(Na);void 0===b&&(b=Na(),a.set(Na,b));return b},getCacheForType:function(a){var b=Oa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Qa=Array.isArray;function Ra(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})} | ||
function Sa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Qa(a))return"[...]";a=Ra(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function N(a){if("string"===typeof a)return a;switch(a){case sa:return"Suspense";case ta:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ra:return N(a.render);case ua:return N(a.type);case E:var b=a._payload;a=a._init;try{return N(a(b))}catch(d){}}return""} | ||
function O(a,b){var d=Ra(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Qa(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?O(g):Sa(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===D)e="<"+N(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?O(k): | ||
Sa(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Ta=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ua=Ta.ContextRegistry,Va=Ta.ReactCurrentDispatcher,Wa=Ta.ReactCurrentCache;function Xa(a){console.error(a)} | ||
function Ya(a,b,d,c,e){if(null!==Wa.current&&Wa.current!==Pa)throw Error("Currently React only supports one RSC renderer at a time.");la.current=ka;Wa.current=Pa;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Xa:d,toJSON:function(r,w){return Za(k,this,r,w)}};k.pendingChunks++;b=$a(c);a=ab(k,a,b,f);g.push(a);return k}var P=null;function v(){if(P)return P;if(C){var a=na.getStore();if(a)return a}return null}var bb={}; | ||
function cb(a,b){a.pendingChunks++;var d=ab(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,db(a,d),d.id;case "rejected":var c=Q(a,b.reason);R(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;db(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);null!==a.destination&& | ||
S(a,a.destination)});return d.id}function eb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function fb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:E,_payload:a,_init:eb}} | ||
function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===u)return[D,b,d,e];K=0;L=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:fb(e):e}if("string"===typeof b)return[D,b,d,e];if("symbol"===typeof b)return b===oa?e.children:[D,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===u)return[D,b,d,e];switch(b.$$typeof){case E:var g= | ||
b._init;b=g(b._payload);return T(a,b,d,c,e,f);case ra:return a=b.render,K=0,L=f,a(e,void 0);case ua:return T(a,b.type,d,c,e,f);case pa:return Ca(b._context,e.value),[D,b,d,{value:e.value,children:e.children,__pop:bb}]}}throw Error("Unsupported Server Component type: "+Sa(b));}function db(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return gb(a)},0))} | ||
function ab(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return db(a,e)},thenableState:null};c.add(e);return e} | ||
function hb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===D&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var r=h[k];if(r)g=r.name;else{var w=k.lastIndexOf("#");-1!==w&&(g=k.slice(w+1),r=h[k.slice(0,w)]);if(!r)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var x={id:r.id,chunks:r.chunks,name:g, | ||
async:!!c.$$async};a.pendingChunks++;var y=a.nextChunkId++,ma=q(x),z=y.toString(16)+":I"+ma+"\n";var vb=p.encode(z);a.completedImportChunks.push(vb);f.set(e,y);return b[0]===D&&"1"===d?"$L"+y.toString(16):"$"+y.toString(16)}catch(wb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,wb),R(a,b,d),"$"+b.toString(16)}} | ||
function Za(a,b,d,c){switch(c){case D:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===D||c.$$typeof===E);)try{switch(c.$$typeof){case D:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case E:var f=c._init;c=f(c._payload)}}catch(g){d=g===Da?Ga():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=ab(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ha(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+ | ||
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===u)return hb(a,b,d,c);if("function"===typeof c.then)return"$@"+cb(a,c).toString(16);if(c.$$typeof===pa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=t(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===bb){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue= | ||
c===va?a.context._defaultValue:c;F=a.parent;return}return!Qa(c)&&(null===c||"object"!==typeof c?a=null:(a=xa&&c[xa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined"; | ||
if("function"===typeof c){if(c.$$typeof===u)return hb(a,b,d,c);if(c.$$typeof===ea)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+O(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component."); | ||
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+O(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+O(b,d));a.pendingChunks++;d=a.nextChunkId++;b= | ||
t(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+O(b,d));} | ||
function Q(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function ib(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)} | ||
function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+q(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function A(a,b,d){var c=a.nextChunkId++;d=q(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)} | ||
function gb(a){var b=Va.current;Va.current=Ma;var d=P;J=P=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){H(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===D){var k=h,r=f.thenableState;f.model=h;h=T(g,k.type,k.key,k.ref,k.props,r);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===D;)k=h,f.model=h,h=T(g,k.type,k.key,k.ref,k.props,null)}var w=da(g,f.id,h);g.completedJSONChunks.push(w);g.abortableTasks.delete(f); | ||
f.status=1}catch(z){var x=z===Da?Ga():z;if("object"===typeof x&&null!==x&&"function"===typeof x.then){var y=f.ping;x.then(y,y);f.thenableState=Ha()}else{g.abortableTasks.delete(f);f.status=4;var ma=Q(g,x);R(g,f.id,ma)}}}}null!==a.destination&&S(a,a.destination)}catch(z){Q(a,z),ib(a,z)}finally{Va.current=b,J=null,P=d}} | ||
function S(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&& | ||
b.close()}function jb(a){a.flushScheduled=null!==a.destination;C?setTimeout(function(){return na.run(a,gb,a)},0):setTimeout(function(){return gb(a)},0)}function B(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return S(a,b)},0)}} | ||
function kb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=Q(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;R(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=t(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(f){Q(a,f),ib(a,f)}} | ||
function $a(a){if(a){var b=F;H(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ua[e]||(Ua[e]=aa.createServerContext(e,va));Ca(Ua[e],c)}a=F;H(b);return a}return null}function lb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)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{id:c.id,chunks:c.chunks,name:d,async:!1}} | ||
var U=new Map,mb=new Map;function nb(){} | ||
function ob(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,nb);U.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=mb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});mb.set(a.id,h);return h}return 0<d.length?Promise.all(d): | ||
null}function V(a){if(a.async){var b=mb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype); | ||
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":pb(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 qb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)} | ||
function rb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&qb(d,b)}}function sb(a,b,d,c,e,f){var g=lb(a._bundlerConfig,b);a=ob(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(tb(c,e,f),ub(c));return null}var X=null,Y=null; | ||
function pb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function xb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&rb(d,b)})} | ||
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function tb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&qb(e,c.value))}}function ub(a){return function(b){return rb(a,b)}} | ||
function yb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&pb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return sb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity; | ||
case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":pb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(tb(c,b,d),ub(c)),null;default:throw a.reason;}}return c} | ||
function zb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?yb(e,this,f,g):g}};return e}function Ab(a){xb(a,Error("Connection closed."))}function Bb(a,b,d){var c=lb(a,b);a=ob(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))} | ||
exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=zb(b,e,a);Ab(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Bb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Bb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})}; | ||
exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=zb(b,"",a);Ab(a);return Z(a,0)}; | ||
exports.renderToReadableStream=function(a,b,d){var c=Ya(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)kb(c,e.reason);else{var f=function(){kb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){jb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{S(c,g)}catch(h){Q(c,h), | ||
ib(c,h)}}},cancel:function(){}},{highWaterMark:0})}; | ||
/* | ||
React | ||
react-server-dom-webpack-server.edge.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var ba=require("react"),ca=require("react-dom"),m=null,n=0;function p(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(2048),n=0),a.enqueue(b);else{var c=m.length-n;c<b.byteLength&&(0===c?a.enqueue(m):(m.set(b.subarray(0,c),n),a.enqueue(m),b=b.subarray(c)),m=new Uint8Array(2048),n=0);m.set(b,n);n+=b.byteLength}return!0}var q=new TextEncoder;function da(a,b){"function"===typeof a.error?a.error(b):a.close()} | ||
var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference");function v(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var ea=Function.prototype.bind,fa=Array.prototype.slice;function ha(){var a=ea.apply(this,arguments);if(this.$$typeof===t){var b=fa.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ha}})}return a} | ||
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."); | ||
}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.");}}; | ||
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."); | ||
},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."); | ||
},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,ja));return d} | ||
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.");}},ta={prefetchDNS:ma,preconnect:na,preload:oa,preloadModule:pa,preinitStyle:qa,preinitScript:ra,preinitModuleScript:sa}; | ||
function ma(a){if("string"===typeof a&&a){var b=w();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),x(b,"D",a))}}}function na(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?x(c,"C",[a,b]):x(c,"C",a))}}} | ||
function oa(a,b,c){if("string"===typeof a){var d=w();if(d){var e=d.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(c=y(c))?x(d,"L",[a,b,c]):x(d,"L",[a,b]))}}}function pa(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=y(b))?x(c,"m",[a,b]):x(c,"m",a)}}} | ||
function qa(a,b,c){if("string"===typeof a){var d=w();if(d){var e=d.hints,g="S|"+a;if(!e.has(g))return e.add(g),(c=y(c))?x(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?x(d,"S",[a,b]):x(d,"S",a)}}}function ra(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=y(b))?x(c,"X",[a,b]):x(c,"X",a)}}}function sa(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=y(b))?x(c,"M",[a,b]):x(c,"M",a)}}} | ||
function y(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}var ua=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A="function"===typeof AsyncLocalStorage,va=A?new AsyncLocalStorage:null;"object"===typeof async_hooks?async_hooks.createHook:function(){return{enable:function(){},disable:function(){}}};"object"===typeof async_hooks?async_hooks.executionAsyncId:null; | ||
var B=Symbol.for("react.element"),wa=Symbol.for("react.fragment"),xa=Symbol.for("react.context"),ya=Symbol.for("react.forward_ref"),za=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),Ba=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ca=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Da=Symbol.iterator,Ea=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`"); | ||
function Fa(){}function Ga(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Fa,Fa),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Ea;}}var E=null; | ||
function Ha(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Ia=0,G=null;function Ja(){var a=G||[];G=null;return a} | ||
var Oa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Ka,useContext:Ka,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:La,useSyncExternalStore:H,useCacheRefresh:function(){return Ma},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ca;return b},use:Na}; | ||
function H(){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===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"} | ||
function Na(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ia;Ia+=1;null===G&&(G=[]);return Ga(G,a,b)}a.$$typeof===xa&&Ka()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===xa)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));}function Pa(){return(new AbortController).signal} | ||
function Qa(){var a=w();return a?a.cache:new Map}var Ra={getCacheSignal:function(){var a=Qa(),b=a.get(Pa);void 0===b&&(b=Pa(),a.set(Pa,b));return b},getCacheForType:function(a){var b=Qa(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Sa=Array.isArray,Ta=Object.getPrototypeOf;function Ua(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})} | ||
function Va(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Sa(a))return"[...]";if(null!==a&&a.$$typeof===Wa)return"client";a=Ua(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Wa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}} | ||
function I(a){if("string"===typeof a)return a;switch(a){case za:return"Suspense";case Aa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ya:return I(a.render);case Ba:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Wa=Symbol.for("react.client.reference"); | ||
function J(a,b){var c=Ua(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Sa(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?J(f):Va(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="<"+I(a.type)+"/>";else{if(a.$$typeof===Wa)return"client";e="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(e+=", ");var h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k= | ||
"object"===typeof k&&null!==k?J(k):Va(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Xa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ya=ba.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
if(!Ya)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.');var Za=Object.prototype,K=JSON.stringify,$a=Ya.ReactCurrentCache,ab=Xa.ReactCurrentDispatcher;function bb(a){console.error(a)}function cb(){} | ||
function db(a,b,c,d,e){if(null!==$a.current&&$a.current!==Ra)throw Error("Currently React only supports one RSC renderer at a time.");ua.current=ta;$a.current=Ra;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?bb:c,onPostpone:void 0===e?cb:e};a=L(b,a,null,!1,g);f.push(a);return b}var M=null;function w(){if(M)return M;if(A){var a=va.getStore();if(a)return a}return null} | ||
function eb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,fb(a,d),d.id;case "rejected":return b=N(a,c.reason),O(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;fb(a,d)},function(e){d.status=4;e=N(a,e);O(a,d.id,e);a.abortableTasks.delete(d); | ||
null!==a.destination&&P(a,a.destination)});return d.id}function x(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);gb(a)}function hb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;} | ||
function ib(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:hb}} | ||
function jb(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ia=0;G=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=ib(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 kb(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?[B,c,d,g]:jb(a,b,d,c,g);if("string"===typeof c)return[B,c,d,g];if("symbol"===typeof c)return c===wa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",g.children),b.implicitSlot=d,a):[B,c,d,g];if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return[B,c,d,g];switch(c.$$typeof){case D:var f= | ||
c._init;c=f(c._payload);return kb(a,b,c,d,e,g);case ya:return jb(a,b,d,c.render,g);case Ba:return kb(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Va(c));}function fb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return lb(a)},0))} | ||
function L(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return fb(a,f)},toJSON:function(h,k){var l=f.keyPath,z=f.implicitSlot;try{var u=Q(a,f,this,h,k)}catch(aa){if(h=aa===Ea?Ha():aa,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===B||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){u=L(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks); | ||
var C=u.ping;h.then(C,C);u.thenableState=Ja();f.keyPath=l;f.implicitSlot=z;u=k?"$L"+u.id.toString(16):S(u.id)}else if(f.keyPath=l,f.implicitSlot=z,k)a.pendingChunks++,l=a.nextChunkId++,z=N(a,h),O(a,l,z),u="$L"+l.toString(16);else throw h;}return u},thenableState:null};e.add(f);return f}function S(a){return"$"+a.toString(16)}function mb(a,b,c){a=K(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)} | ||
function nb(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):S(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var l=h[k];if(l)f=l.name;else{var z=k.lastIndexOf("#");-1!==z&&(f=k.slice(z+1),l=h[k.slice(0,z)]);if(!l)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var u=!0===d.$$async?[l.id,l.chunks,f,1]:[l.id,l.chunks, | ||
f];a.pendingChunks++;var C=a.nextChunkId++,aa=K(u),Fb=C.toString(16)+":I"+aa+"\n",Gb=q.encode(Fb);a.completedImportChunks.push(Gb);g.set(e,C);return b[0]===B&&"1"===c?"$L"+C.toString(16):S(C)}catch(Hb){return a.pendingChunks++,b=a.nextChunkId++,c=N(a,Hb),O(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);ob(a,b);return b.id}var U=!1; | ||
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(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);return kb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===r)return nb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(U===e)U=null;else return"$@"+ | ||
d.toString(16);a=eb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);if(Sa(e))return 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"+T(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"+T(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Da&&e[Da]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Ta(e);if(a!==Za&&(null===a||null!==Ta(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b= | ||
a.nextChunkId++,e=q.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,e),S(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 nb(a,c,d,e);if(e.$$typeof===t)return b=a.writtenServerReferences, | ||
c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(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.'+ | ||
J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return S(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.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=mb(a,c,"$S"+g);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+ | ||
" is not supported in Client Component props."+J(c,d));}function N(a,b){var c=M;M=null;try{var d=a.onError;var e=A?va.run(void 0,d,b):d(b)}finally{M=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||""} | ||
function pb(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function O(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var R={}; | ||
function ob(a,b){if(0===b.status)try{U=b.model;var c=Q(a,b,R,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n",g=q.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(l){var f=l===Ea?Ha():l;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=Ja()}else{a.abortableTasks.delete(b);b.status=4;var k=N(a,f);O(a,b.id,k)}}finally{}} | ||
function lb(a){var b=ab.current;ab.current=Oa;var c=M;F=M=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)ob(a,d[e]);null!==a.destination&&P(a,a.destination)}catch(g){N(a,g),pb(a,g)}finally{ab.current=b,F=null,M=c}} | ||
function P(a,b){m=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,m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&& | ||
b.close()}function qb(a){a.flushScheduled=null!==a.destination;A?setTimeout(function(){return va.run(a,lb,a)},0):setTimeout(function(){return lb(a)},0)}function gb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return P(a,b)},0)}} | ||
function rb(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=N(a,e);O(a,d,g,e);c.forEach(function(f){f.status=3;var h=S(d);f=mb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&P(a,a.destination)}catch(f){N(a,f),pb(a,f)}} | ||
function sb(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 tb=new Map; | ||
function ub(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 vb(){} | ||
function wb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var g=tb.get(e);if(void 0===g){g=__webpack_chunk_load__(e);c.push(g);var f=tb.set.bind(tb,e,null);g.then(f,vb);tb.set(e,g)}else null!==g&&c.push(g)}return 4===a.length?0===c.length?ub(a[0]):Promise.all(c).then(function(){return ub(a[0])}):0<c.length?Promise.all(c):null} | ||
function V(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function W(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}W.prototype=Object.create(Promise.prototype); | ||
W.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)} | ||
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=sb(a._bundlerConfig,b);a=wb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=V(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return V(f)});else return V(f);c.then(Bb(d,e,g),Cb(d));return null}var X=null,Y=null; | ||
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._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&zb(c,b)})} | ||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new W("resolved_model",d,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("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)}} | ||
function Eb(a,b){a=Z(a,b);"resolved_model"===a.status&&xb(a);if("fulfilled"!==a.status)throw a.reason;return a.value} | ||
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 "S":return Symbol.for(d.slice(2));case "F":return d=parseInt(d.slice(2),16),d=Eb(a,d),Ab(a,d.id,d.bound,X,b,c);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,h){h.startsWith(e)&&g.append(h.slice(e.length), | ||
f)});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));default: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} | ||
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},_closed:!1,_closedReason:null};return e}function Kb(a){Db(a,Error("Connection closed."))} | ||
function Lb(a,b,c){var d=sb(a,b);a=wb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=V(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}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)}; | ||
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)})}; | ||
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,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.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}; | ||
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}})}; | ||
exports.renderToReadableStream=function(a,b,c){var d=db(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)rb(d,e.reason);else{var g=function(){rb(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){qb(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=f;try{P(d,f)}catch(h){N(d, | ||
h),pb(d,h)}}},cancel:function(f){d.destination=null;rb(d,f)}},{highWaterMark:0})}; | ||
//# sourceMappingURL=react-server-dom-webpack-server.edge.production.min.js.map |
@@ -1,69 +0,82 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-server.node.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var aa=require("async_hooks"),ba=require("util"),ca=require("react"),da=require("react-dom"),l=null,m=0,p=!0;function r(a,b){a=a.write(b);p=p&&a} | ||
function t(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,ea.encode(b));else{var d=l;0<m&&(d=l.subarray(m));d=ea.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=ea.encodeInto(b.slice(c),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(d=l.length-m,d<b.byteLength&& | ||
(0===d?r(a,l):(l.set(b.subarray(0,d),m),m+=d,r(a,l),b=b.subarray(d)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return p}var ea=new ba.TextEncoder,v=JSON.stringify;function fa(a,b,d){a=v(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function ha(a,b,d){a=v(d);return b.toString(16)+":"+a+"\n"}var w=Symbol.for("react.client.reference"),ia=Symbol.for("react.server.reference"),na={prefetchDNS:ja,preconnect:ka,preload:la,preinit:ma}; | ||
function ja(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?y(d,"D",[a,b]):y(d,"D",a),B(d))}}}function ka(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?y(d,"C",[a,b]):y(d,"C",a),B(d))}}} | ||
function la(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),y(d,"L",[a,b]),B(d))}}}function ma(a,b){if("string"===typeof a){var d=x();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),y(d,"I",[a,b]),B(d))}}} | ||
var pa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,qa=new aa.AsyncLocalStorage,C=Symbol.for("react.element"),ra=Symbol.for("react.fragment"),sa=Symbol.for("react.provider"),ta=Symbol.for("react.server_context"),ua=Symbol.for("react.forward_ref"),va=Symbol.for("react.suspense"),wa=Symbol.for("react.suspense_list"),xa=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),ya=Symbol.for("react.default_value"),za=Symbol.for("react.memo_cache_sentinel"),Aa=Symbol.iterator,E=null; | ||
function F(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");F(a,d);b.context._currentValue=b.value}}}function Ba(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ba(a)} | ||
function Ca(a){var b=a.parent;null!==b&&Ca(b);a.context._currentValue=a.value}function Da(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?F(a,b):Da(a,b)} | ||
function Ea(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?F(a,d):Ea(a,d);b.context._currentValue=b.value}function Fa(a){var b=E;b!==a&&(null===b?Ca(a):null===a?Ba(b):b.depth===a.depth?F(b,a):b.depth>a.depth?Da(b,a):Ea(b,a),E=a)}function Ga(a,b){var d=a._currentValue;a._currentValue=b;var c=E;return E=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ha=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`"); | ||
function Ia(){}function Ja(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ia,Ia),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw Ha;}}var G=null; | ||
function Ka(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var H=null,I=0,J=null;function La(){var a=J;J=null;return a}function Ma(a){return a._currentValue} | ||
var Qa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:K,useTransition:K,readContext:Ma,useContext:Ma,useReducer:K,useRef:K,useState:K,useInsertionEffect:K,useLayoutEffect:K,useImperativeHandle:K,useEffect:K,useId:Na,useMutableSource:K,useSyncExternalStore:K,useCacheRefresh:function(){return Oa},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=za;return b},use:Pa}; | ||
function K(){throw Error("This Hook is not supported in Server Components.");}function Oa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Na(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"} | ||
function Pa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=I;I+=1;null===J&&(J=[]);return Ja(J,a,b)}if(a.$$typeof===ta)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ra(){return(new AbortController).signal}function Sa(){var a=x();return a?a.cache:new Map} | ||
var Ta={getCacheSignal:function(){var a=Sa(),b=a.get(Ra);void 0===b&&(b=Ra(),a.set(Ra,b));return b},getCacheForType:function(a){var b=Sa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ua=Array.isArray;function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})} | ||
function Wa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ua(a))return"[...]";a=Va(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function L(a){if("string"===typeof a)return a;switch(a){case va:return"Suspense";case wa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ua:return L(a.render);case xa:return L(a.type);case D:var b=a._payload;a=a._init;try{return L(a(b))}catch(d){}}return""} | ||
function M(a,b){var d=Va(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ua(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?M(g):Wa(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+L(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?M(k): | ||
Wa(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Xa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ya=Xa.ContextRegistry,Za=Xa.ReactCurrentDispatcher,$a=Xa.ReactCurrentCache;function ab(a){console.error(a)} | ||
function bb(a,b,d,c,e){if(null!==$a.current&&$a.current!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");pa.current=na;$a.current=Ta;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?ab:d,toJSON:function(q,u){return cb(k,this,q,u)}};k.pendingChunks++;b=db(c);a=eb(k,a,b,f);g.push(a);return k}var N=null;function x(){if(N)return N;var a=qa.getStore();return a?a:null}var fb={}; | ||
function gb(a,b){a.pendingChunks++;var d=eb(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,hb(a,d),d.id;case "rejected":var c=O(a,b.reason);P(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;hb(a,d)},function(e){d.status=4;e=O(a,e);P(a,d.id,e);null!==a.destination&& | ||
Q(a,a.destination)});return d.id}function ib(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function jb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:ib}} | ||
function R(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===w)return[C,b,d,e];I=0;J=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:jb(e):e}if("string"===typeof b)return[C,b,d,e];if("symbol"===typeof b)return b===ra?e.children:[C,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===w)return[C,b,d,e];switch(b.$$typeof){case D:var g= | ||
b._init;b=g(b._payload);return R(a,b,d,c,e,f);case ua:return a=b.render,I=0,J=f,a(e,void 0);case xa:return R(a,b.type,d,c,e,f);case sa:return Ga(b._context,e.value),[C,b,d,{value:e.value,children:e.children,__pop:fb}]}}throw Error("Unsupported Server Component type: "+Wa(b));}function hb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return kb(a)}))} | ||
function eb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return hb(a,e)},thenableState:null};c.add(e);return e} | ||
function lb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var q=h[k];if(q)g=q.name;else{var u=k.lastIndexOf("#");-1!==u&&(g=k.slice(u+1),q=h[k.slice(0,u)]);if(!q)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n={id:q.id,chunks:q.chunks,name:g, | ||
async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,oa=v(n);var A=z.toString(16)+":I"+oa+"\n";a.completedImportChunks.push(A);f.set(e,z);return b[0]===C&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(zb){return a.pendingChunks++,b=a.nextChunkId++,d=O(a,zb),P(a,b,d),"$"+b.toString(16)}} | ||
function cb(a,b,d,c){switch(c){case C:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===C||c.$$typeof===D);)try{switch(c.$$typeof){case C:var e=c;c=R(a,e.type,e.key,e.ref,e.props,null);break;case D:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ha?Ka():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=eb(a,c,E,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=La(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);P(a,c,d);return"$L"+ | ||
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===w)return lb(a,b,d,c);if("function"===typeof c.then)return"$@"+gb(a,c).toString(16);if(c.$$typeof===sa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=ha(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===fb){a=E;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue; | ||
a.context._currentValue=c===ya?a.context._defaultValue:c;E=a.parent;return}return!Ua(c)&&(null===c||"object"!==typeof c?a=null:(a=Aa&&c[Aa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"=== | ||
typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===w)return lb(a,b,d,c);if(c.$$typeof===ia)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=fa(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+M(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component."); | ||
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+M(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b= | ||
ha(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+M(b,d));} | ||
function O(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function mb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)} | ||
function P(a,b,d){d={digest:d};b=b.toString(16)+":E"+v(d)+"\n";a.completedErrorChunks.push(b)}function y(a,b,d){var c=a.nextChunkId++;d=v(d);b="H"+b;c=c.toString(16)+":"+b;a.completedHintChunks.push(c+d+"\n")} | ||
function kb(a){var b=Za.current;Za.current=Qa;var d=N;H=N=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){Fa(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===C){var k=h,q=f.thenableState;f.model=h;h=R(g,k.type,k.key,k.ref,k.props,q);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===C;)k=h,f.model=h,h=R(g,k.type,k.key,k.ref,k.props,null)}var u=fa(g,f.id,h);g.completedJSONChunks.push(u);g.abortableTasks.delete(f); | ||
f.status=1}catch(A){var n=A===Ha?Ka():A;if("object"===typeof n&&null!==n&&"function"===typeof n.then){var z=f.ping;n.then(z,z);f.thenableState=La()}else{g.abortableTasks.delete(f);f.status=4;var oa=O(g,n);P(g,f.id,oa)}}}}null!==a.destination&&Q(a,a.destination)}catch(A){O(a,A),mb(a,A)}finally{Za.current=b,H=null,N=d}} | ||
function Q(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!t(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!t(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!t(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!t(b,g[c])){a.destination= | ||
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,p=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function nb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return qa.run(a,kb,a)})}function B(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return Q(a,b)})}} | ||
function ob(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{Q(a,b)}catch(d){O(a,d),mb(a,d)}}} | ||
function pb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;P(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=ha(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&Q(a,a.destination)}catch(f){O(a,f),mb(a,f)}} | ||
function db(a){if(a){var b=E;Fa(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ya[e]||(Ya[e]=ca.createServerContext(e,ya));Ga(Ya[e],c)}a=E;Fa(b);return a}return null}function qb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)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{id:c.id,chunks:c.chunks,name:d,async:!1}} | ||
var S=new Map,rb=new Map;function sb(){} | ||
function tb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=S.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=S.set.bind(S,e,null);f.then(g,sb);S.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=rb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});rb.set(a.id,h);return h}return 0<d.length?Promise.all(d): | ||
null}function T(a){if(a.async){var b=rb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function U(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}U.prototype=Object.create(Promise.prototype); | ||
U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function W(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)} | ||
function ub(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function vb(a,b,d,c,e,f){var g=qb(a._bundlerConfig,b);a=tb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=T(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return T(g)});else return T(g);d.then(wb(c,e,f),xb(c));return null}var X=null,Y=null; | ||
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function yb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&ub(d,b)})} | ||
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new U("resolved_model",c,null,a):new U("pending",null,null,a),d.set(b,c));return c}function wb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function xb(a){return function(b){return ub(a,b)}} | ||
function Ab(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return vb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"=== | ||
c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(wb(c,b,d),xb(c)),null;default:throw a.reason;}}return c} | ||
function Bb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?Ab(e,this,f,g):g}};return e} | ||
function Cb(a,b,d){a._formData.append(b,d);var c=a._prefix;if(b.startsWith(c)&&(a=a._chunks,b=+b.slice(c.length),(b=a.get(b))&&"pending"===b.status&&(c=b.value,a=b.reason,b.status="resolved_model",b.value=d,null!==c)))switch(V(b),b.status){case "fulfilled":W(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&W(a,b.reason)}}function Db(a){yb(a,Error("Connection closed."))} | ||
function Eb(a,b,d){var c=qb(a,b);a=tb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=T(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return T(c)}):Promise.resolve(T(c))}function Fb(a,b){return function(){return ob(b,a)}} | ||
exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=Bb(b,e,a);Db(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Eb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Eb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})}; | ||
exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Bb(b,"",a);Db(a);return Z(a,0)}; | ||
exports.decodeReplyFromBusboy=function(a,b){var d=Bb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Cb(d,f,g)});a.on("file",function(f,g,h){var k=h.filename,q=h.mimeType;if("base64"===h.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");c++;var u=[];g.on("data",function(n){u.push(n)});g.on("end",function(){var n= | ||
new Blob(u,{type:q});d._formData.append(f,n,k);c--;if(0===c){for(n=0;n<e.length;n+=2)Cb(d,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Db(d)});a.on("error",function(f){yb(d,f)});return Z(d,0)}; | ||
exports.renderToPipeableStream=function(a,b,d){var c=bb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0),e=!1;nb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;ob(c,f);f.on("drain",Fb(f,c));return f},abort:function(f){pb(c,f)}}}; | ||
/* | ||
React | ||
react-server-dom-webpack-server.node.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var ba=require("util");require("crypto");var ca=require("async_hooks"),da=require("react"),ea=require("react-dom"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a} | ||
function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(c=l.length-m,c<b.byteLength&& | ||
(0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new ba.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice; | ||
function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a} | ||
var ka=Promise.prototype,la={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."); | ||
}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.");}}; | ||
function ma(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=x(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."); | ||
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=x({},a.$$id,!0),e=new Proxy(d,na);a.status="fulfilled";a.value=e;return a.then=x(function(f){return Promise.resolve(f(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=x(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."); | ||
},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,la));return d} | ||
var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ma(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ka},set:function(){throw Error("Cannot assign to a client module from a server module.");}},va={prefetchDNS:oa,preconnect:pa,preload:qa,preloadModule:ra,preinitStyle:sa,preinitScript:ta,preinitModuleScript:ua}; | ||
function oa(a){if("string"===typeof a&&a){var b=y();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),z(b,"D",a))}}}function pa(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?z(c,"C",[a,b]):z(c,"C",a))}}} | ||
function qa(a,b,c){if("string"===typeof a){var d=y();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,k=c.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=A(c))?z(d,"L",[a,b,c]):z(d,"L",[a,b]))}}}function ra(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=A(b))?z(c,"m",[a,b]):z(c,"m",a)}}} | ||
function sa(a,b,c){if("string"===typeof a){var d=y();if(d){var e=d.hints,f="S|"+a;if(!e.has(f))return e.add(f),(c=A(c))?z(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?z(d,"S",[a,b]):z(d,"S",a)}}}function ta(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=A(b))?z(c,"X",[a,b]):z(c,"X",a)}}}function ua(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=A(b))?z(c,"M",[a,b]):z(c,"M",a)}}} | ||
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}var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel"); | ||
Symbol.for("react.postpone");var Fa=Symbol.iterator,Ga=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");function Ha(){} | ||
function Ia(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ha,Ha),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Ga;}}var E=null; | ||
function Ja(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Ka=0,G=null;function La(){var a=G||[];G=null;return a} | ||
var Qa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Ma,useContext:Ma,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Na,useSyncExternalStore:H,useCacheRefresh:function(){return Oa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ea;return b},use:Pa}; | ||
function H(){throw Error("This Hook is not supported in Server Components.");}function Oa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ma(){throw Error("Cannot read a Client Context from a Server Component.");}function Na(){if(null===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"} | ||
function Pa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ka;Ka+=1;null===G&&(G=[]);return Ia(G,a,b)}a.$$typeof===za&&Ma()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===za)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Ra(){return(new AbortController).signal} | ||
function Sa(){var a=y();return a?a.cache:new Map}var Ta={getCacheSignal:function(){var a=Sa(),b=a.get(Ra);void 0===b&&(b=Ra(),a.set(Ra,b));return b},getCacheForType:function(a){var b=Sa(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ua=Array.isArray,Va=Object.getPrototypeOf;function Wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})} | ||
function Xa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ua(a))return"[...]";if(null!==a&&a.$$typeof===Ya)return"client";a=Wa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Ya?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}} | ||
function I(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return I(a.render);case Da:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Ya=Symbol.for("react.client.reference"); | ||
function J(a,b){var c=Wa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ua(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?J(g):Xa(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Ya)return"client";e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h= | ||
"object"===typeof h&&null!==h?J(h):Xa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Za=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$a=da.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
if(!$a)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.');var ab=Object.prototype,K=JSON.stringify,bb=$a.ReactCurrentCache,cb=Za.ReactCurrentDispatcher;function db(a){console.error(a)}function eb(){} | ||
function fb(a,b,c,d,e){if(null!==bb.current&&bb.current!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");wa.current=va;bb.current=Ta;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?db:c,onPostpone:void 0===e?eb:e};a=L(b,a,null,!1,f);g.push(a);return b}var M=null;function y(){if(M)return M;var a=xa.getStore();return a?a:null} | ||
function gb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,hb(a,d),d.id;case "rejected":return b=N(a,c.reason),O(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;hb(a,d)},function(e){d.status=4;e=N(a,e);O(a,d.id,e);a.abortableTasks.delete(d); | ||
null!==a.destination&&P(a,a.destination)});return d.id}function z(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");ib(a)}function jb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;} | ||
function kb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:jb}} | ||
function lb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;Ka=0;G=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=kb(d)}e=b.keyPath;f=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=f;return a} | ||
function mb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v?[B,c,d,f]:lb(a,b,d,c,f);if("string"===typeof c)return[B,c,d,f];if("symbol"===typeof c)return c===ya&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",f.children),b.implicitSlot=d,a):[B,c,d,f];if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return[B,c,d,f];switch(c.$$typeof){case D:var g= | ||
c._init;c=g(c._payload);return mb(a,b,c,d,e,f);case Aa:return lb(a,b,d,c.render,f);case Da:return mb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Xa(c));}function hb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return nb(a)}))} | ||
function L(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return hb(a,g)},toJSON:function(k,h){var p=g.keyPath,t=g.implicitSlot;try{var n=Q(a,g,this,k,h)}catch(aa){if(k=aa===Ga?Ja():aa,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===B||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=L(a,g.model,g.keyPath,g.implicitSlot,a.abortableTasks); | ||
var C=n.ping;k.then(C,C);n.thenableState=La();g.keyPath=p;g.implicitSlot=t;n=h?"$L"+n.id.toString(16):S(n.id)}else if(g.keyPath=p,g.implicitSlot=t,h)a.pendingChunks++,p=a.nextChunkId++,t=N(a,k),O(a,p,t),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function S(a){return"$"+a.toString(16)}function ob(a,b,c){a=K(c);return b.toString(16)+":"+a+"\n"} | ||
function pb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===B&&"1"===c?"$L"+g.toString(16):S(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var t=h.lastIndexOf("#");-1!==t&&(g=h.slice(t+1),p=k[h.slice(0,t)]);if(!p)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks, | ||
g];a.pendingChunks++;var C=a.nextChunkId++,aa=K(n),Lb=C.toString(16)+":I"+aa+"\n";a.completedImportChunks.push(Lb);f.set(e,C);return b[0]===B&&"1"===c?"$L"+C.toString(16):S(C)}catch(Mb){return a.pendingChunks++,b=a.nextChunkId++,c=N(a,Mb),O(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);qb(a,b);return b.id}var U=!1; | ||
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(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);return mb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===v)return pb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(U===e)U=null;else return"$@"+ | ||
d.toString(16);a=gb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);if(Ua(e))return 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"+T(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"+T(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Fa&&e[Fa]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Va(e);if(a!==ab&&(null===a||null!==Va(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b= | ||
a.nextChunkId++,c="string"===typeof e?Buffer.byteLength(e,"utf8"):e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",a.completedRegularChunks.push(c,e),S(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return pb(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences, | ||
c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(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.'+ | ||
J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return S(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=ob(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+ | ||
" is not supported in Client Component props."+J(c,d));}function N(a,b){var c=M;M=null;try{var d=xa.run(void 0,a.onError,b)}finally{M=c}if(null!=d&&"string"!==typeof d)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d||""} | ||
function rb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function O(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";a.completedErrorChunks.push(b)}var R={}; | ||
function qb(a,b){if(0===b.status)try{U=b.model;var c=Q(a,b,R,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(h){var f=h===Ga?Ja():h;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=La()}else{a.abortableTasks.delete(b);b.status=4;var k=N(a,f);O(a,b.id,k)}}finally{}} | ||
function nb(a){var b=cb.current;cb.current=Qa;var c=M;F=M=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)qb(a,d[e]);null!==a.destination&&P(a,a.destination)}catch(f){N(a,f),rb(a,f)}finally{cb.current=b,F=null,M=c}} | ||
function P(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination= | ||
null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function sb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return xa.run(a,nb,a)})}function ib(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return P(a,b)})}} | ||
function tb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{P(a,b)}catch(c){N(a,c),rb(a,c)}}} | ||
function ub(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=N(a,e);O(a,d,f,e);c.forEach(function(g){g.status=3;var k=S(d);g=ob(a,g.id,k);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&P(a,a.destination)}catch(g){N(a,g),rb(a,g)}} | ||
function vb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var wb=new Map; | ||
function xb(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function yb(){} | ||
function zb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var f=wb.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var g=wb.set.bind(wb,e,null);f.then(g,yb);wb.set(e,f)}else null!==f&&c.push(f)}return 4===a.length?0===c.length?xb(a[0]):Promise.all(c).then(function(){return xb(a[0])}):0<c.length?Promise.all(c):null} | ||
function V(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function W(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}W.prototype=Object.create(Promise.prototype); | ||
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Ab(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Bb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)} | ||
function Cb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Bb(c,b)}}function Db(a,b,c,d,e,f){var g=vb(a._bundlerConfig,b);a=zb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=V(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return V(g)});else return V(g);c.then(Eb(d,e,f),Fb(d));return null}var X=null,Y=null; | ||
function Ab(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Gb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&Cb(c,b)})} | ||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new W("resolved_model",d,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),c.set(b,d));return d}function Eb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&Bb(e,d.value))}}function Fb(a){return function(b){return Cb(a,b)}} | ||
function Hb(a,b){a=Z(a,b);"resolved_model"===a.status&&Ab(a);if("fulfilled"!==a.status)throw a.reason;return a.value} | ||
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 "S":return Symbol.for(d.slice(2));case "F":return d=parseInt(d.slice(2),16),d=Hb(a,d),Db(a,d.id,d.bound,X,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Hb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Hb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length), | ||
g)});return f;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":Ab(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Eb(d,b,c),Fb(d)),null;default:throw a.reason;}}return d} | ||
function Jb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Ib(e,this,f,g):g},_closed:!1,_closedReason:null};return e} | ||
function Kb(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(Ab(b),b.status){case "fulfilled":Bb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Bb(a,b.reason)}}function Nb(a){Gb(a,Error("Connection closed."))} | ||
function Ob(a,b,c){var d=vb(a,b);a=zb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=V(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}function Pb(a,b,c){a=Jb(b,c,a);Nb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Qb(a,b){return function(){return tb(b,a)}}function Rb(a,b){return function(){a.destination=null;ub(a,Error(b))}} | ||
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Pb(a,b,e),d=Ob(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Ob(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})}; | ||
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Pb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Jb(b,"",a);b=Z(a,0);Nb(a);return b}; | ||
exports.decodeReplyFromBusboy=function(a,b){var c=Jb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Kb(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=k.mimeType;if("base64"===k.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");d++;var t=[];g.on("data",function(n){t.push(n)});g.on("end",function(){var n= | ||
new Blob(t,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Kb(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Nb(c)});a.on("error",function(f){Gb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})}; | ||
exports.renderToPipeableStream=function(a,b,c){var d=fb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;sb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;tb(d,f);f.on("drain",Qb(f,d));f.on("error",Rb(d,"The destination stream errored while writing data."));f.on("close",Rb(d,"The destination stream closed early."));return f},abort:function(f){ub(d,f)}}}; | ||
//# sourceMappingURL=react-server-dom-webpack-server.node.production.min.js.map |
@@ -1,67 +0,79 @@ | ||
/** | ||
* @license React | ||
* react-server-dom-webpack-server.node.unbundled.production.min.js | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var aa=require("async_hooks"),ba=require("util"),ca=require("react"),da=require("react-dom"),l=null,m=0,p=!0;function r(a,b){a=a.write(b);p=p&&a} | ||
function t(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,v.encode(b));else{var d=l;0<m&&(d=l.subarray(m));d=v.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=v.encodeInto(b.slice(c),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(d=l.length-m,d<b.byteLength&& | ||
(0===d?r(a,l):(l.set(b.subarray(0,d),m),m+=d,r(a,l),b=b.subarray(d)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return p}var v=new ba.TextEncoder,w=JSON.stringify;function ea(a,b,d){a=w(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function fa(a,b,d){a=w(d);return b.toString(16)+":"+a+"\n"}var x=Symbol.for("react.client.reference"),ha=Symbol.for("react.server.reference"),ma={prefetchDNS:ia,preconnect:ja,preload:ka,preinit:la}; | ||
function ia(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?B(d,"D",[a,b]):B(d,"D",a),C(d))}}}function ja(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?B(d,"C",[a,b]):B(d,"C",a),C(d))}}} | ||
function ka(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),B(d,"L",[a,b]),C(d))}}}function la(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),B(d,"I",[a,b]),C(d))}}} | ||
var oa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,pa=new aa.AsyncLocalStorage,D=Symbol.for("react.element"),qa=Symbol.for("react.fragment"),ra=Symbol.for("react.provider"),sa=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),wa=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),xa=Symbol.for("react.default_value"),ya=Symbol.for("react.memo_cache_sentinel"),za=Symbol.iterator,F=null; | ||
function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,d);b.context._currentValue=b.value}}}function Aa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Aa(a)} | ||
function Ba(a){var b=a.parent;null!==b&&Ba(b);a.context._currentValue=a.value}function Ca(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?G(a,b):Ca(a,b)} | ||
function Da(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?G(a,d):Da(a,d);b.context._currentValue=b.value}function Ea(a){var b=F;b!==a&&(null===b?Ba(a):null===a?Aa(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Ca(b,a):Da(b,a),F=a)}function Fa(a,b){var d=a._currentValue;a._currentValue=b;var c=F;return F=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ga=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"); | ||
function Ha(){}function Ia(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ha,Ha),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}H=b;throw Ga;}}var H=null; | ||
function Ja(){if(null===H)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=H;H=null;return a}var I=null,J=0,K=null;function Ka(){var a=K;K=null;return a}function La(a){return a._currentValue} | ||
var Pa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:La,useContext:La,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ma,useMutableSource:L,useSyncExternalStore:L,useCacheRefresh:function(){return Na},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=ya;return b},use:Oa}; | ||
function L(){throw Error("This Hook is not supported in Server Components.");}function Na(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ma(){if(null===I)throw Error("useId can only be used while React is rendering");var a=I.identifierCount++;return":"+I.identifierPrefix+"S"+a.toString(32)+":"} | ||
function Oa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=J;J+=1;null===K&&(K=[]);return Ia(K,a,b)}if(a.$$typeof===sa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Qa(){return(new AbortController).signal}function Ra(){var a=y();return a?a.cache:new Map} | ||
var Sa={getCacheSignal:function(){var a=Ra(),b=a.get(Qa);void 0===b&&(b=Qa(),a.set(Qa,b));return b},getCacheForType:function(a){var b=Ra(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ta=Array.isArray;function Ua(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})} | ||
function Va(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ta(a))return"[...]";a=Ua(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 ua:return"Suspense";case va:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ta:return M(a.render);case wa:return M(a.type);case E:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""} | ||
function N(a,b){var d=Ua(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ta(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?N(g):Va(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===D)e="<"+M(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h="object"===typeof h&&null!==h?N(h): | ||
Va(h);k===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Wa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xa=Wa.ContextRegistry,Ya=Wa.ReactCurrentDispatcher,Za=Wa.ReactCurrentCache;function $a(a){console.error(a)} | ||
function ab(a,b,d,c,e){if(null!==Za.current&&Za.current!==Sa)throw Error("Currently React only supports one RSC renderer at a time.");oa.current=ma;Za.current=Sa;var f=new Set,g=[],k=new Set,h={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?$a:d,toJSON:function(q,u){return bb(h,this,q,u)}};h.pendingChunks++;b=cb(c);a=db(h,a,b,f);g.push(a);return h}var O=null;function y(){if(O)return O;var a=pa.getStore();return a?a:null}var eb={}; | ||
function fb(a,b){a.pendingChunks++;var d=db(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,gb(a,d),d.id;case "rejected":var c=P(a,b.reason);Q(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;gb(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);null!==a.destination&& | ||
R(a,a.destination)});return d.id}function hb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function ib(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:E,_payload:a,_init:hb}} | ||
function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[D,b,d,e];J=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:ib(e):e}if("string"===typeof b)return[D,b,d,e];if("symbol"===typeof b)return b===qa?e.children:[D,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[D,b,d,e];switch(b.$$typeof){case E:var g= | ||
b._init;b=g(b._payload);return S(a,b,d,c,e,f);case ta:return a=b.render,J=0,K=f,a(e,void 0);case wa:return S(a,b.type,d,c,e,f);case ra:return Fa(b._context,e.value),[D,b,d,{value:e.value,children:e.children,__pop:eb}]}}throw Error("Unsupported Server Component type: "+Va(b));}function gb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return jb(a)}))} | ||
function db(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return gb(a,e)},thenableState:null};c.add(e);return e} | ||
function kb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===D&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var k=a.bundlerConfig,h=c.$$id;g="";var q=k[h];if(q)g=q.name;else{var u=h.lastIndexOf("#");-1!==u&&(g=h.slice(u+1),q=k[h.slice(0,u)]);if(!q)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n={id:q.id,chunks:q.chunks,name:g, | ||
async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,na=w(n);var A=z.toString(16)+":I"+na+"\n";a.completedImportChunks.push(A);f.set(e,z);return b[0]===D&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(yb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,yb),Q(a,b,d),"$"+b.toString(16)}} | ||
function bb(a,b,d,c){switch(c){case D:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===D||c.$$typeof===E);)try{switch(c.$$typeof){case D:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case E:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ga?Ja():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=db(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ka(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+ | ||
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===x)return kb(a,b,d,c);if("function"===typeof c.then)return"$@"+fb(a,c).toString(16);if(c.$$typeof===ra)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=fa(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===eb){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue; | ||
a.context._currentValue=c===xa?a.context._defaultValue:c;F=a.parent;return}return!Ta(c)&&(null===c||"object"!==typeof c?a=null:(a=za&&c[za]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"=== | ||
typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===x)return kb(a,b,d,c);if(c.$$typeof===ha)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component."); | ||
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b= | ||
fa(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));} | ||
function P(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function lb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)} | ||
function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+w(d)+"\n";a.completedErrorChunks.push(b)}function B(a,b,d){var c=a.nextChunkId++;d=w(d);b="H"+b;c=c.toString(16)+":"+b;a.completedHintChunks.push(c+d+"\n")} | ||
function jb(a){var b=Ya.current;Ya.current=Pa;var d=O;I=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){Ea(f.context);try{var k=f.model;if("object"===typeof k&&null!==k&&k.$$typeof===D){var h=k,q=f.thenableState;f.model=k;k=S(g,h.type,h.key,h.ref,h.props,q);for(f.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===D;)h=k,f.model=k,k=S(g,h.type,h.key,h.ref,h.props,null)}var u=ea(g,f.id,k);g.completedJSONChunks.push(u);g.abortableTasks.delete(f); | ||
f.status=1}catch(A){var n=A===Ga?Ja():A;if("object"===typeof n&&null!==n&&"function"===typeof n.then){var z=f.ping;n.then(z,z);f.thenableState=Ka()}else{g.abortableTasks.delete(f);f.status=4;var na=P(g,n);Q(g,f.id,na)}}}}null!==a.destination&&R(a,a.destination)}catch(A){P(a,A),lb(a,A)}finally{Ya.current=b,I=null,O=d}} | ||
function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!t(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!t(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!t(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!t(b,g[c])){a.destination= | ||
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,p=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function mb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return pa.run(a,jb,a)})}function C(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return R(a,b)})}} | ||
function nb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{R(a,b)}catch(d){P(a,d),lb(a,d)}}} | ||
function ob(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=fa(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),lb(a,f)}} | ||
function cb(a){if(a){var b=F;Ea(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Xa[e]||(Xa[e]=ca.createServerContext(e,xa));Fa(Xa[e],c)}a=F;Ea(b);return a}return null}function pb(a,b){var d=b.lastIndexOf("#");a=b.slice(0,d);b=b.slice(d+1);return{specifier:a,name:b}}var qb=new Map; | ||
function rb(a){var b=qb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var d=import(a.specifier);d.then(function(c){d.status="fulfilled";d.value=c},function(c){d.status="rejected";d.reason=c});qb.set(a.specifier,d);return d}function T(a){var b=qb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]}function U(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}U.prototype=Object.create(Promise.prototype); | ||
U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function W(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)} | ||
function sb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function tb(a,b,d,c,e,f){var g=pb(a._bundlerConfig,b);a=rb(g);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var h=T(g);return h.bind.apply(h,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return T(g)});else return T(g);d.then(ub(c,e,f),vb(c));return null}var X=null,Y=null; | ||
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function wb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&sb(d,b)})} | ||
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new U("resolved_model",c,null,a):new U("pending",null,null,a),d.set(b,c));return c}function ub(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function vb(a){return function(b){return sb(a,b)}} | ||
function xb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return tb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"=== | ||
c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(ub(c,b,d),vb(c)),null;default:throw a.reason;}}return c} | ||
function zb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?xb(e,this,f,g):g}};return e} | ||
function Ab(a,b,d){a._formData.append(b,d);var c=a._prefix;if(b.startsWith(c)&&(a=a._chunks,b=+b.slice(c.length),(b=a.get(b))&&"pending"===b.status&&(c=b.value,a=b.reason,b.status="resolved_model",b.value=d,null!==c)))switch(V(b),b.status){case "fulfilled":W(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&W(a,b.reason)}}function Bb(a){wb(a,Error("Connection closed."))} | ||
function Cb(a,b,d){var c=pb(a,b);a=rb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=T(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return T(c)}):Promise.resolve(T(c))}function Db(a,b){return function(){return nb(b,a)}} | ||
exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=zb(b,e,a);Bb(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Cb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Cb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})}; | ||
exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=zb(b,"",a);Bb(a);return Z(a,0)}; | ||
exports.decodeReplyFromBusboy=function(a,b){var d=zb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Ab(d,f,g)});a.on("file",function(f,g,k){var h=k.filename,q=k.mimeType;if("base64"===k.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");c++;var u=[];g.on("data",function(n){u.push(n)});g.on("end",function(){var n= | ||
new Blob(u,{type:q});d._formData.append(f,n,h);c--;if(0===c){for(n=0;n<e.length;n+=2)Ab(d,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Bb(d)});a.on("error",function(f){wb(d,f)});return Z(d,0)}; | ||
exports.renderToPipeableStream=function(a,b,d){var c=ab(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0),e=!1;mb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;nb(c,f);f.on("drain",Db(f,c));return f},abort:function(f){ob(c,f)}}}; | ||
/* | ||
React | ||
react-server-dom-webpack-server.node.unbundled.production.min.js | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
'use strict';var ba=require("util");require("crypto");var ca=require("async_hooks"),da=require("react"),ea=require("react-dom"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a} | ||
function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(c=l.length-m,c<b.byteLength&& | ||
(0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new ba.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice; | ||
function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a} | ||
var ka=Promise.prototype,la={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."); | ||
}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.");}}; | ||
function ma(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=x(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."); | ||
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=x({},a.$$id,!0),e=new Proxy(d,na);a.status="fulfilled";a.value=e;return a.then=x(function(f){return Promise.resolve(f(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=x(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."); | ||
},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,la));return d} | ||
var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ma(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ka},set:function(){throw Error("Cannot assign to a client module from a server module.");}},va={prefetchDNS:oa,preconnect:pa,preload:qa,preloadModule:ra,preinitStyle:sa,preinitScript:ta,preinitModuleScript:ua}; | ||
function oa(a){if("string"===typeof a&&a){var b=y();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),z(b,"D",a))}}}function pa(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?z(c,"C",[a,b]):z(c,"C",a))}}} | ||
function qa(a,b,c){if("string"===typeof a){var d=y();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,k=c.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=A(c))?z(d,"L",[a,b,c]):z(d,"L",[a,b]))}}}function ra(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=A(b))?z(c,"m",[a,b]):z(c,"m",a)}}} | ||
function sa(a,b,c){if("string"===typeof a){var d=y();if(d){var e=d.hints,f="S|"+a;if(!e.has(f))return e.add(f),(c=A(c))?z(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?z(d,"S",[a,b]):z(d,"S",a)}}}function ta(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=A(b))?z(c,"X",[a,b]):z(c,"X",a)}}}function ua(a,b){if("string"===typeof a){var c=y();if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=A(b))?z(c,"M",[a,b]):z(c,"M",a)}}} | ||
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}var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,xa=new ca.AsyncLocalStorage,B=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel"); | ||
Symbol.for("react.postpone");var Fa=Symbol.iterator,Ga=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");function Ha(){} | ||
function Ia(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ha,Ha),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Ga;}}var E=null; | ||
function Ja(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Ka=0,G=null;function La(){var a=G||[];G=null;return a} | ||
var Qa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Ma,useContext:Ma,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Na,useSyncExternalStore:H,useCacheRefresh:function(){return Oa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ea;return b},use:Pa}; | ||
function H(){throw Error("This Hook is not supported in Server Components.");}function Oa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ma(){throw Error("Cannot read a Client Context from a Server Component.");}function Na(){if(null===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"} | ||
function Pa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ka;Ka+=1;null===G&&(G=[]);return Ia(G,a,b)}a.$$typeof===za&&Ma()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===za)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Ra(){return(new AbortController).signal} | ||
function Sa(){var a=y();return a?a.cache:new Map}var Ta={getCacheSignal:function(){var a=Sa(),b=a.get(Ra);void 0===b&&(b=Ra(),a.set(Ra,b));return b},getCacheForType:function(a){var b=Sa(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ua=Array.isArray,Va=Object.getPrototypeOf;function Wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})} | ||
function Xa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ua(a))return"[...]";if(null!==a&&a.$$typeof===Ya)return"client";a=Wa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Ya?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}} | ||
function I(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return I(a.render);case Da:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Ya=Symbol.for("react.client.reference"); | ||
function J(a,b){var c=Wa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ua(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?J(g):Xa(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Ya)return"client";e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h= | ||
"object"===typeof h&&null!==h?J(h):Xa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Za=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$a=da.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
if(!$a)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.');var ab=Object.prototype,K=JSON.stringify,bb=$a.ReactCurrentCache,cb=Za.ReactCurrentDispatcher;function db(a){console.error(a)}function eb(){} | ||
function fb(a,b,c,d,e){if(null!==bb.current&&bb.current!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");wa.current=va;bb.current=Ta;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, | ||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?db:c,onPostpone:void 0===e?eb:e};a=L(b,a,null,!1,f);g.push(a);return b}var M=null;function y(){if(M)return M;var a=xa.getStore();return a?a:null} | ||
function gb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,hb(a,d),d.id;case "rejected":return b=N(a,c.reason),O(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;hb(a,d)},function(e){d.status=4;e=N(a,e);O(a,d.id,e);a.abortableTasks.delete(d); | ||
null!==a.destination&&P(a,a.destination)});return d.id}function z(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");ib(a)}function jb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;} | ||
function kb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:jb}} | ||
function lb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;Ka=0;G=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=kb(d)}e=b.keyPath;f=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=f;return a} | ||
function mb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v?[B,c,d,f]:lb(a,b,d,c,f);if("string"===typeof c)return[B,c,d,f];if("symbol"===typeof c)return c===ya&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",f.children),b.implicitSlot=d,a):[B,c,d,f];if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return[B,c,d,f];switch(c.$$typeof){case D:var g= | ||
c._init;c=g(c._payload);return mb(a,b,c,d,e,f);case Aa:return lb(a,b,d,c.render,f);case Da:return mb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Xa(c));}function hb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return nb(a)}))} | ||
function L(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return hb(a,g)},toJSON:function(k,h){var p=g.keyPath,t=g.implicitSlot;try{var n=Q(a,g,this,k,h)}catch(aa){if(k=aa===Ga?Ja():aa,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===B||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=L(a,g.model,g.keyPath,g.implicitSlot,a.abortableTasks); | ||
var C=n.ping;k.then(C,C);n.thenableState=La();g.keyPath=p;g.implicitSlot=t;n=h?"$L"+n.id.toString(16):S(n.id)}else if(g.keyPath=p,g.implicitSlot=t,h)a.pendingChunks++,p=a.nextChunkId++,t=N(a,k),O(a,p,t),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function S(a){return"$"+a.toString(16)}function ob(a,b,c){a=K(c);return b.toString(16)+":"+a+"\n"} | ||
function pb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===B&&"1"===c?"$L"+g.toString(16):S(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var t=h.lastIndexOf("#");-1!==t&&(g=h.slice(t+1),p=k[h.slice(0,t)]);if(!p)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks, | ||
g];a.pendingChunks++;var C=a.nextChunkId++,aa=K(n),Kb=C.toString(16)+":I"+aa+"\n";a.completedImportChunks.push(Kb);f.set(e,C);return b[0]===B&&"1"===c?"$L"+C.toString(16):S(C)}catch(Lb){return a.pendingChunks++,b=a.nextChunkId++,c=N(a,Lb),O(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);qb(a,b);return b.id}var U=!1; | ||
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(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);return mb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===v)return pb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(U===e)U=null;else return"$@"+ | ||
d.toString(16);a=gb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);if(Ua(e))return 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"+T(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"+T(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Fa&&e[Fa]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Va(e);if(a!==ab&&(null===a||null!==Va(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b= | ||
a.nextChunkId++,c="string"===typeof e?Buffer.byteLength(e,"utf8"):e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",a.completedRegularChunks.push(c,e),S(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return pb(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences, | ||
c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(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.'+ | ||
J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return S(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=ob(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+ | ||
" is not supported in Client Component props."+J(c,d));}function N(a,b){var c=M;M=null;try{var d=xa.run(void 0,a.onError,b)}finally{M=c}if(null!=d&&"string"!==typeof d)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d||""} | ||
function rb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function O(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";a.completedErrorChunks.push(b)}var R={}; | ||
function qb(a,b){if(0===b.status)try{U=b.model;var c=Q(a,b,R,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(h){var f=h===Ga?Ja():h;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=La()}else{a.abortableTasks.delete(b);b.status=4;var k=N(a,f);O(a,b.id,k)}}finally{}} | ||
function nb(a){var b=cb.current;cb.current=Qa;var c=M;F=M=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)qb(a,d[e]);null!==a.destination&&P(a,a.destination)}catch(f){N(a,f),rb(a,f)}finally{cb.current=b,F=null,M=c}} | ||
function P(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination= | ||
null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function sb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return xa.run(a,nb,a)})}function ib(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return P(a,b)})}} | ||
function tb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{P(a,b)}catch(c){N(a,c),rb(a,c)}}} | ||
function ub(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=N(a,e);O(a,d,f,e);c.forEach(function(g){g.status=3;var k=S(d);g=ob(a,g.id,k);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&P(a,a.destination)}catch(g){N(a,g),rb(a,g)}}function vb(a,b){var c=b.lastIndexOf("#");a=b.slice(0,c);b=b.slice(c+1);return{specifier:a,name:b}}var wb=new Map; | ||
function xb(a){var b=wb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);a.async&&(c=c.then(function(d){return d.default}));c.then(function(d){var e=c;e.status="fulfilled";e.value=d},function(d){var e=c;e.status="rejected";e.reason=d});wb.set(a.specifier,c);return c}function V(a){var b=wb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]} | ||
function W(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}W.prototype=Object.create(Promise.prototype);W.prototype.then=function(a,b){switch(this.status){case "resolved_model":yb(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 zb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)} | ||
function Ab(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&zb(c,b)}}function Bb(a,b,c,d,e,f){var g=vb(a._bundlerConfig,b);a=xb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=V(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return V(g)});else return V(g);c.then(Cb(d,e,f),Db(d));return null}var X=null,Y=null; | ||
function yb(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 Eb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&Ab(c,b)})} | ||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new W("resolved_model",d,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),c.set(b,d));return d}function Cb(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&&zb(e,d.value))}}function Db(a){return function(b){return Ab(a,b)}} | ||
function Fb(a,b){a=Z(a,b);"resolved_model"===a.status&&yb(a);if("fulfilled"!==a.status)throw a.reason;return a.value} | ||
function Gb(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 "S":return Symbol.for(d.slice(2));case "F":return d=parseInt(d.slice(2),16),d=Fb(a,d),Bb(a,d.id,d.bound,X,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Fb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Fb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length), | ||
g)});return f;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":yb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Cb(d,b,c),Db(d)),null;default:throw a.reason;}}return d} | ||
function Hb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Gb(e,this,f,g):g},_closed:!1,_closedReason:null};return e} | ||
function Ib(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(yb(b),b.status){case "fulfilled":zb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&zb(a,b.reason)}}function Jb(a){Eb(a,Error("Connection closed."))} | ||
function Mb(a,b,c){var d=vb(a,b);a=xb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=V(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}function Nb(a,b,c){a=Hb(b,c,a);Jb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Ob(a,b){return function(){return tb(b,a)}}function Pb(a,b){return function(){a.destination=null;ub(a,Error(b))}} | ||
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Nb(a,b,e),d=Mb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Mb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})}; | ||
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Nb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Hb(b,"",a);b=Z(a,0);Jb(a);return b}; | ||
exports.decodeReplyFromBusboy=function(a,b){var c=Hb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Ib(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=k.mimeType;if("base64"===k.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");d++;var t=[];g.on("data",function(n){t.push(n)});g.on("end",function(){var n= | ||
new Blob(t,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Ib(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Jb(c)});a.on("error",function(f){Eb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})}; | ||
exports.renderToPipeableStream=function(a,b,c){var d=fb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;sb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;tb(d,f);f.on("drain",Ob(f,d));f.on("error",Pb(d,"The destination stream errored while writing data."));f.on("close",Pb(d,"The destination stream closed early."));return f},abort:function(f){ub(d,f)}}}; | ||
//# sourceMappingURL=react-server-dom-webpack-server.node.unbundled.production.min.js.map |
@@ -135,3 +135,8 @@ /** | ||
if (localNames.size === 0) { | ||
return source; | ||
} | ||
let newSrc = source + '\n\n;'; | ||
newSrc += 'import {registerServerReference} from "react-server-dom-webpack/server";\n'; | ||
localNames.forEach(function (exported, local) { | ||
@@ -143,7 +148,5 @@ if (localTypes.get(local) !== 'function') { | ||
newSrc += 'Object.defineProperties(' + local + ',{'; | ||
newSrc += '$$typeof: {value: Symbol.for("react.server.reference")},'; | ||
newSrc += '$$id: {value: ' + JSON.stringify(url + '#' + exported) + '},'; | ||
newSrc += '$$bound: { value: null }'; | ||
newSrc += '});\n'; | ||
newSrc += 'registerServerReference(' + local + ','; | ||
newSrc += JSON.stringify(url) + ','; | ||
newSrc += JSON.stringify(exported) + ');\n'; | ||
}); | ||
@@ -282,4 +285,9 @@ return newSrc; | ||
await parseExportNamesInto(body, names, url, loader); | ||
let newSrc = "const CLIENT_REFERENCE = Symbol.for('react.client.reference');\n"; | ||
if (names.length === 0) { | ||
return ''; | ||
} | ||
let newSrc = 'import {registerClientReference} from "react-server-dom-webpack/server";\n'; | ||
for (let i = 0; i < names.length; i++) { | ||
@@ -290,14 +298,13 @@ const name = names[i]; | ||
newSrc += 'export default '; | ||
newSrc += 'Object.defineProperties(function() {'; | ||
newSrc += 'registerClientReference(function() {'; | ||
newSrc += 'throw new Error(' + JSON.stringify("Attempted to call the default export of " + url + " 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.") + ');'; | ||
} else { | ||
newSrc += 'export const ' + name + ' = '; | ||
newSrc += 'Object.defineProperties(function() {'; | ||
newSrc += 'registerClientReference(function() {'; | ||
newSrc += 'throw new Error(' + JSON.stringify("Attempted to call " + name + "() from the server but " + name + " 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.") + ');'; | ||
} | ||
newSrc += '},{'; | ||
newSrc += '$$typeof: {value: CLIENT_REFERENCE},'; | ||
newSrc += '$$id: {value: ' + JSON.stringify(url + '#' + name) + '}'; | ||
newSrc += '});\n'; | ||
newSrc += '},'; | ||
newSrc += JSON.stringify(url) + ','; | ||
newSrc += JSON.stringify(name) + ');\n'; | ||
} | ||
@@ -304,0 +311,0 @@ |
{ | ||
"name": "react-server-dom-webpack", | ||
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.", | ||
"version": "18.3.0-canary-16d053d59-20230506", | ||
"version": "18.3.0-canary-178c267a4e-20241218", | ||
"keywords": [ | ||
@@ -36,3 +36,2 @@ "react" | ||
"workerd": "./client.edge.js", | ||
"edge-light": "./client.edge.js", | ||
"deno": "./client.edge.js", | ||
@@ -44,2 +43,3 @@ "worker": "./client.edge.js", | ||
}, | ||
"edge-light": "./client.edge.js", | ||
"browser": "./client.browser.js", | ||
@@ -55,3 +55,2 @@ "default": "./client.browser.js" | ||
"workerd": "./server.edge.js", | ||
"edge-light": "./server.edge.js", | ||
"deno": "./server.browser.js", | ||
@@ -62,2 +61,3 @@ "node": { | ||
}, | ||
"edge-light": "./server.edge.js", | ||
"browser": "./server.browser.js" | ||
@@ -85,4 +85,4 @@ }, | ||
"peerDependencies": { | ||
"react": "18.3.0-canary-16d053d59-20230506", | ||
"react-dom": "18.3.0-canary-16d053d59-20230506", | ||
"react": "18.3.0-canary-178c267a4e-20241218", | ||
"react-dom": "18.3.0-canary-178c267a4e-20241218", | ||
"webpack": "^5.59.0" | ||
@@ -89,0 +89,0 @@ }, |
@@ -10,23 +10,24 @@ /** | ||
*/ | ||
(function(){'use strict';(function(m,t){"object"===typeof exports&&"undefined"!==typeof module?t(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],t):(m="undefined"!==typeof globalThis?globalThis:m||self,t(m.ReactServerDOMClient={},m.ReactDOM,m.React))})(this,function(m,t,H){function S(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.'); | ||
c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}function T(){}function U(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],f=v.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var k=v.set.bind(v,e,null);f.then(k,T);v.set(e,f)}else null!==f&&c.push(f)}if(a.async){if(b=D.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(c).then(function(){return __webpack_require__(a.id)});h.then(function(l){h.status="fulfilled";h.value=l},function(l){h.status= | ||
"rejected";h.reason=l});D.set(a.id,h);return h}return 0<c.length?Promise.all(c):null}function V(a){if(null===a||"object"!==typeof a)return null;a=I&&a[I]||a["@@iterator"];return"function"===typeof a?a:null}function W(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function J(a,b,c,d){function e(l,g){if(null===g)return null;if("object"===typeof g){if("function"===typeof g.then){null===h&&(h=new FormData);k++;var K=f++;g.then(function(p){p= | ||
JSON.stringify(p,e);var w=h;w.append(b+K,p);k--;0===k&&c(w)},function(p){d(p)});return"$@"+K.toString(16)}if(g instanceof FormData){null===h&&(h=new FormData);var X=h;l=f++;var Y=b+l+"_";g.forEach(function(p,w){X.append(Y+w,p)});return"$K"+l.toString(16)}return!Z(g)&&V(g)?Array.from(g):g}if("string"===typeof g){if("Z"===g[g.length-1]&&this[l]instanceof Date)return"$D"+g;g="$"===g[0]?"$"+g:g;return g}if("boolean"===typeof g)return g;if("number"===typeof g)return W(g);if("undefined"===typeof g)return"$undefined"; | ||
if("function"===typeof g){g=x.get(g);if(void 0!==g)return g=JSON.stringify(g,e),null===h&&(h=new FormData),l=f++,h.set(b+l,g),"$F"+l.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof g){l=g.description;if(Symbol.for(l)!==g)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(g.description+") cannot be found among global symbols.")); | ||
return"$S"+l}if("bigint"===typeof g)return"$n"+g.toString(10);throw Error("Type "+typeof g+" is not supported as an argument to a Server Function.");}var f=1,k=0,h=null;a=JSON.stringify(a,e);null===h?c(a):(h.set(b+"0",a),0===k&&c(h))}function aa(a){var b,c,d=new Promise(function(e,f){b=e;c=f});J(a,"",function(e){if("string"===typeof e){var f=new FormData;f.append("0",e);e=f}d.status="fulfilled";d.value=e;b(e)},function(e){d.status="rejected";d.reason=e;c(e)});return d}function L(a){var b=x.get(this); | ||
if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=M.get(b);c||(c=aa(b),M.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(e,f){d.append("$ACTION_"+a+":"+f,e)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}function q(a,b,c,d){this.status= | ||
a;this.value=b;this.reason=c;this._response=d}function ba(a){switch(a.status){case "resolved_model":u(a);break;case "resolved_module":y(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function z(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function N(a,b,c){switch(a.status){case "fulfilled":z(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&z(c,a.reason)}}function A(a,b){if("pending"===a.status|| | ||
"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&z(c,b)}}function O(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(y(a),N(a,c,d))}}function u(a){var b=B,c=n;B=a;n=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==n&&0<n.deps?(n.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{B=b,n=c}}function y(a){try{var b= | ||
a.value;if(b.async){var c=D.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}function C(a,b){a._chunks.forEach(function(c){"pending"===c.status&&A(c,b)})}function r(a,b){var c=a._chunks,d=c.get(b);d||(d=new q("pending",null,null,a),c.set(b,d));return d}function ca(a,b,c){if(n){var d=n;d.deps++}else d=n={deps:1, | ||
value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&z(e,d.value))}}function da(a){return function(b){return A(a,b)}}function ea(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?c(b.id,e.value.concat(d)):Promise.resolve(e).then(function(f){return c(b.id,f.concat(d))}):c(b.id,d)};a.$$FORM_ACTION=L;x.set(a,b);return a}function fa(a,b,c,d){if("$"=== | ||
d[0]){if("$"===d)return E;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=r(a,b),{$$typeof:ha,_payload:a,_init:ba};case "@":return b=parseInt(d.slice(2),16),r(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),F[a]||(F[a]=H.createServerContext(a,ia)),F[a].Provider;case "F":b=parseInt(d.slice(2),16);b=r(a,b);switch(b.status){case "resolved_model":u(b)}switch(b.status){case "fulfilled":return ea(a,b.value);default:throw b.reason;}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));default:d=parseInt(d.slice(1),16);a=r(a,d);switch(a.status){case "resolved_model":u(a);break;case "resolved_module":y(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=B,a.then(ca(d,b,c),da(d)),null;default:throw a.reason;}}}return d}function ja(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'); | ||
}function ka(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=S(a._bundlerConfig,c);if(c=U(f)){if(e){var k=e;k.status="blocked"}else k=new q("blocked",null,null,a),d.set(b,k);c.then(function(){return O(k,f)},function(h){return A(k,h)})}else e?O(e,f):d.set(b,new q("resolved_module",f,null,a))}function P(a){C(a,Error("Connection closed."))}function Q(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":ka(a,d,b.slice(c+2));break;case "H":d=b[c+ | ||
2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=la.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."); | ||
e.stack="Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?A(c,e):b.set(d,new q("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(u(b),N(b,a,d))):c.set(d,new q("resolved_model",e,null,a))}}}function ma(a){return function(b,c){return"string"===typeof c?fa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===E?{$$typeof:E,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}} | ||
function G(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:ja,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=ma(a);return a}function R(a,b){function c(f){var k=f.value;if(f.done)P(a);else{f=k;k=a._stringDecoder;for(var h=f.indexOf(10);-1<h;){var l=a._partialRow;var g=f.subarray(0,h);g=k.decode(g);Q(a,l+g);a._partialRow="";f=f.subarray(h+1);h=f.indexOf(10)}a._partialRow+=k.decode(f,na);return e.read().then(c).catch(d)}} | ||
function d(f){C(a,f)}var e=b.getReader();e.read().then(c).catch(d)}var na={stream:!0},v=new Map,D=new Map,la=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,E=Symbol.for("react.element"),ha=Symbol.for("react.lazy"),ia=Symbol.for("react.default_value"),I=Symbol.iterator,Z=Array.isArray,x=new WeakMap,M=new WeakMap,F=H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;q.prototype=Object.create(Promise.prototype);q.prototype.then=function(a,b){switch(this.status){case "resolved_model":u(this); | ||
break;case "resolved_module":y(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)}};var B=null,n=null;m.createFromFetch=function(a,b){var c=G(b);a.then(function(d){R(c,d.body)},function(d){C(c,d)});return r(c,0)};m.createFromReadableStream=function(a,b){b=G(b);R(b,a);return r(b,0)};m.createFromXHR=function(a, | ||
b){function c(k){k=a.responseText;for(var h=f,l=k.indexOf("\n",h);-1<l;)h=e._partialRow+k.slice(h,l),Q(e,h),e._partialRow="",h=l+1,l=k.indexOf("\n",h);e._partialRow+=k.slice(h);f=k.length}function d(k){C(e,new TypeError("Network error"))}var e=G(b),f=0;a.addEventListener("progress",c);a.addEventListener("load",function(k){c();P(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return r(e,0)};m.createServerReference=function(a,b){var c=function(){var d= | ||
Array.prototype.slice.call(arguments);return b(a,d)};c.$$FORM_ACTION=L;x.set(c,{id:a,bound:null});return c};m.encodeReply=function(a){return new Promise(function(b,c){J(a,"",b,c)})}}); | ||
})(); | ||
'use strict';(function(){(function(r,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports,require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react-dom"],w):(r="undefined"!==typeof globalThis?globalThis:r||self,w(r.ReactServerDOMClient={},r.ReactDOM))})(this,function(r,w){function S(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.'); | ||
c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}function J(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 T(){}function U(a){for(var b=a[1],c=[],e=0;e<b.length;){var k=b[e++],l=b[e++],n=z.get(k);void 0===n?(K.set(k,l),l=__webpack_chunk_load__(k),c.push(l),n=z.set.bind(z,k,null),l.then(n,T),z.set(k,l)):null!== | ||
n&&c.push(n)}return 4===a.length?0===c.length?J(a[0]):Promise.all(c).then(function(){return J(a[0])}):0<c.length?Promise.all(c):null}function V(a){if(null===a||"object"!==typeof a)return null;a=L&&a[L]||a["@@iterator"];return"function"===typeof a?a:null}function W(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function X(a,b,c,e){function k(m,d){if(null===d)return null;if("object"===typeof d){if("function"===typeof d.then){null=== | ||
g&&(g=new FormData);n++;var h=l++;d.then(function(p){p=JSON.stringify(p,k);var q=g;q.append(b+h,p);n--;0===n&&c(q)},function(p){e(p)});return"$@"+h.toString(16)}if(Y(d))return d;if(d instanceof FormData){null===g&&(g=new FormData);var f=g;m=l++;var D=b+m+"_";d.forEach(function(p,q){f.append(D+q,p)});return"$K"+m.toString(16)}if(d instanceof Map)return d=JSON.stringify(Array.from(d),k),null===g&&(g=new FormData),m=l++,g.append(b+m,d),"$Q"+m.toString(16);if(d instanceof Set)return d=JSON.stringify(Array.from(d), | ||
k),null===g&&(g=new FormData),m=l++,g.append(b+m,d),"$W"+m.toString(16);if(V(d))return Array.from(d);m=M(d);if(m!==Z&&(null===m||null!==M(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return d}if("string"===typeof d){if("Z"===d[d.length-1]&&this[m]instanceof Date)return"$D"+d;d="$"===d[0]?"$"+d:d;return d}if("boolean"===typeof d)return d;if("number"===typeof d)return W(d);if("undefined"===typeof d)return"$undefined"; | ||
if("function"===typeof d){d=E.get(d);if(void 0!==d)return d=JSON.stringify(d,k),null===g&&(g=new FormData),m=l++,g.set(b+m,d),"$F"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof d){m=d.description;if(Symbol.for(m)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")); | ||
return"$S"+m}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+" is not supported as an argument to a Server Function.");}var l=1,n=0,g=null;a=JSON.stringify(a,k);null===g?c(a):(g.set(b+"0",a),0===n&&c(g))}function aa(a,b,c){E.set(a,b)}function u(a,b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}function ba(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a; | ||
default:throw a.reason;}}function y(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function N(a,b,c){switch(a.status){case "fulfilled":y(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&y(c,a.reason)}}function B(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&y(c,b)}}function O(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,e=a.reason;a.status="resolved_module";a.value= | ||
b;null!==c&&(A(a),N(a,c,e))}}function x(a){var b=C,c=t;C=a;t=null;var e=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var k=JSON.parse(e,a._response._fromJSON);if(null!==t&&0<t.deps)t.value=k,a.status="blocked",a.value=null,a.reason=null;else{var l=a.value;a.status="fulfilled";a.value=k;null!==l&&y(l,k)}}catch(n){a.status="rejected",a.reason=n}finally{C=b,t=c}}function A(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c= | ||
c.value;else throw c.reason;var e="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:c[b[2]];a.status="fulfilled";a.value=e}catch(k){a.status="rejected",a.reason=k}}function F(a,b){a._chunks.forEach(function(c){"pending"===c.status&&B(c,b)})}function v(a,b){var c=a._chunks,e=c.get(b);e||(e=new u("pending",null,null,a),c.set(b,e));return e}function ca(a,b,c,e){if(t){var k=t;e||k.deps++}else k=t={deps:e?0:1,value:null};return function(l){b[c]=l;k.deps--;0===k.deps&&"blocked"===a.status&&(l=a.value,a.status= | ||
"fulfilled",a.value=k.value,null!==l&&y(l,k.value))}}function da(a){return function(b){return B(a,b)}}function ea(a,b){var c=a._callServer;a=function(){var e=Array.prototype.slice.call(arguments),k=b.bound;return k?"fulfilled"===k.status?c(b.id,k.value.concat(e)):Promise.resolve(k).then(function(l){return c(b.id,l.concat(e))}):c(b.id,e)};E.set(a,b);return a}function G(a,b){a=v(a,b);switch(a.status){case "resolved_model":x(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason; | ||
}}function fa(a,b,c,e){if("$"===e[0]){if("$"===e)return H;switch(e[1]){case "$":return e.slice(1);case "L":return b=parseInt(e.slice(2),16),a=v(a,b),{$$typeof:ha,_payload:a,_init:ba};case "@":if(2===e.length)return new Promise(function(){});b=parseInt(e.slice(2),16);return v(a,b);case "S":return Symbol.for(e.slice(2));case "F":return b=parseInt(e.slice(2),16),b=G(a,b),ea(a,b);case "Q":return b=parseInt(e.slice(2),16),a=G(a,b),new Map(a);case "W":return b=parseInt(e.slice(2),16),a=G(a,b),new Set(a); | ||
case "I":return Infinity;case "-":return"$-0"===e?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(e.slice(2)));case "n":return BigInt(e.slice(2));default:e=parseInt(e.slice(1),16);a=v(a,e);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return e=C,a.then(ca(e,b,c,"cyclic"===a.status),da(e)),null;default:throw a.reason;}}}return e}function ia(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'); | ||
}function P(a,b,c,e,k){var l=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:ia,_encodeFormAction:e,_nonce:k,_chunks:l,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ja(a);return a}function ka(a,b,c){var e=a._chunks,k=e.get(b);c=JSON.parse(c,a._fromJSON);var l=S(a._bundlerConfig,c);if(c=U(l)){if(k){var n=k;n.status="blocked"}else n=new u("blocked",null,null,a),e.set(b,n);c.then(function(){return O(n,l)},function(g){return B(n, | ||
g)})}else k?O(k,l):e.set(b,new u("resolved_module",l,null,a))}function ja(a){return function(b,c){return"string"===typeof c?fa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===H?{$$typeof:H,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function Q(a,b){function c(l){var n=l.value;if(l.done)F(a,Error("Connection closed."));else{var g=0,m=a._rowState,d=a._rowID,h=a._rowTag,f=a._rowLength;l=a._buffer;for(var D=n.length;g<D;){var p=-1;switch(m){case 0:p=n[g++];58===p?m=1:d=d<<4|(96<p? | ||
p-87:p-48);continue;case 1:m=n[g];84===m?(h=m,m=2,g++):64<m&&91>m?(h=m,m=3,g++):(h=0,m=3);continue;case 2:p=n[g++];44===p?m=4:f=f<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,g);break;case 4:p=g+f,p>n.length&&(p=-1)}var q=n.byteOffset+g;if(-1<p){g=new Uint8Array(n.buffer,q,p-g);f=a;q=h;var R=f._stringDecoder;h="";for(var I=0;I<l.length;I++)h+=R.decode(l[I],la);h+=R.decode(g);switch(q){case 73:ka(f,d,h);break;case 72:d=h[0];h=h.slice(1);f=JSON.parse(h,f._fromJSON);if(h=ma.current)switch(d){case "D":h.prefetchDNS(f); | ||
break;case "C":"string"===typeof f?h.preconnect(f):h.preconnect(f[0],f[1]);break;case "L":d=f[0];g=f[1];3===f.length?h.preload(d,g,f[2]):h.preload(d,g);break;case "m":"string"===typeof f?h.preloadModule(f):h.preloadModule(f[0],f[1]);break;case "S":"string"===typeof f?h.preinitStyle(f):h.preinitStyle(f[0],0===f[1]?void 0:f[1],3===f.length?f[2]:void 0);break;case "X":"string"===typeof f?h.preinitScript(f):h.preinitScript(f[0],f[1]);break;case "M":"string"===typeof f?h.preinitModuleScript(f):h.preinitModuleScript(f[0], | ||
f[1])}break;case 69:h=JSON.parse(h);g=h.digest;h=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");h.stack="Error: "+h.message;h.digest=g;g=f._chunks;(q=g.get(d))?B(q,h):g.set(d,new u("rejected",null,h,f));break;case 84:f._chunks.set(d,new u("fulfilled",h,null,f));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."); | ||
default:g=f._chunks,(q=g.get(d))?(f=q,d=h,"pending"===f.status&&(h=f.value,g=f.reason,f.status="resolved_model",f.value=d,null!==h&&(x(f),N(f,h,g)))):g.set(d,new u("resolved_model",h,null,f))}g=p;3===m&&g++;f=d=h=m=0;l.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-g);l.push(n);f-=n.byteLength;break}}a._rowState=m;a._rowID=d;a._rowTag=h;a._rowLength=f;return k.read().then(c).catch(e)}}function e(l){F(a,l)}var k=b.getReader();k.read().then(c).catch(e)}var la={stream:!0},z=new Map,K=new Map, | ||
na=__webpack_require__.u;__webpack_require__.u=function(a){var b=K.get(a);return void 0!==b?b:na(a)};var ma=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,H=Symbol.for("react.element"),ha=Symbol.for("react.lazy"),L=Symbol.iterator,Y=Array.isArray,M=Object.getPrototypeOf,Z=Object.prototype,E=new WeakMap;u.prototype=Object.create(Promise.prototype);u.prototype.then=function(a,b){switch(this.status){case "resolved_model":x(this);break;case "resolved_module":A(this)}switch(this.status){case "fulfilled":a(this.value); | ||
break;case "pending":case "blocked":case "cyclic":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var C=null,t=null;r.createFromFetch=function(a,b){var c=P(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);a.then(function(e){Q(c,e.body)},function(e){F(c,e)});return v(c,0)};r.createFromReadableStream=function(a,b){b=P(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);Q(b,a); | ||
return v(b,0)};r.createServerReference=function(a,b,c){c=function(){var e=Array.prototype.slice.call(arguments);return b(a,e)};aa(c,{id:a,bound:null});return c};r.encodeReply=function(a){return new Promise(function(b,c){X(a,"",b,c)})}})})(); |
@@ -10,44 +10,54 @@ /** | ||
*/ | ||
(function(){'use strict';(function(u,G){"object"===typeof exports&&"undefined"!==typeof module?G(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],G):(u="undefined"!==typeof globalThis?globalThis:u||self,G(u.ReactServerDOMServer={},u.ReactDOM,u.React))})(this,function(u,G,pa){function P(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(b);else{var d=p.length-n;d<b.length&& | ||
(0===d?a.enqueue(p):(p.set(b.subarray(0,d),n),a.enqueue(p),b=b.subarray(d)),p=new Uint8Array(512),n=0);p.set(b,n);n+=b.length}return!0}function qa(a,b){"function"===typeof a.error?a.error(b):a.close()}function ra(a,b,d){a=H(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return I.encode(b)}function Y(a,b,d){a=H(d);b=b.toString(16)+":"+a+"\n";return I.encode(b)}function Q(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React."); | ||
}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");Q(a,d);b.context._currentValue=b.value}}}function sa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&sa(a)}function ta(a){var b=a.parent;null!==b&&ta(b);a.context._currentValue=a.value}function ua(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth? | ||
Q(a,b):ua(a,b)}function va(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?Q(a,d):va(a,d);b.context._currentValue=b.value}function Z(a){var b=r;b!==a&&(null===b?ta(a):null===a?sa(b):b.depth===a.depth?Q(b,a):b.depth>a.depth?ua(b,a):va(b,a),r=a)}function wa(a,b){var d=a._currentValue;a._currentValue=b;var c=r;return r=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}function xa(){} | ||
function Wa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(xa,xa),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}R=b;throw aa;}}function ya(){if(null===R)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue."); | ||
var a=R;R=null;return a}function za(){var a=x;x=null;return a}function Aa(a){return a._currentValue}function q(){throw Error("This Hook is not supported in Server Components.");}function Xa(){throw Error("Refreshing the cache is not supported in Server Components.");}function ba(){return(new AbortController).signal}function Ba(){var a=l?l:null;return a?a.cache:new Map}function Ca(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}function ca(a){switch(typeof a){case "string":return JSON.stringify(10>= | ||
a.length?a:a.slice(0,10)+"...");case "object":if(da(a))return"[...]";a=Ca(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function S(a){if("string"===typeof a)return a;switch(a){case Ya:return"Suspense";case Za:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Da:return S(a.render);case Ea:return S(a.type);case J:var b=a._payload;a=a._init;try{return S(a(b))}catch(d){}}return""}function C(a,b){var d=Ca(a);if("Object"!==d&&"Array"!==d)return d; | ||
d=-1;var c=0;if(da(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?C(g):ca(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===m)e="<"+S(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?C(k):ca(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+ | ||
k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}function $a(a){console.error(a)}function ab(a,b,d,c,e){if(null!==ea.current&&ea.current!==Fa)throw Error("Currently React only supports one RSC renderer at a time.");bb.current=cb;ea.current=Fa;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g, | ||
completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?$a:d,toJSON:function(t,y){return db(k,this,t,y)}};k.pendingChunks++;b=eb(c);a=fa(k,a,b,f);g.push(a);return k}function fb(a,b){a.pendingChunks++;var d=fa(a,null,r,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value, | ||
ha(a,d),d.id;case "rejected":var c=v(a,b.reason);D(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;ha(a,d)},function(e){d.status=4;e=v(a,e);D(a,d.id,e);null!==a.destination&&K(a,a.destination)});return d.id}function gb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason; | ||
throw a;}function hb(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:J,_payload:a,_init:gb}}function L(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===T)return[m, | ||
b,d,e];U=0;x=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:hb(e):e}if("string"===typeof b)return[m,b,d,e];if("symbol"===typeof b)return b===ib?e.children:[m,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===T)return[m,b,d,e];switch(b.$$typeof){case J:var g=b._init;b=g(b._payload);return L(a,b,d,c,e,f);case Da:return a=b.render,U=0,x=f,a(e,void 0);case Ea:return L(a,b.type,d,c,e,f);case Ga:return wa(b._context,e.value),[m,b,d,{value:e.value, | ||
children:e.children,__pop:Ha}]}}throw Error("Unsupported Server Component type: "+ca(b));}function ha(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,Ia(a))}function fa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return ha(a,e)},thenableState:null};c.add(e);return e}function Ja(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===m&&"1"===d?"$L"+g.toString(16):"$"+ | ||
g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var t=h[k];if(t)g=t.name;else{var y=k.lastIndexOf("#");-1!==y&&(g=k.slice(y+1),t=h[k.slice(0,y)]);if(!t)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var z={id:t.id,chunks:t.chunks,name:g,async:!!c.$$async};a.pendingChunks++;var A=a.nextChunkId++,ia=H(z),B=A.toString(16)+":I"+ia+"\n";var jb=I.encode(B);a.completedImportChunks.push(jb);f.set(e,A);return b[0]=== | ||
m&&"1"===d?"$L"+A.toString(16):"$"+A.toString(16)}catch(kb){return a.pendingChunks++,b=a.nextChunkId++,d=v(a,kb),D(a,b,d),"$"+b.toString(16)}}function db(a,b,d,c){switch(c){case m:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===m||c.$$typeof===J);)try{switch(c.$$typeof){case m:var e=c;c=L(a,e.type,e.key,e.ref,e.props,null);break;case J:var f=c._init;c=f(c._payload)}}catch(g){d=g===aa?ya():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=fa(a,c, | ||
r,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=za(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=v(a,d);D(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===T)return Ja(a,b,d,c);if("function"===typeof c.then)return"$@"+fb(a,c).toString(16);if(c.$$typeof===Ga)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=Y(a,d,"$P"+c),a.completedJSONChunks.push(c)), | ||
"$"+d.toString(16);if(c===Ha){a=r;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=c===Ka?a.context._defaultValue:c;r=a.parent;return}return!da(c)&&(null===c||"object"!==typeof c?a=null:(a=La&&c[La]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"=== | ||
typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===T)return Ja(a,b,d,c);if(c.$$typeof===lb)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ra(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)), | ||
a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+C(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+C(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+ | ||
(c.description+") cannot be found among global symbols.")+C(b,d));a.pendingChunks++;d=a.nextChunkId++;b=Y(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+C(b,d));}function v(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+ | ||
typeof b+'" instead');return b||""}function ja(a,b){null!==a.destination?(a.status=2,qa(a.destination,b)):(a.status=1,a.fatalError=b)}function D(a,b,d){d={digest:d};b=b.toString(16)+":E"+H(d)+"\n";b=I.encode(b);a.completedErrorChunks.push(b)}function E(a,b,d){var c=a.nextChunkId++;d=H(d);b="H"+b;c=c.toString(16)+":"+b;c=I.encode(c+d+"\n");a.completedHintChunks.push(c)}function Ia(a){var b=ka.current;ka.current=mb;var d=l;M=l=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f= | ||
c[e];var g=a;if(0===f.status){Z(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===m){var k=h,t=f.thenableState;f.model=h;h=L(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===m;)k=h,f.model=h,h=L(g,k.type,k.key,k.ref,k.props,null)}var y=ra(g,f.id,h);g.completedJSONChunks.push(y);g.abortableTasks.delete(f);f.status=1}catch(B){var z=B===aa?ya():B;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var A=f.ping;z.then(A, | ||
A);f.thenableState=za()}else{g.abortableTasks.delete(f);f.status=4;var ia=v(g,z);D(g,f.id,ia)}}}}null!==a.destination&&K(a,a.destination)}catch(B){v(a,B),ja(a,B)}finally{ka.current=b,M=null,l=d}}function K(a,b){p=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,P(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)P(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,P(b,f[c]);f.splice(0, | ||
c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,P(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,p&&0<n&&(b.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&b.close()}function V(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;K(a,b)}}function Ma(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=v(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++; | ||
var e=a.nextChunkId++;D(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=Y(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&K(a,a.destination)}catch(f){v(a,f),ja(a,f)}}function eb(a){if(a){var b=r;Z(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];la[e]||(la[e]=pa.createServerContext(e,Ka));wa(la[e],c)}a=r;Z(b);return a}return null}function Na(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0, | ||
e)]);if(!c)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{id:c.id,chunks:c.chunks,name:d,async:!1}}function nb(){}function Oa(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=W.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=W.set.bind(W,e,null);f.then(g,nb);W.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=ma.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)}); | ||
h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});ma.set(a.id,h);return h}return 0<d.length?Promise.all(d):null}function F(a){if(a.async){var b=ma.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function X(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}function Pa(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}function Qa(a, | ||
b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Pa(d,b)}}function ob(a,b,d,c,e,f){var g=Na(a._bundlerConfig,b);a=Oa(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=F(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return F(g)});else return F(g);d.then(Ra(c,e,f),Sa(c));return null}function na(a){var b=N,d=w;N=a;w=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==w&&0<w.deps? | ||
(w.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{N=b,w=d}}function pb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Qa(d,b)})}function O(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new X("resolved_model",c,null,a):new X("pending",null,null,a),d.set(b,c));return c}function Ra(a,b,d){if(w){var c=w;c.deps++}else c=w={deps:1,value:null};return function(e){b[d]=e;c.deps--; | ||
0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Pa(e,c.value))}}function Sa(a){return function(b){return Qa(a,b)}}function qb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),O(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=O(a,c);"resolved_model"===c.status&&na(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ob(a,c.id,c.bound,N,b,d);case "K":b=c.slice(2); | ||
var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=O(a,c);switch(a.status){case "resolved_model":na(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=N,a.then(Ra(c, | ||
b,d),Sa(c)),null;default:throw a.reason;}}return c}function Ta(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?qb(e,this,f,g):g}};return e}function Ua(a){pb(a,Error("Connection closed."))}function Va(a,b,d){var c=Na(a,b);a=Oa(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=F(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return F(c)}): | ||
Promise.resolve(F(c))}var p=null,n=0,I=new TextEncoder,H=JSON.stringify,T=Symbol.for("react.client.reference"),lb=Symbol.for("react.server.reference"),cb={prefetchDNS:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?E(d,"D",[a,b]):E(d,"D",a),V(d))}}},preconnect:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null=== | ||
e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?E(d,"C",[a,b]):E(d,"C",a),V(d))}}},preload:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),E(d,"L",[a,b]),V(d))}}},preinit:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),E(d,"I",[a,b]),V(d))}}}},bb=G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,m=Symbol.for("react.element"),ib=Symbol.for("react.fragment"),Ga=Symbol.for("react.provider"), | ||
rb=Symbol.for("react.server_context"),Da=Symbol.for("react.forward_ref"),Ya=Symbol.for("react.suspense"),Za=Symbol.for("react.suspense_list"),Ea=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Ka=Symbol.for("react.default_value"),sb=Symbol.for("react.memo_cache_sentinel"),La=Symbol.iterator,r=null,aa=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"), | ||
R=null,M=null,U=0,x=null,mb={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:Aa,useContext:Aa,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===M)throw Error("useId can only be used while React is rendering");var a=M.identifierCount++;return":"+M.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q, | ||
useCacheRefresh:function(){return Xa},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=sb;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=U;U+=1;null===x&&(x=[]);return Wa(x,a,b)}if(a.$$typeof===rb)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},Fa={getCacheSignal:function(){var a=Ba(),b=a.get(ba);void 0===b&&(b=ba(),a.set(ba,b));return b},getCacheForType:function(a){var b= | ||
Ba(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},da=Array.isArray,oa=pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,la=oa.ContextRegistry,ka=oa.ReactCurrentDispatcher,ea=oa.ReactCurrentCache,l=null,Ha={},W=new Map,ma=new Map;X.prototype=Object.create(Promise.prototype);X.prototype.then=function(a,b){switch(this.status){case "resolved_model":na(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)}};var N=null,w=null;u.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=Ta(b,e,a);Ua(e);e=O(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Va(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Va(b,e,null));else d.append(f,e)});return null===c? | ||
null:c.then(function(e){return e.bind(null,d)})};u.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ta(b,"",a);Ua(a);return O(a,0)};u.renderToReadableStream=function(a,b,d){var c=ab(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)Ma(c,e.reason);else{var f=function(){Ma(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(g){c.flushScheduled= | ||
null!==c.destination;Ia(c)},pull:function(g){if(1===c.status)c.status=2,qa(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{K(c,g)}catch(h){v(c,h),ja(c,h)}}},cancel:function(g){}},{highWaterMark:0})}}); | ||
})(); | ||
'use strict';(function(){(function(p,D){"object"===typeof exports&&"undefined"!==typeof module?D(exports,require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react","react-dom"],D):(p="undefined"!==typeof globalThis?globalThis:p||self,D(p.ReactServerDOMServer={},p.React,p.ReactDOM))})(this,function(p,D,Za){function U(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<q&&(a.enqueue(new Uint8Array(r.buffer,0,q)),r=new Uint8Array(2048),q=0),a.enqueue(b);else{var c= | ||
r.length-q;c<b.byteLength&&(0===c?a.enqueue(r):(r.set(b.subarray(0,c),q),a.enqueue(r),b=b.subarray(c)),r=new Uint8Array(2048),q=0);r.set(b,q);q+=b.byteLength}return!0}function sa(a,b){"function"===typeof a.error?a.error(b):a.close()}function E(a,b,c){return Object.defineProperties(a,{$$typeof:{value:F},$$id:{value:b},$$async:{value:c}})}function ta(){var a=$a.apply(this,arguments);if(this.$$typeof===V){var b=ab.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:V},$$id:{value:this.$$id}, | ||
$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ta}})}return a}function ua(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=E(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.");},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=E({},a.$$id,!0),e=new Proxy(d,va);a.status="fulfilled";a.value=e;return a.then=E(function(g,f){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=E(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.");},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,bb));return d}function L(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}function wa(){}function cb(a, | ||
b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(wa,wa),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}W=b;throw ca;}}function xa(){if(null===W)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue."); | ||
var a=W;W=null;return a}function ya(){var a=G||[];G=null;return a}function u(){throw Error("This Hook is not supported in Server Components.");}function db(){throw Error("Refreshing the cache is not supported in Server Components.");}function da(){throw Error("Cannot read a Client Context from a Server Component.");}function ea(){return(new AbortController).signal}function za(){var a=l?l:null;return a?a.cache:new Map}function Aa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/, | ||
function(b,c){return c})}function fa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(ha(a))return"[...]";if(null!==a&&a.$$typeof===ia)return"client";a=Aa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===ia?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}function X(a){if("string"===typeof a)return a;switch(a){case eb:return"Suspense";case fb:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ba:return X(a.render); | ||
case Ca:return X(a.type);case M:var b=a._payload;a=a._init;try{return X(a(b))}catch(c){}}return""}function H(a,b){var c=Aa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(ha(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?H(f):fa(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===v)e="<"+X(a.type)+"/>";else{if(a.$$typeof===ia)return"client";e="{";g=Object.keys(a);for(f=0;f< | ||
g.length;f++){0<f&&(e+=", ");var h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?H(k):fa(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}function gb(a){console.error(a)}function hb(a){}function ib(a,b,c,d,e,g){if(null!==ja.current&&ja.current!==Da)throw Error("Currently React only supports one RSC renderer at a time."); | ||
jb.current=kb;ja.current=Da;var f=new Set;g=[];var h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0=== | ||
c?gb:c,onPostpone:void 0===e?hb:e};a=Y(b,a,null,!1,f);g.push(a);return b}function lb(a,b,c){var d=Y(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,ka(a,d),d.id;case "rejected":return b=x(a,c.reason),I(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;ka(a,d)},function(e){d.status=4;e=x(a,e);I(a,d.id,e);a.abortableTasks.delete(d);null!==a.destination&&N(a,a.destination)});return d.id}function n(a,b,c){c=J(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=B.encode(b+c+"\n");a.completedHintChunks.push(c);!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination&&(c=a.destination,a.flushScheduled=!0,N(a,c))}function mb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function nb(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:M,_payload:a,_init:mb}}function Ea(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;la=0;G=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=nb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e? | ||
c:e+","+c:null===e&&(b.implicitSlot=!0);a=O(a,b,Z,"",d);b.keyPath=e;b.implicitSlot=g;return a}function ma(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===F?[v,c,d,g]:Ea(a,b,d,c,g);if("string"===typeof c)return[v,c,d,g];if("symbol"===typeof c)return c===ob&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=O(a,b,Z,"",g.children),b.implicitSlot=d,a):[v,c,d,g]; | ||
if(null!=c&&"object"===typeof c){if(c.$$typeof===F)return[v,c,d,g];switch(c.$$typeof){case M:var f=c._init;c=f(c._payload);return ma(a,b,c,d,e,g);case Ba:return Ea(a,b,d,c.render,g);case Ca:return ma(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+fa(c));}function ka(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,Fa(a))}function Y(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,g); | ||
var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return ka(a,f)},toJSON:function(h,k){var m=f.keyPath,z=f.implicitSlot;try{var w=O(a,f,this,h,k)}catch(aa){if(h=aa===ca?xa():aa,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===v||k.$$typeof===M),"object"===typeof h&&null!==h&&"function"===typeof h.then){w=Y(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks);var C=w.ping;h.then(C,C);w.thenableState=ya();f.keyPath=m;f.implicitSlot=z;w=k?"$L"+w.id.toString(16):t(w.id)}else if(f.keyPath= | ||
m,f.implicitSlot=z,k)a.pendingChunks++,m=a.nextChunkId++,z=x(a,h),I(a,m,z),w="$L"+m.toString(16);else throw h;}return w},thenableState:null};e.add(f);return f}function t(a){return"$"+a.toString(16)}function Ga(a,b,c){a=J(c);b=b.toString(16)+":"+a+"\n";return B.encode(b)}function Ha(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]===v&&"1"===c?"$L"+f.toString(16):t(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var m=h[k];if(m)f=m.name;else{var z= | ||
k.lastIndexOf("#");-1!==z&&(f=k.slice(z+1),m=h[k.slice(0,z)]);if(!m)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var w=!0===d.$$async?[m.id,m.chunks,f,1]:[m.id,m.chunks,f];a.pendingChunks++;var C=a.nextChunkId++,aa=J(w),pb=C.toString(16)+":I"+aa+"\n",qb=B.encode(pb);a.completedImportChunks.push(qb);g.set(e,C);return b[0]===v&&"1"===c?"$L"+C.toString(16):t(C)}catch(rb){return a.pendingChunks++,b=a.nextChunkId++, | ||
c=x(a,rb),I(a,b,c),t(b)}}function P(a,b){b=Y(a,b,null,!1,a.abortableTasks);Ia(a,b);return b.id}function O(a,b,c,d,e){b.model=e;if(e===v)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case v:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(A===e)A=null;else return-1===d?(a=P(a,e),t(a)):t(d);else c.set(e,-1);return ma(a,b,e.type,e.key,e.ref,e.props);case M:return b.thenableState=null,c=e._init,e=c(e._payload),O(a,b,Z,"",e)}if(e.$$typeof===F)return Ha(a,c,d,e);c=a.writtenObjects; | ||
d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(A===e)A=null;else return"$@"+d.toString(16);a=lb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(A===e)A=null;else return-1===d?(a=P(a,e),t(a)):t(d);else c.set(e,-1);if(ha(e))return 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"+P(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"+P(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ja&&e[Ja]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Ka(e);if(a!==sb&&(null===a||null!==Ka(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.");return e}if("string"===typeof e){if("Z"===e[e.length- | ||
1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=a.nextChunkId++,e=B.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=B.encode(c),a.completedRegularChunks.push(c,e),t(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof=== | ||
F)return Ha(a,c,d,e);if(e.$$typeof===V)return b=a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=P(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+H(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.'+ | ||
H(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.")+H(c,d));a.pendingChunks++;c=a.nextChunkId++;d=Ga(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+ | ||
" is not supported in Client Component props."+H(c,d));}function x(a,b){var c=l;l=null;try{var d=a.onError;var e=d(b)}finally{l=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||""}function na(a,b){null!==a.destination?(a.status=2,sa(a.destination,b)):(a.status=1,a.fatalError=b)} | ||
function I(a,b,c,d){c={digest:c};b=b.toString(16)+":E"+J(c)+"\n";b=B.encode(b);a.completedErrorChunks.push(b)}function Ia(a,b){if(0===b.status)try{A=b.model;var c=O(a,b,Z,"",b.model);A=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?J(c,b.toJSON):J(c),e=b.id.toString(16)+":"+d+"\n",g=B.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(m){var f=m===ca?xa():m;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h, | ||
h);b.thenableState=ya()}else{a.abortableTasks.delete(b);b.status=4;var k=x(a,f);I(a,b.id,k)}}finally{}}function Fa(a){var b=oa.current;oa.current=tb;var c=l;Q=l=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)Ia(a,d[e]);null!==a.destination&&N(a,a.destination)}catch(g){x(a,g),na(a,g)}finally{oa.current=b,Q=null,l=c}}function N(a,b){r=new Uint8Array(2048);q=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,U(b,c[d]);c.splice(0,d);var e=a.completedHintChunks; | ||
for(d=0;d<e.length;d++)U(b,e[d]);e.splice(0,d);var g=a.completedRegularChunks;for(d=0;d<g.length;d++)a.pendingChunks--,U(b,g[d]);g.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)a.pendingChunks--,U(b,f[d]);f.splice(0,d)}finally{a.flushScheduled=!1,r&&0<q&&(b.enqueue(new Uint8Array(r.buffer,0,q)),r=null,q=0)}0===a.pendingChunks&&b.close()}function pa(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=x(a,e);I(a,d,g,e);c.forEach(function(f){f.status=3;var h=t(d);f=Ga(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&N(a,a.destination)}catch(f){x(a,f),na(a,f)}}function La(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]}function Ma(a){var b= | ||
__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function ub(){}function Na(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++],g=b[d++],f=ba.get(e);void 0===f?(Oa.set(e,g),g=__webpack_chunk_load__(e),c.push(g),f=ba.set.bind(ba,e,null),g.then(f,ub),ba.set(e,g)):null!==f&&c.push(f)}return 4===a.length?0===c.length?Ma(a[0]):Promise.all(c).then(function(){return Ma(a[0])}): | ||
0<c.length?Promise.all(c):null}function K(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function R(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}function Pa(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Qa(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Pa(c,b)}} | ||
function vb(a,b,c,d,e,g){var f=La(a._bundlerConfig,b);a=Na(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=K(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return K(f)});else return K(f);c.then(Ra(d,e,g),Sa(d));return null}function qa(a){var b=S,c=y;S=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{S=b,y=c}}function wb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&Qa(c,b)})}function T(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new R("resolved_model",d,null,a):a._closed?new R("rejected",null,a._closedReason,a):new R("pending",null,null,a),c.set(b,d));return d}function Ra(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&&Pa(e,d.value))}}function Sa(a){return function(b){return Qa(a,b)}}function ra(a,b){a=T(a,b);"resolved_model"===a.status&&qa(a);if("fulfilled"!==a.status)throw a.reason;return a.value}function xb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),T(a,b);case "S":return Symbol.for(d.slice(2));case "F":return d=parseInt(d.slice(2),16),d=ra(a,d),vb(a,d.id,d.bound,S,b,c);case "Q":return b=parseInt(d.slice(2), | ||
16),a=ra(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=ra(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(e)&&g.append(h.slice(e.length),f)});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));default:d=parseInt(d.slice(1),16);a=T(a,d);switch(a.status){case "resolved_model":qa(a)}switch(a.status){case "fulfilled":return a.value; | ||
case "pending":case "blocked":return d=S,a.then(Ra(d,b,c),Sa(d)),null;default:throw a.reason;}}return d}function Ta(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?xb(e,this,g,f):f},_closed:!1,_closedReason:null};return e}function Ua(a){wb(a,Error("Connection closed."))}function Va(a,b,c){var d=La(a,b);a=Na(d);return c?Promise.all([c,a]).then(function(e){e= | ||
e[0];var g=K(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return K(d)}):Promise.resolve(K(d))}function Wa(a,b,c){a=Ta(b,c,a);Ua(a);a=T(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}var r=null,q=0,B=new TextEncoder,F=Symbol.for("react.client.reference"),V=Symbol.for("react.server.reference"),$a=Function.prototype.bind,ab=Array.prototype.slice,yb=Promise.prototype,bb={get:function(a,b,c){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.");}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.");}},va={get:function(a,b,c){return ua(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ua(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(a){return yb}, | ||
set:function(){throw Error("Cannot assign to a client module from a server module.");}},kb={prefetchDNS:function(a){if("string"===typeof a&&a){var b=l?l:null;if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),n(b,"D",a))}}},preconnect:function(a,b){if("string"===typeof a){var c=l?l:null;if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?n(c,"C",[a,b]):n(c,"C",a))}}},preload:function(a,b,c){if("string"===typeof a){var d=l?l:null;if(d){var e=d.hints,g="L";if("image"=== | ||
b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(c=L(c))?n(d,"L",[a,b,c]):n(d,"L",[a,b]))}}},preloadModule:function(a,b){if("string"===typeof a){var c=l?l:null;if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=L(b))?n(c,"m",[a,b]):n(c,"m",a)}}},preinitStyle:function(a,b,c){if("string"===typeof a){var d=l?l:null;if(d){var e=d.hints,g="S|"+a;if(!e.has(g))return e.add(g), | ||
(c=L(c))?n(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?n(d,"S",[a,b]):n(d,"S",a)}}},preinitScript:function(a,b){if("string"===typeof a){var c=l?l:null;if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=L(b))?n(c,"X",[a,b]):n(c,"X",a)}}},preinitModuleScript:function(a,b){if("string"===typeof a){var c=l?l:null;if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=L(b))?n(c,"M",[a,b]):n(c,"M",a)}}}},jb=Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,v=Symbol.for("react.element"), | ||
ob=Symbol.for("react.fragment"),Xa=Symbol.for("react.context"),Ba=Symbol.for("react.forward_ref"),eb=Symbol.for("react.suspense"),fb=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),zb=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ja=Symbol.iterator,ca=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`"), | ||
W=null,Q=null,la=0,G=null,tb={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:u,useTransition:u,readContext:da,useContext:da,useReducer:u,useRef:u,useState:u,useInsertionEffect:u,useLayoutEffect:u,useImperativeHandle:u,useEffect:u,useId:function(){if(null===Q)throw Error("useId can only be used while React is rendering");var a=Q.identifierCount++;return":"+Q.identifierPrefix+"S"+a.toString(32)+":"},useSyncExternalStore:u,useCacheRefresh:function(){return db}, | ||
useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=zb;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=la;la+=1;null===G&&(G=[]);return cb(G,a,b)}a.$$typeof===Xa&&da()}if(a.$$typeof===F){if(null!=a.value&&a.value.$$typeof===Xa)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)); | ||
}},Da={getCacheSignal:function(){var a=za(),b=a.get(ea);void 0===b&&(b=ea(),a.set(ea,b));return b},getCacheForType:function(a){var b=za(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},ha=Array.isArray,Ka=Object.getPrototypeOf,ia=Symbol.for("react.client.reference"),Ab=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ya=D.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;if(!Ya)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.'); | ||
var sb=Object.prototype,J=JSON.stringify,ja=Ya.ReactCurrentCache,oa=Ab.ReactCurrentDispatcher,l=null,A=!1,Z={},ba=new Map,Oa=new Map,Bb=__webpack_require__.u;__webpack_require__.u=function(a){var b=Oa.get(a);return void 0!==b?b:Bb(a)};R.prototype=Object.create(Promise.prototype);R.prototype.then=function(a,b){switch(this.status){case "resolved_model":qa(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)}};var S=null,y=null;p.createClientModuleProxy=function(a){a=E({},a,!1);return new Proxy(a,va)};p.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=Wa(a,b,e),d=Va(b,e.id,e.bound)):g.startsWith("$ACTION_ID_")&&(e=g.slice(11),d=Va(b,e,null)):c.append(g,e)});return null===d?null:d.then(function(e){return e.bind(null, | ||
c)})};p.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,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",e=Wa(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]})};p.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Ta(b,"",a);b=T(a,0);Ua(a);return b}; | ||
p.registerClientReference=function(a,b,c){return E(a,b+"#"+c,!1)};p.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:V},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ta,configurable:!0}})};p.renderToReadableStream=function(a,b,c){var d=ib(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)pa(d,e.reason);else{var g=function(){pa(d,e.reason); | ||
e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(f){d.flushScheduled=null!==d.destination;Fa(d)},pull:function(f){if(1===d.status)d.status=2,sa(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=f;try{N(d,f)}catch(h){x(d,h),na(d,h)}}},cancel:function(f){d.destination=null;pa(d,f)}},{highWaterMark:0})}})})(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2141633
58
42505
23
5