Comparing version 19.0.0-rc-58af67a8f8-20240628 to 19.0.0-rc-5c56b873-20241107
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
var ReactSharedInternals = | ||
@@ -37,3 +20,3 @@ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
null === dispatcher && | ||
error( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -40,0 +23,0 @@ ); |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -185,60 +176,60 @@ function describeNativeComponentFrame(fn, construct) { | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -252,5 +243,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -260,43 +251,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -312,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -365,9 +360,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -384,3 +372,3 @@ if (hasOwnProperty.call(config, "key")) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` 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)", | ||
@@ -400,3 +388,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.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." | ||
@@ -407,4 +395,4 @@ )); | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -417,3 +405,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -479,3 +467,3 @@ enumerable: !1, | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -497,10 +485,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -523,3 +513,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -538,3 +528,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -546,16 +535,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -623,3 +605,3 @@ function validateChildKeys(node, parentType) { | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -660,5 +642,5 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -678,2 +660,3 @@ assign = Object.assign, | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -680,0 +663,0 @@ var componentFrameCache = new ( |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternalsServer.getCurrentStack && | ||
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -185,60 +176,60 @@ function describeNativeComponentFrame(fn, construct) { | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -252,5 +243,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -260,43 +251,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -312,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -365,9 +360,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -384,3 +372,3 @@ if (hasOwnProperty.call(config, "key")) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` 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)", | ||
@@ -400,3 +388,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.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." | ||
@@ -407,4 +395,4 @@ )); | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -417,3 +405,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -479,3 +467,3 @@ enumerable: !1, | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -497,10 +485,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -523,3 +513,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -538,3 +528,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -546,16 +535,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -623,3 +605,3 @@ function validateChildKeys(node, parentType) { | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -660,2 +642,3 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -667,4 +650,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
@@ -683,2 +665,3 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -685,0 +668,0 @@ var componentFrameCache = new ( |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -185,60 +176,60 @@ function describeNativeComponentFrame(fn, construct) { | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -252,5 +243,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -260,43 +251,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -312,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -365,9 +360,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -384,3 +372,3 @@ if (hasOwnProperty.call(config, "key")) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` 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)", | ||
@@ -400,3 +388,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.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." | ||
@@ -407,4 +395,4 @@ )); | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -417,3 +405,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -479,3 +467,3 @@ enumerable: !1, | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -497,10 +485,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -523,3 +513,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -538,3 +528,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -546,16 +535,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -623,3 +605,3 @@ function validateChildKeys(node, parentType) { | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -660,5 +642,5 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -678,2 +660,3 @@ assign = Object.assign, | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -680,0 +663,0 @@ var componentFrameCache = new ( |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternalsServer.getCurrentStack && | ||
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -185,60 +176,60 @@ function describeNativeComponentFrame(fn, construct) { | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -252,5 +243,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -260,43 +251,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -312,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -365,9 +360,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -384,3 +372,3 @@ if (hasOwnProperty.call(config, "key")) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` 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)", | ||
@@ -400,3 +388,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.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." | ||
@@ -407,4 +395,4 @@ )); | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -417,3 +405,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -479,3 +467,3 @@ enumerable: !1, | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -497,10 +485,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -523,3 +513,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -538,3 +528,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -546,16 +535,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -623,3 +605,3 @@ function validateChildKeys(node, parentType) { | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -660,2 +642,3 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -667,4 +650,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
@@ -683,2 +665,3 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -685,0 +668,0 @@ var componentFrameCache = new ( |
@@ -17,3 +17,3 @@ /** | ||
get: function () { | ||
warn( | ||
console.warn( | ||
"%s(...) is deprecated in plain JavaScript React classes. %s", | ||
@@ -34,32 +34,2 @@ info[0], | ||
} | ||
function warn(format) { | ||
for ( | ||
var _len = arguments.length, | ||
args = Array(1 < _len ? _len - 1 : 0), | ||
_key = 1; | ||
_key < _len; | ||
_key++ | ||
) | ||
args[_key - 1] = arguments[_key]; | ||
printWarning("warn", format, args, Error("react-stack-top-frame")); | ||
} | ||
function error$jscomp$0(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
printWarning("error", format, args, Error("react-stack-top-frame")); | ||
} | ||
function printWarning(level, format, args, currentStack) { | ||
ReactSharedInternals.getCurrentStack && | ||
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)), | ||
"" !== currentStack && | ||
((format += "%s"), (args = args.concat([currentStack])))); | ||
args.unshift(format); | ||
Function.prototype.apply.call(console[level], console, args); | ||
} | ||
function warnNoop(publicInstance, callerName) { | ||
@@ -72,3 +42,3 @@ publicInstance = | ||
didWarnStateUpdateForUnmountedComponent[warningKey] || | ||
(error$jscomp$0( | ||
(console.error( | ||
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", | ||
@@ -103,16 +73,18 @@ callerName, | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error$jscomp$0( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -143,3 +115,3 @@ function getComponentNameFromType(type) { | ||
("number" === typeof type.tag && | ||
error$jscomp$0( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -240,3 +212,3 @@ ), | ||
0 > disabledDepth && | ||
error$jscomp$0( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -252,4 +224,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -267,60 +245,60 @@ function describeNativeComponentFrame(fn, construct) { | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -334,5 +312,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -342,43 +320,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -394,3 +376,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -447,9 +429,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -466,3 +441,3 @@ if (hasOwnProperty.call(config, "key")) { | ||
((specialPropKeyWarningShown = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"%s: `key` 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)", | ||
@@ -482,3 +457,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error$jscomp$0( | ||
console.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." | ||
@@ -489,4 +464,4 @@ )); | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -499,3 +474,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -526,3 +501,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -592,3 +566,3 @@ void 0, | ||
}; | ||
error$jscomp$0( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -752,3 +726,3 @@ parentType, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -821,3 +795,3 @@ ), | ||
void 0 === ctor && | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
@@ -827,3 +801,3 @@ ctor | ||
"default" in ctor || | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
@@ -839,3 +813,3 @@ ctor | ||
null === dispatcher && | ||
error$jscomp$0( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -859,3 +833,3 @@ ); | ||
"undefined" === typeof MessageChannel && | ||
error$jscomp$0( | ||
console.error( | ||
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." | ||
@@ -877,3 +851,3 @@ )); | ||
prevActScopeDepth !== actScopeDepth - 1 && | ||
error$jscomp$0( | ||
console.error( | ||
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " | ||
@@ -893,4 +867,4 @@ ); | ||
return; | ||
} catch (error$5) { | ||
ReactSharedInternals.thrownErrors.push(error$5); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -925,5 +899,4 @@ else ReactSharedInternals.actQueue = null; | ||
queue.length = 0; | ||
} catch (error$6) { | ||
queue.splice(0, i + 1), | ||
ReactSharedInternals.thrownErrors.push(error$6); | ||
} catch (error) { | ||
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error); | ||
} finally { | ||
@@ -953,14 +926,2 @@ isFlushing = !1; | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
didWarnStateUpdateForUnmountedComponent = {}, | ||
@@ -1020,2 +981,14 @@ ReactNoopUpdateQueue = { | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -1033,2 +1006,3 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -1137,4 +1111,4 @@ var componentFrameCache = new ( | ||
var result = callback(); | ||
} catch (error$3) { | ||
ReactSharedInternals.thrownErrors.push(error$3); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -1158,3 +1132,3 @@ if (0 < ReactSharedInternals.thrownErrors.length) | ||
((didWarnNoAwaitAct = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" | ||
@@ -1179,4 +1153,4 @@ )); | ||
}); | ||
} catch (error$4) { | ||
ReactSharedInternals.thrownErrors.push(error$4); | ||
} catch (error$2) { | ||
ReactSharedInternals.thrownErrors.push(error$2); | ||
} | ||
@@ -1215,3 +1189,3 @@ if (0 < ReactSharedInternals.thrownErrors.length) { | ||
((didWarnNoAwaitAct = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)" | ||
@@ -1258,7 +1232,22 @@ )); | ||
owner = element._owner; | ||
if (null != config) | ||
for (propName in (hasValidRef(config) && (owner = getOwner()), | ||
if (null != config) { | ||
var JSCompiler_inline_result; | ||
a: { | ||
if ( | ||
hasOwnProperty.call(config, "ref") && | ||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor( | ||
config, | ||
"ref" | ||
).get) && | ||
JSCompiler_inline_result.isReactWarning | ||
) { | ||
JSCompiler_inline_result = !1; | ||
break a; | ||
} | ||
JSCompiler_inline_result = void 0 !== config.ref; | ||
} | ||
JSCompiler_inline_result && (owner = getOwner()); | ||
hasValidKey(config) && | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)), | ||
config)) | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
for (propName in config) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -1270,18 +1259,12 @@ "key" === propName || | ||
(props[propName] = config[propName]); | ||
} | ||
var propName = arguments.length - 2; | ||
if (1 === propName) props.children = children; | ||
else if (1 < propName) { | ||
for (var childArray = Array(propName), i = 0; i < propName; i++) | ||
childArray[i] = arguments[i + 2]; | ||
props.children = childArray; | ||
JSCompiler_inline_result = Array(propName); | ||
for (var i = 0; i < propName; i++) | ||
JSCompiler_inline_result[i] = arguments[i + 2]; | ||
props.children = JSCompiler_inline_result; | ||
} | ||
props = ReactElement( | ||
element.type, | ||
key, | ||
null, | ||
void 0, | ||
void 0, | ||
owner, | ||
props | ||
); | ||
props = ReactElement(element.type, key, void 0, void 0, owner, props); | ||
for (key = 2; key < arguments.length; key++) | ||
@@ -1328,10 +1311,10 @@ validateChildKeys(arguments[key], props.type); | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
error$jscomp$0( | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
console.error( | ||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -1342,2 +1325,3 @@ typeString, | ||
} | ||
var propName; | ||
i = {}; | ||
@@ -1350,6 +1334,5 @@ typeString = null; | ||
((didWarnAboutOldJSXRuntime = !0), | ||
warn( | ||
console.warn( | ||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" | ||
)), | ||
hasValidRef(config), | ||
hasValidKey(config) && | ||
@@ -1378,18 +1361,10 @@ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (typeString) { | ||
var propName = | ||
typeString && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
typeString && defineKeyPropWarningGetter(i, propName); | ||
} | ||
return ReactElement( | ||
type, | ||
typeString, | ||
null, | ||
void 0, | ||
void 0, | ||
getOwner(), | ||
i | ||
); | ||
: type | ||
); | ||
return ReactElement(type, typeString, void 0, void 0, getOwner(), i); | ||
}; | ||
@@ -1403,21 +1378,21 @@ exports.createRef = function () { | ||
null != render && render.$$typeof === REACT_MEMO_TYPE | ||
? error$jscomp$0( | ||
? console.error( | ||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." | ||
) | ||
: "function" !== typeof render | ||
? error$jscomp$0( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
error$jscomp$0( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
? console.error( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
console.error( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
null != render && | ||
null != render.defaultProps && | ||
error$jscomp$0( | ||
console.error( | ||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" | ||
@@ -1453,3 +1428,3 @@ ); | ||
isValidElementType(type) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1482,6 +1457,5 @@ null === type ? "null" : typeof type | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
var currentTransition = ReactSharedInternals.T; | ||
ReactSharedInternals.T._updatedFibers = new Set(); | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
currentTransition._updatedFibers = new Set(); | ||
try { | ||
@@ -1491,3 +1465,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -1497,4 +1471,4 @@ null !== returnValue && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error$2) { | ||
reportGlobalError(error$2); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
@@ -1506,3 +1480,3 @@ null === prevTransition && | ||
10 < scope && | ||
warn( | ||
console.warn( | ||
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." | ||
@@ -1532,3 +1506,3 @@ )), | ||
Context.$$typeof === REACT_CONSUMER_TYPE && | ||
error$jscomp$0( | ||
console.error( | ||
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?" | ||
@@ -1588,3 +1562,3 @@ ); | ||
}; | ||
exports.version = "19.0.0-rc-58af67a8f8-20240628"; | ||
exports.version = "19.0.0-rc-5c56b873-20241107"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1591,0 +1565,0 @@ "function" === |
@@ -77,4 +77,4 @@ /** | ||
hasOwnProperty = Object.prototype.hasOwnProperty; | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
return { | ||
@@ -84,3 +84,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -93,3 +93,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -397,3 +396,3 @@ void 0, | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -438,3 +437,3 @@ exports.createContext = function (defaultValue) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, null, void 0, void 0, null, props); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
}; | ||
@@ -464,4 +463,4 @@ exports.createRef = function () { | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
@@ -471,3 +470,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -546,2 +545,2 @@ null !== returnValue && | ||
}; | ||
exports.version = "19.0.0-rc-58af67a8f8-20240628"; | ||
exports.version = "19.0.0-rc-5c56b873-20241107"; |
@@ -14,32 +14,2 @@ /** | ||
(function () { | ||
function warn(format) { | ||
for ( | ||
var _len = arguments.length, | ||
args = Array(1 < _len ? _len - 1 : 0), | ||
_key = 1; | ||
_key < _len; | ||
_key++ | ||
) | ||
args[_key - 1] = arguments[_key]; | ||
printWarning("warn", format, args, Error("react-stack-top-frame")); | ||
} | ||
function error$jscomp$0(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
printWarning("error", format, args, Error("react-stack-top-frame")); | ||
} | ||
function printWarning(level, format, args, currentStack) { | ||
ReactSharedInternals.getCurrentStack && | ||
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)), | ||
"" !== currentStack && | ||
((format += "%s"), (args = args.concat([currentStack])))); | ||
args.unshift(format); | ||
Function.prototype.apply.call(console[level], console, args); | ||
} | ||
function getIteratorFn(maybeIterable) { | ||
@@ -63,16 +33,18 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error$jscomp$0( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -103,3 +75,3 @@ function getComponentNameFromType(type) { | ||
("number" === typeof type.tag && | ||
error$jscomp$0( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -200,3 +172,3 @@ ), | ||
0 > disabledDepth && | ||
error$jscomp$0( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -212,4 +184,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -227,60 +205,60 @@ function describeNativeComponentFrame(fn, construct) { | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -294,5 +272,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -302,43 +280,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -354,3 +336,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -407,9 +389,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -426,3 +401,3 @@ if (hasOwnProperty.call(config, "key")) { | ||
((specialPropKeyWarningShown = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"%s: `key` 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)", | ||
@@ -442,3 +417,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error$jscomp$0( | ||
console.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." | ||
@@ -449,4 +424,4 @@ )); | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -459,3 +434,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -486,3 +461,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -552,3 +526,3 @@ void 0, | ||
}; | ||
error$jscomp$0( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -712,3 +686,3 @@ parentType, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -763,3 +737,3 @@ ), | ||
null === dispatcher && | ||
error$jscomp$0( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -790,3 +764,3 @@ ); | ||
void 0 === ctor && | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
@@ -796,3 +770,3 @@ ctor | ||
"default" in ctor || | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
@@ -842,2 +816,3 @@ ctor | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -930,8 +905,5 @@ var componentFrameCache = new ( | ||
return (fnMap.v = result); | ||
} catch (error$2) { | ||
} catch (error) { | ||
throw ( | ||
((result = dispatcher), | ||
(result.s = 2), | ||
(result.v = error$2), | ||
error$2) | ||
((result = dispatcher), (result.s = 2), (result.v = error), error) | ||
); | ||
@@ -951,7 +923,22 @@ } | ||
owner = element._owner; | ||
if (null != config) | ||
for (propName in (hasValidRef(config) && (owner = getOwner()), | ||
if (null != config) { | ||
var JSCompiler_inline_result; | ||
a: { | ||
if ( | ||
hasOwnProperty.call(config, "ref") && | ||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor( | ||
config, | ||
"ref" | ||
).get) && | ||
JSCompiler_inline_result.isReactWarning | ||
) { | ||
JSCompiler_inline_result = !1; | ||
break a; | ||
} | ||
JSCompiler_inline_result = void 0 !== config.ref; | ||
} | ||
JSCompiler_inline_result && (owner = getOwner()); | ||
hasValidKey(config) && | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)), | ||
config)) | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
for (propName in config) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -963,18 +950,12 @@ "key" === propName || | ||
(props[propName] = config[propName]); | ||
} | ||
var propName = arguments.length - 2; | ||
if (1 === propName) props.children = children; | ||
else if (1 < propName) { | ||
for (var childArray = Array(propName), i = 0; i < propName; i++) | ||
childArray[i] = arguments[i + 2]; | ||
props.children = childArray; | ||
JSCompiler_inline_result = Array(propName); | ||
for (var i = 0; i < propName; i++) | ||
JSCompiler_inline_result[i] = arguments[i + 2]; | ||
props.children = JSCompiler_inline_result; | ||
} | ||
props = ReactElement( | ||
element.type, | ||
key, | ||
null, | ||
void 0, | ||
void 0, | ||
owner, | ||
props | ||
); | ||
props = ReactElement(element.type, key, void 0, void 0, owner, props); | ||
for (key = 2; key < arguments.length; key++) | ||
@@ -1003,10 +984,10 @@ validateChildKeys(arguments[key], props.type); | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
error$jscomp$0( | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
console.error( | ||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -1017,2 +998,3 @@ typeString, | ||
} | ||
var propName; | ||
i = {}; | ||
@@ -1025,6 +1007,5 @@ typeString = null; | ||
((didWarnAboutOldJSXRuntime = !0), | ||
warn( | ||
console.warn( | ||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" | ||
)), | ||
hasValidRef(config), | ||
hasValidKey(config) && | ||
@@ -1053,18 +1034,10 @@ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (typeString) { | ||
var propName = | ||
typeString && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
typeString && defineKeyPropWarningGetter(i, propName); | ||
} | ||
return ReactElement( | ||
type, | ||
typeString, | ||
null, | ||
void 0, | ||
void 0, | ||
getOwner(), | ||
i | ||
); | ||
: type | ||
); | ||
return ReactElement(type, typeString, void 0, void 0, getOwner(), i); | ||
}; | ||
@@ -1078,21 +1051,21 @@ exports.createRef = function () { | ||
null != render && render.$$typeof === REACT_MEMO_TYPE | ||
? error$jscomp$0( | ||
? console.error( | ||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." | ||
) | ||
: "function" !== typeof render | ||
? error$jscomp$0( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
error$jscomp$0( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
? console.error( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
console.error( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
null != render && | ||
null != render.defaultProps && | ||
error$jscomp$0( | ||
console.error( | ||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" | ||
@@ -1128,3 +1101,3 @@ ); | ||
isValidElementType(type) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1170,3 +1143,3 @@ null === type ? "null" : typeof type | ||
}; | ||
exports.version = "19.0.0-rc-58af67a8f8-20240628"; | ||
exports.version = "19.0.0-rc-5c56b873-20241107"; | ||
})(); |
@@ -48,4 +48,4 @@ /** | ||
assign = Object.assign; | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
return { | ||
@@ -55,3 +55,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -64,3 +64,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -370,3 +369,3 @@ void 0, | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -395,3 +394,3 @@ exports.createElement = function (type, config, children) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, null, void 0, void 0, null, props); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
}; | ||
@@ -432,2 +431,2 @@ exports.createRef = function () { | ||
}; | ||
exports.version = "19.0.0-rc-58af67a8f8-20240628"; | ||
exports.version = "19.0.0-rc-5c56b873-20241107"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.0.0-rc-58af67a8f8-20240628", | ||
"version": "19.0.0-rc-5c56b873-20241107", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
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
237582
6499