react-native-macos 0.0.0-d74468479 → 0.0.0-d9a5f84e0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Animated/AnimatedEvent.js +10 -5
- package/Libraries/Animated/AnimatedImplementation.js +39 -7
- package/Libraries/Animated/AnimatedMock.js +6 -3
- package/Libraries/Animated/AnimatedPlatformConfig.js +13 -0
- package/Libraries/Animated/Easing.js +36 -36
- package/Libraries/Animated/animations/Animation.js +5 -3
- package/Libraries/Animated/animations/DecayAnimation.js +5 -0
- package/Libraries/Animated/animations/SpringAnimation.js +15 -0
- package/Libraries/Animated/animations/TimingAnimation.js +14 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +5 -4
- package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +4 -3
- package/Libraries/Animated/nodes/AnimatedDivision.js +5 -4
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -3
- package/Libraries/Animated/nodes/AnimatedModulo.js +4 -3
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +5 -4
- package/Libraries/Animated/nodes/AnimatedNode.js +17 -5
- package/Libraries/Animated/nodes/AnimatedProps.js +11 -3
- package/Libraries/Animated/nodes/AnimatedStyle.js +6 -4
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +5 -4
- package/Libraries/Animated/nodes/AnimatedTracking.js +7 -5
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -3
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -0
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +5 -4
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +3 -3
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -0
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +12 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +130 -68
- package/Libraries/Components/Slider/SliderNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +115 -2
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +8 -1
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +4 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +31 -8
- package/Libraries/Components/Touchable/TouchableOpacity.js +0 -1
- package/Libraries/Components/View/ViewPropTypes.js +7 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
- package/Libraries/Core/Timers/JSTimers.js +17 -28
- package/Libraries/Image/Image.android.js +16 -7
- package/Libraries/Image/ImageViewNativeComponent.js +94 -57
- package/Libraries/Image/RCTImageView.mm +22 -14
- package/Libraries/Image/TextInlineImageNativeComponent.js +10 -68
- package/Libraries/Lists/VirtualizedList.js +8 -6
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +0 -1
- package/Libraries/Modal/Modal.js +0 -1
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +39 -0
- package/Libraries/Network/XMLHttpRequest.js +0 -1
- package/Libraries/Performance/QuickPerformanceLogger.js +17 -0
- package/Libraries/ReactNative/UIManager.js +5 -10
- package/Libraries/ReactNative/UIManagerInjection.js +3 -3
- package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +340 -393
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +340 -393
- package/Libraries/Text/RCTTextAttributes.m +18 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -0
- package/Libraries/WebSocket/RCTSRWebSocket.m +4 -0
- package/React/Base/RCTConvert.m +18 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTAlertController.m +6 -0
- package/React/CoreModules/RCTDevSettings.mm +33 -12
- package/React/CoreModules/RCTExceptionsManager.mm +1 -1
- package/React/Fabric/RCTSurfacePresenter.mm +0 -2
- package/React/Views/RCTFont.mm +11 -9
- package/React/Views/RCTModalHostView.h +5 -0
- package/React/Views/RCTModalHostViewManager.m +3 -0
- package/React/Views/RCTSliderManager.m +1 -0
- package/ReactAndroid/build.gradle +14 -5
- package/ReactAndroid/gradle.properties +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +12 -4
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java +39 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/SubtractionAnimatedNode.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +119 -78
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.cpp +7 -35
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.h +5 -18
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerDelegate.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerInterface.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +23 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +1 -8
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +40 -16
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +3 -3
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
- package/ReactCommon/cxxreact/JSBigString.cpp +0 -65
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +8 -3
- package/ReactCommon/react/renderer/attributedstring/conversions.h +38 -38
- package/ReactCommon/react/renderer/components/text/conversions.h +4 -4
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -5
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +10 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +64 -85
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +101 -27
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +86 -165
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +22 -57
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +36 -26
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +9 -19
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +30 -12
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +4 -11
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +1 -0
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +4 -0
- package/jest/mockModal.js +2 -2
- package/package.json +11 -48
- package/react.gradle +0 -4
- package/scripts/find-node.sh +7 -0
- package/scripts/react_native_pods.rb +6 -5
- package/scripts/react_native_pods_utils/script_phases.rb +2 -2
- package/scripts/react_native_pods_utils/script_phases.sh +1 -1
- package/template/Gemfile.lock +3 -3
- package/template/_flowconfig +1 -1
- package/template/_gitignore +2 -1
- package/template/android/build.gradle +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/android/settings.gradle +1 -5
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -3
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -113
- package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
- package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
- package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
- package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
- package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
- package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -693
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
- package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -168
- package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
- package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
- package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
- package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
- package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
- package/ReactCommon/react/renderer/mapbuffer/primitives.h +0 -91
- package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<ed6282c0e752a40e526104dcc0d5c8b8>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
@@ -938,7 +938,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
938
938
|
"ReactNativeBridgeEventPlugin"
|
|
939
939
|
]);
|
|
940
940
|
recomputePluginOrdering();
|
|
941
|
-
var injectedNamesToPlugins$jscomp$
|
|
941
|
+
var injectedNamesToPlugins$jscomp$inline_228 = {
|
|
942
942
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
943
943
|
ReactNativeBridgeEventPlugin: {
|
|
944
944
|
eventTypes: {},
|
|
@@ -973,33 +973,33 @@ var injectedNamesToPlugins$jscomp$inline_243 = {
|
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
975
|
},
|
|
976
|
-
isOrderingDirty$jscomp$
|
|
977
|
-
pluginName$jscomp$
|
|
978
|
-
for (pluginName$jscomp$
|
|
976
|
+
isOrderingDirty$jscomp$inline_229 = !1,
|
|
977
|
+
pluginName$jscomp$inline_230;
|
|
978
|
+
for (pluginName$jscomp$inline_230 in injectedNamesToPlugins$jscomp$inline_228)
|
|
979
979
|
if (
|
|
980
|
-
injectedNamesToPlugins$jscomp$
|
|
981
|
-
pluginName$jscomp$
|
|
980
|
+
injectedNamesToPlugins$jscomp$inline_228.hasOwnProperty(
|
|
981
|
+
pluginName$jscomp$inline_230
|
|
982
982
|
)
|
|
983
983
|
) {
|
|
984
|
-
var pluginModule$jscomp$
|
|
985
|
-
injectedNamesToPlugins$jscomp$
|
|
984
|
+
var pluginModule$jscomp$inline_231 =
|
|
985
|
+
injectedNamesToPlugins$jscomp$inline_228[pluginName$jscomp$inline_230];
|
|
986
986
|
if (
|
|
987
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
988
|
-
namesToPlugins[pluginName$jscomp$
|
|
989
|
-
pluginModule$jscomp$
|
|
987
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_230) ||
|
|
988
|
+
namesToPlugins[pluginName$jscomp$inline_230] !==
|
|
989
|
+
pluginModule$jscomp$inline_231
|
|
990
990
|
) {
|
|
991
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
991
|
+
if (namesToPlugins[pluginName$jscomp$inline_230])
|
|
992
992
|
throw Error(
|
|
993
993
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
994
|
-
(pluginName$jscomp$
|
|
994
|
+
(pluginName$jscomp$inline_230 + "`.")
|
|
995
995
|
);
|
|
996
996
|
namesToPlugins[
|
|
997
|
-
pluginName$jscomp$
|
|
998
|
-
] = pluginModule$jscomp$
|
|
999
|
-
isOrderingDirty$jscomp$
|
|
997
|
+
pluginName$jscomp$inline_230
|
|
998
|
+
] = pluginModule$jscomp$inline_231;
|
|
999
|
+
isOrderingDirty$jscomp$inline_229 = !0;
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
isOrderingDirty$jscomp$
|
|
1002
|
+
isOrderingDirty$jscomp$inline_229 && recomputePluginOrdering();
|
|
1003
1003
|
function getInstanceFromInstance(instanceHandle) {
|
|
1004
1004
|
return instanceHandle;
|
|
1005
1005
|
}
|
|
@@ -1619,6 +1619,7 @@ var scheduleCallback = Scheduler.unstable_scheduleCallback,
|
|
|
1619
1619
|
IdlePriority = Scheduler.unstable_IdlePriority,
|
|
1620
1620
|
rendererID = null,
|
|
1621
1621
|
injectedHook = null,
|
|
1622
|
+
injectedProfilingHooks = null,
|
|
1622
1623
|
isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
1623
1624
|
function onCommitRoot(root, eventPriority) {
|
|
1624
1625
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
@@ -1648,6 +1649,59 @@ function onCommitRoot(root, eventPriority) {
|
|
|
1648
1649
|
);
|
|
1649
1650
|
} catch (err) {}
|
|
1650
1651
|
}
|
|
1652
|
+
function injectProfilingHooks(profilingHooks) {
|
|
1653
|
+
injectedProfilingHooks = profilingHooks;
|
|
1654
|
+
}
|
|
1655
|
+
function getLaneLabelMap() {
|
|
1656
|
+
for (var map = new Map(), lane = 1, index$3 = 0; 31 > index$3; index$3++) {
|
|
1657
|
+
var label = getLabelForLane(lane);
|
|
1658
|
+
map.set(lane, label);
|
|
1659
|
+
lane *= 2;
|
|
1660
|
+
}
|
|
1661
|
+
return map;
|
|
1662
|
+
}
|
|
1663
|
+
function markCommitStopped() {
|
|
1664
|
+
null !== injectedProfilingHooks &&
|
|
1665
|
+
"function" === typeof injectedProfilingHooks.markCommitStopped &&
|
|
1666
|
+
injectedProfilingHooks.markCommitStopped();
|
|
1667
|
+
}
|
|
1668
|
+
function markComponentRenderStarted(fiber) {
|
|
1669
|
+
null !== injectedProfilingHooks &&
|
|
1670
|
+
"function" === typeof injectedProfilingHooks.markComponentRenderStarted &&
|
|
1671
|
+
injectedProfilingHooks.markComponentRenderStarted(fiber);
|
|
1672
|
+
}
|
|
1673
|
+
function markComponentRenderStopped() {
|
|
1674
|
+
null !== injectedProfilingHooks &&
|
|
1675
|
+
"function" === typeof injectedProfilingHooks.markComponentRenderStopped &&
|
|
1676
|
+
injectedProfilingHooks.markComponentRenderStopped();
|
|
1677
|
+
}
|
|
1678
|
+
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
1679
|
+
null !== injectedProfilingHooks &&
|
|
1680
|
+
"function" ===
|
|
1681
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
|
|
1682
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
|
|
1683
|
+
}
|
|
1684
|
+
function markComponentLayoutEffectUnmountStopped() {
|
|
1685
|
+
null !== injectedProfilingHooks &&
|
|
1686
|
+
"function" ===
|
|
1687
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
|
|
1688
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
|
|
1689
|
+
}
|
|
1690
|
+
function markRenderStarted(lanes) {
|
|
1691
|
+
null !== injectedProfilingHooks &&
|
|
1692
|
+
"function" === typeof injectedProfilingHooks.markRenderStarted &&
|
|
1693
|
+
injectedProfilingHooks.markRenderStarted(lanes);
|
|
1694
|
+
}
|
|
1695
|
+
function markRenderStopped() {
|
|
1696
|
+
null !== injectedProfilingHooks &&
|
|
1697
|
+
"function" === typeof injectedProfilingHooks.markRenderStopped &&
|
|
1698
|
+
injectedProfilingHooks.markRenderStopped();
|
|
1699
|
+
}
|
|
1700
|
+
function markStateUpdateScheduled(fiber, lane) {
|
|
1701
|
+
null !== injectedProfilingHooks &&
|
|
1702
|
+
"function" === typeof injectedProfilingHooks.markStateUpdateScheduled &&
|
|
1703
|
+
injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
|
|
1704
|
+
}
|
|
1651
1705
|
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1652
1706
|
log = Math.log,
|
|
1653
1707
|
LN2 = Math.LN2;
|
|
@@ -1834,30 +1888,30 @@ function markRootFinished(root, remainingLanes) {
|
|
|
1834
1888
|
remainingLanes = root.entanglements;
|
|
1835
1889
|
var eventTimes = root.eventTimes;
|
|
1836
1890
|
for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
|
|
1837
|
-
var index$
|
|
1838
|
-
lane = 1 << index$
|
|
1839
|
-
remainingLanes[index$
|
|
1840
|
-
eventTimes[index$
|
|
1841
|
-
root[index$
|
|
1891
|
+
var index$8 = 31 - clz32(noLongerPendingLanes),
|
|
1892
|
+
lane = 1 << index$8;
|
|
1893
|
+
remainingLanes[index$8] = 0;
|
|
1894
|
+
eventTimes[index$8] = -1;
|
|
1895
|
+
root[index$8] = -1;
|
|
1842
1896
|
noLongerPendingLanes &= ~lane;
|
|
1843
1897
|
}
|
|
1844
1898
|
}
|
|
1845
1899
|
function markRootEntangled(root, entangledLanes) {
|
|
1846
1900
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
|
1847
1901
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
|
1848
|
-
var index$
|
|
1849
|
-
lane = 1 << index$
|
|
1850
|
-
(lane & entangledLanes) | (root[index$
|
|
1851
|
-
(root[index$
|
|
1902
|
+
var index$9 = 31 - clz32(rootEntangledLanes),
|
|
1903
|
+
lane = 1 << index$9;
|
|
1904
|
+
(lane & entangledLanes) | (root[index$9] & entangledLanes) &&
|
|
1905
|
+
(root[index$9] |= entangledLanes);
|
|
1852
1906
|
rootEntangledLanes &= ~lane;
|
|
1853
1907
|
}
|
|
1854
1908
|
}
|
|
1855
1909
|
function addFiberToLanesMap(root, fiber, lanes) {
|
|
1856
1910
|
if (isDevToolsPresent)
|
|
1857
1911
|
for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
|
|
1858
|
-
var index$
|
|
1859
|
-
lane = 1 << index$
|
|
1860
|
-
root[index$
|
|
1912
|
+
var index$10 = 31 - clz32(lanes),
|
|
1913
|
+
lane = 1 << index$10;
|
|
1914
|
+
root[index$10].add(fiber);
|
|
1861
1915
|
lanes &= ~lane;
|
|
1862
1916
|
}
|
|
1863
1917
|
}
|
|
@@ -1869,16 +1923,16 @@ function movePendingFibersToMemoized(root, lanes) {
|
|
|
1869
1923
|
0 < lanes;
|
|
1870
1924
|
|
|
1871
1925
|
) {
|
|
1872
|
-
var index$
|
|
1873
|
-
root = 1 << index$
|
|
1874
|
-
index$
|
|
1875
|
-
0 < index$
|
|
1876
|
-
(index$
|
|
1926
|
+
var index$11 = 31 - clz32(lanes);
|
|
1927
|
+
root = 1 << index$11;
|
|
1928
|
+
index$11 = pendingUpdatersLaneMap[index$11];
|
|
1929
|
+
0 < index$11.size &&
|
|
1930
|
+
(index$11.forEach(function(fiber) {
|
|
1877
1931
|
var alternate = fiber.alternate;
|
|
1878
1932
|
(null !== alternate && memoizedUpdaters.has(alternate)) ||
|
|
1879
1933
|
memoizedUpdaters.add(fiber);
|
|
1880
1934
|
}),
|
|
1881
|
-
index$
|
|
1935
|
+
index$11.clear());
|
|
1882
1936
|
lanes &= ~root;
|
|
1883
1937
|
}
|
|
1884
1938
|
}
|
|
@@ -2184,113 +2238,6 @@ function flushSyncCallbacks() {
|
|
|
2184
2238
|
}
|
|
2185
2239
|
return null;
|
|
2186
2240
|
}
|
|
2187
|
-
var supportsUserTimingV3 = !1;
|
|
2188
|
-
if (
|
|
2189
|
-
"undefined" !== typeof performance &&
|
|
2190
|
-
"function" === typeof performance.mark &&
|
|
2191
|
-
"function" === typeof performance.clearMarks
|
|
2192
|
-
) {
|
|
2193
|
-
var markOptions = {};
|
|
2194
|
-
Object.defineProperty(markOptions, "startTime", {
|
|
2195
|
-
get: function() {
|
|
2196
|
-
supportsUserTimingV3 = !0;
|
|
2197
|
-
return 0;
|
|
2198
|
-
},
|
|
2199
|
-
set: function() {}
|
|
2200
|
-
});
|
|
2201
|
-
try {
|
|
2202
|
-
performance.mark("__v3", markOptions);
|
|
2203
|
-
} catch (error) {
|
|
2204
|
-
} finally {
|
|
2205
|
-
performance.clearMarks("__v3");
|
|
2206
|
-
}
|
|
2207
|
-
}
|
|
2208
|
-
var laneLabels = [];
|
|
2209
|
-
function getLaneLabels() {
|
|
2210
|
-
if (0 === laneLabels.length)
|
|
2211
|
-
for (var lane = 1, index$11 = 0; 31 > index$11; index$11++)
|
|
2212
|
-
laneLabels.push(getLabelForLane(lane)), (lane *= 2);
|
|
2213
|
-
return laneLabels;
|
|
2214
|
-
}
|
|
2215
|
-
function markAndClear(name) {
|
|
2216
|
-
performance.mark(name);
|
|
2217
|
-
performance.clearMarks(name);
|
|
2218
|
-
}
|
|
2219
|
-
function markInternalModuleRanges() {
|
|
2220
|
-
if (
|
|
2221
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
2222
|
-
"function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges
|
|
2223
|
-
) {
|
|
2224
|
-
var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();
|
|
2225
|
-
if (isArrayImpl(ranges))
|
|
2226
|
-
for (var i = 0; i < ranges.length; i++) {
|
|
2227
|
-
var range = ranges[i];
|
|
2228
|
-
if (isArrayImpl(range) && 2 === range.length) {
|
|
2229
|
-
range = ranges[i];
|
|
2230
|
-
var stopStackFrame = range[1];
|
|
2231
|
-
markAndClear("--react-internal-module-start-" + range[0]);
|
|
2232
|
-
markAndClear("--react-internal-module-stop-" + stopStackFrame);
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
function markComponentRenderStarted(fiber) {
|
|
2238
|
-
supportsUserTimingV3 &&
|
|
2239
|
-
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2240
|
-
markAndClear("--component-render-start-" + fiber));
|
|
2241
|
-
}
|
|
2242
|
-
function markComponentRenderStopped() {
|
|
2243
|
-
supportsUserTimingV3 && markAndClear("--component-render-stop");
|
|
2244
|
-
}
|
|
2245
|
-
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
2246
|
-
supportsUserTimingV3 &&
|
|
2247
|
-
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2248
|
-
markAndClear("--component-layout-effect-unmount-start-" + fiber));
|
|
2249
|
-
}
|
|
2250
|
-
function markComponentLayoutEffectUnmountStopped() {
|
|
2251
|
-
supportsUserTimingV3 &&
|
|
2252
|
-
markAndClear("--component-layout-effect-unmount-stop");
|
|
2253
|
-
}
|
|
2254
|
-
var wakeableIDs = new ("function" === typeof WeakMap ? WeakMap : Map)(),
|
|
2255
|
-
wakeableID = 0;
|
|
2256
|
-
function getWakeableID(wakeable) {
|
|
2257
|
-
wakeableIDs.has(wakeable) || wakeableIDs.set(wakeable, wakeableID++);
|
|
2258
|
-
return wakeableIDs.get(wakeable);
|
|
2259
|
-
}
|
|
2260
|
-
function markComponentSuspended(fiber, wakeable, lanes) {
|
|
2261
|
-
if (supportsUserTimingV3) {
|
|
2262
|
-
var eventType = wakeableIDs.has(wakeable) ? "resuspend" : "suspend",
|
|
2263
|
-
id = getWakeableID(wakeable),
|
|
2264
|
-
componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
2265
|
-
markAndClear(
|
|
2266
|
-
"--suspense-" +
|
|
2267
|
-
eventType +
|
|
2268
|
-
"-" +
|
|
2269
|
-
id +
|
|
2270
|
-
"-" +
|
|
2271
|
-
componentName +
|
|
2272
|
-
"-" +
|
|
2273
|
-
(null === fiber.alternate ? "mount" : "update") +
|
|
2274
|
-
"-" +
|
|
2275
|
-
lanes +
|
|
2276
|
-
"-" +
|
|
2277
|
-
(wakeable.displayName || "")
|
|
2278
|
-
);
|
|
2279
|
-
wakeable.then(
|
|
2280
|
-
function() {
|
|
2281
|
-
return markAndClear("--suspense-resolved-" + id + "-" + componentName);
|
|
2282
|
-
},
|
|
2283
|
-
function() {
|
|
2284
|
-
return markAndClear("--suspense-rejected-" + id + "-" + componentName);
|
|
2285
|
-
}
|
|
2286
|
-
);
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
function markStateUpdateScheduled(fiber, lane) {
|
|
2290
|
-
supportsUserTimingV3 &&
|
|
2291
|
-
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2292
|
-
markAndClear("--schedule-state-update-" + lane + "-" + fiber));
|
|
2293
|
-
}
|
|
2294
2241
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2295
2242
|
function shallowEqual(objA, objB) {
|
|
2296
2243
|
if (objectIs(objA, objB)) return !0;
|
|
@@ -2710,18 +2657,18 @@ var classComponentUpdater = {
|
|
|
2710
2657
|
markStateUpdateScheduled(inst, lane);
|
|
2711
2658
|
},
|
|
2712
2659
|
enqueueForceUpdate: function(inst, callback) {
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2660
|
+
inst = inst._reactInternals;
|
|
2661
|
+
var eventTime = requestEventTime(),
|
|
2662
|
+
lane = requestUpdateLane(inst),
|
|
2663
|
+
update = createUpdate(eventTime, lane);
|
|
2717
2664
|
update.tag = 2;
|
|
2718
2665
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2719
|
-
enqueueUpdate(
|
|
2720
|
-
callback = scheduleUpdateOnFiber(
|
|
2721
|
-
null !== callback && entangleTransitions(callback,
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2666
|
+
enqueueUpdate(inst, update);
|
|
2667
|
+
callback = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2668
|
+
null !== callback && entangleTransitions(callback, inst, lane);
|
|
2669
|
+
null !== injectedProfilingHooks &&
|
|
2670
|
+
"function" === typeof injectedProfilingHooks.markForceUpdateScheduled &&
|
|
2671
|
+
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
|
2725
2672
|
}
|
|
2726
2673
|
};
|
|
2727
2674
|
function checkShouldComponentUpdate(
|
|
@@ -3810,9 +3757,9 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3810
3757
|
latestSetSnapshot(latestGetSnapshot(source._source));
|
|
3811
3758
|
var lane = requestUpdateLane(fiber);
|
|
3812
3759
|
root.mutableReadLanes |= lane & root.pendingLanes;
|
|
3813
|
-
} catch (error
|
|
3760
|
+
} catch (error) {
|
|
3814
3761
|
latestSetSnapshot(function() {
|
|
3815
|
-
throw error
|
|
3762
|
+
throw error;
|
|
3816
3763
|
});
|
|
3817
3764
|
}
|
|
3818
3765
|
});
|
|
@@ -3898,7 +3845,7 @@ function checkIfSnapshotChanged(inst) {
|
|
|
3898
3845
|
try {
|
|
3899
3846
|
var nextValue = latestGetSnapshot();
|
|
3900
3847
|
return !objectIs(inst, nextValue);
|
|
3901
|
-
} catch (error
|
|
3848
|
+
} catch (error) {
|
|
3902
3849
|
return !0;
|
|
3903
3850
|
}
|
|
3904
3851
|
}
|
|
@@ -4091,7 +4038,7 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
4091
4038
|
update.hasEagerState = !0;
|
|
4092
4039
|
update.eagerState = eagerState;
|
|
4093
4040
|
if (objectIs(eagerState, currentState)) return;
|
|
4094
|
-
} catch (error
|
|
4041
|
+
} catch (error) {
|
|
4095
4042
|
} finally {
|
|
4096
4043
|
}
|
|
4097
4044
|
action = requestEventTime();
|
|
@@ -4484,7 +4431,7 @@ function logCapturedError(boundary, errorInfo) {
|
|
|
4484
4431
|
});
|
|
4485
4432
|
}
|
|
4486
4433
|
}
|
|
4487
|
-
var PossiblyWeakMap
|
|
4434
|
+
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4488
4435
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4489
4436
|
lane = createUpdate(-1, lane);
|
|
4490
4437
|
lane.tag = 3;
|
|
@@ -4501,9 +4448,9 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4501
4448
|
lane.tag = 3;
|
|
4502
4449
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4503
4450
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4504
|
-
var error
|
|
4451
|
+
var error = errorInfo.value;
|
|
4505
4452
|
lane.payload = function() {
|
|
4506
|
-
return getDerivedStateFromError(error
|
|
4453
|
+
return getDerivedStateFromError(error);
|
|
4507
4454
|
};
|
|
4508
4455
|
lane.callback = function() {
|
|
4509
4456
|
logCapturedError(fiber, errorInfo);
|
|
@@ -4693,14 +4640,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4693
4640
|
break;
|
|
4694
4641
|
case "collapsed":
|
|
4695
4642
|
lastTailNode = renderState.tail;
|
|
4696
|
-
for (var lastTailNode$
|
|
4697
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4643
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4644
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4698
4645
|
(lastTailNode = lastTailNode.sibling);
|
|
4699
|
-
null === lastTailNode$
|
|
4646
|
+
null === lastTailNode$38
|
|
4700
4647
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4701
4648
|
? (renderState.tail = null)
|
|
4702
4649
|
: (renderState.tail.sibling = null)
|
|
4703
|
-
: (lastTailNode$
|
|
4650
|
+
: (lastTailNode$38.sibling = null);
|
|
4704
4651
|
}
|
|
4705
4652
|
}
|
|
4706
4653
|
function bubbleProperties(completedWork) {
|
|
@@ -4712,53 +4659,53 @@ function bubbleProperties(completedWork) {
|
|
|
4712
4659
|
if (didBailout)
|
|
4713
4660
|
if (0 !== (completedWork.mode & 2)) {
|
|
4714
4661
|
for (
|
|
4715
|
-
var treeBaseDuration$
|
|
4716
|
-
child$
|
|
4717
|
-
null !== child$
|
|
4662
|
+
var treeBaseDuration$40 = completedWork.selfBaseDuration,
|
|
4663
|
+
child$41 = completedWork.child;
|
|
4664
|
+
null !== child$41;
|
|
4718
4665
|
|
|
4719
4666
|
)
|
|
4720
|
-
(newChildLanes |= child$
|
|
4721
|
-
(subtreeFlags |= child$
|
|
4722
|
-
(subtreeFlags |= child$
|
|
4723
|
-
(treeBaseDuration$
|
|
4724
|
-
(child$
|
|
4725
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4667
|
+
(newChildLanes |= child$41.lanes | child$41.childLanes),
|
|
4668
|
+
(subtreeFlags |= child$41.subtreeFlags & 14680064),
|
|
4669
|
+
(subtreeFlags |= child$41.flags & 14680064),
|
|
4670
|
+
(treeBaseDuration$40 += child$41.treeBaseDuration),
|
|
4671
|
+
(child$41 = child$41.sibling);
|
|
4672
|
+
completedWork.treeBaseDuration = treeBaseDuration$40;
|
|
4726
4673
|
} else
|
|
4727
4674
|
for (
|
|
4728
|
-
treeBaseDuration$
|
|
4729
|
-
null !== treeBaseDuration$
|
|
4675
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4676
|
+
null !== treeBaseDuration$40;
|
|
4730
4677
|
|
|
4731
4678
|
)
|
|
4732
4679
|
(newChildLanes |=
|
|
4733
|
-
treeBaseDuration$
|
|
4734
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4735
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4736
|
-
(treeBaseDuration$
|
|
4737
|
-
(treeBaseDuration$
|
|
4680
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4681
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags & 14680064),
|
|
4682
|
+
(subtreeFlags |= treeBaseDuration$40.flags & 14680064),
|
|
4683
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4684
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4738
4685
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4739
|
-
treeBaseDuration$
|
|
4740
|
-
child$
|
|
4686
|
+
treeBaseDuration$40 = completedWork.actualDuration;
|
|
4687
|
+
child$41 = completedWork.selfBaseDuration;
|
|
4741
4688
|
for (var child = completedWork.child; null !== child; )
|
|
4742
4689
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4743
4690
|
(subtreeFlags |= child.subtreeFlags),
|
|
4744
4691
|
(subtreeFlags |= child.flags),
|
|
4745
|
-
(treeBaseDuration$
|
|
4746
|
-
(child$
|
|
4692
|
+
(treeBaseDuration$40 += child.actualDuration),
|
|
4693
|
+
(child$41 += child.treeBaseDuration),
|
|
4747
4694
|
(child = child.sibling);
|
|
4748
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4749
|
-
completedWork.treeBaseDuration = child$
|
|
4695
|
+
completedWork.actualDuration = treeBaseDuration$40;
|
|
4696
|
+
completedWork.treeBaseDuration = child$41;
|
|
4750
4697
|
} else
|
|
4751
4698
|
for (
|
|
4752
|
-
treeBaseDuration$
|
|
4753
|
-
null !== treeBaseDuration$
|
|
4699
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4700
|
+
null !== treeBaseDuration$40;
|
|
4754
4701
|
|
|
4755
4702
|
)
|
|
4756
4703
|
(newChildLanes |=
|
|
4757
|
-
treeBaseDuration$
|
|
4758
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4759
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4760
|
-
(treeBaseDuration$
|
|
4761
|
-
(treeBaseDuration$
|
|
4704
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4705
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags),
|
|
4706
|
+
(subtreeFlags |= treeBaseDuration$40.flags),
|
|
4707
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4708
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4762
4709
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4763
4710
|
completedWork.childLanes = newChildLanes;
|
|
4764
4711
|
return didBailout;
|
|
@@ -6139,16 +6086,16 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
6139
6086
|
recordLayoutEffectDuration(current);
|
|
6140
6087
|
}
|
|
6141
6088
|
else ref(null);
|
|
6142
|
-
} catch (error
|
|
6143
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
6089
|
+
} catch (error) {
|
|
6090
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6144
6091
|
}
|
|
6145
6092
|
else ref.current = null;
|
|
6146
6093
|
}
|
|
6147
6094
|
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
6148
6095
|
try {
|
|
6149
6096
|
destroy();
|
|
6150
|
-
} catch (error
|
|
6151
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
6097
|
+
} catch (error) {
|
|
6098
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6152
6099
|
}
|
|
6153
6100
|
}
|
|
6154
6101
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
@@ -6197,8 +6144,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
6197
6144
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6198
6145
|
);
|
|
6199
6146
|
}
|
|
6200
|
-
} catch (error
|
|
6201
|
-
captureCommitPhaseError(root, root.return, error
|
|
6147
|
+
} catch (error) {
|
|
6148
|
+
captureCommitPhaseError(root, root.return, error);
|
|
6202
6149
|
}
|
|
6203
6150
|
firstChild = root.sibling;
|
|
6204
6151
|
if (null !== firstChild) {
|
|
@@ -6225,24 +6172,23 @@ function commitHookEffectListUnmount(
|
|
|
6225
6172
|
if ((effect.tag & flags) === flags) {
|
|
6226
6173
|
var destroy = effect.destroy;
|
|
6227
6174
|
effect.destroy = void 0;
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
)
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
markComponentLayoutEffectUnmountStarted(finishedWork);
|
|
6240
|
-
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
6175
|
+
void 0 !== destroy &&
|
|
6176
|
+
(0 !== (flags & 8)
|
|
6177
|
+
? null !== injectedProfilingHooks &&
|
|
6178
|
+
"function" ===
|
|
6179
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted &&
|
|
6180
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(
|
|
6181
|
+
finishedWork
|
|
6182
|
+
)
|
|
6183
|
+
: 0 !== (flags & 4) &&
|
|
6184
|
+
markComponentLayoutEffectUnmountStarted(finishedWork),
|
|
6185
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy),
|
|
6241
6186
|
0 !== (flags & 8)
|
|
6242
|
-
?
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6187
|
+
? null !== injectedProfilingHooks &&
|
|
6188
|
+
"function" ===
|
|
6189
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
|
|
6190
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
|
|
6191
|
+
: 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped());
|
|
6246
6192
|
}
|
|
6247
6193
|
effect = effect.next;
|
|
6248
6194
|
} while (effect !== updateQueue);
|
|
@@ -6255,30 +6201,32 @@ function commitHookEffectListMount(flags, finishedWork) {
|
|
|
6255
6201
|
var effect = (updateQueue = updateQueue.next);
|
|
6256
6202
|
do {
|
|
6257
6203
|
if ((effect.tag & flags) === flags) {
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6204
|
+
0 !== (flags & 8)
|
|
6205
|
+
? null !== injectedProfilingHooks &&
|
|
6206
|
+
"function" ===
|
|
6207
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted &&
|
|
6208
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStarted(
|
|
6209
|
+
finishedWork
|
|
6210
|
+
)
|
|
6211
|
+
: 0 !== (flags & 4) &&
|
|
6212
|
+
null !== injectedProfilingHooks &&
|
|
6213
|
+
"function" ===
|
|
6214
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted &&
|
|
6215
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStarted(
|
|
6216
|
+
finishedWork
|
|
6264
6217
|
);
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
0 !== (flags & 4) &&
|
|
6268
|
-
supportsUserTimingV3 &&
|
|
6269
|
-
((componentName =
|
|
6270
|
-
getComponentNameFromFiber(finishedWork) || "Unknown"),
|
|
6271
|
-
markAndClear(
|
|
6272
|
-
"--component-layout-effect-mount-start-" + componentName
|
|
6273
|
-
));
|
|
6274
|
-
componentName = effect.create;
|
|
6275
|
-
effect.destroy = componentName();
|
|
6218
|
+
var create$87 = effect.create;
|
|
6219
|
+
effect.destroy = create$87();
|
|
6276
6220
|
0 !== (flags & 8)
|
|
6277
|
-
?
|
|
6278
|
-
|
|
6221
|
+
? null !== injectedProfilingHooks &&
|
|
6222
|
+
"function" ===
|
|
6223
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped &&
|
|
6224
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStopped()
|
|
6279
6225
|
: 0 !== (flags & 4) &&
|
|
6280
|
-
|
|
6281
|
-
|
|
6226
|
+
null !== injectedProfilingHooks &&
|
|
6227
|
+
"function" ===
|
|
6228
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped &&
|
|
6229
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStopped();
|
|
6282
6230
|
}
|
|
6283
6231
|
effect = effect.next;
|
|
6284
6232
|
} while (effect !== updateQueue);
|
|
@@ -6440,8 +6388,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6440
6388
|
recordLayoutEffectDuration(effect);
|
|
6441
6389
|
}
|
|
6442
6390
|
else _effect.componentWillUnmount();
|
|
6443
|
-
} catch (error
|
|
6444
|
-
captureCommitPhaseError(current, root, error
|
|
6391
|
+
} catch (error) {
|
|
6392
|
+
captureCommitPhaseError(current, root, error);
|
|
6445
6393
|
}
|
|
6446
6394
|
break;
|
|
6447
6395
|
case 5:
|
|
@@ -6466,8 +6414,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6466
6414
|
var alternate = childToDelete.alternate;
|
|
6467
6415
|
null !== alternate && (alternate.return = null);
|
|
6468
6416
|
childToDelete.return = null;
|
|
6469
|
-
} catch (error
|
|
6470
|
-
captureCommitPhaseError(childToDelete, root, error
|
|
6417
|
+
} catch (error) {
|
|
6418
|
+
captureCommitPhaseError(childToDelete, root, error);
|
|
6471
6419
|
}
|
|
6472
6420
|
}
|
|
6473
6421
|
firstChild = root.child;
|
|
@@ -6499,11 +6447,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6499
6447
|
switch (root.tag) {
|
|
6500
6448
|
case 13:
|
|
6501
6449
|
if (null !== root.memoizedState) {
|
|
6502
|
-
var current$
|
|
6503
|
-
if (
|
|
6504
|
-
null === current$104 ||
|
|
6505
|
-
null === current$104.memoizedState
|
|
6506
|
-
)
|
|
6450
|
+
var current$93 = root.alternate;
|
|
6451
|
+
if (null === current$93 || null === current$93.memoizedState)
|
|
6507
6452
|
globalMostRecentFallbackTime = now();
|
|
6508
6453
|
}
|
|
6509
6454
|
}
|
|
@@ -6525,8 +6470,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6525
6470
|
case 4:
|
|
6526
6471
|
commitWork(root.alternate, root);
|
|
6527
6472
|
}
|
|
6528
|
-
} catch (error
|
|
6529
|
-
captureCommitPhaseError(root, root.return, error
|
|
6473
|
+
} catch (error) {
|
|
6474
|
+
captureCommitPhaseError(root, root.return, error);
|
|
6530
6475
|
}
|
|
6531
6476
|
firstChild = root.sibling;
|
|
6532
6477
|
if (null !== firstChild) {
|
|
@@ -6613,22 +6558,22 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6613
6558
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6614
6559
|
break;
|
|
6615
6560
|
case 3:
|
|
6616
|
-
var updateQueue$
|
|
6617
|
-
if (null !== updateQueue$
|
|
6618
|
-
var instance$
|
|
6561
|
+
var updateQueue$89 = committedLanes.updateQueue;
|
|
6562
|
+
if (null !== updateQueue$89) {
|
|
6563
|
+
var instance$90 = null;
|
|
6619
6564
|
if (null !== committedLanes.child)
|
|
6620
6565
|
switch (committedLanes.child.tag) {
|
|
6621
6566
|
case 5:
|
|
6622
|
-
instance$
|
|
6567
|
+
instance$90 =
|
|
6623
6568
|
committedLanes.child.stateNode.canonical;
|
|
6624
6569
|
break;
|
|
6625
6570
|
case 1:
|
|
6626
|
-
instance$
|
|
6571
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6627
6572
|
}
|
|
6628
6573
|
commitUpdateQueue(
|
|
6629
6574
|
committedLanes,
|
|
6630
|
-
updateQueue$
|
|
6631
|
-
instance$
|
|
6575
|
+
updateQueue$89,
|
|
6576
|
+
instance$90
|
|
6632
6577
|
);
|
|
6633
6578
|
}
|
|
6634
6579
|
break;
|
|
@@ -6647,7 +6592,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6647
6592
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6648
6593
|
onRender = _finishedWork$memoize2.onRender,
|
|
6649
6594
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6650
|
-
instance$
|
|
6595
|
+
instance$90 = commitTime;
|
|
6651
6596
|
current = null === current ? "mount" : "update";
|
|
6652
6597
|
currentUpdateIsNested && (current = "nested-update");
|
|
6653
6598
|
"function" === typeof onRender &&
|
|
@@ -6657,14 +6602,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6657
6602
|
committedLanes.actualDuration,
|
|
6658
6603
|
committedLanes.treeBaseDuration,
|
|
6659
6604
|
committedLanes.actualStartTime,
|
|
6660
|
-
instance$
|
|
6605
|
+
instance$90
|
|
6661
6606
|
);
|
|
6662
6607
|
"function" === typeof onCommit &&
|
|
6663
6608
|
onCommit(
|
|
6664
6609
|
committedLanes.memoizedProps.id,
|
|
6665
6610
|
current,
|
|
6666
6611
|
effectDuration,
|
|
6667
|
-
instance$
|
|
6612
|
+
instance$90
|
|
6668
6613
|
);
|
|
6669
6614
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6670
6615
|
var parentFiber = committedLanes.return;
|
|
@@ -6694,34 +6639,34 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6694
6639
|
);
|
|
6695
6640
|
}
|
|
6696
6641
|
if (committedLanes.flags & 512) {
|
|
6697
|
-
instance$
|
|
6642
|
+
instance$90 = void 0;
|
|
6698
6643
|
current = committedLanes;
|
|
6699
6644
|
var ref = current.ref;
|
|
6700
6645
|
if (null !== ref) {
|
|
6701
6646
|
var instance$jscomp$0 = current.stateNode;
|
|
6702
6647
|
switch (current.tag) {
|
|
6703
6648
|
case 5:
|
|
6704
|
-
instance$
|
|
6649
|
+
instance$90 = instance$jscomp$0.canonical;
|
|
6705
6650
|
break;
|
|
6706
6651
|
default:
|
|
6707
|
-
instance$
|
|
6652
|
+
instance$90 = instance$jscomp$0;
|
|
6708
6653
|
}
|
|
6709
6654
|
if ("function" === typeof ref)
|
|
6710
6655
|
if (current.mode & 2)
|
|
6711
6656
|
try {
|
|
6712
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6657
|
+
startLayoutEffectTimer(), ref(instance$90);
|
|
6713
6658
|
} finally {
|
|
6714
6659
|
recordLayoutEffectDuration(current);
|
|
6715
6660
|
}
|
|
6716
|
-
else ref(instance$
|
|
6717
|
-
else ref.current = instance$
|
|
6661
|
+
else ref(instance$90);
|
|
6662
|
+
else ref.current = instance$90;
|
|
6718
6663
|
}
|
|
6719
6664
|
}
|
|
6720
|
-
} catch (error
|
|
6665
|
+
} catch (error) {
|
|
6721
6666
|
captureCommitPhaseError(
|
|
6722
6667
|
committedLanes,
|
|
6723
6668
|
committedLanes.return,
|
|
6724
|
-
error
|
|
6669
|
+
error
|
|
6725
6670
|
);
|
|
6726
6671
|
}
|
|
6727
6672
|
}
|
|
@@ -6729,10 +6674,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6729
6674
|
nextEffect = null;
|
|
6730
6675
|
break;
|
|
6731
6676
|
}
|
|
6732
|
-
instance$
|
|
6733
|
-
if (null !== instance$
|
|
6734
|
-
instance$
|
|
6735
|
-
nextEffect = instance$
|
|
6677
|
+
instance$90 = committedLanes.sibling;
|
|
6678
|
+
if (null !== instance$90) {
|
|
6679
|
+
instance$90.return = committedLanes.return;
|
|
6680
|
+
nextEffect = instance$90;
|
|
6736
6681
|
break;
|
|
6737
6682
|
}
|
|
6738
6683
|
nextEffect = committedLanes.return;
|
|
@@ -6853,12 +6798,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6853
6798
|
0 < lanes;
|
|
6854
6799
|
|
|
6855
6800
|
) {
|
|
6856
|
-
var index$
|
|
6857
|
-
lane = 1 << index$
|
|
6858
|
-
expirationTime = expirationTimes[index$
|
|
6801
|
+
var index$6 = 31 - clz32(lanes),
|
|
6802
|
+
lane = 1 << index$6,
|
|
6803
|
+
expirationTime = expirationTimes[index$6];
|
|
6859
6804
|
if (-1 === expirationTime) {
|
|
6860
6805
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6861
|
-
expirationTimes[index$
|
|
6806
|
+
expirationTimes[index$6] = computeExpirationTime(lane, currentTime);
|
|
6862
6807
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6863
6808
|
lanes &= ~lane;
|
|
6864
6809
|
}
|
|
@@ -6953,7 +6898,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6953
6898
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
6954
6899
|
prepareFreshStack(root, didTimeout);
|
|
6955
6900
|
}
|
|
6956
|
-
|
|
6901
|
+
markRenderStarted(didTimeout);
|
|
6957
6902
|
do
|
|
6958
6903
|
try {
|
|
6959
6904
|
workLoopConcurrent();
|
|
@@ -6966,9 +6911,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6966
6911
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6967
6912
|
executionContext = prevExecutionContext;
|
|
6968
6913
|
null !== workInProgress
|
|
6969
|
-
? (
|
|
6914
|
+
? (null !== injectedProfilingHooks &&
|
|
6915
|
+
"function" === typeof injectedProfilingHooks.markRenderYielded &&
|
|
6916
|
+
injectedProfilingHooks.markRenderYielded(),
|
|
6970
6917
|
(didTimeout = 0))
|
|
6971
|
-
: (
|
|
6918
|
+
: (markRenderStopped(),
|
|
6972
6919
|
(workInProgressRoot = null),
|
|
6973
6920
|
(workInProgressRootRenderLanes = 0),
|
|
6974
6921
|
(didTimeout = workInProgressRootExitStatus));
|
|
@@ -7110,7 +7057,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
7110
7057
|
check = check.value;
|
|
7111
7058
|
try {
|
|
7112
7059
|
if (!objectIs(getSnapshot(), check)) return !1;
|
|
7113
|
-
} catch (error
|
|
7060
|
+
} catch (error) {
|
|
7114
7061
|
return !1;
|
|
7115
7062
|
}
|
|
7116
7063
|
}
|
|
@@ -7136,9 +7083,9 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
7136
7083
|
root.suspendedLanes |= suspendedLanes;
|
|
7137
7084
|
root.pingedLanes &= ~suspendedLanes;
|
|
7138
7085
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
7139
|
-
var index$
|
|
7140
|
-
lane = 1 << index$
|
|
7141
|
-
root[index$
|
|
7086
|
+
var index$7 = 31 - clz32(suspendedLanes),
|
|
7087
|
+
lane = 1 << index$7;
|
|
7088
|
+
root[index$7] = -1;
|
|
7142
7089
|
suspendedLanes &= ~lane;
|
|
7143
7090
|
}
|
|
7144
7091
|
}
|
|
@@ -7243,7 +7190,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
7243
7190
|
interleavedQueues = null;
|
|
7244
7191
|
}
|
|
7245
7192
|
}
|
|
7246
|
-
function handleError(root, thrownValue
|
|
7193
|
+
function handleError(root, thrownValue) {
|
|
7247
7194
|
do {
|
|
7248
7195
|
var erroredWork = workInProgress;
|
|
7249
7196
|
try {
|
|
@@ -7267,7 +7214,7 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7267
7214
|
ReactCurrentOwner$2.current = null;
|
|
7268
7215
|
if (null === erroredWork || null === erroredWork.return) {
|
|
7269
7216
|
workInProgressRootExitStatus = 1;
|
|
7270
|
-
workInProgressRootFatalError = thrownValue
|
|
7217
|
+
workInProgressRootFatalError = thrownValue;
|
|
7271
7218
|
workInProgress = null;
|
|
7272
7219
|
break;
|
|
7273
7220
|
}
|
|
@@ -7275,46 +7222,41 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7275
7222
|
stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
|
|
7276
7223
|
markComponentRenderStopped();
|
|
7277
7224
|
if (
|
|
7278
|
-
null !== thrownValue
|
|
7279
|
-
"object" === typeof thrownValue
|
|
7280
|
-
"function" === typeof thrownValue
|
|
7281
|
-
)
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
: "string" === typeof thrownValue && (fiber = thrownValue);
|
|
7299
|
-
markAndClear("--error-" + componentName + "-" + phase + "-" + fiber);
|
|
7300
|
-
}
|
|
7301
|
-
}
|
|
7225
|
+
null !== thrownValue &&
|
|
7226
|
+
"object" === typeof thrownValue &&
|
|
7227
|
+
"function" === typeof thrownValue.then
|
|
7228
|
+
) {
|
|
7229
|
+
var wakeable = thrownValue;
|
|
7230
|
+
null !== injectedProfilingHooks &&
|
|
7231
|
+
"function" === typeof injectedProfilingHooks.markComponentSuspended &&
|
|
7232
|
+
injectedProfilingHooks.markComponentSuspended(
|
|
7233
|
+
erroredWork,
|
|
7234
|
+
wakeable,
|
|
7235
|
+
workInProgressRootRenderLanes
|
|
7236
|
+
);
|
|
7237
|
+
} else
|
|
7238
|
+
null !== injectedProfilingHooks &&
|
|
7239
|
+
"function" === typeof injectedProfilingHooks.markComponentErrored &&
|
|
7240
|
+
injectedProfilingHooks.markComponentErrored(
|
|
7241
|
+
erroredWork,
|
|
7242
|
+
thrownValue,
|
|
7243
|
+
workInProgressRootRenderLanes
|
|
7244
|
+
);
|
|
7302
7245
|
a: {
|
|
7303
|
-
|
|
7246
|
+
wakeable = root;
|
|
7304
7247
|
var returnFiber = erroredWork.return,
|
|
7305
7248
|
sourceFiber = erroredWork,
|
|
7306
|
-
value = thrownValue
|
|
7307
|
-
thrownValue
|
|
7249
|
+
value = thrownValue;
|
|
7250
|
+
thrownValue = workInProgressRootRenderLanes;
|
|
7308
7251
|
sourceFiber.flags |= 32768;
|
|
7309
|
-
isDevToolsPresent &&
|
|
7310
|
-
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
7252
|
+
isDevToolsPresent && restorePendingUpdaters(wakeable, thrownValue);
|
|
7311
7253
|
if (
|
|
7312
7254
|
null !== value &&
|
|
7313
7255
|
"object" === typeof value &&
|
|
7314
7256
|
"function" === typeof value.then
|
|
7315
7257
|
) {
|
|
7316
|
-
|
|
7317
|
-
|
|
7258
|
+
var wakeable$jscomp$0 = value,
|
|
7259
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
7318
7260
|
tag = sourceFiber$jscomp$0.tag;
|
|
7319
7261
|
if (
|
|
7320
7262
|
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
@@ -7353,7 +7295,7 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7353
7295
|
if (null !== suspenseBoundary) {
|
|
7354
7296
|
suspenseBoundary.flags &= -257;
|
|
7355
7297
|
value = suspenseBoundary;
|
|
7356
|
-
sourceFiber$jscomp$0 = thrownValue
|
|
7298
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
7357
7299
|
if (0 === (value.mode & 1))
|
|
7358
7300
|
if (value === returnFiber) value.flags |= 65536;
|
|
7359
7301
|
else {
|
|
@@ -7387,34 +7329,34 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7387
7329
|
sourceFiber = void 0;
|
|
7388
7330
|
value = suspenseBoundary;
|
|
7389
7331
|
if (value.mode & 1) {
|
|
7390
|
-
var pingCache =
|
|
7332
|
+
var pingCache = wakeable.pingCache;
|
|
7391
7333
|
null === pingCache
|
|
7392
|
-
? ((pingCache =
|
|
7334
|
+
? ((pingCache = wakeable.pingCache = new PossiblyWeakMap()),
|
|
7393
7335
|
(sourceFiber = new Set()),
|
|
7394
|
-
pingCache.set(
|
|
7395
|
-
: ((sourceFiber = pingCache.get(
|
|
7336
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber))
|
|
7337
|
+
: ((sourceFiber = pingCache.get(wakeable$jscomp$0)),
|
|
7396
7338
|
void 0 === sourceFiber &&
|
|
7397
7339
|
((sourceFiber = new Set()),
|
|
7398
|
-
pingCache.set(
|
|
7399
|
-
if (!sourceFiber.has(thrownValue
|
|
7400
|
-
sourceFiber.add(thrownValue
|
|
7340
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber)));
|
|
7341
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
7342
|
+
sourceFiber.add(thrownValue);
|
|
7401
7343
|
var ping = pingSuspendedRoot.bind(
|
|
7402
7344
|
null,
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
thrownValue
|
|
7345
|
+
wakeable,
|
|
7346
|
+
wakeable$jscomp$0,
|
|
7347
|
+
thrownValue
|
|
7406
7348
|
);
|
|
7407
7349
|
isDevToolsPresent &&
|
|
7408
|
-
restorePendingUpdaters(
|
|
7409
|
-
|
|
7350
|
+
restorePendingUpdaters(wakeable, thrownValue);
|
|
7351
|
+
wakeable$jscomp$0.then(ping, ping);
|
|
7410
7352
|
}
|
|
7411
7353
|
}
|
|
7412
7354
|
var wakeables = value.updateQueue;
|
|
7413
7355
|
if (null === wakeables) {
|
|
7414
7356
|
var updateQueue = new Set();
|
|
7415
|
-
updateQueue.add(
|
|
7357
|
+
updateQueue.add(wakeable$jscomp$0);
|
|
7416
7358
|
value.updateQueue = updateQueue;
|
|
7417
|
-
} else wakeables.add(
|
|
7359
|
+
} else wakeables.add(wakeable$jscomp$0);
|
|
7418
7360
|
break a;
|
|
7419
7361
|
} else
|
|
7420
7362
|
value = Error(
|
|
@@ -7425,51 +7367,51 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7425
7367
|
4 !== workInProgressRootExitStatus &&
|
|
7426
7368
|
(workInProgressRootExitStatus = 2);
|
|
7427
7369
|
value = createCapturedValue(value, sourceFiber);
|
|
7428
|
-
|
|
7370
|
+
wakeable = returnFiber;
|
|
7429
7371
|
do {
|
|
7430
|
-
switch (
|
|
7372
|
+
switch (wakeable.tag) {
|
|
7431
7373
|
case 3:
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
thrownValue
|
|
7435
|
-
|
|
7374
|
+
wakeable$jscomp$0 = value;
|
|
7375
|
+
wakeable.flags |= 65536;
|
|
7376
|
+
thrownValue &= -thrownValue;
|
|
7377
|
+
wakeable.lanes |= thrownValue;
|
|
7436
7378
|
var update$jscomp$0 = createRootErrorUpdate(
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
thrownValue
|
|
7379
|
+
wakeable,
|
|
7380
|
+
wakeable$jscomp$0,
|
|
7381
|
+
thrownValue
|
|
7440
7382
|
);
|
|
7441
|
-
enqueueCapturedUpdate(
|
|
7383
|
+
enqueueCapturedUpdate(wakeable, update$jscomp$0);
|
|
7442
7384
|
break a;
|
|
7443
7385
|
case 1:
|
|
7444
|
-
|
|
7445
|
-
var ctor =
|
|
7446
|
-
instance =
|
|
7386
|
+
wakeable$jscomp$0 = value;
|
|
7387
|
+
var ctor = wakeable.type,
|
|
7388
|
+
instance = wakeable.stateNode;
|
|
7447
7389
|
if (
|
|
7448
|
-
0 === (
|
|
7390
|
+
0 === (wakeable.flags & 128) &&
|
|
7449
7391
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
7450
7392
|
(null !== instance &&
|
|
7451
7393
|
"function" === typeof instance.componentDidCatch &&
|
|
7452
7394
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7453
7395
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7454
7396
|
) {
|
|
7455
|
-
|
|
7456
|
-
thrownValue
|
|
7457
|
-
|
|
7458
|
-
var update$
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
thrownValue
|
|
7397
|
+
wakeable.flags |= 65536;
|
|
7398
|
+
thrownValue &= -thrownValue;
|
|
7399
|
+
wakeable.lanes |= thrownValue;
|
|
7400
|
+
var update$34 = createClassErrorUpdate(
|
|
7401
|
+
wakeable,
|
|
7402
|
+
wakeable$jscomp$0,
|
|
7403
|
+
thrownValue
|
|
7462
7404
|
);
|
|
7463
|
-
enqueueCapturedUpdate(
|
|
7405
|
+
enqueueCapturedUpdate(wakeable, update$34);
|
|
7464
7406
|
break a;
|
|
7465
7407
|
}
|
|
7466
7408
|
}
|
|
7467
|
-
|
|
7468
|
-
} while (null !==
|
|
7409
|
+
wakeable = wakeable.return;
|
|
7410
|
+
} while (null !== wakeable);
|
|
7469
7411
|
}
|
|
7470
7412
|
completeUnitOfWork(erroredWork);
|
|
7471
7413
|
} catch (yetAnotherThrownValue) {
|
|
7472
|
-
thrownValue
|
|
7414
|
+
thrownValue = yetAnotherThrownValue;
|
|
7473
7415
|
workInProgress === erroredWork &&
|
|
7474
7416
|
null !== erroredWork &&
|
|
7475
7417
|
(workInProgress = erroredWork = erroredWork.return);
|
|
@@ -7497,7 +7439,7 @@ function renderRootSync(root, lanes) {
|
|
|
7497
7439
|
}
|
|
7498
7440
|
prepareFreshStack(root, lanes);
|
|
7499
7441
|
}
|
|
7500
|
-
|
|
7442
|
+
markRenderStarted(lanes);
|
|
7501
7443
|
do
|
|
7502
7444
|
try {
|
|
7503
7445
|
workLoopSync();
|
|
@@ -7513,7 +7455,7 @@ function renderRootSync(root, lanes) {
|
|
|
7513
7455
|
throw Error(
|
|
7514
7456
|
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
|
|
7515
7457
|
);
|
|
7516
|
-
|
|
7458
|
+
markRenderStopped();
|
|
7517
7459
|
workInProgressRoot = null;
|
|
7518
7460
|
workInProgressRootRenderLanes = 0;
|
|
7519
7461
|
return workInProgressRootExitStatus;
|
|
@@ -7606,15 +7548,10 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7606
7548
|
throw Error("Should not already be working.");
|
|
7607
7549
|
var finishedWork = root.finishedWork,
|
|
7608
7550
|
lanes = root.finishedLanes;
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
getLaneLabels(),
|
|
7614
|
-
markAndClear("--react-lane-labels-" + laneLabels.join(",")),
|
|
7615
|
-
markInternalModuleRanges());
|
|
7616
|
-
if (null === finishedWork)
|
|
7617
|
-
return supportsUserTimingV3 && markAndClear("--commit-stop"), null;
|
|
7551
|
+
null !== injectedProfilingHooks &&
|
|
7552
|
+
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
|
7553
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
|
7554
|
+
if (null === finishedWork) return markCommitStopped(), null;
|
|
7618
7555
|
root.finishedWork = null;
|
|
7619
7556
|
root.finishedLanes = 0;
|
|
7620
7557
|
if (finishedWork === root.current)
|
|
@@ -7649,9 +7586,13 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7649
7586
|
commitTime = now$1();
|
|
7650
7587
|
commitMutationEffects(root, finishedWork, lanes);
|
|
7651
7588
|
root.current = finishedWork;
|
|
7652
|
-
|
|
7589
|
+
null !== injectedProfilingHooks &&
|
|
7590
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
|
7591
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes);
|
|
7653
7592
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
7654
|
-
|
|
7593
|
+
null !== injectedProfilingHooks &&
|
|
7594
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
|
7595
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
|
7655
7596
|
requestPaint();
|
|
7656
7597
|
executionContext = prevExecutionContext;
|
|
7657
7598
|
currentUpdatePriority = previousPriority;
|
|
@@ -7682,7 +7623,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7682
7623
|
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7683
7624
|
: (nestedUpdateCount = 0);
|
|
7684
7625
|
flushSyncCallbacks();
|
|
7685
|
-
|
|
7626
|
+
markCommitStopped();
|
|
7686
7627
|
return null;
|
|
7687
7628
|
}
|
|
7688
7629
|
function flushPassiveEffects() {
|
|
@@ -7702,8 +7643,10 @@ function flushPassiveEffects() {
|
|
|
7702
7643
|
pendingPassiveEffectsLanes = 0;
|
|
7703
7644
|
if (0 !== (executionContext & 6))
|
|
7704
7645
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7705
|
-
|
|
7706
|
-
|
|
7646
|
+
null !== injectedProfilingHooks &&
|
|
7647
|
+
"function" ===
|
|
7648
|
+
typeof injectedProfilingHooks.markPassiveEffectsStarted &&
|
|
7649
|
+
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
|
7707
7650
|
lanes = executionContext;
|
|
7708
7651
|
executionContext |= 4;
|
|
7709
7652
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
@@ -7814,12 +7757,8 @@ function flushPassiveEffects() {
|
|
|
7814
7757
|
}
|
|
7815
7758
|
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7816
7759
|
}
|
|
7817
|
-
} catch (error
|
|
7818
|
-
captureCommitPhaseError(
|
|
7819
|
-
deletions,
|
|
7820
|
-
deletions.return,
|
|
7821
|
-
error$112
|
|
7822
|
-
);
|
|
7760
|
+
} catch (error) {
|
|
7761
|
+
captureCommitPhaseError(deletions, deletions.return, error);
|
|
7823
7762
|
}
|
|
7824
7763
|
if (deletions === child) {
|
|
7825
7764
|
nextEffect = null;
|
|
@@ -7871,7 +7810,10 @@ function flushPassiveEffects() {
|
|
|
7871
7810
|
}
|
|
7872
7811
|
}
|
|
7873
7812
|
}
|
|
7874
|
-
|
|
7813
|
+
null !== injectedProfilingHooks &&
|
|
7814
|
+
"function" ===
|
|
7815
|
+
typeof injectedProfilingHooks.markPassiveEffectsStopped &&
|
|
7816
|
+
injectedProfilingHooks.markPassiveEffectsStopped();
|
|
7875
7817
|
executionContext = lanes;
|
|
7876
7818
|
flushSyncCallbacks();
|
|
7877
7819
|
if (
|
|
@@ -8687,7 +8629,9 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8687
8629
|
var current = container.current,
|
|
8688
8630
|
eventTime = requestEventTime(),
|
|
8689
8631
|
lane = requestUpdateLane(current);
|
|
8690
|
-
|
|
8632
|
+
null !== injectedProfilingHooks &&
|
|
8633
|
+
"function" === typeof injectedProfilingHooks.markRenderScheduled &&
|
|
8634
|
+
injectedProfilingHooks.markRenderScheduled(lane);
|
|
8691
8635
|
a: if (parentComponent) {
|
|
8692
8636
|
parentComponent = parentComponent._reactInternals;
|
|
8693
8637
|
b: {
|
|
@@ -8862,10 +8806,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8862
8806
|
}
|
|
8863
8807
|
};
|
|
8864
8808
|
var roots = new Map(),
|
|
8865
|
-
devToolsConfig$jscomp$
|
|
8809
|
+
devToolsConfig$jscomp$inline_1002 = {
|
|
8866
8810
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8867
8811
|
bundleType: 0,
|
|
8868
|
-
version: "18.0.0-rc.0-
|
|
8812
|
+
version: "18.0.0-rc.0-51947a14b-20220113",
|
|
8869
8813
|
rendererPackageName: "react-native-renderer",
|
|
8870
8814
|
rendererConfig: {
|
|
8871
8815
|
getInspectorDataForViewTag: function() {
|
|
@@ -8880,11 +8824,11 @@ var roots = new Map(),
|
|
|
8880
8824
|
}.bind(null, findNodeHandle)
|
|
8881
8825
|
}
|
|
8882
8826
|
};
|
|
8883
|
-
var internals$jscomp$
|
|
8884
|
-
bundleType: devToolsConfig$jscomp$
|
|
8885
|
-
version: devToolsConfig$jscomp$
|
|
8886
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8887
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8827
|
+
var internals$jscomp$inline_1279 = {
|
|
8828
|
+
bundleType: devToolsConfig$jscomp$inline_1002.bundleType,
|
|
8829
|
+
version: devToolsConfig$jscomp$inline_1002.version,
|
|
8830
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1002.rendererPackageName,
|
|
8831
|
+
rendererConfig: devToolsConfig$jscomp$inline_1002.rendererConfig,
|
|
8888
8832
|
overrideHookState: null,
|
|
8889
8833
|
overrideHookStateDeletePath: null,
|
|
8890
8834
|
overrideHookStateRenamePath: null,
|
|
@@ -8900,26 +8844,29 @@ var internals$jscomp$inline_1307 = {
|
|
|
8900
8844
|
return null === fiber ? null : fiber.stateNode;
|
|
8901
8845
|
},
|
|
8902
8846
|
findFiberByHostInstance:
|
|
8903
|
-
devToolsConfig$jscomp$
|
|
8847
|
+
devToolsConfig$jscomp$inline_1002.findFiberByHostInstance ||
|
|
8904
8848
|
emptyFindFiberByHostInstance,
|
|
8905
8849
|
findHostInstancesForRefresh: null,
|
|
8906
8850
|
scheduleRefresh: null,
|
|
8907
8851
|
scheduleRoot: null,
|
|
8908
8852
|
setRefreshHandler: null,
|
|
8909
8853
|
getCurrentFiber: null,
|
|
8910
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8854
|
+
reconcilerVersion: "18.0.0-rc.0-51947a14b-20220113"
|
|
8911
8855
|
};
|
|
8912
8856
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8913
|
-
var hook$jscomp$
|
|
8857
|
+
var hook$jscomp$inline_1280 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8914
8858
|
if (
|
|
8915
|
-
!hook$jscomp$
|
|
8916
|
-
hook$jscomp$
|
|
8859
|
+
!hook$jscomp$inline_1280.isDisabled &&
|
|
8860
|
+
hook$jscomp$inline_1280.supportsFiber
|
|
8917
8861
|
)
|
|
8918
8862
|
try {
|
|
8919
|
-
(rendererID = hook$jscomp$
|
|
8920
|
-
internals$jscomp$
|
|
8863
|
+
(rendererID = hook$jscomp$inline_1280.inject(
|
|
8864
|
+
Object.assign({}, internals$jscomp$inline_1279, {
|
|
8865
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
8866
|
+
injectProfilingHooks: injectProfilingHooks
|
|
8867
|
+
})
|
|
8921
8868
|
)),
|
|
8922
|
-
(injectedHook = hook$jscomp$
|
|
8869
|
+
(injectedHook = hook$jscomp$inline_1280);
|
|
8923
8870
|
} catch (err) {}
|
|
8924
8871
|
}
|
|
8925
8872
|
exports.createPortal = function(children, containerTag) {
|