Comparing version
@@ -46,3 +46,3 @@ /** | ||
case REACT_CONTEXT_TYPE: | ||
return (type.displayName || "Context") + ".Provider"; | ||
return type.displayName || "Context"; | ||
case REACT_CONSUMER_TYPE: | ||
@@ -154,13 +154,4 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
} | ||
function ReactElement( | ||
type, | ||
key, | ||
self, | ||
source, | ||
owner, | ||
props, | ||
debugStack, | ||
debugTask | ||
) { | ||
self = props.ref; | ||
function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
var refProp = props.ref; | ||
type = { | ||
@@ -173,3 +164,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== self ? self : null) | ||
null !== (void 0 !== refProp ? refProp : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +204,2 @@ enumerable: !1, | ||
isStaticChildren, | ||
source, | ||
self, | ||
debugStack, | ||
@@ -276,6 +265,4 @@ debugTask | ||
children, | ||
self, | ||
source, | ||
maybeKey, | ||
getOwner(), | ||
maybeKey, | ||
debugStack, | ||
@@ -297,5 +284,4 @@ debugTask | ||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
Symbol.for("react.provider"); | ||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -319,3 +305,3 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
react_stack_bottom_frame: function (callStackForError) { | ||
return callStackForError(); | ||
@@ -326,3 +312,3 @@ } | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
React, | ||
@@ -334,10 +320,3 @@ UnknownOwner | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsxDEV = function ( | ||
type, | ||
config, | ||
maybeKey, | ||
isStaticChildren, | ||
source, | ||
self | ||
) { | ||
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | ||
var trackActualOwner = | ||
@@ -350,4 +329,2 @@ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
isStaticChildren, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -354,0 +331,0 @@ ? Error("react-stack-top-frame") |
@@ -46,3 +46,3 @@ /** | ||
case REACT_CONTEXT_TYPE: | ||
return (type.displayName || "Context") + ".Provider"; | ||
return type.displayName || "Context"; | ||
case REACT_CONSUMER_TYPE: | ||
@@ -154,13 +154,4 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
} | ||
function ReactElement( | ||
type, | ||
key, | ||
self, | ||
source, | ||
owner, | ||
props, | ||
debugStack, | ||
debugTask | ||
) { | ||
self = props.ref; | ||
function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
var refProp = props.ref; | ||
type = { | ||
@@ -173,3 +164,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== self ? self : null) | ||
null !== (void 0 !== refProp ? refProp : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +204,2 @@ enumerable: !1, | ||
isStaticChildren, | ||
source, | ||
self, | ||
debugStack, | ||
@@ -276,6 +265,4 @@ debugTask | ||
children, | ||
self, | ||
source, | ||
maybeKey, | ||
getOwner(), | ||
maybeKey, | ||
debugStack, | ||
@@ -297,5 +284,4 @@ debugTask | ||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
Symbol.for("react.provider"); | ||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -323,3 +309,3 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
react_stack_bottom_frame: function (callStackForError) { | ||
return callStackForError(); | ||
@@ -330,3 +316,3 @@ } | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
React, | ||
@@ -338,3 +324,3 @@ UnknownOwner | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsx = function (type, config, maybeKey, source, self) { | ||
exports.jsx = function (type, config, maybeKey) { | ||
var trackActualOwner = | ||
@@ -347,4 +333,2 @@ 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
!1, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -356,10 +340,3 @@ ? Error("react-stack-top-frame") | ||
}; | ||
exports.jsxDEV = function ( | ||
type, | ||
config, | ||
maybeKey, | ||
isStaticChildren, | ||
source, | ||
self | ||
) { | ||
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | ||
var trackActualOwner = | ||
@@ -372,4 +349,2 @@ 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
isStaticChildren, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -381,3 +356,3 @@ ? Error("react-stack-top-frame") | ||
}; | ||
exports.jsxs = function (type, config, maybeKey, source, self) { | ||
exports.jsxs = function (type, config, maybeKey) { | ||
var trackActualOwner = | ||
@@ -390,4 +365,2 @@ 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
!0, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -394,0 +367,0 @@ ? Error("react-stack-top-frame") |
@@ -46,3 +46,3 @@ /** | ||
case REACT_CONTEXT_TYPE: | ||
return (type.displayName || "Context") + ".Provider"; | ||
return type.displayName || "Context"; | ||
case REACT_CONSUMER_TYPE: | ||
@@ -154,13 +154,4 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
} | ||
function ReactElement( | ||
type, | ||
key, | ||
self, | ||
source, | ||
owner, | ||
props, | ||
debugStack, | ||
debugTask | ||
) { | ||
self = props.ref; | ||
function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
var refProp = props.ref; | ||
type = { | ||
@@ -173,3 +164,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== self ? self : null) | ||
null !== (void 0 !== refProp ? refProp : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +204,2 @@ enumerable: !1, | ||
isStaticChildren, | ||
source, | ||
self, | ||
debugStack, | ||
@@ -276,6 +265,4 @@ debugTask | ||
children, | ||
self, | ||
source, | ||
maybeKey, | ||
getOwner(), | ||
maybeKey, | ||
debugStack, | ||
@@ -297,5 +284,4 @@ debugTask | ||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
Symbol.for("react.provider"); | ||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -319,3 +305,3 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
react_stack_bottom_frame: function (callStackForError) { | ||
return callStackForError(); | ||
@@ -326,3 +312,3 @@ } | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
React, | ||
@@ -334,3 +320,3 @@ UnknownOwner | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsx = function (type, config, maybeKey, source, self) { | ||
exports.jsx = function (type, config, maybeKey) { | ||
var trackActualOwner = | ||
@@ -343,4 +329,2 @@ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
!1, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -352,3 +336,3 @@ ? Error("react-stack-top-frame") | ||
}; | ||
exports.jsxs = function (type, config, maybeKey, source, self) { | ||
exports.jsxs = function (type, config, maybeKey) { | ||
var trackActualOwner = | ||
@@ -361,4 +345,2 @@ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
!0, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -365,0 +347,0 @@ ? Error("react-stack-top-frame") |
@@ -46,3 +46,3 @@ /** | ||
case REACT_CONTEXT_TYPE: | ||
return (type.displayName || "Context") + ".Provider"; | ||
return type.displayName || "Context"; | ||
case REACT_CONSUMER_TYPE: | ||
@@ -154,13 +154,4 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
} | ||
function ReactElement( | ||
type, | ||
key, | ||
self, | ||
source, | ||
owner, | ||
props, | ||
debugStack, | ||
debugTask | ||
) { | ||
self = props.ref; | ||
function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
var refProp = props.ref; | ||
type = { | ||
@@ -173,3 +164,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== self ? self : null) | ||
null !== (void 0 !== refProp ? refProp : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -213,4 +204,2 @@ enumerable: !1, | ||
isStaticChildren, | ||
source, | ||
self, | ||
debugStack, | ||
@@ -276,6 +265,4 @@ debugTask | ||
children, | ||
self, | ||
source, | ||
maybeKey, | ||
getOwner(), | ||
maybeKey, | ||
debugStack, | ||
@@ -297,5 +284,4 @@ debugTask | ||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
Symbol.for("react.provider"); | ||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -323,3 +309,3 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
react_stack_bottom_frame: function (callStackForError) { | ||
return callStackForError(); | ||
@@ -330,3 +316,3 @@ } | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( | ||
React, | ||
@@ -338,3 +324,3 @@ UnknownOwner | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsx = function (type, config, maybeKey, source, self) { | ||
exports.jsx = function (type, config, maybeKey) { | ||
var trackActualOwner = | ||
@@ -347,4 +333,2 @@ 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
!1, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -356,10 +340,3 @@ ? Error("react-stack-top-frame") | ||
}; | ||
exports.jsxDEV = function ( | ||
type, | ||
config, | ||
maybeKey, | ||
isStaticChildren, | ||
source, | ||
self | ||
) { | ||
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | ||
var trackActualOwner = | ||
@@ -372,4 +349,2 @@ 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
isStaticChildren, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -381,3 +356,3 @@ ? Error("react-stack-top-frame") | ||
}; | ||
exports.jsxs = function (type, config, maybeKey, source, self) { | ||
exports.jsxs = function (type, config, maybeKey) { | ||
var trackActualOwner = | ||
@@ -390,4 +365,2 @@ 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
!0, | ||
source, | ||
self, | ||
trackActualOwner | ||
@@ -394,0 +367,0 @@ ? Error("react-stack-top-frame") |
@@ -60,2 +60,3 @@ /** | ||
} | ||
function noop() {} | ||
function testStringCoercion(value) { | ||
@@ -120,3 +121,3 @@ return "" + value; | ||
case REACT_CONTEXT_TYPE: | ||
return (type.displayName || "Context") + ".Provider"; | ||
return type.displayName || "Context"; | ||
case REACT_CONSUMER_TYPE: | ||
@@ -201,13 +202,4 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
} | ||
function ReactElement( | ||
type, | ||
key, | ||
self, | ||
source, | ||
owner, | ||
props, | ||
debugStack, | ||
debugTask | ||
) { | ||
self = props.ref; | ||
function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
var refProp = props.ref; | ||
type = { | ||
@@ -220,3 +212,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== self ? self : null) | ||
null !== (void 0 !== refProp ? refProp : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -259,6 +251,4 @@ enumerable: !1, | ||
newKey, | ||
void 0, | ||
void 0, | ||
oldElement.props, | ||
oldElement._owner, | ||
oldElement.props, | ||
oldElement._debugStack, | ||
@@ -294,3 +284,2 @@ oldElement._debugTask | ||
} | ||
function noop$1() {} | ||
function resolveThenable(thenable) { | ||
@@ -305,3 +294,3 @@ switch (thenable.status) { | ||
("string" === typeof thenable.status | ||
? thenable.then(noop$1, noop$1) | ||
? thenable.then(noop, noop) | ||
: ((thenable.status = "pending"), | ||
@@ -468,31 +457,52 @@ thenable.then( | ||
if (-1 === payload._status) { | ||
var ctor = payload._result; | ||
ctor = ctor(); | ||
ctor.then( | ||
var ioInfo = payload._ioInfo; | ||
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now()); | ||
ioInfo = payload._result; | ||
var thenable = ioInfo(); | ||
thenable.then( | ||
function (moduleObject) { | ||
if (0 === payload._status || -1 === payload._status) | ||
(payload._status = 1), (payload._result = moduleObject); | ||
if (0 === payload._status || -1 === payload._status) { | ||
payload._status = 1; | ||
payload._result = moduleObject; | ||
var _ioInfo = payload._ioInfo; | ||
null != _ioInfo && (_ioInfo.end = performance.now()); | ||
void 0 === thenable.status && | ||
((thenable.status = "fulfilled"), | ||
(thenable.value = moduleObject)); | ||
} | ||
}, | ||
function (error) { | ||
if (0 === payload._status || -1 === payload._status) | ||
(payload._status = 2), (payload._result = error); | ||
if (0 === payload._status || -1 === payload._status) { | ||
payload._status = 2; | ||
payload._result = error; | ||
var _ioInfo2 = payload._ioInfo; | ||
null != _ioInfo2 && (_ioInfo2.end = performance.now()); | ||
void 0 === thenable.status && | ||
((thenable.status = "rejected"), (thenable.reason = error)); | ||
} | ||
} | ||
); | ||
ioInfo = payload._ioInfo; | ||
if (null != ioInfo) { | ||
ioInfo.value = thenable; | ||
var displayName = thenable.displayName; | ||
"string" === typeof displayName && (ioInfo.name = displayName); | ||
} | ||
-1 === payload._status && | ||
((payload._status = 0), (payload._result = ctor)); | ||
((payload._status = 0), (payload._result = thenable)); | ||
} | ||
if (1 === payload._status) | ||
return ( | ||
(ctor = payload._result), | ||
void 0 === ctor && | ||
(ioInfo = payload._result), | ||
void 0 === ioInfo && | ||
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?", | ||
ctor | ||
ioInfo | ||
), | ||
"default" in ctor || | ||
"default" in ioInfo || | ||
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'))", | ||
ctor | ||
ioInfo | ||
), | ||
ctor.default | ||
ioInfo.default | ||
); | ||
@@ -512,3 +522,2 @@ throw payload._result; | ||
} | ||
function noop() {} | ||
function enqueueTask(task) { | ||
@@ -605,5 +614,4 @@ if (null === enqueueTaskImpl) | ||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
Symbol.for("react.provider"); | ||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -692,3 +700,3 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
deprecatedAPIs = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
react_stack_bottom_frame: function (callStackForError) { | ||
return callStackForError(); | ||
@@ -699,5 +707,6 @@ } | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = deprecatedAPIs[ | ||
"react-stack-bottom-frame" | ||
].bind(deprecatedAPIs, UnknownOwner)(); | ||
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind( | ||
deprecatedAPIs, | ||
UnknownOwner | ||
)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
@@ -912,2 +921,5 @@ var didWarnAboutMaps = !1, | ||
}; | ||
exports.cacheSignal = function () { | ||
return null; | ||
}; | ||
exports.captureOwnerStack = function () { | ||
@@ -965,6 +977,4 @@ var getCurrentStack = ReactSharedInternals.getCurrentStack; | ||
key, | ||
void 0, | ||
void 0, | ||
props, | ||
owner, | ||
props, | ||
element._debugStack, | ||
@@ -1045,6 +1055,4 @@ element._debugTask | ||
node, | ||
void 0, | ||
void 0, | ||
i, | ||
getOwner(), | ||
i, | ||
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, | ||
@@ -1102,7 +1110,20 @@ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
exports.lazy = function (ctor) { | ||
return { | ||
$$typeof: REACT_LAZY_TYPE, | ||
_payload: { _status: -1, _result: ctor }, | ||
_init: lazyInitializer | ||
}; | ||
ctor = { _status: -1, _result: ctor }; | ||
var lazyType = { | ||
$$typeof: REACT_LAZY_TYPE, | ||
_payload: ctor, | ||
_init: lazyInitializer | ||
}, | ||
ioInfo = { | ||
name: "lazy", | ||
start: -1, | ||
end: -1, | ||
value: null, | ||
owner: null, | ||
debugStack: Error("react-stack-top-frame"), | ||
debugTask: console.createTask ? console.createTask("lazy()") : null | ||
}; | ||
ctor._ioInfo = ioInfo; | ||
lazyType._debugInfo = [{ awaited: ioInfo }]; | ||
return lazyType; | ||
}; | ||
@@ -1261,3 +1282,3 @@ exports.memo = function (type, compare) { | ||
}; | ||
exports.version = "19.2.0-canary-408d055a-20250430"; | ||
exports.version = "19.2.0-canary-4123f6b7-20250826"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1264,0 +1285,0 @@ "function" === |
@@ -74,7 +74,8 @@ /** | ||
pureComponentPrototype.isPureReactComponent = !0; | ||
var isArrayImpl = Array.isArray, | ||
ReactSharedInternals = { H: null, A: null, T: null, S: null }, | ||
var isArrayImpl = Array.isArray; | ||
function noop() {} | ||
var ReactSharedInternals = { H: null, A: null, T: null, S: null }, | ||
hasOwnProperty = Object.prototype.hasOwnProperty; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
function ReactElement(type, key, props) { | ||
var refProp = props.ref; | ||
return { | ||
@@ -84,3 +85,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== self ? self : null, | ||
ref: void 0 !== refProp ? refProp : null, | ||
props: props | ||
@@ -90,10 +91,3 @@ }; | ||
function cloneAndReplaceKey(oldElement, newKey) { | ||
return ReactElement( | ||
oldElement.type, | ||
newKey, | ||
void 0, | ||
void 0, | ||
void 0, | ||
oldElement.props | ||
); | ||
return ReactElement(oldElement.type, newKey, oldElement.props); | ||
} | ||
@@ -122,3 +116,2 @@ function isValidElement(object) { | ||
} | ||
function noop$1() {} | ||
function resolveThenable(thenable) { | ||
@@ -133,3 +126,3 @@ switch (thenable.status) { | ||
("string" === typeof thenable.status | ||
? thenable.then(noop$1, noop$1) | ||
? thenable.then(noop, noop) | ||
: ((thenable.status = "pending"), | ||
@@ -323,3 +316,2 @@ thenable.then( | ||
}; | ||
function noop() {} | ||
exports.Children = { | ||
@@ -377,2 +369,5 @@ map: mapChildren, | ||
}; | ||
exports.cacheSignal = function () { | ||
return null; | ||
}; | ||
exports.cloneElement = function (element, config, children) { | ||
@@ -384,8 +379,5 @@ if (null === element || void 0 === element) | ||
var props = assign({}, element.props), | ||
key = element.key, | ||
owner = void 0; | ||
key = element.key; | ||
if (null != config) | ||
for (propName in (void 0 !== config.ref && (owner = void 0), | ||
void 0 !== config.key && (key = "" + config.key), | ||
config)) | ||
for (propName in (void 0 !== config.key && (key = "" + config.key), config)) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -404,3 +396,3 @@ "key" === propName || | ||
} | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, props); | ||
}; | ||
@@ -445,3 +437,3 @@ exports.createContext = function (defaultValue) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
return ReactElement(type, key, props); | ||
}; | ||
@@ -554,2 +546,2 @@ exports.createRef = function () { | ||
}; | ||
exports.version = "19.2.0-canary-408d055a-20250430"; | ||
exports.version = "19.2.0-canary-4123f6b7-20250826"; |
@@ -14,2 +14,3 @@ /** | ||
(function () { | ||
function noop() {} | ||
function getIteratorFn(maybeIterable) { | ||
@@ -82,3 +83,3 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
case REACT_CONTEXT_TYPE: | ||
return (type.displayName || "Context") + ".Provider"; | ||
return type.displayName || "Context"; | ||
case REACT_CONSUMER_TYPE: | ||
@@ -163,13 +164,4 @@ return (type._context.displayName || "Context") + ".Consumer"; | ||
} | ||
function ReactElement( | ||
type, | ||
key, | ||
self, | ||
source, | ||
owner, | ||
props, | ||
debugStack, | ||
debugTask | ||
) { | ||
self = props.ref; | ||
function ReactElement(type, key, props, owner, debugStack, debugTask) { | ||
var refProp = props.ref; | ||
type = { | ||
@@ -182,3 +174,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== self ? self : null) | ||
null !== (void 0 !== refProp ? refProp : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -221,6 +213,4 @@ enumerable: !1, | ||
newKey, | ||
void 0, | ||
void 0, | ||
oldElement.props, | ||
oldElement._owner, | ||
oldElement.props, | ||
oldElement._debugStack, | ||
@@ -256,3 +246,2 @@ oldElement._debugTask | ||
} | ||
function noop() {} | ||
function resolveThenable(thenable) { | ||
@@ -437,31 +426,52 @@ switch (thenable.status) { | ||
if (-1 === payload._status) { | ||
var ctor = payload._result; | ||
ctor = ctor(); | ||
ctor.then( | ||
var ioInfo = payload._ioInfo; | ||
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now()); | ||
ioInfo = payload._result; | ||
var thenable = ioInfo(); | ||
thenable.then( | ||
function (moduleObject) { | ||
if (0 === payload._status || -1 === payload._status) | ||
(payload._status = 1), (payload._result = moduleObject); | ||
if (0 === payload._status || -1 === payload._status) { | ||
payload._status = 1; | ||
payload._result = moduleObject; | ||
var _ioInfo = payload._ioInfo; | ||
null != _ioInfo && (_ioInfo.end = performance.now()); | ||
void 0 === thenable.status && | ||
((thenable.status = "fulfilled"), | ||
(thenable.value = moduleObject)); | ||
} | ||
}, | ||
function (error) { | ||
if (0 === payload._status || -1 === payload._status) | ||
(payload._status = 2), (payload._result = error); | ||
if (0 === payload._status || -1 === payload._status) { | ||
payload._status = 2; | ||
payload._result = error; | ||
var _ioInfo2 = payload._ioInfo; | ||
null != _ioInfo2 && (_ioInfo2.end = performance.now()); | ||
void 0 === thenable.status && | ||
((thenable.status = "rejected"), (thenable.reason = error)); | ||
} | ||
} | ||
); | ||
ioInfo = payload._ioInfo; | ||
if (null != ioInfo) { | ||
ioInfo.value = thenable; | ||
var displayName = thenable.displayName; | ||
"string" === typeof displayName && (ioInfo.name = displayName); | ||
} | ||
-1 === payload._status && | ||
((payload._status = 0), (payload._result = ctor)); | ||
((payload._status = 0), (payload._result = thenable)); | ||
} | ||
if (1 === payload._status) | ||
return ( | ||
(ctor = payload._result), | ||
void 0 === ctor && | ||
(ioInfo = payload._result), | ||
void 0 === ioInfo && | ||
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?", | ||
ctor | ||
ioInfo | ||
), | ||
"default" in ctor || | ||
"default" in ioInfo || | ||
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'))", | ||
ctor | ||
ioInfo | ||
), | ||
ctor.default | ||
ioInfo.default | ||
); | ||
@@ -487,5 +497,4 @@ throw payload._result; | ||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | ||
Symbol.for("react.provider"); | ||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | ||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | ||
REACT_CONTEXT_TYPE = Symbol.for("react.context"), | ||
@@ -508,3 +517,3 @@ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), | ||
createFakeCallStack = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
react_stack_bottom_frame: function (callStackForError) { | ||
return callStackForError(); | ||
@@ -516,5 +525,7 @@ } | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = createFakeCallStack[ | ||
"react-stack-bottom-frame" | ||
].bind(createFakeCallStack, UnknownOwner)(); | ||
var unknownOwnerDebugStack = | ||
createFakeCallStack.react_stack_bottom_frame.bind( | ||
createFakeCallStack, | ||
UnknownOwner | ||
)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
@@ -606,2 +617,6 @@ var didWarnAboutMaps = !1, | ||
}; | ||
exports.cacheSignal = function () { | ||
var dispatcher = ReactSharedInternals.A; | ||
return dispatcher ? dispatcher.cacheSignal() : null; | ||
}; | ||
exports.captureOwnerStack = function () { | ||
@@ -659,6 +674,4 @@ var getCurrentStack = ReactSharedInternals.getCurrentStack; | ||
key, | ||
void 0, | ||
void 0, | ||
props, | ||
owner, | ||
props, | ||
element._debugStack, | ||
@@ -721,6 +734,4 @@ element._debugTask | ||
node, | ||
void 0, | ||
void 0, | ||
i, | ||
getOwner(), | ||
i, | ||
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, | ||
@@ -778,7 +789,20 @@ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
exports.lazy = function (ctor) { | ||
return { | ||
$$typeof: REACT_LAZY_TYPE, | ||
_payload: { _status: -1, _result: ctor }, | ||
_init: lazyInitializer | ||
}; | ||
ctor = { _status: -1, _result: ctor }; | ||
var lazyType = { | ||
$$typeof: REACT_LAZY_TYPE, | ||
_payload: ctor, | ||
_init: lazyInitializer | ||
}, | ||
ioInfo = { | ||
name: "lazy", | ||
start: -1, | ||
end: -1, | ||
value: null, | ||
owner: null, | ||
debugStack: Error("react-stack-top-frame"), | ||
debugTask: console.createTask ? console.createTask("lazy()") : null | ||
}; | ||
ctor._ioInfo = ioInfo; | ||
lazyType._debugInfo = [{ awaited: ioInfo }]; | ||
return lazyType; | ||
}; | ||
@@ -828,3 +852,3 @@ exports.memo = function (type, compare) { | ||
}; | ||
exports.version = "19.2.0-canary-408d055a-20250430"; | ||
exports.version = "19.2.0-canary-4123f6b7-20250826"; | ||
})(); |
@@ -28,4 +28,5 @@ /** | ||
} | ||
var isArrayImpl = Array.isArray, | ||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
var isArrayImpl = Array.isArray; | ||
function noop() {} | ||
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
REACT_PORTAL_TYPE = Symbol.for("react.portal"), | ||
@@ -49,4 +50,4 @@ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
assign = Object.assign; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
function ReactElement(type, key, props) { | ||
var refProp = props.ref; | ||
return { | ||
@@ -56,3 +57,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== self ? self : null, | ||
ref: void 0 !== refProp ? refProp : null, | ||
props: props | ||
@@ -62,10 +63,3 @@ }; | ||
function cloneAndReplaceKey(oldElement, newKey) { | ||
return ReactElement( | ||
oldElement.type, | ||
newKey, | ||
void 0, | ||
void 0, | ||
void 0, | ||
oldElement.props | ||
); | ||
return ReactElement(oldElement.type, newKey, oldElement.props); | ||
} | ||
@@ -94,3 +88,2 @@ function isValidElement(object) { | ||
} | ||
function noop() {} | ||
function resolveThenable(thenable) { | ||
@@ -348,2 +341,6 @@ switch (thenable.status) { | ||
}; | ||
exports.cacheSignal = function () { | ||
var dispatcher = ReactSharedInternals.A; | ||
return dispatcher ? dispatcher.cacheSignal() : null; | ||
}; | ||
exports.captureOwnerStack = function () { | ||
@@ -356,8 +353,5 @@ return null; | ||
var props = assign({}, element.props), | ||
key = element.key, | ||
owner = void 0; | ||
key = element.key; | ||
if (null != config) | ||
for (propName in (void 0 !== config.ref && (owner = void 0), | ||
void 0 !== config.key && (key = "" + config.key), | ||
config)) | ||
for (propName in (void 0 !== config.key && (key = "" + config.key), config)) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -376,3 +370,3 @@ "key" === propName || | ||
} | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, props); | ||
}; | ||
@@ -401,3 +395,3 @@ exports.createElement = function (type, config, children) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
return ReactElement(type, key, props); | ||
}; | ||
@@ -438,2 +432,2 @@ exports.createRef = function () { | ||
}; | ||
exports.version = "19.2.0-canary-408d055a-20250430"; | ||
exports.version = "19.2.0-canary-4123f6b7-20250826"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.2.0-canary-408d055a-20250430", | ||
"version": "19.2.0-canary-4123f6b7-20250826", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
168670
0.65%4713
-1.34%