Comparing version 0.0.0-experimental-e02baf6c92-20240627 to 0.0.0-experimental-e06c72fc-20241215
@@ -14,27 +14,8 @@ /** | ||
(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"); | ||
!supportsCreateTask && | ||
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 = | ||
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
supportsCreateTask = !!console.createTask; | ||
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
exports.c = function (size) { | ||
var dispatcher = ReactSharedInternals.H; | ||
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." | ||
@@ -41,0 +22,0 @@ ); |
@@ -14,20 +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"); | ||
!supportsCreateTask && | ||
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) { | ||
@@ -57,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." | ||
@@ -100,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); | ||
} | ||
} | ||
@@ -135,9 +119,2 @@ function getTaskName(type) { | ||
} | ||
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) { | ||
@@ -154,3 +131,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)", | ||
@@ -170,3 +147,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." | ||
@@ -180,3 +157,2 @@ )); | ||
key, | ||
_ref, | ||
self, | ||
@@ -189,3 +165,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -198,3 +174,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -255,3 +231,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." | ||
@@ -272,3 +248,3 @@ ); | ||
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} />', | ||
@@ -287,3 +263,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -295,11 +270,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -334,6 +309,5 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
supportsCreateTask = !!console.createTask, | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -340,0 +314,0 @@ isArrayImpl = Array.isArray; |
@@ -14,20 +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"); | ||
!supportsCreateTask && | ||
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) { | ||
@@ -57,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." | ||
@@ -100,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); | ||
} | ||
} | ||
@@ -135,9 +119,2 @@ function getTaskName(type) { | ||
} | ||
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) { | ||
@@ -154,3 +131,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)", | ||
@@ -170,3 +147,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." | ||
@@ -180,3 +157,2 @@ )); | ||
key, | ||
_ref, | ||
self, | ||
@@ -189,3 +165,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -198,3 +174,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -255,3 +231,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." | ||
@@ -272,3 +248,3 @@ ); | ||
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} />', | ||
@@ -287,3 +263,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -295,11 +270,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -334,2 +309,3 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -341,5 +317,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var supportsCreateTask = !!console.createTask, | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
isArrayImpl = Array.isArray; | ||
@@ -346,0 +320,0 @@ new ("function" === typeof WeakMap ? WeakMap : Map)(); |
@@ -14,20 +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"); | ||
!supportsCreateTask && | ||
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) { | ||
@@ -57,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." | ||
@@ -100,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); | ||
} | ||
} | ||
@@ -135,9 +119,2 @@ function getTaskName(type) { | ||
} | ||
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) { | ||
@@ -154,3 +131,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)", | ||
@@ -170,3 +147,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." | ||
@@ -180,3 +157,2 @@ )); | ||
key, | ||
_ref, | ||
self, | ||
@@ -189,3 +165,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -198,3 +174,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -255,3 +231,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." | ||
@@ -272,3 +248,3 @@ ); | ||
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} />', | ||
@@ -287,3 +263,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -295,11 +270,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -334,6 +309,5 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
supportsCreateTask = !!console.createTask, | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -340,0 +314,0 @@ isArrayImpl = Array.isArray; |
@@ -14,20 +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"); | ||
!supportsCreateTask && | ||
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) { | ||
@@ -57,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." | ||
@@ -100,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); | ||
} | ||
} | ||
@@ -135,9 +119,2 @@ function getTaskName(type) { | ||
} | ||
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) { | ||
@@ -154,3 +131,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)", | ||
@@ -170,3 +147,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." | ||
@@ -180,3 +157,2 @@ )); | ||
key, | ||
_ref, | ||
self, | ||
@@ -189,3 +165,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -198,3 +174,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -255,3 +231,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." | ||
@@ -272,3 +248,3 @@ ); | ||
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} />', | ||
@@ -287,3 +263,2 @@ isStaticChildren, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -295,11 +270,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -334,2 +309,3 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -341,5 +317,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var supportsCreateTask = !!console.createTask, | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
isArrayImpl = Array.isArray; | ||
@@ -346,0 +320,0 @@ new ("function" === typeof WeakMap ? WeakMap : Map)(); |
@@ -17,3 +17,3 @@ /** | ||
get: function () { | ||
warn( | ||
console.warn( | ||
"%s(...) is deprecated in plain JavaScript React classes. %s", | ||
@@ -26,33 +26,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) { | ||
!supportsCreateTask && | ||
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) { | ||
@@ -73,3 +42,3 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
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.", | ||
@@ -104,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); | ||
} | ||
} | ||
@@ -144,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." | ||
@@ -196,9 +167,2 @@ ), | ||
} | ||
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) { | ||
@@ -215,3 +179,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)", | ||
@@ -231,3 +195,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." | ||
@@ -241,3 +205,2 @@ )); | ||
key, | ||
_ref, | ||
self, | ||
@@ -250,3 +213,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -259,3 +222,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -298,3 +261,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -456,3 +418,3 @@ void 0, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -525,3 +487,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?", | ||
@@ -531,3 +493,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'))", | ||
@@ -543,3 +505,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." | ||
@@ -566,3 +528,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." | ||
@@ -584,3 +546,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. " | ||
@@ -600,4 +562,4 @@ ); | ||
return; | ||
} catch (error$3) { | ||
ReactSharedInternals.thrownErrors.push(error$3); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -632,5 +594,4 @@ else ReactSharedInternals.actQueue = null; | ||
queue.length = 0; | ||
} catch (error$4) { | ||
queue.splice(0, i + 1), | ||
ReactSharedInternals.thrownErrors.push(error$4); | ||
} catch (error) { | ||
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error); | ||
} finally { | ||
@@ -645,16 +606,3 @@ isFlushing = !1; | ||
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); | ||
var ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
supportsCreateTask = !!console.createTask, | ||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
REACT_PORTAL_TYPE = Symbol.for("react.portal"), | ||
@@ -672,3 +620,2 @@ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), | ||
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
@@ -731,2 +678,14 @@ REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
REACT_CLIENT_REFERENCE$1 = 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, | ||
@@ -828,2 +787,7 @@ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); | ||
ReactSharedInternals; | ||
exports.__COMPILER_RUNTIME = { | ||
c: function (size) { | ||
return resolveDispatcher().useMemoCache(size); | ||
} | ||
}; | ||
exports.act = function (callback) { | ||
@@ -838,4 +802,4 @@ var prevActQueue = ReactSharedInternals.actQueue, | ||
var result = callback(); | ||
} catch (error$1) { | ||
ReactSharedInternals.thrownErrors.push(error$1); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -859,3 +823,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 () => ...);" | ||
@@ -880,4 +844,4 @@ )); | ||
}); | ||
} catch (error$2) { | ||
ReactSharedInternals.thrownErrors.push(error$2); | ||
} catch (error$0) { | ||
ReactSharedInternals.thrownErrors.push(error$0); | ||
} | ||
@@ -916,3 +880,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(() => ...)" | ||
@@ -951,3 +915,3 @@ )); | ||
var getCurrentStack = ReactSharedInternals.getCurrentStack; | ||
return null === getCurrentStack ? null : getCurrentStack(null); | ||
return null === getCurrentStack ? null : getCurrentStack(); | ||
}; | ||
@@ -964,7 +928,22 @@ exports.cloneElement = function (element, config, children) { | ||
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) || | ||
@@ -976,8 +955,10 @@ "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; | ||
} | ||
@@ -987,3 +968,2 @@ props = ReactElement( | ||
key, | ||
null, | ||
void 0, | ||
@@ -1024,2 +1004,3 @@ void 0, | ||
} | ||
var propName; | ||
i = {}; | ||
@@ -1032,6 +1013,5 @@ node = 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) && | ||
@@ -1060,13 +1040,12 @@ (checkKeyStringCoercion(config.key), (node = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (node) { | ||
var propName = | ||
node && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
node && defineKeyPropWarningGetter(i, propName); | ||
} | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
node, | ||
null, | ||
void 0, | ||
@@ -1089,3 +1068,3 @@ void 0, | ||
exports.experimental_useOptimistic = function (passthrough, reducer) { | ||
error$jscomp$0( | ||
console.error( | ||
"useOptimistic is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release." | ||
@@ -1095,23 +1074,24 @@ ); | ||
}; | ||
exports.experimental_useResourceEffect = void 0; | ||
exports.forwardRef = function (render) { | ||
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?" | ||
@@ -1163,3 +1143,3 @@ ); | ||
void 0 !== type.getModuleId)) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1192,6 +1172,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 { | ||
@@ -1201,3 +1180,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -1207,4 +1186,4 @@ null !== returnValue && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error$0) { | ||
reportGlobalError(error$0); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
@@ -1216,3 +1195,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." | ||
@@ -1224,3 +1203,2 @@ )), | ||
exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | ||
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
@@ -1257,3 +1235,3 @@ exports.unstable_getCacheForType = function (resourceType) { | ||
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?" | ||
@@ -1311,3 +1289,3 @@ ); | ||
}; | ||
exports.version = "19.0.0-experimental-e02baf6c92-20240627"; | ||
exports.version = "19.1.0-experimental-e06c72fc-20241215"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1314,0 +1292,0 @@ "function" === |
@@ -24,3 +24,2 @@ /** | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), | ||
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
@@ -82,4 +81,4 @@ REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
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 { | ||
@@ -89,3 +88,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -98,3 +97,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -372,2 +370,7 @@ void 0, | ||
ReactSharedInternals; | ||
exports.__COMPILER_RUNTIME = { | ||
c: function (size) { | ||
return ReactSharedInternals.H.useMemoCache(size); | ||
} | ||
}; | ||
exports.act = function () { | ||
@@ -409,3 +412,3 @@ throw Error("act(...) is not supported in production builds of React."); | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -450,3 +453,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); | ||
}; | ||
@@ -462,2 +465,3 @@ exports.createRef = function () { | ||
}; | ||
exports.experimental_useResourceEffect = void 0; | ||
exports.forwardRef = function (render) { | ||
@@ -483,4 +487,4 @@ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }; | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
@@ -490,3 +494,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -503,3 +507,2 @@ null !== returnValue && | ||
exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | ||
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
@@ -576,2 +579,2 @@ exports.unstable_getCacheForType = function (resourceType) { | ||
}; | ||
exports.version = "19.0.0-experimental-e02baf6c92-20240627"; | ||
exports.version = "19.1.0-experimental-e06c72fc-20241215"; |
@@ -14,33 +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) { | ||
!supportsCreateTask && | ||
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) { | ||
@@ -64,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); | ||
} | ||
} | ||
@@ -104,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." | ||
@@ -156,9 +127,2 @@ ), | ||
} | ||
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) { | ||
@@ -175,3 +139,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)", | ||
@@ -191,3 +155,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." | ||
@@ -201,3 +165,2 @@ )); | ||
key, | ||
_ref, | ||
self, | ||
@@ -210,3 +173,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -219,3 +182,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -258,3 +221,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -416,3 +378,3 @@ void 0, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -467,3 +429,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." | ||
@@ -494,3 +456,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?", | ||
@@ -500,3 +462,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'))", | ||
@@ -538,4 +500,3 @@ ctor | ||
ReactSharedInternals.getCurrentStack = null; | ||
var supportsCreateTask = !!console.createTask, | ||
isArrayImpl = Array.isArray, | ||
var isArrayImpl = Array.isArray, | ||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
@@ -553,5 +514,4 @@ REACT_PORTAL_TYPE = Symbol.for("react.portal"), | ||
REACT_MEMO_TYPE = Symbol.for("react.memo"), | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"); | ||
TaintRegistryObjects$1 = Symbol.for("react.debug_trace_mode"); | ||
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
@@ -603,3 +563,3 @@ MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
}; | ||
TaintRegistryValues$1 = Object.getPrototypeOf; | ||
TaintRegistryObjects$1 = Object.getPrototypeOf; | ||
var TaintRegistryObjects = ReactSharedInternals.TaintRegistryObjects, | ||
@@ -610,3 +570,3 @@ TaintRegistryValues = ReactSharedInternals.TaintRegistryValues, | ||
ReactSharedInternals.TaintRegistryPendingRequests, | ||
TypedArrayConstructor = TaintRegistryValues$1( | ||
TypedArrayConstructor = TaintRegistryObjects$1( | ||
Uint32Array.prototype | ||
@@ -694,8 +654,5 @@ ).constructor, | ||
return (fnMap.v = result); | ||
} catch (error$0) { | ||
} catch (error) { | ||
throw ( | ||
((result = dispatcher), | ||
(result.s = 2), | ||
(result.v = error$0), | ||
error$0) | ||
((result = dispatcher), (result.s = 2), (result.v = error), error) | ||
); | ||
@@ -707,3 +664,3 @@ } | ||
var getCurrentStack = ReactSharedInternals.getCurrentStack; | ||
return null === getCurrentStack ? null : getCurrentStack(null); | ||
return null === getCurrentStack ? null : getCurrentStack(); | ||
}; | ||
@@ -720,7 +677,22 @@ exports.cloneElement = function (element, config, children) { | ||
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) || | ||
@@ -732,8 +704,10 @@ "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; | ||
} | ||
@@ -743,3 +717,2 @@ props = ReactElement( | ||
key, | ||
null, | ||
void 0, | ||
@@ -762,2 +735,3 @@ void 0, | ||
} | ||
var propName; | ||
i = {}; | ||
@@ -770,6 +744,5 @@ node = 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) && | ||
@@ -798,13 +771,12 @@ (checkKeyStringCoercion(config.key), (node = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (node) { | ||
var propName = | ||
node && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
node && defineKeyPropWarningGetter(i, propName); | ||
} | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
node, | ||
null, | ||
void 0, | ||
@@ -886,21 +858,21 @@ void 0, | ||
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?" | ||
@@ -952,3 +924,3 @@ ); | ||
void 0 !== type.getModuleId)) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -981,6 +953,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 { | ||
@@ -990,3 +961,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -996,4 +967,4 @@ null !== returnValue && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error$1) { | ||
reportGlobalError(error$1); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
@@ -1005,3 +976,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." | ||
@@ -1012,3 +983,2 @@ )), | ||
}; | ||
exports.unstable_DebugTracingMode = TaintRegistryObjects$1; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_TYPE; | ||
@@ -1048,3 +1018,3 @@ exports.unstable_getCacheForType = function (resourceType) { | ||
}; | ||
exports.version = "19.0.0-experimental-e02baf6c92-20240627"; | ||
exports.version = "19.1.0-experimental-e06c72fc-20241215"; | ||
})(); |
@@ -49,3 +49,2 @@ /** | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), | ||
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
@@ -62,4 +61,4 @@ MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
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 { | ||
@@ -69,3 +68,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -78,3 +77,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -437,3 +435,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); | ||
}; | ||
@@ -462,3 +460,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); | ||
}; | ||
@@ -532,4 +530,4 @@ exports.createRef = function () { | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
@@ -539,3 +537,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -551,3 +549,2 @@ null !== returnValue && | ||
}; | ||
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_TYPE; | ||
@@ -579,2 +576,2 @@ exports.unstable_getCacheForType = function (resourceType) { | ||
}; | ||
exports.version = "19.0.0-experimental-e02baf6c92-20240627"; | ||
exports.version = "19.1.0-experimental-e06c72fc-20241215"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "0.0.0-experimental-e02baf6c92-20240627", | ||
"version": "0.0.0-experimental-e06c72fc-20241215", | ||
"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
177023
5014