Comparing version 19.0.0-canary-48ec17b86-20240402 to 19.0.0-canary-4c12339ce-20240408
@@ -99,10 +99,9 @@ /** | ||
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
var __NEXT_MAJOR__ = false; // Removes legacy style context | ||
var enableRefAsProp = true; | ||
var enableRenderableContext = __NEXT_MAJOR__; // ----------------------------------------------------------------------------- | ||
var enableRenderableContext = true; // ----------------------------------------------------------------------------- | ||
// stuff. Intended to enable React core members to more easily debug scheduling | ||
@@ -181,4 +180,3 @@ // issues in DEV builds. | ||
{ | ||
var provider = type; | ||
return getContextName(provider._context) + '.Provider'; | ||
return null; | ||
} | ||
@@ -190,3 +188,3 @@ | ||
{ | ||
return getContextName(context) + '.Consumer'; | ||
return getContextName(context) + '.Provider'; | ||
} | ||
@@ -196,3 +194,4 @@ | ||
{ | ||
return null; | ||
var consumer = type; | ||
return getContextName(consumer._context) + '.Consumer'; | ||
} | ||
@@ -315,3 +314,3 @@ | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || enableRenderableContext || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -430,3 +429,3 @@ // we don't know which Flight build this will end up being used | ||
var prefix; | ||
function describeBuiltInComponentFrame(name, ownerFn) { | ||
function describeBuiltInComponentFrame(name) { | ||
{ | ||
@@ -695,3 +694,3 @@ if (prefix === undefined) { | ||
} | ||
function describeFunctionComponentFrame(fn, ownerFn) { | ||
function describeFunctionComponentFrame(fn) { | ||
{ | ||
@@ -707,3 +706,3 @@ return describeNativeComponentFrame(fn, false); | ||
function describeUnknownElementTypeFrameInDEV(type, ownerFn) { | ||
function describeUnknownElementTypeFrameInDEV(type) { | ||
@@ -739,3 +738,3 @@ if (type == null) { | ||
// Memo may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(type.type); | ||
@@ -750,3 +749,3 @@ case REACT_LAZY_TYPE: | ||
// Lazy may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(init(payload)); | ||
} catch (x) {} | ||
@@ -764,7 +763,6 @@ } | ||
var specialPropKeyWarningShown; | ||
var specialPropRefWarningShown; | ||
var didWarnAboutStringRefs; | ||
var didWarnAboutElementRef; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
didWarnAboutElementRef = {}; | ||
} | ||
@@ -800,16 +798,2 @@ | ||
function warnIfStringRefCannotBeAutoConverted(config, self) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { | ||
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (!didWarnAboutStringRefs[componentName]) { | ||
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://react.dev/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
function defineKeyPropWarningGetter(props, displayName) { | ||
@@ -833,19 +817,16 @@ { | ||
function defineRefPropWarningGetter(props, displayName) { | ||
function elementRefGetterWithDeprecationWarning() { | ||
{ | ||
{ | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
var componentName = getComponentNameFromType(this.type); | ||
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://react.dev/link/special-props)', displayName); | ||
} | ||
}; | ||
if (!didWarnAboutElementRef[componentName]) { | ||
didWarnAboutElementRef[componentName] = true; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
Object.defineProperty(props, 'ref', { | ||
get: warnAboutAccessingRef, | ||
configurable: true | ||
}); | ||
} | ||
error('Accessing element.ref was removed in React 19. ref is now a ' + 'regular prop. It will be removed from the JSX Element ' + 'type in a future release.'); | ||
} // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
var refProp = this.props.ref; | ||
return refProp !== undefined ? refProp : null; | ||
} | ||
@@ -879,3 +860,11 @@ } | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -886,4 +875,7 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In dev, make `ref` a non-enumerable property with a warning. It's non- | ||
// enumerable so that test matchers and serializers don't access it and | ||
// trigger the warning. | ||
// | ||
// `ref` will be removed from the element completely in a future release. | ||
element = { | ||
@@ -895,3 +887,2 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: key, | ||
ref: ref, | ||
props: props, | ||
@@ -901,2 +892,27 @@ // Record the component responsible for creating this element. | ||
}; | ||
if (ref !== null) { | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
get: elementRefGetterWithDeprecationWarning | ||
}); | ||
} else { | ||
// Don't warn on access if a ref is not given. This reduces false | ||
// positives in cases where a test serializer uses | ||
// getOwnPropertyDescriptors to compare objects, like Jest does, which is | ||
// a problem because it bypasses non-enumerability. | ||
// | ||
// So unfortunately this will trigger a false positive warning in Jest | ||
// when the diff is printed: | ||
// | ||
// expect(<div ref={ref} />).toEqual(<span ref={ref} />); | ||
// | ||
// A bit sketchy, but this is what we've done for the `props.key` and | ||
// `props.ref` accessors for years, which implies it will be good enough | ||
// for `element.ref`, too. Let's see if anyone complains. | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
value: null | ||
}); | ||
} | ||
} | ||
@@ -1016,5 +1032,2 @@ | ||
var propName; // Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -1044,27 +1057,29 @@ var ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
if (hasValidRef(config)) ; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config, self); | ||
} | ||
} // Remaining properties are added to a new props object | ||
var props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (var propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -1074,3 +1089,3 @@ } | ||
if (key || ref) { | ||
if (key || !enableRefAsProp ) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
@@ -1081,6 +1096,2 @@ | ||
} | ||
if (ref) { | ||
defineRefPropWarningGetter(props, displayName); | ||
} | ||
} | ||
@@ -1205,5 +1216,13 @@ | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; | ||
if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) { | ||
var ownerName = null; | ||
if (typeof element._owner.tag === 'number') { | ||
ownerName = getComponentNameFromType(element._owner.type); | ||
} else if (typeof element._owner.name === 'string') { | ||
ownerName = element._owner.name; | ||
} // Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + ownerName + "."; | ||
} | ||
@@ -1222,4 +1241,3 @@ | ||
if (element) { | ||
var owner = element._owner; | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null); | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type); | ||
ReactDebugCurrentFrame.setExtraStackFrame(stack); | ||
@@ -1270,10 +1288,2 @@ } else { | ||
} | ||
if (fragment.ref !== null) { | ||
setCurrentlyValidatingElement(fragment); | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
setCurrentlyValidatingElement(null); | ||
} | ||
} | ||
@@ -1280,0 +1290,0 @@ } |
@@ -99,10 +99,9 @@ /** | ||
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
var __NEXT_MAJOR__ = false; // Removes legacy style context | ||
var enableRefAsProp = true; | ||
var enableRenderableContext = __NEXT_MAJOR__; // ----------------------------------------------------------------------------- | ||
var enableRenderableContext = true; // ----------------------------------------------------------------------------- | ||
// stuff. Intended to enable React core members to more easily debug scheduling | ||
@@ -181,4 +180,3 @@ // issues in DEV builds. | ||
{ | ||
var provider = type; | ||
return getContextName(provider._context) + '.Provider'; | ||
return null; | ||
} | ||
@@ -190,3 +188,3 @@ | ||
{ | ||
return getContextName(context) + '.Consumer'; | ||
return getContextName(context) + '.Provider'; | ||
} | ||
@@ -196,3 +194,4 @@ | ||
{ | ||
return null; | ||
var consumer = type; | ||
return getContextName(consumer._context) + '.Consumer'; | ||
} | ||
@@ -315,3 +314,3 @@ | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || enableRenderableContext || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -430,3 +429,3 @@ // we don't know which Flight build this will end up being used | ||
var prefix; | ||
function describeBuiltInComponentFrame(name, ownerFn) { | ||
function describeBuiltInComponentFrame(name) { | ||
{ | ||
@@ -695,3 +694,3 @@ if (prefix === undefined) { | ||
} | ||
function describeFunctionComponentFrame(fn, ownerFn) { | ||
function describeFunctionComponentFrame(fn) { | ||
{ | ||
@@ -707,3 +706,3 @@ return describeNativeComponentFrame(fn, false); | ||
function describeUnknownElementTypeFrameInDEV(type, ownerFn) { | ||
function describeUnknownElementTypeFrameInDEV(type) { | ||
@@ -739,3 +738,3 @@ if (type == null) { | ||
// Memo may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(type.type); | ||
@@ -750,3 +749,3 @@ case REACT_LAZY_TYPE: | ||
// Lazy may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(init(payload)); | ||
} catch (x) {} | ||
@@ -764,7 +763,6 @@ } | ||
var specialPropKeyWarningShown; | ||
var specialPropRefWarningShown; | ||
var didWarnAboutStringRefs; | ||
var didWarnAboutElementRef; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
didWarnAboutElementRef = {}; | ||
} | ||
@@ -800,16 +798,2 @@ | ||
function warnIfStringRefCannotBeAutoConverted(config, self) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { | ||
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (!didWarnAboutStringRefs[componentName]) { | ||
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://react.dev/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
function defineKeyPropWarningGetter(props, displayName) { | ||
@@ -833,19 +817,16 @@ { | ||
function defineRefPropWarningGetter(props, displayName) { | ||
function elementRefGetterWithDeprecationWarning() { | ||
{ | ||
{ | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
var componentName = getComponentNameFromType(this.type); | ||
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://react.dev/link/special-props)', displayName); | ||
} | ||
}; | ||
if (!didWarnAboutElementRef[componentName]) { | ||
didWarnAboutElementRef[componentName] = true; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
Object.defineProperty(props, 'ref', { | ||
get: warnAboutAccessingRef, | ||
configurable: true | ||
}); | ||
} | ||
error('Accessing element.ref was removed in React 19. ref is now a ' + 'regular prop. It will be removed from the JSX Element ' + 'type in a future release.'); | ||
} // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
var refProp = this.props.ref; | ||
return refProp !== undefined ? refProp : null; | ||
} | ||
@@ -879,3 +860,11 @@ } | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -886,4 +875,7 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In dev, make `ref` a non-enumerable property with a warning. It's non- | ||
// enumerable so that test matchers and serializers don't access it and | ||
// trigger the warning. | ||
// | ||
// `ref` will be removed from the element completely in a future release. | ||
element = { | ||
@@ -895,3 +887,2 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: key, | ||
ref: ref, | ||
props: props, | ||
@@ -901,2 +892,27 @@ // Record the component responsible for creating this element. | ||
}; | ||
if (ref !== null) { | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
get: elementRefGetterWithDeprecationWarning | ||
}); | ||
} else { | ||
// Don't warn on access if a ref is not given. This reduces false | ||
// positives in cases where a test serializer uses | ||
// getOwnPropertyDescriptors to compare objects, like Jest does, which is | ||
// a problem because it bypasses non-enumerability. | ||
// | ||
// So unfortunately this will trigger a false positive warning in Jest | ||
// when the diff is printed: | ||
// | ||
// expect(<div ref={ref} />).toEqual(<span ref={ref} />); | ||
// | ||
// A bit sketchy, but this is what we've done for the `props.key` and | ||
// `props.ref` accessors for years, which implies it will be good enough | ||
// for `element.ref`, too. Let's see if anyone complains. | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
value: null | ||
}); | ||
} | ||
} | ||
@@ -1040,5 +1056,2 @@ | ||
var propName; // Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -1068,27 +1081,29 @@ var ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
if (hasValidRef(config)) ; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config, self); | ||
} | ||
} // Remaining properties are added to a new props object | ||
var props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (var propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -1098,3 +1113,3 @@ } | ||
if (key || ref) { | ||
if (key || !enableRefAsProp ) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
@@ -1105,6 +1120,2 @@ | ||
} | ||
if (ref) { | ||
defineRefPropWarningGetter(props, displayName); | ||
} | ||
} | ||
@@ -1229,5 +1240,13 @@ | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; | ||
if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) { | ||
var ownerName = null; | ||
if (typeof element._owner.tag === 'number') { | ||
ownerName = getComponentNameFromType(element._owner.type); | ||
} else if (typeof element._owner.name === 'string') { | ||
ownerName = element._owner.name; | ||
} // Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + ownerName + "."; | ||
} | ||
@@ -1246,4 +1265,3 @@ | ||
if (element) { | ||
var owner = element._owner; | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null); | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type); | ||
ReactDebugCurrentFrame.setExtraStackFrame(stack); | ||
@@ -1294,10 +1312,2 @@ } else { | ||
} | ||
if (fragment.ref !== null) { | ||
setCurrentlyValidatingElement(fragment); | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
setCurrentlyValidatingElement(null); | ||
} | ||
} | ||
@@ -1304,0 +1314,0 @@ } |
@@ -22,14 +22,13 @@ /** | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
const enableRefAsProp = true; | ||
const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// $FlowFixMe[method-unbinding] | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function hasValidRef(config) { | ||
return config.ref !== undefined; | ||
} | ||
function hasValidKey(config) { | ||
@@ -65,3 +64,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -72,4 +79,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -82,5 +88,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -100,5 +104,2 @@ } | ||
function jsxProd(type, config, maybeKey) { | ||
let propName; // Reserved names are extracted | ||
const props = {}; | ||
let key = null; | ||
@@ -122,23 +123,27 @@ let ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} // Remaining properties are added to a new props object | ||
let props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
const defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (const propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -145,0 +150,0 @@ } |
@@ -10,5 +10,4 @@ /* | ||
*/ | ||
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; | ||
function p(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&"key"!==b&&"ref"!==b&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=p;exports.jsxs=p; | ||
'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxs=g; | ||
//# sourceMappingURL=react-jsx-runtime.production.min.js.map |
@@ -22,14 +22,13 @@ /** | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
const enableRefAsProp = true; | ||
const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// $FlowFixMe[method-unbinding] | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function hasValidRef(config) { | ||
return config.ref !== undefined; | ||
} | ||
function hasValidKey(config) { | ||
@@ -65,3 +64,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -72,4 +79,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -82,5 +88,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -100,5 +104,2 @@ } | ||
function jsxProd(type, config, maybeKey) { | ||
let propName; // Reserved names are extracted | ||
const props = {}; | ||
let key = null; | ||
@@ -122,23 +123,27 @@ let ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} // Remaining properties are added to a new props object | ||
let props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
const defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (const propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -145,0 +150,0 @@ } |
@@ -10,5 +10,4 @@ /* | ||
*/ | ||
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; | ||
function p(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&"key"!==b&&"ref"!==b&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=p;exports.jsxs=p; | ||
'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxs=g; | ||
//# sourceMappingURL=react-jsx-runtime.profiling.min.js.map |
@@ -99,10 +99,9 @@ /** | ||
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
var __NEXT_MAJOR__ = false; // Removes legacy style context | ||
var enableRefAsProp = true; | ||
var enableRenderableContext = __NEXT_MAJOR__; // ----------------------------------------------------------------------------- | ||
var enableRenderableContext = true; // ----------------------------------------------------------------------------- | ||
// stuff. Intended to enable React core members to more easily debug scheduling | ||
@@ -181,4 +180,3 @@ // issues in DEV builds. | ||
{ | ||
var provider = type; | ||
return getContextName(provider._context) + '.Provider'; | ||
return null; | ||
} | ||
@@ -190,3 +188,3 @@ | ||
{ | ||
return getContextName(context) + '.Consumer'; | ||
return getContextName(context) + '.Provider'; | ||
} | ||
@@ -196,3 +194,4 @@ | ||
{ | ||
return null; | ||
var consumer = type; | ||
return getContextName(consumer._context) + '.Consumer'; | ||
} | ||
@@ -315,3 +314,3 @@ | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || enableRenderableContext || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -430,3 +429,3 @@ // we don't know which Flight build this will end up being used | ||
var prefix; | ||
function describeBuiltInComponentFrame(name, ownerFn) { | ||
function describeBuiltInComponentFrame(name) { | ||
{ | ||
@@ -695,3 +694,3 @@ if (prefix === undefined) { | ||
} | ||
function describeFunctionComponentFrame(fn, ownerFn) { | ||
function describeFunctionComponentFrame(fn) { | ||
{ | ||
@@ -707,3 +706,3 @@ return describeNativeComponentFrame(fn, false); | ||
function describeUnknownElementTypeFrameInDEV(type, ownerFn) { | ||
function describeUnknownElementTypeFrameInDEV(type) { | ||
@@ -739,3 +738,3 @@ if (type == null) { | ||
// Memo may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(type.type); | ||
@@ -750,3 +749,3 @@ case REACT_LAZY_TYPE: | ||
// Lazy may contain any component type so we recursively resolve it. | ||
return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn); | ||
return describeUnknownElementTypeFrameInDEV(init(payload)); | ||
} catch (x) {} | ||
@@ -764,7 +763,6 @@ } | ||
var specialPropKeyWarningShown; | ||
var specialPropRefWarningShown; | ||
var didWarnAboutStringRefs; | ||
var didWarnAboutElementRef; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
didWarnAboutElementRef = {}; | ||
} | ||
@@ -800,16 +798,2 @@ | ||
function warnIfStringRefCannotBeAutoConverted(config, self) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { | ||
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); | ||
if (!didWarnAboutStringRefs[componentName]) { | ||
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://react.dev/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
function defineKeyPropWarningGetter(props, displayName) { | ||
@@ -833,19 +817,16 @@ { | ||
function defineRefPropWarningGetter(props, displayName) { | ||
function elementRefGetterWithDeprecationWarning() { | ||
{ | ||
{ | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
var componentName = getComponentNameFromType(this.type); | ||
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://react.dev/link/special-props)', displayName); | ||
} | ||
}; | ||
if (!didWarnAboutElementRef[componentName]) { | ||
didWarnAboutElementRef[componentName] = true; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
Object.defineProperty(props, 'ref', { | ||
get: warnAboutAccessingRef, | ||
configurable: true | ||
}); | ||
} | ||
error('Accessing element.ref was removed in React 19. ref is now a ' + 'regular prop. It will be removed from the JSX Element ' + 'type in a future release.'); | ||
} // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
var refProp = this.props.ref; | ||
return refProp !== undefined ? refProp : null; | ||
} | ||
@@ -879,3 +860,11 @@ } | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -886,4 +875,7 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In dev, make `ref` a non-enumerable property with a warning. It's non- | ||
// enumerable so that test matchers and serializers don't access it and | ||
// trigger the warning. | ||
// | ||
// `ref` will be removed from the element completely in a future release. | ||
element = { | ||
@@ -895,3 +887,2 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: key, | ||
ref: ref, | ||
props: props, | ||
@@ -901,2 +892,27 @@ // Record the component responsible for creating this element. | ||
}; | ||
if (ref !== null) { | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
get: elementRefGetterWithDeprecationWarning | ||
}); | ||
} else { | ||
// Don't warn on access if a ref is not given. This reduces false | ||
// positives in cases where a test serializer uses | ||
// getOwnPropertyDescriptors to compare objects, like Jest does, which is | ||
// a problem because it bypasses non-enumerability. | ||
// | ||
// So unfortunately this will trigger a false positive warning in Jest | ||
// when the diff is printed: | ||
// | ||
// expect(<div ref={ref} />).toEqual(<span ref={ref} />); | ||
// | ||
// A bit sketchy, but this is what we've done for the `props.key` and | ||
// `props.ref` accessors for years, which implies it will be good enough | ||
// for `element.ref`, too. Let's see if anyone complains. | ||
Object.defineProperty(element, 'ref', { | ||
enumerable: false, | ||
value: null | ||
}); | ||
} | ||
} | ||
@@ -1040,5 +1056,2 @@ | ||
var propName; // Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -1068,27 +1081,29 @@ var ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
if (hasValidRef(config)) ; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config, self); | ||
} | ||
} // Remaining properties are added to a new props object | ||
var props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (var propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -1098,3 +1113,3 @@ } | ||
if (key || ref) { | ||
if (key || !enableRefAsProp ) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
@@ -1105,6 +1120,2 @@ | ||
} | ||
if (ref) { | ||
defineRefPropWarningGetter(props, displayName); | ||
} | ||
} | ||
@@ -1229,5 +1240,13 @@ | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; | ||
if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) { | ||
var ownerName = null; | ||
if (typeof element._owner.tag === 'number') { | ||
ownerName = getComponentNameFromType(element._owner.type); | ||
} else if (typeof element._owner.name === 'string') { | ||
ownerName = element._owner.name; | ||
} // Give the component that originally created this child. | ||
childOwner = " It was passed a child from " + ownerName + "."; | ||
} | ||
@@ -1246,4 +1265,3 @@ | ||
if (element) { | ||
var owner = element._owner; | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null); | ||
var stack = describeUnknownElementTypeFrameInDEV(element.type); | ||
ReactDebugCurrentFrame.setExtraStackFrame(stack); | ||
@@ -1294,10 +1312,2 @@ } else { | ||
} | ||
if (fragment.ref !== null) { | ||
setCurrentlyValidatingElement(fragment); | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
setCurrentlyValidatingElement(null); | ||
} | ||
} | ||
@@ -1304,0 +1314,0 @@ } |
@@ -22,14 +22,13 @@ /** | ||
// ----------------------------------------------------------------------------- | ||
// as a normal prop instead of stripping it from the props object. | ||
// Passes `ref` as a normal prop instead of stripping it from the props object | ||
// during element creation. | ||
const enableRefAsProp = true; | ||
const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// $FlowFixMe[method-unbinding] | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function hasValidRef(config) { | ||
return config.ref !== undefined; | ||
} | ||
function hasValidKey(config) { | ||
@@ -65,3 +64,11 @@ | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -72,4 +79,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -82,5 +88,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -100,5 +104,2 @@ } | ||
function jsxProd(type, config, maybeKey) { | ||
let propName; // Reserved names are extracted | ||
const props = {}; | ||
let key = null; | ||
@@ -122,23 +123,27 @@ let ref = null; // Currently, key can be spread in as a prop. This causes a potential | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} // Remaining properties are added to a new props object | ||
let props; | ||
if (!('key' in config)) { | ||
// If key was not spread in, we can reuse the original props object. This | ||
// only works for `jsx`, not `createElement`, because `jsx` is a compiler | ||
// target and the compiler always passes a new object. For `createElement`, | ||
// we can't assume a new object is passed every time because it can be | ||
// called manually. | ||
// | ||
// Spreading key is a warning in dev. In a future release, we will not | ||
// remove a spread key from the props object. (But we'll still warn.) We'll | ||
// always pass the object straight through. | ||
props = config; | ||
} else { | ||
// We need to remove reserved props (key, prop, ref). Create a fresh props | ||
// object and copy over all the non-reserved props. We don't use `delete` | ||
// because in V8 it will deopt the object to dictionary mode. | ||
props = {}; | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref')) { | ||
props[propName] = config[propName]; | ||
} | ||
} // Resolve default props | ||
if (type && type.defaultProps) { | ||
const defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
if (props[propName] === undefined) { | ||
props[propName] = defaultProps[propName]; | ||
for (const propName in config) { | ||
// Skip over reserved prop names | ||
if (propName !== 'key' && (enableRefAsProp )) { | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -145,0 +150,0 @@ } |
@@ -10,5 +10,4 @@ /* | ||
*/ | ||
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; | ||
function p(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&"key"!==b&&"ref"!==b&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=p;exports.jsxDEV=void 0;exports.jsxs=p; | ||
'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxDEV=void 0;exports.jsxs=g; | ||
//# sourceMappingURL=react-jsx-runtime.react-server.production.min.js.map |
@@ -13,3 +13,3 @@ /** | ||
var ReactVersion = '19.0.0-canary-48ec17b86-20240402'; | ||
var ReactVersion = '19.0.0-canary-4c12339ce-20240408'; | ||
@@ -25,3 +25,4 @@ // ATTENTION | ||
const REACT_PROFILER_TYPE = Symbol.for('react.profiler'); | ||
const REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext | ||
const REACT_CONSUMER_TYPE = Symbol.for('react.consumer'); | ||
const REACT_CONTEXT_TYPE = Symbol.for('react.context'); | ||
@@ -224,8 +225,2 @@ const REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); | ||
// ----------------------------------------------------------------------------- | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
const __NEXT_MAJOR__ = false; // Removes legacy style context | ||
// as a normal prop instead of stripping it from the props object. | ||
@@ -235,3 +230,3 @@ // Passes `ref` as a normal prop instead of stripping it from the props object | ||
const enableRefAsProp = __NEXT_MAJOR__; | ||
const enableRefAsProp = true; | ||
@@ -321,3 +316,11 @@ /** | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -328,4 +331,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -338,5 +340,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -361,7 +361,2 @@ } | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} | ||
@@ -376,3 +371,3 @@ if (hasValidKey(config)) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // Even though we don't use these anymore in the runtime, we don't want | ||
propName !== 'key' && (enableRefAsProp ) && // Even though we don't use these anymore in the runtime, we don't want | ||
// them to appear as props, so in createElement we filter them out. | ||
@@ -382,3 +377,5 @@ // We don't have to do this in the jsx() runtime because the jsx() | ||
propName !== '__self' && propName !== '__source') { | ||
props[propName] = config[propName]; | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -422,3 +419,3 @@ } | ||
// exists to avoid the `ref` access warning. | ||
oldElement.ref, undefined, undefined, oldElement._owner, oldElement.props); | ||
null , undefined, undefined, undefined , oldElement.props); | ||
} | ||
@@ -440,12 +437,8 @@ /** | ||
let key = element.key; | ||
let ref = element.ref; // Owner will be preserved, unless ref is overridden | ||
let ref = null ; // Owner will be preserved, unless ref is overridden | ||
let owner = element._owner; | ||
let owner = undefined ; | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
// Silently steal the ref from the parent. | ||
ref = config.ref; | ||
} | ||
@@ -460,12 +453,5 @@ owner = ReactCurrentOwner.current; | ||
let defaultProps; | ||
if (element.type && element.type.defaultProps) { | ||
defaultProps = element.type.defaultProps; | ||
} | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // ...and maybe these, too, though we currently rely on them for | ||
propName !== 'key' && (enableRefAsProp ) && // ...and maybe these, too, though we currently rely on them for | ||
// warnings and debug information in dev. Need to decide if we're OK | ||
@@ -479,8 +465,7 @@ // with dropping them. In the jsx() runtime it's not an issue because | ||
// backwards compatibility. | ||
!(enableRefAsProp )) { | ||
if (config[propName] === undefined && defaultProps !== undefined) { | ||
// Resolve default props | ||
props[propName] = defaultProps[propName]; | ||
} else { | ||
props[propName] = config[propName]; | ||
!(propName === 'ref' && config.ref === undefined)) { | ||
{ | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -651,8 +636,2 @@ } | ||
case 'bigint': | ||
{ | ||
break; | ||
} | ||
// fallthrough for enabled BigInt support | ||
case 'string': | ||
@@ -873,10 +852,7 @@ case 'number': | ||
{ | ||
context.Provider = { | ||
$$typeof: REACT_PROVIDER_TYPE, | ||
context.Provider = context; | ||
context.Consumer = { | ||
$$typeof: REACT_CONSUMER_TYPE, | ||
_context: context | ||
}; | ||
{ | ||
context.Consumer = context; | ||
} | ||
} | ||
@@ -883,0 +859,0 @@ |
@@ -10,25 +10,25 @@ /* | ||
*/ | ||
'use strict';var k=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null} | ||
var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||B}E.prototype.isReactComponent={}; | ||
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||B}var H=G.prototype=new F; | ||
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J={current:null},K={current:null},L={transition:null},M={ReactCurrentDispatcher:J,ReactCurrentCache:K,ReactCurrentBatchConfig:L,ReactCurrentOwner:{current:null}},N=Object.prototype.hasOwnProperty,O=M.ReactCurrentOwner;function P(a,b){return{$$typeof:k,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function Q(a){return"object"===typeof a&&null!==a&&a.$$typeof===k} | ||
function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}var R=/\/+/g;function S(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function T(){} | ||
'use strict';var h=Symbol.for("react.element"),m=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),t=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function z(a){if(null===a||"object"!==typeof a)return null;a=y&&a[y]||a["@@iterator"];return"function"===typeof a?a:null} | ||
var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,C={};function D(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||A}D.prototype.isReactComponent={}; | ||
D.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};D.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function E(){}E.prototype=D.prototype;function F(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||A}var G=F.prototype=new E; | ||
G.constructor=F;B(G,D.prototype);G.isPureReactComponent=!0;var H=Array.isArray,I={current:null},J={current:null},K={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentCache:J,ReactCurrentBatchConfig:K,ReactCurrentOwner:{current:null}},M=Object.prototype.hasOwnProperty,N=L.ReactCurrentOwner;function O(a,b,c,f,d,g,e){c=e.ref;return{$$typeof:h,type:a,key:b,ref:void 0!==c?c:null,props:e}}function P(a,b){return O(a.type,b,null,void 0,void 0,void 0,a.props)} | ||
function Q(a){return"object"===typeof a&&null!==a&&a.$$typeof===h}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}var R=/\/+/g;function S(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function T(){} | ||
function U(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(T,T):(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)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;} | ||
function V(a,b,c,e,d){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;var h=!1;if(null===a)h=!0;else switch(f){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case k:case n:h=!0;break;case y:return h=a._init,V(h(a._payload),b,c,e,d)}}if(h)return d=d(a),h=""===e?"."+S(a,0):e,I(d)?(c="",null!=h&&(c=h.replace(R,"$&/")+"/"),V(d,b,c,"",function(m){return m})):null!=d&&(Q(d)&&(d=P(d,c+(!d.key||a&&a.key===d.key?"":(""+d.key).replace(R,"$&/")+"/")+h)),b.push(d)),1;h=0;var l= | ||
""===e?".":e+":";if(I(a))for(var g=0;g<a.length;g++)e=a[g],f=l+S(e,g),h+=V(e,b,c,f,d);else if(g=A(a),"function"===typeof g)for(a=g.call(a),g=0;!(e=a.next()).done;)e=e.value,f=l+S(e,g++),h+=V(e,b,c,f,d);else if("object"===f){if("function"===typeof a.then)return V(U(a),b,c,e,d);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead."); | ||
}return h}function W(a,b,c){if(null==a)return a;var e=[],d=0;V(a,e,"","",function(f){return b.call(c,f,d++)});return e}function X(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function aa(){return new WeakMap} | ||
function Y(){return{s:0,v:void 0,o:null,p:null}}var Z="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)}; | ||
function ba(){}exports.Children={map:W,forEach:function(a,b,c){W(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;W(a,function(){b++});return b},toArray:function(a){return W(a,function(b){return b})||[]},only:function(a){if(!Q(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w; | ||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M;exports.act=function(){throw Error("act(...) is not supported in production builds of React.");}; | ||
exports.cache=function(a){return function(){var b=K.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(aa);b=c.get(a);void 0===b&&(b=Y(),c.set(a,b));c=0;for(var e=arguments.length;c<e;c++){var d=arguments[c];if("function"===typeof d||"object"===typeof d&&null!==d){var f=b.o;null===f&&(b.o=f=new WeakMap);b=f.get(d);void 0===b&&(b=Y(),f.set(d,b))}else f=b.p,null===f&&(b.p=f=new Map),b=f.get(d),void 0===b&&(b=Y(),f.set(d,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var h=a.apply(null, | ||
arguments);c=b;c.s=1;return c.v=h}catch(l){throw h=b,h.s=2,h.v=l,l;}}}; | ||
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var e=C({},a.props),d=a.key,f=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,h=O.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(g in b)N.call(b,g)&&"key"!==g&&"ref"!==g&&"__self"!==g&&"__source"!==g&&(e[g]=void 0===b[g]&&void 0!==l?l[g]:b[g])}var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){l=Array(g); | ||
for(var m=0;m<g;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:k,type:a.type,key:d,ref:f,props:e,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a}; | ||
exports.createElement=function(a,b,c){var e,d={},f=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(f=""+b.key),b)N.call(b,e)&&"key"!==e&&"ref"!==e&&"__self"!==e&&"__source"!==e&&(d[e]=b[e]);var l=arguments.length-2;if(1===l)d.children=c;else if(1<l){for(var g=Array(l),m=0;m<l;m++)g[m]=arguments[m+2];d.children=g}if(a&&a.defaultProps)for(e in l=a.defaultProps,l)void 0===d[e]&&(d[e]=l[e]);return{$$typeof:k,type:a,key:f,ref:h,props:d,_owner:O.current}};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=Q;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:X}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}}; | ||
exports.startTransition=function(a){var b=L.transition,c=new Set;L.transition={_callbacks:c};var e=L.transition;try{var d=a();"object"===typeof d&&null!==d&&"function"===typeof d.then&&(c.forEach(function(f){return f(e,d)}),d.then(ba,Z))}catch(f){Z(f)}finally{L.transition=b}};exports.unstable_useCacheRefresh=function(){return J.current.useCacheRefresh()};exports.use=function(a){return J.current.use(a)};exports.useActionState=function(a,b,c){return J.current.useActionState(a,b,c)}; | ||
exports.useCallback=function(a,b){return J.current.useCallback(a,b)};exports.useContext=function(a){return J.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return J.current.useDeferredValue(a,b)};exports.useEffect=function(a,b){return J.current.useEffect(a,b)};exports.useId=function(){return J.current.useId()};exports.useImperativeHandle=function(a,b,c){return J.current.useImperativeHandle(a,b,c)}; | ||
exports.useInsertionEffect=function(a,b){return J.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return J.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return J.current.useMemo(a,b)};exports.useOptimistic=function(a,b){return J.current.useOptimistic(a,b)};exports.useReducer=function(a,b,c){return J.current.useReducer(a,b,c)};exports.useRef=function(a){return J.current.useRef(a)};exports.useState=function(a){return J.current.useState(a)}; | ||
exports.useSyncExternalStore=function(a,b,c){return J.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return J.current.useTransition()};exports.version="19.0.0-canary-48ec17b86-20240402"; | ||
function V(a,b,c,f,d){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var e=!1;if(null===a)e=!0;else switch(g){case "bigint":case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case h:case m:e=!0;break;case x:return e=a._init,V(e(a._payload),b,c,f,d)}}if(e)return d=d(a),e=""===f?"."+S(a,0):f,H(d)?(c="",null!=e&&(c=e.replace(R,"$&/")+"/"),V(d,b,c,"",function(Z){return Z})):null!=d&&(Q(d)&&(d=P(d,c+(!d.key||a&&a.key===d.key?"":(""+d.key).replace(R,"$&/")+"/")+e)),b.push(d)), | ||
1;e=0;var l=""===f?".":f+":";if(H(a))for(var k=0;k<a.length;k++)f=a[k],g=l+S(f,k),e+=V(f,b,c,g,d);else if(k=z(a),"function"===typeof k)for(a=k.call(a),k=0;!(f=a.next()).done;)f=f.value,g=l+S(f,k++),e+=V(f,b,c,g,d);else if("object"===g){if("function"===typeof a.then)return V(U(a),b,c,f,d);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead."); | ||
}return e}function W(a,b,c){if(null==a)return a;var f=[],d=0;V(a,f,"","",function(g){return b.call(c,g,d++)});return f}function aa(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function ba(){return new WeakMap} | ||
function X(){return{s:0,v:void 0,o:null,p:null}}var Y="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)}; | ||
function ca(){}exports.Children={map:W,forEach:function(a,b,c){W(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;W(a,function(){b++});return b},toArray:function(a){return W(a,function(b){return b})||[]},only:function(a){if(!Q(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=D;exports.Fragment=n;exports.Profiler=q;exports.PureComponent=F;exports.StrictMode=p;exports.Suspense=v; | ||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L;exports.act=function(){throw Error("act(...) is not supported in production builds of React.");}; | ||
exports.cache=function(a){return function(){var b=J.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(ba);b=c.get(a);void 0===b&&(b=X(),c.set(a,b));c=0;for(var f=arguments.length;c<f;c++){var d=arguments[c];if("function"===typeof d||"object"===typeof d&&null!==d){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(d);void 0===b&&(b=X(),g.set(d,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(d),void 0===b&&(b=X(),g.set(d,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var e=a.apply(null, | ||
arguments);c=b;c.s=1;return c.v=e}catch(l){throw e=b,e.s=2,e.v=l,l;}}}; | ||
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var f=B({},a.props),d=a.key,g=void 0;if(null!=b)for(e in void 0!==b.ref&&(g=N.current),void 0!==b.key&&(d=""+b.key),b)!M.call(b,e)||"key"===e||"__self"===e||"__source"===e||"ref"===e&&void 0===b.ref||(f[e]=b[e]);var e=arguments.length-2;if(1===e)f.children=c;else if(1<e){for(var l=Array(e),k=0;k<e;k++)l[k]=arguments[k+2];f.children=l}return O(a.type,d,null,void 0, | ||
void 0,g,f)};exports.createContext=function(a){a={$$typeof:t,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider=a;a.Consumer={$$typeof:r,_context:a};return a}; | ||
exports.createElement=function(a,b,c){var f,d={},g=null;if(null!=b)for(f in void 0!==b.key&&(g=""+b.key),b)M.call(b,f)&&"key"!==f&&"__self"!==f&&"__source"!==f&&(d[f]=b[f]);var e=arguments.length-2;if(1===e)d.children=c;else if(1<e){for(var l=Array(e),k=0;k<e;k++)l[k]=arguments[k+2];d.children=l}if(a&&a.defaultProps)for(f in e=a.defaultProps,e)void 0===d[f]&&(d[f]=e[f]);return O(a,g,null,void 0,void 0,N.current,d)};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:u,render:a}};exports.isValidElement=Q;exports.lazy=function(a){return{$$typeof:x,_payload:{_status:-1,_result:a},_init:aa}};exports.memo=function(a,b){return{$$typeof:w,type:a,compare:void 0===b?null:b}}; | ||
exports.startTransition=function(a){var b=K.transition,c=new Set;K.transition={_callbacks:c};var f=K.transition;try{var d=a();"object"===typeof d&&null!==d&&"function"===typeof d.then&&(c.forEach(function(g){return g(f,d)}),d.then(ca,Y))}catch(g){Y(g)}finally{K.transition=b}};exports.unstable_useCacheRefresh=function(){return I.current.useCacheRefresh()};exports.use=function(a){return I.current.use(a)};exports.useActionState=function(a,b,c){return I.current.useActionState(a,b,c)}; | ||
exports.useCallback=function(a,b){return I.current.useCallback(a,b)};exports.useContext=function(a){return I.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return I.current.useDeferredValue(a,b)};exports.useEffect=function(a,b){return I.current.useEffect(a,b)};exports.useId=function(){return I.current.useId()};exports.useImperativeHandle=function(a,b,c){return I.current.useImperativeHandle(a,b,c)}; | ||
exports.useInsertionEffect=function(a,b){return I.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return I.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return I.current.useMemo(a,b)};exports.useOptimistic=function(a,b){return I.current.useOptimistic(a,b)};exports.useReducer=function(a,b,c){return I.current.useReducer(a,b,c)};exports.useRef=function(a){return I.current.useRef(a)};exports.useState=function(a){return I.current.useState(a)}; | ||
exports.useSyncExternalStore=function(a,b,c){return I.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return I.current.useTransition()};exports.version="19.0.0-canary-4c12339ce-20240408"; | ||
//# sourceMappingURL=react.production.min.js.map |
@@ -16,8 +16,2 @@ /** | ||
// ----------------------------------------------------------------------------- | ||
// Ready for next major. | ||
// | ||
// Alias __NEXT_MAJOR__ to false for easier skimming. | ||
// ----------------------------------------------------------------------------- | ||
const __NEXT_MAJOR__ = false; // Removes legacy style context | ||
// as a normal prop instead of stripping it from the props object. | ||
@@ -27,3 +21,3 @@ // Passes `ref` as a normal prop instead of stripping it from the props object | ||
const enableRefAsProp = __NEXT_MAJOR__; | ||
const enableRefAsProp = true; | ||
@@ -65,4 +59,4 @@ /** | ||
if (options && options.signal && options.signal !== dispatcher.getCacheSignal()) { | ||
// If we're passed a signal that is not ours, then we assume that | ||
if (options && options.signal) { | ||
// If we're passed a signal, then we assume that | ||
// someone else controls the lifetime of this object and opts out of | ||
@@ -279,3 +273,11 @@ // caching. It's effectively the opt-out mechanism. | ||
{ | ||
ref = _ref; | ||
// When enableRefAsProp is on, ignore whatever was passed as the ref | ||
// argument and treat `props.ref` as the source of truth. The only thing we | ||
// use this for is `element.ref`, which will log a deprecation warning on | ||
// access. In the next release, we can remove `element.ref` as well as the | ||
// `ref` argument. | ||
const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for | ||
// backwards compatibility. | ||
ref = refProp !== undefined ? refProp : null; | ||
} | ||
@@ -286,4 +288,3 @@ | ||
{ | ||
// In prod, `ref` is a regular property. It will be removed in a | ||
// future release. | ||
// In prod, `ref` is a regular property and _owner doesn't exist. | ||
element = { | ||
@@ -296,5 +297,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref, | ||
props, | ||
// Record the component responsible for creating this element. | ||
_owner: owner | ||
props | ||
}; | ||
@@ -319,7 +318,2 @@ } | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
ref = config.ref; | ||
} | ||
} | ||
@@ -334,3 +328,3 @@ if (hasValidKey(config)) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // Even though we don't use these anymore in the runtime, we don't want | ||
propName !== 'key' && (enableRefAsProp ) && // Even though we don't use these anymore in the runtime, we don't want | ||
// them to appear as props, so in createElement we filter them out. | ||
@@ -340,3 +334,5 @@ // We don't have to do this in the jsx() runtime because the jsx() | ||
propName !== '__self' && propName !== '__source') { | ||
props[propName] = config[propName]; | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -380,3 +376,3 @@ } | ||
// exists to avoid the `ref` access warning. | ||
oldElement.ref, undefined, undefined, oldElement._owner, oldElement.props); | ||
null , undefined, undefined, undefined , oldElement.props); | ||
} | ||
@@ -398,12 +394,8 @@ /** | ||
let key = element.key; | ||
let ref = element.ref; // Owner will be preserved, unless ref is overridden | ||
let ref = null ; // Owner will be preserved, unless ref is overridden | ||
let owner = element._owner; | ||
let owner = undefined ; | ||
if (config != null) { | ||
if (hasValidRef(config)) { | ||
{ | ||
// Silently steal the ref from the parent. | ||
ref = config.ref; | ||
} | ||
@@ -418,12 +410,5 @@ owner = ReactCurrentOwner.current; | ||
let defaultProps; | ||
if (element.type && element.type.defaultProps) { | ||
defaultProps = element.type.defaultProps; | ||
} | ||
for (propName in config) { | ||
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names | ||
propName !== 'key' && (propName !== 'ref') && // ...and maybe these, too, though we currently rely on them for | ||
propName !== 'key' && (enableRefAsProp ) && // ...and maybe these, too, though we currently rely on them for | ||
// warnings and debug information in dev. Need to decide if we're OK | ||
@@ -437,8 +422,7 @@ // with dropping them. In the jsx() runtime it's not an issue because | ||
// backwards compatibility. | ||
!(enableRefAsProp )) { | ||
if (config[propName] === undefined && defaultProps !== undefined) { | ||
// Resolve default props | ||
props[propName] = defaultProps[propName]; | ||
} else { | ||
props[propName] = config[propName]; | ||
!(propName === 'ref' && config.ref === undefined)) { | ||
{ | ||
{ | ||
props[propName] = config[propName]; | ||
} | ||
} | ||
@@ -609,8 +593,2 @@ } | ||
case 'bigint': | ||
{ | ||
break; | ||
} | ||
// fallthrough for enabled BigInt support | ||
case 'string': | ||
@@ -1109,3 +1087,3 @@ case 'number': | ||
var ReactVersion = '19.0.0-canary-48ec17b86-20240402'; | ||
var ReactVersion = '19.0.0-canary-4c12339ce-20240408'; | ||
@@ -1112,0 +1090,0 @@ // Patch fetch |
@@ -10,23 +10,22 @@ /* | ||
*/ | ||
'use strict';var m=Object.assign,n={current:null};function p(){return new Map} | ||
if("function"===typeof fetch){var q=fetch,r=function(a,b){var d=n.current;if(!d||b&&b.signal&&b.signal!==d.getCacheSignal())return q(a,b);if("string"!==typeof a||b){var c="string"===typeof a||a instanceof URL?new Request(a,b):a;if("GET"!==c.method&&"HEAD"!==c.method||c.keepalive)return q(a,b);var e=JSON.stringify([c.method,Array.from(c.headers.entries()),c.mode,c.redirect,c.credentials,c.referrer,c.referrerPolicy,c.integrity]);c=c.url}else e='["GET",[],null,"follow",null,null,null,null]',c=a;var f= | ||
d.getCacheForType(p);d=f.get(c);if(void 0===d)a=q(a,b),f.set(c,[e,a]);else{c=0;for(f=d.length;c<f;c+=2){var g=d[c+1];if(d[c]===e)return a=g,a.then(function(k){return k.clone()})}a=q(a,b);d.push(e,a)}return a.then(function(k){return k.clone()})};m(r,q);try{fetch=r}catch(a){try{globalThis.fetch=r}catch(b){console.warn("React was unable to patch the fetch() function in this environment. Suspensey APIs might not work correctly as a result.")}}} | ||
var t={current:null},u={ReactCurrentDispatcher:t,ReactCurrentOwner:{current:null}},v={ReactCurrentCache:n};function w(a){var b="https://react.dev/errors/"+a;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
var x=Array.isArray,y=Symbol.for("react.element"),z=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),F=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),H=Symbol.iterator;function I(a){if(null===a||"object"!==typeof a)return null;a=H&&a[H]||a["@@iterator"];return"function"===typeof a?a:null}var J=Object.prototype.hasOwnProperty,K=u.ReactCurrentOwner; | ||
function L(a,b){return{$$typeof:y,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===y}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(d){return b[d]})}var N=/\/+/g;function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function P(){} | ||
'use strict';var l=Object.assign,m={current:null};function n(){return new Map} | ||
if("function"===typeof fetch){var p=fetch,q=function(a,b){var d=m.current;if(!d||b&&b.signal)return p(a,b);if("string"!==typeof a||b){var c="string"===typeof a||a instanceof URL?new Request(a,b):a;if("GET"!==c.method&&"HEAD"!==c.method||c.keepalive)return p(a,b);var e=JSON.stringify([c.method,Array.from(c.headers.entries()),c.mode,c.redirect,c.credentials,c.referrer,c.referrerPolicy,c.integrity]);c=c.url}else e='["GET",[],null,"follow",null,null,null,null]',c=a;var g=d.getCacheForType(n);d=g.get(c); | ||
if(void 0===d)a=p(a,b),g.set(c,[e,a]);else{c=0;for(g=d.length;c<g;c+=2){var f=d[c+1];if(d[c]===e)return a=f,a.then(function(k){return k.clone()})}a=p(a,b);d.push(e,a)}return a.then(function(k){return k.clone()})};l(q,p);try{fetch=q}catch(a){try{globalThis.fetch=q}catch(b){console.warn("React was unable to patch the fetch() function in this environment. Suspensey APIs might not work correctly as a result.")}}}var r={current:null},t={ReactCurrentDispatcher:r,ReactCurrentOwner:{current:null}},u={ReactCurrentCache:m}; | ||
function v(a){var b="https://react.dev/errors/"+a;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
var w=Array.isArray,x=Symbol.for("react.element"),y=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),C=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),G=Symbol.iterator;function H(a){if(null===a||"object"!==typeof a)return null;a=G&&a[G]||a["@@iterator"];return"function"===typeof a?a:null}var I=Object.prototype.hasOwnProperty,J=t.ReactCurrentOwner; | ||
function K(a,b,d,c,e,g,f){d=f.ref;return{$$typeof:x,type:a,key:b,ref:void 0!==d?d:null,props:f}}function L(a,b){return K(a.type,b,null,void 0,void 0,void 0,a.props)}function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===x}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(d){return b[d]})}var N=/\/+/g;function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function P(){} | ||
function Q(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(P,P):(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)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;} | ||
function R(a,b,d,c,e){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;var g=!1;if(null===a)g=!0;else switch(f){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case y:case z:g=!0;break;case G:return g=a._init,R(g(a._payload),b,d,c,e)}}if(g)return e=e(a),g=""===c?"."+O(a,0):c,x(e)?(d="",null!=g&&(d=g.replace(N,"$&/")+"/"),R(e,b,d,"",function(l){return l})):null!=e&&(M(e)&&(e=L(e,d+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+g)),b.push(e)),1;g=0;var k= | ||
""===c?".":c+":";if(x(a))for(var h=0;h<a.length;h++)c=a[h],f=k+O(c,h),g+=R(c,b,d,f,e);else if(h=I(a),"function"===typeof h)for(a=h.call(a),h=0;!(c=a.next()).done;)c=c.value,f=k+O(c,h++),g+=R(c,b,d,f,e);else if("object"===f){if("function"===typeof a.then)return R(Q(a),b,d,c,e);b=String(a);throw Error(w(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));}return g} | ||
function S(a,b,d){if(null==a)return a;var c=[],e=0;R(a,c,"","",function(f){return b.call(d,f,e++)});return c}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(d){if(0===a._status||-1===a._status)a._status=1,a._result=d},function(d){if(0===a._status||-1===a._status)a._status=2,a._result=d});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function U(){return new WeakMap}function V(){return{s:0,v:void 0,o:null,p:null}} | ||
var W={transition:null},X="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};function Y(){} | ||
exports.Children={map:S,forEach:function(a,b,d){S(a,function(){b.apply(this,arguments)},d)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(b){return b})||[]},only:function(a){if(!M(a))throw Error(w(143));return a}};exports.Fragment=A;exports.Profiler=C;exports.StrictMode=B;exports.Suspense=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u;exports.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v; | ||
exports.cache=function(a){return function(){var b=n.current;if(!b)return a.apply(null,arguments);var d=b.getCacheForType(U);b=d.get(a);void 0===b&&(b=V(),d.set(a,b));d=0;for(var c=arguments.length;d<c;d++){var e=arguments[d];if("function"===typeof e||"object"===typeof e&&null!==e){var f=b.o;null===f&&(b.o=f=new WeakMap);b=f.get(e);void 0===b&&(b=V(),f.set(e,b))}else f=b.p,null===f&&(b.p=f=new Map),b=f.get(e),void 0===b&&(b=V(),f.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var g=a.apply(null, | ||
arguments);d=b;d.s=1;return d.v=g}catch(k){throw g=b,g.s=2,g.v=k,k;}}}; | ||
exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(w(267,a));var c=m({},a.props),e=a.key,f=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,g=K.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(h in b)J.call(b,h)&&"key"!==h&&"ref"!==h&&"__self"!==h&&"__source"!==h&&(c[h]=void 0===b[h]&&void 0!==k?k[h]:b[h])}var h=arguments.length-2;if(1===h)c.children=d;else if(1<h){k=Array(h);for(var l=0;l<h;l++)k[l]=arguments[l+2];c.children= | ||
k}return{$$typeof:y,type:a.type,key:e,ref:f,props:c,_owner:g}}; | ||
exports.createElement=function(a,b,d){var c,e={},f=null,g=null;if(null!=b)for(c in void 0!==b.ref&&(g=b.ref),void 0!==b.key&&(f=""+b.key),b)J.call(b,c)&&"key"!==c&&"ref"!==c&&"__self"!==c&&"__source"!==c&&(e[c]=b[c]);var k=arguments.length-2;if(1===k)e.children=d;else if(1<k){for(var h=Array(k),l=0;l<k;l++)h[l]=arguments[l+2];e.children=h}if(a&&a.defaultProps)for(c in k=a.defaultProps,k)void 0===e[c]&&(e[c]=k[c]);return{$$typeof:y,type:a,key:f,ref:g,props:e,_owner:K.current}};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:D,render:a}};exports.isValidElement=M;exports.lazy=function(a){return{$$typeof:G,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:F,type:a,compare:void 0===b?null:b}}; | ||
exports.startTransition=function(a){var b=W.transition,d=new Set;W.transition={_callbacks:d};var c=W.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(d.forEach(function(f){return f(c,e)}),e.then(Y,X))}catch(f){X(f)}finally{W.transition=b}};exports.use=function(a){return t.current.use(a)};exports.useActionState=function(a,b,d){return t.current.useActionState(a,b,d)};exports.useCallback=function(a,b){return t.current.useCallback(a,b)};exports.useDebugValue=function(){}; | ||
exports.useId=function(){return t.current.useId()};exports.useMemo=function(a,b){return t.current.useMemo(a,b)};exports.version="19.0.0-canary-48ec17b86-20240402"; | ||
function R(a,b,d,c,e){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var f=!1;if(null===a)f=!0;else switch(g){case "bigint":case "string":case "number":f=!0;break;case "object":switch(a.$$typeof){case x:case y:f=!0;break;case F:return f=a._init,R(f(a._payload),b,d,c,e)}}if(f)return e=e(a),f=""===c?"."+O(a,0):c,w(e)?(d="",null!=f&&(d=f.replace(N,"$&/")+"/"),R(e,b,d,"",function(W){return W})):null!=e&&(M(e)&&(e=L(e,d+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+f)),b.push(e)), | ||
1;f=0;var k=""===c?".":c+":";if(w(a))for(var h=0;h<a.length;h++)c=a[h],g=k+O(c,h),f+=R(c,b,d,g,e);else if(h=H(a),"function"===typeof h)for(a=h.call(a),h=0;!(c=a.next()).done;)c=c.value,g=k+O(c,h++),f+=R(c,b,d,g,e);else if("object"===g){if("function"===typeof a.then)return R(Q(a),b,d,c,e);b=String(a);throw Error(v(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));}return f} | ||
function S(a,b,d){if(null==a)return a;var c=[],e=0;R(a,c,"","",function(g){return b.call(d,g,e++)});return c}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(d){if(0===a._status||-1===a._status)a._status=1,a._result=d},function(d){if(0===a._status||-1===a._status)a._status=2,a._result=d});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function U(){return new WeakMap}function V(){return{s:0,v:void 0,o:null,p:null}} | ||
var X={transition:null},Y="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};function Z(){} | ||
exports.Children={map:S,forEach:function(a,b,d){S(a,function(){b.apply(this,arguments)},d)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(b){return b})||[]},only:function(a){if(!M(a))throw Error(v(143));return a}};exports.Fragment=z;exports.Profiler=B;exports.StrictMode=A;exports.Suspense=D;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t;exports.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u; | ||
exports.cache=function(a){return function(){var b=m.current;if(!b)return a.apply(null,arguments);var d=b.getCacheForType(U);b=d.get(a);void 0===b&&(b=V(),d.set(a,b));d=0;for(var c=arguments.length;d<c;d++){var e=arguments[d];if("function"===typeof e||"object"===typeof e&&null!==e){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(e);void 0===b&&(b=V(),g.set(e,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(e),void 0===b&&(b=V(),g.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var f=a.apply(null, | ||
arguments);d=b;d.s=1;return d.v=f}catch(k){throw f=b,f.s=2,f.v=k,k;}}}; | ||
exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(v(267,a));var c=l({},a.props),e=a.key,g=void 0;if(null!=b)for(f in void 0!==b.ref&&(g=J.current),void 0!==b.key&&(e=""+b.key),b)!I.call(b,f)||"key"===f||"__self"===f||"__source"===f||"ref"===f&&void 0===b.ref||(c[f]=b[f]);var f=arguments.length-2;if(1===f)c.children=d;else if(1<f){for(var k=Array(f),h=0;h<f;h++)k[h]=arguments[h+2];c.children=k}return K(a.type,e,null,void 0,void 0,g,c)}; | ||
exports.createElement=function(a,b,d){var c,e={},g=null;if(null!=b)for(c in void 0!==b.key&&(g=""+b.key),b)I.call(b,c)&&"key"!==c&&"__self"!==c&&"__source"!==c&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var k=Array(f),h=0;h<f;h++)k[h]=arguments[h+2];e.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return K(a,g,null,void 0,void 0,J.current,e)};exports.createRef=function(){return{current:null}}; | ||
exports.forwardRef=function(a){return{$$typeof:C,render:a}};exports.isValidElement=M;exports.lazy=function(a){return{$$typeof:F,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:E,type:a,compare:void 0===b?null:b}}; | ||
exports.startTransition=function(a){var b=X.transition,d=new Set;X.transition={_callbacks:d};var c=X.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(d.forEach(function(g){return g(c,e)}),e.then(Z,Y))}catch(g){Y(g)}finally{X.transition=b}};exports.use=function(a){return r.current.use(a)};exports.useActionState=function(a,b,d){return r.current.useActionState(a,b,d)};exports.useCallback=function(a,b){return r.current.useCallback(a,b)};exports.useDebugValue=function(){}; | ||
exports.useId=function(){return r.current.useId()};exports.useMemo=function(a,b){return r.current.useMemo(a,b)};exports.version="19.0.0-canary-4c12339ce-20240408"; | ||
//# sourceMappingURL=react.react-server.production.min.js.map |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.0.0-canary-48ec17b86-20240402", | ||
"version": "19.0.0-canary-4c12339ce-20240408", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
@@ -11,26 +11,25 @@ /** | ||
'use strict';(function(){(function(f,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(f="undefined"!==typeof globalThis?globalThis:f||self,A(f.React={}))})(this,function(f){function A(a){if(null===a||"object"!==typeof a)return null;a=W&&a[W]||a["@@iterator"];return"function"===typeof a?a:null}function y(a,b,c){this.props=a;this.context=b;this.refs=X;this.updater=c||Y}function Z(){}function M(a,b,c){this.props=a;this.context= | ||
b;this.refs=X;this.updater=c||Y}function qa(a,b){return{$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}function ra(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?ra(""+a.key):b.toString(36)}function aa(){}function sa(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"=== | ||
typeof a.status?a.then(aa,aa):(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)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function z(a,b,c,d,e){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var k=!1;if(null===a)k=!0;else switch(g){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case B:case ta:k=!0;break;case ba:return k= | ||
a._init,z(k(a._payload),b,c,d,e)}}if(k)return e=e(a),k=""===d?"."+O(a,0):d,ca(e)?(c="",null!=k&&(c=k.replace(da,"$&/")+"/"),z(e,b,c,"",function(n){return n})):null!=e&&(N(e)&&(e=qa(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(da,"$&/")+"/")+k)),b.push(e)),1;k=0;var l=""===d?".":d+":";if(ca(a))for(var h=0;h<a.length;h++)d=a[h],g=l+O(d,h),k+=z(d,b,c,g,e);else if(h=A(a),"function"===typeof h)for(a=h.call(a),h=0;!(d=a.next()).done;)d=d.value,g=l+O(d,h++),k+=z(d,b,c,g,e);else if("object"===g){if("function"=== | ||
typeof a.then)return z(sa(a),b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return k}function F(a,b,c){if(null==a)return a;var d=[],e=0;z(a,d,"","",function(g){return b.call(c,g,e++)});return d}function ua(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status= | ||
1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function va(){return new WeakMap}function P(){return{s:0,v:void 0,o:null,p:null}}function Q(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<G(e,b))a[d]=b,a[c]=e,c=d;else break a}}function r(a){return 0===a.length?null:a[0]}function H(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!== | ||
b){a[0]=c;a:for(var d=0,e=a.length,g=e>>>1;d<g;){var k=2*(d+1)-1,l=a[k],h=k+1,n=a[h];if(0>G(l,c))h<e&&0>G(n,l)?(a[d]=n,a[h]=c,d=h):(a[d]=l,a[k]=c,d=k);else if(h<e&&0>G(n,c))a[d]=n,a[h]=c,d=h;else break a}}return b}function G(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function I(a){for(var b=r(u);null!==b;){if(null===b.callback)H(u);else if(b.startTime<=a)H(u),b.sortIndex=b.expirationTime,Q(t,b);else break;b=r(u)}}function R(a){C=!1;I(a);if(!w)if(null!==r(t))w=!0,S();else{var b=r(u); | ||
null!==b&&T(R,b.startTime-a)}}function ea(){return x()-fa<ha?!1:!0}function S(){J||(J=!0,K())}function T(a,b){D=ia(function(){a(x())},b)}function wa(){}var B=Symbol.for("react.element"),ta=Symbol.for("react.portal"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.strict_mode"),za=Symbol.for("react.profiler"),Aa=Symbol.for("react.provider"),Ba=Symbol.for("react.context"),Ca=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ea=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"), | ||
W=Symbol.iterator,Y={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ja=Object.assign,X={};y.prototype.isReactComponent={};y.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};y.prototype.forceUpdate= | ||
function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Z.prototype=y.prototype;var v=M.prototype=new Z;v.constructor=M;ja(v,y.prototype);v.isPureReactComponent=!0;var ca=Array.isArray,m={current:null},ka={current:null},E={transition:null},U={current:null},la=Object.prototype.hasOwnProperty,da=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Fa=performance;var x=function(){return Fa.now()}}else{var ma=Date,Ga=ma.now();x=function(){return ma.now()-Ga}}var t= | ||
[],u=[],Ha=1,q=null,p=3,L=!1,w=!1,C=!1,ia="function"===typeof setTimeout?setTimeout:null,na="function"===typeof clearTimeout?clearTimeout:null,oa="undefined"!==typeof setImmediate?setImmediate:null,J=!1,D=-1,ha=5,fa=-1,V=function(){if(J){var a=x();fa=a;var b=!0;try{a:{w=!1;C&&(C=!1,na(D),D=-1);L=!0;var c=p;try{b:{I(a);for(q=r(t);null!==q&&!(q.expirationTime>a&&ea());){var d=q.callback;if("function"===typeof d){q.callback=null;p=q.priorityLevel;var e=d(q.expirationTime<=a);a=x();if("function"===typeof e){q.callback= | ||
e;I(a);b=!0;break b}q===r(t)&&H(t);I(a)}else H(t);q=r(t)}if(null!==q)b=!0;else{var g=r(u);null!==g&&T(R,g.startTime-a);b=!1}}break a}finally{q=null,p=c,L=!1}b=void 0}}finally{b?K():J=!1}}};if("function"===typeof oa)var K=function(){oa(V)};else if("undefined"!==typeof MessageChannel){v=new MessageChannel;var Ia=v.port2;v.port1.onmessage=V;K=function(){Ia.postMessage(null)}}else K=function(){ia(V,0)};v={ReactCurrentDispatcher:m,ReactCurrentCache:ka,ReactCurrentOwner:U,ReactCurrentBatchConfig:E,Scheduler:{__proto__:null, | ||
unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2,unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){w||L||(w=!0,S())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ha=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return p}, | ||
unstable_getFirstCallbackNode:function(){return r(t)},unstable_next:function(a){switch(p){case 1:case 2:case 3:var b=3;break;default:b=p}var c=p;p=b;try{return a()}finally{p=c}},get unstable_now(){return x},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=p;p=a;try{return b()}finally{p=c}},unstable_scheduleCallback:function(a,b,c){var d=x();"object"===typeof c&&null!== | ||
c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Ha++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,Q(u,a),null===r(t)&&a===r(u)&&(C?(na(D),D=-1):C=!0,T(R,c-d))):(a.sortIndex=e,Q(t,a),w||L||(w=!0,S()));return a},unstable_shouldYield:ea,unstable_wrapCallback:function(a){var b=p;return function(){var c=p;p=b;try{return a.apply(this,arguments)}finally{p= | ||
c}}}}};var pa="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};f.Children={map:F,forEach:function(a, | ||
b,c){F(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;F(a,function(){b++});return b},toArray:function(a){return F(a,function(b){return b})||[]},only:function(a){if(!N(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};f.Component=y;f.Fragment=xa;f.Profiler=za;f.PureComponent=M;f.StrictMode=ya;f.Suspense=Da;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v;f.act=function(a){throw Error("act(...) is not supported in production builds of React."); | ||
};f.cache=function(a){return function(){var b=ka.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(va);b=c.get(a);void 0===b&&(b=P(),c.set(a,b));c=0;for(var d=arguments.length;c<d;c++){var e=arguments[c];if("function"===typeof e||"object"===typeof e&&null!==e){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(e);void 0===b&&(b=P(),g.set(e,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(e),void 0===b&&(b=P(),g.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var k=a.apply(null, | ||
arguments);c=b;c.s=1;return c.v=k}catch(l){throw k=b,k.s=2,k.v=l,l;}}};f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var d=ja({},a.props),e=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=U.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(h in b)la.call(b,h)&&"key"!==h&&"ref"!==h&&"__self"!==h&&"__source"!==h&&(d[h]=void 0===b[h]&&void 0!==l?l[h]:b[h])}var h= | ||
arguments.length-2;if(1===h)d.children=c;else if(1<h){l=Array(h);for(var n=0;n<h;n++)l[n]=arguments[n+2];d.children=l}return{$$typeof:B,type:a.type,key:e,ref:g,props:d,_owner:k}};f.createContext=function(a){a={$$typeof:Ba,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Aa,_context:a};return a.Consumer=a};f.createElement=function(a,b,c){var d,e={},g=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)la.call(b,d)&& | ||
"key"!==d&&"ref"!==d&&"__self"!==d&&"__source"!==d&&(e[d]=b[d]);var l=arguments.length-2;if(1===l)e.children=c;else if(1<l){for(var h=Array(l),n=0;n<l;n++)h[n]=arguments[n+2];e.children=h}if(a&&a.defaultProps)for(d in l=a.defaultProps,l)void 0===e[d]&&(e[d]=l[d]);return{$$typeof:B,type:a,key:g,ref:k,props:e,_owner:U.current}};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:Ca,render:a}};f.isValidElement=N;f.lazy=function(a){return{$$typeof:ba,_payload:{_status:-1, | ||
_result:a},_init:ua}};f.memo=function(a,b){return{$$typeof:Ea,type:a,compare:void 0===b?null:b}};f.startTransition=function(a,b){b=E.transition;var c=new Set;E.transition={_callbacks:c};var d=E.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(g){return g(d,e)}),e.then(wa,pa))}catch(g){pa(g)}finally{E.transition=b}};f.unstable_useCacheRefresh=function(){return m.current.useCacheRefresh()};f.use=function(a){return m.current.use(a)};f.useActionState= | ||
function(a,b,c){return m.current.useActionState(a,b,c)};f.useCallback=function(a,b){return m.current.useCallback(a,b)};f.useContext=function(a){return m.current.useContext(a)};f.useDebugValue=function(a,b){};f.useDeferredValue=function(a,b){return m.current.useDeferredValue(a,b)};f.useEffect=function(a,b){return m.current.useEffect(a,b)};f.useId=function(){return m.current.useId()};f.useImperativeHandle=function(a,b,c){return m.current.useImperativeHandle(a,b,c)};f.useInsertionEffect=function(a,b){return m.current.useInsertionEffect(a, | ||
b)};f.useLayoutEffect=function(a,b){return m.current.useLayoutEffect(a,b)};f.useMemo=function(a,b){return m.current.useMemo(a,b)};f.useOptimistic=function(a,b){return m.current.useOptimistic(a,b)};f.useReducer=function(a,b,c){return m.current.useReducer(a,b,c)};f.useRef=function(a){return m.current.useRef(a)};f.useState=function(a){return m.current.useState(a)};f.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a,b,c)};f.useTransition=function(){return m.current.useTransition()}; | ||
f.version="19.0.0-canary-48ec17b86-20240402"})})(); | ||
'use strict';(function(){(function(g,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(g="undefined"!==typeof globalThis?globalThis:g||self,A(g.React={}))})(this,function(g){function A(a){if(null===a||"object"!==typeof a)return null;a=X&&a[X]||a["@@iterator"];return"function"===typeof a?a:null}function x(a,b,c){this.props=a;this.context=b;this.refs=Y;this.updater=c||Z}function aa(){}function L(a,b,c){this.props=a;this.context= | ||
b;this.refs=Y;this.updater=c||Z}function M(a,b,c,d,e,h,f){c=f.ref;return{$$typeof:N,type:a,key:b,ref:void 0!==c?c:null,props:f}}function ra(a,b){return M(a.type,b,null,void 0,void 0,void 0,a.props)}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===N}function sa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function P(a,b){return"object"===typeof a&&null!==a&&null!=a.key?sa(""+a.key):b.toString(36)}function ba(){}function ta(a){switch(a.status){case "fulfilled":return a.value; | ||
case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(ba,ba):(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)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function y(a,b,c,d,e){var h=typeof a;if("undefined"===h||"boolean"===h)a=null;var f=!1;if(null===a)f=!0;else switch(h){case "bigint":case "string":case "number":f=!0; | ||
break;case "object":switch(a.$$typeof){case N:case ua:f=!0;break;case ca:return f=a._init,y(f(a._payload),b,c,d,e)}}if(f)return e=e(a),f=""===d?"."+P(a,0):d,da(e)?(c="",null!=f&&(c=f.replace(ea,"$&/")+"/"),y(e,b,c,"",function(z){return z})):null!=e&&(O(e)&&(e=ra(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(ea,"$&/")+"/")+f)),b.push(e)),1;f=0;var n=""===d?".":d+":";if(da(a))for(var k=0;k<a.length;k++)d=a[k],h=n+P(d,k),f+=y(d,b,c,h,e);else if(k=A(a),"function"===typeof k)for(a=k.call(a),k=0;!(d= | ||
a.next()).done;)d=d.value,h=n+P(d,k++),f+=y(d,b,c,h,e);else if("object"===h){if("function"===typeof a.then)return y(ta(a),b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return f}function E(a,b,c){if(null==a)return a;var d=[],e=0;y(a,d,"","",function(h){return b.call(c,h,e++)});return d}function va(a){if(-1=== | ||
a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function wa(){return new WeakMap}function Q(){return{s:0,v:void 0,o:null,p:null}}function R(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<F(e,b))a[d]=b,a[c]=e,c=d;else break a}}function q(a){return 0=== | ||
a.length?null:a[0]}function G(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,h=e>>>1;d<h;){var f=2*(d+1)-1,n=a[f],k=f+1,z=a[k];if(0>F(n,c))k<e&&0>F(z,n)?(a[d]=z,a[k]=c,d=k):(a[d]=n,a[f]=c,d=f);else if(k<e&&0>F(z,c))a[d]=z,a[k]=c,d=k;else break a}}return b}function F(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function H(a){for(var b=q(t);null!==b;){if(null===b.callback)G(t);else if(b.startTime<=a)G(t),b.sortIndex=b.expirationTime,R(r, | ||
b);else break;b=q(t)}}function S(a){B=!1;H(a);if(!v)if(null!==q(r))v=!0,T();else{var b=q(t);null!==b&&U(S,b.startTime-a)}}function fa(){return w()-ha<ia?!1:!0}function T(){I||(I=!0,J())}function U(a,b){C=ja(function(){a(w())},b)}function xa(){}var N=Symbol.for("react.element"),ua=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.consumer"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"), | ||
Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.memo"),ca=Symbol.for("react.lazy"),X=Symbol.iterator,Z={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ka=Object.assign,Y={};x.prototype.isReactComponent={};x.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables."); | ||
this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};aa.prototype=x.prototype;var u=L.prototype=new aa;u.constructor=L;ka(u,x.prototype);u.isPureReactComponent=!0;var da=Array.isArray,l={current:null},la={current:null},D={transition:null},V={current:null},ma=Object.prototype.hasOwnProperty,ea=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Ga=performance;var w=function(){return Ga.now()}}else{var na= | ||
Date,Ha=na.now();w=function(){return na.now()-Ha}}var r=[],t=[],Ia=1,p=null,m=3,K=!1,v=!1,B=!1,ja="function"===typeof setTimeout?setTimeout:null,oa="function"===typeof clearTimeout?clearTimeout:null,pa="undefined"!==typeof setImmediate?setImmediate:null,I=!1,C=-1,ia=5,ha=-1,W=function(){if(I){var a=w();ha=a;var b=!0;try{a:{v=!1;B&&(B=!1,oa(C),C=-1);K=!0;var c=m;try{b:{H(a);for(p=q(r);null!==p&&!(p.expirationTime>a&&fa());){var d=p.callback;if("function"===typeof d){p.callback=null;m=p.priorityLevel; | ||
var e=d(p.expirationTime<=a);a=w();if("function"===typeof e){p.callback=e;H(a);b=!0;break b}p===q(r)&&G(r);H(a)}else G(r);p=q(r)}if(null!==p)b=!0;else{var h=q(t);null!==h&&U(S,h.startTime-a);b=!1}}break a}finally{p=null,m=c,K=!1}b=void 0}}finally{b?J():I=!1}}};if("function"===typeof pa)var J=function(){pa(W)};else if("undefined"!==typeof MessageChannel){u=new MessageChannel;var Ja=u.port2;u.port1.onmessage=W;J=function(){Ja.postMessage(null)}}else J=function(){ja(W,0)};u={ReactCurrentDispatcher:l, | ||
ReactCurrentCache:la,ReactCurrentOwner:V,ReactCurrentBatchConfig:D,Scheduler:{__proto__:null,unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2,unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){v||K||(v=!0,T())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"): | ||
ia=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return m},unstable_getFirstCallbackNode:function(){return q(r)},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=3;break;default:b=m}var c=m;m=b;try{return a()}finally{m=c}},get unstable_now(){return w},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}}, | ||
unstable_scheduleCallback:function(a,b,c){var d=w();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Ia++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,R(t,a),null===q(r)&&a===q(t)&&(B?(oa(C),C=-1):B=!0,U(S,c-d))):(a.sortIndex=e,R(r,a),v||K||(v=!0,T()));return a},unstable_shouldYield:fa,unstable_wrapCallback:function(a){var b= | ||
m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}}}};var qa="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException", | ||
a);return}console.error(a)};g.Children={map:E,forEach:function(a,b,c){E(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;E(a,function(){b++});return b},toArray:function(a){return E(a,function(b){return b})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};g.Component=x;g.Fragment=ya;g.Profiler=Aa;g.PureComponent=L;g.StrictMode=za;g.Suspense=Ea;g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u;g.act= | ||
function(a){throw Error("act(...) is not supported in production builds of React.");};g.cache=function(a){return function(){var b=la.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(wa);b=c.get(a);void 0===b&&(b=Q(),c.set(a,b));c=0;for(var d=arguments.length;c<d;c++){var e=arguments[c];if("function"===typeof e||"object"===typeof e&&null!==e){var h=b.o;null===h&&(b.o=h=new WeakMap);b=h.get(e);void 0===b&&(b=Q(),h.set(e,b))}else h=b.p,null===h&&(b.p=h=new Map),b=h.get(e),void 0=== | ||
b&&(b=Q(),h.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var f=a.apply(null,arguments);c=b;c.s=1;return c.v=f}catch(n){throw f=b,f.s=2,f.v=n,n;}}};g.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var d=ka({},a.props),e=a.key,h=void 0;if(null!=b)for(f in void 0!==b.ref&&(h=V.current),void 0!==b.key&&(e=""+b.key),b)!ma.call(b,f)||"key"===f||"__self"===f||"__source"===f||"ref"===f&&void 0===b.ref||(d[f]=b[f]); | ||
var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var n=Array(f),k=0;k<f;k++)n[k]=arguments[k+2];d.children=n}return M(a.type,e,null,void 0,void 0,h,d)};g.createContext=function(a){a={$$typeof:Ca,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider=a;a.Consumer={$$typeof:Ba,_context:a};return a};g.createElement=function(a,b,c){var d,e={},h=null;if(null!=b)for(d in void 0!==b.key&&(h=""+b.key),b)ma.call(b,d)&&"key"!==d&&"__self"!==d&&"__source"!==d&& | ||
(e[d]=b[d]);var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){for(var n=Array(f),k=0;k<f;k++)n[k]=arguments[k+2];e.children=n}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===e[d]&&(e[d]=f[d]);return M(a,h,null,void 0,void 0,V.current,e)};g.createRef=function(){return{current:null}};g.forwardRef=function(a){return{$$typeof:Da,render:a}};g.isValidElement=O;g.lazy=function(a){return{$$typeof:ca,_payload:{_status:-1,_result:a},_init:va}};g.memo=function(a,b){return{$$typeof:Fa,type:a, | ||
compare:void 0===b?null:b}};g.startTransition=function(a,b){b=D.transition;var c=new Set;D.transition={_callbacks:c};var d=D.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(h){return h(d,e)}),e.then(xa,qa))}catch(h){qa(h)}finally{D.transition=b}};g.unstable_useCacheRefresh=function(){return l.current.useCacheRefresh()};g.use=function(a){return l.current.use(a)};g.useActionState=function(a,b,c){return l.current.useActionState(a,b,c)};g.useCallback= | ||
function(a,b){return l.current.useCallback(a,b)};g.useContext=function(a){return l.current.useContext(a)};g.useDebugValue=function(a,b){};g.useDeferredValue=function(a,b){return l.current.useDeferredValue(a,b)};g.useEffect=function(a,b){return l.current.useEffect(a,b)};g.useId=function(){return l.current.useId()};g.useImperativeHandle=function(a,b,c){return l.current.useImperativeHandle(a,b,c)};g.useInsertionEffect=function(a,b){return l.current.useInsertionEffect(a,b)};g.useLayoutEffect=function(a, | ||
b){return l.current.useLayoutEffect(a,b)};g.useMemo=function(a,b){return l.current.useMemo(a,b)};g.useOptimistic=function(a,b){return l.current.useOptimistic(a,b)};g.useReducer=function(a,b,c){return l.current.useReducer(a,b,c)};g.useRef=function(a){return l.current.useRef(a)};g.useState=function(a){return l.current.useState(a)};g.useSyncExternalStore=function(a,b,c){return l.current.useSyncExternalStore(a,b,c)};g.useTransition=function(){return l.current.useTransition()};g.version="19.0.0-canary-4c12339ce-20240408"})})(); |
@@ -11,26 +11,25 @@ /** | ||
'use strict';(function(){(function(f,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(f="undefined"!==typeof globalThis?globalThis:f||self,A(f.React={}))})(this,function(f){function A(a){if(null===a||"object"!==typeof a)return null;a=W&&a[W]||a["@@iterator"];return"function"===typeof a?a:null}function y(a,b,c){this.props=a;this.context=b;this.refs=X;this.updater=c||Y}function Z(){}function M(a,b,c){this.props=a;this.context= | ||
b;this.refs=X;this.updater=c||Y}function qa(a,b){return{$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}function ra(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?ra(""+a.key):b.toString(36)}function aa(){}function sa(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"=== | ||
typeof a.status?a.then(aa,aa):(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)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function z(a,b,c,d,e){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var k=!1;if(null===a)k=!0;else switch(g){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case B:case ta:k=!0;break;case ba:return k= | ||
a._init,z(k(a._payload),b,c,d,e)}}if(k)return e=e(a),k=""===d?"."+O(a,0):d,ca(e)?(c="",null!=k&&(c=k.replace(da,"$&/")+"/"),z(e,b,c,"",function(n){return n})):null!=e&&(N(e)&&(e=qa(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(da,"$&/")+"/")+k)),b.push(e)),1;k=0;var l=""===d?".":d+":";if(ca(a))for(var h=0;h<a.length;h++)d=a[h],g=l+O(d,h),k+=z(d,b,c,g,e);else if(h=A(a),"function"===typeof h)for(a=h.call(a),h=0;!(d=a.next()).done;)d=d.value,g=l+O(d,h++),k+=z(d,b,c,g,e);else if("object"===g){if("function"=== | ||
typeof a.then)return z(sa(a),b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return k}function F(a,b,c){if(null==a)return a;var d=[],e=0;z(a,d,"","",function(g){return b.call(c,g,e++)});return d}function ua(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status= | ||
1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function va(){return new WeakMap}function P(){return{s:0,v:void 0,o:null,p:null}}function Q(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<G(e,b))a[d]=b,a[c]=e,c=d;else break a}}function r(a){return 0===a.length?null:a[0]}function H(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!== | ||
b){a[0]=c;a:for(var d=0,e=a.length,g=e>>>1;d<g;){var k=2*(d+1)-1,l=a[k],h=k+1,n=a[h];if(0>G(l,c))h<e&&0>G(n,l)?(a[d]=n,a[h]=c,d=h):(a[d]=l,a[k]=c,d=k);else if(h<e&&0>G(n,c))a[d]=n,a[h]=c,d=h;else break a}}return b}function G(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function I(a){for(var b=r(u);null!==b;){if(null===b.callback)H(u);else if(b.startTime<=a)H(u),b.sortIndex=b.expirationTime,Q(t,b);else break;b=r(u)}}function R(a){C=!1;I(a);if(!w)if(null!==r(t))w=!0,S();else{var b=r(u); | ||
null!==b&&T(R,b.startTime-a)}}function ea(){return x()-fa<ha?!1:!0}function S(){J||(J=!0,K())}function T(a,b){D=ia(function(){a(x())},b)}function wa(){}var B=Symbol.for("react.element"),ta=Symbol.for("react.portal"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.strict_mode"),za=Symbol.for("react.profiler"),Aa=Symbol.for("react.provider"),Ba=Symbol.for("react.context"),Ca=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ea=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"), | ||
W=Symbol.iterator,Y={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ja=Object.assign,X={};y.prototype.isReactComponent={};y.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};y.prototype.forceUpdate= | ||
function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Z.prototype=y.prototype;var v=M.prototype=new Z;v.constructor=M;ja(v,y.prototype);v.isPureReactComponent=!0;var ca=Array.isArray,m={current:null},ka={current:null},E={transition:null},U={current:null},la=Object.prototype.hasOwnProperty,da=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Fa=performance;var x=function(){return Fa.now()}}else{var ma=Date,Ga=ma.now();x=function(){return ma.now()-Ga}}var t= | ||
[],u=[],Ha=1,q=null,p=3,L=!1,w=!1,C=!1,ia="function"===typeof setTimeout?setTimeout:null,na="function"===typeof clearTimeout?clearTimeout:null,oa="undefined"!==typeof setImmediate?setImmediate:null,J=!1,D=-1,ha=5,fa=-1,V=function(){if(J){var a=x();fa=a;var b=!0;try{a:{w=!1;C&&(C=!1,na(D),D=-1);L=!0;var c=p;try{b:{I(a);for(q=r(t);null!==q&&!(q.expirationTime>a&&ea());){var d=q.callback;if("function"===typeof d){q.callback=null;p=q.priorityLevel;var e=d(q.expirationTime<=a);a=x();if("function"===typeof e){q.callback= | ||
e;I(a);b=!0;break b}q===r(t)&&H(t);I(a)}else H(t);q=r(t)}if(null!==q)b=!0;else{var g=r(u);null!==g&&T(R,g.startTime-a);b=!1}}break a}finally{q=null,p=c,L=!1}b=void 0}}finally{b?K():J=!1}}};if("function"===typeof oa)var K=function(){oa(V)};else if("undefined"!==typeof MessageChannel){v=new MessageChannel;var Ia=v.port2;v.port1.onmessage=V;K=function(){Ia.postMessage(null)}}else K=function(){ia(V,0)};v={ReactCurrentDispatcher:m,ReactCurrentCache:ka,ReactCurrentOwner:U,ReactCurrentBatchConfig:E,Scheduler:{__proto__:null, | ||
unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2,unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){w||L||(w=!0,S())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ha=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return p}, | ||
unstable_getFirstCallbackNode:function(){return r(t)},unstable_next:function(a){switch(p){case 1:case 2:case 3:var b=3;break;default:b=p}var c=p;p=b;try{return a()}finally{p=c}},get unstable_now(){return x},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=p;p=a;try{return b()}finally{p=c}},unstable_scheduleCallback:function(a,b,c){var d=x();"object"===typeof c&&null!== | ||
c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Ha++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,Q(u,a),null===r(t)&&a===r(u)&&(C?(na(D),D=-1):C=!0,T(R,c-d))):(a.sortIndex=e,Q(t,a),w||L||(w=!0,S()));return a},unstable_shouldYield:ea,unstable_wrapCallback:function(a){var b=p;return function(){var c=p;p=b;try{return a.apply(this,arguments)}finally{p= | ||
c}}}}};var pa="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};f.Children={map:F,forEach:function(a, | ||
b,c){F(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;F(a,function(){b++});return b},toArray:function(a){return F(a,function(b){return b})||[]},only:function(a){if(!N(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};f.Component=y;f.Fragment=xa;f.Profiler=za;f.PureComponent=M;f.StrictMode=ya;f.Suspense=Da;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v;f.act=function(a){throw Error("act(...) is not supported in production builds of React."); | ||
};f.cache=function(a){return function(){var b=ka.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(va);b=c.get(a);void 0===b&&(b=P(),c.set(a,b));c=0;for(var d=arguments.length;c<d;c++){var e=arguments[c];if("function"===typeof e||"object"===typeof e&&null!==e){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(e);void 0===b&&(b=P(),g.set(e,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(e),void 0===b&&(b=P(),g.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var k=a.apply(null, | ||
arguments);c=b;c.s=1;return c.v=k}catch(l){throw k=b,k.s=2,k.v=l,l;}}};f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var d=ja({},a.props),e=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=U.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(h in b)la.call(b,h)&&"key"!==h&&"ref"!==h&&"__self"!==h&&"__source"!==h&&(d[h]=void 0===b[h]&&void 0!==l?l[h]:b[h])}var h= | ||
arguments.length-2;if(1===h)d.children=c;else if(1<h){l=Array(h);for(var n=0;n<h;n++)l[n]=arguments[n+2];d.children=l}return{$$typeof:B,type:a.type,key:e,ref:g,props:d,_owner:k}};f.createContext=function(a){a={$$typeof:Ba,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Aa,_context:a};return a.Consumer=a};f.createElement=function(a,b,c){var d,e={},g=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)la.call(b,d)&& | ||
"key"!==d&&"ref"!==d&&"__self"!==d&&"__source"!==d&&(e[d]=b[d]);var l=arguments.length-2;if(1===l)e.children=c;else if(1<l){for(var h=Array(l),n=0;n<l;n++)h[n]=arguments[n+2];e.children=h}if(a&&a.defaultProps)for(d in l=a.defaultProps,l)void 0===e[d]&&(e[d]=l[d]);return{$$typeof:B,type:a,key:g,ref:k,props:e,_owner:U.current}};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:Ca,render:a}};f.isValidElement=N;f.lazy=function(a){return{$$typeof:ba,_payload:{_status:-1, | ||
_result:a},_init:ua}};f.memo=function(a,b){return{$$typeof:Ea,type:a,compare:void 0===b?null:b}};f.startTransition=function(a,b){b=E.transition;var c=new Set;E.transition={_callbacks:c};var d=E.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(g){return g(d,e)}),e.then(wa,pa))}catch(g){pa(g)}finally{E.transition=b}};f.unstable_useCacheRefresh=function(){return m.current.useCacheRefresh()};f.use=function(a){return m.current.use(a)};f.useActionState= | ||
function(a,b,c){return m.current.useActionState(a,b,c)};f.useCallback=function(a,b){return m.current.useCallback(a,b)};f.useContext=function(a){return m.current.useContext(a)};f.useDebugValue=function(a,b){};f.useDeferredValue=function(a,b){return m.current.useDeferredValue(a,b)};f.useEffect=function(a,b){return m.current.useEffect(a,b)};f.useId=function(){return m.current.useId()};f.useImperativeHandle=function(a,b,c){return m.current.useImperativeHandle(a,b,c)};f.useInsertionEffect=function(a,b){return m.current.useInsertionEffect(a, | ||
b)};f.useLayoutEffect=function(a,b){return m.current.useLayoutEffect(a,b)};f.useMemo=function(a,b){return m.current.useMemo(a,b)};f.useOptimistic=function(a,b){return m.current.useOptimistic(a,b)};f.useReducer=function(a,b,c){return m.current.useReducer(a,b,c)};f.useRef=function(a){return m.current.useRef(a)};f.useState=function(a){return m.current.useState(a)};f.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a,b,c)};f.useTransition=function(){return m.current.useTransition()}; | ||
f.version="19.0.0-canary-48ec17b86-20240402"})})(); | ||
'use strict';(function(){(function(g,A){"object"===typeof exports&&"undefined"!==typeof module?A(exports):"function"===typeof define&&define.amd?define(["exports"],A):(g="undefined"!==typeof globalThis?globalThis:g||self,A(g.React={}))})(this,function(g){function A(a){if(null===a||"object"!==typeof a)return null;a=X&&a[X]||a["@@iterator"];return"function"===typeof a?a:null}function x(a,b,c){this.props=a;this.context=b;this.refs=Y;this.updater=c||Z}function aa(){}function L(a,b,c){this.props=a;this.context= | ||
b;this.refs=Y;this.updater=c||Z}function M(a,b,c,d,e,h,f){c=f.ref;return{$$typeof:N,type:a,key:b,ref:void 0!==c?c:null,props:f}}function ra(a,b){return M(a.type,b,null,void 0,void 0,void 0,a.props)}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===N}function sa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}function P(a,b){return"object"===typeof a&&null!==a&&null!=a.key?sa(""+a.key):b.toString(36)}function ba(){}function ta(a){switch(a.status){case "fulfilled":return a.value; | ||
case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(ba,ba):(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)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}function y(a,b,c,d,e){var h=typeof a;if("undefined"===h||"boolean"===h)a=null;var f=!1;if(null===a)f=!0;else switch(h){case "bigint":case "string":case "number":f=!0; | ||
break;case "object":switch(a.$$typeof){case N:case ua:f=!0;break;case ca:return f=a._init,y(f(a._payload),b,c,d,e)}}if(f)return e=e(a),f=""===d?"."+P(a,0):d,da(e)?(c="",null!=f&&(c=f.replace(ea,"$&/")+"/"),y(e,b,c,"",function(z){return z})):null!=e&&(O(e)&&(e=ra(e,c+(!e.key||a&&a.key===e.key?"":(""+e.key).replace(ea,"$&/")+"/")+f)),b.push(e)),1;f=0;var n=""===d?".":d+":";if(da(a))for(var k=0;k<a.length;k++)d=a[k],h=n+P(d,k),f+=y(d,b,c,h,e);else if(k=A(a),"function"===typeof k)for(a=k.call(a),k=0;!(d= | ||
a.next()).done;)d=d.value,h=n+P(d,k++),f+=y(d,b,c,h,e);else if("object"===h){if("function"===typeof a.then)return y(ta(a),b,c,d,e);b=String(a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");}return f}function E(a,b,c){if(null==a)return a;var d=[],e=0;y(a,d,"","",function(h){return b.call(c,h,e++)});return d}function va(a){if(-1=== | ||
a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function wa(){return new WeakMap}function Q(){return{s:0,v:void 0,o:null,p:null}}function R(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<F(e,b))a[d]=b,a[c]=e,c=d;else break a}}function q(a){return 0=== | ||
a.length?null:a[0]}function G(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,h=e>>>1;d<h;){var f=2*(d+1)-1,n=a[f],k=f+1,z=a[k];if(0>F(n,c))k<e&&0>F(z,n)?(a[d]=z,a[k]=c,d=k):(a[d]=n,a[f]=c,d=f);else if(k<e&&0>F(z,c))a[d]=z,a[k]=c,d=k;else break a}}return b}function F(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function H(a){for(var b=q(t);null!==b;){if(null===b.callback)G(t);else if(b.startTime<=a)G(t),b.sortIndex=b.expirationTime,R(r, | ||
b);else break;b=q(t)}}function S(a){B=!1;H(a);if(!v)if(null!==q(r))v=!0,T();else{var b=q(t);null!==b&&U(S,b.startTime-a)}}function fa(){return w()-ha<ia?!1:!0}function T(){I||(I=!0,J())}function U(a,b){C=ja(function(){a(w())},b)}function xa(){}var N=Symbol.for("react.element"),ua=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.consumer"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"), | ||
Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.memo"),ca=Symbol.for("react.lazy"),X=Symbol.iterator,Z={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ka=Object.assign,Y={};x.prototype.isReactComponent={};x.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("takes an object of state variables to update or a function which returns an object of state variables."); | ||
this.updater.enqueueSetState(this,a,b,"setState")};x.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};aa.prototype=x.prototype;var u=L.prototype=new aa;u.constructor=L;ka(u,x.prototype);u.isPureReactComponent=!0;var da=Array.isArray,l={current:null},la={current:null},D={transition:null},V={current:null},ma=Object.prototype.hasOwnProperty,ea=/\/+/g;if("object"===typeof performance&&"function"===typeof performance.now){var Ga=performance;var w=function(){return Ga.now()}}else{var na= | ||
Date,Ha=na.now();w=function(){return na.now()-Ha}}var r=[],t=[],Ia=1,p=null,m=3,K=!1,v=!1,B=!1,ja="function"===typeof setTimeout?setTimeout:null,oa="function"===typeof clearTimeout?clearTimeout:null,pa="undefined"!==typeof setImmediate?setImmediate:null,I=!1,C=-1,ia=5,ha=-1,W=function(){if(I){var a=w();ha=a;var b=!0;try{a:{v=!1;B&&(B=!1,oa(C),C=-1);K=!0;var c=m;try{b:{H(a);for(p=q(r);null!==p&&!(p.expirationTime>a&&fa());){var d=p.callback;if("function"===typeof d){p.callback=null;m=p.priorityLevel; | ||
var e=d(p.expirationTime<=a);a=w();if("function"===typeof e){p.callback=e;H(a);b=!0;break b}p===q(r)&&G(r);H(a)}else G(r);p=q(r)}if(null!==p)b=!0;else{var h=q(t);null!==h&&U(S,h.startTime-a);b=!1}}break a}finally{p=null,m=c,K=!1}b=void 0}}finally{b?J():I=!1}}};if("function"===typeof pa)var J=function(){pa(W)};else if("undefined"!==typeof MessageChannel){u=new MessageChannel;var Ja=u.port2;u.port1.onmessage=W;J=function(){Ja.postMessage(null)}}else J=function(){ja(W,0)};u={ReactCurrentDispatcher:l, | ||
ReactCurrentCache:la,ReactCurrentOwner:V,ReactCurrentBatchConfig:D,Scheduler:{__proto__:null,unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_Profiling:null,unstable_UserBlockingPriority:2,unstable_cancelCallback:function(a){a.callback=null},unstable_continueExecution:function(){v||K||(v=!0,T())},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"): | ||
ia=0<a?Math.floor(1E3/a):5},unstable_getCurrentPriorityLevel:function(){return m},unstable_getFirstCallbackNode:function(){return q(r)},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=3;break;default:b=m}var c=m;m=b;try{return a()}finally{m=c}},get unstable_now(){return w},unstable_pauseExecution:function(){},unstable_requestPaint:function(){},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}}, | ||
unstable_scheduleCallback:function(a,b,c){var d=w();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Ia++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,R(t,a),null===q(r)&&a===q(t)&&(B?(oa(C),C=-1):B=!0,U(S,c-d))):(a.sortIndex=e,R(r,a),v||K||(v=!0,T()));return a},unstable_shouldYield:fa,unstable_wrapCallback:function(a){var b= | ||
m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}}}};var qa="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException", | ||
a);return}console.error(a)};g.Children={map:E,forEach:function(a,b,c){E(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;E(a,function(){b++});return b},toArray:function(a){return E(a,function(b){return b})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};g.Component=x;g.Fragment=ya;g.Profiler=Aa;g.PureComponent=L;g.StrictMode=za;g.Suspense=Ea;g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u;g.act= | ||
function(a){throw Error("act(...) is not supported in production builds of React.");};g.cache=function(a){return function(){var b=la.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(wa);b=c.get(a);void 0===b&&(b=Q(),c.set(a,b));c=0;for(var d=arguments.length;c<d;c++){var e=arguments[c];if("function"===typeof e||"object"===typeof e&&null!==e){var h=b.o;null===h&&(b.o=h=new WeakMap);b=h.get(e);void 0===b&&(b=Q(),h.set(e,b))}else h=b.p,null===h&&(b.p=h=new Map),b=h.get(e),void 0=== | ||
b&&(b=Q(),h.set(e,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var f=a.apply(null,arguments);c=b;c.s=1;return c.v=f}catch(n){throw f=b,f.s=2,f.v=n,n;}}};g.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var d=ka({},a.props),e=a.key,h=void 0;if(null!=b)for(f in void 0!==b.ref&&(h=V.current),void 0!==b.key&&(e=""+b.key),b)!ma.call(b,f)||"key"===f||"__self"===f||"__source"===f||"ref"===f&&void 0===b.ref||(d[f]=b[f]); | ||
var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var n=Array(f),k=0;k<f;k++)n[k]=arguments[k+2];d.children=n}return M(a.type,e,null,void 0,void 0,h,d)};g.createContext=function(a){a={$$typeof:Ca,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider=a;a.Consumer={$$typeof:Ba,_context:a};return a};g.createElement=function(a,b,c){var d,e={},h=null;if(null!=b)for(d in void 0!==b.key&&(h=""+b.key),b)ma.call(b,d)&&"key"!==d&&"__self"!==d&&"__source"!==d&& | ||
(e[d]=b[d]);var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){for(var n=Array(f),k=0;k<f;k++)n[k]=arguments[k+2];e.children=n}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===e[d]&&(e[d]=f[d]);return M(a,h,null,void 0,void 0,V.current,e)};g.createRef=function(){return{current:null}};g.forwardRef=function(a){return{$$typeof:Da,render:a}};g.isValidElement=O;g.lazy=function(a){return{$$typeof:ca,_payload:{_status:-1,_result:a},_init:va}};g.memo=function(a,b){return{$$typeof:Fa,type:a, | ||
compare:void 0===b?null:b}};g.startTransition=function(a,b){b=D.transition;var c=new Set;D.transition={_callbacks:c};var d=D.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(h){return h(d,e)}),e.then(xa,qa))}catch(h){qa(h)}finally{D.transition=b}};g.unstable_useCacheRefresh=function(){return l.current.useCacheRefresh()};g.use=function(a){return l.current.use(a)};g.useActionState=function(a,b,c){return l.current.useActionState(a,b,c)};g.useCallback= | ||
function(a,b){return l.current.useCallback(a,b)};g.useContext=function(a){return l.current.useContext(a)};g.useDebugValue=function(a,b){};g.useDeferredValue=function(a,b){return l.current.useDeferredValue(a,b)};g.useEffect=function(a,b){return l.current.useEffect(a,b)};g.useId=function(){return l.current.useId()};g.useImperativeHandle=function(a,b,c){return l.current.useImperativeHandle(a,b,c)};g.useInsertionEffect=function(a,b){return l.current.useInsertionEffect(a,b)};g.useLayoutEffect=function(a, | ||
b){return l.current.useLayoutEffect(a,b)};g.useMemo=function(a,b){return l.current.useMemo(a,b)};g.useOptimistic=function(a,b){return l.current.useOptimistic(a,b)};g.useReducer=function(a,b,c){return l.current.useReducer(a,b,c)};g.useRef=function(a){return l.current.useRef(a)};g.useState=function(a){return l.current.useState(a)};g.useSyncExternalStore=function(a,b,c){return l.current.useSyncExternalStore(a,b,c)};g.useTransition=function(){return l.current.useTransition()};g.version="19.0.0-canary-4c12339ce-20240408"})})(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
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 2 instances in 1 package
1
602485
13200