react-native 0.0.0-16bb2ae4f → 0.0.0-18697adec
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/ActionSheetIOS/ActionSheetIOS.js +14 -1
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/NativeAnimatedHelper.js +3 -3
- package/Libraries/BatchedBridge/MessageQueue.js +10 -10
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Blob/URL.js +1 -1
- package/Libraries/Components/Button.js +3 -0
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
- package/Libraries/Components/ScrollView/ScrollView.js +14 -5
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
- package/Libraries/Components/StatusBar/StatusBar.js +6 -14
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -3
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.js +27 -1
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -0
- package/Libraries/Core/ExceptionsManager.js +3 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +37 -28
- package/Libraries/Core/Timers/immediateShim.js +67 -0
- package/Libraries/Core/Timers/queueMicrotask.js +41 -0
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -0
- package/Libraries/Core/setUpRegeneratorRuntime.js +25 -8
- package/Libraries/Core/setUpTimers.js +65 -6
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +1 -1
- package/Libraries/Image/Image.ios.js +6 -0
- package/Libraries/Image/ImageBackground.js +10 -8
- package/Libraries/Image/ImageProps.js +28 -0
- package/Libraries/Image/ImageSource.js +1 -1
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/FlatList.js +43 -26
- package/Libraries/Lists/VirtualizedList.js +3 -1
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +4 -4
- package/Libraries/LogBox/Data/LogBoxData.js +18 -18
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +1 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +17 -11
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XMLHttpRequest.js +3 -1
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Performance/QuickPerformanceLogger.js +2 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
- package/Libraries/Pressability/Pressability.js +1 -0
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -0
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/ReactNative/AppRegistry.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.js +1 -0
- package/Libraries/ReactNative/renderApplication.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -2
- package/Libraries/Reliability/UserFlow.js +7 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +4485 -3842
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +2060 -1709
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +2148 -1796
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +4264 -3695
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +1303 -1063
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +1374 -1139
- package/Libraries/Renderer/shims/ReactFabric.js +3 -1
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/Text/Text.js +11 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +2 -12
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +4 -11
- package/Libraries/Text/TextProps.js +1 -7
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/UTFSequence.js +1 -1
- package/Libraries/Utilities/Dimensions.js +9 -14
- package/Libraries/Utilities/FeatureDetection.js +31 -0
- package/Libraries/Utilities/HMRClient.js +10 -6
- package/Libraries/Utilities/MatrixMath.js +1 -1
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
- package/Libraries/Utilities/deprecatedPropType.js +2 -2
- package/Libraries/Utilities/useWindowDimensions.js +7 -2
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/React/Base/RCTBridge+Private.h +8 -0
- package/React/Base/RCTBridge.h +13 -0
- package/React/Base/RCTBridge.m +30 -7
- package/React/Base/RCTBridgeModule.h +3 -12
- package/React/Base/RCTBundleURLProvider.h +26 -1
- package/React/Base/RCTBundleURLProvider.mm +79 -15
- package/React/Base/RCTConstants.h +6 -7
- package/React/Base/RCTConstants.m +12 -12
- package/React/Base/RCTConvert.h +1 -1
- package/React/Base/RCTConvert.m +1 -1
- package/React/Base/RCTCxxConvert.h +1 -1
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTEventDispatcherProtocol.h +2 -0
- package/React/Base/RCTJSThread.h +29 -0
- package/React/Base/RCTJSThread.m +19 -0
- package/React/Base/RCTMultipartStreamReader.m +0 -2
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchHandler.m +4 -9
- package/React/Base/RCTUtils.h +3 -0
- package/React/Base/RCTUtils.m +14 -7
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +11 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +35 -1
- package/React/CoreModules/BUCK +3 -3
- package/React/CoreModules/RCTAccessibilityManager.mm +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +14 -5
- package/React/CoreModules/RCTAsyncLocalStorage.mm +4 -0
- package/React/CoreModules/RCTDevLoadingView.mm +5 -10
- package/React/CoreModules/RCTDevSettings.mm +12 -10
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.mm +5 -0
- package/React/CoreModules/RCTLogBox.mm +14 -10
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CoreModules/RCTRedBox.mm +1 -5
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +18 -1
- package/React/DevSupport/RCTPackagerConnection.h +3 -0
- package/React/DevSupport/RCTPackagerConnection.mm +19 -8
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +12 -4
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +1 -2
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +64 -62
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +31 -11
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +108 -4
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +1 -0
- package/React/Fabric/Mounting/RCTMountingManager.h +3 -0
- package/React/Fabric/Mounting/RCTMountingManager.mm +22 -3
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +2 -0
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +12 -0
- package/React/Fabric/RCTConversions.h +3 -0
- package/React/Fabric/RCTScheduler.mm +12 -5
- package/React/Fabric/RCTSurfacePresenter.mm +6 -7
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -0
- package/React/Modules/RCTI18nUtil.h +14 -6
- package/React/Modules/RCTI18nUtil.m +1 -47
- package/React/Profiler/RCTProfileTrampoline-arm.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-arm64.S +2 -2
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Views/RCTFont.mm +54 -38
- package/React/Views/RCTModalHostView.h +1 -1
- package/React/Views/RCTModalHostView.m +16 -0
- package/React/Views/RCTModalHostViewManager.m +1 -0
- package/React/Views/RCTView.m +2 -7
- package/React/Views/RCTViewManager.m +4 -2
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +1 -5
- package/React/Views/ScrollView/RCTScrollView.h +1 -0
- package/React/Views/ScrollView/RCTScrollView.m +111 -36
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -7
- package/React/Views/UIView+React.m +2 -11
- package/React-Core.podspec +1 -1
- package/ReactAndroid/Android-prebuilt.mk +8 -0
- package/ReactAndroid/README.md +1 -1
- package/ReactAndroid/build.gradle +12 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +5 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +5 -5
- package/ReactAndroid/src/androidTest/js/BUCK +26 -0
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -7
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +4 -4
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +89 -44
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BackgroundExecutor.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +11 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java +37 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +3 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{ReactSoftException.java → ReactSoftExceptionLogger.java} +8 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +8 -7
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +32 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +97 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +9 -58
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +14 -9
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +3 -72
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PackagerStatusCheck.java +100 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +64 -31
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +54 -10
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +14 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +40 -11
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/SendAccessibilityEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/bundleloader/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java +10 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +11 -9
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.cpp +39 -11
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.h +9 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +7 -28
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactOverflowView.java +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +162 -66
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +9 -9
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +6 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +16 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +12 -20
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +14 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +21 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +7 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +24 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +23 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +20 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +31 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +31 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +114 -62
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +39 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +24 -3
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +5 -3
- package/ReactAndroid/src/main/jni/react/jni/BUCK +5 -2
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +61 -0
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +8 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h +25 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.cpp +21 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.h +28 -0
- package/{ReactCommon/react/renderer/core/Constants.cpp → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +6 -8
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
- package/ReactAndroid/src/main/jni/third-party/libevent/Android.mk +0 -1
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +63 -2
- package/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK +0 -31
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/deviceinfo/DeviceInfoModuleTest.java +168 -0
- package/ReactCommon/React-Fabric.podspec +10 -1
- package/ReactCommon/ReactCommon.podspec +2 -1
- package/ReactCommon/callinvoker/BUCK +2 -2
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/Android.mk +2 -1
- package/ReactCommon/cxxreact/BUCK +1 -0
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +28 -0
- package/ReactCommon/cxxreact/CxxNativeModule.h +9 -0
- package/ReactCommon/cxxreact/React-cxxreact.podspec +2 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/React-hermes.podspec +1 -1
- package/ReactCommon/hermes/executor/Android.mk +4 -4
- package/ReactCommon/hermes/inspector/Android.mk +1 -2
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +13 -10
- package/ReactCommon/jsi/Android.mk +1 -1
- package/ReactCommon/jsi/BUCK +0 -2
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsiexecutor/Android.mk +2 -2
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/logger/Android.mk +23 -0
- package/ReactCommon/logger/BUCK +43 -0
- package/ReactCommon/logger/React-logger.podspec +40 -0
- package/ReactCommon/logger/react_native_log.cpp +52 -0
- package/ReactCommon/logger/react_native_log.h +33 -0
- package/ReactCommon/react/nativemodule/core/Android.mk +2 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.cpp +1 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.h +3 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +46 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +10 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +37 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +24 -22
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +11 -8
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.h +7 -5
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.mm +51 -29
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +45 -34
- package/ReactCommon/react/nativemodule/samples/BUCK +2 -2
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +1 -1
- package/ReactCommon/react/renderer/animations/BUCK +1 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -27
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +920 -1136
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +80 -245
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +9 -6
- package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
- package/ReactCommon/react/renderer/animations/utils.h +80 -0
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +7 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -1
- package/ReactCommon/react/renderer/attributedstring/conversions.h +162 -11
- package/ReactCommon/react/renderer/attributedstring/primitives.h +34 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +2 -2
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -0
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +10 -4
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +4 -1
- package/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.cpp +2 -1
- package/ReactCommon/react/renderer/components/image/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +28 -9
- package/ReactCommon/react/renderer/components/image/ImageProps.h +5 -1
- package/ReactCommon/react/renderer/components/image/conversions.h +9 -2
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +0 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.cpp +2 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.h +2 -0
- package/ReactCommon/react/renderer/components/root/RootProps.cpp +12 -2
- package/ReactCommon/react/renderer/components/root/RootProps.h +6 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +2 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.h +2 -0
- package/ReactCommon/react/renderer/components/root/tests/RootShadowNodeTest.cpp +8 -4
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +1 -1
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +45 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +5 -1
- package/ReactCommon/react/renderer/components/scrollview/conversions.h +5 -0
- package/ReactCommon/react/renderer/components/text/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +32 -0
- package/ReactCommon/react/renderer/components/text/BaseTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -16
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +10 -4
- package/ReactCommon/react/renderer/components/text/ParagraphProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/RawTextProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/text/RawTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/RawTextShadowNode.h +0 -6
- package/ReactCommon/react/renderer/components/text/TextProps.cpp +6 -3
- package/ReactCommon/react/renderer/components/text/TextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/TextShadowNode.h +0 -6
- package/ReactCommon/react/renderer/components/textinput/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +58 -91
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +10 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +46 -22
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +6 -5
- package/ReactCommon/react/renderer/components/textinput/iostextinput/conversions.h +15 -3
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +6 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/propsConversions.h +63 -2
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +4 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewProps.h +1 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +21 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +24 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +3 -0
- package/ReactCommon/react/renderer/components/view/Android.mk +3 -2
- package/ReactCommon/react/renderer/components/view/BUCK +1 -0
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -22
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +62 -14
- package/ReactCommon/react/renderer/components/view/ViewProps.h +7 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +2 -10
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -4
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +58 -33
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h +2 -8
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.h +2 -0
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +62 -8
- package/ReactCommon/react/renderer/components/view/conversions.h +57 -14
- package/ReactCommon/react/renderer/components/view/propsConversions.h +163 -28
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +7 -2
- package/ReactCommon/react/renderer/core/Android.mk +1 -1
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +19 -21
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +12 -31
- package/ReactCommon/react/renderer/core/EventDispatcher.h +1 -4
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +0 -6
- package/ReactCommon/react/renderer/core/Props.cpp +10 -2
- package/ReactCommon/react/renderer/core/Props.h +6 -1
- package/ReactCommon/react/renderer/core/PropsParserContext.h +29 -0
- package/ReactCommon/react/renderer/core/RawProps.cpp +2 -1
- package/ReactCommon/react/renderer/core/RawProps.h +3 -1
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/RawPropsParser.h +11 -2
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +7 -10
- package/ReactCommon/react/renderer/core/ShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +11 -1
- package/ReactCommon/react/renderer/core/propsConversions.h +18 -8
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +16 -4
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +85 -20
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +6 -2
- package/ReactCommon/react/renderer/graphics/Android.mk +5 -2
- package/ReactCommon/react/renderer/graphics/BUCK +12 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +2 -1
- package/ReactCommon/react/renderer/graphics/Transform.cpp +1 -1
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/graphics/conversions.h +34 -19
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +67 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/PlatformColorParser.h +29 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +42 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/PlatformColorParser.h +34 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.h +12 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +206 -0
- package/ReactCommon/react/renderer/imagemanager/BUCK +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.mm +1 -1
- package/ReactCommon/react/renderer/mapbuffer/BUCK +2 -2
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +6 -2
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +3 -1
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +12 -1
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +8 -1
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +10 -3
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +10 -4
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +9 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +30 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +34 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +11 -5
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +5 -3
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +34 -0
- package/ReactCommon/react/renderer/{core/Constants.h → scheduler/InspectorData.h} +9 -8
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +44 -29
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +14 -0
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +49 -29
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +12 -4
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +1 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +22 -0
- package/ReactCommon/react/renderer/timeline/BUCK +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +34 -30
- package/ReactCommon/react/renderer/uimanager/UIManager.h +6 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +101 -108
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +4 -7
- package/ReactCommon/react/test_utils/BUCK +3 -0
- package/ReactCommon/react/test_utils/MockSurfaceHandler.h +25 -0
- package/ReactCommon/react/test_utils/shadowTreeGeneration.h +18 -4
- package/ReactCommon/react/utils/Android.mk +3 -1
- package/ReactCommon/react/utils/BUCK +1 -0
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h +12 -0
- package/android/com/facebook/react/react-native/{0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar → 0.0.0-18697adec/react-native-0.0.0-18697adec.aar} +0 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module → 0.0.0-18697adec/react-native-0.0.0-18697adec.module} +30 -17
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom → 0.0.0-18697adec/react-native-0.0.0-18697adec.pom} +8 -2
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
- package/flow/HermesInternalType.js +114 -0
- package/flow/global.js +68 -0
- package/index.js +37 -24
- package/jest/renderer.js +3 -7
- package/jest/setup.js +2 -1
- package/package.json +55 -16
- package/react.gradle +19 -13
- package/scripts/generate-specs-cli.js +20 -2
- package/scripts/ios-configure-glog.sh +4 -0
- package/scripts/react-native-xcode.sh +1 -1
- package/scripts/react_native_pods.rb +195 -38
- package/template/_flowconfig +1 -1
- package/template/android/app/build.gradle +2 -2
- package/template/android/build.gradle +1 -2
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +2 -0
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -4
- package/third-party-podspecs/RCT-Folly.podspec +6 -3
- package/Libraries/BUCK +0 -26
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/StatusBar/StatusBarIOS.js +0 -38
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -54
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -153
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/BUCK +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/RuntimeSchedulerManager.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/Android.mk +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/BUCK +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/OnLoad.cpp +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.cpp +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.h +0 -40
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.sha512 +0 -1
- package/scripts/generate-specs.sh +0 -100
- package/template/_editorconfig +0 -3
- package/template/_gitattributes +0 -3
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<4538b6a9895755454ebc3d0f7b8f568e>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
14
14
|
require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
|
|
15
15
|
var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
|
|
16
16
|
React = require("react"),
|
|
17
|
+
dynamicFlags = require("ReactNativeInternalFeatureFlags"),
|
|
17
18
|
Scheduler = require("scheduler");
|
|
18
19
|
function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {
|
|
19
20
|
var funcArgs = Array.prototype.slice.call(arguments, 3);
|
|
@@ -930,7 +931,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
930
931
|
"ReactNativeBridgeEventPlugin"
|
|
931
932
|
]);
|
|
932
933
|
recomputePluginOrdering();
|
|
933
|
-
var injectedNamesToPlugins$jscomp$
|
|
934
|
+
var injectedNamesToPlugins$jscomp$inline_222 = {
|
|
934
935
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
936
|
ReactNativeBridgeEventPlugin: {
|
|
936
937
|
eventTypes: {},
|
|
@@ -965,34 +966,34 @@ var injectedNamesToPlugins$jscomp$inline_216 = {
|
|
|
965
966
|
}
|
|
966
967
|
}
|
|
967
968
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
969
|
+
isOrderingDirty$jscomp$inline_223 = !1,
|
|
970
|
+
pluginName$jscomp$inline_224;
|
|
971
|
+
for (pluginName$jscomp$inline_224 in injectedNamesToPlugins$jscomp$inline_222)
|
|
971
972
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
973
|
+
injectedNamesToPlugins$jscomp$inline_222.hasOwnProperty(
|
|
974
|
+
pluginName$jscomp$inline_224
|
|
974
975
|
)
|
|
975
976
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
977
|
+
var pluginModule$jscomp$inline_225 =
|
|
978
|
+
injectedNamesToPlugins$jscomp$inline_222[pluginName$jscomp$inline_224];
|
|
978
979
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
980
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_224) ||
|
|
981
|
+
namesToPlugins[pluginName$jscomp$inline_224] !==
|
|
982
|
+
pluginModule$jscomp$inline_225
|
|
982
983
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
984
|
+
if (namesToPlugins[pluginName$jscomp$inline_224])
|
|
984
985
|
throw Error(
|
|
985
986
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
986
|
-
pluginName$jscomp$
|
|
987
|
+
pluginName$jscomp$inline_224 +
|
|
987
988
|
"`."
|
|
988
989
|
);
|
|
989
990
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
991
|
+
pluginName$jscomp$inline_224
|
|
992
|
+
] = pluginModule$jscomp$inline_225;
|
|
993
|
+
isOrderingDirty$jscomp$inline_223 = !0;
|
|
993
994
|
}
|
|
994
995
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
996
|
+
isOrderingDirty$jscomp$inline_223 && recomputePluginOrdering();
|
|
996
997
|
function getInstanceFromInstance(instanceHandle) {
|
|
997
998
|
return instanceHandle;
|
|
998
999
|
}
|
|
@@ -1181,6 +1182,8 @@ function getComponentNameFromFiber(fiber) {
|
|
|
1181
1182
|
}
|
|
1182
1183
|
return null;
|
|
1183
1184
|
}
|
|
1185
|
+
var enablePersistentOffscreenHostContainer =
|
|
1186
|
+
dynamicFlags.enablePersistentOffscreenHostContainer;
|
|
1184
1187
|
function getNearestMountedFiber(fiber) {
|
|
1185
1188
|
var node = fiber,
|
|
1186
1189
|
nearestMounted = fiber;
|
|
@@ -1760,6 +1763,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1760
1763
|
root = root.pendingLanes & -1073741825;
|
|
1761
1764
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1762
1765
|
}
|
|
1766
|
+
function includesBlockingLane(root, lanes) {
|
|
1767
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1768
|
+
}
|
|
1763
1769
|
function createLaneMap(initial) {
|
|
1764
1770
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1765
1771
|
return laneMap;
|
|
@@ -1870,38 +1876,79 @@ var ReactFabricHostComponent = (function() {
|
|
|
1870
1876
|
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
|
|
1871
1877
|
};
|
|
1872
1878
|
_proto.measure = function(callback) {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1879
|
+
var stateNode = this._internalInstanceHandle.stateNode;
|
|
1880
|
+
null != stateNode &&
|
|
1881
|
+
fabricMeasure(
|
|
1882
|
+
stateNode.node,
|
|
1883
|
+
mountSafeCallback_NOT_REALLY_SAFE(this, callback)
|
|
1884
|
+
);
|
|
1877
1885
|
};
|
|
1878
1886
|
_proto.measureInWindow = function(callback) {
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1887
|
+
var stateNode = this._internalInstanceHandle.stateNode;
|
|
1888
|
+
null != stateNode &&
|
|
1889
|
+
fabricMeasureInWindow(
|
|
1890
|
+
stateNode.node,
|
|
1891
|
+
mountSafeCallback_NOT_REALLY_SAFE(this, callback)
|
|
1892
|
+
);
|
|
1883
1893
|
};
|
|
1884
1894
|
_proto.measureLayout = function(relativeToNativeNode, onSuccess, onFail) {
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1895
|
+
if (
|
|
1896
|
+
"number" !== typeof relativeToNativeNode &&
|
|
1897
|
+
relativeToNativeNode instanceof ReactFabricHostComponent
|
|
1898
|
+
) {
|
|
1899
|
+
var toStateNode = this._internalInstanceHandle.stateNode;
|
|
1900
|
+
relativeToNativeNode =
|
|
1901
|
+
relativeToNativeNode._internalInstanceHandle.stateNode;
|
|
1902
|
+
null != toStateNode &&
|
|
1903
|
+
null != relativeToNativeNode &&
|
|
1904
|
+
fabricMeasureLayout(
|
|
1905
|
+
toStateNode.node,
|
|
1906
|
+
relativeToNativeNode.node,
|
|
1907
|
+
mountSafeCallback_NOT_REALLY_SAFE(this, onFail),
|
|
1908
|
+
mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)
|
|
1909
|
+
);
|
|
1910
|
+
}
|
|
1893
1911
|
};
|
|
1894
1912
|
_proto.setNativeProps = function() {};
|
|
1895
1913
|
return ReactFabricHostComponent;
|
|
1896
1914
|
})();
|
|
1915
|
+
function createInstance(
|
|
1916
|
+
type,
|
|
1917
|
+
props,
|
|
1918
|
+
rootContainerInstance,
|
|
1919
|
+
hostContext,
|
|
1920
|
+
internalInstanceHandle
|
|
1921
|
+
) {
|
|
1922
|
+
hostContext = nextReactTag;
|
|
1923
|
+
nextReactTag += 2;
|
|
1924
|
+
type = getViewConfigForType(type);
|
|
1925
|
+
var updatePayload = diffProperties(
|
|
1926
|
+
null,
|
|
1927
|
+
emptyObject,
|
|
1928
|
+
props,
|
|
1929
|
+
type.validAttributes
|
|
1930
|
+
);
|
|
1931
|
+
rootContainerInstance = createNode(
|
|
1932
|
+
hostContext,
|
|
1933
|
+
type.uiViewClassName,
|
|
1934
|
+
rootContainerInstance,
|
|
1935
|
+
updatePayload,
|
|
1936
|
+
internalInstanceHandle
|
|
1937
|
+
);
|
|
1938
|
+
props = new ReactFabricHostComponent(
|
|
1939
|
+
hostContext,
|
|
1940
|
+
type,
|
|
1941
|
+
props,
|
|
1942
|
+
internalInstanceHandle
|
|
1943
|
+
);
|
|
1944
|
+
return { node: rootContainerInstance, canonical: props };
|
|
1945
|
+
}
|
|
1897
1946
|
function createTextInstance(
|
|
1898
1947
|
text,
|
|
1899
1948
|
rootContainerInstance,
|
|
1900
1949
|
hostContext,
|
|
1901
1950
|
internalInstanceHandle
|
|
1902
1951
|
) {
|
|
1903
|
-
if (!hostContext.isInAParentText)
|
|
1904
|
-
throw Error("Text strings must be rendered within a <Text> component.");
|
|
1905
1952
|
hostContext = nextReactTag;
|
|
1906
1953
|
nextReactTag += 2;
|
|
1907
1954
|
return {
|
|
@@ -1916,6 +1963,11 @@ function createTextInstance(
|
|
|
1916
1963
|
}
|
|
1917
1964
|
var scheduleTimeout = setTimeout,
|
|
1918
1965
|
cancelTimeout = clearTimeout;
|
|
1966
|
+
function getOffscreenContainerProps(mode, children) {
|
|
1967
|
+
return "hidden" === mode
|
|
1968
|
+
? { children: children, style: { display: "none" } }
|
|
1969
|
+
: { children: children, style: { flex: 1 } };
|
|
1970
|
+
}
|
|
1919
1971
|
function cloneHiddenInstance(instance) {
|
|
1920
1972
|
var node = instance.node;
|
|
1921
1973
|
var JSCompiler_inline_result = diffProperties(
|
|
@@ -2036,7 +2088,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2036
2088
|
: pop(didPerformWorkStackCursor);
|
|
2037
2089
|
push(didPerformWorkStackCursor, didChange);
|
|
2038
2090
|
}
|
|
2039
|
-
|
|
2091
|
+
function is(x, y) {
|
|
2092
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2093
|
+
}
|
|
2094
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2095
|
+
syncQueue = null,
|
|
2040
2096
|
includesLegacySyncCallbacks = !1,
|
|
2041
2097
|
isFlushingSyncQueue = !1;
|
|
2042
2098
|
function flushSyncCallbacks() {
|
|
@@ -2065,10 +2121,6 @@ function flushSyncCallbacks() {
|
|
|
2065
2121
|
return null;
|
|
2066
2122
|
}
|
|
2067
2123
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2068
|
-
function is(x, y) {
|
|
2069
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2070
|
-
}
|
|
2071
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
2072
2124
|
function shallowEqual(objA, objB) {
|
|
2073
2125
|
if (objectIs(objA, objB)) return !0;
|
|
2074
2126
|
if (
|
|
@@ -2216,7 +2268,7 @@ function enqueueUpdate(fiber, update) {
|
|
|
2216
2268
|
((updateQueue = updateQueue.shared),
|
|
2217
2269
|
null !== workInProgressRoot &&
|
|
2218
2270
|
0 !== (fiber.mode & 1) &&
|
|
2219
|
-
0 === (executionContext &
|
|
2271
|
+
0 === (executionContext & 2)
|
|
2220
2272
|
? ((fiber = updateQueue.interleaved),
|
|
2221
2273
|
null === fiber
|
|
2222
2274
|
? ((update.next = update),
|
|
@@ -2353,7 +2405,7 @@ function processUpdateQueue(
|
|
|
2353
2405
|
newState = workInProgress;
|
|
2354
2406
|
break a;
|
|
2355
2407
|
case 3:
|
|
2356
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2408
|
+
workInProgress.flags = (workInProgress.flags & -32769) | 128;
|
|
2357
2409
|
case 0:
|
|
2358
2410
|
workInProgress = update.payload;
|
|
2359
2411
|
updateLane =
|
|
@@ -3053,60 +3105,49 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3053
3105
|
return iteratorFn;
|
|
3054
3106
|
}
|
|
3055
3107
|
return function(returnFiber, currentFirstChild, newChild, lanes) {
|
|
3056
|
-
|
|
3057
|
-
"object" === typeof newChild &&
|
|
3108
|
+
"object" === typeof newChild &&
|
|
3058
3109
|
null !== newChild &&
|
|
3059
3110
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
3060
|
-
null === newChild.key
|
|
3061
|
-
|
|
3111
|
+
null === newChild.key &&
|
|
3112
|
+
(newChild = newChild.props.children);
|
|
3062
3113
|
if ("object" === typeof newChild && null !== newChild) {
|
|
3063
3114
|
switch (newChild.$$typeof) {
|
|
3064
3115
|
case REACT_ELEMENT_TYPE:
|
|
3065
3116
|
a: {
|
|
3066
|
-
var key = newChild.key;
|
|
3067
3117
|
for (
|
|
3068
|
-
|
|
3069
|
-
null !==
|
|
3118
|
+
var key = newChild.key, child = currentFirstChild;
|
|
3119
|
+
null !== child;
|
|
3070
3120
|
|
|
3071
3121
|
) {
|
|
3072
|
-
if (
|
|
3122
|
+
if (child.key === key) {
|
|
3073
3123
|
key = newChild.type;
|
|
3074
3124
|
if (key === REACT_FRAGMENT_TYPE) {
|
|
3075
|
-
if (7 ===
|
|
3076
|
-
deleteRemainingChildren(
|
|
3077
|
-
returnFiber,
|
|
3078
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3079
|
-
);
|
|
3125
|
+
if (7 === child.tag) {
|
|
3126
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3080
3127
|
currentFirstChild = useFiber(
|
|
3081
|
-
|
|
3128
|
+
child,
|
|
3082
3129
|
newChild.props.children
|
|
3083
3130
|
);
|
|
3084
3131
|
currentFirstChild.return = returnFiber;
|
|
3085
3132
|
returnFiber = currentFirstChild;
|
|
3086
3133
|
break a;
|
|
3087
3134
|
}
|
|
3088
|
-
} else if (
|
|
3089
|
-
deleteRemainingChildren(
|
|
3090
|
-
|
|
3091
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3092
|
-
);
|
|
3093
|
-
currentFirstChild = useFiber(
|
|
3094
|
-
isUnkeyedTopLevelFragment,
|
|
3095
|
-
newChild.props
|
|
3096
|
-
);
|
|
3135
|
+
} else if (child.elementType === key) {
|
|
3136
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3137
|
+
currentFirstChild = useFiber(child, newChild.props);
|
|
3097
3138
|
currentFirstChild.ref = coerceRef(
|
|
3098
3139
|
returnFiber,
|
|
3099
|
-
|
|
3140
|
+
child,
|
|
3100
3141
|
newChild
|
|
3101
3142
|
);
|
|
3102
3143
|
currentFirstChild.return = returnFiber;
|
|
3103
3144
|
returnFiber = currentFirstChild;
|
|
3104
3145
|
break a;
|
|
3105
3146
|
}
|
|
3106
|
-
deleteRemainingChildren(returnFiber,
|
|
3147
|
+
deleteRemainingChildren(returnFiber, child);
|
|
3107
3148
|
break;
|
|
3108
|
-
} else deleteChild(returnFiber,
|
|
3109
|
-
|
|
3149
|
+
} else deleteChild(returnFiber, child);
|
|
3150
|
+
child = child.sibling;
|
|
3110
3151
|
}
|
|
3111
3152
|
newChild.type === REACT_FRAGMENT_TYPE
|
|
3112
3153
|
? ((currentFirstChild = createFiberFromFragment(
|
|
@@ -3136,12 +3177,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3136
3177
|
return placeSingleChild(returnFiber);
|
|
3137
3178
|
case REACT_PORTAL_TYPE:
|
|
3138
3179
|
a: {
|
|
3139
|
-
for (
|
|
3140
|
-
|
|
3141
|
-
null !== currentFirstChild;
|
|
3142
|
-
|
|
3143
|
-
) {
|
|
3144
|
-
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
|
|
3180
|
+
for (child = newChild.key; null !== currentFirstChild; ) {
|
|
3181
|
+
if (currentFirstChild.key === child)
|
|
3145
3182
|
if (
|
|
3146
3183
|
4 === currentFirstChild.tag &&
|
|
3147
3184
|
currentFirstChild.stateNode.containerInfo ===
|
|
@@ -3193,9 +3230,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3193
3230
|
);
|
|
3194
3231
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3195
3232
|
}
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
(newChild = "" + newChild),
|
|
3233
|
+
return "string" === typeof newChild || "number" === typeof newChild
|
|
3234
|
+
? ((newChild = "" + newChild),
|
|
3199
3235
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3200
3236
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
3201
3237
|
(currentFirstChild = useFiber(currentFirstChild, newChild)),
|
|
@@ -3209,20 +3245,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3209
3245
|
)),
|
|
3210
3246
|
(currentFirstChild.return = returnFiber),
|
|
3211
3247
|
(returnFiber = currentFirstChild)),
|
|
3212
|
-
placeSingleChild(returnFiber)
|
|
3213
|
-
);
|
|
3214
|
-
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
|
|
3215
|
-
switch (returnFiber.tag) {
|
|
3216
|
-
case 1:
|
|
3217
|
-
case 0:
|
|
3218
|
-
case 11:
|
|
3219
|
-
case 15:
|
|
3220
|
-
throw Error(
|
|
3221
|
-
(getComponentNameFromFiber(returnFiber) || "Component") +
|
|
3222
|
-
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
|
|
3223
|
-
);
|
|
3224
|
-
}
|
|
3225
|
-
return deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3248
|
+
placeSingleChild(returnFiber))
|
|
3249
|
+
: deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3226
3250
|
};
|
|
3227
3251
|
}
|
|
3228
3252
|
var reconcileChildFibers = ChildReconciler(!0),
|
|
@@ -3513,7 +3537,7 @@ function rerenderReducer(reducer) {
|
|
|
3513
3537
|
}
|
|
3514
3538
|
return [newState, dispatch];
|
|
3515
3539
|
}
|
|
3516
|
-
function
|
|
3540
|
+
function readFromUnsubscribedMutableSource(root, source, getSnapshot) {
|
|
3517
3541
|
var getVersion = source._getVersion;
|
|
3518
3542
|
getVersion = getVersion(source._source);
|
|
3519
3543
|
var JSCompiler_inline_result = source._workInProgressVersionSecondary;
|
|
@@ -3540,7 +3564,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3540
3564
|
version = getVersion(source._source),
|
|
3541
3565
|
dispatcher = ReactCurrentDispatcher$1.current,
|
|
3542
3566
|
_dispatcher$useState = dispatcher.useState(function() {
|
|
3543
|
-
return
|
|
3567
|
+
return readFromUnsubscribedMutableSource(root, source, getSnapshot);
|
|
3544
3568
|
}),
|
|
3545
3569
|
setSnapshot = _dispatcher$useState[1],
|
|
3546
3570
|
snapshot = _dispatcher$useState[0];
|
|
@@ -3603,7 +3627,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3603
3627
|
)),
|
|
3604
3628
|
(_dispatcher$useState.queue = hook),
|
|
3605
3629
|
(_dispatcher$useState.baseQueue = null),
|
|
3606
|
-
(snapshot =
|
|
3630
|
+
(snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)),
|
|
3607
3631
|
(_dispatcher$useState.memoizedState = _dispatcher$useState.baseState = snapshot));
|
|
3608
3632
|
return snapshot;
|
|
3609
3633
|
}
|
|
@@ -3611,11 +3635,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3611
3635
|
var hook = updateWorkInProgressHook();
|
|
3612
3636
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3613
3637
|
}
|
|
3638
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3639
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3640
|
+
hook = mountWorkInProgressHook(),
|
|
3641
|
+
nextSnapshot = getSnapshot();
|
|
3642
|
+
hook.memoizedState = nextSnapshot;
|
|
3643
|
+
var inst = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3644
|
+
hook.queue = inst;
|
|
3645
|
+
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]);
|
|
3646
|
+
fiber.flags |= 1024;
|
|
3647
|
+
pushEffect(
|
|
3648
|
+
9,
|
|
3649
|
+
updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot),
|
|
3650
|
+
void 0,
|
|
3651
|
+
null
|
|
3652
|
+
);
|
|
3653
|
+
subscribe = workInProgressRoot;
|
|
3654
|
+
if (null === subscribe)
|
|
3655
|
+
throw Error(
|
|
3656
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3657
|
+
);
|
|
3658
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
3659
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3660
|
+
return nextSnapshot;
|
|
3661
|
+
}
|
|
3662
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3663
|
+
fiber.flags |= 8192;
|
|
3664
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3665
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3666
|
+
null === getSnapshot
|
|
3667
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3668
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3669
|
+
(getSnapshot.stores = [fiber]))
|
|
3670
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3671
|
+
null === renderedSnapshot
|
|
3672
|
+
? (getSnapshot.stores = [fiber])
|
|
3673
|
+
: renderedSnapshot.push(fiber));
|
|
3674
|
+
}
|
|
3675
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3676
|
+
inst.value = nextSnapshot;
|
|
3677
|
+
inst.getSnapshot = getSnapshot;
|
|
3678
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3679
|
+
}
|
|
3680
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3681
|
+
return subscribe(function() {
|
|
3682
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3683
|
+
});
|
|
3684
|
+
}
|
|
3685
|
+
function checkIfSnapshotChanged(inst) {
|
|
3686
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3687
|
+
inst = inst.value;
|
|
3688
|
+
try {
|
|
3689
|
+
var nextValue = latestGetSnapshot();
|
|
3690
|
+
return !objectIs(inst, nextValue);
|
|
3691
|
+
} catch (error) {
|
|
3692
|
+
return !0;
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3614
3695
|
function mountState(initialState) {
|
|
3615
3696
|
var hook = mountWorkInProgressHook();
|
|
3616
3697
|
"function" === typeof initialState && (initialState = initialState());
|
|
3617
3698
|
hook.memoizedState = hook.baseState = initialState;
|
|
3618
|
-
initialState =
|
|
3699
|
+
initialState = {
|
|
3619
3700
|
pending: null,
|
|
3620
3701
|
interleaved: null,
|
|
3621
3702
|
lanes: 0,
|
|
@@ -3623,6 +3704,7 @@ function mountState(initialState) {
|
|
|
3623
3704
|
lastRenderedReducer: basicStateReducer,
|
|
3624
3705
|
lastRenderedState: initialState
|
|
3625
3706
|
};
|
|
3707
|
+
hook.queue = initialState;
|
|
3626
3708
|
initialState = initialState.dispatch = dispatchAction.bind(
|
|
3627
3709
|
null,
|
|
3628
3710
|
currentlyRenderingFiber$1,
|
|
@@ -3634,7 +3716,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3634
3716
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3635
3717
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3636
3718
|
null === create
|
|
3637
|
-
? ((create = { lastEffect: null }),
|
|
3719
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3638
3720
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3639
3721
|
(create.lastEffect = tag.next = tag))
|
|
3640
3722
|
: ((destroy = create.lastEffect),
|
|
@@ -3675,14 +3757,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3675
3757
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3676
3758
|
}
|
|
3677
3759
|
function mountEffect(create, deps) {
|
|
3678
|
-
return mountEffectImpl(
|
|
3760
|
+
return mountEffectImpl(2098176, 8, create, deps);
|
|
3679
3761
|
}
|
|
3680
3762
|
function updateEffect(create, deps) {
|
|
3681
|
-
return updateEffectImpl(1024,
|
|
3763
|
+
return updateEffectImpl(1024, 8, create, deps);
|
|
3682
3764
|
}
|
|
3683
|
-
function
|
|
3765
|
+
function updateInsertionEffect(create, deps) {
|
|
3684
3766
|
return updateEffectImpl(4, 2, create, deps);
|
|
3685
3767
|
}
|
|
3768
|
+
function updateLayoutEffect(create, deps) {
|
|
3769
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3770
|
+
}
|
|
3686
3771
|
function imperativeHandleEffect(create, ref) {
|
|
3687
3772
|
if ("function" === typeof ref)
|
|
3688
3773
|
return (
|
|
@@ -3705,7 +3790,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3705
3790
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3706
3791
|
return updateEffectImpl(
|
|
3707
3792
|
4,
|
|
3708
|
-
|
|
3793
|
+
4,
|
|
3709
3794
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3710
3795
|
deps
|
|
3711
3796
|
);
|
|
@@ -3777,7 +3862,7 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3777
3862
|
if (
|
|
3778
3863
|
null !== workInProgressRoot &&
|
|
3779
3864
|
0 !== (fiber.mode & 1) &&
|
|
3780
|
-
0 === (executionContext &
|
|
3865
|
+
0 === (executionContext & 2)
|
|
3781
3866
|
) {
|
|
3782
3867
|
var interleaved = queue.interleaved;
|
|
3783
3868
|
null === interleaved
|
|
@@ -3823,6 +3908,7 @@ var ContextOnlyDispatcher = {
|
|
|
3823
3908
|
useContext: throwInvalidHookError,
|
|
3824
3909
|
useEffect: throwInvalidHookError,
|
|
3825
3910
|
useImperativeHandle: throwInvalidHookError,
|
|
3911
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3826
3912
|
useLayoutEffect: throwInvalidHookError,
|
|
3827
3913
|
useMemo: throwInvalidHookError,
|
|
3828
3914
|
useReducer: throwInvalidHookError,
|
|
@@ -3832,6 +3918,7 @@ var ContextOnlyDispatcher = {
|
|
|
3832
3918
|
useDeferredValue: throwInvalidHookError,
|
|
3833
3919
|
useTransition: throwInvalidHookError,
|
|
3834
3920
|
useMutableSource: throwInvalidHookError,
|
|
3921
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3835
3922
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3836
3923
|
unstable_isNewReconciler: !1
|
|
3837
3924
|
},
|
|
@@ -3850,12 +3937,15 @@ var ContextOnlyDispatcher = {
|
|
|
3850
3937
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3851
3938
|
return mountEffectImpl(
|
|
3852
3939
|
4,
|
|
3853
|
-
|
|
3940
|
+
4,
|
|
3854
3941
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3855
3942
|
deps
|
|
3856
3943
|
);
|
|
3857
3944
|
},
|
|
3858
3945
|
useLayoutEffect: function(create, deps) {
|
|
3946
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3947
|
+
},
|
|
3948
|
+
useInsertionEffect: function(create, deps) {
|
|
3859
3949
|
return mountEffectImpl(4, 2, create, deps);
|
|
3860
3950
|
},
|
|
3861
3951
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3869,7 +3959,7 @@ var ContextOnlyDispatcher = {
|
|
|
3869
3959
|
var hook = mountWorkInProgressHook();
|
|
3870
3960
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3871
3961
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3872
|
-
reducer =
|
|
3962
|
+
reducer = {
|
|
3873
3963
|
pending: null,
|
|
3874
3964
|
interleaved: null,
|
|
3875
3965
|
lanes: 0,
|
|
@@ -3877,6 +3967,7 @@ var ContextOnlyDispatcher = {
|
|
|
3877
3967
|
lastRenderedReducer: reducer,
|
|
3878
3968
|
lastRenderedState: initialArg
|
|
3879
3969
|
};
|
|
3970
|
+
hook.queue = reducer;
|
|
3880
3971
|
reducer = reducer.dispatch = dispatchAction.bind(
|
|
3881
3972
|
null,
|
|
3882
3973
|
currentlyRenderingFiber$1,
|
|
@@ -3925,6 +4016,7 @@ var ContextOnlyDispatcher = {
|
|
|
3925
4016
|
};
|
|
3926
4017
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3927
4018
|
},
|
|
4019
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3928
4020
|
useOpaqueIdentifier: function() {
|
|
3929
4021
|
throw Error("Not yet implemented");
|
|
3930
4022
|
},
|
|
@@ -3936,6 +4028,7 @@ var ContextOnlyDispatcher = {
|
|
|
3936
4028
|
useContext: readContext,
|
|
3937
4029
|
useEffect: updateEffect,
|
|
3938
4030
|
useImperativeHandle: updateImperativeHandle,
|
|
4031
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3939
4032
|
useLayoutEffect: updateLayoutEffect,
|
|
3940
4033
|
useMemo: updateMemo,
|
|
3941
4034
|
useReducer: updateReducer,
|
|
@@ -3968,6 +4061,46 @@ var ContextOnlyDispatcher = {
|
|
|
3968
4061
|
return [isPending, start];
|
|
3969
4062
|
},
|
|
3970
4063
|
useMutableSource: updateMutableSource,
|
|
4064
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4065
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4066
|
+
hook = updateWorkInProgressHook(),
|
|
4067
|
+
nextSnapshot = getSnapshot(),
|
|
4068
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4069
|
+
snapshotChanged &&
|
|
4070
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4071
|
+
hook = hook.queue;
|
|
4072
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4073
|
+
subscribe
|
|
4074
|
+
]);
|
|
4075
|
+
if (
|
|
4076
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4077
|
+
snapshotChanged ||
|
|
4078
|
+
(null !== workInProgressHook &&
|
|
4079
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4080
|
+
) {
|
|
4081
|
+
fiber.flags |= 1024;
|
|
4082
|
+
pushEffect(
|
|
4083
|
+
9,
|
|
4084
|
+
updateStoreInstance.bind(
|
|
4085
|
+
null,
|
|
4086
|
+
fiber,
|
|
4087
|
+
hook,
|
|
4088
|
+
nextSnapshot,
|
|
4089
|
+
getSnapshot
|
|
4090
|
+
),
|
|
4091
|
+
void 0,
|
|
4092
|
+
null
|
|
4093
|
+
);
|
|
4094
|
+
subscribe = workInProgressRoot;
|
|
4095
|
+
if (null === subscribe)
|
|
4096
|
+
throw Error(
|
|
4097
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4098
|
+
);
|
|
4099
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4100
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4101
|
+
}
|
|
4102
|
+
return nextSnapshot;
|
|
4103
|
+
},
|
|
3971
4104
|
useOpaqueIdentifier: function() {
|
|
3972
4105
|
return updateReducer(basicStateReducer)[0];
|
|
3973
4106
|
},
|
|
@@ -3979,6 +4112,7 @@ var ContextOnlyDispatcher = {
|
|
|
3979
4112
|
useContext: readContext,
|
|
3980
4113
|
useEffect: updateEffect,
|
|
3981
4114
|
useImperativeHandle: updateImperativeHandle,
|
|
4115
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3982
4116
|
useLayoutEffect: updateLayoutEffect,
|
|
3983
4117
|
useMemo: updateMemo,
|
|
3984
4118
|
useReducer: rerenderReducer,
|
|
@@ -4011,6 +4145,7 @@ var ContextOnlyDispatcher = {
|
|
|
4011
4145
|
return [isPending, start];
|
|
4012
4146
|
},
|
|
4013
4147
|
useMutableSource: updateMutableSource,
|
|
4148
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4014
4149
|
useOpaqueIdentifier: function() {
|
|
4015
4150
|
return rerenderReducer(basicStateReducer)[0];
|
|
4016
4151
|
},
|
|
@@ -4070,19 +4205,21 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4070
4205
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4071
4206
|
var error = errorInfo.value;
|
|
4072
4207
|
lane.payload = function() {
|
|
4073
|
-
logCapturedError(fiber, errorInfo);
|
|
4074
4208
|
return getDerivedStateFromError(error);
|
|
4075
4209
|
};
|
|
4210
|
+
lane.callback = function() {
|
|
4211
|
+
logCapturedError(fiber, errorInfo);
|
|
4212
|
+
};
|
|
4076
4213
|
}
|
|
4077
4214
|
var inst = fiber.stateNode;
|
|
4078
4215
|
null !== inst &&
|
|
4079
4216
|
"function" === typeof inst.componentDidCatch &&
|
|
4080
4217
|
(lane.callback = function() {
|
|
4218
|
+
logCapturedError(fiber, errorInfo);
|
|
4081
4219
|
"function" !== typeof getDerivedStateFromError &&
|
|
4082
4220
|
(null === legacyErrorBoundariesThatAlreadyFailed
|
|
4083
4221
|
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
|
4084
|
-
: legacyErrorBoundariesThatAlreadyFailed.add(this)
|
|
4085
|
-
logCapturedError(fiber, errorInfo));
|
|
4222
|
+
: legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
4086
4223
|
var stack = errorInfo.stack;
|
|
4087
4224
|
this.componentDidCatch(errorInfo.value, {
|
|
4088
4225
|
componentStack: null !== stack ? stack : ""
|
|
@@ -4090,1374 +4227,1483 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4090
4227
|
});
|
|
4091
4228
|
return lane;
|
|
4092
4229
|
}
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
nextChildren,
|
|
4103
|
-
renderLanes
|
|
4104
|
-
);
|
|
4105
|
-
}
|
|
4106
|
-
function updateForwardRef(
|
|
4107
|
-
current,
|
|
4108
|
-
workInProgress,
|
|
4109
|
-
Component,
|
|
4110
|
-
nextProps,
|
|
4111
|
-
renderLanes
|
|
4112
|
-
) {
|
|
4113
|
-
Component = Component.render;
|
|
4114
|
-
var ref = workInProgress.ref;
|
|
4115
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4116
|
-
nextProps = renderWithHooks(
|
|
4117
|
-
current,
|
|
4118
|
-
workInProgress,
|
|
4119
|
-
Component,
|
|
4120
|
-
nextProps,
|
|
4121
|
-
ref,
|
|
4122
|
-
renderLanes
|
|
4123
|
-
);
|
|
4124
|
-
if (null !== current && !didReceiveUpdate)
|
|
4125
|
-
return (
|
|
4126
|
-
(workInProgress.updateQueue = current.updateQueue),
|
|
4127
|
-
(workInProgress.flags &= -1029),
|
|
4128
|
-
(current.lanes &= ~renderLanes),
|
|
4129
|
-
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4130
|
-
);
|
|
4131
|
-
workInProgress.flags |= 1;
|
|
4132
|
-
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4133
|
-
return workInProgress.child;
|
|
4230
|
+
function hadNoMutationsEffects(current, completedWork) {
|
|
4231
|
+
if (null !== current && current.child === completedWork.child) return !0;
|
|
4232
|
+
if (0 !== (completedWork.flags & 16)) return !1;
|
|
4233
|
+
for (current = completedWork.child; null !== current; ) {
|
|
4234
|
+
if (0 !== (current.flags & 6454) || 0 !== (current.subtreeFlags & 6454))
|
|
4235
|
+
return !1;
|
|
4236
|
+
current = current.sibling;
|
|
4237
|
+
}
|
|
4238
|
+
return !0;
|
|
4134
4239
|
}
|
|
4135
|
-
|
|
4136
|
-
|
|
4240
|
+
var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText;
|
|
4241
|
+
appendAllChildren = function(
|
|
4242
|
+
parent,
|
|
4137
4243
|
workInProgress,
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
updateLanes,
|
|
4141
|
-
renderLanes
|
|
4244
|
+
needsVisibilityToggle,
|
|
4245
|
+
isHidden
|
|
4142
4246
|
) {
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
(
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
workInProgress
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
return (workInProgress.child = current);
|
|
4247
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
4248
|
+
if (5 === node.tag) {
|
|
4249
|
+
var instance = node.stateNode;
|
|
4250
|
+
needsVisibilityToggle &&
|
|
4251
|
+
isHidden &&
|
|
4252
|
+
(instance = cloneHiddenInstance(instance));
|
|
4253
|
+
appendChildNode(parent.node, instance.node);
|
|
4254
|
+
} else if (6 === node.tag) {
|
|
4255
|
+
instance = node.stateNode;
|
|
4256
|
+
if (needsVisibilityToggle && isHidden)
|
|
4257
|
+
throw Error("Not yet implemented.");
|
|
4258
|
+
appendChildNode(parent.node, instance.node);
|
|
4259
|
+
} else if (4 !== node.tag)
|
|
4260
|
+
if (22 === node.tag && null !== node.memoizedState)
|
|
4261
|
+
(instance = node.child),
|
|
4262
|
+
null !== instance && (instance.return = node),
|
|
4263
|
+
enablePersistentOffscreenHostContainer
|
|
4264
|
+
? appendAllChildren(parent, node, !1, !1)
|
|
4265
|
+
: appendAllChildren(parent, node, !0, !0);
|
|
4266
|
+
else if (null !== node.child) {
|
|
4267
|
+
node.child.return = node;
|
|
4268
|
+
node = node.child;
|
|
4269
|
+
continue;
|
|
4270
|
+
}
|
|
4271
|
+
if (node === workInProgress) break;
|
|
4272
|
+
for (; null === node.sibling; ) {
|
|
4273
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
4274
|
+
node = node.return;
|
|
4275
|
+
}
|
|
4276
|
+
node.sibling.return = node.return;
|
|
4277
|
+
node = node.sibling;
|
|
4175
4278
|
}
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
((updateLanes = type.memoizedProps),
|
|
4180
|
-
(Component = Component.compare),
|
|
4181
|
-
(Component = null !== Component ? Component : shallowEqual),
|
|
4182
|
-
Component(updateLanes, nextProps) && current.ref === workInProgress.ref)
|
|
4183
|
-
)
|
|
4184
|
-
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4185
|
-
workInProgress.flags |= 1;
|
|
4186
|
-
current = createWorkInProgress(type, nextProps);
|
|
4187
|
-
current.ref = workInProgress.ref;
|
|
4188
|
-
current.return = workInProgress;
|
|
4189
|
-
return (workInProgress.child = current);
|
|
4190
|
-
}
|
|
4191
|
-
function updateSimpleMemoComponent(
|
|
4192
|
-
current,
|
|
4279
|
+
};
|
|
4280
|
+
function appendAllChildrenToContainer(
|
|
4281
|
+
containerChildSet,
|
|
4193
4282
|
workInProgress,
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
updateLanes,
|
|
4197
|
-
renderLanes
|
|
4283
|
+
needsVisibilityToggle,
|
|
4284
|
+
isHidden
|
|
4198
4285
|
) {
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4286
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
4287
|
+
if (5 === node.tag) {
|
|
4288
|
+
var instance = node.stateNode;
|
|
4289
|
+
needsVisibilityToggle &&
|
|
4290
|
+
isHidden &&
|
|
4291
|
+
(instance = cloneHiddenInstance(instance));
|
|
4292
|
+
appendChildNodeToSet(containerChildSet, instance.node);
|
|
4293
|
+
} else if (6 === node.tag) {
|
|
4294
|
+
instance = node.stateNode;
|
|
4295
|
+
if (needsVisibilityToggle && isHidden)
|
|
4296
|
+
throw Error("Not yet implemented.");
|
|
4297
|
+
appendChildNodeToSet(containerChildSet, instance.node);
|
|
4298
|
+
} else if (4 !== node.tag)
|
|
4299
|
+
if (22 === node.tag && null !== node.memoizedState)
|
|
4300
|
+
(instance = node.child),
|
|
4301
|
+
null !== instance && (instance.return = node),
|
|
4302
|
+
enablePersistentOffscreenHostContainer
|
|
4303
|
+
? appendAllChildrenToContainer(containerChildSet, node, !1, !1)
|
|
4304
|
+
: appendAllChildrenToContainer(containerChildSet, node, !0, !0);
|
|
4305
|
+
else if (null !== node.child) {
|
|
4306
|
+
node.child.return = node;
|
|
4307
|
+
node = node.child;
|
|
4308
|
+
continue;
|
|
4309
|
+
}
|
|
4310
|
+
if (node === workInProgress) break;
|
|
4311
|
+
for (; null === node.sibling; ) {
|
|
4312
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
4313
|
+
node = node.return;
|
|
4314
|
+
}
|
|
4315
|
+
node.sibling.return = node.return;
|
|
4316
|
+
node = node.sibling;
|
|
4211
4317
|
}
|
|
4212
|
-
return updateFunctionComponent(
|
|
4213
|
-
current,
|
|
4214
|
-
workInProgress,
|
|
4215
|
-
Component,
|
|
4216
|
-
nextProps,
|
|
4217
|
-
renderLanes
|
|
4218
|
-
);
|
|
4219
4318
|
}
|
|
4220
|
-
function
|
|
4221
|
-
var
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4246
|
-
(subtreeRenderLanes |= current),
|
|
4247
|
-
null
|
|
4248
|
-
);
|
|
4249
|
-
workInProgress.memoizedState = { baseLanes: 0, cachePool: null };
|
|
4250
|
-
nextProps = null !== prevState ? prevState.baseLanes : renderLanes;
|
|
4251
|
-
push(subtreeRenderLanesCursor, subtreeRenderLanes);
|
|
4252
|
-
subtreeRenderLanes |= nextProps;
|
|
4253
|
-
}
|
|
4254
|
-
else
|
|
4255
|
-
null !== prevState
|
|
4256
|
-
? ((nextProps = prevState.baseLanes | renderLanes),
|
|
4257
|
-
(workInProgress.memoizedState = null))
|
|
4258
|
-
: (nextProps = renderLanes),
|
|
4259
|
-
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4260
|
-
(subtreeRenderLanes |= nextProps);
|
|
4261
|
-
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
4262
|
-
return workInProgress.child;
|
|
4263
|
-
}
|
|
4264
|
-
function markRef(current, workInProgress) {
|
|
4265
|
-
var ref = workInProgress.ref;
|
|
4266
|
-
if (
|
|
4267
|
-
(null === current && null !== ref) ||
|
|
4268
|
-
(null !== current && current.ref !== ref)
|
|
4269
|
-
)
|
|
4270
|
-
workInProgress.flags |= 256;
|
|
4271
|
-
}
|
|
4272
|
-
function updateFunctionComponent(
|
|
4273
|
-
current,
|
|
4274
|
-
workInProgress,
|
|
4275
|
-
Component,
|
|
4276
|
-
nextProps,
|
|
4277
|
-
renderLanes
|
|
4278
|
-
) {
|
|
4279
|
-
var context = isContextProvider(Component)
|
|
4280
|
-
? previousContext
|
|
4281
|
-
: contextStackCursor.current;
|
|
4282
|
-
context = getMaskedContext(workInProgress, context);
|
|
4283
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4284
|
-
Component = renderWithHooks(
|
|
4285
|
-
current,
|
|
4286
|
-
workInProgress,
|
|
4287
|
-
Component,
|
|
4288
|
-
nextProps,
|
|
4289
|
-
context,
|
|
4290
|
-
renderLanes
|
|
4291
|
-
);
|
|
4292
|
-
if (null !== current && !didReceiveUpdate)
|
|
4293
|
-
return (
|
|
4294
|
-
(workInProgress.updateQueue = current.updateQueue),
|
|
4295
|
-
(workInProgress.flags &= -1029),
|
|
4296
|
-
(current.lanes &= ~renderLanes),
|
|
4297
|
-
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4298
|
-
);
|
|
4299
|
-
workInProgress.flags |= 1;
|
|
4300
|
-
reconcileChildren(current, workInProgress, Component, renderLanes);
|
|
4301
|
-
return workInProgress.child;
|
|
4302
|
-
}
|
|
4303
|
-
function updateClassComponent(
|
|
4304
|
-
current,
|
|
4305
|
-
workInProgress,
|
|
4306
|
-
Component,
|
|
4307
|
-
nextProps,
|
|
4308
|
-
renderLanes
|
|
4309
|
-
) {
|
|
4310
|
-
if (isContextProvider(Component)) {
|
|
4311
|
-
var hasContext = !0;
|
|
4312
|
-
pushContextProvider(workInProgress);
|
|
4313
|
-
} else hasContext = !1;
|
|
4314
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4315
|
-
if (null === workInProgress.stateNode)
|
|
4316
|
-
null !== current &&
|
|
4317
|
-
((current.alternate = null),
|
|
4318
|
-
(workInProgress.alternate = null),
|
|
4319
|
-
(workInProgress.flags |= 2)),
|
|
4320
|
-
constructClassInstance(workInProgress, Component, nextProps),
|
|
4321
|
-
mountClassInstance(workInProgress, Component, nextProps, renderLanes),
|
|
4322
|
-
(nextProps = !0);
|
|
4323
|
-
else if (null === current) {
|
|
4324
|
-
var instance = workInProgress.stateNode,
|
|
4325
|
-
oldProps = workInProgress.memoizedProps;
|
|
4326
|
-
instance.props = oldProps;
|
|
4327
|
-
var oldContext = instance.context,
|
|
4328
|
-
contextType = Component.contextType;
|
|
4329
|
-
"object" === typeof contextType && null !== contextType
|
|
4330
|
-
? (contextType = readContext(contextType))
|
|
4331
|
-
: ((contextType = isContextProvider(Component)
|
|
4332
|
-
? previousContext
|
|
4333
|
-
: contextStackCursor.current),
|
|
4334
|
-
(contextType = getMaskedContext(workInProgress, contextType)));
|
|
4335
|
-
var getDerivedStateFromProps = Component.getDerivedStateFromProps,
|
|
4336
|
-
hasNewLifecycles =
|
|
4337
|
-
"function" === typeof getDerivedStateFromProps ||
|
|
4338
|
-
"function" === typeof instance.getSnapshotBeforeUpdate;
|
|
4339
|
-
hasNewLifecycles ||
|
|
4340
|
-
("function" !== typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
4341
|
-
"function" !== typeof instance.componentWillReceiveProps) ||
|
|
4342
|
-
((oldProps !== nextProps || oldContext !== contextType) &&
|
|
4343
|
-
callComponentWillReceiveProps(
|
|
4344
|
-
workInProgress,
|
|
4345
|
-
instance,
|
|
4346
|
-
nextProps,
|
|
4347
|
-
contextType
|
|
4348
|
-
));
|
|
4349
|
-
hasForceUpdate = !1;
|
|
4350
|
-
var oldState = workInProgress.memoizedState;
|
|
4351
|
-
instance.state = oldState;
|
|
4352
|
-
processUpdateQueue(workInProgress, nextProps, instance, renderLanes);
|
|
4353
|
-
oldContext = workInProgress.memoizedState;
|
|
4354
|
-
oldProps !== nextProps ||
|
|
4355
|
-
oldState !== oldContext ||
|
|
4356
|
-
didPerformWorkStackCursor.current ||
|
|
4357
|
-
hasForceUpdate
|
|
4358
|
-
? ("function" === typeof getDerivedStateFromProps &&
|
|
4359
|
-
(applyDerivedStateFromProps(
|
|
4360
|
-
workInProgress,
|
|
4361
|
-
Component,
|
|
4362
|
-
getDerivedStateFromProps,
|
|
4363
|
-
nextProps
|
|
4364
|
-
),
|
|
4365
|
-
(oldContext = workInProgress.memoizedState)),
|
|
4366
|
-
(oldProps =
|
|
4367
|
-
hasForceUpdate ||
|
|
4368
|
-
checkShouldComponentUpdate(
|
|
4369
|
-
workInProgress,
|
|
4370
|
-
Component,
|
|
4371
|
-
oldProps,
|
|
4372
|
-
nextProps,
|
|
4373
|
-
oldState,
|
|
4374
|
-
oldContext,
|
|
4375
|
-
contextType
|
|
4376
|
-
))
|
|
4377
|
-
? (hasNewLifecycles ||
|
|
4378
|
-
("function" !== typeof instance.UNSAFE_componentWillMount &&
|
|
4379
|
-
"function" !== typeof instance.componentWillMount) ||
|
|
4380
|
-
("function" === typeof instance.componentWillMount &&
|
|
4381
|
-
instance.componentWillMount(),
|
|
4382
|
-
"function" === typeof instance.UNSAFE_componentWillMount &&
|
|
4383
|
-
instance.UNSAFE_componentWillMount()),
|
|
4384
|
-
"function" === typeof instance.componentDidMount &&
|
|
4385
|
-
(workInProgress.flags |= 4))
|
|
4386
|
-
: ("function" === typeof instance.componentDidMount &&
|
|
4387
|
-
(workInProgress.flags |= 4),
|
|
4388
|
-
(workInProgress.memoizedProps = nextProps),
|
|
4389
|
-
(workInProgress.memoizedState = oldContext)),
|
|
4390
|
-
(instance.props = nextProps),
|
|
4391
|
-
(instance.state = oldContext),
|
|
4392
|
-
(instance.context = contextType),
|
|
4393
|
-
(nextProps = oldProps))
|
|
4394
|
-
: ("function" === typeof instance.componentDidMount &&
|
|
4395
|
-
(workInProgress.flags |= 4),
|
|
4396
|
-
(nextProps = !1));
|
|
4397
|
-
} else {
|
|
4398
|
-
instance = workInProgress.stateNode;
|
|
4399
|
-
cloneUpdateQueue(current, workInProgress);
|
|
4400
|
-
oldProps = workInProgress.memoizedProps;
|
|
4401
|
-
contextType =
|
|
4402
|
-
workInProgress.type === workInProgress.elementType
|
|
4403
|
-
? oldProps
|
|
4404
|
-
: resolveDefaultProps(workInProgress.type, oldProps);
|
|
4405
|
-
instance.props = contextType;
|
|
4406
|
-
hasNewLifecycles = workInProgress.pendingProps;
|
|
4407
|
-
oldState = instance.context;
|
|
4408
|
-
oldContext = Component.contextType;
|
|
4409
|
-
"object" === typeof oldContext && null !== oldContext
|
|
4410
|
-
? (oldContext = readContext(oldContext))
|
|
4411
|
-
: ((oldContext = isContextProvider(Component)
|
|
4412
|
-
? previousContext
|
|
4413
|
-
: contextStackCursor.current),
|
|
4414
|
-
(oldContext = getMaskedContext(workInProgress, oldContext)));
|
|
4415
|
-
var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps;
|
|
4416
|
-
(getDerivedStateFromProps =
|
|
4417
|
-
"function" === typeof getDerivedStateFromProps$jscomp$0 ||
|
|
4418
|
-
"function" === typeof instance.getSnapshotBeforeUpdate) ||
|
|
4419
|
-
("function" !== typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
4420
|
-
"function" !== typeof instance.componentWillReceiveProps) ||
|
|
4421
|
-
((oldProps !== hasNewLifecycles || oldState !== oldContext) &&
|
|
4422
|
-
callComponentWillReceiveProps(
|
|
4423
|
-
workInProgress,
|
|
4424
|
-
instance,
|
|
4425
|
-
nextProps,
|
|
4426
|
-
oldContext
|
|
4427
|
-
));
|
|
4428
|
-
hasForceUpdate = !1;
|
|
4429
|
-
oldState = workInProgress.memoizedState;
|
|
4430
|
-
instance.state = oldState;
|
|
4431
|
-
processUpdateQueue(workInProgress, nextProps, instance, renderLanes);
|
|
4432
|
-
var newState = workInProgress.memoizedState;
|
|
4433
|
-
oldProps !== hasNewLifecycles ||
|
|
4434
|
-
oldState !== newState ||
|
|
4435
|
-
didPerformWorkStackCursor.current ||
|
|
4436
|
-
hasForceUpdate
|
|
4437
|
-
? ("function" === typeof getDerivedStateFromProps$jscomp$0 &&
|
|
4438
|
-
(applyDerivedStateFromProps(
|
|
4439
|
-
workInProgress,
|
|
4440
|
-
Component,
|
|
4441
|
-
getDerivedStateFromProps$jscomp$0,
|
|
4442
|
-
nextProps
|
|
4443
|
-
),
|
|
4444
|
-
(newState = workInProgress.memoizedState)),
|
|
4445
|
-
(contextType =
|
|
4446
|
-
hasForceUpdate ||
|
|
4447
|
-
checkShouldComponentUpdate(
|
|
4448
|
-
workInProgress,
|
|
4449
|
-
Component,
|
|
4450
|
-
contextType,
|
|
4451
|
-
nextProps,
|
|
4452
|
-
oldState,
|
|
4453
|
-
newState,
|
|
4454
|
-
oldContext
|
|
4455
|
-
) ||
|
|
4456
|
-
!1)
|
|
4457
|
-
? (getDerivedStateFromProps ||
|
|
4458
|
-
("function" !== typeof instance.UNSAFE_componentWillUpdate &&
|
|
4459
|
-
"function" !== typeof instance.componentWillUpdate) ||
|
|
4460
|
-
("function" === typeof instance.componentWillUpdate &&
|
|
4461
|
-
instance.componentWillUpdate(nextProps, newState, oldContext),
|
|
4462
|
-
"function" === typeof instance.UNSAFE_componentWillUpdate &&
|
|
4463
|
-
instance.UNSAFE_componentWillUpdate(
|
|
4464
|
-
nextProps,
|
|
4465
|
-
newState,
|
|
4466
|
-
oldContext
|
|
4467
|
-
)),
|
|
4468
|
-
"function" === typeof instance.componentDidUpdate &&
|
|
4469
|
-
(workInProgress.flags |= 4),
|
|
4470
|
-
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
4471
|
-
(workInProgress.flags |= 512))
|
|
4472
|
-
: ("function" !== typeof instance.componentDidUpdate ||
|
|
4473
|
-
(oldProps === current.memoizedProps &&
|
|
4474
|
-
oldState === current.memoizedState) ||
|
|
4475
|
-
(workInProgress.flags |= 4),
|
|
4476
|
-
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
4477
|
-
(oldProps === current.memoizedProps &&
|
|
4478
|
-
oldState === current.memoizedState) ||
|
|
4479
|
-
(workInProgress.flags |= 512),
|
|
4480
|
-
(workInProgress.memoizedProps = nextProps),
|
|
4481
|
-
(workInProgress.memoizedState = newState)),
|
|
4482
|
-
(instance.props = nextProps),
|
|
4483
|
-
(instance.state = newState),
|
|
4484
|
-
(instance.context = oldContext),
|
|
4485
|
-
(nextProps = contextType))
|
|
4486
|
-
: ("function" !== typeof instance.componentDidUpdate ||
|
|
4487
|
-
(oldProps === current.memoizedProps &&
|
|
4488
|
-
oldState === current.memoizedState) ||
|
|
4489
|
-
(workInProgress.flags |= 4),
|
|
4490
|
-
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
4491
|
-
(oldProps === current.memoizedProps &&
|
|
4492
|
-
oldState === current.memoizedState) ||
|
|
4493
|
-
(workInProgress.flags |= 512),
|
|
4494
|
-
(nextProps = !1));
|
|
4495
|
-
}
|
|
4496
|
-
return finishClassComponent(
|
|
4497
|
-
current,
|
|
4498
|
-
workInProgress,
|
|
4499
|
-
Component,
|
|
4500
|
-
nextProps,
|
|
4501
|
-
hasContext,
|
|
4502
|
-
renderLanes
|
|
4503
|
-
);
|
|
4504
|
-
}
|
|
4505
|
-
function finishClassComponent(
|
|
4506
|
-
current,
|
|
4507
|
-
workInProgress,
|
|
4508
|
-
Component,
|
|
4509
|
-
shouldUpdate,
|
|
4510
|
-
hasContext,
|
|
4511
|
-
renderLanes
|
|
4512
|
-
) {
|
|
4513
|
-
markRef(current, workInProgress);
|
|
4514
|
-
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
4515
|
-
if (!shouldUpdate && !didCaptureError)
|
|
4516
|
-
return (
|
|
4517
|
-
hasContext && invalidateContextProvider(workInProgress, Component, !1),
|
|
4518
|
-
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4519
|
-
);
|
|
4520
|
-
shouldUpdate = workInProgress.stateNode;
|
|
4521
|
-
ReactCurrentOwner$1.current = workInProgress;
|
|
4522
|
-
var nextChildren =
|
|
4523
|
-
didCaptureError && "function" !== typeof Component.getDerivedStateFromError
|
|
4524
|
-
? null
|
|
4525
|
-
: shouldUpdate.render();
|
|
4526
|
-
workInProgress.flags |= 1;
|
|
4527
|
-
null !== current && didCaptureError
|
|
4528
|
-
? ((workInProgress.child = reconcileChildFibers(
|
|
4529
|
-
workInProgress,
|
|
4530
|
-
current.child,
|
|
4319
|
+
updateHostContainer = function(current, workInProgress) {
|
|
4320
|
+
var portalOrRoot = workInProgress.stateNode;
|
|
4321
|
+
if (!hadNoMutationsEffects(current, workInProgress)) {
|
|
4322
|
+
current = portalOrRoot.containerInfo;
|
|
4323
|
+
var newChildSet = createChildNodeSet(current);
|
|
4324
|
+
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
4325
|
+
portalOrRoot.pendingChildren = newChildSet;
|
|
4326
|
+
workInProgress.flags |= 4;
|
|
4327
|
+
completeRoot(current, newChildSet);
|
|
4328
|
+
}
|
|
4329
|
+
};
|
|
4330
|
+
updateHostComponent = function(current, workInProgress, type, newProps) {
|
|
4331
|
+
type = current.stateNode;
|
|
4332
|
+
var oldProps = current.memoizedProps;
|
|
4333
|
+
if (
|
|
4334
|
+
(current = hadNoMutationsEffects(current, workInProgress)) &&
|
|
4335
|
+
oldProps === newProps
|
|
4336
|
+
)
|
|
4337
|
+
workInProgress.stateNode = type;
|
|
4338
|
+
else {
|
|
4339
|
+
var recyclableInstance = workInProgress.stateNode;
|
|
4340
|
+
requiredContext(contextStackCursor$1.current);
|
|
4341
|
+
var updatePayload = null;
|
|
4342
|
+
oldProps !== newProps &&
|
|
4343
|
+
((oldProps = diffProperties(
|
|
4531
4344
|
null,
|
|
4532
|
-
|
|
4345
|
+
oldProps,
|
|
4346
|
+
newProps,
|
|
4347
|
+
recyclableInstance.canonical.viewConfig.validAttributes
|
|
4533
4348
|
)),
|
|
4534
|
-
(
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4349
|
+
(recyclableInstance.canonical.currentProps = newProps),
|
|
4350
|
+
(updatePayload = oldProps));
|
|
4351
|
+
current && null === updatePayload
|
|
4352
|
+
? (workInProgress.stateNode = type)
|
|
4353
|
+
: ((newProps = updatePayload),
|
|
4354
|
+
(oldProps = type.node),
|
|
4355
|
+
(type = {
|
|
4356
|
+
node: current
|
|
4357
|
+
? null !== newProps
|
|
4358
|
+
? cloneNodeWithNewProps(oldProps, newProps)
|
|
4359
|
+
: cloneNode(oldProps)
|
|
4360
|
+
: null !== newProps
|
|
4361
|
+
? cloneNodeWithNewChildrenAndProps(oldProps, newProps)
|
|
4362
|
+
: cloneNodeWithNewChildren(oldProps),
|
|
4363
|
+
canonical: type.canonical
|
|
4364
|
+
}),
|
|
4365
|
+
(workInProgress.stateNode = type),
|
|
4366
|
+
current
|
|
4367
|
+
? (workInProgress.flags |= 4)
|
|
4368
|
+
: appendAllChildren(type, workInProgress, !1, !1));
|
|
4369
|
+
}
|
|
4370
|
+
};
|
|
4371
|
+
updateHostText = function(current, workInProgress, oldText, newText) {
|
|
4372
|
+
oldText !== newText
|
|
4373
|
+
? ((current = requiredContext(rootInstanceStackCursor.current)),
|
|
4374
|
+
(oldText = requiredContext(contextStackCursor$1.current)),
|
|
4375
|
+
(workInProgress.stateNode = createTextInstance(
|
|
4376
|
+
newText,
|
|
4377
|
+
current,
|
|
4378
|
+
oldText,
|
|
4379
|
+
workInProgress
|
|
4380
|
+
)),
|
|
4381
|
+
(workInProgress.flags |= 4))
|
|
4382
|
+
: (workInProgress.stateNode = current.stateNode);
|
|
4383
|
+
};
|
|
4384
|
+
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4385
|
+
switch (renderState.tailMode) {
|
|
4386
|
+
case "hidden":
|
|
4387
|
+
hasRenderedATailFallback = renderState.tail;
|
|
4388
|
+
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4389
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
4390
|
+
(lastTailNode = hasRenderedATailFallback),
|
|
4391
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4392
|
+
null === lastTailNode
|
|
4393
|
+
? (renderState.tail = null)
|
|
4394
|
+
: (lastTailNode.sibling = null);
|
|
4395
|
+
break;
|
|
4396
|
+
case "collapsed":
|
|
4397
|
+
lastTailNode = renderState.tail;
|
|
4398
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4399
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4400
|
+
(lastTailNode = lastTailNode.sibling);
|
|
4401
|
+
null === lastTailNode$38
|
|
4402
|
+
? hasRenderedATailFallback || null === renderState.tail
|
|
4403
|
+
? (renderState.tail = null)
|
|
4404
|
+
: (renderState.tail.sibling = null)
|
|
4405
|
+
: (lastTailNode$38.sibling = null);
|
|
4406
|
+
}
|
|
4544
4407
|
}
|
|
4545
|
-
function
|
|
4546
|
-
var
|
|
4547
|
-
|
|
4548
|
-
|
|
4408
|
+
function bubbleProperties(completedWork) {
|
|
4409
|
+
var didBailout =
|
|
4410
|
+
null !== completedWork.alternate &&
|
|
4411
|
+
completedWork.alternate.child === completedWork.child,
|
|
4412
|
+
newChildLanes = 0,
|
|
4413
|
+
subtreeFlags = 0;
|
|
4414
|
+
if (didBailout)
|
|
4415
|
+
for (var child$39 = completedWork.child; null !== child$39; )
|
|
4416
|
+
(newChildLanes |= child$39.lanes | child$39.childLanes),
|
|
4417
|
+
(subtreeFlags |= child$39.subtreeFlags & 3670016),
|
|
4418
|
+
(subtreeFlags |= child$39.flags & 3670016),
|
|
4419
|
+
(child$39.return = completedWork),
|
|
4420
|
+
(child$39 = child$39.sibling);
|
|
4421
|
+
else
|
|
4422
|
+
for (child$39 = completedWork.child; null !== child$39; )
|
|
4423
|
+
(newChildLanes |= child$39.lanes | child$39.childLanes),
|
|
4424
|
+
(subtreeFlags |= child$39.subtreeFlags),
|
|
4425
|
+
(subtreeFlags |= child$39.flags),
|
|
4426
|
+
(child$39.return = completedWork),
|
|
4427
|
+
(child$39 = child$39.sibling);
|
|
4428
|
+
completedWork.subtreeFlags |= subtreeFlags;
|
|
4429
|
+
completedWork.childLanes = newChildLanes;
|
|
4430
|
+
return didBailout;
|
|
4431
|
+
}
|
|
4432
|
+
function completeSuspendedOffscreenHostContainer(current, workInProgress) {
|
|
4433
|
+
var rootContainerInstance = requiredContext(rootInstanceStackCursor.current),
|
|
4434
|
+
type = workInProgress.type,
|
|
4435
|
+
newProps = workInProgress.memoizedProps;
|
|
4436
|
+
null !== current
|
|
4437
|
+
? updateHostComponent(
|
|
4438
|
+
current,
|
|
4549
4439
|
workInProgress,
|
|
4550
|
-
|
|
4551
|
-
|
|
4440
|
+
type,
|
|
4441
|
+
newProps,
|
|
4442
|
+
rootContainerInstance
|
|
4552
4443
|
)
|
|
4553
|
-
:
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4444
|
+
: ((current = requiredContext(contextStackCursor$1.current)),
|
|
4445
|
+
(rootContainerInstance = createInstance(
|
|
4446
|
+
type,
|
|
4447
|
+
newProps,
|
|
4448
|
+
rootContainerInstance,
|
|
4449
|
+
current,
|
|
4450
|
+
workInProgress
|
|
4451
|
+
)),
|
|
4452
|
+
appendAllChildren(rootContainerInstance, workInProgress, !1, !1),
|
|
4453
|
+
(workInProgress.stateNode = rootContainerInstance),
|
|
4454
|
+
null !== workInProgress.ref && (workInProgress.flags |= 256));
|
|
4455
|
+
bubbleProperties(workInProgress);
|
|
4560
4456
|
}
|
|
4561
|
-
function
|
|
4562
|
-
var
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
:
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
(
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4457
|
+
function completeWork(current, workInProgress, renderLanes) {
|
|
4458
|
+
var newProps = workInProgress.pendingProps;
|
|
4459
|
+
switch (workInProgress.tag) {
|
|
4460
|
+
case 2:
|
|
4461
|
+
case 16:
|
|
4462
|
+
case 15:
|
|
4463
|
+
case 0:
|
|
4464
|
+
case 11:
|
|
4465
|
+
case 7:
|
|
4466
|
+
case 8:
|
|
4467
|
+
case 12:
|
|
4468
|
+
case 9:
|
|
4469
|
+
case 14:
|
|
4470
|
+
return bubbleProperties(workInProgress), null;
|
|
4471
|
+
case 1:
|
|
4472
|
+
return (
|
|
4473
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4474
|
+
bubbleProperties(workInProgress),
|
|
4475
|
+
null
|
|
4476
|
+
);
|
|
4477
|
+
case 3:
|
|
4478
|
+
return (
|
|
4479
|
+
(newProps = workInProgress.stateNode),
|
|
4480
|
+
popHostContainer(),
|
|
4481
|
+
pop(didPerformWorkStackCursor),
|
|
4482
|
+
pop(contextStackCursor),
|
|
4483
|
+
resetWorkInProgressVersions(),
|
|
4484
|
+
newProps.pendingContext &&
|
|
4485
|
+
((newProps.context = newProps.pendingContext),
|
|
4486
|
+
(newProps.pendingContext = null)),
|
|
4487
|
+
(null !== current && null !== current.child) ||
|
|
4488
|
+
newProps.hydrate ||
|
|
4489
|
+
(workInProgress.flags |= 512),
|
|
4490
|
+
updateHostContainer(current, workInProgress),
|
|
4491
|
+
bubbleProperties(workInProgress),
|
|
4492
|
+
null
|
|
4493
|
+
);
|
|
4494
|
+
case 5:
|
|
4495
|
+
popHostContext(workInProgress);
|
|
4496
|
+
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4497
|
+
var type = workInProgress.type;
|
|
4498
|
+
if (null !== current && null != workInProgress.stateNode)
|
|
4499
|
+
updateHostComponent(
|
|
4500
|
+
current,
|
|
4501
|
+
workInProgress,
|
|
4502
|
+
type,
|
|
4503
|
+
newProps,
|
|
4504
|
+
renderLanes
|
|
4505
|
+
),
|
|
4506
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4507
|
+
else {
|
|
4508
|
+
if (!newProps) {
|
|
4509
|
+
if (null === workInProgress.stateNode)
|
|
4510
|
+
throw Error(
|
|
4511
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4512
|
+
);
|
|
4513
|
+
bubbleProperties(workInProgress);
|
|
4514
|
+
return null;
|
|
4515
|
+
}
|
|
4516
|
+
current = requiredContext(contextStackCursor$1.current);
|
|
4517
|
+
current = createInstance(
|
|
4518
|
+
type,
|
|
4519
|
+
newProps,
|
|
4520
|
+
renderLanes,
|
|
4521
|
+
current,
|
|
4522
|
+
workInProgress
|
|
4523
|
+
);
|
|
4524
|
+
appendAllChildren(current, workInProgress, !1, !1);
|
|
4525
|
+
workInProgress.stateNode = current;
|
|
4526
|
+
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4527
|
+
}
|
|
4528
|
+
bubbleProperties(workInProgress);
|
|
4529
|
+
return null;
|
|
4530
|
+
case 6:
|
|
4531
|
+
if (current && null != workInProgress.stateNode)
|
|
4532
|
+
updateHostText(
|
|
4533
|
+
current,
|
|
4534
|
+
workInProgress,
|
|
4535
|
+
current.memoizedProps,
|
|
4536
|
+
newProps
|
|
4537
|
+
);
|
|
4538
|
+
else {
|
|
4539
|
+
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
4540
|
+
throw Error(
|
|
4541
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4542
|
+
);
|
|
4543
|
+
current = requiredContext(rootInstanceStackCursor.current);
|
|
4544
|
+
renderLanes = requiredContext(contextStackCursor$1.current);
|
|
4545
|
+
workInProgress.stateNode = createTextInstance(
|
|
4546
|
+
newProps,
|
|
4547
|
+
current,
|
|
4548
|
+
renderLanes,
|
|
4549
|
+
workInProgress
|
|
4550
|
+
);
|
|
4551
|
+
}
|
|
4552
|
+
bubbleProperties(workInProgress);
|
|
4553
|
+
return null;
|
|
4554
|
+
case 13:
|
|
4555
|
+
pop(suspenseStackCursor);
|
|
4556
|
+
newProps = workInProgress.memoizedState;
|
|
4557
|
+
if (0 !== (workInProgress.flags & 128))
|
|
4558
|
+
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
4559
|
+
renderLanes = !1;
|
|
4560
|
+
null !== current && (renderLanes = null !== current.memoizedState);
|
|
4561
|
+
if (
|
|
4562
|
+
null !== newProps &&
|
|
4563
|
+
!renderLanes &&
|
|
4564
|
+
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
|
|
4565
|
+
)
|
|
4566
|
+
if (
|
|
4567
|
+
(null === current &&
|
|
4568
|
+
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4569
|
+
0 !== (suspenseStackCursor.current & 1)
|
|
4570
|
+
)
|
|
4571
|
+
0 === workInProgressRootExitStatus &&
|
|
4572
|
+
(workInProgressRootExitStatus = 3);
|
|
4573
|
+
else {
|
|
4574
|
+
if (
|
|
4575
|
+
0 === workInProgressRootExitStatus ||
|
|
4576
|
+
3 === workInProgressRootExitStatus
|
|
4577
|
+
)
|
|
4578
|
+
workInProgressRootExitStatus = 4;
|
|
4579
|
+
null === workInProgressRoot ||
|
|
4580
|
+
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4581
|
+
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
4582
|
+
markRootSuspended$1(
|
|
4583
|
+
workInProgressRoot,
|
|
4584
|
+
workInProgressRootRenderLanes
|
|
4585
|
+
);
|
|
4586
|
+
}
|
|
4587
|
+
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
4588
|
+
bubbleProperties(workInProgress);
|
|
4589
|
+
return null;
|
|
4590
|
+
case 4:
|
|
4582
4591
|
return (
|
|
4583
|
-
(
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
renderLanes
|
|
4588
|
-
)),
|
|
4589
|
-
(workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
4590
|
-
renderLanes
|
|
4591
|
-
)),
|
|
4592
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
4593
|
-
current
|
|
4592
|
+
popHostContainer(),
|
|
4593
|
+
updateHostContainer(current, workInProgress),
|
|
4594
|
+
bubbleProperties(workInProgress),
|
|
4595
|
+
null
|
|
4594
4596
|
);
|
|
4595
|
-
|
|
4597
|
+
case 10:
|
|
4596
4598
|
return (
|
|
4597
|
-
(
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
suspenseContext,
|
|
4601
|
-
renderLanes
|
|
4602
|
-
)),
|
|
4603
|
-
(workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
4604
|
-
renderLanes
|
|
4605
|
-
)),
|
|
4606
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
4607
|
-
(workInProgress.lanes = 4194304),
|
|
4608
|
-
current
|
|
4599
|
+
popProvider(workInProgress.type._context),
|
|
4600
|
+
bubbleProperties(workInProgress),
|
|
4601
|
+
null
|
|
4609
4602
|
);
|
|
4610
|
-
|
|
4611
|
-
{ mode: "visible", children: current },
|
|
4612
|
-
workInProgress.mode,
|
|
4613
|
-
renderLanes,
|
|
4614
|
-
null
|
|
4615
|
-
);
|
|
4616
|
-
renderLanes.return = workInProgress;
|
|
4617
|
-
return (workInProgress.child = renderLanes);
|
|
4618
|
-
}
|
|
4619
|
-
if (null !== current.memoizedState) {
|
|
4620
|
-
if (showFallback)
|
|
4603
|
+
case 17:
|
|
4621
4604
|
return (
|
|
4622
|
-
(
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
nextProps.children,
|
|
4626
|
-
nextProps.fallback,
|
|
4627
|
-
renderLanes
|
|
4628
|
-
)),
|
|
4629
|
-
(showFallback = workInProgress.child),
|
|
4630
|
-
(suspenseContext = current.child.memoizedState),
|
|
4631
|
-
(showFallback.memoizedState =
|
|
4632
|
-
null === suspenseContext
|
|
4633
|
-
? mountSuspenseOffscreenState(renderLanes)
|
|
4634
|
-
: {
|
|
4635
|
-
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
4636
|
-
cachePool: null
|
|
4637
|
-
}),
|
|
4638
|
-
(showFallback.childLanes = current.childLanes & ~renderLanes),
|
|
4639
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
4640
|
-
nextProps
|
|
4605
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4606
|
+
bubbleProperties(workInProgress),
|
|
4607
|
+
null
|
|
4641
4608
|
);
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
workInProgress
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
)
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4609
|
+
case 19:
|
|
4610
|
+
pop(suspenseStackCursor);
|
|
4611
|
+
type = workInProgress.memoizedState;
|
|
4612
|
+
if (null === type) return bubbleProperties(workInProgress), null;
|
|
4613
|
+
newProps = 0 !== (workInProgress.flags & 128);
|
|
4614
|
+
var renderedTail = type.rendering;
|
|
4615
|
+
if (null === renderedTail)
|
|
4616
|
+
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
4617
|
+
else {
|
|
4618
|
+
if (
|
|
4619
|
+
0 !== workInProgressRootExitStatus ||
|
|
4620
|
+
(null !== current && 0 !== (current.flags & 128))
|
|
4621
|
+
)
|
|
4622
|
+
for (current = workInProgress.child; null !== current; ) {
|
|
4623
|
+
renderedTail = findFirstSuspended(current);
|
|
4624
|
+
if (null !== renderedTail) {
|
|
4625
|
+
workInProgress.flags |= 128;
|
|
4626
|
+
cutOffTailIfNeeded(type, !1);
|
|
4627
|
+
current = renderedTail.updateQueue;
|
|
4628
|
+
null !== current &&
|
|
4629
|
+
((workInProgress.updateQueue = current),
|
|
4630
|
+
(workInProgress.flags |= 4));
|
|
4631
|
+
workInProgress.subtreeFlags = 0;
|
|
4632
|
+
current = renderLanes;
|
|
4633
|
+
for (newProps = workInProgress.child; null !== newProps; )
|
|
4634
|
+
(renderLanes = newProps),
|
|
4635
|
+
(type = current),
|
|
4636
|
+
(renderLanes.flags &= 3670018),
|
|
4637
|
+
(renderedTail = renderLanes.alternate),
|
|
4638
|
+
null === renderedTail
|
|
4639
|
+
? ((renderLanes.childLanes = 0),
|
|
4640
|
+
(renderLanes.lanes = type),
|
|
4641
|
+
(renderLanes.child = null),
|
|
4642
|
+
(renderLanes.subtreeFlags = 0),
|
|
4643
|
+
(renderLanes.memoizedProps = null),
|
|
4644
|
+
(renderLanes.memoizedState = null),
|
|
4645
|
+
(renderLanes.updateQueue = null),
|
|
4646
|
+
(renderLanes.dependencies = null),
|
|
4647
|
+
(renderLanes.stateNode = null))
|
|
4648
|
+
: ((renderLanes.childLanes = renderedTail.childLanes),
|
|
4649
|
+
(renderLanes.lanes = renderedTail.lanes),
|
|
4650
|
+
(renderLanes.child = renderedTail.child),
|
|
4651
|
+
(renderLanes.subtreeFlags = 0),
|
|
4652
|
+
(renderLanes.deletions = null),
|
|
4653
|
+
(renderLanes.memoizedProps =
|
|
4654
|
+
renderedTail.memoizedProps),
|
|
4655
|
+
(renderLanes.memoizedState =
|
|
4656
|
+
renderedTail.memoizedState),
|
|
4657
|
+
(renderLanes.updateQueue = renderedTail.updateQueue),
|
|
4658
|
+
(renderLanes.type = renderedTail.type),
|
|
4659
|
+
(type = renderedTail.dependencies),
|
|
4660
|
+
(renderLanes.dependencies =
|
|
4661
|
+
null === type
|
|
4662
|
+
? null
|
|
4663
|
+
: {
|
|
4664
|
+
lanes: type.lanes,
|
|
4665
|
+
firstContext: type.firstContext
|
|
4666
|
+
})),
|
|
4667
|
+
(newProps = newProps.sibling);
|
|
4668
|
+
push(
|
|
4669
|
+
suspenseStackCursor,
|
|
4670
|
+
(suspenseStackCursor.current & 1) | 2
|
|
4671
|
+
);
|
|
4672
|
+
return workInProgress.child;
|
|
4673
|
+
}
|
|
4674
|
+
current = current.sibling;
|
|
4675
|
+
}
|
|
4676
|
+
null !== type.tail &&
|
|
4677
|
+
now() > workInProgressRootRenderTargetTime &&
|
|
4678
|
+
((workInProgress.flags |= 128),
|
|
4679
|
+
(newProps = !0),
|
|
4680
|
+
cutOffTailIfNeeded(type, !1),
|
|
4681
|
+
(workInProgress.lanes = 4194304));
|
|
4682
|
+
}
|
|
4683
|
+
else {
|
|
4684
|
+
if (!newProps)
|
|
4685
|
+
if (
|
|
4686
|
+
((current = findFirstSuspended(renderedTail)), null !== current)
|
|
4687
|
+
) {
|
|
4688
|
+
if (
|
|
4689
|
+
((workInProgress.flags |= 128),
|
|
4690
|
+
(newProps = !0),
|
|
4691
|
+
(current = current.updateQueue),
|
|
4692
|
+
null !== current &&
|
|
4693
|
+
((workInProgress.updateQueue = current),
|
|
4694
|
+
(workInProgress.flags |= 4)),
|
|
4695
|
+
cutOffTailIfNeeded(type, !0),
|
|
4696
|
+
null === type.tail &&
|
|
4697
|
+
"hidden" === type.tailMode &&
|
|
4698
|
+
!renderedTail.alternate)
|
|
4699
|
+
)
|
|
4700
|
+
return bubbleProperties(workInProgress), null;
|
|
4701
|
+
} else
|
|
4702
|
+
2 * now() - type.renderingStartTime >
|
|
4703
|
+
workInProgressRootRenderTargetTime &&
|
|
4704
|
+
1073741824 !== renderLanes &&
|
|
4705
|
+
((workInProgress.flags |= 128),
|
|
4706
|
+
(newProps = !0),
|
|
4707
|
+
cutOffTailIfNeeded(type, !1),
|
|
4708
|
+
(workInProgress.lanes = 4194304));
|
|
4709
|
+
type.isBackwards
|
|
4710
|
+
? ((renderedTail.sibling = workInProgress.child),
|
|
4711
|
+
(workInProgress.child = renderedTail))
|
|
4712
|
+
: ((current = type.last),
|
|
4713
|
+
null !== current
|
|
4714
|
+
? (current.sibling = renderedTail)
|
|
4715
|
+
: (workInProgress.child = renderedTail),
|
|
4716
|
+
(type.last = renderedTail));
|
|
4717
|
+
}
|
|
4718
|
+
if (null !== type.tail)
|
|
4719
|
+
return (
|
|
4720
|
+
(workInProgress = type.tail),
|
|
4721
|
+
(type.rendering = workInProgress),
|
|
4722
|
+
(type.tail = workInProgress.sibling),
|
|
4723
|
+
(type.renderingStartTime = now()),
|
|
4724
|
+
(workInProgress.sibling = null),
|
|
4725
|
+
(current = suspenseStackCursor.current),
|
|
4726
|
+
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
4727
|
+
workInProgress
|
|
4728
|
+
);
|
|
4729
|
+
bubbleProperties(workInProgress);
|
|
4730
|
+
return null;
|
|
4731
|
+
case 22:
|
|
4732
|
+
case 23:
|
|
4733
|
+
return (
|
|
4734
|
+
popRenderLanes(),
|
|
4735
|
+
(renderLanes = null !== workInProgress.memoizedState),
|
|
4736
|
+
null !== current &&
|
|
4737
|
+
(null !== current.memoizedState) !== renderLanes &&
|
|
4738
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4739
|
+
23 !== workInProgress.tag &&
|
|
4740
|
+
(workInProgress.flags |= 4096),
|
|
4741
|
+
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4742
|
+
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4743
|
+
bubbleProperties(workInProgress)
|
|
4744
|
+
: bubbleProperties(workInProgress),
|
|
4698
4745
|
null
|
|
4699
|
-
)
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4746
|
+
);
|
|
4747
|
+
}
|
|
4748
|
+
throw Error(
|
|
4749
|
+
"Unknown unit of work tag (" +
|
|
4750
|
+
workInProgress.tag +
|
|
4751
|
+
"). This error is likely caused by a bug in React. Please file an issue."
|
|
4705
4752
|
);
|
|
4706
|
-
progressedPrimaryFragment.return = workInProgress;
|
|
4707
|
-
fallbackChildren.return = workInProgress;
|
|
4708
|
-
progressedPrimaryFragment.sibling = fallbackChildren;
|
|
4709
|
-
workInProgress.child = progressedPrimaryFragment;
|
|
4710
|
-
return fallbackChildren;
|
|
4711
4753
|
}
|
|
4712
|
-
|
|
4754
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4755
|
+
didReceiveUpdate = !1;
|
|
4756
|
+
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4757
|
+
workInProgress.child =
|
|
4758
|
+
null === current
|
|
4759
|
+
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4760
|
+
: reconcileChildFibers(
|
|
4761
|
+
workInProgress,
|
|
4762
|
+
current.child,
|
|
4763
|
+
nextChildren,
|
|
4764
|
+
renderLanes
|
|
4765
|
+
);
|
|
4766
|
+
}
|
|
4767
|
+
function updateForwardRef(
|
|
4713
4768
|
current,
|
|
4714
4769
|
workInProgress,
|
|
4715
|
-
|
|
4770
|
+
Component,
|
|
4771
|
+
nextProps,
|
|
4716
4772
|
renderLanes
|
|
4717
4773
|
) {
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4774
|
+
Component = Component.render;
|
|
4775
|
+
var ref = workInProgress.ref;
|
|
4776
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4777
|
+
nextProps = renderWithHooks(
|
|
4778
|
+
current,
|
|
4779
|
+
workInProgress,
|
|
4780
|
+
Component,
|
|
4781
|
+
nextProps,
|
|
4782
|
+
ref,
|
|
4783
|
+
renderLanes
|
|
4784
|
+
);
|
|
4785
|
+
if (null !== current && !didReceiveUpdate)
|
|
4786
|
+
return (
|
|
4787
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4788
|
+
(workInProgress.flags &= -1029),
|
|
4789
|
+
(current.lanes &= ~renderLanes),
|
|
4790
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4791
|
+
);
|
|
4792
|
+
workInProgress.flags |= 1;
|
|
4793
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4794
|
+
return workInProgress.child;
|
|
4733
4795
|
}
|
|
4734
|
-
function
|
|
4796
|
+
function updateMemoComponent(
|
|
4735
4797
|
current,
|
|
4736
4798
|
workInProgress,
|
|
4737
|
-
|
|
4738
|
-
|
|
4799
|
+
Component,
|
|
4800
|
+
nextProps,
|
|
4739
4801
|
renderLanes
|
|
4740
4802
|
) {
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4803
|
+
if (null === current) {
|
|
4804
|
+
var type = Component.type;
|
|
4805
|
+
if (
|
|
4806
|
+
"function" === typeof type &&
|
|
4807
|
+
!shouldConstruct(type) &&
|
|
4808
|
+
void 0 === type.defaultProps &&
|
|
4809
|
+
null === Component.compare &&
|
|
4810
|
+
void 0 === Component.defaultProps
|
|
4811
|
+
)
|
|
4812
|
+
return (
|
|
4813
|
+
(workInProgress.tag = 15),
|
|
4814
|
+
(workInProgress.type = type),
|
|
4815
|
+
updateSimpleMemoComponent(
|
|
4816
|
+
current,
|
|
4817
|
+
workInProgress,
|
|
4818
|
+
type,
|
|
4819
|
+
nextProps,
|
|
4820
|
+
renderLanes
|
|
4821
|
+
)
|
|
4822
|
+
);
|
|
4823
|
+
current = createFiberFromTypeAndProps(
|
|
4824
|
+
Component.type,
|
|
4825
|
+
null,
|
|
4826
|
+
nextProps,
|
|
4827
|
+
workInProgress,
|
|
4828
|
+
workInProgress.mode,
|
|
4829
|
+
renderLanes
|
|
4830
|
+
);
|
|
4831
|
+
current.ref = workInProgress.ref;
|
|
4832
|
+
current.return = workInProgress;
|
|
4833
|
+
return (workInProgress.child = current);
|
|
4834
|
+
}
|
|
4835
|
+
type = current.child;
|
|
4836
|
+
if (0 === (current.lanes & renderLanes)) {
|
|
4837
|
+
var prevProps = type.memoizedProps;
|
|
4838
|
+
Component = Component.compare;
|
|
4839
|
+
Component = null !== Component ? Component : shallowEqual;
|
|
4840
|
+
if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)
|
|
4841
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4842
|
+
}
|
|
4843
|
+
workInProgress.flags |= 1;
|
|
4844
|
+
current = createWorkInProgress(type, nextProps);
|
|
4845
|
+
current.ref = workInProgress.ref;
|
|
4846
|
+
current.return = workInProgress;
|
|
4847
|
+
return (workInProgress.child = current);
|
|
4775
4848
|
}
|
|
4776
|
-
function
|
|
4849
|
+
function updateSimpleMemoComponent(
|
|
4850
|
+
current,
|
|
4777
4851
|
workInProgress,
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
tailMode
|
|
4852
|
+
Component,
|
|
4853
|
+
nextProps,
|
|
4854
|
+
renderLanes
|
|
4782
4855
|
) {
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
push(suspenseStackCursor, nextProps);
|
|
4832
|
-
if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;
|
|
4833
|
-
else
|
|
4834
|
-
switch (revealOrder) {
|
|
4835
|
-
case "forwards":
|
|
4836
|
-
renderLanes = workInProgress.child;
|
|
4837
|
-
for (revealOrder = null; null !== renderLanes; )
|
|
4838
|
-
(current = renderLanes.alternate),
|
|
4839
|
-
null !== current &&
|
|
4840
|
-
null === findFirstSuspended(current) &&
|
|
4841
|
-
(revealOrder = renderLanes),
|
|
4842
|
-
(renderLanes = renderLanes.sibling);
|
|
4843
|
-
renderLanes = revealOrder;
|
|
4844
|
-
null === renderLanes
|
|
4845
|
-
? ((revealOrder = workInProgress.child),
|
|
4846
|
-
(workInProgress.child = null))
|
|
4847
|
-
: ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));
|
|
4848
|
-
initSuspenseListRenderState(
|
|
4849
|
-
workInProgress,
|
|
4850
|
-
!1,
|
|
4851
|
-
revealOrder,
|
|
4852
|
-
renderLanes,
|
|
4853
|
-
tailMode
|
|
4854
|
-
);
|
|
4855
|
-
break;
|
|
4856
|
-
case "backwards":
|
|
4857
|
-
renderLanes = null;
|
|
4858
|
-
revealOrder = workInProgress.child;
|
|
4859
|
-
for (workInProgress.child = null; null !== revealOrder; ) {
|
|
4860
|
-
current = revealOrder.alternate;
|
|
4861
|
-
if (null !== current && null === findFirstSuspended(current)) {
|
|
4862
|
-
workInProgress.child = revealOrder;
|
|
4863
|
-
break;
|
|
4864
|
-
}
|
|
4865
|
-
current = revealOrder.sibling;
|
|
4866
|
-
revealOrder.sibling = renderLanes;
|
|
4867
|
-
renderLanes = revealOrder;
|
|
4868
|
-
revealOrder = current;
|
|
4869
|
-
}
|
|
4870
|
-
initSuspenseListRenderState(
|
|
4871
|
-
workInProgress,
|
|
4872
|
-
!0,
|
|
4873
|
-
renderLanes,
|
|
4874
|
-
null,
|
|
4875
|
-
tailMode
|
|
4856
|
+
if (
|
|
4857
|
+
null !== current &&
|
|
4858
|
+
shallowEqual(current.memoizedProps, nextProps) &&
|
|
4859
|
+
current.ref === workInProgress.ref
|
|
4860
|
+
)
|
|
4861
|
+
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4862
|
+
0 !== (current.flags & 65536) && (didReceiveUpdate = !0);
|
|
4863
|
+
else
|
|
4864
|
+
return (
|
|
4865
|
+
(workInProgress.lanes = current.lanes),
|
|
4866
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4867
|
+
);
|
|
4868
|
+
return updateFunctionComponent(
|
|
4869
|
+
current,
|
|
4870
|
+
workInProgress,
|
|
4871
|
+
Component,
|
|
4872
|
+
nextProps,
|
|
4873
|
+
renderLanes
|
|
4874
|
+
);
|
|
4875
|
+
}
|
|
4876
|
+
function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
4877
|
+
var nextProps = workInProgress.pendingProps,
|
|
4878
|
+
nextChildren = nextProps.children,
|
|
4879
|
+
prevState = null !== current ? current.memoizedState : null;
|
|
4880
|
+
if (
|
|
4881
|
+
"hidden" === nextProps.mode ||
|
|
4882
|
+
"unstable-defer-without-hiding" === nextProps.mode
|
|
4883
|
+
)
|
|
4884
|
+
if (0 === (workInProgress.mode & 1))
|
|
4885
|
+
(workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),
|
|
4886
|
+
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4887
|
+
(subtreeRenderLanes |= renderLanes);
|
|
4888
|
+
else {
|
|
4889
|
+
if (0 === (renderLanes & 1073741824))
|
|
4890
|
+
return (
|
|
4891
|
+
(current =
|
|
4892
|
+
null !== prevState
|
|
4893
|
+
? prevState.baseLanes | renderLanes
|
|
4894
|
+
: renderLanes),
|
|
4895
|
+
(workInProgress.lanes = workInProgress.childLanes = 1073741824),
|
|
4896
|
+
(workInProgress.memoizedState = {
|
|
4897
|
+
baseLanes: current,
|
|
4898
|
+
cachePool: null
|
|
4899
|
+
}),
|
|
4900
|
+
(workInProgress.updateQueue = null),
|
|
4901
|
+
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4902
|
+
(subtreeRenderLanes |= current),
|
|
4903
|
+
null
|
|
4876
4904
|
);
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
default:
|
|
4882
|
-
workInProgress.memoizedState = null;
|
|
4905
|
+
workInProgress.memoizedState = { baseLanes: 0, cachePool: null };
|
|
4906
|
+
prevState = null !== prevState ? prevState.baseLanes : renderLanes;
|
|
4907
|
+
push(subtreeRenderLanesCursor, subtreeRenderLanes);
|
|
4908
|
+
subtreeRenderLanes |= prevState;
|
|
4883
4909
|
}
|
|
4910
|
+
else
|
|
4911
|
+
null !== prevState
|
|
4912
|
+
? ((prevState = prevState.baseLanes | renderLanes),
|
|
4913
|
+
(workInProgress.memoizedState = null))
|
|
4914
|
+
: (prevState = renderLanes),
|
|
4915
|
+
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
4916
|
+
(subtreeRenderLanes |= prevState);
|
|
4917
|
+
if (enablePersistentOffscreenHostContainer)
|
|
4918
|
+
return reconcileOffscreenHostContainer(
|
|
4919
|
+
current,
|
|
4920
|
+
workInProgress,
|
|
4921
|
+
"hidden" === nextProps.mode && 23 !== workInProgress.tag,
|
|
4922
|
+
nextChildren,
|
|
4923
|
+
renderLanes
|
|
4924
|
+
);
|
|
4925
|
+
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
4884
4926
|
return workInProgress.child;
|
|
4885
4927
|
}
|
|
4886
|
-
function
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4928
|
+
function reconcileOffscreenHostContainer(
|
|
4929
|
+
currentOffscreen,
|
|
4930
|
+
offscreen,
|
|
4931
|
+
isHidden,
|
|
4932
|
+
children,
|
|
4933
|
+
renderLanes
|
|
4934
|
+
) {
|
|
4935
|
+
isHidden = getOffscreenContainerProps(
|
|
4936
|
+
isHidden ? "hidden" : "visible",
|
|
4937
|
+
children
|
|
4938
|
+
);
|
|
4939
|
+
null === currentOffscreen
|
|
4940
|
+
? (renderLanes = createOffscreenHostContainerFiber(
|
|
4941
|
+
isHidden,
|
|
4942
|
+
offscreen.mode,
|
|
4943
|
+
renderLanes,
|
|
4944
|
+
null
|
|
4945
|
+
))
|
|
4946
|
+
: ((currentOffscreen = currentOffscreen.child),
|
|
4947
|
+
null === currentOffscreen
|
|
4948
|
+
? ((renderLanes = createOffscreenHostContainerFiber(
|
|
4949
|
+
isHidden,
|
|
4950
|
+
offscreen.mode,
|
|
4951
|
+
renderLanes,
|
|
4952
|
+
null
|
|
4953
|
+
)),
|
|
4954
|
+
(renderLanes.flags |= 2))
|
|
4955
|
+
: (renderLanes = createWorkInProgress(currentOffscreen, isHidden)));
|
|
4956
|
+
renderLanes.return = offscreen;
|
|
4957
|
+
return (offscreen.child = renderLanes);
|
|
4958
|
+
}
|
|
4959
|
+
function markRef$1(current, workInProgress) {
|
|
4960
|
+
var ref = workInProgress.ref;
|
|
4961
|
+
if (
|
|
4962
|
+
(null === current && null !== ref) ||
|
|
4963
|
+
(null !== current && current.ref !== ref)
|
|
4964
|
+
)
|
|
4965
|
+
workInProgress.flags |= 256;
|
|
4966
|
+
}
|
|
4967
|
+
function updateFunctionComponent(
|
|
4968
|
+
current,
|
|
4969
|
+
workInProgress,
|
|
4970
|
+
Component,
|
|
4971
|
+
nextProps,
|
|
4972
|
+
renderLanes
|
|
4973
|
+
) {
|
|
4974
|
+
var context = isContextProvider(Component)
|
|
4975
|
+
? previousContext
|
|
4976
|
+
: contextStackCursor.current;
|
|
4977
|
+
context = getMaskedContext(workInProgress, context);
|
|
4978
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4979
|
+
Component = renderWithHooks(
|
|
4980
|
+
current,
|
|
4981
|
+
workInProgress,
|
|
4982
|
+
Component,
|
|
4983
|
+
nextProps,
|
|
4984
|
+
context,
|
|
4985
|
+
renderLanes
|
|
4986
|
+
);
|
|
4987
|
+
if (null !== current && !didReceiveUpdate)
|
|
4988
|
+
return (
|
|
4989
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4990
|
+
(workInProgress.flags &= -1029),
|
|
4991
|
+
(current.lanes &= ~renderLanes),
|
|
4992
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4993
|
+
);
|
|
4994
|
+
workInProgress.flags |= 1;
|
|
4995
|
+
reconcileChildren(current, workInProgress, Component, renderLanes);
|
|
4905
4996
|
return workInProgress.child;
|
|
4906
4997
|
}
|
|
4907
|
-
function
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4998
|
+
function updateClassComponent(
|
|
4999
|
+
current,
|
|
5000
|
+
workInProgress,
|
|
5001
|
+
Component,
|
|
5002
|
+
nextProps,
|
|
5003
|
+
renderLanes
|
|
5004
|
+
) {
|
|
5005
|
+
if (isContextProvider(Component)) {
|
|
5006
|
+
var hasContext = !0;
|
|
5007
|
+
pushContextProvider(workInProgress);
|
|
5008
|
+
} else hasContext = !1;
|
|
5009
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
5010
|
+
if (null === workInProgress.stateNode)
|
|
5011
|
+
null !== current &&
|
|
5012
|
+
((current.alternate = null),
|
|
5013
|
+
(workInProgress.alternate = null),
|
|
5014
|
+
(workInProgress.flags |= 2)),
|
|
5015
|
+
constructClassInstance(workInProgress, Component, nextProps),
|
|
5016
|
+
mountClassInstance(workInProgress, Component, nextProps, renderLanes),
|
|
5017
|
+
(nextProps = !0);
|
|
5018
|
+
else if (null === current) {
|
|
5019
|
+
var instance = workInProgress.stateNode,
|
|
5020
|
+
oldProps = workInProgress.memoizedProps;
|
|
5021
|
+
instance.props = oldProps;
|
|
5022
|
+
var oldContext = instance.context,
|
|
5023
|
+
contextType = Component.contextType;
|
|
5024
|
+
"object" === typeof contextType && null !== contextType
|
|
5025
|
+
? (contextType = readContext(contextType))
|
|
5026
|
+
: ((contextType = isContextProvider(Component)
|
|
5027
|
+
? previousContext
|
|
5028
|
+
: contextStackCursor.current),
|
|
5029
|
+
(contextType = getMaskedContext(workInProgress, contextType)));
|
|
5030
|
+
var getDerivedStateFromProps = Component.getDerivedStateFromProps,
|
|
5031
|
+
hasNewLifecycles =
|
|
5032
|
+
"function" === typeof getDerivedStateFromProps ||
|
|
5033
|
+
"function" === typeof instance.getSnapshotBeforeUpdate;
|
|
5034
|
+
hasNewLifecycles ||
|
|
5035
|
+
("function" !== typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
5036
|
+
"function" !== typeof instance.componentWillReceiveProps) ||
|
|
5037
|
+
((oldProps !== nextProps || oldContext !== contextType) &&
|
|
5038
|
+
callComponentWillReceiveProps(
|
|
5039
|
+
workInProgress,
|
|
5040
|
+
instance,
|
|
5041
|
+
nextProps,
|
|
5042
|
+
contextType
|
|
5043
|
+
));
|
|
5044
|
+
hasForceUpdate = !1;
|
|
5045
|
+
var oldState = workInProgress.memoizedState;
|
|
5046
|
+
instance.state = oldState;
|
|
5047
|
+
processUpdateQueue(workInProgress, nextProps, instance, renderLanes);
|
|
5048
|
+
oldContext = workInProgress.memoizedState;
|
|
5049
|
+
oldProps !== nextProps ||
|
|
5050
|
+
oldState !== oldContext ||
|
|
5051
|
+
didPerformWorkStackCursor.current ||
|
|
5052
|
+
hasForceUpdate
|
|
5053
|
+
? ("function" === typeof getDerivedStateFromProps &&
|
|
5054
|
+
(applyDerivedStateFromProps(
|
|
5055
|
+
workInProgress,
|
|
5056
|
+
Component,
|
|
5057
|
+
getDerivedStateFromProps,
|
|
5058
|
+
nextProps
|
|
5059
|
+
),
|
|
5060
|
+
(oldContext = workInProgress.memoizedState)),
|
|
5061
|
+
(oldProps =
|
|
5062
|
+
hasForceUpdate ||
|
|
5063
|
+
checkShouldComponentUpdate(
|
|
5064
|
+
workInProgress,
|
|
5065
|
+
Component,
|
|
5066
|
+
oldProps,
|
|
5067
|
+
nextProps,
|
|
5068
|
+
oldState,
|
|
5069
|
+
oldContext,
|
|
5070
|
+
contextType
|
|
5071
|
+
))
|
|
5072
|
+
? (hasNewLifecycles ||
|
|
5073
|
+
("function" !== typeof instance.UNSAFE_componentWillMount &&
|
|
5074
|
+
"function" !== typeof instance.componentWillMount) ||
|
|
5075
|
+
("function" === typeof instance.componentWillMount &&
|
|
5076
|
+
instance.componentWillMount(),
|
|
5077
|
+
"function" === typeof instance.UNSAFE_componentWillMount &&
|
|
5078
|
+
instance.UNSAFE_componentWillMount()),
|
|
5079
|
+
"function" === typeof instance.componentDidMount &&
|
|
5080
|
+
(workInProgress.flags |= 4))
|
|
5081
|
+
: ("function" === typeof instance.componentDidMount &&
|
|
5082
|
+
(workInProgress.flags |= 4),
|
|
5083
|
+
(workInProgress.memoizedProps = nextProps),
|
|
5084
|
+
(workInProgress.memoizedState = oldContext)),
|
|
5085
|
+
(instance.props = nextProps),
|
|
5086
|
+
(instance.state = oldContext),
|
|
5087
|
+
(instance.context = contextType),
|
|
5088
|
+
(nextProps = oldProps))
|
|
5089
|
+
: ("function" === typeof instance.componentDidMount &&
|
|
5090
|
+
(workInProgress.flags |= 4),
|
|
5091
|
+
(nextProps = !1));
|
|
5092
|
+
} else {
|
|
5093
|
+
instance = workInProgress.stateNode;
|
|
5094
|
+
cloneUpdateQueue(current, workInProgress);
|
|
5095
|
+
oldProps = workInProgress.memoizedProps;
|
|
5096
|
+
contextType =
|
|
5097
|
+
workInProgress.type === workInProgress.elementType
|
|
5098
|
+
? oldProps
|
|
5099
|
+
: resolveDefaultProps(workInProgress.type, oldProps);
|
|
5100
|
+
instance.props = contextType;
|
|
5101
|
+
hasNewLifecycles = workInProgress.pendingProps;
|
|
5102
|
+
oldState = instance.context;
|
|
5103
|
+
oldContext = Component.contextType;
|
|
5104
|
+
"object" === typeof oldContext && null !== oldContext
|
|
5105
|
+
? (oldContext = readContext(oldContext))
|
|
5106
|
+
: ((oldContext = isContextProvider(Component)
|
|
5107
|
+
? previousContext
|
|
5108
|
+
: contextStackCursor.current),
|
|
5109
|
+
(oldContext = getMaskedContext(workInProgress, oldContext)));
|
|
5110
|
+
var getDerivedStateFromProps$jscomp$0 = Component.getDerivedStateFromProps;
|
|
5111
|
+
(getDerivedStateFromProps =
|
|
5112
|
+
"function" === typeof getDerivedStateFromProps$jscomp$0 ||
|
|
5113
|
+
"function" === typeof instance.getSnapshotBeforeUpdate) ||
|
|
5114
|
+
("function" !== typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
5115
|
+
"function" !== typeof instance.componentWillReceiveProps) ||
|
|
5116
|
+
((oldProps !== hasNewLifecycles || oldState !== oldContext) &&
|
|
5117
|
+
callComponentWillReceiveProps(
|
|
5118
|
+
workInProgress,
|
|
5119
|
+
instance,
|
|
5120
|
+
nextProps,
|
|
5121
|
+
oldContext
|
|
5122
|
+
));
|
|
5123
|
+
hasForceUpdate = !1;
|
|
5124
|
+
oldState = workInProgress.memoizedState;
|
|
5125
|
+
instance.state = oldState;
|
|
5126
|
+
processUpdateQueue(workInProgress, nextProps, instance, renderLanes);
|
|
5127
|
+
var newState = workInProgress.memoizedState;
|
|
5128
|
+
oldProps !== hasNewLifecycles ||
|
|
5129
|
+
oldState !== newState ||
|
|
5130
|
+
didPerformWorkStackCursor.current ||
|
|
5131
|
+
hasForceUpdate
|
|
5132
|
+
? ("function" === typeof getDerivedStateFromProps$jscomp$0 &&
|
|
5133
|
+
(applyDerivedStateFromProps(
|
|
5134
|
+
workInProgress,
|
|
5135
|
+
Component,
|
|
5136
|
+
getDerivedStateFromProps$jscomp$0,
|
|
5137
|
+
nextProps
|
|
5138
|
+
),
|
|
5139
|
+
(newState = workInProgress.memoizedState)),
|
|
5140
|
+
(contextType =
|
|
5141
|
+
hasForceUpdate ||
|
|
5142
|
+
checkShouldComponentUpdate(
|
|
5143
|
+
workInProgress,
|
|
5144
|
+
Component,
|
|
5145
|
+
contextType,
|
|
5146
|
+
nextProps,
|
|
5147
|
+
oldState,
|
|
5148
|
+
newState,
|
|
5149
|
+
oldContext
|
|
5150
|
+
) ||
|
|
5151
|
+
!1)
|
|
5152
|
+
? (getDerivedStateFromProps ||
|
|
5153
|
+
("function" !== typeof instance.UNSAFE_componentWillUpdate &&
|
|
5154
|
+
"function" !== typeof instance.componentWillUpdate) ||
|
|
5155
|
+
("function" === typeof instance.componentWillUpdate &&
|
|
5156
|
+
instance.componentWillUpdate(nextProps, newState, oldContext),
|
|
5157
|
+
"function" === typeof instance.UNSAFE_componentWillUpdate &&
|
|
5158
|
+
instance.UNSAFE_componentWillUpdate(
|
|
5159
|
+
nextProps,
|
|
5160
|
+
newState,
|
|
5161
|
+
oldContext
|
|
5162
|
+
)),
|
|
5163
|
+
"function" === typeof instance.componentDidUpdate &&
|
|
5164
|
+
(workInProgress.flags |= 4),
|
|
5165
|
+
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
5166
|
+
(workInProgress.flags |= 512))
|
|
5167
|
+
: ("function" !== typeof instance.componentDidUpdate ||
|
|
5168
|
+
(oldProps === current.memoizedProps &&
|
|
5169
|
+
oldState === current.memoizedState) ||
|
|
5170
|
+
(workInProgress.flags |= 4),
|
|
5171
|
+
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5172
|
+
(oldProps === current.memoizedProps &&
|
|
5173
|
+
oldState === current.memoizedState) ||
|
|
5174
|
+
(workInProgress.flags |= 512),
|
|
5175
|
+
(workInProgress.memoizedProps = nextProps),
|
|
5176
|
+
(workInProgress.memoizedState = newState)),
|
|
5177
|
+
(instance.props = nextProps),
|
|
5178
|
+
(instance.state = newState),
|
|
5179
|
+
(instance.context = oldContext),
|
|
5180
|
+
(nextProps = contextType))
|
|
5181
|
+
: ("function" !== typeof instance.componentDidUpdate ||
|
|
5182
|
+
(oldProps === current.memoizedProps &&
|
|
5183
|
+
oldState === current.memoizedState) ||
|
|
5184
|
+
(workInProgress.flags |= 4),
|
|
5185
|
+
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5186
|
+
(oldProps === current.memoizedProps &&
|
|
5187
|
+
oldState === current.memoizedState) ||
|
|
5188
|
+
(workInProgress.flags |= 512),
|
|
5189
|
+
(nextProps = !1));
|
|
4914
5190
|
}
|
|
4915
|
-
return
|
|
5191
|
+
return finishClassComponent(
|
|
5192
|
+
current,
|
|
5193
|
+
workInProgress,
|
|
5194
|
+
Component,
|
|
5195
|
+
nextProps,
|
|
5196
|
+
hasContext,
|
|
5197
|
+
renderLanes
|
|
5198
|
+
);
|
|
4916
5199
|
}
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
updateHostComponent$1,
|
|
4920
|
-
updateHostText$1;
|
|
4921
|
-
appendAllChildren = function(
|
|
4922
|
-
parent,
|
|
4923
|
-
workInProgress,
|
|
4924
|
-
needsVisibilityToggle,
|
|
4925
|
-
isHidden
|
|
4926
|
-
) {
|
|
4927
|
-
for (var node = workInProgress.child; null !== node; ) {
|
|
4928
|
-
if (5 === node.tag) {
|
|
4929
|
-
var instance = node.stateNode;
|
|
4930
|
-
needsVisibilityToggle &&
|
|
4931
|
-
isHidden &&
|
|
4932
|
-
(instance = cloneHiddenInstance(instance));
|
|
4933
|
-
appendChildNode(parent.node, instance.node);
|
|
4934
|
-
} else if (6 === node.tag) {
|
|
4935
|
-
instance = node.stateNode;
|
|
4936
|
-
if (needsVisibilityToggle && isHidden)
|
|
4937
|
-
throw Error("Not yet implemented.");
|
|
4938
|
-
appendChildNode(parent.node, instance.node);
|
|
4939
|
-
} else if (4 !== node.tag) {
|
|
4940
|
-
if (
|
|
4941
|
-
13 === node.tag &&
|
|
4942
|
-
0 !== (node.flags & 4) &&
|
|
4943
|
-
(instance = null !== node.memoizedState)
|
|
4944
|
-
) {
|
|
4945
|
-
var primaryChildParent = node.child;
|
|
4946
|
-
if (
|
|
4947
|
-
null !== primaryChildParent &&
|
|
4948
|
-
(null !== primaryChildParent.child &&
|
|
4949
|
-
((primaryChildParent.child.return = primaryChildParent),
|
|
4950
|
-
appendAllChildren(parent, primaryChildParent, !0, instance)),
|
|
4951
|
-
(instance = primaryChildParent.sibling),
|
|
4952
|
-
null !== instance)
|
|
4953
|
-
) {
|
|
4954
|
-
instance.return = node;
|
|
4955
|
-
node = instance;
|
|
4956
|
-
continue;
|
|
4957
|
-
}
|
|
4958
|
-
}
|
|
4959
|
-
if (null !== node.child) {
|
|
4960
|
-
node.child.return = node;
|
|
4961
|
-
node = node.child;
|
|
4962
|
-
continue;
|
|
4963
|
-
}
|
|
4964
|
-
}
|
|
4965
|
-
if (node === workInProgress) break;
|
|
4966
|
-
for (; null === node.sibling; ) {
|
|
4967
|
-
if (null === node.return || node.return === workInProgress) return;
|
|
4968
|
-
node = node.return;
|
|
4969
|
-
}
|
|
4970
|
-
node.sibling.return = node.return;
|
|
4971
|
-
node = node.sibling;
|
|
4972
|
-
}
|
|
4973
|
-
};
|
|
4974
|
-
function appendAllChildrenToContainer(
|
|
4975
|
-
containerChildSet,
|
|
5200
|
+
function finishClassComponent(
|
|
5201
|
+
current,
|
|
4976
5202
|
workInProgress,
|
|
4977
|
-
|
|
4978
|
-
|
|
5203
|
+
Component,
|
|
5204
|
+
shouldUpdate,
|
|
5205
|
+
hasContext,
|
|
5206
|
+
renderLanes
|
|
4979
5207
|
) {
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
var primaryChildParent = node.child;
|
|
4999
|
-
if (
|
|
5000
|
-
null !== primaryChildParent &&
|
|
5001
|
-
(null !== primaryChildParent.child &&
|
|
5002
|
-
((primaryChildParent.child.return = primaryChildParent),
|
|
5003
|
-
appendAllChildrenToContainer(
|
|
5004
|
-
containerChildSet,
|
|
5005
|
-
primaryChildParent,
|
|
5006
|
-
!0,
|
|
5007
|
-
instance
|
|
5008
|
-
)),
|
|
5009
|
-
(instance = primaryChildParent.sibling),
|
|
5010
|
-
null !== instance)
|
|
5011
|
-
) {
|
|
5012
|
-
instance.return = node;
|
|
5013
|
-
node = instance;
|
|
5014
|
-
continue;
|
|
5015
|
-
}
|
|
5016
|
-
}
|
|
5017
|
-
if (null !== node.child) {
|
|
5018
|
-
node.child.return = node;
|
|
5019
|
-
node = node.child;
|
|
5020
|
-
continue;
|
|
5021
|
-
}
|
|
5022
|
-
}
|
|
5023
|
-
if (node === workInProgress) break;
|
|
5024
|
-
for (; null === node.sibling; ) {
|
|
5025
|
-
if (null === node.return || node.return === workInProgress) return;
|
|
5026
|
-
node = node.return;
|
|
5027
|
-
}
|
|
5028
|
-
node.sibling.return = node.return;
|
|
5029
|
-
node = node.sibling;
|
|
5030
|
-
}
|
|
5031
|
-
}
|
|
5032
|
-
updateHostContainer = function(current, workInProgress) {
|
|
5033
|
-
var portalOrRoot = workInProgress.stateNode;
|
|
5034
|
-
if (!hadNoMutationsEffects(current, workInProgress)) {
|
|
5035
|
-
current = portalOrRoot.containerInfo;
|
|
5036
|
-
var newChildSet = createChildNodeSet(current);
|
|
5037
|
-
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
5038
|
-
portalOrRoot.pendingChildren = newChildSet;
|
|
5039
|
-
workInProgress.flags |= 4;
|
|
5040
|
-
completeRoot(current, newChildSet);
|
|
5041
|
-
}
|
|
5042
|
-
};
|
|
5043
|
-
updateHostComponent$1 = function(current, workInProgress, type, newProps) {
|
|
5044
|
-
type = current.stateNode;
|
|
5045
|
-
var oldProps = current.memoizedProps;
|
|
5046
|
-
if (
|
|
5047
|
-
(current = hadNoMutationsEffects(current, workInProgress)) &&
|
|
5048
|
-
oldProps === newProps
|
|
5049
|
-
)
|
|
5050
|
-
workInProgress.stateNode = type;
|
|
5051
|
-
else {
|
|
5052
|
-
var recyclableInstance = workInProgress.stateNode;
|
|
5053
|
-
requiredContext(contextStackCursor$1.current);
|
|
5054
|
-
var updatePayload = null;
|
|
5055
|
-
oldProps !== newProps &&
|
|
5056
|
-
((oldProps = diffProperties(
|
|
5208
|
+
markRef$1(current, workInProgress);
|
|
5209
|
+
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
5210
|
+
if (!shouldUpdate && !didCaptureError)
|
|
5211
|
+
return (
|
|
5212
|
+
hasContext && invalidateContextProvider(workInProgress, Component, !1),
|
|
5213
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
5214
|
+
);
|
|
5215
|
+
shouldUpdate = workInProgress.stateNode;
|
|
5216
|
+
ReactCurrentOwner$1.current = workInProgress;
|
|
5217
|
+
var nextChildren =
|
|
5218
|
+
didCaptureError && "function" !== typeof Component.getDerivedStateFromError
|
|
5219
|
+
? null
|
|
5220
|
+
: shouldUpdate.render();
|
|
5221
|
+
workInProgress.flags |= 1;
|
|
5222
|
+
null !== current && didCaptureError
|
|
5223
|
+
? ((workInProgress.child = reconcileChildFibers(
|
|
5224
|
+
workInProgress,
|
|
5225
|
+
current.child,
|
|
5057
5226
|
null,
|
|
5058
|
-
|
|
5059
|
-
newProps,
|
|
5060
|
-
recyclableInstance.canonical.viewConfig.validAttributes
|
|
5227
|
+
renderLanes
|
|
5061
5228
|
)),
|
|
5062
|
-
(
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5229
|
+
(workInProgress.child = reconcileChildFibers(
|
|
5230
|
+
workInProgress,
|
|
5231
|
+
null,
|
|
5232
|
+
nextChildren,
|
|
5233
|
+
renderLanes
|
|
5234
|
+
)))
|
|
5235
|
+
: reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
5236
|
+
workInProgress.memoizedState = shouldUpdate.state;
|
|
5237
|
+
hasContext && invalidateContextProvider(workInProgress, Component, !0);
|
|
5238
|
+
return workInProgress.child;
|
|
5239
|
+
}
|
|
5240
|
+
function pushHostRootContext(workInProgress) {
|
|
5241
|
+
var root = workInProgress.stateNode;
|
|
5242
|
+
root.pendingContext
|
|
5243
|
+
? pushTopLevelContextObject(
|
|
5244
|
+
workInProgress,
|
|
5245
|
+
root.pendingContext,
|
|
5246
|
+
root.pendingContext !== root.context
|
|
5247
|
+
)
|
|
5248
|
+
: root.context &&
|
|
5249
|
+
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
5250
|
+
pushHostContainer(workInProgress, root.containerInfo);
|
|
5251
|
+
}
|
|
5252
|
+
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5253
|
+
function mountSuspenseOffscreenState(renderLanes) {
|
|
5254
|
+
return { baseLanes: renderLanes, cachePool: null };
|
|
5255
|
+
}
|
|
5256
|
+
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
5257
|
+
var nextProps = workInProgress.pendingProps,
|
|
5258
|
+
suspenseContext = suspenseStackCursor.current,
|
|
5259
|
+
showFallback = !1,
|
|
5260
|
+
JSCompiler_temp;
|
|
5261
|
+
(JSCompiler_temp = 0 !== (workInProgress.flags & 128)) ||
|
|
5262
|
+
(JSCompiler_temp =
|
|
5263
|
+
null !== current && null === current.memoizedState
|
|
5264
|
+
? !1
|
|
5265
|
+
: 0 !== (suspenseContext & 2));
|
|
5266
|
+
JSCompiler_temp
|
|
5267
|
+
? ((showFallback = !0), (workInProgress.flags &= -129))
|
|
5268
|
+
: (null !== current && null === current.memoizedState) ||
|
|
5269
|
+
!0 === nextProps.unstable_avoidThisFallback ||
|
|
5270
|
+
(suspenseContext |= 1);
|
|
5271
|
+
push(suspenseStackCursor, suspenseContext & 1);
|
|
5272
|
+
if (null === current) {
|
|
5273
|
+
current = nextProps.children;
|
|
5274
|
+
suspenseContext = nextProps.fallback;
|
|
5275
|
+
if (showFallback)
|
|
5276
|
+
return (
|
|
5277
|
+
(current = mountSuspenseFallbackChildren(
|
|
5278
|
+
workInProgress,
|
|
5279
|
+
current,
|
|
5280
|
+
suspenseContext,
|
|
5281
|
+
renderLanes
|
|
5282
|
+
)),
|
|
5283
|
+
(workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
5284
|
+
renderLanes
|
|
5285
|
+
)),
|
|
5286
|
+
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5079
5287
|
current
|
|
5080
|
-
|
|
5081
|
-
|
|
5288
|
+
);
|
|
5289
|
+
if ("number" === typeof nextProps.unstable_expectedLoadTime)
|
|
5290
|
+
return (
|
|
5291
|
+
(current = mountSuspenseFallbackChildren(
|
|
5292
|
+
workInProgress,
|
|
5293
|
+
current,
|
|
5294
|
+
suspenseContext,
|
|
5295
|
+
renderLanes
|
|
5296
|
+
)),
|
|
5297
|
+
(workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
5298
|
+
renderLanes
|
|
5299
|
+
)),
|
|
5300
|
+
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5301
|
+
(workInProgress.lanes = 4194304),
|
|
5302
|
+
current
|
|
5303
|
+
);
|
|
5304
|
+
renderLanes = createFiberFromOffscreen(
|
|
5305
|
+
{ mode: "visible", children: current },
|
|
5306
|
+
workInProgress.mode,
|
|
5307
|
+
0,
|
|
5308
|
+
null
|
|
5309
|
+
);
|
|
5310
|
+
renderLanes.return = workInProgress;
|
|
5311
|
+
return (workInProgress.child = renderLanes);
|
|
5082
5312
|
}
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5313
|
+
if (null !== current.memoizedState) {
|
|
5314
|
+
if (showFallback)
|
|
5315
|
+
return (
|
|
5316
|
+
(nextProps = updateSuspenseFallbackChildren(
|
|
5317
|
+
current,
|
|
5318
|
+
workInProgress,
|
|
5319
|
+
nextProps.children,
|
|
5320
|
+
nextProps.fallback,
|
|
5321
|
+
renderLanes
|
|
5322
|
+
)),
|
|
5323
|
+
(showFallback = workInProgress.child),
|
|
5324
|
+
(suspenseContext = current.child.memoizedState),
|
|
5325
|
+
(showFallback.memoizedState =
|
|
5326
|
+
null === suspenseContext
|
|
5327
|
+
? mountSuspenseOffscreenState(renderLanes)
|
|
5328
|
+
: {
|
|
5329
|
+
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
5330
|
+
cachePool: null
|
|
5331
|
+
}),
|
|
5332
|
+
(showFallback.childLanes = current.childLanes & ~renderLanes),
|
|
5333
|
+
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5334
|
+
nextProps
|
|
5335
|
+
);
|
|
5336
|
+
renderLanes = updateSuspensePrimaryChildren(
|
|
5337
|
+
current,
|
|
5338
|
+
workInProgress,
|
|
5339
|
+
nextProps.children,
|
|
5340
|
+
renderLanes
|
|
5341
|
+
);
|
|
5342
|
+
workInProgress.memoizedState = null;
|
|
5343
|
+
return renderLanes;
|
|
5344
|
+
}
|
|
5345
|
+
if (showFallback)
|
|
5346
|
+
return (
|
|
5347
|
+
(nextProps = updateSuspenseFallbackChildren(
|
|
5090
5348
|
current,
|
|
5091
|
-
|
|
5092
|
-
|
|
5349
|
+
workInProgress,
|
|
5350
|
+
nextProps.children,
|
|
5351
|
+
nextProps.fallback,
|
|
5352
|
+
renderLanes
|
|
5093
5353
|
)),
|
|
5094
|
-
(workInProgress.
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
? hasRenderedATailFallback || null === renderState.tail
|
|
5116
|
-
? (renderState.tail = null)
|
|
5117
|
-
: (renderState.tail.sibling = null)
|
|
5118
|
-
: (lastTailNode$69.sibling = null);
|
|
5119
|
-
}
|
|
5120
|
-
}
|
|
5121
|
-
function bubbleProperties(completedWork) {
|
|
5122
|
-
var didBailout =
|
|
5123
|
-
null !== completedWork.alternate &&
|
|
5124
|
-
completedWork.alternate.child === completedWork.child,
|
|
5125
|
-
newChildLanes = 0,
|
|
5126
|
-
subtreeFlags = 0;
|
|
5127
|
-
if (didBailout)
|
|
5128
|
-
for (var child$70 = completedWork.child; null !== child$70; )
|
|
5129
|
-
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
|
5130
|
-
(subtreeFlags |= child$70.subtreeFlags & 1835008),
|
|
5131
|
-
(subtreeFlags |= child$70.flags & 1835008),
|
|
5132
|
-
(child$70.return = completedWork),
|
|
5133
|
-
(child$70 = child$70.sibling);
|
|
5134
|
-
else
|
|
5135
|
-
for (child$70 = completedWork.child; null !== child$70; )
|
|
5136
|
-
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
|
5137
|
-
(subtreeFlags |= child$70.subtreeFlags),
|
|
5138
|
-
(subtreeFlags |= child$70.flags),
|
|
5139
|
-
(child$70.return = completedWork),
|
|
5140
|
-
(child$70 = child$70.sibling);
|
|
5141
|
-
completedWork.subtreeFlags |= subtreeFlags;
|
|
5142
|
-
completedWork.childLanes = newChildLanes;
|
|
5143
|
-
return didBailout;
|
|
5354
|
+
(showFallback = workInProgress.child),
|
|
5355
|
+
(suspenseContext = current.child.memoizedState),
|
|
5356
|
+
(showFallback.memoizedState =
|
|
5357
|
+
null === suspenseContext
|
|
5358
|
+
? mountSuspenseOffscreenState(renderLanes)
|
|
5359
|
+
: {
|
|
5360
|
+
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
5361
|
+
cachePool: null
|
|
5362
|
+
}),
|
|
5363
|
+
(showFallback.childLanes = current.childLanes & ~renderLanes),
|
|
5364
|
+
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5365
|
+
nextProps
|
|
5366
|
+
);
|
|
5367
|
+
renderLanes = updateSuspensePrimaryChildren(
|
|
5368
|
+
current,
|
|
5369
|
+
workInProgress,
|
|
5370
|
+
nextProps.children,
|
|
5371
|
+
renderLanes
|
|
5372
|
+
);
|
|
5373
|
+
workInProgress.memoizedState = null;
|
|
5374
|
+
return renderLanes;
|
|
5144
5375
|
}
|
|
5145
|
-
function
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
5162
|
-
bubbleProperties(workInProgress),
|
|
5376
|
+
function mountSuspenseFallbackChildren(
|
|
5377
|
+
workInProgress,
|
|
5378
|
+
primaryChildren,
|
|
5379
|
+
fallbackChildren,
|
|
5380
|
+
renderLanes
|
|
5381
|
+
) {
|
|
5382
|
+
var mode = workInProgress.mode,
|
|
5383
|
+
progressedPrimaryFragment = workInProgress.child;
|
|
5384
|
+
primaryChildren = { mode: "hidden", children: primaryChildren };
|
|
5385
|
+
0 === (mode & 1) && null !== progressedPrimaryFragment
|
|
5386
|
+
? ((progressedPrimaryFragment.childLanes = 0),
|
|
5387
|
+
(progressedPrimaryFragment.pendingProps = primaryChildren))
|
|
5388
|
+
: (progressedPrimaryFragment = createFiberFromOffscreen(
|
|
5389
|
+
primaryChildren,
|
|
5390
|
+
mode,
|
|
5391
|
+
0,
|
|
5163
5392
|
null
|
|
5164
|
-
);
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5393
|
+
));
|
|
5394
|
+
fallbackChildren = createFiberFromFragment(
|
|
5395
|
+
fallbackChildren,
|
|
5396
|
+
mode,
|
|
5397
|
+
renderLanes,
|
|
5398
|
+
null
|
|
5399
|
+
);
|
|
5400
|
+
progressedPrimaryFragment.return = workInProgress;
|
|
5401
|
+
fallbackChildren.return = workInProgress;
|
|
5402
|
+
progressedPrimaryFragment.sibling = fallbackChildren;
|
|
5403
|
+
workInProgress.child = progressedPrimaryFragment;
|
|
5404
|
+
return fallbackChildren;
|
|
5405
|
+
}
|
|
5406
|
+
function updateSuspensePrimaryChildren(
|
|
5407
|
+
current,
|
|
5408
|
+
workInProgress,
|
|
5409
|
+
primaryChildren,
|
|
5410
|
+
renderLanes
|
|
5411
|
+
) {
|
|
5412
|
+
var currentPrimaryChildFragment = current.child;
|
|
5413
|
+
current = currentPrimaryChildFragment.sibling;
|
|
5414
|
+
primaryChildren = createWorkInProgress(currentPrimaryChildFragment, {
|
|
5415
|
+
mode: "visible",
|
|
5416
|
+
children: primaryChildren
|
|
5417
|
+
});
|
|
5418
|
+
0 === (workInProgress.mode & 1) && (primaryChildren.lanes = renderLanes);
|
|
5419
|
+
primaryChildren.return = workInProgress;
|
|
5420
|
+
primaryChildren.sibling = null;
|
|
5421
|
+
null !== current &&
|
|
5422
|
+
((renderLanes = workInProgress.deletions),
|
|
5423
|
+
null === renderLanes
|
|
5424
|
+
? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))
|
|
5425
|
+
: renderLanes.push(current));
|
|
5426
|
+
return (workInProgress.child = primaryChildren);
|
|
5427
|
+
}
|
|
5428
|
+
function updateSuspenseFallbackChildren(
|
|
5429
|
+
current,
|
|
5430
|
+
workInProgress,
|
|
5431
|
+
primaryChildren,
|
|
5432
|
+
fallbackChildren,
|
|
5433
|
+
renderLanes
|
|
5434
|
+
) {
|
|
5435
|
+
var mode = workInProgress.mode,
|
|
5436
|
+
currentPrimaryChildFragment = current.child,
|
|
5437
|
+
currentFallbackChildFragment = currentPrimaryChildFragment.sibling,
|
|
5438
|
+
primaryChildProps = { mode: "hidden", children: primaryChildren };
|
|
5439
|
+
0 === (mode & 1) && workInProgress.child !== currentPrimaryChildFragment
|
|
5440
|
+
? ((current = workInProgress.child),
|
|
5441
|
+
(current.childLanes = 0),
|
|
5442
|
+
(current.pendingProps = primaryChildProps),
|
|
5443
|
+
enablePersistentOffscreenHostContainer &&
|
|
5444
|
+
((currentPrimaryChildFragment = currentPrimaryChildFragment.child),
|
|
5445
|
+
(primaryChildProps = current.child),
|
|
5446
|
+
(primaryChildren = getOffscreenContainerProps(
|
|
5447
|
+
"hidden",
|
|
5448
|
+
primaryChildren
|
|
5449
|
+
)),
|
|
5450
|
+
(primaryChildProps.pendingProps = primaryChildren),
|
|
5451
|
+
(primaryChildProps.memoizedProps = primaryChildren),
|
|
5452
|
+
completeSuspendedOffscreenHostContainer(
|
|
5453
|
+
currentPrimaryChildFragment,
|
|
5454
|
+
primaryChildProps
|
|
5455
|
+
)),
|
|
5456
|
+
(workInProgress.deletions = null))
|
|
5457
|
+
: ((current = createWorkInProgress(
|
|
5458
|
+
currentPrimaryChildFragment,
|
|
5459
|
+
primaryChildProps
|
|
5460
|
+
)),
|
|
5461
|
+
enablePersistentOffscreenHostContainer &&
|
|
5462
|
+
((primaryChildProps = currentPrimaryChildFragment.child),
|
|
5463
|
+
null !== primaryChildProps &&
|
|
5464
|
+
((primaryChildren = reconcileOffscreenHostContainer(
|
|
5465
|
+
currentPrimaryChildFragment,
|
|
5466
|
+
current,
|
|
5467
|
+
!0,
|
|
5468
|
+
primaryChildren,
|
|
5469
|
+
renderLanes
|
|
5470
|
+
)),
|
|
5471
|
+
(primaryChildren.memoizedProps = primaryChildren.pendingProps),
|
|
5472
|
+
completeSuspendedOffscreenHostContainer(
|
|
5473
|
+
primaryChildProps,
|
|
5474
|
+
primaryChildren
|
|
5475
|
+
))),
|
|
5476
|
+
(current.subtreeFlags =
|
|
5477
|
+
currentPrimaryChildFragment.subtreeFlags & 3670016));
|
|
5478
|
+
null !== currentFallbackChildFragment
|
|
5479
|
+
? (fallbackChildren = createWorkInProgress(
|
|
5480
|
+
currentFallbackChildFragment,
|
|
5481
|
+
fallbackChildren
|
|
5482
|
+
))
|
|
5483
|
+
: ((fallbackChildren = createFiberFromFragment(
|
|
5484
|
+
fallbackChildren,
|
|
5485
|
+
mode,
|
|
5486
|
+
renderLanes,
|
|
5180
5487
|
null
|
|
5181
|
-
)
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5488
|
+
)),
|
|
5489
|
+
(fallbackChildren.flags |= 2));
|
|
5490
|
+
fallbackChildren.return = workInProgress;
|
|
5491
|
+
current.return = workInProgress;
|
|
5492
|
+
current.sibling = fallbackChildren;
|
|
5493
|
+
workInProgress.child = current;
|
|
5494
|
+
return fallbackChildren;
|
|
5495
|
+
}
|
|
5496
|
+
function scheduleWorkOnFiber(fiber, renderLanes) {
|
|
5497
|
+
fiber.lanes |= renderLanes;
|
|
5498
|
+
var alternate = fiber.alternate;
|
|
5499
|
+
null !== alternate && (alternate.lanes |= renderLanes);
|
|
5500
|
+
scheduleWorkOnParentPath(fiber.return, renderLanes);
|
|
5501
|
+
}
|
|
5502
|
+
function initSuspenseListRenderState(
|
|
5503
|
+
workInProgress,
|
|
5504
|
+
isBackwards,
|
|
5505
|
+
tail,
|
|
5506
|
+
lastContentRow,
|
|
5507
|
+
tailMode
|
|
5508
|
+
) {
|
|
5509
|
+
var renderState = workInProgress.memoizedState;
|
|
5510
|
+
null === renderState
|
|
5511
|
+
? (workInProgress.memoizedState = {
|
|
5512
|
+
isBackwards: isBackwards,
|
|
5513
|
+
rendering: null,
|
|
5514
|
+
renderingStartTime: 0,
|
|
5515
|
+
last: lastContentRow,
|
|
5516
|
+
tail: tail,
|
|
5517
|
+
tailMode: tailMode
|
|
5518
|
+
})
|
|
5519
|
+
: ((renderState.isBackwards = isBackwards),
|
|
5520
|
+
(renderState.rendering = null),
|
|
5521
|
+
(renderState.renderingStartTime = 0),
|
|
5522
|
+
(renderState.last = lastContentRow),
|
|
5523
|
+
(renderState.tail = tail),
|
|
5524
|
+
(renderState.tailMode = tailMode));
|
|
5525
|
+
}
|
|
5526
|
+
function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
5527
|
+
var nextProps = workInProgress.pendingProps,
|
|
5528
|
+
revealOrder = nextProps.revealOrder,
|
|
5529
|
+
tailMode = nextProps.tail;
|
|
5530
|
+
reconcileChildren(current, workInProgress, nextProps.children, renderLanes);
|
|
5531
|
+
nextProps = suspenseStackCursor.current;
|
|
5532
|
+
if (0 !== (nextProps & 2))
|
|
5533
|
+
(nextProps = (nextProps & 1) | 2), (workInProgress.flags |= 128);
|
|
5534
|
+
else {
|
|
5535
|
+
if (null !== current && 0 !== (current.flags & 128))
|
|
5536
|
+
a: for (current = workInProgress.child; null !== current; ) {
|
|
5537
|
+
if (13 === current.tag)
|
|
5538
|
+
null !== current.memoizedState &&
|
|
5539
|
+
scheduleWorkOnFiber(current, renderLanes);
|
|
5540
|
+
else if (19 === current.tag) scheduleWorkOnFiber(current, renderLanes);
|
|
5541
|
+
else if (null !== current.child) {
|
|
5542
|
+
current.child.return = current;
|
|
5543
|
+
current = current.child;
|
|
5544
|
+
continue;
|
|
5203
5545
|
}
|
|
5204
|
-
|
|
5205
|
-
current
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
type.validAttributes
|
|
5213
|
-
);
|
|
5214
|
-
renderLanes = createNode(
|
|
5215
|
-
current,
|
|
5216
|
-
type.uiViewClassName,
|
|
5217
|
-
renderLanes,
|
|
5218
|
-
updatePayload,
|
|
5219
|
-
workInProgress
|
|
5220
|
-
);
|
|
5221
|
-
current = new ReactFabricHostComponent(
|
|
5222
|
-
current,
|
|
5223
|
-
type,
|
|
5224
|
-
newProps,
|
|
5225
|
-
workInProgress
|
|
5226
|
-
);
|
|
5227
|
-
current = { node: renderLanes, canonical: current };
|
|
5228
|
-
appendAllChildren(current, workInProgress, !1, !1);
|
|
5229
|
-
workInProgress.stateNode = current;
|
|
5230
|
-
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
5546
|
+
if (current === workInProgress) break a;
|
|
5547
|
+
for (; null === current.sibling; ) {
|
|
5548
|
+
if (null === current.return || current.return === workInProgress)
|
|
5549
|
+
break a;
|
|
5550
|
+
current = current.return;
|
|
5551
|
+
}
|
|
5552
|
+
current.sibling.return = current.return;
|
|
5553
|
+
current = current.sibling;
|
|
5231
5554
|
}
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5555
|
+
nextProps &= 1;
|
|
5556
|
+
}
|
|
5557
|
+
push(suspenseStackCursor, nextProps);
|
|
5558
|
+
if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;
|
|
5559
|
+
else
|
|
5560
|
+
switch (revealOrder) {
|
|
5561
|
+
case "forwards":
|
|
5562
|
+
renderLanes = workInProgress.child;
|
|
5563
|
+
for (revealOrder = null; null !== renderLanes; )
|
|
5564
|
+
(current = renderLanes.alternate),
|
|
5565
|
+
null !== current &&
|
|
5566
|
+
null === findFirstSuspended(current) &&
|
|
5567
|
+
(revealOrder = renderLanes),
|
|
5568
|
+
(renderLanes = renderLanes.sibling);
|
|
5569
|
+
renderLanes = revealOrder;
|
|
5570
|
+
null === renderLanes
|
|
5571
|
+
? ((revealOrder = workInProgress.child),
|
|
5572
|
+
(workInProgress.child = null))
|
|
5573
|
+
: ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));
|
|
5574
|
+
initSuspenseListRenderState(
|
|
5238
5575
|
workInProgress,
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
);
|
|
5242
|
-
else {
|
|
5243
|
-
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
5244
|
-
throw Error(
|
|
5245
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5246
|
-
);
|
|
5247
|
-
current = requiredContext(rootInstanceStackCursor.current);
|
|
5248
|
-
renderLanes = requiredContext(contextStackCursor$1.current);
|
|
5249
|
-
workInProgress.stateNode = createTextInstance(
|
|
5250
|
-
newProps,
|
|
5251
|
-
current,
|
|
5576
|
+
!1,
|
|
5577
|
+
revealOrder,
|
|
5252
5578
|
renderLanes,
|
|
5253
|
-
|
|
5579
|
+
tailMode
|
|
5254
5580
|
);
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
5270
|
-
0 !== (suspenseStackCursor.current & 1)
|
|
5271
|
-
)
|
|
5272
|
-
0 === workInProgressRootExitStatus &&
|
|
5273
|
-
(workInProgressRootExitStatus = 3);
|
|
5274
|
-
else {
|
|
5275
|
-
if (
|
|
5276
|
-
0 === workInProgressRootExitStatus ||
|
|
5277
|
-
3 === workInProgressRootExitStatus
|
|
5278
|
-
)
|
|
5279
|
-
workInProgressRootExitStatus = 4;
|
|
5280
|
-
null === workInProgressRoot ||
|
|
5281
|
-
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
5282
|
-
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
5283
|
-
markRootSuspended$1(
|
|
5284
|
-
workInProgressRoot,
|
|
5285
|
-
workInProgressRootRenderLanes
|
|
5286
|
-
);
|
|
5287
|
-
}
|
|
5288
|
-
newProps && (workInProgress.flags |= 4);
|
|
5289
|
-
bubbleProperties(workInProgress);
|
|
5290
|
-
return null;
|
|
5291
|
-
case 4:
|
|
5292
|
-
return (
|
|
5293
|
-
popHostContainer(),
|
|
5294
|
-
updateHostContainer(current, workInProgress),
|
|
5295
|
-
bubbleProperties(workInProgress),
|
|
5296
|
-
null
|
|
5297
|
-
);
|
|
5298
|
-
case 10:
|
|
5299
|
-
return (
|
|
5300
|
-
popProvider(workInProgress.type._context),
|
|
5301
|
-
bubbleProperties(workInProgress),
|
|
5302
|
-
null
|
|
5303
|
-
);
|
|
5304
|
-
case 17:
|
|
5305
|
-
return (
|
|
5306
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
5307
|
-
bubbleProperties(workInProgress),
|
|
5308
|
-
null
|
|
5309
|
-
);
|
|
5310
|
-
case 19:
|
|
5311
|
-
pop(suspenseStackCursor);
|
|
5312
|
-
type = workInProgress.memoizedState;
|
|
5313
|
-
if (null === type) return bubbleProperties(workInProgress), null;
|
|
5314
|
-
newProps = 0 !== (workInProgress.flags & 128);
|
|
5315
|
-
updatePayload = type.rendering;
|
|
5316
|
-
if (null === updatePayload)
|
|
5317
|
-
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
5318
|
-
else {
|
|
5319
|
-
if (
|
|
5320
|
-
0 !== workInProgressRootExitStatus ||
|
|
5321
|
-
(null !== current && 0 !== (current.flags & 128))
|
|
5322
|
-
)
|
|
5323
|
-
for (current = workInProgress.child; null !== current; ) {
|
|
5324
|
-
updatePayload = findFirstSuspended(current);
|
|
5325
|
-
if (null !== updatePayload) {
|
|
5326
|
-
workInProgress.flags |= 128;
|
|
5327
|
-
cutOffTailIfNeeded(type, !1);
|
|
5328
|
-
current = updatePayload.updateQueue;
|
|
5329
|
-
null !== current &&
|
|
5330
|
-
((workInProgress.updateQueue = current),
|
|
5331
|
-
(workInProgress.flags |= 4));
|
|
5332
|
-
workInProgress.subtreeFlags = 0;
|
|
5333
|
-
current = renderLanes;
|
|
5334
|
-
for (newProps = workInProgress.child; null !== newProps; )
|
|
5335
|
-
(renderLanes = newProps),
|
|
5336
|
-
(type = current),
|
|
5337
|
-
(renderLanes.flags &= 1835010),
|
|
5338
|
-
(updatePayload = renderLanes.alternate),
|
|
5339
|
-
null === updatePayload
|
|
5340
|
-
? ((renderLanes.childLanes = 0),
|
|
5341
|
-
(renderLanes.lanes = type),
|
|
5342
|
-
(renderLanes.child = null),
|
|
5343
|
-
(renderLanes.subtreeFlags = 0),
|
|
5344
|
-
(renderLanes.memoizedProps = null),
|
|
5345
|
-
(renderLanes.memoizedState = null),
|
|
5346
|
-
(renderLanes.updateQueue = null),
|
|
5347
|
-
(renderLanes.dependencies = null),
|
|
5348
|
-
(renderLanes.stateNode = null))
|
|
5349
|
-
: ((renderLanes.childLanes = updatePayload.childLanes),
|
|
5350
|
-
(renderLanes.lanes = updatePayload.lanes),
|
|
5351
|
-
(renderLanes.child = updatePayload.child),
|
|
5352
|
-
(renderLanes.subtreeFlags = 0),
|
|
5353
|
-
(renderLanes.deletions = null),
|
|
5354
|
-
(renderLanes.memoizedProps =
|
|
5355
|
-
updatePayload.memoizedProps),
|
|
5356
|
-
(renderLanes.memoizedState =
|
|
5357
|
-
updatePayload.memoizedState),
|
|
5358
|
-
(renderLanes.updateQueue = updatePayload.updateQueue),
|
|
5359
|
-
(renderLanes.type = updatePayload.type),
|
|
5360
|
-
(type = updatePayload.dependencies),
|
|
5361
|
-
(renderLanes.dependencies =
|
|
5362
|
-
null === type
|
|
5363
|
-
? null
|
|
5364
|
-
: {
|
|
5365
|
-
lanes: type.lanes,
|
|
5366
|
-
firstContext: type.firstContext
|
|
5367
|
-
})),
|
|
5368
|
-
(newProps = newProps.sibling);
|
|
5369
|
-
push(
|
|
5370
|
-
suspenseStackCursor,
|
|
5371
|
-
(suspenseStackCursor.current & 1) | 2
|
|
5372
|
-
);
|
|
5373
|
-
return workInProgress.child;
|
|
5374
|
-
}
|
|
5375
|
-
current = current.sibling;
|
|
5376
|
-
}
|
|
5377
|
-
null !== type.tail &&
|
|
5378
|
-
now() > workInProgressRootRenderTargetTime &&
|
|
5379
|
-
((workInProgress.flags |= 128),
|
|
5380
|
-
(newProps = !0),
|
|
5381
|
-
cutOffTailIfNeeded(type, !1),
|
|
5382
|
-
(workInProgress.lanes = 4194304));
|
|
5581
|
+
break;
|
|
5582
|
+
case "backwards":
|
|
5583
|
+
renderLanes = null;
|
|
5584
|
+
revealOrder = workInProgress.child;
|
|
5585
|
+
for (workInProgress.child = null; null !== revealOrder; ) {
|
|
5586
|
+
current = revealOrder.alternate;
|
|
5587
|
+
if (null !== current && null === findFirstSuspended(current)) {
|
|
5588
|
+
workInProgress.child = revealOrder;
|
|
5589
|
+
break;
|
|
5590
|
+
}
|
|
5591
|
+
current = revealOrder.sibling;
|
|
5592
|
+
revealOrder.sibling = renderLanes;
|
|
5593
|
+
renderLanes = revealOrder;
|
|
5594
|
+
revealOrder = current;
|
|
5383
5595
|
}
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
((workInProgress.flags |= 128),
|
|
5391
|
-
(newProps = !0),
|
|
5392
|
-
(current = current.updateQueue),
|
|
5393
|
-
null !== current &&
|
|
5394
|
-
((workInProgress.updateQueue = current),
|
|
5395
|
-
(workInProgress.flags |= 4)),
|
|
5396
|
-
cutOffTailIfNeeded(type, !0),
|
|
5397
|
-
null === type.tail &&
|
|
5398
|
-
"hidden" === type.tailMode &&
|
|
5399
|
-
!updatePayload.alternate)
|
|
5400
|
-
)
|
|
5401
|
-
return bubbleProperties(workInProgress), null;
|
|
5402
|
-
} else
|
|
5403
|
-
2 * now() - type.renderingStartTime >
|
|
5404
|
-
workInProgressRootRenderTargetTime &&
|
|
5405
|
-
1073741824 !== renderLanes &&
|
|
5406
|
-
((workInProgress.flags |= 128),
|
|
5407
|
-
(newProps = !0),
|
|
5408
|
-
cutOffTailIfNeeded(type, !1),
|
|
5409
|
-
(workInProgress.lanes = 4194304));
|
|
5410
|
-
type.isBackwards
|
|
5411
|
-
? ((updatePayload.sibling = workInProgress.child),
|
|
5412
|
-
(workInProgress.child = updatePayload))
|
|
5413
|
-
: ((current = type.last),
|
|
5414
|
-
null !== current
|
|
5415
|
-
? (current.sibling = updatePayload)
|
|
5416
|
-
: (workInProgress.child = updatePayload),
|
|
5417
|
-
(type.last = updatePayload));
|
|
5418
|
-
}
|
|
5419
|
-
if (null !== type.tail)
|
|
5420
|
-
return (
|
|
5421
|
-
(workInProgress = type.tail),
|
|
5422
|
-
(type.rendering = workInProgress),
|
|
5423
|
-
(type.tail = workInProgress.sibling),
|
|
5424
|
-
(type.renderingStartTime = now()),
|
|
5425
|
-
(workInProgress.sibling = null),
|
|
5426
|
-
(current = suspenseStackCursor.current),
|
|
5427
|
-
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
5428
|
-
workInProgress
|
|
5596
|
+
initSuspenseListRenderState(
|
|
5597
|
+
workInProgress,
|
|
5598
|
+
!0,
|
|
5599
|
+
renderLanes,
|
|
5600
|
+
null,
|
|
5601
|
+
tailMode
|
|
5429
5602
|
);
|
|
5430
|
-
|
|
5431
|
-
|
|
5603
|
+
break;
|
|
5604
|
+
case "together":
|
|
5605
|
+
initSuspenseListRenderState(workInProgress, !1, null, null, void 0);
|
|
5606
|
+
break;
|
|
5607
|
+
default:
|
|
5608
|
+
workInProgress.memoizedState = null;
|
|
5609
|
+
}
|
|
5610
|
+
return workInProgress.child;
|
|
5611
|
+
}
|
|
5612
|
+
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
5613
|
+
null !== current && (workInProgress.dependencies = current.dependencies);
|
|
5614
|
+
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
5615
|
+
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
5616
|
+
if (null !== current && workInProgress.child !== current.child)
|
|
5617
|
+
throw Error("Resuming work not yet implemented.");
|
|
5618
|
+
if (null !== workInProgress.child) {
|
|
5619
|
+
current = workInProgress.child;
|
|
5620
|
+
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
5621
|
+
workInProgress.child = renderLanes;
|
|
5622
|
+
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
5623
|
+
(current = current.sibling),
|
|
5624
|
+
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
5625
|
+
current,
|
|
5626
|
+
current.pendingProps
|
|
5627
|
+
)),
|
|
5628
|
+
(renderLanes.return = workInProgress);
|
|
5629
|
+
renderLanes.sibling = null;
|
|
5630
|
+
}
|
|
5631
|
+
return workInProgress.child;
|
|
5632
|
+
}
|
|
5633
|
+
function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
5634
|
+
current,
|
|
5635
|
+
workInProgress,
|
|
5636
|
+
renderLanes
|
|
5637
|
+
) {
|
|
5638
|
+
switch (workInProgress.tag) {
|
|
5639
|
+
case 3:
|
|
5640
|
+
pushHostRootContext(workInProgress);
|
|
5641
|
+
break;
|
|
5642
|
+
case 5:
|
|
5643
|
+
pushHostContext(workInProgress);
|
|
5644
|
+
break;
|
|
5645
|
+
case 1:
|
|
5646
|
+
isContextProvider(workInProgress.type) &&
|
|
5647
|
+
pushContextProvider(workInProgress);
|
|
5648
|
+
break;
|
|
5649
|
+
case 4:
|
|
5650
|
+
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
5651
|
+
break;
|
|
5652
|
+
case 10:
|
|
5653
|
+
var context = workInProgress.type._context,
|
|
5654
|
+
nextValue = workInProgress.memoizedProps.value;
|
|
5655
|
+
push(valueCursor, context._currentValue2);
|
|
5656
|
+
context._currentValue2 = nextValue;
|
|
5657
|
+
break;
|
|
5658
|
+
case 13:
|
|
5659
|
+
if (null !== workInProgress.memoizedState) {
|
|
5660
|
+
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
5661
|
+
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
5662
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5663
|
+
current = bailoutOnAlreadyFinishedWork(
|
|
5664
|
+
current,
|
|
5665
|
+
workInProgress,
|
|
5666
|
+
renderLanes
|
|
5667
|
+
);
|
|
5668
|
+
return null !== current ? current.sibling : null;
|
|
5669
|
+
}
|
|
5670
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5671
|
+
break;
|
|
5672
|
+
case 19:
|
|
5673
|
+
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5674
|
+
if (0 !== (current.flags & 128)) {
|
|
5675
|
+
if (context)
|
|
5676
|
+
return updateSuspenseListComponent(
|
|
5677
|
+
current,
|
|
5678
|
+
workInProgress,
|
|
5679
|
+
renderLanes
|
|
5680
|
+
);
|
|
5681
|
+
workInProgress.flags |= 128;
|
|
5682
|
+
}
|
|
5683
|
+
nextValue = workInProgress.memoizedState;
|
|
5684
|
+
null !== nextValue &&
|
|
5685
|
+
((nextValue.rendering = null),
|
|
5686
|
+
(nextValue.tail = null),
|
|
5687
|
+
(nextValue.lastEffect = null));
|
|
5688
|
+
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
5689
|
+
if (context) break;
|
|
5690
|
+
else return null;
|
|
5432
5691
|
case 22:
|
|
5433
5692
|
case 23:
|
|
5434
5693
|
return (
|
|
5435
|
-
|
|
5436
|
-
(
|
|
5437
|
-
null !== current &&
|
|
5438
|
-
(null !== current.memoizedState) !== renderLanes &&
|
|
5439
|
-
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
5440
|
-
(workInProgress.flags |= 4),
|
|
5441
|
-
(renderLanes &&
|
|
5442
|
-
0 === (subtreeRenderLanes & 1073741824) &&
|
|
5443
|
-
0 !== (workInProgress.mode & 1)) ||
|
|
5444
|
-
bubbleProperties(workInProgress),
|
|
5445
|
-
null
|
|
5694
|
+
(workInProgress.lanes = 0),
|
|
5695
|
+
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
5446
5696
|
);
|
|
5447
5697
|
}
|
|
5448
|
-
|
|
5449
|
-
"Unknown unit of work tag (" +
|
|
5450
|
-
workInProgress.tag +
|
|
5451
|
-
"). This error is likely caused by a bug in React. Please file an issue."
|
|
5452
|
-
);
|
|
5698
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5453
5699
|
}
|
|
5454
5700
|
function unwindWork(workInProgress) {
|
|
5455
5701
|
switch (workInProgress.tag) {
|
|
5456
5702
|
case 1:
|
|
5457
5703
|
isContextProvider(workInProgress.type) && popContext();
|
|
5458
5704
|
var flags = workInProgress.flags;
|
|
5459
|
-
return flags &
|
|
5460
|
-
? ((workInProgress.flags = (flags & -
|
|
5705
|
+
return flags & 32768
|
|
5706
|
+
? ((workInProgress.flags = (flags & -32769) | 128), workInProgress)
|
|
5461
5707
|
: null;
|
|
5462
5708
|
case 3:
|
|
5463
5709
|
popHostContainer();
|
|
@@ -5469,7 +5715,7 @@ function unwindWork(workInProgress) {
|
|
|
5469
5715
|
throw Error(
|
|
5470
5716
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5471
5717
|
);
|
|
5472
|
-
workInProgress.flags = (flags & -
|
|
5718
|
+
workInProgress.flags = (flags & -32769) | 128;
|
|
5473
5719
|
return workInProgress;
|
|
5474
5720
|
case 5:
|
|
5475
5721
|
return popHostContext(workInProgress), null;
|
|
@@ -5477,8 +5723,8 @@ function unwindWork(workInProgress) {
|
|
|
5477
5723
|
return (
|
|
5478
5724
|
pop(suspenseStackCursor),
|
|
5479
5725
|
(flags = workInProgress.flags),
|
|
5480
|
-
flags &
|
|
5481
|
-
? ((workInProgress.flags = (flags & -
|
|
5726
|
+
flags & 32768
|
|
5727
|
+
? ((workInProgress.flags = (flags & -32769) | 128), workInProgress)
|
|
5482
5728
|
: null
|
|
5483
5729
|
);
|
|
5484
5730
|
case 19:
|
|
@@ -5604,8 +5850,8 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5604
5850
|
var effect = (finishedWork = finishedWork.next);
|
|
5605
5851
|
do {
|
|
5606
5852
|
if ((effect.tag & tag) === tag) {
|
|
5607
|
-
var create$
|
|
5608
|
-
effect.destroy = create$
|
|
5853
|
+
var create$83 = effect.create;
|
|
5854
|
+
effect.destroy = create$83();
|
|
5609
5855
|
}
|
|
5610
5856
|
effect = effect.next;
|
|
5611
5857
|
} while (effect !== finishedWork);
|
|
@@ -5634,12 +5880,12 @@ function commitWork(current, finishedWork) {
|
|
|
5634
5880
|
case 14:
|
|
5635
5881
|
case 15:
|
|
5636
5882
|
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
5883
|
+
commitHookEffectListMount(3, finishedWork);
|
|
5884
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5637
5885
|
return;
|
|
5638
5886
|
case 12:
|
|
5639
5887
|
return;
|
|
5640
5888
|
case 13:
|
|
5641
|
-
null !== finishedWork.memoizedState &&
|
|
5642
|
-
(globalMostRecentFallbackTime = now());
|
|
5643
5889
|
attachSuspenseRetryListeners(finishedWork);
|
|
5644
5890
|
return;
|
|
5645
5891
|
case 19:
|
|
@@ -5710,7 +5956,10 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5710
5956
|
var _effect = effect,
|
|
5711
5957
|
destroy = _effect.destroy,
|
|
5712
5958
|
tag = _effect.tag;
|
|
5713
|
-
if (
|
|
5959
|
+
if (
|
|
5960
|
+
void 0 !== destroy &&
|
|
5961
|
+
(0 !== (tag & 2) || 0 !== (tag & 4))
|
|
5962
|
+
) {
|
|
5714
5963
|
_effect = current;
|
|
5715
5964
|
var nearestMountedAncestor = root;
|
|
5716
5965
|
try {
|
|
@@ -5738,8 +5987,8 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5738
5987
|
(_effect.props = effect.memoizedProps),
|
|
5739
5988
|
(_effect.state = effect.memoizedState),
|
|
5740
5989
|
_effect.componentWillUnmount();
|
|
5741
|
-
} catch (
|
|
5742
|
-
captureCommitPhaseError(current, root,
|
|
5990
|
+
} catch (error) {
|
|
5991
|
+
captureCommitPhaseError(current, root, error);
|
|
5743
5992
|
}
|
|
5744
5993
|
break;
|
|
5745
5994
|
case 5:
|
|
@@ -5786,6 +6035,15 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5786
6035
|
: (currentRef.current = null));
|
|
5787
6036
|
}
|
|
5788
6037
|
}
|
|
6038
|
+
if (flags & 4096)
|
|
6039
|
+
switch (root.tag) {
|
|
6040
|
+
case 13:
|
|
6041
|
+
if (null !== root.memoizedState) {
|
|
6042
|
+
var current$87 = root.alternate;
|
|
6043
|
+
if (null === current$87 || null === current$87.memoizedState)
|
|
6044
|
+
globalMostRecentFallbackTime = now();
|
|
6045
|
+
}
|
|
6046
|
+
}
|
|
5789
6047
|
switch (flags & 2054) {
|
|
5790
6048
|
case 2:
|
|
5791
6049
|
root.flags &= -3;
|
|
@@ -5821,20 +6079,20 @@ function commitLayoutEffects(finishedWork) {
|
|
|
5821
6079
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
5822
6080
|
var fiber = nextEffect,
|
|
5823
6081
|
firstChild = fiber.child;
|
|
5824
|
-
if (0 !== (fiber.subtreeFlags &
|
|
6082
|
+
if (0 !== (fiber.subtreeFlags & 4420) && null !== firstChild)
|
|
5825
6083
|
(firstChild.return = fiber), (nextEffect = firstChild);
|
|
5826
6084
|
else
|
|
5827
6085
|
for (fiber = finishedWork; null !== nextEffect; ) {
|
|
5828
6086
|
firstChild = nextEffect;
|
|
5829
|
-
if (0 !== (firstChild.flags &
|
|
6087
|
+
if (0 !== (firstChild.flags & 4420)) {
|
|
5830
6088
|
var current = firstChild.alternate;
|
|
5831
6089
|
try {
|
|
5832
|
-
if (0 !== (firstChild.flags &
|
|
6090
|
+
if (0 !== (firstChild.flags & 4420))
|
|
5833
6091
|
switch (firstChild.tag) {
|
|
5834
6092
|
case 0:
|
|
5835
6093
|
case 11:
|
|
5836
6094
|
case 15:
|
|
5837
|
-
commitHookEffectListMount(
|
|
6095
|
+
commitHookEffectListMount(5, firstChild);
|
|
5838
6096
|
break;
|
|
5839
6097
|
case 1:
|
|
5840
6098
|
var instance = firstChild.stateNode;
|
|
@@ -5859,8 +6117,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
5859
6117
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
5860
6118
|
break;
|
|
5861
6119
|
case 3:
|
|
5862
|
-
var updateQueue$
|
|
5863
|
-
if (null !== updateQueue$
|
|
6120
|
+
var updateQueue$84 = firstChild.updateQueue;
|
|
6121
|
+
if (null !== updateQueue$84) {
|
|
5864
6122
|
current = null;
|
|
5865
6123
|
if (null !== firstChild.child)
|
|
5866
6124
|
switch (firstChild.child.tag) {
|
|
@@ -5870,7 +6128,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
5870
6128
|
case 1:
|
|
5871
6129
|
current = firstChild.child.stateNode;
|
|
5872
6130
|
}
|
|
5873
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6131
|
+
commitUpdateQueue(firstChild, updateQueue$84, current);
|
|
5874
6132
|
}
|
|
5875
6133
|
break;
|
|
5876
6134
|
case 5:
|
|
@@ -5958,7 +6216,7 @@ var ceil = Math.ceil,
|
|
|
5958
6216
|
currentEventTime = -1,
|
|
5959
6217
|
currentEventTransitionLane = 0;
|
|
5960
6218
|
function requestEventTime() {
|
|
5961
|
-
return 0 !== (executionContext &
|
|
6219
|
+
return 0 !== (executionContext & 6)
|
|
5962
6220
|
? now()
|
|
5963
6221
|
: -1 !== currentEventTime
|
|
5964
6222
|
? currentEventTime
|
|
@@ -5966,7 +6224,7 @@ function requestEventTime() {
|
|
|
5966
6224
|
}
|
|
5967
6225
|
function requestUpdateLane(fiber) {
|
|
5968
6226
|
if (0 === (fiber.mode & 1)) return 1;
|
|
5969
|
-
if (0 !== (executionContext &
|
|
6227
|
+
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
|
5970
6228
|
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
|
5971
6229
|
if (0 !== ReactCurrentBatchConfig.transition)
|
|
5972
6230
|
return (
|
|
@@ -6004,18 +6262,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6004
6262
|
if (null === root) return null;
|
|
6005
6263
|
markRootUpdated(root, lane, eventTime);
|
|
6006
6264
|
root === workInProgressRoot &&
|
|
6007
|
-
(0 === (executionContext &
|
|
6265
|
+
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
|
|
6008
6266
|
4 === workInProgressRootExitStatus &&
|
|
6009
6267
|
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6017
|
-
includesLegacySyncCallbacks && flushSyncCallbacks()))
|
|
6018
|
-
: ensureRootIsScheduled(root, eventTime);
|
|
6268
|
+
ensureRootIsScheduled(root, eventTime);
|
|
6269
|
+
1 === lane &&
|
|
6270
|
+
0 === executionContext &&
|
|
6271
|
+
0 === (fiber.mode & 1) &&
|
|
6272
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6273
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6019
6274
|
return root;
|
|
6020
6275
|
}
|
|
6021
6276
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6093,7 +6348,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6093
6348
|
default:
|
|
6094
6349
|
existingCallbackNode = NormalPriority;
|
|
6095
6350
|
}
|
|
6096
|
-
existingCallbackNode = scheduleCallback(
|
|
6351
|
+
existingCallbackNode = scheduleCallback$1(
|
|
6097
6352
|
existingCallbackNode,
|
|
6098
6353
|
performConcurrentWorkOnRoot.bind(null, root)
|
|
6099
6354
|
);
|
|
@@ -6105,7 +6360,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6105
6360
|
function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
6106
6361
|
currentEventTime = -1;
|
|
6107
6362
|
currentEventTransitionLane = 0;
|
|
6108
|
-
if (0 !== (executionContext &
|
|
6363
|
+
if (0 !== (executionContext & 6))
|
|
6109
6364
|
throw Error("Should not already be working.");
|
|
6110
6365
|
var originalCallbackNode = root.callbackNode;
|
|
6111
6366
|
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
|
|
@@ -6115,16 +6370,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6115
6370
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6116
6371
|
);
|
|
6117
6372
|
if (0 === lanes) return null;
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6373
|
+
if (
|
|
6374
|
+
includesBlockingLane(root, lanes) ||
|
|
6375
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6376
|
+
didTimeout
|
|
6377
|
+
)
|
|
6378
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6379
|
+
else {
|
|
6125
6380
|
didTimeout = lanes;
|
|
6126
|
-
|
|
6127
|
-
executionContext |=
|
|
6381
|
+
var prevExecutionContext = executionContext;
|
|
6382
|
+
executionContext |= 2;
|
|
6128
6383
|
var prevDispatcher = pushDispatcher();
|
|
6129
6384
|
if (
|
|
6130
6385
|
workInProgressRoot !== root ||
|
|
@@ -6142,28 +6397,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6142
6397
|
while (1);
|
|
6143
6398
|
resetContextDependencies();
|
|
6144
6399
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6145
|
-
executionContext =
|
|
6400
|
+
executionContext = prevExecutionContext;
|
|
6146
6401
|
null !== workInProgress
|
|
6147
6402
|
? (didTimeout = 0)
|
|
6148
6403
|
: ((workInProgressRoot = null),
|
|
6149
6404
|
(workInProgressRootRenderLanes = 0),
|
|
6150
6405
|
(didTimeout = workInProgressRootExitStatus));
|
|
6151
|
-
}
|
|
6406
|
+
}
|
|
6152
6407
|
if (0 !== didTimeout) {
|
|
6153
6408
|
2 === didTimeout &&
|
|
6154
|
-
((
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
((lanes = JSCompiler_inline_result),
|
|
6159
|
-
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
|
|
6409
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6410
|
+
0 !== prevExecutionContext &&
|
|
6411
|
+
((lanes = prevExecutionContext),
|
|
6412
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6160
6413
|
if (1 === didTimeout)
|
|
6161
6414
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6162
6415
|
prepareFreshStack(root, 0),
|
|
6163
6416
|
markRootSuspended$1(root, lanes),
|
|
6164
6417
|
ensureRootIsScheduled(root, now()),
|
|
6165
6418
|
originalCallbackNode);
|
|
6166
|
-
|
|
6419
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6420
|
+
prevExecutionContext = root.current.alternate;
|
|
6421
|
+
if (
|
|
6422
|
+
prevDispatcher &&
|
|
6423
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6424
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6425
|
+
2 === didTimeout &&
|
|
6426
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6427
|
+
0 !== prevDispatcher &&
|
|
6428
|
+
((lanes = prevDispatcher),
|
|
6429
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6430
|
+
1 === didTimeout)
|
|
6431
|
+
)
|
|
6432
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6433
|
+
prepareFreshStack(root, 0),
|
|
6434
|
+
markRootSuspended$1(root, lanes),
|
|
6435
|
+
ensureRootIsScheduled(root, now()),
|
|
6436
|
+
originalCallbackNode);
|
|
6437
|
+
root.finishedWork = prevExecutionContext;
|
|
6167
6438
|
root.finishedLanes = lanes;
|
|
6168
6439
|
switch (didTimeout) {
|
|
6169
6440
|
case 0:
|
|
@@ -6180,10 +6451,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6180
6451
|
10 < didTimeout)
|
|
6181
6452
|
) {
|
|
6182
6453
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6183
|
-
|
|
6184
|
-
if ((
|
|
6454
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6455
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6185
6456
|
requestEventTime();
|
|
6186
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6457
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6187
6458
|
break;
|
|
6188
6459
|
}
|
|
6189
6460
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6198,15 +6469,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6198
6469
|
markRootSuspended$1(root, lanes);
|
|
6199
6470
|
if ((lanes & 4194240) === lanes) break;
|
|
6200
6471
|
didTimeout = root.eventTimes;
|
|
6201
|
-
for (
|
|
6472
|
+
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6202
6473
|
var index$4 = 31 - clz32(lanes);
|
|
6203
6474
|
prevDispatcher = 1 << index$4;
|
|
6204
6475
|
index$4 = didTimeout[index$4];
|
|
6205
|
-
index$4 >
|
|
6206
|
-
(JSCompiler_inline_result = index$4);
|
|
6476
|
+
index$4 > prevExecutionContext && (prevExecutionContext = index$4);
|
|
6207
6477
|
lanes &= ~prevDispatcher;
|
|
6208
6478
|
}
|
|
6209
|
-
lanes =
|
|
6479
|
+
lanes = prevExecutionContext;
|
|
6210
6480
|
lanes = now() - lanes;
|
|
6211
6481
|
lanes =
|
|
6212
6482
|
(120 > lanes
|
|
@@ -6243,6 +6513,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6243
6513
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6244
6514
|
: null;
|
|
6245
6515
|
}
|
|
6516
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6517
|
+
var prevExecutionContext = executionContext;
|
|
6518
|
+
executionContext |= 8;
|
|
6519
|
+
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo));
|
|
6520
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6521
|
+
executionContext = prevExecutionContext;
|
|
6522
|
+
return root;
|
|
6523
|
+
}
|
|
6524
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6525
|
+
for (var node = finishedWork; ; ) {
|
|
6526
|
+
if (node.flags & 8192) {
|
|
6527
|
+
var updateQueue = node.updateQueue;
|
|
6528
|
+
if (
|
|
6529
|
+
null !== updateQueue &&
|
|
6530
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6531
|
+
)
|
|
6532
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6533
|
+
var check = updateQueue[i],
|
|
6534
|
+
getSnapshot = check.getSnapshot;
|
|
6535
|
+
check = check.value;
|
|
6536
|
+
try {
|
|
6537
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6538
|
+
} catch (error) {
|
|
6539
|
+
return !1;
|
|
6540
|
+
}
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
updateQueue = node.child;
|
|
6544
|
+
if (node.subtreeFlags & 8192 && null !== updateQueue)
|
|
6545
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6546
|
+
else {
|
|
6547
|
+
if (node === finishedWork) break;
|
|
6548
|
+
for (; null === node.sibling; ) {
|
|
6549
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6550
|
+
node = node.return;
|
|
6551
|
+
}
|
|
6552
|
+
node.sibling.return = node.return;
|
|
6553
|
+
node = node.sibling;
|
|
6554
|
+
}
|
|
6555
|
+
}
|
|
6556
|
+
return !0;
|
|
6557
|
+
}
|
|
6246
6558
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6247
6559
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6248
6560
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6256,18 +6568,20 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
6256
6568
|
}
|
|
6257
6569
|
}
|
|
6258
6570
|
function performSyncWorkOnRoot(root) {
|
|
6259
|
-
if (0 !== (executionContext &
|
|
6571
|
+
if (0 !== (executionContext & 6))
|
|
6260
6572
|
throw Error("Should not already be working.");
|
|
6261
6573
|
flushPassiveEffects();
|
|
6262
6574
|
var lanes = getNextLanes(root, 0);
|
|
6263
6575
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6264
6576
|
var exitStatus = renderRootSync(root, lanes);
|
|
6265
6577
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6266
|
-
|
|
6578
|
+
var prevExecutionContext = executionContext;
|
|
6579
|
+
executionContext |= 8;
|
|
6267
6580
|
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo));
|
|
6268
6581
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6269
6582
|
0 !== errorRetryLanes &&
|
|
6270
6583
|
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
6584
|
+
executionContext = prevExecutionContext;
|
|
6271
6585
|
}
|
|
6272
6586
|
if (1 === exitStatus)
|
|
6273
6587
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6388,7 +6702,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6388
6702
|
sourceFiber = erroredWork,
|
|
6389
6703
|
value = thrownValue;
|
|
6390
6704
|
thrownValue = workInProgressRootRenderLanes;
|
|
6391
|
-
sourceFiber.flags |=
|
|
6705
|
+
sourceFiber.flags |= 16384;
|
|
6392
6706
|
if (
|
|
6393
6707
|
null !== value &&
|
|
6394
6708
|
"object" === typeof value &&
|
|
@@ -6415,19 +6729,17 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6415
6729
|
var JSCompiler_temp;
|
|
6416
6730
|
if ((JSCompiler_temp = 13 === workInProgress$30.tag)) {
|
|
6417
6731
|
var nextState = workInProgress$30.memoizedState;
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
var props = workInProgress$30.memoizedProps;
|
|
6422
|
-
JSCompiler_temp =
|
|
6423
|
-
void 0 === props.fallback
|
|
6424
|
-
? !1
|
|
6425
|
-
: !0 !== props.unstable_avoidThisFallback
|
|
6732
|
+
JSCompiler_temp =
|
|
6733
|
+
null !== nextState
|
|
6734
|
+
? null !== nextState.dehydrated
|
|
6426
6735
|
? !0
|
|
6427
|
-
:
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6736
|
+
: !1
|
|
6737
|
+
: !0 !==
|
|
6738
|
+
workInProgress$30.memoizedProps.unstable_avoidThisFallback
|
|
6739
|
+
? !0
|
|
6740
|
+
: hasInvisibleParentBoundary
|
|
6741
|
+
? !1
|
|
6742
|
+
: !0;
|
|
6431
6743
|
}
|
|
6432
6744
|
if (JSCompiler_temp) {
|
|
6433
6745
|
var wakeables = workInProgress$30.updateQueue;
|
|
@@ -6441,8 +6753,22 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6441
6753
|
workInProgress$30 !== returnFiber
|
|
6442
6754
|
) {
|
|
6443
6755
|
workInProgress$30.flags |= 128;
|
|
6444
|
-
sourceFiber.flags |=
|
|
6445
|
-
sourceFiber.flags &= -
|
|
6756
|
+
sourceFiber.flags |= 65536;
|
|
6757
|
+
sourceFiber.flags &= -26437;
|
|
6758
|
+
if (
|
|
6759
|
+
enablePersistentOffscreenHostContainer &&
|
|
6760
|
+
null === workInProgress$30.alternate
|
|
6761
|
+
) {
|
|
6762
|
+
var offscreenContainer = workInProgress$30.child.child;
|
|
6763
|
+
if (null !== offscreenContainer) {
|
|
6764
|
+
var containerProps = getOffscreenContainerProps(
|
|
6765
|
+
"hidden",
|
|
6766
|
+
offscreenContainer.memoizedProps.children
|
|
6767
|
+
);
|
|
6768
|
+
offscreenContainer.pendingProps = containerProps;
|
|
6769
|
+
offscreenContainer.memoizedProps = containerProps;
|
|
6770
|
+
}
|
|
6771
|
+
}
|
|
6446
6772
|
if (1 === sourceFiber.tag)
|
|
6447
6773
|
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6448
6774
|
else {
|
|
@@ -6473,7 +6799,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6473
6799
|
);
|
|
6474
6800
|
wakeable.then(ping, ping);
|
|
6475
6801
|
}
|
|
6476
|
-
workInProgress$30.flags |=
|
|
6802
|
+
workInProgress$30.flags |= 32768;
|
|
6477
6803
|
workInProgress$30.lanes = thrownValue;
|
|
6478
6804
|
break a;
|
|
6479
6805
|
}
|
|
@@ -6492,7 +6818,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6492
6818
|
switch (workInProgress$30.tag) {
|
|
6493
6819
|
case 3:
|
|
6494
6820
|
root = value;
|
|
6495
|
-
workInProgress$30.flags |=
|
|
6821
|
+
workInProgress$30.flags |= 32768;
|
|
6496
6822
|
thrownValue &= -thrownValue;
|
|
6497
6823
|
workInProgress$30.lanes |= thrownValue;
|
|
6498
6824
|
var update$31 = createRootErrorUpdate(
|
|
@@ -6514,7 +6840,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6514
6840
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6515
6841
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6516
6842
|
) {
|
|
6517
|
-
workInProgress$30.flags |=
|
|
6843
|
+
workInProgress$30.flags |= 32768;
|
|
6518
6844
|
thrownValue &= -thrownValue;
|
|
6519
6845
|
workInProgress$30.lanes |= thrownValue;
|
|
6520
6846
|
var update$34 = createClassErrorUpdate(
|
|
@@ -6547,7 +6873,7 @@ function pushDispatcher() {
|
|
|
6547
6873
|
}
|
|
6548
6874
|
function renderRootSync(root, lanes) {
|
|
6549
6875
|
var prevExecutionContext = executionContext;
|
|
6550
|
-
executionContext |=
|
|
6876
|
+
executionContext |= 2;
|
|
6551
6877
|
var prevDispatcher = pushDispatcher();
|
|
6552
6878
|
(workInProgressRoot === root && workInProgressRootRenderLanes === lanes) ||
|
|
6553
6879
|
prepareFreshStack(root, lanes);
|
|
@@ -6588,7 +6914,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6588
6914
|
do {
|
|
6589
6915
|
var current = completedWork.alternate;
|
|
6590
6916
|
unitOfWork = completedWork.return;
|
|
6591
|
-
if (0 === (completedWork.flags &
|
|
6917
|
+
if (0 === (completedWork.flags & 16384)) {
|
|
6592
6918
|
if (
|
|
6593
6919
|
((current = completeWork(current, completedWork, subtreeRenderLanes)),
|
|
6594
6920
|
null !== current)
|
|
@@ -6599,12 +6925,12 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6599
6925
|
} else {
|
|
6600
6926
|
current = unwindWork(completedWork);
|
|
6601
6927
|
if (null !== current) {
|
|
6602
|
-
current.flags &=
|
|
6928
|
+
current.flags &= 16383;
|
|
6603
6929
|
workInProgress = current;
|
|
6604
6930
|
return;
|
|
6605
6931
|
}
|
|
6606
6932
|
null !== unitOfWork &&
|
|
6607
|
-
((unitOfWork.flags |=
|
|
6933
|
+
((unitOfWork.flags |= 16384),
|
|
6608
6934
|
(unitOfWork.subtreeFlags = 0),
|
|
6609
6935
|
(unitOfWork.deletions = null));
|
|
6610
6936
|
}
|
|
@@ -6633,7 +6959,7 @@ function commitRoot(root) {
|
|
|
6633
6959
|
function commitRootImpl(root, renderPriorityLevel) {
|
|
6634
6960
|
do flushPassiveEffects();
|
|
6635
6961
|
while (null !== rootWithPendingPassiveEffects);
|
|
6636
|
-
if (0 !== (executionContext &
|
|
6962
|
+
if (0 !== (executionContext & 6))
|
|
6637
6963
|
throw Error("Should not already be working.");
|
|
6638
6964
|
var finishedWork = root.finishedWork,
|
|
6639
6965
|
lanes = root.finishedLanes;
|
|
@@ -6655,7 +6981,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6655
6981
|
0 === (finishedWork.flags & 1040)) ||
|
|
6656
6982
|
rootDoesHavePassiveEffects ||
|
|
6657
6983
|
((rootDoesHavePassiveEffects = !0),
|
|
6658
|
-
scheduleCallback(NormalPriority, function() {
|
|
6984
|
+
scheduleCallback$1(NormalPriority, function() {
|
|
6659
6985
|
flushPassiveEffects();
|
|
6660
6986
|
return null;
|
|
6661
6987
|
}));
|
|
@@ -6666,7 +6992,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6666
6992
|
var previousPriority = currentUpdatePriority;
|
|
6667
6993
|
currentUpdatePriority = 1;
|
|
6668
6994
|
var prevExecutionContext = executionContext;
|
|
6669
|
-
executionContext |=
|
|
6995
|
+
executionContext |= 4;
|
|
6670
6996
|
ReactCurrentOwner$2.current = null;
|
|
6671
6997
|
commitBeforeMutationEffects(root, finishedWork);
|
|
6672
6998
|
commitMutationEffects(root, finishedWork);
|
|
@@ -6683,11 +7009,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6683
7009
|
(pendingPassiveEffectsLanes = lanes));
|
|
6684
7010
|
remainingLanes = root.pendingLanes;
|
|
6685
7011
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
6686
|
-
0 !== (remainingLanes & 1)
|
|
6687
|
-
? root === rootWithNestedUpdates
|
|
6688
|
-
? nestedUpdateCount++
|
|
6689
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
6690
|
-
: (nestedUpdateCount = 0);
|
|
6691
7012
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
6692
7013
|
ensureRootIsScheduled(root, now());
|
|
6693
7014
|
if (hasUncaughtError)
|
|
@@ -6695,10 +7016,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6695
7016
|
(root = firstUncaughtError),
|
|
6696
7017
|
(firstUncaughtError = null),
|
|
6697
7018
|
root);
|
|
6698
|
-
if (0 !== (executionContext & 4)) return null;
|
|
6699
7019
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
6700
7020
|
0 !== root.tag &&
|
|
6701
7021
|
flushPassiveEffects();
|
|
7022
|
+
remainingLanes = root.pendingLanes;
|
|
7023
|
+
0 !== (remainingLanes & 1)
|
|
7024
|
+
? root === rootWithNestedUpdates
|
|
7025
|
+
? nestedUpdateCount++
|
|
7026
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
7027
|
+
: (nestedUpdateCount = 0);
|
|
6702
7028
|
flushSyncCallbacks();
|
|
6703
7029
|
return null;
|
|
6704
7030
|
}
|
|
@@ -6716,10 +7042,10 @@ function flushPassiveEffects() {
|
|
|
6716
7042
|
renderPriority = rootWithPendingPassiveEffects;
|
|
6717
7043
|
rootWithPendingPassiveEffects = null;
|
|
6718
7044
|
pendingPassiveEffectsLanes = 0;
|
|
6719
|
-
if (0 !== (executionContext &
|
|
7045
|
+
if (0 !== (executionContext & 6))
|
|
6720
7046
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
6721
7047
|
var prevExecutionContext = executionContext;
|
|
6722
|
-
executionContext |=
|
|
7048
|
+
executionContext |= 4;
|
|
6723
7049
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
6724
7050
|
var fiber = nextEffect,
|
|
6725
7051
|
child = fiber.child;
|
|
@@ -6734,7 +7060,7 @@ function flushPassiveEffects() {
|
|
|
6734
7060
|
case 0:
|
|
6735
7061
|
case 11:
|
|
6736
7062
|
case 15:
|
|
6737
|
-
commitHookEffectListUnmount(
|
|
7063
|
+
commitHookEffectListUnmount(8, fiber$jscomp$0, fiber);
|
|
6738
7064
|
}
|
|
6739
7065
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
6740
7066
|
if (null !== child$jscomp$0)
|
|
@@ -6784,7 +7110,7 @@ function flushPassiveEffects() {
|
|
|
6784
7110
|
case 0:
|
|
6785
7111
|
case 11:
|
|
6786
7112
|
case 15:
|
|
6787
|
-
commitHookEffectListUnmount(
|
|
7113
|
+
commitHookEffectListUnmount(9, fiber, fiber.return);
|
|
6788
7114
|
}
|
|
6789
7115
|
var sibling$jscomp$0 = fiber.sibling;
|
|
6790
7116
|
if (null !== sibling$jscomp$0) {
|
|
@@ -6810,7 +7136,7 @@ function flushPassiveEffects() {
|
|
|
6810
7136
|
case 0:
|
|
6811
7137
|
case 11:
|
|
6812
7138
|
case 15:
|
|
6813
|
-
commitHookEffectListMount(
|
|
7139
|
+
commitHookEffectListMount(9, deletions);
|
|
6814
7140
|
}
|
|
6815
7141
|
} catch (error) {
|
|
6816
7142
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -6937,7 +7263,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
|
6937
7263
|
}
|
|
6938
7264
|
var beginWork$1;
|
|
6939
7265
|
beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
6940
|
-
var updateLanes = workInProgress.lanes;
|
|
6941
7266
|
if (null !== current)
|
|
6942
7267
|
if (
|
|
6943
7268
|
current.memoizedProps !== workInProgress.pendingProps ||
|
|
@@ -6945,158 +7270,98 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
6945
7270
|
)
|
|
6946
7271
|
didReceiveUpdate = !0;
|
|
6947
7272
|
else {
|
|
6948
|
-
if (
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
pushContextProvider(workInProgress);
|
|
6960
|
-
break;
|
|
6961
|
-
case 4:
|
|
6962
|
-
pushHostContainer(
|
|
6963
|
-
workInProgress,
|
|
6964
|
-
workInProgress.stateNode.containerInfo
|
|
6965
|
-
);
|
|
6966
|
-
break;
|
|
6967
|
-
case 10:
|
|
6968
|
-
updateLanes = workInProgress.type._context;
|
|
6969
|
-
var nextValue = workInProgress.memoizedProps.value;
|
|
6970
|
-
push(valueCursor, updateLanes._currentValue2);
|
|
6971
|
-
updateLanes._currentValue2 = nextValue;
|
|
6972
|
-
break;
|
|
6973
|
-
case 13:
|
|
6974
|
-
if (null !== workInProgress.memoizedState) {
|
|
6975
|
-
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
6976
|
-
return updateSuspenseComponent(
|
|
6977
|
-
current,
|
|
6978
|
-
workInProgress,
|
|
6979
|
-
renderLanes
|
|
6980
|
-
);
|
|
6981
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
6982
|
-
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
6983
|
-
current,
|
|
6984
|
-
workInProgress,
|
|
6985
|
-
renderLanes
|
|
6986
|
-
);
|
|
6987
|
-
return null !== workInProgress ? workInProgress.sibling : null;
|
|
6988
|
-
}
|
|
6989
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
6990
|
-
break;
|
|
6991
|
-
case 19:
|
|
6992
|
-
updateLanes = 0 !== (renderLanes & workInProgress.childLanes);
|
|
6993
|
-
if (0 !== (current.flags & 128)) {
|
|
6994
|
-
if (updateLanes)
|
|
6995
|
-
return updateSuspenseListComponent(
|
|
6996
|
-
current,
|
|
6997
|
-
workInProgress,
|
|
6998
|
-
renderLanes
|
|
6999
|
-
);
|
|
7000
|
-
workInProgress.flags |= 128;
|
|
7001
|
-
}
|
|
7002
|
-
nextValue = workInProgress.memoizedState;
|
|
7003
|
-
null !== nextValue &&
|
|
7004
|
-
((nextValue.rendering = null),
|
|
7005
|
-
(nextValue.tail = null),
|
|
7006
|
-
(nextValue.lastEffect = null));
|
|
7007
|
-
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
7008
|
-
if (updateLanes) break;
|
|
7009
|
-
else return null;
|
|
7010
|
-
case 22:
|
|
7011
|
-
case 23:
|
|
7012
|
-
return (
|
|
7013
|
-
(workInProgress.lanes = 0),
|
|
7014
|
-
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
7015
|
-
);
|
|
7016
|
-
}
|
|
7017
|
-
return bailoutOnAlreadyFinishedWork(
|
|
7018
|
-
current,
|
|
7019
|
-
workInProgress,
|
|
7020
|
-
renderLanes
|
|
7273
|
+
if (
|
|
7274
|
+
0 === (current.lanes & renderLanes) &&
|
|
7275
|
+
0 === (workInProgress.flags & 128)
|
|
7276
|
+
)
|
|
7277
|
+
return (
|
|
7278
|
+
(didReceiveUpdate = !1),
|
|
7279
|
+
attemptEarlyBailoutIfNoScheduledUpdate(
|
|
7280
|
+
current,
|
|
7281
|
+
workInProgress,
|
|
7282
|
+
renderLanes
|
|
7283
|
+
)
|
|
7021
7284
|
);
|
|
7022
|
-
|
|
7023
|
-
didReceiveUpdate = 0 !== (current.flags & 32768) ? !0 : !1;
|
|
7285
|
+
didReceiveUpdate = 0 !== (current.flags & 65536) ? !0 : !1;
|
|
7024
7286
|
}
|
|
7025
7287
|
else didReceiveUpdate = !1;
|
|
7026
7288
|
workInProgress.lanes = 0;
|
|
7027
7289
|
switch (workInProgress.tag) {
|
|
7028
7290
|
case 2:
|
|
7029
|
-
|
|
7291
|
+
var Component = workInProgress.type;
|
|
7030
7292
|
null !== current &&
|
|
7031
7293
|
((current.alternate = null),
|
|
7032
7294
|
(workInProgress.alternate = null),
|
|
7033
7295
|
(workInProgress.flags |= 2));
|
|
7034
7296
|
current = workInProgress.pendingProps;
|
|
7035
|
-
|
|
7297
|
+
var context = getMaskedContext(
|
|
7298
|
+
workInProgress,
|
|
7299
|
+
contextStackCursor.current
|
|
7300
|
+
);
|
|
7036
7301
|
prepareToReadContext(workInProgress, renderLanes);
|
|
7037
|
-
|
|
7302
|
+
context = renderWithHooks(
|
|
7038
7303
|
null,
|
|
7039
7304
|
workInProgress,
|
|
7040
|
-
|
|
7305
|
+
Component,
|
|
7041
7306
|
current,
|
|
7042
|
-
|
|
7307
|
+
context,
|
|
7043
7308
|
renderLanes
|
|
7044
7309
|
);
|
|
7045
7310
|
workInProgress.flags |= 1;
|
|
7046
7311
|
if (
|
|
7047
|
-
"object" === typeof
|
|
7048
|
-
null !==
|
|
7049
|
-
"function" === typeof
|
|
7050
|
-
void 0 ===
|
|
7312
|
+
"object" === typeof context &&
|
|
7313
|
+
null !== context &&
|
|
7314
|
+
"function" === typeof context.render &&
|
|
7315
|
+
void 0 === context.$$typeof
|
|
7051
7316
|
) {
|
|
7052
7317
|
workInProgress.tag = 1;
|
|
7053
7318
|
workInProgress.memoizedState = null;
|
|
7054
7319
|
workInProgress.updateQueue = null;
|
|
7055
|
-
if (isContextProvider(
|
|
7320
|
+
if (isContextProvider(Component)) {
|
|
7056
7321
|
var hasContext = !0;
|
|
7057
7322
|
pushContextProvider(workInProgress);
|
|
7058
7323
|
} else hasContext = !1;
|
|
7059
7324
|
workInProgress.memoizedState =
|
|
7060
|
-
null !==
|
|
7061
|
-
?
|
|
7325
|
+
null !== context.state && void 0 !== context.state
|
|
7326
|
+
? context.state
|
|
7062
7327
|
: null;
|
|
7063
7328
|
initializeUpdateQueue(workInProgress);
|
|
7064
|
-
|
|
7065
|
-
workInProgress.stateNode =
|
|
7066
|
-
|
|
7067
|
-
mountClassInstance(workInProgress,
|
|
7329
|
+
context.updater = classComponentUpdater;
|
|
7330
|
+
workInProgress.stateNode = context;
|
|
7331
|
+
context._reactInternals = workInProgress;
|
|
7332
|
+
mountClassInstance(workInProgress, Component, current, renderLanes);
|
|
7068
7333
|
workInProgress = finishClassComponent(
|
|
7069
7334
|
null,
|
|
7070
7335
|
workInProgress,
|
|
7071
|
-
|
|
7336
|
+
Component,
|
|
7072
7337
|
!0,
|
|
7073
7338
|
hasContext,
|
|
7074
7339
|
renderLanes
|
|
7075
7340
|
);
|
|
7076
7341
|
} else
|
|
7077
7342
|
(workInProgress.tag = 0),
|
|
7078
|
-
reconcileChildren(null, workInProgress,
|
|
7343
|
+
reconcileChildren(null, workInProgress, context, renderLanes),
|
|
7079
7344
|
(workInProgress = workInProgress.child);
|
|
7080
7345
|
return workInProgress;
|
|
7081
7346
|
case 16:
|
|
7082
|
-
|
|
7347
|
+
Component = workInProgress.elementType;
|
|
7083
7348
|
a: {
|
|
7084
7349
|
null !== current &&
|
|
7085
7350
|
((current.alternate = null),
|
|
7086
7351
|
(workInProgress.alternate = null),
|
|
7087
7352
|
(workInProgress.flags |= 2));
|
|
7088
7353
|
current = workInProgress.pendingProps;
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
workInProgress.type =
|
|
7092
|
-
|
|
7093
|
-
current = resolveDefaultProps(
|
|
7094
|
-
switch (
|
|
7354
|
+
context = Component._init;
|
|
7355
|
+
Component = context(Component._payload);
|
|
7356
|
+
workInProgress.type = Component;
|
|
7357
|
+
context = workInProgress.tag = resolveLazyComponentTag(Component);
|
|
7358
|
+
current = resolveDefaultProps(Component, current);
|
|
7359
|
+
switch (context) {
|
|
7095
7360
|
case 0:
|
|
7096
7361
|
workInProgress = updateFunctionComponent(
|
|
7097
7362
|
null,
|
|
7098
7363
|
workInProgress,
|
|
7099
|
-
|
|
7364
|
+
Component,
|
|
7100
7365
|
current,
|
|
7101
7366
|
renderLanes
|
|
7102
7367
|
);
|
|
@@ -7105,7 +7370,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7105
7370
|
workInProgress = updateClassComponent(
|
|
7106
7371
|
null,
|
|
7107
7372
|
workInProgress,
|
|
7108
|
-
|
|
7373
|
+
Component,
|
|
7109
7374
|
current,
|
|
7110
7375
|
renderLanes
|
|
7111
7376
|
);
|
|
@@ -7114,7 +7379,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7114
7379
|
workInProgress = updateForwardRef(
|
|
7115
7380
|
null,
|
|
7116
7381
|
workInProgress,
|
|
7117
|
-
|
|
7382
|
+
Component,
|
|
7118
7383
|
current,
|
|
7119
7384
|
renderLanes
|
|
7120
7385
|
);
|
|
@@ -7123,79 +7388,78 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7123
7388
|
workInProgress = updateMemoComponent(
|
|
7124
7389
|
null,
|
|
7125
7390
|
workInProgress,
|
|
7126
|
-
|
|
7127
|
-
resolveDefaultProps(
|
|
7128
|
-
updateLanes,
|
|
7391
|
+
Component,
|
|
7392
|
+
resolveDefaultProps(Component.type, current),
|
|
7129
7393
|
renderLanes
|
|
7130
7394
|
);
|
|
7131
7395
|
break a;
|
|
7132
7396
|
}
|
|
7133
7397
|
throw Error(
|
|
7134
7398
|
"Element type is invalid. Received a promise that resolves to: " +
|
|
7135
|
-
|
|
7399
|
+
Component +
|
|
7136
7400
|
". Lazy element type must resolve to a class or function."
|
|
7137
7401
|
);
|
|
7138
7402
|
}
|
|
7139
7403
|
return workInProgress;
|
|
7140
7404
|
case 0:
|
|
7141
7405
|
return (
|
|
7142
|
-
(
|
|
7143
|
-
(
|
|
7144
|
-
(
|
|
7145
|
-
workInProgress.elementType ===
|
|
7146
|
-
?
|
|
7147
|
-
: resolveDefaultProps(
|
|
7406
|
+
(Component = workInProgress.type),
|
|
7407
|
+
(context = workInProgress.pendingProps),
|
|
7408
|
+
(context =
|
|
7409
|
+
workInProgress.elementType === Component
|
|
7410
|
+
? context
|
|
7411
|
+
: resolveDefaultProps(Component, context)),
|
|
7148
7412
|
updateFunctionComponent(
|
|
7149
7413
|
current,
|
|
7150
7414
|
workInProgress,
|
|
7151
|
-
|
|
7152
|
-
|
|
7415
|
+
Component,
|
|
7416
|
+
context,
|
|
7153
7417
|
renderLanes
|
|
7154
7418
|
)
|
|
7155
7419
|
);
|
|
7156
7420
|
case 1:
|
|
7157
7421
|
return (
|
|
7158
|
-
(
|
|
7159
|
-
(
|
|
7160
|
-
(
|
|
7161
|
-
workInProgress.elementType ===
|
|
7162
|
-
?
|
|
7163
|
-
: resolveDefaultProps(
|
|
7422
|
+
(Component = workInProgress.type),
|
|
7423
|
+
(context = workInProgress.pendingProps),
|
|
7424
|
+
(context =
|
|
7425
|
+
workInProgress.elementType === Component
|
|
7426
|
+
? context
|
|
7427
|
+
: resolveDefaultProps(Component, context)),
|
|
7164
7428
|
updateClassComponent(
|
|
7165
7429
|
current,
|
|
7166
7430
|
workInProgress,
|
|
7167
|
-
|
|
7168
|
-
|
|
7431
|
+
Component,
|
|
7432
|
+
context,
|
|
7169
7433
|
renderLanes
|
|
7170
7434
|
)
|
|
7171
7435
|
);
|
|
7172
7436
|
case 3:
|
|
7173
7437
|
pushHostRootContext(workInProgress);
|
|
7174
|
-
|
|
7175
|
-
if (null === current || null ===
|
|
7438
|
+
Component = workInProgress.updateQueue;
|
|
7439
|
+
if (null === current || null === Component)
|
|
7176
7440
|
throw Error(
|
|
7177
7441
|
"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue."
|
|
7178
7442
|
);
|
|
7179
|
-
|
|
7180
|
-
|
|
7443
|
+
context = workInProgress.pendingProps;
|
|
7444
|
+
Component = workInProgress.memoizedState.element;
|
|
7181
7445
|
cloneUpdateQueue(current, workInProgress);
|
|
7182
|
-
processUpdateQueue(workInProgress,
|
|
7183
|
-
|
|
7184
|
-
|
|
7446
|
+
processUpdateQueue(workInProgress, context, null, renderLanes);
|
|
7447
|
+
context = workInProgress.memoizedState.element;
|
|
7448
|
+
context === Component
|
|
7185
7449
|
? (workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7186
7450
|
current,
|
|
7187
7451
|
workInProgress,
|
|
7188
7452
|
renderLanes
|
|
7189
7453
|
))
|
|
7190
|
-
: (reconcileChildren(current, workInProgress,
|
|
7454
|
+
: (reconcileChildren(current, workInProgress, context, renderLanes),
|
|
7191
7455
|
(workInProgress = workInProgress.child));
|
|
7192
7456
|
return workInProgress;
|
|
7193
7457
|
case 5:
|
|
7194
7458
|
return (
|
|
7195
7459
|
pushHostContext(workInProgress),
|
|
7196
|
-
(
|
|
7197
|
-
markRef(current, workInProgress),
|
|
7198
|
-
reconcileChildren(current, workInProgress,
|
|
7460
|
+
(Component = workInProgress.pendingProps.children),
|
|
7461
|
+
markRef$1(current, workInProgress),
|
|
7462
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7199
7463
|
workInProgress.child
|
|
7200
7464
|
);
|
|
7201
7465
|
case 6:
|
|
@@ -7208,35 +7472,30 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7208
7472
|
workInProgress,
|
|
7209
7473
|
workInProgress.stateNode.containerInfo
|
|
7210
7474
|
),
|
|
7211
|
-
(
|
|
7475
|
+
(Component = workInProgress.pendingProps),
|
|
7212
7476
|
null === current
|
|
7213
7477
|
? (workInProgress.child = reconcileChildFibers(
|
|
7214
7478
|
workInProgress,
|
|
7215
7479
|
null,
|
|
7216
|
-
|
|
7480
|
+
Component,
|
|
7217
7481
|
renderLanes
|
|
7218
7482
|
))
|
|
7219
|
-
: reconcileChildren(
|
|
7220
|
-
current,
|
|
7221
|
-
workInProgress,
|
|
7222
|
-
updateLanes,
|
|
7223
|
-
renderLanes
|
|
7224
|
-
),
|
|
7483
|
+
: reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7225
7484
|
workInProgress.child
|
|
7226
7485
|
);
|
|
7227
7486
|
case 11:
|
|
7228
7487
|
return (
|
|
7229
|
-
(
|
|
7230
|
-
(
|
|
7231
|
-
(
|
|
7232
|
-
workInProgress.elementType ===
|
|
7233
|
-
?
|
|
7234
|
-
: resolveDefaultProps(
|
|
7488
|
+
(Component = workInProgress.type),
|
|
7489
|
+
(context = workInProgress.pendingProps),
|
|
7490
|
+
(context =
|
|
7491
|
+
workInProgress.elementType === Component
|
|
7492
|
+
? context
|
|
7493
|
+
: resolveDefaultProps(Component, context)),
|
|
7235
7494
|
updateForwardRef(
|
|
7236
7495
|
current,
|
|
7237
7496
|
workInProgress,
|
|
7238
|
-
|
|
7239
|
-
|
|
7497
|
+
Component,
|
|
7498
|
+
context,
|
|
7240
7499
|
renderLanes
|
|
7241
7500
|
)
|
|
7242
7501
|
);
|
|
@@ -7272,16 +7531,16 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7272
7531
|
);
|
|
7273
7532
|
case 10:
|
|
7274
7533
|
a: {
|
|
7275
|
-
|
|
7276
|
-
|
|
7534
|
+
Component = workInProgress.type._context;
|
|
7535
|
+
context = workInProgress.pendingProps;
|
|
7277
7536
|
hasContext = workInProgress.memoizedProps;
|
|
7278
|
-
var newValue =
|
|
7279
|
-
push(valueCursor,
|
|
7280
|
-
|
|
7537
|
+
var newValue = context.value;
|
|
7538
|
+
push(valueCursor, Component._currentValue2);
|
|
7539
|
+
Component._currentValue2 = newValue;
|
|
7281
7540
|
if (null !== hasContext)
|
|
7282
7541
|
if (objectIs(hasContext.value, newValue)) {
|
|
7283
7542
|
if (
|
|
7284
|
-
hasContext.children ===
|
|
7543
|
+
hasContext.children === context.children &&
|
|
7285
7544
|
!didPerformWorkStackCursor.current
|
|
7286
7545
|
) {
|
|
7287
7546
|
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
@@ -7306,7 +7565,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7306
7565
|
null !== dependency;
|
|
7307
7566
|
|
|
7308
7567
|
) {
|
|
7309
|
-
if (dependency.context ===
|
|
7568
|
+
if (dependency.context === Component) {
|
|
7310
7569
|
if (1 === newValue.tag) {
|
|
7311
7570
|
dependency = createUpdate(-1, renderLanes & -renderLanes);
|
|
7312
7571
|
dependency.tag = 2;
|
|
@@ -7357,7 +7616,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7357
7616
|
reconcileChildren(
|
|
7358
7617
|
current,
|
|
7359
7618
|
workInProgress,
|
|
7360
|
-
|
|
7619
|
+
context.children,
|
|
7361
7620
|
renderLanes
|
|
7362
7621
|
);
|
|
7363
7622
|
workInProgress = workInProgress.child;
|
|
@@ -7365,29 +7624,25 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7365
7624
|
return workInProgress;
|
|
7366
7625
|
case 9:
|
|
7367
7626
|
return (
|
|
7368
|
-
(
|
|
7369
|
-
(
|
|
7627
|
+
(context = workInProgress.type),
|
|
7628
|
+
(Component = workInProgress.pendingProps.children),
|
|
7370
7629
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7371
|
-
(
|
|
7372
|
-
(
|
|
7630
|
+
(context = readContext(context)),
|
|
7631
|
+
(Component = Component(context)),
|
|
7373
7632
|
(workInProgress.flags |= 1),
|
|
7374
|
-
reconcileChildren(current, workInProgress,
|
|
7633
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7375
7634
|
workInProgress.child
|
|
7376
7635
|
);
|
|
7377
7636
|
case 14:
|
|
7378
7637
|
return (
|
|
7379
|
-
(
|
|
7380
|
-
(
|
|
7381
|
-
|
|
7382
|
-
workInProgress.pendingProps
|
|
7383
|
-
)),
|
|
7384
|
-
(hasContext = resolveDefaultProps(nextValue.type, hasContext)),
|
|
7638
|
+
(Component = workInProgress.type),
|
|
7639
|
+
(context = resolveDefaultProps(Component, workInProgress.pendingProps)),
|
|
7640
|
+
(context = resolveDefaultProps(Component.type, context)),
|
|
7385
7641
|
updateMemoComponent(
|
|
7386
7642
|
current,
|
|
7387
7643
|
workInProgress,
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
updateLanes,
|
|
7644
|
+
Component,
|
|
7645
|
+
context,
|
|
7391
7646
|
renderLanes
|
|
7392
7647
|
)
|
|
7393
7648
|
);
|
|
@@ -7397,32 +7652,31 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7397
7652
|
workInProgress,
|
|
7398
7653
|
workInProgress.type,
|
|
7399
7654
|
workInProgress.pendingProps,
|
|
7400
|
-
updateLanes,
|
|
7401
7655
|
renderLanes
|
|
7402
7656
|
);
|
|
7403
7657
|
case 17:
|
|
7404
7658
|
return (
|
|
7405
|
-
(
|
|
7406
|
-
(
|
|
7407
|
-
(
|
|
7408
|
-
workInProgress.elementType ===
|
|
7409
|
-
?
|
|
7410
|
-
: resolveDefaultProps(
|
|
7659
|
+
(Component = workInProgress.type),
|
|
7660
|
+
(context = workInProgress.pendingProps),
|
|
7661
|
+
(context =
|
|
7662
|
+
workInProgress.elementType === Component
|
|
7663
|
+
? context
|
|
7664
|
+
: resolveDefaultProps(Component, context)),
|
|
7411
7665
|
null !== current &&
|
|
7412
7666
|
((current.alternate = null),
|
|
7413
7667
|
(workInProgress.alternate = null),
|
|
7414
7668
|
(workInProgress.flags |= 2)),
|
|
7415
7669
|
(workInProgress.tag = 1),
|
|
7416
|
-
isContextProvider(
|
|
7670
|
+
isContextProvider(Component)
|
|
7417
7671
|
? ((current = !0), pushContextProvider(workInProgress))
|
|
7418
7672
|
: (current = !1),
|
|
7419
7673
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7420
|
-
constructClassInstance(workInProgress,
|
|
7421
|
-
mountClassInstance(workInProgress,
|
|
7674
|
+
constructClassInstance(workInProgress, Component, context),
|
|
7675
|
+
mountClassInstance(workInProgress, Component, context, renderLanes),
|
|
7422
7676
|
finishClassComponent(
|
|
7423
7677
|
null,
|
|
7424
7678
|
workInProgress,
|
|
7425
|
-
|
|
7679
|
+
Component,
|
|
7426
7680
|
!0,
|
|
7427
7681
|
current,
|
|
7428
7682
|
renderLanes
|
|
@@ -7441,6 +7695,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7441
7695
|
"). This error is likely caused by a bug in React. Please file an issue."
|
|
7442
7696
|
);
|
|
7443
7697
|
};
|
|
7698
|
+
function scheduleCallback$1(priorityLevel, callback) {
|
|
7699
|
+
return scheduleCallback(priorityLevel, callback);
|
|
7700
|
+
}
|
|
7444
7701
|
function FiberNode(tag, pendingProps, key, mode) {
|
|
7445
7702
|
this.tag = tag;
|
|
7446
7703
|
this.key = key;
|
|
@@ -7491,7 +7748,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7491
7748
|
(workInProgress.flags = 0),
|
|
7492
7749
|
(workInProgress.subtreeFlags = 0),
|
|
7493
7750
|
(workInProgress.deletions = null));
|
|
7494
|
-
workInProgress.flags = current.flags &
|
|
7751
|
+
workInProgress.flags = current.flags & 3670016;
|
|
7495
7752
|
workInProgress.childLanes = current.childLanes;
|
|
7496
7753
|
workInProgress.lanes = current.lanes;
|
|
7497
7754
|
workInProgress.child = current.child;
|
|
@@ -7594,6 +7851,13 @@ function createFiberFromTypeAndProps(
|
|
|
7594
7851
|
key.lanes = lanes;
|
|
7595
7852
|
return key;
|
|
7596
7853
|
}
|
|
7854
|
+
function createOffscreenHostContainerFiber(props, fiberMode, lanes, key) {
|
|
7855
|
+
props = createFiber(5, props, key, fiberMode);
|
|
7856
|
+
props.elementType = "RCTView";
|
|
7857
|
+
props.type = "RCTView";
|
|
7858
|
+
props.lanes = lanes;
|
|
7859
|
+
return props;
|
|
7860
|
+
}
|
|
7597
7861
|
function createFiberFromFragment(elements, mode, lanes, key) {
|
|
7598
7862
|
elements = createFiber(7, elements, key, mode);
|
|
7599
7863
|
elements.lanes = lanes;
|
|
@@ -7726,6 +7990,95 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
7726
7990
|
function emptyFindFiberByHostInstance() {
|
|
7727
7991
|
return null;
|
|
7728
7992
|
}
|
|
7993
|
+
var emptyObject$1 = {},
|
|
7994
|
+
createHierarchy,
|
|
7995
|
+
getHostNode,
|
|
7996
|
+
getHostProps,
|
|
7997
|
+
lastNonHostInstance,
|
|
7998
|
+
getOwnerHierarchy,
|
|
7999
|
+
traverseOwnerTreeUp;
|
|
8000
|
+
createHierarchy = function(fiberHierarchy) {
|
|
8001
|
+
return fiberHierarchy.map(function(fiber) {
|
|
8002
|
+
return {
|
|
8003
|
+
name: getComponentNameFromType(fiber.type),
|
|
8004
|
+
getInspectorData: function(findNodeHandle) {
|
|
8005
|
+
return {
|
|
8006
|
+
props: getHostProps(fiber),
|
|
8007
|
+
source: fiber._debugSource,
|
|
8008
|
+
measure: function(callback) {
|
|
8009
|
+
var hostFiber = findCurrentHostFiber(fiber);
|
|
8010
|
+
if (
|
|
8011
|
+
(hostFiber =
|
|
8012
|
+
null != hostFiber &&
|
|
8013
|
+
null !== hostFiber.stateNode &&
|
|
8014
|
+
hostFiber.stateNode.node)
|
|
8015
|
+
)
|
|
8016
|
+
nativeFabricUIManager.measure(hostFiber, callback);
|
|
8017
|
+
else
|
|
8018
|
+
return ReactNativePrivateInterface.UIManager.measure(
|
|
8019
|
+
getHostNode(fiber, findNodeHandle),
|
|
8020
|
+
callback
|
|
8021
|
+
);
|
|
8022
|
+
}
|
|
8023
|
+
};
|
|
8024
|
+
}
|
|
8025
|
+
};
|
|
8026
|
+
});
|
|
8027
|
+
};
|
|
8028
|
+
getHostNode = function(fiber, findNodeHandle) {
|
|
8029
|
+
for (var hostNode; fiber; ) {
|
|
8030
|
+
null !== fiber.stateNode &&
|
|
8031
|
+
5 === fiber.tag &&
|
|
8032
|
+
(hostNode = findNodeHandle(fiber.stateNode));
|
|
8033
|
+
if (hostNode) return hostNode;
|
|
8034
|
+
fiber = fiber.child;
|
|
8035
|
+
}
|
|
8036
|
+
return null;
|
|
8037
|
+
};
|
|
8038
|
+
getHostProps = function(fiber) {
|
|
8039
|
+
return (fiber = findCurrentHostFiber(fiber))
|
|
8040
|
+
? fiber.memoizedProps || emptyObject$1
|
|
8041
|
+
: emptyObject$1;
|
|
8042
|
+
};
|
|
8043
|
+
exports.getInspectorDataForInstance = function(closestInstance) {
|
|
8044
|
+
if (!closestInstance)
|
|
8045
|
+
return {
|
|
8046
|
+
hierarchy: [],
|
|
8047
|
+
props: emptyObject$1,
|
|
8048
|
+
selectedIndex: null,
|
|
8049
|
+
source: null
|
|
8050
|
+
};
|
|
8051
|
+
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
|
|
8052
|
+
var fiberHierarchy = getOwnerHierarchy(closestInstance),
|
|
8053
|
+
instance = lastNonHostInstance(fiberHierarchy);
|
|
8054
|
+
closestInstance = createHierarchy(fiberHierarchy);
|
|
8055
|
+
var props = getHostProps(instance),
|
|
8056
|
+
source = instance._debugSource;
|
|
8057
|
+
fiberHierarchy = fiberHierarchy.indexOf(instance);
|
|
8058
|
+
return {
|
|
8059
|
+
hierarchy: closestInstance,
|
|
8060
|
+
props: props,
|
|
8061
|
+
selectedIndex: fiberHierarchy,
|
|
8062
|
+
source: source
|
|
8063
|
+
};
|
|
8064
|
+
};
|
|
8065
|
+
getOwnerHierarchy = function(instance) {
|
|
8066
|
+
var hierarchy = [];
|
|
8067
|
+
traverseOwnerTreeUp(hierarchy, instance);
|
|
8068
|
+
return hierarchy;
|
|
8069
|
+
};
|
|
8070
|
+
lastNonHostInstance = function(hierarchy) {
|
|
8071
|
+
for (var i = hierarchy.length - 1; 1 < i; i--) {
|
|
8072
|
+
var instance = hierarchy[i];
|
|
8073
|
+
if (5 !== instance.tag) return instance;
|
|
8074
|
+
}
|
|
8075
|
+
return hierarchy[0];
|
|
8076
|
+
};
|
|
8077
|
+
traverseOwnerTreeUp = function(hierarchy, instance) {
|
|
8078
|
+
instance &&
|
|
8079
|
+
(hierarchy.unshift(instance),
|
|
8080
|
+
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
|
|
8081
|
+
};
|
|
7729
8082
|
function findNodeHandle(componentOrHandle) {
|
|
7730
8083
|
if (null == componentOrHandle) return null;
|
|
7731
8084
|
if ("number" === typeof componentOrHandle) return componentOrHandle;
|
|
@@ -7752,10 +8105,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
7752
8105
|
}
|
|
7753
8106
|
};
|
|
7754
8107
|
var roots = new Map(),
|
|
7755
|
-
devToolsConfig$jscomp$
|
|
8108
|
+
devToolsConfig$jscomp$inline_950 = {
|
|
7756
8109
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
7757
8110
|
bundleType: 0,
|
|
7758
|
-
version: "18.0.0-
|
|
8111
|
+
version: "18.0.0-e8feb11b6-20210915",
|
|
7759
8112
|
rendererPackageName: "react-native-renderer",
|
|
7760
8113
|
rendererConfig: {
|
|
7761
8114
|
getInspectorDataForViewTag: function() {
|
|
@@ -7770,11 +8123,11 @@ var roots = new Map(),
|
|
|
7770
8123
|
}.bind(null, findNodeHandle)
|
|
7771
8124
|
}
|
|
7772
8125
|
};
|
|
7773
|
-
var internals$jscomp$
|
|
7774
|
-
bundleType: devToolsConfig$jscomp$
|
|
7775
|
-
version: devToolsConfig$jscomp$
|
|
7776
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
7777
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8126
|
+
var internals$jscomp$inline_1191 = {
|
|
8127
|
+
bundleType: devToolsConfig$jscomp$inline_950.bundleType,
|
|
8128
|
+
version: devToolsConfig$jscomp$inline_950.version,
|
|
8129
|
+
rendererPackageName: devToolsConfig$jscomp$inline_950.rendererPackageName,
|
|
8130
|
+
rendererConfig: devToolsConfig$jscomp$inline_950.rendererConfig,
|
|
7778
8131
|
overrideHookState: null,
|
|
7779
8132
|
overrideHookStateDeletePath: null,
|
|
7780
8133
|
overrideHookStateRenamePath: null,
|
|
@@ -7790,26 +8143,27 @@ var internals$jscomp$inline_1177 = {
|
|
|
7790
8143
|
return null === fiber ? null : fiber.stateNode;
|
|
7791
8144
|
},
|
|
7792
8145
|
findFiberByHostInstance:
|
|
7793
|
-
devToolsConfig$jscomp$
|
|
8146
|
+
devToolsConfig$jscomp$inline_950.findFiberByHostInstance ||
|
|
7794
8147
|
emptyFindFiberByHostInstance,
|
|
7795
8148
|
findHostInstancesForRefresh: null,
|
|
7796
8149
|
scheduleRefresh: null,
|
|
7797
8150
|
scheduleRoot: null,
|
|
7798
8151
|
setRefreshHandler: null,
|
|
7799
8152
|
getCurrentFiber: null,
|
|
7800
|
-
|
|
8153
|
+
getIsStrictMode: null,
|
|
8154
|
+
reconcilerVersion: "18.0.0-e8feb11b6-20210915"
|
|
7801
8155
|
};
|
|
7802
8156
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
7803
|
-
var hook$jscomp$
|
|
8157
|
+
var hook$jscomp$inline_1192 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
7804
8158
|
if (
|
|
7805
|
-
!hook$jscomp$
|
|
7806
|
-
hook$jscomp$
|
|
8159
|
+
!hook$jscomp$inline_1192.isDisabled &&
|
|
8160
|
+
hook$jscomp$inline_1192.supportsFiber
|
|
7807
8161
|
)
|
|
7808
8162
|
try {
|
|
7809
|
-
(rendererID = hook$jscomp$
|
|
7810
|
-
internals$jscomp$
|
|
8163
|
+
(rendererID = hook$jscomp$inline_1192.inject(
|
|
8164
|
+
internals$jscomp$inline_1191
|
|
7811
8165
|
)),
|
|
7812
|
-
(injectedHook = hook$jscomp$
|
|
8166
|
+
(injectedHook = hook$jscomp$inline_1192);
|
|
7813
8167
|
} catch (err) {}
|
|
7814
8168
|
}
|
|
7815
8169
|
exports.createPortal = function(children, containerTag) {
|
|
@@ -7822,12 +8176,10 @@ exports.createPortal = function(children, containerTag) {
|
|
|
7822
8176
|
};
|
|
7823
8177
|
exports.dispatchCommand = function(handle, command, args) {
|
|
7824
8178
|
null != handle._nativeTag &&
|
|
7825
|
-
(handle._internalInstanceHandle
|
|
7826
|
-
?
|
|
7827
|
-
|
|
7828
|
-
command,
|
|
7829
|
-
args
|
|
7830
|
-
)
|
|
8179
|
+
(null != handle._internalInstanceHandle
|
|
8180
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8181
|
+
null != handle &&
|
|
8182
|
+
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
|
|
7831
8183
|
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
|
|
7832
8184
|
handle._nativeTag,
|
|
7833
8185
|
command,
|
|
@@ -7873,11 +8225,10 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
|
|
|
7873
8225
|
};
|
|
7874
8226
|
exports.sendAccessibilityEvent = function(handle, eventType) {
|
|
7875
8227
|
null != handle._nativeTag &&
|
|
7876
|
-
(handle._internalInstanceHandle
|
|
7877
|
-
?
|
|
7878
|
-
|
|
7879
|
-
eventType
|
|
7880
|
-
)
|
|
8228
|
+
(null != handle._internalInstanceHandle
|
|
8229
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8230
|
+
null != handle &&
|
|
8231
|
+
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
|
|
7881
8232
|
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
|
|
7882
8233
|
handle._nativeTag,
|
|
7883
8234
|
eventType
|