From 267d1093738be337c6184a70a2faf9be047f8a7a Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Wed, 5 Apr 2023 23:43:08 +0000 Subject: [PATCH] Clean up discrete event replaying (#26558) We no longer replay and discrete events. I might re-add a form of this but it'll look a little different. DiffTrain build for [9cfba0f6ecc15a342ef184552742c5db6c7f2d3e](https://github.com/facebook/react/commit/9cfba0f6ecc15a342ef184552742c5db6c7f2d3e) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 2 +- compiled/facebook-www/ReactART-prod.modern.js | 4 +- compiled/facebook-www/ReactDOM-dev.classic.js | 26 +-- compiled/facebook-www/ReactDOM-dev.modern.js | 26 +-- .../facebook-www/ReactDOM-prod.classic.js | 119 +++++----- compiled/facebook-www/ReactDOM-prod.modern.js | 203 +++++++++--------- .../ReactDOM-profiling.classic.js | 105 +++++---- .../facebook-www/ReactDOM-profiling.modern.js | 189 ++++++++-------- .../ReactDOMTesting-dev.classic.js | 26 +-- .../ReactDOMTesting-dev.modern.js | 26 +-- .../ReactDOMTesting-prod.classic.js | 93 ++++---- .../ReactDOMTesting-prod.modern.js | 203 +++++++++--------- .../ReactTestRenderer-dev.modern.js | 2 +- 15 files changed, 451 insertions(+), 577 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index d2525d25373f8..42127f9c91157 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -790ebc962de573a37e4755207eba91b07a0fa172 +9cfba0f6ecc15a342ef184552742c5db6c7f2d3e diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 2bf0f43f7183f..faa00a68cfbb9 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-845af70b"; +var ReactVersion = "18.3.0-www-modern-ba4b0f21"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index ff05a01c5d263..01ef387d472c2 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-2747f957"; +var ReactVersion = "18.3.0-www-classic-d71a1ab4"; var LegacyRoot = 0; var ConcurrentRoot = 1; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index a5cb3ff374c0a..ad2e7351c6db6 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -9732,7 +9732,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-8b2723a7", + version: "18.3.0-www-modern-4adf9e4a", rendererPackageName: "react-art" }; var internals$jscomp$inline_1324 = { @@ -9763,7 +9763,7 @@ var internals$jscomp$inline_1324 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-8b2723a7" + reconcilerVersion: "18.3.0-www-modern-4adf9e4a" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1325 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 1b55fc74df733..ff2ab889e7f02 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -33380,7 +33380,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-e5fad0ff"; +var ReactVersion = "18.3.0-www-classic-c0ecfce3"; function createPortal$1( children, @@ -44086,9 +44086,7 @@ function isOwnedInstance(node) { // has this definition built-in. -var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. - -var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. +var hasScheduledReplayAttempt = false; // The last of each continuous event type. We only need to replay the last one // if the last target was dehydrated. var queuedFocus = null; @@ -44469,22 +44467,6 @@ function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { } function retryIfBlockedOn(unblocked) { - // Mark anything that was blocked on this as no longer blocked - // and eligible for a replay. - if (queuedDiscreteEvents.length > 0) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's - // worth it because we expect very few discrete events to queue up and once - // we are actually fully unblocked it will be fast to replay them. - - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent = queuedDiscreteEvents[i]; - - if (queuedEvent.blockedOn === unblocked) { - queuedEvent.blockedOn = null; - } - } - } - if (queuedFocus !== null) { scheduleCallbackIfUnblocked(queuedFocus, unblocked); } @@ -44504,8 +44486,8 @@ function retryIfBlockedOn(unblocked) { queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { - var queuedTarget = queuedExplicitHydrationTargets[_i]; + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; if (queuedTarget.blockedOn === unblocked) { queuedTarget.blockedOn = null; diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index cf174927a863f..015cfd7214dd6 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -33219,7 +33219,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-8b2723a7"; +var ReactVersion = "18.3.0-www-modern-4adf9e4a"; function createPortal$1( children, @@ -33923,9 +33923,7 @@ if (canUseDOM) { // has this definition built-in. -var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. - -var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. +var hasScheduledReplayAttempt = false; // The last of each continuous event type. We only need to replay the last one // if the last target was dehydrated. var queuedFocus = null; @@ -34306,22 +34304,6 @@ function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { } function retryIfBlockedOn(unblocked) { - // Mark anything that was blocked on this as no longer blocked - // and eligible for a replay. - if (queuedDiscreteEvents.length > 0) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's - // worth it because we expect very few discrete events to queue up and once - // we are actually fully unblocked it will be fast to replay them. - - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent = queuedDiscreteEvents[i]; - - if (queuedEvent.blockedOn === unblocked) { - queuedEvent.blockedOn = null; - } - } - } - if (queuedFocus !== null) { scheduleCallbackIfUnblocked(queuedFocus, unblocked); } @@ -34341,8 +34323,8 @@ function retryIfBlockedOn(unblocked) { queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { - var queuedTarget = queuedExplicitHydrationTargets[_i]; + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; if (queuedTarget.blockedOn === unblocked) { queuedTarget.blockedOn = null; diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index aeebe05b9adbf..21fb8bab17e6c 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -12570,19 +12570,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$335; + var JSCompiler_inline_result$jscomp$334; if (canUseDOM) { - var isSupported$jscomp$inline_1568 = "oninput" in document; - if (!isSupported$jscomp$inline_1568) { - var element$jscomp$inline_1569 = document.createElement("div"); - element$jscomp$inline_1569.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1568 = - "function" === typeof element$jscomp$inline_1569.oninput; + var isSupported$jscomp$inline_1567 = "oninput" in document; + if (!isSupported$jscomp$inline_1567) { + var element$jscomp$inline_1568 = document.createElement("div"); + element$jscomp$inline_1568.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1567 = + "function" === typeof element$jscomp$inline_1568.oninput; } - JSCompiler_inline_result$jscomp$335 = isSupported$jscomp$inline_1568; - } else JSCompiler_inline_result$jscomp$335 = !1; + JSCompiler_inline_result$jscomp$334 = isSupported$jscomp$inline_1567; + } else JSCompiler_inline_result$jscomp$334 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$335 && + JSCompiler_inline_result$jscomp$334 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -12891,20 +12891,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1609 = 0; - i$jscomp$inline_1609 < simpleEventPluginEvents.length; - i$jscomp$inline_1609++ + var i$jscomp$inline_1608 = 0; + i$jscomp$inline_1608 < simpleEventPluginEvents.length; + i$jscomp$inline_1608++ ) { - var eventName$jscomp$inline_1610 = - simpleEventPluginEvents[i$jscomp$inline_1609], - domEventName$jscomp$inline_1611 = - eventName$jscomp$inline_1610.toLowerCase(), - capitalizedEvent$jscomp$inline_1612 = - eventName$jscomp$inline_1610[0].toUpperCase() + - eventName$jscomp$inline_1610.slice(1); + var eventName$jscomp$inline_1609 = + simpleEventPluginEvents[i$jscomp$inline_1608], + domEventName$jscomp$inline_1610 = + eventName$jscomp$inline_1609.toLowerCase(), + capitalizedEvent$jscomp$inline_1611 = + eventName$jscomp$inline_1609[0].toUpperCase() + + eventName$jscomp$inline_1609.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1611, - "on" + capitalizedEvent$jscomp$inline_1612 + domEventName$jscomp$inline_1610, + "on" + capitalizedEvent$jscomp$inline_1611 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15390,7 +15390,6 @@ function markNodeAsHoistable(node) { node[internalHoistableMarker] = !0; } var hasScheduledReplayAttempt = !1, - queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, @@ -15630,23 +15629,15 @@ function retryIfBlockedOn(unblocked) { function unblock(queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); } - if (0 < queuedDiscreteEvents.length) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent$jscomp$0 = queuedDiscreteEvents[i]; - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); - } - } null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (i = 0; i < queuedExplicitHydrationTargets.length; i++) - (queuedEvent$jscomp$0 = queuedExplicitHydrationTargets[i]), - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; + queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); + } for ( ; 0 < queuedExplicitHydrationTargets.length && @@ -15968,11 +15959,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$263); + var instance = getPublicRootInstance(root$262); originalCallback.call(instance); }; } - var root$263 = createHydrationContainer( + var root$262 = createHydrationContainer( initialChildren, callback, container, @@ -15984,23 +15975,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$263; - container[internalContainerInstanceKey] = root$263.current; + container._reactRootContainer = root$262; + container[internalContainerInstanceKey] = root$262.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$263; + return root$262; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$264 = callback; + var originalCallback$263 = callback; callback = function () { - var instance = getPublicRootInstance(root$265); - originalCallback$264.call(instance); + var instance = getPublicRootInstance(root$264); + originalCallback$263.call(instance); }; } - var root$265 = createFiberRoot( + var root$264 = createFiberRoot( container, 0, !1, @@ -16012,15 +16003,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$265; - container[internalContainerInstanceKey] = root$265.current; + container._reactRootContainer = root$264; + container[internalContainerInstanceKey] = root$264.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$265, parentComponent, callback); + updateContainer(initialChildren, root$264, parentComponent, callback); }); - return root$265; + return root$264; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16079,17 +16070,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1827 = { +var devToolsConfig$jscomp$inline_1826 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-756a5a01", + version: "18.3.0-www-classic-11653adb", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2196 = { - bundleType: devToolsConfig$jscomp$inline_1827.bundleType, - version: devToolsConfig$jscomp$inline_1827.version, - rendererPackageName: devToolsConfig$jscomp$inline_1827.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1827.rendererConfig, +var internals$jscomp$inline_2195 = { + bundleType: devToolsConfig$jscomp$inline_1826.bundleType, + version: devToolsConfig$jscomp$inline_1826.version, + rendererPackageName: devToolsConfig$jscomp$inline_1826.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1826.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16105,26 +16096,26 @@ var internals$jscomp$inline_2196 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1827.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1826.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-756a5a01" + reconcilerVersion: "18.3.0-www-classic-11653adb" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2197 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2196 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2197.isDisabled && - hook$jscomp$inline_2197.supportsFiber + !hook$jscomp$inline_2196.isDisabled && + hook$jscomp$inline_2196.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2197.inject( - internals$jscomp$inline_2196 + (rendererID = hook$jscomp$inline_2196.inject( + internals$jscomp$inline_2195 )), - (injectedHook = hook$jscomp$inline_2197); + (injectedHook = hook$jscomp$inline_2196); } catch (err) {} } assign(Internals, { @@ -16352,4 +16343,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-756a5a01"; +exports.version = "18.3.0-www-classic-11653adb"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 3e061497c04f7..01e5239c4f59f 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -6870,7 +6870,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$191) { + } catch (e$190) { JSCompiler_temp = null; break a; } @@ -11819,7 +11819,6 @@ if (canUseDOM) passiveBrowserEventsSupported = !1; } var hasScheduledReplayAttempt = !1, - queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, @@ -12059,23 +12058,15 @@ function retryIfBlockedOn(unblocked) { function unblock(queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); } - if (0 < queuedDiscreteEvents.length) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent$jscomp$0 = queuedDiscreteEvents[i]; - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); - } - } null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (i = 0; i < queuedExplicitHydrationTargets.length; i++) - (queuedEvent$jscomp$0 = queuedExplicitHydrationTargets[i]), - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; + queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); + } for ( ; 0 < queuedExplicitHydrationTargets.length && @@ -12812,19 +12803,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$332; + var JSCompiler_inline_result$jscomp$331; if (canUseDOM) { - var isSupported$jscomp$inline_1560 = "oninput" in document; - if (!isSupported$jscomp$inline_1560) { - var element$jscomp$inline_1561 = document.createElement("div"); - element$jscomp$inline_1561.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1560 = - "function" === typeof element$jscomp$inline_1561.oninput; + var isSupported$jscomp$inline_1559 = "oninput" in document; + if (!isSupported$jscomp$inline_1559) { + var element$jscomp$inline_1560 = document.createElement("div"); + element$jscomp$inline_1560.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1559 = + "function" === typeof element$jscomp$inline_1560.oninput; } - JSCompiler_inline_result$jscomp$332 = isSupported$jscomp$inline_1560; - } else JSCompiler_inline_result$jscomp$332 = !1; + JSCompiler_inline_result$jscomp$331 = isSupported$jscomp$inline_1559; + } else JSCompiler_inline_result$jscomp$331 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$332 && + JSCompiler_inline_result$jscomp$331 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13133,20 +13124,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1601 = 0; - i$jscomp$inline_1601 < simpleEventPluginEvents.length; - i$jscomp$inline_1601++ + var i$jscomp$inline_1600 = 0; + i$jscomp$inline_1600 < simpleEventPluginEvents.length; + i$jscomp$inline_1600++ ) { - var eventName$jscomp$inline_1602 = - simpleEventPluginEvents[i$jscomp$inline_1601], - domEventName$jscomp$inline_1603 = - eventName$jscomp$inline_1602.toLowerCase(), - capitalizedEvent$jscomp$inline_1604 = - eventName$jscomp$inline_1602[0].toUpperCase() + - eventName$jscomp$inline_1602.slice(1); + var eventName$jscomp$inline_1601 = + simpleEventPluginEvents[i$jscomp$inline_1600], + domEventName$jscomp$inline_1602 = + eventName$jscomp$inline_1601.toLowerCase(), + capitalizedEvent$jscomp$inline_1603 = + eventName$jscomp$inline_1601[0].toUpperCase() + + eventName$jscomp$inline_1601.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1603, - "on" + capitalizedEvent$jscomp$inline_1604 + domEventName$jscomp$inline_1602, + "on" + capitalizedEvent$jscomp$inline_1603 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14377,12 +14368,12 @@ function setInitialProperties(domElement, tag, props) { case "textarea": initWrapperState(domElement, props); listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$203 in props) + for (var propKey$202 in props) if ( - props.hasOwnProperty(propKey$203) && - ((propKey = props[propKey$203]), null != propKey) + props.hasOwnProperty(propKey$202) && + ((propKey = props[propKey$202]), null != propKey) ) - switch (propKey$203) { + switch (propKey$202) { case "value": break; case "children": @@ -14391,18 +14382,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$203, propKey, props); + setProp(domElement, tag, propKey$202, propKey, props); } track(domElement); postMountWrapper(domElement); return; case "option": - for (var propKey$205 in props) + for (var propKey$204 in props) if ( - props.hasOwnProperty(propKey$205) && - ((propKey = props[propKey$205]), null != propKey) + props.hasOwnProperty(propKey$204) && + ((propKey = props[propKey$204]), null != propKey) ) - switch (propKey$205) { + switch (propKey$204) { case "selected": domElement.selected = propKey && @@ -14410,7 +14401,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$205, propKey, props); + setProp(domElement, tag, propKey$204, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -14452,29 +14443,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$207 in props) + for (var propKey$206 in props) if ( - props.hasOwnProperty(propKey$207) && - ((propKey = props[propKey$207]), null != propKey) + props.hasOwnProperty(propKey$206) && + ((propKey = props[propKey$206]), null != propKey) ) - switch (propKey$207) { + switch (propKey$206) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$207, propKey, props); + setProp(domElement, tag, propKey$206, propKey, props); } return; default: if (isCustomElement(tag)) { - for (var propKey$209 in props) - props.hasOwnProperty(propKey$209) && - ((propKey = props[propKey$209]), + for (var propKey$208 in props) + props.hasOwnProperty(propKey$208) && + ((propKey = props[propKey$208]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$209, + propKey$208, propKey, props )); @@ -14969,14 +14960,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$232 = getStyleKey(href), + var key$231 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$232); + resource = as.get(key$231); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$232) + getStylesheetSelectorFromKey(key$231) )) ) state.loading = 1; @@ -14987,7 +14978,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$232)) && + (options = preloadPropsMap.get(key$231)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15013,15 +15004,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$232, resource); + as.set(key$231, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$232 = getScriptKey(href)), - (precedence = as.get(key$232)), + (key$231 = getScriptKey(href)), + (precedence = as.get(key$231)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$232 + "script[async]" + key$231 )), precedence || ((href = { @@ -15030,7 +15021,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$232)) && + (options = preloadPropsMap.get(key$231)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15043,13 +15034,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$232, precedence)); + as.set(key$231, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$232 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$232 = - 'link[rel="preload"][as="' + as + '"][href="' + key$232 + '"]'; + key$231 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$231 = + 'link[rel="preload"][as="' + as + '"][href="' + key$231 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15066,7 +15057,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$232) && + null === resourceRoot.querySelector(key$231) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15099,17 +15090,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$241 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$242 = styles$241.get(type); - resource$242 || + var styles$240 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$241 = styles$240.get(type); + resource$241 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$242 = { + (resource$241 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$241.set(type, resource$242), + styles$240.set(type, resource$241), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15124,9 +15115,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$242.state + resource$241.state )); - return resource$242; + return resource$241; } return null; case "script": @@ -15198,36 +15189,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$247 = hoistableRoot.querySelector( + var instance$246 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$247) + if (instance$246) return ( - (resource.instance = instance$247), - markNodeAsHoistable(instance$247), - instance$247 + (resource.instance = instance$246), + markNodeAsHoistable(instance$246), + instance$246 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$247 = ( + instance$246 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$247); - var linkInstance = instance$247; + markNodeAsHoistable(instance$246); + var linkInstance = instance$246; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$247, "link", key); + setInitialProperties(instance$246, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$247, props.precedence, hoistableRoot); - return (resource.instance = instance$247); + insertStylesheet(instance$246, props.precedence, hoistableRoot); + return (resource.instance = instance$246); case "script": - instance$247 = getScriptKey(props.src); + instance$246 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$247 + "script[async]" + instance$246 )) ) return ( @@ -15236,7 +15227,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$247))) + if ((styleProps = preloadPropsMap.get(instance$246))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15606,17 +15597,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1785 = { +var devToolsConfig$jscomp$inline_1784 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-d2d6690d", + version: "18.3.0-www-modern-b28485b9", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2159 = { - bundleType: devToolsConfig$jscomp$inline_1785.bundleType, - version: devToolsConfig$jscomp$inline_1785.version, - rendererPackageName: devToolsConfig$jscomp$inline_1785.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1785.rendererConfig, +var internals$jscomp$inline_2158 = { + bundleType: devToolsConfig$jscomp$inline_1784.bundleType, + version: devToolsConfig$jscomp$inline_1784.version, + rendererPackageName: devToolsConfig$jscomp$inline_1784.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1784.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15633,26 +15624,26 @@ var internals$jscomp$inline_2159 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1785.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1784.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-d2d6690d" + reconcilerVersion: "18.3.0-www-modern-b28485b9" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2160 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2159 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2160.isDisabled && - hook$jscomp$inline_2160.supportsFiber + !hook$jscomp$inline_2159.isDisabled && + hook$jscomp$inline_2159.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2160.inject( - internals$jscomp$inline_2159 + (rendererID = hook$jscomp$inline_2159.inject( + internals$jscomp$inline_2158 )), - (injectedHook = hook$jscomp$inline_2160); + (injectedHook = hook$jscomp$inline_2159); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -15809,4 +15800,4 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-d2d6690d"; +exports.version = "18.3.0-www-modern-b28485b9"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 6b5522fa0ff76..dc9eeeeaf27d8 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -13344,19 +13344,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$356; + var JSCompiler_inline_result$jscomp$355; if (canUseDOM) { - var isSupported$jscomp$inline_1647 = "oninput" in document; - if (!isSupported$jscomp$inline_1647) { - var element$jscomp$inline_1648 = document.createElement("div"); - element$jscomp$inline_1648.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1647 = - "function" === typeof element$jscomp$inline_1648.oninput; + var isSupported$jscomp$inline_1646 = "oninput" in document; + if (!isSupported$jscomp$inline_1646) { + var element$jscomp$inline_1647 = document.createElement("div"); + element$jscomp$inline_1647.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1646 = + "function" === typeof element$jscomp$inline_1647.oninput; } - JSCompiler_inline_result$jscomp$356 = isSupported$jscomp$inline_1647; - } else JSCompiler_inline_result$jscomp$356 = !1; + JSCompiler_inline_result$jscomp$355 = isSupported$jscomp$inline_1646; + } else JSCompiler_inline_result$jscomp$355 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$356 && + JSCompiler_inline_result$jscomp$355 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13665,20 +13665,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1688 = 0; - i$jscomp$inline_1688 < simpleEventPluginEvents.length; - i$jscomp$inline_1688++ + var i$jscomp$inline_1687 = 0; + i$jscomp$inline_1687 < simpleEventPluginEvents.length; + i$jscomp$inline_1687++ ) { - var eventName$jscomp$inline_1689 = - simpleEventPluginEvents[i$jscomp$inline_1688], - domEventName$jscomp$inline_1690 = - eventName$jscomp$inline_1689.toLowerCase(), - capitalizedEvent$jscomp$inline_1691 = - eventName$jscomp$inline_1689[0].toUpperCase() + - eventName$jscomp$inline_1689.slice(1); + var eventName$jscomp$inline_1688 = + simpleEventPluginEvents[i$jscomp$inline_1687], + domEventName$jscomp$inline_1689 = + eventName$jscomp$inline_1688.toLowerCase(), + capitalizedEvent$jscomp$inline_1690 = + eventName$jscomp$inline_1688[0].toUpperCase() + + eventName$jscomp$inline_1688.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1690, - "on" + capitalizedEvent$jscomp$inline_1691 + domEventName$jscomp$inline_1689, + "on" + capitalizedEvent$jscomp$inline_1690 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -16164,7 +16164,6 @@ function markNodeAsHoistable(node) { node[internalHoistableMarker] = !0; } var hasScheduledReplayAttempt = !1, - queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, @@ -16404,23 +16403,15 @@ function retryIfBlockedOn(unblocked) { function unblock(queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); } - if (0 < queuedDiscreteEvents.length) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent$jscomp$0 = queuedDiscreteEvents[i]; - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); - } - } null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (i = 0; i < queuedExplicitHydrationTargets.length; i++) - (queuedEvent$jscomp$0 = queuedExplicitHydrationTargets[i]), - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; + queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); + } for ( ; 0 < queuedExplicitHydrationTargets.length && @@ -16742,11 +16733,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$284); + var instance = getPublicRootInstance(root$283); originalCallback.call(instance); }; } - var root$284 = createHydrationContainer( + var root$283 = createHydrationContainer( initialChildren, callback, container, @@ -16758,23 +16749,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$284; - container[internalContainerInstanceKey] = root$284.current; + container._reactRootContainer = root$283; + container[internalContainerInstanceKey] = root$283.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$284; + return root$283; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$285 = callback; + var originalCallback$284 = callback; callback = function () { - var instance = getPublicRootInstance(root$286); - originalCallback$285.call(instance); + var instance = getPublicRootInstance(root$285); + originalCallback$284.call(instance); }; } - var root$286 = createFiberRoot( + var root$285 = createFiberRoot( container, 0, !1, @@ -16786,15 +16777,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$286; - container[internalContainerInstanceKey] = root$286.current; + container._reactRootContainer = root$285; + container[internalContainerInstanceKey] = root$285.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$286, parentComponent, callback); + updateContainer(initialChildren, root$285, parentComponent, callback); }); - return root$286; + return root$285; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16853,10 +16844,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1906 = { +var devToolsConfig$jscomp$inline_1905 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-c22e3d1b", + version: "18.3.0-www-classic-1c28a96b", rendererPackageName: "react-dom" }; (function (internals) { @@ -16874,10 +16865,10 @@ var devToolsConfig$jscomp$inline_1906 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1906.bundleType, - version: devToolsConfig$jscomp$inline_1906.version, - rendererPackageName: devToolsConfig$jscomp$inline_1906.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1906.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1905.bundleType, + version: devToolsConfig$jscomp$inline_1905.version, + rendererPackageName: devToolsConfig$jscomp$inline_1905.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1905.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16893,14 +16884,14 @@ var devToolsConfig$jscomp$inline_1906 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1906.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1905.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-c22e3d1b" + reconcilerVersion: "18.3.0-www-classic-1c28a96b" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -17127,7 +17118,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-c22e3d1b"; +exports.version = "18.3.0-www-classic-1c28a96b"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index f70f929986a69..5fd489d5d4e8d 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -7212,7 +7212,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$212) { + } catch (e$211) { JSCompiler_temp = null; break a; } @@ -12587,7 +12587,6 @@ if (canUseDOM) passiveBrowserEventsSupported = !1; } var hasScheduledReplayAttempt = !1, - queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, @@ -12827,23 +12826,15 @@ function retryIfBlockedOn(unblocked) { function unblock(queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); } - if (0 < queuedDiscreteEvents.length) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent$jscomp$0 = queuedDiscreteEvents[i]; - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); - } - } null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (i = 0; i < queuedExplicitHydrationTargets.length; i++) - (queuedEvent$jscomp$0 = queuedExplicitHydrationTargets[i]), - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; + queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); + } for ( ; 0 < queuedExplicitHydrationTargets.length && @@ -13580,19 +13571,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$353; + var JSCompiler_inline_result$jscomp$352; if (canUseDOM) { - var isSupported$jscomp$inline_1639 = "oninput" in document; - if (!isSupported$jscomp$inline_1639) { - var element$jscomp$inline_1640 = document.createElement("div"); - element$jscomp$inline_1640.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1639 = - "function" === typeof element$jscomp$inline_1640.oninput; + var isSupported$jscomp$inline_1638 = "oninput" in document; + if (!isSupported$jscomp$inline_1638) { + var element$jscomp$inline_1639 = document.createElement("div"); + element$jscomp$inline_1639.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1638 = + "function" === typeof element$jscomp$inline_1639.oninput; } - JSCompiler_inline_result$jscomp$353 = isSupported$jscomp$inline_1639; - } else JSCompiler_inline_result$jscomp$353 = !1; + JSCompiler_inline_result$jscomp$352 = isSupported$jscomp$inline_1638; + } else JSCompiler_inline_result$jscomp$352 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$353 && + JSCompiler_inline_result$jscomp$352 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13901,20 +13892,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1680 = 0; - i$jscomp$inline_1680 < simpleEventPluginEvents.length; - i$jscomp$inline_1680++ + var i$jscomp$inline_1679 = 0; + i$jscomp$inline_1679 < simpleEventPluginEvents.length; + i$jscomp$inline_1679++ ) { - var eventName$jscomp$inline_1681 = - simpleEventPluginEvents[i$jscomp$inline_1680], - domEventName$jscomp$inline_1682 = - eventName$jscomp$inline_1681.toLowerCase(), - capitalizedEvent$jscomp$inline_1683 = - eventName$jscomp$inline_1681[0].toUpperCase() + - eventName$jscomp$inline_1681.slice(1); + var eventName$jscomp$inline_1680 = + simpleEventPluginEvents[i$jscomp$inline_1679], + domEventName$jscomp$inline_1681 = + eventName$jscomp$inline_1680.toLowerCase(), + capitalizedEvent$jscomp$inline_1682 = + eventName$jscomp$inline_1680[0].toUpperCase() + + eventName$jscomp$inline_1680.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1682, - "on" + capitalizedEvent$jscomp$inline_1683 + domEventName$jscomp$inline_1681, + "on" + capitalizedEvent$jscomp$inline_1682 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15145,12 +15136,12 @@ function setInitialProperties(domElement, tag, props) { case "textarea": initWrapperState(domElement, props); listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$224 in props) + for (var propKey$223 in props) if ( - props.hasOwnProperty(propKey$224) && - ((propKey = props[propKey$224]), null != propKey) + props.hasOwnProperty(propKey$223) && + ((propKey = props[propKey$223]), null != propKey) ) - switch (propKey$224) { + switch (propKey$223) { case "value": break; case "children": @@ -15159,18 +15150,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$224, propKey, props); + setProp(domElement, tag, propKey$223, propKey, props); } track(domElement); postMountWrapper(domElement); return; case "option": - for (var propKey$226 in props) + for (var propKey$225 in props) if ( - props.hasOwnProperty(propKey$226) && - ((propKey = props[propKey$226]), null != propKey) + props.hasOwnProperty(propKey$225) && + ((propKey = props[propKey$225]), null != propKey) ) - switch (propKey$226) { + switch (propKey$225) { case "selected": domElement.selected = propKey && @@ -15178,7 +15169,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$226, propKey, props); + setProp(domElement, tag, propKey$225, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -15220,29 +15211,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$228 in props) + for (var propKey$227 in props) if ( - props.hasOwnProperty(propKey$228) && - ((propKey = props[propKey$228]), null != propKey) + props.hasOwnProperty(propKey$227) && + ((propKey = props[propKey$227]), null != propKey) ) - switch (propKey$228) { + switch (propKey$227) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$228, propKey, props); + setProp(domElement, tag, propKey$227, propKey, props); } return; default: if (isCustomElement(tag)) { - for (var propKey$230 in props) - props.hasOwnProperty(propKey$230) && - ((propKey = props[propKey$230]), + for (var propKey$229 in props) + props.hasOwnProperty(propKey$229) && + ((propKey = props[propKey$229]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$230, + propKey$229, propKey, props )); @@ -15737,14 +15728,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$253 = getStyleKey(href), + var key$252 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$253); + resource = as.get(key$252); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$253) + getStylesheetSelectorFromKey(key$252) )) ) state.loading = 1; @@ -15755,7 +15746,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$253)) && + (options = preloadPropsMap.get(key$252)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15781,15 +15772,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$253, resource); + as.set(key$252, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$253 = getScriptKey(href)), - (precedence = as.get(key$253)), + (key$252 = getScriptKey(href)), + (precedence = as.get(key$252)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$253 + "script[async]" + key$252 )), precedence || ((href = { @@ -15798,7 +15789,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$253)) && + (options = preloadPropsMap.get(key$252)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15811,13 +15802,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$253, precedence)); + as.set(key$252, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$253 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$253 = - 'link[rel="preload"][as="' + as + '"][href="' + key$253 + '"]'; + key$252 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$252 = + 'link[rel="preload"][as="' + as + '"][href="' + key$252 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15834,7 +15825,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$253) && + null === resourceRoot.querySelector(key$252) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15867,17 +15858,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$262 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$263 = styles$262.get(type); - resource$263 || + var styles$261 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$262 = styles$261.get(type); + resource$262 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$263 = { + (resource$262 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$262.set(type, resource$263), + styles$261.set(type, resource$262), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15892,9 +15883,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$263.state + resource$262.state )); - return resource$263; + return resource$262; } return null; case "script": @@ -15966,36 +15957,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$268 = hoistableRoot.querySelector( + var instance$267 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$268) + if (instance$267) return ( - (resource.instance = instance$268), - markNodeAsHoistable(instance$268), - instance$268 + (resource.instance = instance$267), + markNodeAsHoistable(instance$267), + instance$267 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$268 = ( + instance$267 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$268); - var linkInstance = instance$268; + markNodeAsHoistable(instance$267); + var linkInstance = instance$267; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$268, "link", key); + setInitialProperties(instance$267, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$268, props.precedence, hoistableRoot); - return (resource.instance = instance$268); + insertStylesheet(instance$267, props.precedence, hoistableRoot); + return (resource.instance = instance$267); case "script": - instance$268 = getScriptKey(props.src); + instance$267 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$268 + "script[async]" + instance$267 )) ) return ( @@ -16004,7 +15995,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$268))) + if ((styleProps = preloadPropsMap.get(instance$267))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16374,10 +16365,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1864 = { +var devToolsConfig$jscomp$inline_1863 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-83ba4940", + version: "18.3.0-www-modern-d5a63498", rendererPackageName: "react-dom" }; (function (internals) { @@ -16395,10 +16386,10 @@ var devToolsConfig$jscomp$inline_1864 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1864.bundleType, - version: devToolsConfig$jscomp$inline_1864.version, - rendererPackageName: devToolsConfig$jscomp$inline_1864.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1864.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1863.bundleType, + version: devToolsConfig$jscomp$inline_1863.version, + rendererPackageName: devToolsConfig$jscomp$inline_1863.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1863.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16415,14 +16406,14 @@ var devToolsConfig$jscomp$inline_1864 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1864.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1863.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-83ba4940" + reconcilerVersion: "18.3.0-www-modern-d5a63498" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -16578,7 +16569,7 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-83ba4940"; +exports.version = "18.3.0-www-modern-d5a63498"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 0b8d8d904c443..4a0e14f0e54d7 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -36509,7 +36509,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-bf1fd846"; +var ReactVersion = "18.3.0-www-classic-dd4bd458"; function createPortal$1( children, @@ -45797,9 +45797,7 @@ function isOwnedInstance(node) { // has this definition built-in. -var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. - -var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. +var hasScheduledReplayAttempt = false; // The last of each continuous event type. We only need to replay the last one // if the last target was dehydrated. var queuedFocus = null; @@ -46180,22 +46178,6 @@ function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { } function retryIfBlockedOn(unblocked) { - // Mark anything that was blocked on this as no longer blocked - // and eligible for a replay. - if (queuedDiscreteEvents.length > 0) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's - // worth it because we expect very few discrete events to queue up and once - // we are actually fully unblocked it will be fast to replay them. - - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent = queuedDiscreteEvents[i]; - - if (queuedEvent.blockedOn === unblocked) { - queuedEvent.blockedOn = null; - } - } - } - if (queuedFocus !== null) { scheduleCallbackIfUnblocked(queuedFocus, unblocked); } @@ -46215,8 +46197,8 @@ function retryIfBlockedOn(unblocked) { queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { - var queuedTarget = queuedExplicitHydrationTargets[_i]; + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; if (queuedTarget.blockedOn === unblocked) { queuedTarget.blockedOn = null; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 9076490843c4f..1f572ae214140 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -33838,7 +33838,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-4e8cedc6"; +var ReactVersion = "18.3.0-www-modern-ceeb0a5e"; function createPortal$1( children, @@ -34542,9 +34542,7 @@ if (canUseDOM) { // has this definition built-in. -var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. - -var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. +var hasScheduledReplayAttempt = false; // The last of each continuous event type. We only need to replay the last one // if the last target was dehydrated. var queuedFocus = null; @@ -34925,22 +34923,6 @@ function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { } function retryIfBlockedOn(unblocked) { - // Mark anything that was blocked on this as no longer blocked - // and eligible for a replay. - if (queuedDiscreteEvents.length > 0) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's - // worth it because we expect very few discrete events to queue up and once - // we are actually fully unblocked it will be fast to replay them. - - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent = queuedDiscreteEvents[i]; - - if (queuedEvent.blockedOn === unblocked) { - queuedEvent.blockedOn = null; - } - } - } - if (queuedFocus !== null) { scheduleCallbackIfUnblocked(queuedFocus, unblocked); } @@ -34960,8 +34942,8 @@ function retryIfBlockedOn(unblocked) { queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { - var queuedTarget = queuedExplicitHydrationTargets[_i]; + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; if (queuedTarget.blockedOn === unblocked) { queuedTarget.blockedOn = null; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 6ea78b31ad352..bd1ab6885742a 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -13441,19 +13441,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$338; + var JSCompiler_inline_result$jscomp$337; if (canUseDOM) { - var isSupported$jscomp$inline_1629 = "oninput" in document; - if (!isSupported$jscomp$inline_1629) { - var element$jscomp$inline_1630 = document.createElement("div"); - element$jscomp$inline_1630.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1629 = - "function" === typeof element$jscomp$inline_1630.oninput; + var isSupported$jscomp$inline_1628 = "oninput" in document; + if (!isSupported$jscomp$inline_1628) { + var element$jscomp$inline_1629 = document.createElement("div"); + element$jscomp$inline_1629.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1628 = + "function" === typeof element$jscomp$inline_1629.oninput; } - JSCompiler_inline_result$jscomp$338 = isSupported$jscomp$inline_1629; - } else JSCompiler_inline_result$jscomp$338 = !1; + JSCompiler_inline_result$jscomp$337 = isSupported$jscomp$inline_1628; + } else JSCompiler_inline_result$jscomp$337 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$338 && + JSCompiler_inline_result$jscomp$337 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13762,20 +13762,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1670 = 0; - i$jscomp$inline_1670 < simpleEventPluginEvents.length; - i$jscomp$inline_1670++ + var i$jscomp$inline_1669 = 0; + i$jscomp$inline_1669 < simpleEventPluginEvents.length; + i$jscomp$inline_1669++ ) { - var eventName$jscomp$inline_1671 = - simpleEventPluginEvents[i$jscomp$inline_1670], - domEventName$jscomp$inline_1672 = - eventName$jscomp$inline_1671.toLowerCase(), - capitalizedEvent$jscomp$inline_1673 = - eventName$jscomp$inline_1671[0].toUpperCase() + - eventName$jscomp$inline_1671.slice(1); + var eventName$jscomp$inline_1670 = + simpleEventPluginEvents[i$jscomp$inline_1669], + domEventName$jscomp$inline_1671 = + eventName$jscomp$inline_1670.toLowerCase(), + capitalizedEvent$jscomp$inline_1672 = + eventName$jscomp$inline_1670[0].toUpperCase() + + eventName$jscomp$inline_1670.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1672, - "on" + capitalizedEvent$jscomp$inline_1673 + domEventName$jscomp$inline_1671, + "on" + capitalizedEvent$jscomp$inline_1672 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14788,17 +14788,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1784 = { +var devToolsConfig$jscomp$inline_1783 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-2747f957", + version: "18.3.0-www-classic-d71a1ab4", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2226 = { - bundleType: devToolsConfig$jscomp$inline_1784.bundleType, - version: devToolsConfig$jscomp$inline_1784.version, - rendererPackageName: devToolsConfig$jscomp$inline_1784.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1784.rendererConfig, +var internals$jscomp$inline_2225 = { + bundleType: devToolsConfig$jscomp$inline_1783.bundleType, + version: devToolsConfig$jscomp$inline_1783.version, + rendererPackageName: devToolsConfig$jscomp$inline_1783.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1783.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -14814,26 +14814,26 @@ var internals$jscomp$inline_2226 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1784.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1783.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-2747f957" + reconcilerVersion: "18.3.0-www-classic-d71a1ab4" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2227 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2226 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2227.isDisabled && - hook$jscomp$inline_2227.supportsFiber + !hook$jscomp$inline_2226.isDisabled && + hook$jscomp$inline_2226.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2227.inject( - internals$jscomp$inline_2226 + (rendererID = hook$jscomp$inline_2226.inject( + internals$jscomp$inline_2225 )), - (injectedHook = hook$jscomp$inline_2227); + (injectedHook = hook$jscomp$inline_2226); } catch (err) {} } var tagToRoleMappings = { @@ -15956,7 +15956,6 @@ function markNodeAsHoistable(node) { node[internalHoistableMarker] = !0; } var hasScheduledReplayAttempt = !1, - queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, @@ -16196,23 +16195,15 @@ function retryIfBlockedOn(unblocked) { function unblock(queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); } - if (0 < queuedDiscreteEvents.length) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent$jscomp$0 = queuedDiscreteEvents[i]; - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); - } - } null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (i = 0; i < queuedExplicitHydrationTargets.length; i++) - (queuedEvent$jscomp$0 = queuedExplicitHydrationTargets[i]), - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; + queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); + } for ( ; 0 < queuedExplicitHydrationTargets.length && @@ -16832,4 +16823,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-2747f957"; +exports.version = "18.3.0-www-classic-d71a1ab4"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 8b4b219cc5749..548737f200bbc 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -7011,7 +7011,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$192) { + } catch (e$191) { JSCompiler_temp = null; break a; } @@ -12146,7 +12146,6 @@ if (canUseDOM) passiveBrowserEventsSupported = !1; } var hasScheduledReplayAttempt = !1, - queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, @@ -12386,23 +12385,15 @@ function retryIfBlockedOn(unblocked) { function unblock(queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); } - if (0 < queuedDiscreteEvents.length) { - scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); - for (var i = 1; i < queuedDiscreteEvents.length; i++) { - var queuedEvent$jscomp$0 = queuedDiscreteEvents[i]; - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); - } - } null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); - for (i = 0; i < queuedExplicitHydrationTargets.length; i++) - (queuedEvent$jscomp$0 = queuedExplicitHydrationTargets[i]), - queuedEvent$jscomp$0.blockedOn === unblocked && - (queuedEvent$jscomp$0.blockedOn = null); + for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { + var queuedTarget = queuedExplicitHydrationTargets[i]; + queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); + } for ( ; 0 < queuedExplicitHydrationTargets.length && @@ -13139,19 +13130,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$334; + var JSCompiler_inline_result$jscomp$333; if (canUseDOM) { - var isSupported$jscomp$inline_1589 = "oninput" in document; - if (!isSupported$jscomp$inline_1589) { - var element$jscomp$inline_1590 = document.createElement("div"); - element$jscomp$inline_1590.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1589 = - "function" === typeof element$jscomp$inline_1590.oninput; + var isSupported$jscomp$inline_1588 = "oninput" in document; + if (!isSupported$jscomp$inline_1588) { + var element$jscomp$inline_1589 = document.createElement("div"); + element$jscomp$inline_1589.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1588 = + "function" === typeof element$jscomp$inline_1589.oninput; } - JSCompiler_inline_result$jscomp$334 = isSupported$jscomp$inline_1589; - } else JSCompiler_inline_result$jscomp$334 = !1; + JSCompiler_inline_result$jscomp$333 = isSupported$jscomp$inline_1588; + } else JSCompiler_inline_result$jscomp$333 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$334 && + JSCompiler_inline_result$jscomp$333 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13460,20 +13451,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1630 = 0; - i$jscomp$inline_1630 < simpleEventPluginEvents.length; - i$jscomp$inline_1630++ + var i$jscomp$inline_1629 = 0; + i$jscomp$inline_1629 < simpleEventPluginEvents.length; + i$jscomp$inline_1629++ ) { - var eventName$jscomp$inline_1631 = - simpleEventPluginEvents[i$jscomp$inline_1630], - domEventName$jscomp$inline_1632 = - eventName$jscomp$inline_1631.toLowerCase(), - capitalizedEvent$jscomp$inline_1633 = - eventName$jscomp$inline_1631[0].toUpperCase() + - eventName$jscomp$inline_1631.slice(1); + var eventName$jscomp$inline_1630 = + simpleEventPluginEvents[i$jscomp$inline_1629], + domEventName$jscomp$inline_1631 = + eventName$jscomp$inline_1630.toLowerCase(), + capitalizedEvent$jscomp$inline_1632 = + eventName$jscomp$inline_1630[0].toUpperCase() + + eventName$jscomp$inline_1630.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1632, - "on" + capitalizedEvent$jscomp$inline_1633 + domEventName$jscomp$inline_1631, + "on" + capitalizedEvent$jscomp$inline_1632 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14704,12 +14695,12 @@ function setInitialProperties(domElement, tag, props) { case "textarea": initWrapperState(domElement, props); listenToNonDelegatedEvent("invalid", domElement); - for (var propKey$204 in props) + for (var propKey$203 in props) if ( - props.hasOwnProperty(propKey$204) && - ((propKey = props[propKey$204]), null != propKey) + props.hasOwnProperty(propKey$203) && + ((propKey = props[propKey$203]), null != propKey) ) - switch (propKey$204) { + switch (propKey$203) { case "value": break; case "children": @@ -14718,18 +14709,18 @@ function setInitialProperties(domElement, tag, props) { if (null != propKey) throw Error(formatProdErrorMessage(91)); break; default: - setProp(domElement, tag, propKey$204, propKey, props); + setProp(domElement, tag, propKey$203, propKey, props); } track(domElement); postMountWrapper(domElement); return; case "option": - for (var propKey$206 in props) + for (var propKey$205 in props) if ( - props.hasOwnProperty(propKey$206) && - ((propKey = props[propKey$206]), null != propKey) + props.hasOwnProperty(propKey$205) && + ((propKey = props[propKey$205]), null != propKey) ) - switch (propKey$206) { + switch (propKey$205) { case "selected": domElement.selected = propKey && @@ -14737,7 +14728,7 @@ function setInitialProperties(domElement, tag, props) { "symbol" !== typeof propKey; break; default: - setProp(domElement, tag, propKey$206, propKey, props); + setProp(domElement, tag, propKey$205, propKey, props); } null != props.value && domElement.setAttribute("value", "" + getToStringValue(props.value)); @@ -14779,29 +14770,29 @@ function setInitialProperties(domElement, tag, props) { case "track": case "wbr": case "menuitem": - for (var propKey$208 in props) + for (var propKey$207 in props) if ( - props.hasOwnProperty(propKey$208) && - ((propKey = props[propKey$208]), null != propKey) + props.hasOwnProperty(propKey$207) && + ((propKey = props[propKey$207]), null != propKey) ) - switch (propKey$208) { + switch (propKey$207) { case "children": case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); default: - setProp(domElement, tag, propKey$208, propKey, props); + setProp(domElement, tag, propKey$207, propKey, props); } return; default: if (isCustomElement(tag)) { - for (var propKey$210 in props) - props.hasOwnProperty(propKey$210) && - ((propKey = props[propKey$210]), + for (var propKey$209 in props) + props.hasOwnProperty(propKey$209) && + ((propKey = props[propKey$209]), null != propKey && setPropOnCustomElement( domElement, tag, - propKey$210, + propKey$209, propKey, props )); @@ -15353,14 +15344,14 @@ function preinit$1(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$233 = getStyleKey(href), + var key$232 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$233); + resource = as.get(key$232); if (resource) break; var state = { loading: 0, preload: null }; if ( (resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$233) + getStylesheetSelectorFromKey(key$232) )) ) state.loading = 1; @@ -15371,7 +15362,7 @@ function preinit$1(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }; - (options = preloadPropsMap.get(key$233)) && + (options = preloadPropsMap.get(key$232)) && adoptPreloadPropsForStylesheet(href, options); var link = (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -15397,15 +15388,15 @@ function preinit$1(href, options) { count: 1, state: state }; - as.set(key$233, resource); + as.set(key$232, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$233 = getScriptKey(href)), - (precedence = as.get(key$233)), + (key$232 = getScriptKey(href)), + (precedence = as.get(key$232)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$233 + "script[async]" + key$232 )), precedence || ((href = { @@ -15414,7 +15405,7 @@ function preinit$1(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$233)) && + (options = preloadPropsMap.get(key$232)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -15427,13 +15418,13 @@ function preinit$1(href, options) { count: 1, state: null }), - as.set(key$233, precedence)); + as.set(key$232, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$233 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$233 = - 'link[rel="preload"][as="' + as + '"][href="' + key$233 + '"]'; + key$232 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$232 = + 'link[rel="preload"][as="' + as + '"][href="' + key$232 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -15450,7 +15441,7 @@ function preinit$1(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$233) && + null === resourceRoot.querySelector(key$232) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -15483,17 +15474,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$242 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$243 = styles$242.get(type); - resource$243 || + var styles$241 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$242 = styles$241.get(type); + resource$242 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$243 = { + (resource$242 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$242.set(type, resource$243), + styles$241.set(type, resource$242), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15508,9 +15499,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$243.state + resource$242.state )); - return resource$243; + return resource$242; } return null; case "script": @@ -15582,36 +15573,36 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$248 = hoistableRoot.querySelector( + var instance$247 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$248) + if (instance$247) return ( - (resource.instance = instance$248), - markNodeAsHoistable(instance$248), - instance$248 + (resource.instance = instance$247), + markNodeAsHoistable(instance$247), + instance$247 ); key = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$248 = ( + instance$247 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$248); - var linkInstance = instance$248; + markNodeAsHoistable(instance$247); + var linkInstance = instance$247; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$248, "link", key); + setInitialProperties(instance$247, "link", key); resource.state.loading |= 4; - insertStylesheet(instance$248, props.precedence, hoistableRoot); - return (resource.instance = instance$248); + insertStylesheet(instance$247, props.precedence, hoistableRoot); + return (resource.instance = instance$247); case "script": - instance$248 = getScriptKey(props.src); + instance$247 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$248 + "script[async]" + instance$247 )) ) return ( @@ -15620,7 +15611,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$248))) + if ((styleProps = preloadPropsMap.get(instance$247))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15990,17 +15981,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1814 = { +var devToolsConfig$jscomp$inline_1813 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-845af70b", + version: "18.3.0-www-modern-ba4b0f21", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2193 = { - bundleType: devToolsConfig$jscomp$inline_1814.bundleType, - version: devToolsConfig$jscomp$inline_1814.version, - rendererPackageName: devToolsConfig$jscomp$inline_1814.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1814.rendererConfig, +var internals$jscomp$inline_2192 = { + bundleType: devToolsConfig$jscomp$inline_1813.bundleType, + version: devToolsConfig$jscomp$inline_1813.version, + rendererPackageName: devToolsConfig$jscomp$inline_1813.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1813.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16017,26 +16008,26 @@ var internals$jscomp$inline_2193 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1814.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1813.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-845af70b" + reconcilerVersion: "18.3.0-www-modern-ba4b0f21" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2194 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2193 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2194.isDisabled && - hook$jscomp$inline_2194.supportsFiber + !hook$jscomp$inline_2193.isDisabled && + hook$jscomp$inline_2193.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2194.inject( - internals$jscomp$inline_2193 + (rendererID = hook$jscomp$inline_2193.inject( + internals$jscomp$inline_2192 )), - (injectedHook = hook$jscomp$inline_2194); + (injectedHook = hook$jscomp$inline_2193); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -16344,4 +16335,4 @@ exports.unstable_createEventHandle = function (type, options) { return eventHandle; }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-845af70b"; +exports.version = "18.3.0-www-modern-ba4b0f21"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index da2b79b1610db..091ca9c106a99 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -24474,7 +24474,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-845af70b"; +var ReactVersion = "18.3.0-www-modern-ba4b0f21"; // Might add PROFILE later.