{"version":3,"sources":["__prelude__","D:\\downlooad\\desihealth_customer (1)\\node_modules\\metro\\src\\lib\\polyfills\\require.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\polyfills\\console.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\polyfills\\error-guard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\polyfills\\Object.es7.js","D:\\downlooad\\desihealth_customer (1)\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\interopRequireDefault.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\invariant\\browser.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\warnOnce.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\warning.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\emptyFunction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\AccessibilityInfo\\AccessibilityInfo.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\AccessibilityInfo\\NativeAccessibilityInfo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\interopRequireWildcard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\typeof.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\TurboModule\\TurboModuleRegistry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\BatchedBridge\\NativeModules.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\extends.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\slicedToArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\arrayWithHoles.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\iterableToArrayLimit.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\unsupportedIterableToArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\arrayLikeToArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\nonIterableRest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\BatchedBridge\\BatchedBridge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\BatchedBridge\\MessageQueue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\toConsumableArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\arrayWithoutHoles.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\iterableToArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\nonIterableSpread.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\classCallCheck.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\createClass.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\vendor\\core\\ErrorUtils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Performance\\Systrace.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\deepFreezeAndThrowOnMutationInDev.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\stringifySafe.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\defineLazyObjectProperty.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\EventEmitter\\RCTDeviceEventEmitter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\get.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\superPropBase.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\getPrototypeOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\inherits.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\setPrototypeOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\possibleConstructorReturn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\assertThisInitialized.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\vendor\\emitter\\EventEmitter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\vendor\\emitter\\EmitterSubscription.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\vendor\\emitter\\EventSubscription.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\vendor\\emitter\\EventSubscriptionVendor.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\UIManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\DummyUIManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\PaperUIManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\defineProperty.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\NativeUIManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\Platform.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\NativePlatformConstantsAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\UIManagerProperties.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ActivityIndicator\\ActivityIndicator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\objectWithoutProperties.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\objectWithoutPropertiesLoose.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react\\cjs\\react.production.min.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\object-assign\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\StyleSheet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\PixelRatio.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\Dimensions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\NativeDeviceInfo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\View\\ReactNativeStyleAttributes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedImageStylePropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedColorPropType.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\normalizeColor.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedLayoutPropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\prop-types\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\prop-types\\factoryWithThrowingShims.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\prop-types\\lib\\ReactPropTypesSecret.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedShadowPropTypesIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedTransformPropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\deprecatedPropType.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedTextStylePropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedViewStylePropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\processColor.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\processTransform.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\MatrixMath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\differ\\sizesDiffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\StyleSheetValidation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\flattenStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\View\\View.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\View\\ViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\codegenNativeCommands.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Renderer\\shims\\ReactNative.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Renderer\\implementations\\ReactNativeRenderer-prod.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactPrivate\\ReactNativePrivateInitializeCore.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\InitializeCore.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpGlobals.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpSystrace.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpErrorHandling.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\ExceptionsManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\wrapNativeSuper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\isNativeFunction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\construct.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\helpers\\isNativeReflectConstruct.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\LogBox\\Data\\LogBoxData.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\LogBox\\Data\\LogBoxLog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\LogBox\\Data\\LogBoxSymbolication.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\Devtools\\symbolicateStackTrace.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@babel\\runtime\\regenerator\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\regenerator-runtime\\runtime.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\NativeModules\\specs\\NativeSourceCode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\Devtools\\getDevServer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Network\\fetch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\whatwg-fetch\\dist\\fetch.umd.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\LogBox\\Data\\parseLogBoxLog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\UTFSequence.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\Devtools\\parseErrorStack.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\Devtools\\parseHermesStack.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stacktrace-parser\\dist\\stack-trace-parser.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\NativeModules\\specs\\NativeLogBox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\NativeExceptionsManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\polyfillPromise.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\PolyfillFunctions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Promise.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\promise\\setimmediate\\es6-extensions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\promise\\setimmediate\\core.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\promise\\setimmediate\\done.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\promise\\setimmediate\\finally.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpRegeneratorRuntime.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpTimers.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\Timers\\JSTimers.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\Timers\\NativeTiming.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\performanceNow.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\performance.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\ExecutionEnvironment.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpXHR.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Network\\XMLHttpRequest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\BlobManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\NativeBlobModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\Blob.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\BlobRegistry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\event-target-shim\\dist\\event-target-shim.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Network\\RCTNetworking.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Network\\NativeNetworkingAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\EventEmitter\\NativeEventEmitter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Network\\convertRequestBody.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\binaryToBase64.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\base64-js\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Network\\FormData.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\WebSocket\\WebSocket.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\WebSocket\\NativeWebSocketModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\WebSocket\\WebSocketEvent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\File.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\FileReader.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\NativeFileReaderModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Blob\\URL.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\abort-controller\\dist\\abort-controller.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpAlert.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Alert\\Alert.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\NativeModules\\specs\\NativeDialogManagerAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Alert\\RCTAlertManager.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpNavigator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpBatchedBridge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\HeapCapture\\HeapCapture.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\HeapCapture\\NativeHeapCapture.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Performance\\SamplingProfiler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Performance\\NativeJSCSamplingProfiler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\RCTLog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\EventEmitter\\RCTNativeAppEventEmitter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\GlobalPerformanceLogger.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\createPerformanceLogger.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\infoLog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\JSDevSupportModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\NativeJSDevSupport.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\HMRClientProdShim.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\setUpSegmentFetcher.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\SegmentFetcher\\NativeSegmentFetcher.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactPrivate\\ReactNativePrivateInterface.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\EventEmitter\\RCTEventEmitter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Renderer\\shims\\ReactNativeViewConfigRegistry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\TextInput\\TextInputState.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\differ\\deepDiffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\ReactFiberErrorDialog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\scheduler\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\scheduler\\cjs\\scheduler.production.min.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\View\\ReactNativeViewViewConfigAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\registerGeneratedViewConfig.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\verifyComponentAttributeEquivalence.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\View\\ReactNativeViewViewConfig.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\differ\\insetsDiffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\differ\\matricesDiffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\getNativeComponentAttributes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\differ\\pointsDiffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\processColorArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\resolveAssetSource.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\AssetRegistry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\AssetSourceResolver.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\assetPathUtils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\requireNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Renderer\\shims\\createReactNativeComponentClass.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ProgressBarAndroid\\ProgressBarAndroid.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ProgressBarAndroid\\ProgressBarAndroidNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\codegenNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Text\\Text.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedTextPropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedEdgeInsetsPropType.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedStyleSheetPropType.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\deprecatedCreateStrictShapeTypeChecker.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\View\\ReactNativeViewAttributes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Text\\TextAncestor.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\Touchable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\BoundingDimensions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\PooledClass.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\Position.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\AppleTV\\TVEventHandler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\AppleTV\\NativeTVNavigationEventEmitter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Sound\\SoundManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Sound\\NativeSoundManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\keyMirror.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\invariant.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\nullthrows\\nullthrows.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\TouchableNativeFeedback.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Pressability\\Pressability.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Pressability\\HoverState.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Pressability\\PressabilityDebug.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\TVTouchable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\TouchableOpacity.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\Animated.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\AnimatedMock.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\AnimatedEvent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedValue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedInterpolation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedNode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\NativeAnimatedHelper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\NativeAnimatedModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedWithChildren.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\InteractionManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\TaskQueue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\AnimatedImplementation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedAddition.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedDiffClamp.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedDivision.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedModulo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedMultiplication.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedTransform.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedSubtraction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedTracking.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\nodes\\AnimatedValueXY.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\animations\\DecayAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\animations\\Animation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\animations\\SpringAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\SpringConfig.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\animations\\TimingAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\Easing.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\bezier.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\createAnimatedComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\setAndForwardRef.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\components\\AnimatedFlatList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\FlatList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\ScrollView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\ScrollViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\ScrollViewViewConfig.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\ScrollContentViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\AndroidHorizontalScrollViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\AndroidHorizontalScrollContentViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollResponder.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\ScrollViewCommands.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\FrameRateLogger.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\NativeFrameRateLogger.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Keyboard\\Keyboard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Keyboard\\NativeKeyboardObserver.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\LayoutAnimation\\LayoutAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\dismissKeyboard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\ScrollViewStickyHeader.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ScrollView\\processDecelerationRate.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\StyleSheet\\splitLayoutProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\VirtualizedList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\Batchinator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\FillRateHelper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\RefreshControl\\RefreshControl.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\RefreshControl\\AndroidSwipeRefreshLayoutNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\RefreshControl\\PullToRefreshViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\ViewabilityHelper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\VirtualizeUtils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\components\\AnimatedImage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\Image.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\NativeImageLoaderAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedViewPropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedViewAccessibility.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\ImageViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\TextInlineImageNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\components\\AnimatedScrollView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\components\\AnimatedSectionList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\SectionList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Lists\\VirtualizedSectionList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\components\\AnimatedText.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Animated\\src\\components\\AnimatedView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\CheckBox\\CheckBox.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\CheckBox\\AndroidCheckBoxNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\DatePicker\\DatePickerIOS.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\DrawerAndroid\\DrawerLayoutAndroid.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\DrawerAndroid\\AndroidDrawerLayoutNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\StatusBar\\StatusBar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\StatusBar\\NativeStatusBarManagerAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\StatusBar\\NativeStatusBarManagerIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\ImageBackground.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\TextInput\\InputAccessoryView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\TextInput\\RCTInputAccessoryViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Keyboard\\KeyboardAvoidingView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\MaskedView\\MaskedViewIOS.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\UnimplementedViews\\UnimplementedView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Modal\\Modal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Modal\\NativeModalManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Modal\\RCTModalHostViewNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\AppContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\RootTagContext.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\I18nManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\NativeI18nManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Picker\\Picker.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Picker\\PickerAndroid.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Picker\\AndroidDropdownPickerNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Picker\\AndroidDialogPickerNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Picker\\PickerIOS.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ProgressViewIOS\\ProgressViewIOS.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\SafeAreaView\\SafeAreaView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\SegmentedControlIOS\\SegmentedControlIOS.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Slider\\Slider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Slider\\SliderNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Switch\\Switch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Switch\\AndroidSwitchNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Switch\\SwitchNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\TextInput\\TextInput.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedTextInputPropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\TouchableWithoutFeedback.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\TextInput\\AndroidTextInputNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Touchable\\TouchableHighlight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ActionSheetIOS\\ActionSheetIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ActionSheetIOS\\NativeActionSheetManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\Appearance.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\NativeAppearance.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\DebugEnvironment.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\AppRegistry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\NativeHeadlessJsTaskSupport.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\HeadlessJsTaskError.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\BugReporting\\BugReporting.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\BugReporting\\NativeBugReporting.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\NativeModules\\specs\\NativeRedBox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\BugReporting\\dumpReactTree.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\SceneTracker.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\ReactNative\\renderApplication.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\PerformanceLoggerContext.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\BackHandler.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\NativeModules\\specs\\NativeDeviceEventManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Renderer\\shims\\ReactFabric.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Renderer\\implementations\\ReactFabric-prod.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\AppState\\AppState.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\AppState\\NativeAppState.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\logError.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Storage\\AsyncStorage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Storage\\NativeAsyncStorage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Clipboard\\Clipboard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\Clipboard\\NativeClipboard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\DatePickerAndroid\\DatePickerAndroid.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\DatePickerAndroid\\NativeDatePickerAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\DeviceInfo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\DevSettings.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\NativeModules\\specs\\NativeDevSettings.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\ImagePickerIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Image\\NativeImagePickerIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Linking\\Linking.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Linking\\NativeLinking.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\PanResponder.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Interaction\\TouchHistoryMath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\PermissionsAndroid\\PermissionsAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\PermissionsAndroid\\NativePermissionsAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\PushNotificationIOS\\PushNotificationIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\PushNotificationIOS\\NativePushNotificationManagerIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Settings\\Settings.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Share\\Share.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Share\\NativeShareModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\StatusBar\\StatusBarIOS.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ToastAndroid\\ToastAndroid.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Components\\ToastAndroid\\NativeToastAndroid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\useColorScheme.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\use-subscription\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\use-subscription\\cjs\\use-subscription.production.min.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Utilities\\useWindowDimensions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Vibration\\Vibration.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Vibration\\NativeVibration.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\YellowBox\\YellowBox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\YellowBox\\Data\\YellowBoxWarning.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\YellowBox\\Data\\YellowBoxCategory.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\YellowBox\\Data\\YellowBoxSymbolication.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\DeprecatedPropTypes\\DeprecatedPointPropType.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\redux\\lib\\redux.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\redux\\node_modules\\symbol-observable\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\redux\\node_modules\\symbol-observable\\lib\\ponyfill.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\SplashReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\ActionTypes.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\HomeReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\VendorReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\ProductReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\FaqReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\CategoryReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\SubCategoryReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\PrivacyReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\RegisterReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\LoginReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\AddressReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\AddressListReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\PaymentReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\PrescriptionReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\CreatePrescriptionReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\ViewPrescriptionReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\CartReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\MyOrdersReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\PromoReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\ProfileReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\config\\Constants.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\logo_with_name.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\splash.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\logo.jpg","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\heart.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\forgot.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\otp.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\reset_password.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\loading.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\location_pin.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\tablet.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\list.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\banner1.jpeg","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\banner2.jpeg","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\banner3.jpeg","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\safety.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\order.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\trust.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\wallet.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\doctor.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\location_icon.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\dentist.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\cardiologist.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\orthopedics.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\surgery.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\tablet_house.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\doctor_one.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\doc.jpg","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\covid.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\headache.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\fever.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\diabetes.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\throat_pain.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\back_pain.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\cough.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\acidity.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\infections.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\weight_loss.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\constipation.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\depression.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\hairfall.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\anxiety.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\stomach_ache.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\blood_pressure.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\location.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\doctor_image.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\doctorthree.jpg","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\noservice_lottie.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\no_data_lottie.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\no_appointment.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\no_orders.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\74065-video-calling.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\no_prescription.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\no_address.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\no_wallet.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\doctor_list.json","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\ForgotReducer.js","D:\\downlooad\\desihealth_customer (1)\\src\\reducers\\ResetReducer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\components\\Provider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\components\\Context.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\Subscription.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\batch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\components\\connectAdvanced.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\node_modules\\hoist-non-react-statics\\dist\\hoist-non-react-statics.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-is\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-is\\cjs\\react-is.production.min.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\useIsomorphicLayoutEffect.native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\connect.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\shallowEqual.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\mapDispatchToProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\wrapMapToProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\verifyPlainObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\isPlainObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\warning.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\mapStateToProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\mergeProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\selectorFactory.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\connect\\verifySubselectors.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\hooks\\useDispatch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\hooks\\useStore.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\hooks\\useReduxContext.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\hooks\\useSelector.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-redux\\lib\\utils\\reactBatchedUpdates.native.js","D:\\downlooad\\desihealth_customer (1)\\App.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\TransitionConfigs\\CardStyleInterpolators.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-iphone-x-helper\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\conditional.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\TransitionConfigs\\HeaderStyleInterpolators.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\TransitionConfigs\\TransitionSpecs.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\TransitionConfigs\\TransitionPresets.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\navigators\\createStackNavigator.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\CommonActions.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\BaseRouter.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\nanoid\\non-secure\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\StackRouter.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\TabRouter.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\DrawerRouter.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\routers\\src\\types.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\BaseNavigationContainer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\EnsureSingleNavigator.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\NavigationBuilderContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useScheduleUpdate.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useFocusedListeners.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useDevTools.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useStateGetters.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useOptionsGetters.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useEventEmitter.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useSyncState.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\isSerializable.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\createNavigatorFactory.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\Screen.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\NavigationHelpersContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\NavigationContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\NavigationRouteContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useNavigationBuilder.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useRegisterNavigator.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useDescriptors.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\SceneView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\StaticContainer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useNavigationCache.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useNavigationHelpers.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\types.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useOnAction.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useFocusEvents.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useOnRouteFocus.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useChildActionListeners.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useFocusedListenersChildrenAdapter.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useOnGetState.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useNavigation.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useRoute.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useFocusEffect.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useIsFocused.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\useNavigationState.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\getStateFromPath.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\node_modules\\escape-string-regexp\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\query-string\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\strict-uri-encode\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\decode-uri-component\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\split-on-first\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\getPathFromState.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\core\\src\\getActionFromState.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\NavigationContainer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\theming\\ThemeProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\theming\\ThemeContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\theming\\DefaultTheme.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\LinkingContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useThenable.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useLinking.native.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useBackButton.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useScrollToTop.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\theming\\DarkTheme.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\theming\\useTheme.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\Link.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useLinkProps.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useLinkTo.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\native\\src\\useLinkBuilder.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Stack\\StackView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-area-context\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-area-context\\src\\SafeAreaContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-area-context\\src\\NativeSafeAreaView.native.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-area-context\\src\\SafeAreaView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-area-context\\src\\InitialWindow.native.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-area-context\\src\\SafeArea.types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\GestureHandler.native.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\Swipeable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\GestureHandler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\createNativeWrapper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\NativeViewGestureHandler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\createHandler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\fbjs\\lib\\areEqual.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\RNGestureHandlerModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\State.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\GestureHandlerPropTypes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\Directions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\gestureHandlerRootHOC.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\node_modules\\hoist-non-react-statics\\dist\\hoist-non-react-statics.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\GestureHandlerRootView.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\GestureButtons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\GestureHandlerButton.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\GestureComponents.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\Gestures.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\PlatformConstants.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\DrawerLayout.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\touchables\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\touchables\\TouchableNativeFeedback.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\touchables\\GenericTouchable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\touchables\\TouchableWithoutFeedback.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\touchables\\TouchableOpacity.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gesture-handler\\touchables\\TouchableHighlight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\GestureHandlerRefContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Stack\\CardStack.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Screens.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-screens\\src\\screens.native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\Libraries\\Core\\ReactNativeVersion.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Header\\HeaderSegment.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Header\\HeaderBackButton.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\MaskedView.native.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\masked-view\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\masked-view\\js\\MaskedView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\TouchableItem.native.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\BorderlessButton.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\assets\\back-icon.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\assets\\back-icon-mask.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Header\\HeaderBackground.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\memoize.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Stack\\CardContainer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Stack\\Card.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color-string\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color-name\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\simple-swizzle\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\simple-swizzle\\node_modules\\is-arrayish\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color\\node_modules\\color-convert\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color\\node_modules\\color-convert\\conversions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color\\node_modules\\color-name\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\color\\node_modules\\color-convert\\route.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Stack\\CardSheet.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\CardAnimationContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\getDistanceForDirection.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\getInvertedMultiplier.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\HeaderHeightContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\KeyboardManager.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Header\\HeaderContainer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Header\\Header.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\Header\\HeaderTitle.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\debounce.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\views\\SafeAreaProviderCompat.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\useCardAnimation.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\useHeaderHeight.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\stack\\src\\utils\\useGestureHandlerRef.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-navigation-transitions\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Ionicons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\create-icon-set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\react-native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\ensure-native-module-available.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\create-icon-source-cache.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\icon-button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseGetTag.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Symbol.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_root.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_freeGlobal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getRawTag.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_objectToString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isObjectLike.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\omit.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_arrayMap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseClone.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Stack.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_ListCache.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_listCacheClear.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_listCacheDelete.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_assocIndexOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\eq.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_listCacheGet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_listCacheHas.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_listCacheSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_stackClear.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_stackDelete.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_stackGet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_stackHas.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_stackSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Map.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getNative.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsNative.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isFunction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_isMasked.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_coreJsData.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_toSource.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getValue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_MapCache.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_mapCacheClear.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Hash.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_hashClear.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_nativeCreate.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_hashDelete.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_hashGet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_hashHas.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_hashSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_mapCacheDelete.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getMapData.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_isKeyable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_mapCacheGet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_mapCacheHas.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_mapCacheSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_arrayEach.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_assignValue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseAssignValue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_defineProperty.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseAssign.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_copyObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\keys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_arrayLikeKeys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseTimes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isArguments.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsArguments.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isBuffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\stubFalse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_isIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isTypedArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsTypedArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isLength.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseUnary.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_nodeUtil.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseKeys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_isPrototype.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_nativeKeys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_overArg.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isArrayLike.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseAssignIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\keysIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseKeysIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_nativeKeysIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cloneBuffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_copyArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_copySymbols.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getSymbols.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_arrayFilter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\stubArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_copySymbolsIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getSymbolsIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_arrayPush.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getPrototype.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getAllKeys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseGetAllKeys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getAllKeysIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_getTag.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_DataView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Promise.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_WeakMap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_initCloneArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_initCloneByTag.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cloneArrayBuffer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_Uint8Array.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cloneDataView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cloneRegExp.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cloneSymbol.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cloneTypedArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_initCloneObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseCreate.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isMap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsMap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseUnset.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_castPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_isKey.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isSymbol.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_stringToPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_memoizeCapped.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\memoize.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\toString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseToString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\last.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_parent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseGet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_toKey.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseSlice.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_customOmitClone.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isPlainObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_flatRest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\flatten.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseFlatten.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_isFlattenable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_overRest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_apply.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_setToString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseSetToString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\constant.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\identity.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_shortOut.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\pick.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_basePick.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_basePickBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseSet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\hasIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseHasIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_hasPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\tab-bar-item-ios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\isEqual.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsEqual.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_baseIsEqualDeep.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_equalArrays.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_SetCache.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_setCacheAdd.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_setCacheHas.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_arraySome.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_cacheHas.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_equalByTag.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_mapToArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_setToArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_equalObjects.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\toolbar-android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\toolbar-android\\js\\ToolbarAndroid.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\toolbar-android\\js\\ToolbarAndroidNativeComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Ionicons.json","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\css\\Colors.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\navigators\\createBottomTabNavigator.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\views\\BottomTabView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\views\\SafeAreaProviderCompat.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\views\\ResourceSavingScene.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\views\\BottomTabBar.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\views\\BottomTabItem.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-navigation\\bottom-tabs\\src\\views\\TabBarIcon.tsx","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Splash.js","D:\\downlooad\\desihealth_customer (1)\\src\\components\\GeneralComponents.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\buttons\\Button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-status-bar-height\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\BackgroundImage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\colors.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\fonts.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\ThemeProvider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\node_modules\\deepmerge\\dist\\cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\colorsDark.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\withTheme.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\node_modules\\hoist-non-react-statics\\dist\\hoist-non-react-statics.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\config\\theme.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\renderNode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\getIconType.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Zocial.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Zocial.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Octicons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Octicons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\MaterialIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\MaterialIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\MaterialCommunityIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\MaterialCommunityIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Foundation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Foundation.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\EvilIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\EvilIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Entypo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Entypo.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\FontAwesome.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\FontAwesome.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\FontAwesome5.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\create-icon-set-from-fontawesome5.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\lib\\create-multi-style-icon-set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\FontAwesome5Free.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\FontAwesome5Free_meta.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\SimpleLineIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\SimpleLineIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Feather.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Feather.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\AntDesign.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\AntDesign.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\Fontisto.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-vector-icons\\glyphmaps\\Fontisto.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\normalizeText.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\nodeType.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\types.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\icons\\Icon.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\helpers\\getIconStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\input\\Input.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItem.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\avatar\\Avatar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash.isequal\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\image\\Image.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\avatar\\Accessory.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\badge\\Badge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\text\\Text.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemContent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemChevron.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemInput.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemCheckBox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\checkbox\\CheckBox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\checkbox\\CheckBoxIcon.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemButtonGroup.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\buttons\\ButtonGroup.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemTitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\list\\ListItemSubtitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\social\\SocialIcon.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\overlay\\Overlay.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\searchbar\\SearchBar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\searchbar\\SearchBar-ios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\searchbar\\SearchBar-android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\searchbar\\SearchBar-default.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\badge\\withBadge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\divider\\Divider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\slider\\Slider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\card\\Card.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\card\\CardTitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\card\\CardDivider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\card\\CardImage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\card\\CardFeaturedTitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\card\\CardFeaturedSubtitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\tile\\Tile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\tile\\FeaturedTile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\header\\Header.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\pricing\\PricingCard.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\tooltip\\Tooltip.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\tooltip\\Triangle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\tooltip\\getTooltipCoordinate.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-elements\\src\\bottomSheet\\BottomSheet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\SwipeRating.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\times.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\_castFunction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\toInteger.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\toFinite.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\toNumber.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\images\\star.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\images\\heart.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\images\\rocket.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\images\\bell.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\TapRating.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash\\lodash.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\components\\Star.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\images\\airbnb-star.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ratings\\src\\images\\airbnb-star-selected.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-loading-spinner-overlay\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\async-storage\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\async-storage\\src\\AsyncStorage.native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\async-storage\\src\\hooks.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\axios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\bind.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\Axios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\buildURL.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\InterceptorManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\dispatchRequest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\transformData.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\cancel\\isCancel.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\defaults.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\normalizeHeaderName.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\adapters\\xhr.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\settle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\createError.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\enhanceError.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\buildFullPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\isAbsoluteURL.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\combineURLs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\parseHeaders.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\isURLSameOrigin.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\cookies.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\core\\mergeConfig.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\cancel\\Cancel.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\cancel\\CancelToken.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\axios\\lib\\helpers\\spread.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\Panaux-Logo2.png","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\SplashActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\Notification.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\AndroidNotification.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\AndroidAction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\AndroidRemoteInput.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\types.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\IOSNotification.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\AndroidNotifications.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\AndroidChannel.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\AndroidChannelGroup.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-firebase-push-notifications\\src\\notifications\\IOSNotifications.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Home.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\HomeActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\ProductActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-slider-show\\Slideshow.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native\\package.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\connectStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\hoist-non-react-statics\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\StyleNormalizer\\normalizeStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\StyleNormalizer\\StyleNormalizer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\StyleNormalizer\\ShorthandsNormalizerFactory.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\Theme.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\resolveIncludes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\mergeComponentAndThemeStyles.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\resolveComponentStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\customMerge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\StyleProvider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base-shoutem-theme\\src\\addons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-easy-grid\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-easy-grid\\Components\\Row.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-easy-grid\\Utils\\computeProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-easy-grid\\Components\\Grid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-easy-grid\\Components\\Col.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\init.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Body.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Left.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Right.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Header.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\variables\\platform.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\variables\\commonColor.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Switch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Thumbnail.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Container.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Content.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Title.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Subtitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\InputGroup.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Badge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\CheckBox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Card.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Radio.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\H3.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\H2.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\H1.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Footer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\FooterTab.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Fab.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Item.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Label.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Textarea.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Text.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Toast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Tab.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\TabBar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\TabContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\View.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\TabHeading.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Icon.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Input.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\SwipeRow.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Segment.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Spinner.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\CardItem.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\ListItem.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Picker.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Form.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\theme\\components\\Separator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Drawer\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-drawer\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-drawer\\tweener.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\tween-functions\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\SwipeRow.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\utils\\mapPropsToStyleNames.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Left.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Right.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Body.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\ListItem.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Text.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\View.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\utils\\computeProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\DatePicker.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\TabHeading.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\TabContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\IconNB.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Icon\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Icon\\NBIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Header.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\utils\\getStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\InputGroup.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Input.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Base\\NativeBaseComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Title.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Fab.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Badge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Checkbox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Radio.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Thumbnail.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Card.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\CardItem.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\H1.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\H2.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\H3.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Spinner.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Switch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Container.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\utils\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\utils\\interactionManager.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Root.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\ToastContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Toast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Actionsheet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Content.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-keyboard-aware-scroll-view\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-keyboard-aware-scroll-view\\lib\\KeyboardAwareHOC.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-keyboard-aware-scroll-view\\lib\\KeyboardAwareScrollView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-keyboard-aware-scroll-view\\lib\\KeyboardAwareFlatList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-keyboard-aware-scroll-view\\lib\\KeyboardAwareSectionList.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Footer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\FooterTab.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Form.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Picker.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\create-react-class\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\create-react-class\\factory.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\create-react-class\\node_modules\\fbjs\\lib\\emptyObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\create-react-class\\node_modules\\fbjs\\lib\\invariant.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\List.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Separator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\DeckSwiper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\clamp\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Item.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Label.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Segment.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Textarea.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tab.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tabs\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-timer-mixin\\TimerMixin.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tabs\\SceneComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tabs\\StaticContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tabs\\DefaultTabBar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tabs\\Button.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Tabs\\ScrollableTabBar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Subtitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\basic\\Accordion.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\native-base\\dist\\src\\vue-native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-search-bar\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-search-bar\\src\\SearchBar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-material-menu\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-material-menu\\src\\MenuDivider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-material-menu\\src\\MenuItem.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-material-menu\\src\\Menu.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-raw-bottom-sheet\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-raw-bottom-sheet\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-raw-bottom-sheet\\src\\style.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\rn-range-slider\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-check-box\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-check-box\\img\\ic_indeterminate_check_box.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-check-box\\img\\ic_check_box.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-check-box\\img\\ic_check_box_outline_blank.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-android-location-enabler\\index.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Pharmacy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lottie-react-native\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lottie-react-native\\lib\\LottieView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-modules\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-modules\\lib\\SafeModule.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-modules\\lib\\NativeSafeModule.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\dedent\\dist\\dedent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-modules\\lib\\SafeComponent.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-safe-modules\\lib\\NativeSafeComponent.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\json\\Pharmacy.json","D:\\downlooad\\desihealth_customer (1)\\src\\views\\EditProduct.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ui-stepper\\UIStepper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ui-stepper\\assets\\decrement.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-ui-stepper\\assets\\increment.png","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\CartActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Call.js","D:\\downlooad\\desihealth_customer (1)\\src\\config\\Accordian.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-twilio-programmable-voice\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-permissions\\lib\\commonjs\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-permissions\\lib\\commonjs\\constants.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-permissions\\lib\\commonjs\\module.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-permissions\\lib\\commonjs\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-permissions\\lib\\commonjs\\types.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\VideoCall.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\AgoraUIKit.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\RTCConfigure.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\common\\RtcEngine.native.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\common\\Classes.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\common\\RtcChannel.native.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\RtcLocalView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\common\\RtcRenderView.native.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\RtcRemoteView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\Types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-agora\\src\\common\\Enums.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\permission.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\RtcContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\PropsContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\MinUidContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\MaxUidContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\LocalControls.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Style.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Local\\EndCall.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\BtnTemplate.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Icons.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Local\\LocalAudioMute.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\LocalUserContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Local\\LocalVideoMute.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Local\\SwitchCamera.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\RemoteControls.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Remote\\RemoteAudioMute.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Remote\\RemoteSwap.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\Controls\\Remote\\RemoteVideoMute.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\GridVideo.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\MaxVideoView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\PinnedVideo.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\agora-rn-uikit\\src\\MinVideoView.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-twilio-video-webrtc\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-twilio-video-webrtc\\src\\TwilioVideoLocalView.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-twilio-video-webrtc\\src\\TwilioVideoParticipantView.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-twilio-video-webrtc\\src\\TwilioVideo.android.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\VendorDetails.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\VendorActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\LocationSearch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\GooglePlacesAutocomplete.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\lodash.debounce\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\node_modules\\qs\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\node_modules\\qs\\lib\\stringify.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\node_modules\\qs\\lib\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\node_modules\\qs\\lib\\formats.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\node_modules\\qs\\lib\\parse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-google-places-autocomplete\\images\\powered_by_google_on_white.png","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\AddressActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\SubCategory.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\SubCategoryActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Product.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Category.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\CategoryActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\DoctorSubCategories.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\StarRating.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\createAnimatableComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\wrapStyleTransforms.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\getStyleValues.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\flattenStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\getDefaultStyleValue.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\createAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\registry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\easing.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\attention-seekers.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\bouncing-entrances.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\bouncing-exits.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\fading-entrances.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\fading-exits.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\flippers.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\lightspeed.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\sliding-entrances.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\sliding-exits.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\zooming-entrances.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-animatable\\definitions\\zooming-exits.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\StarButton.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\create-icon-set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\react-native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\icon-button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\tab-bar-item-ios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\toolbar-android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\create-icon-set-from-fontello.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\dist\\lib\\create-icon-set-from-icomoon.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-button\\Button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-button\\coalesceNonElementChildren.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\Entypo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\lib\\create-icon-set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\lib\\react-native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\lib\\icon-button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\lib\\tab-bar-item-ios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\lib\\toolbar-android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\Entypo.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\EvilIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\EvilIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\Feather.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\Feather.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\FontAwesome.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\FontAwesome.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\Foundation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\Foundation.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\Ionicons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\Ionicons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\MaterialIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\MaterialIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\MaterialCommunityIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\MaterialCommunityIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\Octicons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\Octicons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\Zocial.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\Zocial.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\SimpleLineIcons.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-star-rating\\node_modules\\react-native-vector-icons\\glyphmaps\\SimpleLineIcons.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-cardview\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-cardview\\libs\\CardView.android.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\ProductDetails.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Promo.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\PromoActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\MyOrders.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\moment\\moment.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\MyOrdersActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-progress-circle\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\src\\config\\firebaseConfig.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\firebase\\dist\\index.rn.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\app\\dist\\index.rn.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\tslib\\tslib.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\util\\dist\\index.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\component\\dist\\index.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\logger\\dist\\index.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\auth\\dist\\auth.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\database\\dist\\index.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\storage\\dist\\index.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\firestore\\dist\\index.rn.esm2017.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@firebase\\webchannel-wrapper\\dist\\index.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\OrderDetails.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\back1.png","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\type.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\components\\DialogButton.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\constants\\Constants.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\PopupDialog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-root-siblings\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\static-container\\StaticContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\components\\Dialog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\components\\Overlay.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\animations\\Animation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\animations\\FadeAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\components\\DialogTitle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\components\\DialogFooter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\components\\DialogContent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\animations\\ScaleAnimation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-popup-dialog\\dist\\animations\\SlideAnimation.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Cart.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-snackbar\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-modal-datetime-picker\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-modal-datetime-picker\\src\\DateTimePickerModal.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\datetimepicker.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\constants.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\picker.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\datepicker.android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\datetimepicker\\src\\timepicker.android.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Profile.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\ProfileActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-picker\\src\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-picker\\src\\internal\\nativeInterface.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-picker\\src\\internal\\types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\utils\\uri.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\class\\StatefulPromise.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\fs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\class\\RNFetchBlobSession.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\class\\RNFetchBlobWriteStream.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\class\\RNFetchBlobReadStream.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\utils\\uuid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\class\\RNFetchBlobFile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\base-64\\base64.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\Blob.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\utils\\log.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\EventTarget.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\File.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\XMLHttpRequest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\XMLHttpRequestEventTarget.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\ProgressEvent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\Event.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\FileReader.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\polyfill\\Fetch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\utils\\unicode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\android.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\ios.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\json-stream.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-fetch-blob\\lib\\oboe-browser.min.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\call.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\person.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\pass.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\email.png","D:\\downlooad\\desihealth_customer (1)\\src\\views\\More.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\Button.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\Container.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-modal\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-modal\\src\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-modal\\src\\index.style.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\Description.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\Input.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\Switch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog\\src\\Title.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Prescription.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\PrescriptionActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\AddPrescription.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\CreatePrescriptionActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\ViewPrescription.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-view-shot\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\cameraroll\\js\\CameraRoll.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\cameraroll\\js\\nativeInterface.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\ViewPrescriptionActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\ImageView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\styles.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\controls\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\controls\\Close.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\controls\\Prev.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-image-view\\src\\controls\\Next.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\download.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\rx.jpg","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Address.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapView.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapMarker.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\decorateMapComponent.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\ProviderConstants.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapPolyline.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapPolygon.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapCircle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapCallout.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapCalloutSubview.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapOverlay.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapUrlTile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapWMSTile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapLocalTile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\MapHeatmap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\AnimatedRegion.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-maps\\lib\\components\\Geojson.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\geolocation\\js\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\geolocation\\js\\implementation.native.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\geolocation\\js\\nativeInterface.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@react-native-community\\geolocation\\js\\utils.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\AddressList.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\AddressListActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-simple-dialogs\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-simple-dialogs\\src\\Dialog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-simple-dialogs\\src\\ProgressDialog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-simple-dialogs\\src\\ConfirmDialog.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-simple-dialogs\\src\\TouchableEffect.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Payment.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\PaymentActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-razorpay\\RazorpayCheckout.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Login.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\LoginActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-app-intro-slider\\dist\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-app-intro-slider\\dist\\merge-extradata.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Register.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\RegisterActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Faq.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\FaqActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\FaqDetails.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\PrivacyPolicy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\RenderHTML.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\RenderHTMLDebug.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\debugMessages.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\TRenderEngineProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useTRenderEngine.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\buildTREFromConfig.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\model\\model-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\model\\HTMLElementModel.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\model\\HTMLContentModel.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\dom\\dom-utils.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\domhandler\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\domhandler\\node_modules\\domelementtype\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\domhandler\\lib\\node.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domelementtype\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\helper-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\TRenderEngine.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\flow\\collapse.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\flow\\hoist.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\TBlockCtor.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\TNodeCtor.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\styles\\TStyles.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\CSSProcessor.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\CSSInlineParseRun.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\css-to-react-native\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\postcss-value-parser\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\postcss-value-parser\\lib\\parse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\postcss-value-parser\\lib\\walk.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\postcss-value-parser\\lib\\stringify.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\postcss-value-parser\\lib\\unit.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\camelize\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\css-color-keywords\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\css-color-keywords\\colors.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\CSSParseRun.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\CSSProcessedProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\emptyProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\mergeProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\ShortMergeRequest.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\CSSNativeParseRun.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\helpers.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\CSSPropertiesValidationRegistry.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\makepropertiesValidators.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongFontFamilyPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\GenericPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\normalizeFontName.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongFloatNumberCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongBorderWidthCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongNonPercentSizeCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongSizeCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongFontSizeCSSValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongAspectRatioPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongEnumerationListCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongBorderStyleCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongEnumerationCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongColorCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongForgivingCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\ShortFontCSSValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\ShortCSSToReactNativeValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\ShortCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\expandCSSToRN.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\ShortFlexCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\LongCSSToReactNativeValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\ShortCardinalCSSPropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\validators\\ShortDualNativePropertyValidator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\default.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\config.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\processor-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\property-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\css-processor\\src\\native-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\isNil.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_curry1.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isPlaceholder.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\not.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\compose.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pipe.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_arity.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_pipe.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reduce.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_curry3.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_curry2.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_reduce.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isArrayLike.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isArray.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xwrap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\bind.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\tail.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_checkForMethod.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\slice.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reverse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\markersPrototype.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\tnodeSnapshot.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\TPhrasingCtor.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\TTextCtor.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\flow\\text-transforms.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\flow\\translate.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\TDocumentImpl.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\tree\\TEmptyCtor.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\omit.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\dom\\parseDocument.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\lib\\Parser.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\lib\\Tokenizer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\entities\\lib\\decode_codepoint.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\entities\\lib\\decode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\entities\\lib\\generated\\decode-data-html.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\entities\\lib\\generated\\decode-data-xml.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domelementtype\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\lib\\FeedHandler.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\stringify.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\decode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\maps\\entities.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\maps\\legacy.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\maps\\xml.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\decode_codepoint.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\maps\\decode.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\node_modules\\entities\\lib\\encode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\dom-serializer\\lib\\foreignNames.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\traversal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\manipulation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\querying.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\legacy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\helpers.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\htmlparser2\\node_modules\\domutils\\lib\\feeds.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\dom\\DomHandler.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\styles\\TStylesMerger.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\styles\\defaults.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\model\\HTMLModelRegistry.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\src\\model\\defaultHTMLElementModels.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\stringify.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\dom-serializer\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\decode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\maps\\entities.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\maps\\legacy.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\maps\\xml.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\decode_codepoint.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\maps\\decode.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\entities\\lib\\encode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\dom-serializer\\lib\\foreignNames.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\traversal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\manipulation.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\querying.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\legacy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\helpers.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@native-html\\transient-render-engine\\node_modules\\domutils\\lib\\feeds.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useProfiler.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\identity.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_identity.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\defaultSystemFonts.android.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\RenderHTMLConfigProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\RenderersPropsProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeDeepRight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeDeepWithKey.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isObject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeWithKey.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_has.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\defaultRendererProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\SharedPropsProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\defaultListStyleSpecs.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\CounterStyle.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\getAlphanumFromUnicodeRange.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\makeAlphanumMaxlenComputer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\makeCSEngine.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\utils\\codepointLength.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\constants.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\makeCSRenderer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\utils\\codeunitLength.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\utils\\reverseString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\public-types.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\decimal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\decimalLeadingZero.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\lowerRoman.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\lowerAlpha.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\lowerGreek.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\upperAlpha.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\counter-style\\lib\\es\\presets\\upperRoman.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\symbolic\\DisclosureClosedSymbolRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\symbolic\\useSymbolicMarkerRendererStyles.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\symbolic\\DisclosureOpenSymbolRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\symbolic\\CircleSymbolRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\symbolic\\DiscSymbolRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\symbolic\\SquareSymbolRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\selectSharedProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pickBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pick.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeRight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_objectAssign.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\defaultSharedProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\constants.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\TChildrenRendererContext.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\TNodeChildrenRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\TChildrenRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderChildren.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\TNodeRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\shared-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useAssembledCommonProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\mergeCollapsedMargins.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\RenderRegistryProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\render\\RenderRegistry.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\lookupRecord.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderers\\BRRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderers\\WBRRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\render\\internalRenderers.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderers\\ARenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useNormalizedUrl.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\DocumentMetadataProvider.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\normalizeResourceLocator.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\urijs\\src\\URI.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\urijs\\src\\punycode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\urijs\\src\\IPv6.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\urijs\\src\\SecondLevelDomains.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderers\\IMGRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\IMGElement.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\useIMGElementState.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\defaultInitialImageDimensions.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\useIMGNormalizedSource.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\useImageConcreteDimensions.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\getIMGState.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\extractImageStyleProps.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\useImageSpecifiedDimensions.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\getDimensionsWithAspectRatio.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\IMGElementContentSuccess.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\IMGElementContainer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\GenericPressable.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\IMGElementContentLoading.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\IMGElementContentError.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\IMGElementContentAlt.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useContentWidth.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\contentWidthContext.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\getNativePropsForTNode.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderers\\OLRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\OLElement.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\ListElement.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\react-native-li\\src\\index.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\react-native-li\\src\\MarkedList.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\react-native-li\\src\\MarkedListItem.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\react-native-li\\src\\useMarkedList.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\react-native-li\\src\\MarkerBox.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@jsamr\\react-native-li\\src\\shared-types.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\ListStyleSpecsProvider.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\F.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\T.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\__.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\add.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\addIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_concat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\curryN.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_curryN.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\adjust.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\all.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_dispatchable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isTransformer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xall.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_reduced.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xfBase.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\allPass.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\max.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pluck.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\map.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_map.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xmap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\keys.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isArguments.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\prop.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\path.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\paths.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isInteger.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\nth.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\always.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\and.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\any.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xany.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\anyPass.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\ap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\aperture.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_aperture.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xaperture.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\append.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\apply.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\applySpec.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\values.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\applyTo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\ascend.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\assoc.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\assocPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\binary.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\nAry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\both.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isFunction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lift.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\liftN.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\call.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\curry.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\chain.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_makeFlat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xchain.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_flatCat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_forceReduced.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\clamp.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\clone.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_clone.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_cloneRegExp.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\type.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\comparator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\complement.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\composeK.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\composeP.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pipeP.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_pipeP.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\composeWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pipeWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\head.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\concat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\toString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_toString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_includes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_indexOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\equals.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_equals.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_arrayFromIterator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_includesWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_functionName.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_objectIs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_quote.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_toISOString.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reject.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_complement.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\filter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_filter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xfilter.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\cond.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\construct.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\constructN.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\contains.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\converge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\countBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reduceBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xreduceBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dec.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\defaultTo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\descend.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\difference.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_Set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\differenceWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dissoc.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dissocPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\remove.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\update.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\divide.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\drop.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xdrop.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dropLast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_dropLast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\take.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xtake.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xdropLast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dropLastWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_dropLastWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xdropLastWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dropRepeats.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xdropRepeatsWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dropRepeatsWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\last.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\dropWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xdropWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\either.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\or.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\empty.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\endsWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\takeLast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\eqBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\eqProps.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\evolve.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\find.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xfind.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\findIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xfindIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\findLast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xfindLast.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\findLastIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xfindLastIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\flatten.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\flip.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\forEach.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\forEachObjIndexed.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\fromPairs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\groupBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\groupWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\gt.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\gte.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\has.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\hasPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\hasIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\identical.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\ifElse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\inc.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\includes.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\indexBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\indexOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\init.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\innerJoin.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\insert.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\insertAll.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\intersection.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\uniq.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\uniqBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\intersperse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\into.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_stepCat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\objOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\invert.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\invertObj.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\invoker.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\is.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\isEmpty.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\join.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\juxt.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\keysIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lastIndexOf.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\length.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isNumber.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lens.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lensIndex.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lensPath.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lensProp.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lt.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\lte.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mapAccum.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mapAccumRight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mapObjIndexed.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\match.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mathMod.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\maxBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mean.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\sum.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\median.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\memoizeWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\merge.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeAll.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeDeepLeft.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeDeepWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeLeft.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\mergeWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\min.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\minBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\modulo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\move.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\multiply.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\negate.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\none.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\nthArg.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\o.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\of.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_of.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\once.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\otherwise.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_assertPromise.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\over.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pair.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\partial.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_createPartialApplicator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\partialRight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\partition.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pathEq.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pathOr.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pathSatisfies.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pickAll.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\pipeK.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\prepend.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\product.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\project.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\useWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\propEq.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\propIs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\propOr.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\propSatisfies.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\props.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\range.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reduceRight.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reduceWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\reduced.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\repeat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\times.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\replace.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\scan.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\sequence.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\set.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\sort.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\sortBy.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\sortWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\split.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\splitAt.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\splitEvery.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\splitWhen.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\startsWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\subtract.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\symmetricDifference.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\symmetricDifferenceWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\takeLastWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\takeWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xtakeWhile.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\tap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_xtap.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\test.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\internal\\_isRegExp.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\andThen.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\toLower.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\toPairs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\toPairsIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\toUpper.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\transduce.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\transpose.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\traverse.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\trim.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\tryCatch.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\unapply.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\unary.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\uncurryN.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\unfold.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\union.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\unionWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\uniqWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\unless.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\unnest.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\until.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\valuesIn.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\view.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\when.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\where.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\whereEq.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\without.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\xor.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\xprod.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\zip.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\zipObj.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\zipWith.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\ramda\\src\\thunkify.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderers\\ULRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\ULElement.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderTextualContent.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderBlockContent.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\renderEmptyContent.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\collapseTopMarginForChild.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\getCollapsedMarginTop.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\sourceLoaderContext.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\RenderHTMLSource.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\context\\ttreeEventsContext.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\isUriSource.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\SourceLoaderUri.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\RenderTTree.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useTTree.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\TDocumentRenderer.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\SourceLoaderInline.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\SourceLoaderDom.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\isDomSource.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\render\\render-types.tsx","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\hooks\\useInternalRenderer.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\splitBoxModelStyle.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\helpers\\domNodeToHTMLString.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\encode.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\xtend\\immutable.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\core.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\util\\format-smart.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\util\\to-hexadecimal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\constant\\from-char-code.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\util\\to-decimal.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\util\\to-named.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\character-entities-legacy\\index.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\constant\\characters.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\character-entities-html4\\index.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\constant\\has-own-property.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\constant\\dangerous.json","D:\\downlooad\\desihealth_customer (1)\\node_modules\\stringify-entities\\lib\\escape.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\useIMGElementStateWithCache.ts","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-render-html\\src\\elements\\img-types.ts","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\PrivacyActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Forgot.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\ForgotActions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-confirmation-code-input\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-confirmation-code-input\\components\\ConfirmationCodeInput.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Otp.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Rating.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Reset.js","D:\\downlooad\\desihealth_customer (1)\\src\\actions\\ResetActions.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\ContactUs.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\wallet.png","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Logout.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Search.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Wallet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-dialog-input\\index.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\DoctorList.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\DoctorDetail.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-step-indicator\\src\\index.tsx","D:\\downlooad\\desihealth_customer (1)\\src\\views\\AppointmentDetail.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\CreateAppointment.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\quickblox-react-native-sdk\\index.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\time.png","D:\\downlooad\\desihealth_customer (1)\\src\\views\\MyBookingDetails.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\video.png","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Chat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\GiftedChat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\ActionSheetProvider.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\ActionSheet\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\ActionSheet\\ActionGroup.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\ActionSheet\\TouchableNativeFeedbackSafe.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\context.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\connectActionSheet.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\node_modules\\hoist-non-react-statics\\dist\\hoist-non-react-statics.cjs.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\@expo\\react-native-action-sheet\\lib\\module\\types.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\uuid\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\uuid\\v1.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\uuid\\lib\\rng-browser.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\uuid\\lib\\bytesToUuid.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\uuid\\v4.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\dayjs\\dayjs.min.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\dayjs\\plugin\\localizedFormat.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\utils.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Actions.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Color.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Avatar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\GiftedAvatar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Bubble.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\QuickReplies.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\MessageText.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-parsed-text\\src\\ParsedText.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-parsed-text\\src\\lib\\TextExtraction.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-communications\\AKCommunications.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\MessageImage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-lightbox\\Lightbox.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-lightbox\\LightboxOverlay.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\MessageVideo.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\MessageAudio.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Time.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Constant.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\SystemMessage.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Composer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Day.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\InputToolbar.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Send.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\LoadEarlier.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\Message.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\MessageContainer.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\TypingIndicator.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-typing-animation\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-typing-animation\\src\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-typing-animation\\src\\Dot\\index.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-typing-animation\\src\\Dot\\styles.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-typing-animation\\src\\styles.js","D:\\downlooad\\desihealth_customer (1)\\node_modules\\react-native-gifted-chat\\lib\\hooks\\useUpdateLayoutEffect.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\DoctorMap.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\img\\hospital_pin.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\home.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\file.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\list.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\bag.png","D:\\downlooad\\desihealth_customer (1)\\src\\views\\DoctorSymptoms.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\PharmacyDetail.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\PrescriptionUpload.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\Success.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\Tick.jpg","D:\\downlooad\\desihealth_customer (1)\\src\\views\\WalletAdd.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\AddressMap.js","D:\\downlooad\\desihealth_customer (1)\\src\\views\\AddressEnter.js","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\icons\\baseline_home_white_24dp.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\icons\\baseline_medical_services_white_24dp.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\icons\\baseline_toc_white_24dp.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\icons\\baseline_description_white_24dp.png","D:\\downlooad\\desihealth_customer (1)\\src\\assets\\icons\\icons\\baseline_more_horiz_white_24dp.png","D:\\downlooad\\desihealth_customer (1)\\src\\views\\AppointmentPayment.js","D:\\downlooad\\desihealth_customer (1)\\app.json"],"sourcesContent":["var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{};process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||\"production\";","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @polyfill\n *\n * @format\n */\n\"use strict\";\n/* eslint-disable no-bitwise */\n\nglobal.__r = metroRequire;\nglobal.__d = define;\nglobal.__c = clear;\nglobal.__registerSegment = registerSegment;\nvar modules = clear(); // Don't use a Symbol here, it would pull in an extra polyfill with all sorts of\n// additional stuff (e.g. Array.from).\n\nconst EMPTY = {};\nconst _ref = {},\n hasOwnProperty = _ref.hasOwnProperty;\n\nif (__DEV__) {\n global.$RefreshReg$ = () => {};\n\n global.$RefreshSig$ = () => type => type;\n}\n\nfunction clear() {\n modules = Object.create(null); // We return modules here so that we can assign an initial value to modules\n // when defining it. Otherwise, we would have to do \"let modules = null\",\n // which will force us to add \"nullthrows\" everywhere.\n\n return modules;\n}\n\nif (__DEV__) {\n var verboseNamesToModuleIds = Object.create(null);\n var initializingModuleIds = [];\n}\n\nfunction define(factory, moduleId, dependencyMap) {\n if (modules[moduleId] != null) {\n if (__DEV__) {\n // (We take `inverseDependencies` from `arguments` to avoid an unused\n // named parameter in `define` in production.\n const inverseDependencies = arguments[4]; // If the module has already been defined and the define method has been\n // called with inverseDependencies, we can hot reload it.\n\n if (inverseDependencies) {\n global.__accept(moduleId, factory, dependencyMap, inverseDependencies);\n }\n } // prevent repeated calls to `global.nativeRequire` to overwrite modules\n // that are already loaded\n\n return;\n }\n\n const mod = {\n dependencyMap,\n factory,\n hasError: false,\n importedAll: EMPTY,\n importedDefault: EMPTY,\n isInitialized: false,\n publicModule: {\n exports: {}\n }\n };\n modules[moduleId] = mod;\n\n if (__DEV__) {\n // HMR\n mod.hot = createHotReloadingObject(); // DEBUGGABLE MODULES NAMES\n // we take `verboseName` from `arguments` to avoid an unused named parameter\n // in `define` in production.\n\n const verboseName = arguments[3];\n\n if (verboseName) {\n mod.verboseName = verboseName;\n verboseNamesToModuleIds[verboseName] = moduleId;\n }\n }\n}\n\nfunction metroRequire(moduleId) {\n if (__DEV__ && typeof moduleId === \"string\") {\n const verboseName = moduleId;\n moduleId = verboseNamesToModuleIds[verboseName];\n\n if (moduleId == null) {\n throw new Error(`Unknown named module: \"${verboseName}\"`);\n } else {\n console.warn(\n `Requiring module \"${verboseName}\" by name is only supported for ` +\n \"debugging purposes and will BREAK IN PRODUCTION!\"\n );\n }\n } //$FlowFixMe: at this point we know that moduleId is a number\n\n const moduleIdReallyIsNumber = moduleId;\n\n if (__DEV__) {\n const initializingIndex = initializingModuleIds.indexOf(\n moduleIdReallyIsNumber\n );\n\n if (initializingIndex !== -1) {\n const cycle = initializingModuleIds\n .slice(initializingIndex)\n .map(id => (modules[id] ? modules[id].verboseName : \"[unknown]\")); // We want to show A -> B -> A:\n\n cycle.push(cycle[0]);\n console.warn(\n `Require cycle: ${cycle.join(\" -> \")}\\n\\n` +\n \"Require cycles are allowed, but can result in uninitialized values. \" +\n \"Consider refactoring to remove the need for a cycle.\"\n );\n }\n }\n\n const module = modules[moduleIdReallyIsNumber];\n return module && module.isInitialized\n ? module.publicModule.exports\n : guardedLoadModule(moduleIdReallyIsNumber, module);\n}\n\nfunction metroImportDefault(moduleId) {\n if (__DEV__ && typeof moduleId === \"string\") {\n const verboseName = moduleId;\n moduleId = verboseNamesToModuleIds[verboseName];\n } //$FlowFixMe: at this point we know that moduleId is a number\n\n const moduleIdReallyIsNumber = moduleId;\n\n if (\n modules[moduleIdReallyIsNumber] &&\n modules[moduleIdReallyIsNumber].importedDefault !== EMPTY\n ) {\n return modules[moduleIdReallyIsNumber].importedDefault;\n }\n\n const exports = metroRequire(moduleIdReallyIsNumber);\n const importedDefault =\n exports && exports.__esModule ? exports.default : exports; // $FlowFixMe The metroRequire call above will throw if modules[id] is null\n\n return (modules[moduleIdReallyIsNumber].importedDefault = importedDefault);\n}\n\nmetroRequire.importDefault = metroImportDefault;\n\nfunction metroImportAll(moduleId) {\n if (__DEV__ && typeof moduleId === \"string\") {\n const verboseName = moduleId;\n moduleId = verboseNamesToModuleIds[verboseName];\n } //$FlowFixMe: at this point we know that moduleId is a number\n\n const moduleIdReallyIsNumber = moduleId;\n\n if (\n modules[moduleIdReallyIsNumber] &&\n modules[moduleIdReallyIsNumber].importedAll !== EMPTY\n ) {\n return modules[moduleIdReallyIsNumber].importedAll;\n }\n\n const exports = metroRequire(moduleIdReallyIsNumber);\n let importedAll;\n\n if (exports && exports.__esModule) {\n importedAll = exports;\n } else {\n importedAll = {}; // Refrain from using Object.assign, it has to work in ES3 environments.\n\n if (exports) {\n for (const key in exports) {\n if (hasOwnProperty.call(exports, key)) {\n importedAll[key] = exports[key];\n }\n }\n }\n\n importedAll.default = exports;\n } // $FlowFixMe The metroRequire call above will throw if modules[id] is null\n\n return (modules[moduleIdReallyIsNumber].importedAll = importedAll);\n}\n\nmetroRequire.importAll = metroImportAll;\nlet inGuard = false;\n\nfunction guardedLoadModule(moduleId, module) {\n if (!inGuard && global.ErrorUtils) {\n inGuard = true;\n let returnValue;\n\n try {\n returnValue = loadModuleImplementation(moduleId, module);\n } catch (e) {\n // TODO: (moti) T48204692 Type this use of ErrorUtils.\n global.ErrorUtils.reportFatalError(e);\n }\n\n inGuard = false;\n return returnValue;\n } else {\n return loadModuleImplementation(moduleId, module);\n }\n}\n\nconst ID_MASK_SHIFT = 16;\nconst LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT;\n\nfunction unpackModuleId(moduleId) {\n const segmentId = moduleId >>> ID_MASK_SHIFT;\n const localId = moduleId & LOCAL_ID_MASK;\n return {\n segmentId,\n localId\n };\n}\n\nmetroRequire.unpackModuleId = unpackModuleId;\n\nfunction packModuleId(value) {\n return (value.segmentId << ID_MASK_SHIFT) + value.localId;\n}\n\nmetroRequire.packModuleId = packModuleId;\nconst moduleDefinersBySegmentID = [];\n\nfunction registerSegment(segmentID, moduleDefiner) {\n moduleDefinersBySegmentID[segmentID] = moduleDefiner;\n}\n\nfunction loadModuleImplementation(moduleId, module) {\n if (!module && moduleDefinersBySegmentID.length > 0) {\n const _unpackModuleId = unpackModuleId(moduleId),\n segmentId = _unpackModuleId.segmentId,\n localId = _unpackModuleId.localId;\n\n const definer = moduleDefinersBySegmentID[segmentId];\n\n if (definer != null) {\n definer(localId);\n module = modules[moduleId];\n }\n }\n\n const nativeRequire = global.nativeRequire;\n\n if (!module && nativeRequire) {\n const _unpackModuleId2 = unpackModuleId(moduleId),\n segmentId = _unpackModuleId2.segmentId,\n localId = _unpackModuleId2.localId;\n\n nativeRequire(localId, segmentId);\n module = modules[moduleId];\n }\n\n if (!module) {\n throw unknownModuleError(moduleId);\n }\n\n if (module.hasError) {\n throw moduleThrewError(moduleId, module.error);\n } // `metroRequire` calls into the require polyfill itself are not analyzed and\n // replaced so that they use numeric module IDs.\n // The systrace module will expose itself on the metroRequire function so that\n // it can be used here.\n // TODO(t9759686) Scan polyfills for dependencies, too\n\n if (__DEV__) {\n var Systrace = metroRequire.Systrace,\n Refresh = metroRequire.Refresh;\n } // We must optimistically mark module as initialized before running the\n // factory to keep any require cycles inside the factory from causing an\n // infinite require loop.\n\n module.isInitialized = true;\n const _module = module,\n factory = _module.factory,\n dependencyMap = _module.dependencyMap;\n\n if (__DEV__) {\n initializingModuleIds.push(moduleId);\n }\n\n try {\n if (__DEV__) {\n // $FlowFixMe: we know that __DEV__ is const and `Systrace` exists\n Systrace.beginEvent(\"JS_require_\" + (module.verboseName || moduleId));\n }\n\n const moduleObject = module.publicModule;\n\n if (__DEV__) {\n moduleObject.hot = module.hot;\n var prevRefreshReg = global.$RefreshReg$;\n var prevRefreshSig = global.$RefreshSig$;\n\n if (Refresh != null) {\n const RefreshRuntime = Refresh;\n\n global.$RefreshReg$ = (type, id) => {\n RefreshRuntime.register(type, moduleId + \" \" + id);\n };\n\n global.$RefreshSig$ =\n RefreshRuntime.createSignatureFunctionForTransform;\n }\n }\n\n moduleObject.id = moduleId; // keep args in sync with with defineModuleCode in\n // metro/src/Resolver/index.js\n // and metro/src/ModuleGraph/worker.js\n\n factory(\n global,\n metroRequire,\n metroImportDefault,\n metroImportAll,\n moduleObject,\n moduleObject.exports,\n dependencyMap\n ); // avoid removing factory in DEV mode as it breaks HMR\n\n if (!__DEV__) {\n // $FlowFixMe: This is only sound because we never access `factory` again\n module.factory = undefined;\n module.dependencyMap = undefined;\n }\n\n if (__DEV__) {\n // $FlowFixMe: we know that __DEV__ is const and `Systrace` exists\n Systrace.endEvent();\n\n if (Refresh != null) {\n registerExportsForReactRefresh(Refresh, moduleObject.exports, moduleId);\n }\n }\n\n return moduleObject.exports;\n } catch (e) {\n module.hasError = true;\n module.error = e;\n module.isInitialized = false;\n module.publicModule.exports = undefined;\n throw e;\n } finally {\n if (__DEV__) {\n if (initializingModuleIds.pop() !== moduleId) {\n throw new Error(\n \"initializingModuleIds is corrupt; something is terribly wrong\"\n );\n }\n\n global.$RefreshReg$ = prevRefreshReg;\n global.$RefreshSig$ = prevRefreshSig;\n }\n }\n}\n\nfunction unknownModuleError(id) {\n let message = 'Requiring unknown module \"' + id + '\".';\n\n if (__DEV__) {\n message +=\n \" If you are sure the module exists, try restarting Metro. \" +\n \"You may also want to run `yarn` or `npm install`.\";\n }\n\n return Error(message);\n}\n\nfunction moduleThrewError(id, error) {\n const displayName = (__DEV__ && modules[id] && modules[id].verboseName) || id;\n return Error(\n 'Requiring module \"' + displayName + '\", which threw an exception: ' + error\n );\n}\n\nif (__DEV__) {\n metroRequire.Systrace = {\n beginEvent: () => {},\n endEvent: () => {}\n };\n\n metroRequire.getModules = () => {\n return modules;\n }; // HOT MODULE RELOADING\n\n var createHotReloadingObject = function() {\n const hot = {\n _acceptCallback: null,\n _disposeCallback: null,\n _didAccept: false,\n accept: callback => {\n hot._didAccept = true;\n hot._acceptCallback = callback;\n },\n dispose: callback => {\n hot._disposeCallback = callback;\n }\n };\n return hot;\n };\n\n let reactRefreshTimeout = null;\n\n const metroHotUpdateModule = function(\n id,\n factory,\n dependencyMap,\n inverseDependencies\n ) {\n const mod = modules[id];\n\n if (!mod) {\n if (factory) {\n // New modules are going to be handled by the define() method.\n return;\n }\n\n throw unknownModuleError(id);\n }\n\n if (!mod.hasError && !mod.isInitialized) {\n // The module hasn't actually been executed yet,\n // so we can always safely replace it.\n mod.factory = factory;\n mod.dependencyMap = dependencyMap;\n return;\n }\n\n const Refresh = metroRequire.Refresh;\n const refreshBoundaryIDs = new Set(); // In this loop, we will traverse the dependency tree upwards from the\n // changed module. Updates \"bubble\" up to the closest accepted parent.\n //\n // If we reach the module root and nothing along the way accepted the update,\n // we know hot reload is going to fail. In that case we return false.\n //\n // The main purpose of this loop is to figure out whether it's safe to apply\n // a hot update. It is only safe when the update was accepted somewhere\n // along the way upwards for each of its parent dependency module chains.\n //\n // We perform a topological sort because we may discover the same\n // module more than once in the list of things to re-execute, and\n // we want to execute modules before modules that depend on them.\n //\n // If we didn't have this check, we'd risk re-evaluating modules that\n // have side effects and lead to confusing and meaningless crashes.\n\n let didBailOut = false;\n const updatedModuleIDs = topologicalSort(\n [id], // Start with the changed module and go upwards\n pendingID => {\n const pendingModule = modules[pendingID];\n\n if (pendingModule == null) {\n // Nothing to do.\n return [];\n }\n\n const pendingHot = pendingModule.hot;\n\n if (pendingHot == null) {\n throw new Error(\n \"[Refresh] Expected module.hot to always exist in DEV.\"\n );\n } // A module can be accepted manually from within itself.\n\n let canAccept = pendingHot._didAccept;\n\n if (!canAccept && Refresh != null) {\n // Or React Refresh may mark it accepted based on exports.\n const isBoundary = isReactRefreshBoundary(\n Refresh,\n pendingModule.publicModule.exports\n );\n\n if (isBoundary) {\n canAccept = true;\n refreshBoundaryIDs.add(pendingID);\n }\n }\n\n if (canAccept) {\n // Don't look at parents.\n return [];\n } // If we bubble through the roof, there is no way to do a hot update.\n // Bail out altogether. This is the failure case.\n\n const parentIDs = inverseDependencies[pendingID];\n\n if (parentIDs.length === 0) {\n // Reload the app because the hot reload can't succeed.\n // This should work both on web and React Native.\n performFullRefresh(\"No root boundary\", {\n source: mod,\n failed: pendingModule\n });\n didBailOut = true;\n return [];\n } // This module can't handle the update but maybe all its parents can?\n // Put them all in the queue to run the same set of checks.\n\n return parentIDs;\n },\n () => didBailOut // Should we stop?\n ).reverse();\n\n if (didBailOut) {\n return;\n } // If we reached here, it is likely that hot reload will be successful.\n // Run the actual factories.\n\n const seenModuleIDs = new Set();\n\n for (let i = 0; i < updatedModuleIDs.length; i++) {\n // Don't process twice if we have a cycle.\n const updatedID = updatedModuleIDs[i];\n\n if (seenModuleIDs.has(updatedID)) {\n continue;\n }\n\n seenModuleIDs.add(updatedID);\n const updatedMod = modules[updatedID];\n\n if (updatedMod == null) {\n throw new Error(\"[Refresh] Expected to find the updated module.\");\n }\n\n const prevExports = updatedMod.publicModule.exports;\n const didError = runUpdatedModule(\n updatedID,\n updatedID === id ? factory : undefined,\n updatedID === id ? dependencyMap : undefined\n );\n const nextExports = updatedMod.publicModule.exports;\n\n if (didError) {\n // The user was shown a redbox about module initialization.\n // There's nothing for us to do here until it's fixed.\n return;\n }\n\n if (refreshBoundaryIDs.has(updatedID)) {\n // Since we just executed the code for it, it's possible\n // that the new exports make it ineligible for being a boundary.\n const isNoLongerABoundary = !isReactRefreshBoundary(\n Refresh,\n nextExports\n ); // It can also become ineligible if its exports are incompatible\n // with the previous exports.\n // For example, if you add/remove/change exports, we'll want\n // to re-execute the importing modules, and force those components\n // to re-render. Similarly, if you convert a class component\n // to a function, we want to invalidate the boundary.\n\n const didInvalidate = shouldInvalidateReactRefreshBoundary(\n Refresh,\n prevExports,\n nextExports\n );\n\n if (isNoLongerABoundary || didInvalidate) {\n // We'll be conservative. The only case in which we won't do a full\n // reload is if all parent modules are also refresh boundaries.\n // In that case we'll add them to the current queue.\n const parentIDs = inverseDependencies[updatedID];\n\n if (parentIDs.length === 0) {\n // Looks like we bubbled to the root. Can't recover from that.\n performFullRefresh(\n isNoLongerABoundary\n ? \"No longer a boundary\"\n : \"Invalidated boundary\",\n {\n source: mod,\n failed: updatedMod\n }\n );\n return;\n } // Schedule all parent refresh boundaries to re-run in this loop.\n\n for (let j = 0; j < parentIDs.length; j++) {\n const parentID = parentIDs[j];\n const parentMod = modules[parentID];\n\n if (parentMod == null) {\n throw new Error(\"[Refresh] Expected to find parent module.\");\n }\n\n const canAcceptParent = isReactRefreshBoundary(\n Refresh,\n parentMod.publicModule.exports\n );\n\n if (canAcceptParent) {\n // All parents will have to re-run too.\n refreshBoundaryIDs.add(parentID);\n updatedModuleIDs.push(parentID);\n } else {\n performFullRefresh(\"Invalidated boundary\", {\n source: mod,\n failed: parentMod\n });\n return;\n }\n }\n }\n }\n }\n\n if (Refresh != null) {\n // Debounce a little in case there are multiple updates queued up.\n // This is also useful because __accept may be called multiple times.\n if (reactRefreshTimeout == null) {\n reactRefreshTimeout = setTimeout(() => {\n reactRefreshTimeout = null; // Update React components.\n\n Refresh.performReactRefresh();\n }, 30);\n }\n }\n };\n\n const topologicalSort = function(roots, getEdges, earlyStop) {\n const result = [];\n const visited = new Set();\n\n function traverseDependentNodes(node) {\n visited.add(node);\n const dependentNodes = getEdges(node);\n\n if (earlyStop(node)) {\n return;\n }\n\n dependentNodes.forEach(dependent => {\n if (visited.has(dependent)) {\n return;\n }\n\n traverseDependentNodes(dependent);\n });\n result.push(node);\n }\n\n roots.forEach(root => {\n if (!visited.has(root)) {\n traverseDependentNodes(root);\n }\n });\n return result;\n };\n\n const runUpdatedModule = function(id, factory, dependencyMap) {\n const mod = modules[id];\n\n if (mod == null) {\n throw new Error(\"[Refresh] Expected to find the module.\");\n }\n\n const hot = mod.hot;\n\n if (!hot) {\n throw new Error(\"[Refresh] Expected module.hot to always exist in DEV.\");\n }\n\n if (hot._disposeCallback) {\n try {\n hot._disposeCallback();\n } catch (error) {\n console.error(\n `Error while calling dispose handler for module ${id}: `,\n error\n );\n }\n }\n\n if (factory) {\n mod.factory = factory;\n }\n\n if (dependencyMap) {\n mod.dependencyMap = dependencyMap;\n }\n\n mod.hasError = false;\n mod.error = undefined;\n mod.importedAll = EMPTY;\n mod.importedDefault = EMPTY;\n mod.isInitialized = false;\n const prevExports = mod.publicModule.exports;\n mod.publicModule.exports = {};\n hot._didAccept = false;\n hot._acceptCallback = null;\n hot._disposeCallback = null;\n metroRequire(id);\n\n if (mod.hasError) {\n // This error has already been reported via a redbox.\n // We know it's likely a typo or some mistake that was just introduced.\n // Our goal now is to keep the rest of the application working so that by\n // the time user fixes the error, the app isn't completely destroyed\n // underneath the redbox. So we'll revert the module object to the last\n // successful export and stop propagating this update.\n mod.hasError = false;\n mod.isInitialized = true;\n mod.error = null;\n mod.publicModule.exports = prevExports; // We errored. Stop the update.\n\n return true;\n }\n\n if (hot._acceptCallback) {\n try {\n hot._acceptCallback();\n } catch (error) {\n console.error(\n `Error while calling accept handler for module ${id}: `,\n error\n );\n }\n } // No error.\n\n return false;\n };\n\n const performFullRefresh = (reason, modules) => {\n /* global window */\n if (\n typeof window !== \"undefined\" &&\n window.location != null &&\n typeof window.location.reload === \"function\"\n ) {\n window.location.reload();\n } else {\n // This is attached in setUpDeveloperTools.\n const Refresh = metroRequire.Refresh;\n\n if (Refresh != null) {\n var _ref2, _modules$source, _ref3, _modules$failed;\n\n const sourceName =\n (_ref2 =\n (_modules$source = modules.source) === null ||\n _modules$source === void 0\n ? void 0\n : _modules$source.verboseName) !== null && _ref2 !== void 0\n ? _ref2\n : \"unknown\";\n const failedName =\n (_ref3 =\n (_modules$failed = modules.failed) === null ||\n _modules$failed === void 0\n ? void 0\n : _modules$failed.verboseName) !== null && _ref3 !== void 0\n ? _ref3\n : \"unknown\";\n Refresh.performFullRefresh(\n `Fast Refresh - ${reason} <${sourceName}> <${failedName}>`\n );\n } else {\n console.warn(\"Could not reload the application after an edit.\");\n }\n }\n }; // Modules that only export components become React Refresh boundaries.\n\n var isReactRefreshBoundary = function(Refresh, moduleExports) {\n if (Refresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n\n if (moduleExports == null || typeof moduleExports !== \"object\") {\n // Exit if we can't iterate over exports.\n return false;\n }\n\n let hasExports = false;\n let areAllExportsComponents = true;\n\n for (const key in moduleExports) {\n hasExports = true;\n\n if (key === \"__esModule\") {\n continue;\n }\n\n const desc = Object.getOwnPropertyDescriptor(moduleExports, key);\n\n if (desc && desc.get) {\n // Don't invoke getters as they may have side effects.\n return false;\n }\n\n const exportValue = moduleExports[key];\n\n if (!Refresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n\n return hasExports && areAllExportsComponents;\n };\n\n var shouldInvalidateReactRefreshBoundary = (\n Refresh,\n prevExports,\n nextExports\n ) => {\n const prevSignature = getRefreshBoundarySignature(Refresh, prevExports);\n const nextSignature = getRefreshBoundarySignature(Refresh, nextExports);\n\n if (prevSignature.length !== nextSignature.length) {\n return true;\n }\n\n for (let i = 0; i < nextSignature.length; i++) {\n if (prevSignature[i] !== nextSignature[i]) {\n return true;\n }\n }\n\n return false;\n }; // When this signature changes, it's unsafe to stop at this refresh boundary.\n\n var getRefreshBoundarySignature = (Refresh, moduleExports) => {\n const signature = [];\n signature.push(Refresh.getFamilyByType(moduleExports));\n\n if (moduleExports == null || typeof moduleExports !== \"object\") {\n // Exit if we can't iterate over exports.\n // (This is important for legacy environments.)\n return signature;\n }\n\n for (const key in moduleExports) {\n if (key === \"__esModule\") {\n continue;\n }\n\n const desc = Object.getOwnPropertyDescriptor(moduleExports, key);\n\n if (desc && desc.get) {\n continue;\n }\n\n const exportValue = moduleExports[key];\n signature.push(key);\n signature.push(Refresh.getFamilyByType(exportValue));\n }\n\n return signature;\n };\n\n var registerExportsForReactRefresh = (Refresh, moduleExports, moduleID) => {\n Refresh.register(moduleExports, moduleID + \" %exports%\");\n\n if (moduleExports == null || typeof moduleExports !== \"object\") {\n // Exit if we can't iterate over exports.\n // (This is important for legacy environments.)\n return;\n }\n\n for (const key in moduleExports) {\n const desc = Object.getOwnPropertyDescriptor(moduleExports, key);\n\n if (desc && desc.get) {\n // Don't invoke getters as they may have side effects.\n continue;\n }\n\n const exportValue = moduleExports[key];\n const typeID = moduleID + \" %exports% \" + key;\n Refresh.register(exportValue, typeID);\n }\n };\n\n global.__accept = metroHotUpdateModule;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @polyfill\n * @nolint\n * @format\n */\n\n/* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */\n\n/**\n * This pipes all of our console logging functions to native logging so that\n * JavaScript errors in required modules show up in Xcode via NSLog.\n */\nconst inspect = (function() {\n // Copyright Joyent, Inc. and other Node contributors.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a\n // copy of this software and associated documentation files (the\n // \"Software\"), to deal in the Software without restriction, including\n // without limitation the rights to use, copy, modify, merge, publish,\n // distribute, sublicense, and/or sell copies of the Software, and to permit\n // persons to whom the Software is furnished to do so, subject to the\n // following conditions:\n //\n // The above copyright notice and this permission notice shall be included\n // in all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n //\n // https://github.com/joyent/node/blob/master/lib/util.js\n\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n formatValueCalls: 0,\n stylize: stylizeNoColor,\n };\n return formatValue(ctx, obj, opts.depth);\n }\n\n function stylizeNoColor(str, styleType) {\n return str;\n }\n\n function arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n }\n\n function formatValue(ctx, value, recurseTimes) {\n ctx.formatValueCalls++;\n if (ctx.formatValueCalls > 200) {\n return `[TOO BIG formatValueCalls ${\n ctx.formatValueCalls\n } exceeded limit of 200]`;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (\n isError(value) &&\n (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)\n ) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '',\n array = false,\n braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n key,\n array,\n );\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n }\n\n function formatPrimitive(ctx, value) {\n if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple =\n \"'\" +\n JSON.stringify(value)\n .replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') +\n \"'\";\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value)) return ctx.stylize('' + value, 'number');\n if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value)) return ctx.stylize('null', 'null');\n }\n\n function formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n }\n\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(\n formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n String(i),\n true,\n ),\n );\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(\n formatProperty(ctx, value, recurseTimes, visibleKeys, key, true),\n );\n }\n });\n return output;\n }\n\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {value: value[key]};\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str\n .split('\\n')\n .map(function(line) {\n return ' ' + line;\n })\n .join('\\n')\n .substr(2);\n } else {\n str =\n '\\n' +\n str\n .split('\\n')\n .map(function(line) {\n return ' ' + line;\n })\n .join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n }\n\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return (\n braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1]\n );\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n }\n\n // NOTE: These type checking functions intentionally don't use `instanceof`\n // because it is fragile and can be easily faked with `Object.create()`.\n function isArray(ar) {\n return Array.isArray(ar);\n }\n\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n\n function isNull(arg) {\n return arg === null;\n }\n\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n\n function isString(arg) {\n return typeof arg === 'string';\n }\n\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n\n function isUndefined(arg) {\n return arg === void 0;\n }\n\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n }\n\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n\n function isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n }\n\n function isError(e) {\n return (\n isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error)\n );\n }\n\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n\n return inspect;\n})();\n\nconst OBJECT_COLUMN_NAME = '(index)';\nconst LOG_LEVELS = {\n trace: 0,\n info: 1,\n warn: 2,\n error: 3,\n};\nconst INSPECTOR_LEVELS = [];\nINSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';\nINSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';\nINSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';\nINSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';\n\n// Strip the inner function in getNativeLogFunction(), if in dev also\n// strip method printing to originalConsole.\nconst INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1;\n\nfunction getNativeLogFunction(level) {\n return function() {\n let str;\n if (arguments.length === 1 && typeof arguments[0] === 'string') {\n str = arguments[0];\n } else {\n str = Array.prototype.map\n .call(arguments, function(arg) {\n return inspect(arg, {depth: 10});\n })\n .join(', ');\n }\n\n // TRICKY\n // If more than one argument is provided, the code above collapses them all\n // into a single formatted string. This transform wraps string arguments in\n // single quotes (e.g. \"foo\" -> \"'foo'\") which then breaks the \"Warning:\"\n // check below. So it's important that we look at the first argument, rather\n // than the formatted argument string.\n const firstArg = arguments[0];\n\n let logLevel = level;\n if (\n typeof firstArg === 'string' &&\n firstArg.slice(0, 9) === 'Warning: ' &&\n logLevel >= LOG_LEVELS.error\n ) {\n // React warnings use console.error so that a stack trace is shown,\n // but we don't (currently) want these to show a redbox\n // (Note: Logic duplicated in ExceptionsManager.js.)\n logLevel = LOG_LEVELS.warn;\n }\n if (global.__inspectorLog) {\n global.__inspectorLog(\n INSPECTOR_LEVELS[logLevel],\n str,\n [].slice.call(arguments),\n INSPECTOR_FRAMES_TO_SKIP,\n );\n }\n if (groupStack.length) {\n str = groupFormat('', str);\n }\n global.nativeLoggingHook(str, logLevel);\n };\n}\n\nfunction repeat(element, n) {\n return Array.apply(null, Array(n)).map(function() {\n return element;\n });\n}\n\nfunction consoleTablePolyfill(rows) {\n // convert object -> array\n if (!Array.isArray(rows)) {\n var data = rows;\n rows = [];\n for (var key in data) {\n if (data.hasOwnProperty(key)) {\n var row = data[key];\n row[OBJECT_COLUMN_NAME] = key;\n rows.push(row);\n }\n }\n }\n if (rows.length === 0) {\n global.nativeLoggingHook('', LOG_LEVELS.info);\n return;\n }\n\n var columns = Object.keys(rows[0]).sort();\n var stringRows = [];\n var columnWidths = [];\n\n // Convert each cell to a string. Also\n // figure out max cell width for each column\n columns.forEach(function(k, i) {\n columnWidths[i] = k.length;\n for (var j = 0; j < rows.length; j++) {\n var cellStr = (rows[j][k] || '?').toString();\n stringRows[j] = stringRows[j] || [];\n stringRows[j][i] = cellStr;\n columnWidths[i] = Math.max(columnWidths[i], cellStr.length);\n }\n });\n\n // Join all elements in the row into a single string with | separators\n // (appends extra spaces to each cell to make separators | aligned)\n function joinRow(row, space) {\n var cells = row.map(function(cell, i) {\n var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');\n return cell + extraSpaces;\n });\n space = space || ' ';\n return cells.join(space + '|' + space);\n }\n\n var separators = columnWidths.map(function(columnWidth) {\n return repeat('-', columnWidth).join('');\n });\n var separatorRow = joinRow(separators, '-');\n var header = joinRow(columns);\n var table = [header, separatorRow];\n\n for (var i = 0; i < rows.length; i++) {\n table.push(joinRow(stringRows[i]));\n }\n\n // Notice extra empty line at the beginning.\n // Native logging hook adds \"RCTLog >\" at the front of every\n // logged string, which would shift the header and screw up\n // the table\n global.nativeLoggingHook('\\n' + table.join('\\n'), LOG_LEVELS.info);\n}\n\nconst GROUP_PAD = '\\u2502'; // Box light vertical\nconst GROUP_OPEN = '\\u2510'; // Box light down+left\nconst GROUP_CLOSE = '\\u2518'; // Box light up+left\n\nconst groupStack = [];\n\nfunction groupFormat(prefix, msg) {\n // Insert group formatting before the console message\n return groupStack.join('') + prefix + ' ' + (msg || '');\n}\n\nfunction consoleGroupPolyfill(label) {\n global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);\n groupStack.push(GROUP_PAD);\n}\n\nfunction consoleGroupCollapsedPolyfill(label) {\n global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info);\n groupStack.push(GROUP_PAD);\n}\n\nfunction consoleGroupEndPolyfill() {\n groupStack.pop();\n global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);\n}\n\nfunction consoleAssertPolyfill(expression, label) {\n if (!expression) {\n global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);\n }\n}\n\nif (global.nativeLoggingHook) {\n const originalConsole = global.console;\n // Preserve the original `console` as `originalConsole`\n if (__DEV__ && originalConsole) {\n const descriptor = Object.getOwnPropertyDescriptor(global, 'console');\n if (descriptor) {\n Object.defineProperty(global, 'originalConsole', descriptor);\n }\n }\n\n global.console = {\n error: getNativeLogFunction(LOG_LEVELS.error),\n info: getNativeLogFunction(LOG_LEVELS.info),\n log: getNativeLogFunction(LOG_LEVELS.info),\n warn: getNativeLogFunction(LOG_LEVELS.warn),\n trace: getNativeLogFunction(LOG_LEVELS.trace),\n debug: getNativeLogFunction(LOG_LEVELS.trace),\n table: consoleTablePolyfill,\n group: consoleGroupPolyfill,\n groupEnd: consoleGroupEndPolyfill,\n groupCollapsed: consoleGroupCollapsedPolyfill,\n assert: consoleAssertPolyfill,\n };\n\n Object.defineProperty(console, '_isPolyfilled', {\n value: true,\n enumerable: false,\n });\n\n // If available, also call the original `console` method since that is\n // sometimes useful. Ex: on OS X, this will let you see rich output in\n // the Safari Web Inspector console.\n if (__DEV__ && originalConsole) {\n Object.keys(console).forEach(methodName => {\n const reactNativeMethod = console[methodName];\n if (originalConsole[methodName]) {\n console[methodName] = function() {\n // TODO(T43930203): remove this special case once originalConsole.assert properly checks\n // the condition\n if (methodName === 'assert') {\n if (!arguments[0]) {\n originalConsole.assert(...arguments);\n }\n } else {\n originalConsole[methodName](...arguments);\n }\n reactNativeMethod.apply(console, arguments);\n };\n }\n });\n\n // The following methods are not supported by this polyfill but\n // we still should pass them to original console if they are\n // supported by it.\n ['clear', 'dir', 'dirxml', 'profile', 'profileEnd'].forEach(methodName => {\n if (typeof originalConsole[methodName] === 'function') {\n console[methodName] = function() {\n originalConsole[methodName](...arguments);\n };\n }\n });\n }\n} else if (!global.console) {\n function stub() {}\n const log = global.print || stub;\n\n global.console = {\n debug: log,\n error: log,\n info: log,\n log: log,\n trace: log,\n warn: log,\n assert(expression, label) {\n if (!expression) {\n log('Assertion failed: ' + label);\n }\n },\n clear: stub,\n dir: stub,\n dirxml: stub,\n group: stub,\n groupCollapsed: stub,\n groupEnd: stub,\n profile: stub,\n profileEnd: stub,\n table: stub,\n };\n\n Object.defineProperty(console, '_isPolyfilled', {\n value: true,\n enumerable: false,\n });\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n * @polyfill\n */\n\nlet _inGuard = 0;\n\ntype ErrorHandler = (error: mixed, isFatal: boolean) => void;\ntype Fn = (...Args) => Return;\n\n/**\n * This is the error handler that is called when we encounter an exception\n * when loading a module. This will report any errors encountered before\n * ExceptionsManager is configured.\n */\nlet _globalHandler: ErrorHandler = function onError(\n e: mixed,\n isFatal: boolean,\n) {\n throw e;\n};\n\n/**\n * The particular require runtime that we are using looks for a global\n * `ErrorUtils` object and if it exists, then it requires modules with the\n * error handler specified via ErrorUtils.setGlobalHandler by calling the\n * require function with applyWithGuard. Since the require module is loaded\n * before any of the modules, this ErrorUtils must be defined (and the handler\n * set) globally before requiring anything.\n */\nconst ErrorUtils = {\n setGlobalHandler(fun: ErrorHandler): void {\n _globalHandler = fun;\n },\n getGlobalHandler(): ErrorHandler {\n return _globalHandler;\n },\n reportError(error: mixed): void {\n _globalHandler && _globalHandler(error, false);\n },\n reportFatalError(error: mixed): void {\n // NOTE: This has an untyped call site in Metro.\n _globalHandler && _globalHandler(error, true);\n },\n applyWithGuard, TOut>(\n fun: Fn,\n context?: ?mixed,\n args?: ?TArgs,\n // Unused, but some code synced from www sets it to null.\n unused_onError?: null,\n // Some callers pass a name here, which we ignore.\n unused_name?: ?string,\n ): ?TOut {\n try {\n _inGuard++;\n // $FlowFixMe: TODO T48204745 (1) apply(context, null) is fine. (2) array -> rest array should work\n return fun.apply(context, args);\n } catch (e) {\n ErrorUtils.reportError(e);\n } finally {\n _inGuard--;\n }\n return null;\n },\n applyWithGuardIfNeeded, TOut>(\n fun: Fn,\n context?: ?mixed,\n args?: ?TArgs,\n ): ?TOut {\n if (ErrorUtils.inGuard()) {\n // $FlowFixMe: TODO T48204745 (1) apply(context, null) is fine. (2) array -> rest array should work\n return fun.apply(context, args);\n } else {\n ErrorUtils.applyWithGuard(fun, context, args);\n }\n return null;\n },\n inGuard(): boolean {\n return !!_inGuard;\n },\n guard, TOut>(\n fun: Fn,\n name?: ?string,\n context?: ?mixed,\n ): ?(...TArgs) => ?TOut {\n // TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types\n // should be sufficient.\n if (typeof fun !== 'function') {\n console.warn('A function must be passed to ErrorUtils.guard, got ', fun);\n return null;\n }\n const guardName = name ?? fun.name ?? '';\n function guarded(...args: TArgs): ?TOut {\n return ErrorUtils.applyWithGuard(\n fun,\n context ?? this,\n args,\n null,\n guardName,\n );\n }\n\n return guarded;\n },\n};\n\nglobal.ErrorUtils = ErrorUtils;\n\nexport type ErrorUtilsT = typeof ErrorUtils;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\n(function() {\n 'use strict';\n\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n\n /**\n * Returns an array of the given object's own enumerable entries.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries\n */\n if (typeof Object.entries !== 'function') {\n Object.entries = function(object) {\n // `null` and `undefined` values are not allowed.\n if (object == null) {\n throw new TypeError('Object.entries called on non-object');\n }\n\n const entries = [];\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n entries.push([key, object[key]]);\n }\n }\n return entries;\n };\n }\n\n /**\n * Returns an array of the given object's own enumerable entries.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values\n */\n if (typeof Object.values !== 'function') {\n Object.values = function(object) {\n // `null` and `undefined` values are not allowed.\n if (object == null) {\n throw new TypeError('Object.values called on non-object');\n }\n\n const values = [];\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n values.push(object[key]);\n }\n }\n return values;\n };\n }\n})();\n","/**\n * @format\n */\n\nimport {AppRegistry} from 'react-native';\nimport React from 'react';\nimport allReducers from './src/reducers/index.js';\nimport { createStore } from 'redux';\nimport { Provider } from 'react-redux';\nimport App from './App';\nimport {name as appName} from './app.json';\n\nconst store = createStore(allReducers);\n\nconst ReduxApp = () => (\n \n \n \n )\nconsole.disableYellowBox = true; \nAppRegistry.registerComponent(appName, () => ReduxApp);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';\nimport typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';\nimport typeof Button from './Libraries/Components/Button';\nimport typeof CheckBox from './Libraries/Components/CheckBox/CheckBox';\nimport typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';\nimport typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';\nimport typeof FlatList from './Libraries/Lists/FlatList';\nimport typeof Image from './Libraries/Image/Image';\nimport typeof ImageBackground from './Libraries/Image/ImageBackground';\nimport typeof InputAccessoryView from './Libraries/Components/TextInput/InputAccessoryView';\nimport typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';\nimport typeof MaskedViewIOS from './Libraries/Components/MaskedView/MaskedViewIOS';\nimport typeof Modal from './Libraries/Modal/Modal';\nimport typeof Picker from './Libraries/Components/Picker/Picker';\nimport typeof PickerIOS from './Libraries/Components/Picker/PickerIOS';\nimport typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';\nimport typeof ProgressViewIOS from './Libraries/Components/ProgressViewIOS/ProgressViewIOS';\nimport typeof SafeAreaView from './Libraries/Components/SafeAreaView/SafeAreaView';\nimport typeof ScrollView from './Libraries/Components/ScrollView/ScrollView';\nimport typeof SectionList from './Libraries/Lists/SectionList';\nimport typeof SegmentedControlIOS from './Libraries/Components/SegmentedControlIOS/SegmentedControlIOS';\nimport typeof Slider from './Libraries/Components/Slider/Slider';\nimport typeof Switch from './Libraries/Components/Switch/Switch';\nimport typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';\nimport typeof StatusBar from './Libraries/Components/StatusBar/StatusBar';\nimport typeof Text from './Libraries/Text/Text';\nimport typeof TextInput from './Libraries/Components/TextInput/TextInput';\nimport typeof Touchable from './Libraries/Components/Touchable/Touchable';\nimport typeof TouchableHighlight from './Libraries/Components/Touchable/TouchableHighlight';\nimport typeof TouchableNativeFeedback from './Libraries/Components/Touchable/TouchableNativeFeedback';\nimport typeof TouchableOpacity from './Libraries/Components/Touchable/TouchableOpacity';\nimport typeof TouchableWithoutFeedback from './Libraries/Components/Touchable/TouchableWithoutFeedback';\nimport typeof View from './Libraries/Components/View/View';\nimport typeof VirtualizedList from './Libraries/Lists/VirtualizedList';\nimport typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList';\nimport typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS';\nimport typeof Alert from './Libraries/Alert/Alert';\nimport typeof Animated from './Libraries/Animated/src/Animated';\nimport typeof Appearance from './Libraries/Utilities/Appearance';\nimport typeof AppRegistry from './Libraries/ReactNative/AppRegistry';\nimport typeof AppState from './Libraries/AppState/AppState';\nimport typeof AsyncStorage from './Libraries/Storage/AsyncStorage';\nimport typeof BackHandler from './Libraries/Utilities/BackHandler';\nimport typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';\nimport typeof DatePickerAndroid from './Libraries/Components/DatePickerAndroid/DatePickerAndroid';\nimport typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';\nimport typeof DevSettings from './Libraries/Utilities/DevSettings';\nimport typeof Dimensions from './Libraries/Utilities/Dimensions';\nimport typeof Easing from './Libraries/Animated/src/Easing';\nimport typeof ReactNative from './Libraries/Renderer/shims/ReactNative';\nimport typeof I18nManager from './Libraries/ReactNative/I18nManager';\nimport typeof ImagePickerIOS from './Libraries/Image/ImagePickerIOS';\nimport typeof InteractionManager from './Libraries/Interaction/InteractionManager';\nimport typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';\nimport typeof LayoutAnimation from './Libraries/LayoutAnimation/LayoutAnimation';\nimport typeof Linking from './Libraries/Linking/Linking';\nimport typeof NativeDialogManagerAndroid from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';\nimport typeof NativeEventEmitter from './Libraries/EventEmitter/NativeEventEmitter';\nimport typeof Networking from './Libraries/Network/RCTNetworking';\nimport typeof PanResponder from './Libraries/Interaction/PanResponder';\nimport typeof PermissionsAndroid from './Libraries/PermissionsAndroid/PermissionsAndroid';\nimport typeof PixelRatio from './Libraries/Utilities/PixelRatio';\nimport typeof PushNotificationIOS from './Libraries/PushNotificationIOS/PushNotificationIOS';\nimport typeof Settings from './Libraries/Settings/Settings';\nimport typeof Share from './Libraries/Share/Share';\nimport typeof StatusBarIOS from './Libraries/Components/StatusBar/StatusBarIOS';\nimport typeof StyleSheet from './Libraries/StyleSheet/StyleSheet';\nimport typeof Systrace from './Libraries/Performance/Systrace';\nimport typeof ToastAndroid from './Libraries/Components/ToastAndroid/ToastAndroid';\nimport typeof * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry';\nimport typeof TVEventHandler from './Libraries/Components/AppleTV/TVEventHandler';\nimport typeof UIManager from './Libraries/ReactNative/UIManager';\nimport typeof useColorScheme from './Libraries/Utilities/useColorScheme';\nimport typeof useWindowDimensions from './Libraries/Utilities/useWindowDimensions';\nimport typeof UTFSequence from './Libraries/UTFSequence';\nimport typeof Vibration from './Libraries/Vibration/Vibration';\nimport typeof YellowBox from './Libraries/YellowBox/YellowBox';\nimport typeof RCTDeviceEventEmitter from './Libraries/EventEmitter/RCTDeviceEventEmitter';\nimport typeof RCTNativeAppEventEmitter from './Libraries/EventEmitter/RCTNativeAppEventEmitter';\nimport typeof NativeModules from './Libraries/BatchedBridge/NativeModules';\nimport typeof Platform from './Libraries/Utilities/Platform';\nimport typeof processColor from './Libraries/StyleSheet/processColor';\nimport typeof RootTagContext from './Libraries/ReactNative/RootTagContext';\nimport typeof DeprecatedColorPropType from './Libraries/DeprecatedPropTypes/DeprecatedColorPropType';\nimport typeof DeprecatedEdgeInsetsPropType from './Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType';\nimport typeof DeprecatedPointPropType from './Libraries/DeprecatedPropTypes/DeprecatedPointPropType';\nimport typeof DeprecatedViewPropTypes from './Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes';\n\nimport type {HostComponent as _HostComponentInternal} from './Libraries/Renderer/shims/ReactNativeTypes';\n\nexport type HostComponent = _HostComponentInternal;\n\nconst invariant = require('invariant');\nconst warnOnce = require('./Libraries/Utilities/warnOnce');\n\nmodule.exports = {\n // Components\n get AccessibilityInfo(): AccessibilityInfo {\n return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo');\n },\n get ActivityIndicator(): ActivityIndicator {\n return require('./Libraries/Components/ActivityIndicator/ActivityIndicator');\n },\n get Button(): Button {\n return require('./Libraries/Components/Button');\n },\n get CheckBox(): CheckBox {\n warnOnce(\n 'checkBox-moved',\n 'CheckBox has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-checkbox',\n );\n return require('./Libraries/Components/CheckBox/CheckBox');\n },\n get DatePickerIOS(): DatePickerIOS {\n warnOnce(\n 'DatePickerIOS-merged',\n 'DatePickerIOS has been merged with DatePickerAndroid and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/datetimepicker',\n );\n return require('./Libraries/Components/DatePicker/DatePickerIOS');\n },\n get DrawerLayoutAndroid(): DrawerLayoutAndroid {\n return require('./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid');\n },\n get FlatList(): FlatList {\n return require('./Libraries/Lists/FlatList');\n },\n get Image(): Image {\n return require('./Libraries/Image/Image');\n },\n get ImageBackground(): ImageBackground {\n return require('./Libraries/Image/ImageBackground');\n },\n get InputAccessoryView(): InputAccessoryView {\n return require('./Libraries/Components/TextInput/InputAccessoryView');\n },\n get KeyboardAvoidingView(): KeyboardAvoidingView {\n return require('./Libraries/Components/Keyboard/KeyboardAvoidingView');\n },\n get MaskedViewIOS(): MaskedViewIOS {\n warnOnce(\n 'maskedviewios-moved',\n 'MaskedViewIOS has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/masked-view' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-masked-view',\n );\n return require('./Libraries/Components/MaskedView/MaskedViewIOS');\n },\n get Modal(): Modal {\n return require('./Libraries/Modal/Modal');\n },\n get Picker(): Picker {\n warnOnce(\n 'picker-moved',\n 'Picker has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-picker',\n );\n return require('./Libraries/Components/Picker/Picker');\n },\n get PickerIOS(): PickerIOS {\n warnOnce(\n 'pickerios-moved',\n 'PickerIOS has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-picker',\n );\n return require('./Libraries/Components/Picker/PickerIOS');\n },\n get ProgressBarAndroid(): ProgressBarAndroid {\n warnOnce(\n 'progress-bar-android-moved',\n 'ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/progress-bar-android' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/progress-bar-android',\n );\n return require('./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid');\n },\n get ProgressViewIOS(): ProgressViewIOS {\n warnOnce(\n 'progress-view-ios-moved',\n 'ProgressViewIOS has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/progress-view' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/progress-view',\n );\n return require('./Libraries/Components/ProgressViewIOS/ProgressViewIOS');\n },\n get SafeAreaView(): SafeAreaView {\n return require('./Libraries/Components/SafeAreaView/SafeAreaView');\n },\n get ScrollView(): ScrollView {\n return require('./Libraries/Components/ScrollView/ScrollView');\n },\n get SectionList(): SectionList {\n return require('./Libraries/Lists/SectionList');\n },\n get SegmentedControlIOS(): SegmentedControlIOS {\n warnOnce(\n 'segmented-control-ios-moved',\n 'SegmentedControlIOS has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/segmented-control' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/segmented-control',\n );\n return require('./Libraries/Components/SegmentedControlIOS/SegmentedControlIOS');\n },\n get Slider(): Slider {\n warnOnce(\n 'slider-moved',\n 'Slider has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/slider' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-slider',\n );\n return require('./Libraries/Components/Slider/Slider');\n },\n get Switch(): Switch {\n return require('./Libraries/Components/Switch/Switch');\n },\n get RefreshControl(): RefreshControl {\n return require('./Libraries/Components/RefreshControl/RefreshControl');\n },\n get StatusBar(): StatusBar {\n return require('./Libraries/Components/StatusBar/StatusBar');\n },\n get Text(): Text {\n return require('./Libraries/Text/Text');\n },\n get TextInput(): TextInput {\n return require('./Libraries/Components/TextInput/TextInput');\n },\n get Touchable(): Touchable {\n return require('./Libraries/Components/Touchable/Touchable');\n },\n get TouchableHighlight(): TouchableHighlight {\n return require('./Libraries/Components/Touchable/TouchableHighlight');\n },\n get TouchableNativeFeedback(): TouchableNativeFeedback {\n return require('./Libraries/Components/Touchable/TouchableNativeFeedback');\n },\n get TouchableOpacity(): TouchableOpacity {\n return require('./Libraries/Components/Touchable/TouchableOpacity');\n },\n get TouchableWithoutFeedback(): TouchableWithoutFeedback {\n return require('./Libraries/Components/Touchable/TouchableWithoutFeedback');\n },\n get View(): View {\n return require('./Libraries/Components/View/View');\n },\n get VirtualizedList(): VirtualizedList {\n return require('./Libraries/Lists/VirtualizedList');\n },\n get VirtualizedSectionList(): VirtualizedSectionList {\n return require('./Libraries/Lists/VirtualizedSectionList');\n },\n\n // APIs\n get ActionSheetIOS(): ActionSheetIOS {\n return require('./Libraries/ActionSheetIOS/ActionSheetIOS');\n },\n get Alert(): Alert {\n return require('./Libraries/Alert/Alert');\n },\n get Animated(): Animated {\n return require('./Libraries/Animated/src/Animated');\n },\n get Appearance(): Appearance {\n return require('./Libraries/Utilities/Appearance');\n },\n get AppRegistry(): AppRegistry {\n return require('./Libraries/ReactNative/AppRegistry');\n },\n get AppState(): AppState {\n return require('./Libraries/AppState/AppState');\n },\n get AsyncStorage(): AsyncStorage {\n warnOnce(\n 'async-storage-moved',\n 'AsyncStorage has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/async-storage',\n );\n return require('./Libraries/Storage/AsyncStorage');\n },\n get BackHandler(): BackHandler {\n return require('./Libraries/Utilities/BackHandler');\n },\n get Clipboard(): Clipboard {\n warnOnce(\n 'clipboard-moved',\n 'Clipboard has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/clipboard' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/clipboard',\n );\n return require('./Libraries/Components/Clipboard/Clipboard');\n },\n get DatePickerAndroid(): DatePickerAndroid {\n warnOnce(\n 'DatePickerAndroid-merged',\n 'DatePickerAndroid has been merged with DatePickerIOS and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/datetimepicker',\n );\n return require('./Libraries/Components/DatePickerAndroid/DatePickerAndroid');\n },\n get DeviceInfo(): DeviceInfo {\n return require('./Libraries/Utilities/DeviceInfo');\n },\n get DevSettings(): DevSettings {\n return require('./Libraries/Utilities/DevSettings');\n },\n get Dimensions(): Dimensions {\n return require('./Libraries/Utilities/Dimensions');\n },\n get Easing(): Easing {\n return require('./Libraries/Animated/src/Easing');\n },\n get findNodeHandle(): $PropertyType {\n return require('./Libraries/Renderer/shims/ReactNative').findNodeHandle;\n },\n get I18nManager(): I18nManager {\n return require('./Libraries/ReactNative/I18nManager');\n },\n get ImagePickerIOS(): ImagePickerIOS {\n warnOnce(\n 'imagePickerIOS-moved',\n 'ImagePickerIOS has been extracted from react-native core and will be removed in a future release. ' +\n \"Please upgrade to use either '@react-native-community/react-native-image-picker' or 'expo-image-picker'. \" +\n \"If you cannot upgrade to a different library, please install the deprecated '@react-native-community/image-picker-ios' package. \" +\n 'See https://github.com/react-native-community/react-native-image-picker-ios',\n );\n return require('./Libraries/Image/ImagePickerIOS');\n },\n get InteractionManager(): InteractionManager {\n return require('./Libraries/Interaction/InteractionManager');\n },\n get Keyboard(): Keyboard {\n return require('./Libraries/Components/Keyboard/Keyboard');\n },\n get LayoutAnimation(): LayoutAnimation {\n return require('./Libraries/LayoutAnimation/LayoutAnimation');\n },\n get Linking(): Linking {\n return require('./Libraries/Linking/Linking');\n },\n get NativeDialogManagerAndroid(): NativeDialogManagerAndroid {\n return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')\n .default;\n },\n get NativeEventEmitter(): NativeEventEmitter {\n return require('./Libraries/EventEmitter/NativeEventEmitter');\n },\n get Networking(): Networking {\n return require('./Libraries/Network/RCTNetworking');\n },\n get PanResponder(): PanResponder {\n return require('./Libraries/Interaction/PanResponder');\n },\n get PermissionsAndroid(): PermissionsAndroid {\n return require('./Libraries/PermissionsAndroid/PermissionsAndroid');\n },\n get PixelRatio(): PixelRatio {\n return require('./Libraries/Utilities/PixelRatio');\n },\n get PushNotificationIOS(): PushNotificationIOS {\n warnOnce(\n 'pushNotificationIOS-moved',\n 'PushNotificationIOS has been extracted from react-native core and will be removed in a future release. ' +\n \"It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/push-notification-ios',\n );\n return require('./Libraries/PushNotificationIOS/PushNotificationIOS');\n },\n get Settings(): Settings {\n return require('./Libraries/Settings/Settings');\n },\n get Share(): Share {\n return require('./Libraries/Share/Share');\n },\n get StatusBarIOS(): StatusBarIOS {\n warnOnce(\n 'StatusBarIOS-merged',\n 'StatusBarIOS has been merged with StatusBar and will be removed in a future release. Use StatusBar for mutating the status bar',\n );\n return require('./Libraries/Components/StatusBar/StatusBarIOS');\n },\n get StyleSheet(): StyleSheet {\n return require('./Libraries/StyleSheet/StyleSheet');\n },\n get Systrace(): Systrace {\n return require('./Libraries/Performance/Systrace');\n },\n get ToastAndroid(): ToastAndroid {\n return require('./Libraries/Components/ToastAndroid/ToastAndroid');\n },\n get TurboModuleRegistry(): TurboModuleRegistry {\n return require('./Libraries/TurboModule/TurboModuleRegistry');\n },\n get TVEventHandler(): TVEventHandler {\n return require('./Libraries/Components/AppleTV/TVEventHandler');\n },\n get UIManager(): UIManager {\n return require('./Libraries/ReactNative/UIManager');\n },\n get unstable_batchedUpdates(): $PropertyType<\n ReactNative,\n 'unstable_batchedUpdates',\n > {\n return require('./Libraries/Renderer/shims/ReactNative')\n .unstable_batchedUpdates;\n },\n get useColorScheme(): useColorScheme {\n return require('./Libraries/Utilities/useColorScheme').default;\n },\n get useWindowDimensions(): useWindowDimensions {\n return require('./Libraries/Utilities/useWindowDimensions').default;\n },\n get UTFSequence(): UTFSequence {\n return require('./Libraries/UTFSequence');\n },\n get Vibration(): Vibration {\n return require('./Libraries/Vibration/Vibration');\n },\n get YellowBox(): YellowBox {\n return require('./Libraries/YellowBox/YellowBox');\n },\n\n // Plugins\n get DeviceEventEmitter(): RCTDeviceEventEmitter {\n return require('./Libraries/EventEmitter/RCTDeviceEventEmitter');\n },\n get NativeAppEventEmitter(): RCTNativeAppEventEmitter {\n return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter');\n },\n get NativeModules(): NativeModules {\n return require('./Libraries/BatchedBridge/NativeModules');\n },\n get Platform(): Platform {\n return require('./Libraries/Utilities/Platform');\n },\n get processColor(): processColor {\n return require('./Libraries/StyleSheet/processColor');\n },\n get requireNativeComponent(): (\n uiViewClassName: string,\n ) => HostComponent {\n return require('./Libraries/ReactNative/requireNativeComponent');\n },\n get unstable_RootTagContext(): RootTagContext {\n return require('./Libraries/ReactNative/RootTagContext');\n },\n get unstable_enableLogBox(): () => void {\n return require('./Libraries/YellowBox/YellowBox').__unstable_enableLogBox;\n },\n\n // Prop Types\n get ColorPropType(): DeprecatedColorPropType {\n return require('./Libraries/DeprecatedPropTypes/DeprecatedColorPropType');\n },\n get EdgeInsetsPropType(): DeprecatedEdgeInsetsPropType {\n return require('./Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType');\n },\n get PointPropType(): DeprecatedPointPropType {\n return require('./Libraries/DeprecatedPropTypes/DeprecatedPointPropType');\n },\n get ViewPropTypes(): DeprecatedViewPropTypes {\n return require('./Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes');\n },\n};\n\nif (__DEV__) {\n // $FlowFixMe This is intentional: Flow will error when attempting to access ART.\n Object.defineProperty(module.exports, 'ART', {\n configurable: true,\n get() {\n invariant(\n false,\n 'ART has been removed from React Native. ' +\n \"It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/art',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access ListView.\n Object.defineProperty(module.exports, 'ListView', {\n configurable: true,\n get() {\n invariant(\n false,\n 'ListView has been removed from React Native. ' +\n 'See https://fb.me/nolistview for more information or use ' +\n '`deprecated-react-native-listview`.',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access SwipeableListView.\n Object.defineProperty(module.exports, 'SwipeableListView', {\n configurable: true,\n get() {\n invariant(\n false,\n 'SwipeableListView has been removed from React Native. ' +\n 'See https://fb.me/nolistview for more information or use ' +\n '`deprecated-react-native-swipeable-listview`.',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access WebView.\n Object.defineProperty(module.exports, 'WebView', {\n configurable: true,\n get() {\n invariant(\n false,\n 'WebView has been removed from React Native. ' +\n \"It can now be installed and imported from 'react-native-webview' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-webview',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access NetInfo.\n Object.defineProperty(module.exports, 'NetInfo', {\n configurable: true,\n get() {\n invariant(\n false,\n 'NetInfo has been removed from React Native. ' +\n \"It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-netinfo',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access CameraRoll.\n Object.defineProperty(module.exports, 'CameraRoll', {\n configurable: true,\n get() {\n invariant(\n false,\n 'CameraRoll has been removed from React Native. ' +\n \"It can now be installed and imported from '@react-native-community/cameraroll' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-cameraroll',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access ImageStore.\n Object.defineProperty(module.exports, 'ImageStore', {\n configurable: true,\n get() {\n invariant(\n false,\n 'ImageStore has been removed from React Native. ' +\n 'To get a base64-encoded string from a local image use either of the following third-party libraries:' +\n \"* expo-file-system: `readAsStringAsync(filepath, 'base64')`\" +\n \"* react-native-fs: `readFile(filepath, 'base64')`\",\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access ImageEditor.\n Object.defineProperty(module.exports, 'ImageEditor', {\n configurable: true,\n get() {\n invariant(\n false,\n 'ImageEditor has been removed from React Native. ' +\n \"It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-image-editor',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access TimePickerAndroid.\n Object.defineProperty(module.exports, 'TimePickerAndroid', {\n configurable: true,\n get() {\n invariant(\n false,\n 'TimePickerAndroid has been removed from React Native. ' +\n \"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/datetimepicker',\n );\n },\n });\n\n // $FlowFixMe This is intentional: Flow will error when attempting to access ViewPagerAndroid.\n Object.defineProperty(module.exports, 'ViewPagerAndroid', {\n configurable: true,\n get() {\n invariant(\n false,\n 'ViewPagerAndroid has been removed from React Native. ' +\n \"It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. \" +\n 'See https://github.com/react-native-community/react-native-viewpager',\n );\n },\n });\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst warning = require('fbjs/lib/warning');\n\nconst warnedKeys: {[string]: boolean, ...} = {};\n\n/**\n * A simple function that prints a warning message once per session.\n *\n * @param {string} key - The key used to ensure the message is printed once.\n * This should be unique to the callsite.\n * @param {string} message - The message to print\n */\nfunction warnOnce(key: string, message: string) {\n if (warnedKeys[key]) {\n return;\n }\n\n warning(false, message);\n\n warnedKeys[key] = true;\n}\n\nmodule.exports = warnOnce;\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar emptyFunction = require(\"./emptyFunction\");\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\nfunction printWarning(format) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n}\n\nvar warning = process.env.NODE_ENV !== \"production\" ? function (condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(void 0, [format].concat(args));\n }\n} : emptyFunction;\nmodule.exports = warning;","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst RCTDeviceEventEmitter = require('../../EventEmitter/RCTDeviceEventEmitter');\nconst UIManager = require('../../ReactNative/UIManager');\n\nimport NativeAccessibilityInfo from './NativeAccessibilityInfo';\n\nconst REDUCE_MOTION_EVENT = 'reduceMotionDidChange';\nconst TOUCH_EXPLORATION_EVENT = 'touchExplorationDidChange';\n\ntype ChangeEventName = $Keys<{\n change: string,\n reduceMotionChanged: string,\n screenReaderChanged: string,\n ...\n}>;\n\nconst _subscriptions = new Map();\n\n/**\n * Sometimes it's useful to know whether or not the device has a screen reader\n * that is currently active. The `AccessibilityInfo` API is designed for this\n * purpose. You can use it to query the current state of the screen reader as\n * well as to register to be notified when the state of the screen reader\n * changes.\n *\n * See http://facebook.github.io/react-native/docs/accessibilityinfo.html\n */\n\nconst AccessibilityInfo = {\n /**\n * iOS only\n */\n isBoldTextEnabled: function(): Promise {\n return Promise.resolve(false);\n },\n\n /**\n * iOS only\n */\n isGrayscaleEnabled: function(): Promise {\n return Promise.resolve(false);\n },\n\n /**\n * iOS only\n */\n isInvertColorsEnabled: function(): Promise {\n return Promise.resolve(false);\n },\n\n isReduceMotionEnabled: function(): Promise {\n return new Promise((resolve, reject) => {\n if (NativeAccessibilityInfo) {\n NativeAccessibilityInfo.isReduceMotionEnabled(resolve);\n } else {\n reject(false);\n }\n });\n },\n\n /**\n * iOS only\n */\n isReduceTransparencyEnabled: function(): Promise {\n return Promise.resolve(false);\n },\n\n isScreenReaderEnabled: function(): Promise {\n return new Promise((resolve, reject) => {\n if (NativeAccessibilityInfo) {\n NativeAccessibilityInfo.isTouchExplorationEnabled(resolve);\n } else {\n reject(false);\n }\n });\n },\n\n /**\n * Deprecated\n *\n * Same as `isScreenReaderEnabled`\n */\n get fetch(): () => Promise {\n console.warn(\n 'AccessibilityInfo.fetch is deprecated, call Accessibility.isScreenReaderEnabled instead',\n );\n return this.isScreenReaderEnabled;\n },\n\n addEventListener: function(\n eventName: ChangeEventName,\n handler: Function,\n ): void {\n let listener;\n\n if (eventName === 'change' || eventName === 'screenReaderChanged') {\n listener = RCTDeviceEventEmitter.addListener(\n TOUCH_EXPLORATION_EVENT,\n enabled => {\n handler(enabled);\n },\n );\n } else if (eventName === 'reduceMotionChanged') {\n listener = RCTDeviceEventEmitter.addListener(\n REDUCE_MOTION_EVENT,\n enabled => {\n handler(enabled);\n },\n );\n }\n\n _subscriptions.set(handler, listener);\n },\n\n removeEventListener: function(\n eventName: ChangeEventName,\n handler: Function,\n ): void {\n const listener = _subscriptions.get(handler);\n if (!listener) {\n return;\n }\n listener.remove();\n _subscriptions.delete(handler);\n },\n\n /**\n * Set accessibility focus to a react component.\n *\n * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#setaccessibilityfocus\n */\n setAccessibilityFocus: function(reactTag: number): void {\n UIManager.sendAccessibilityEvent(\n reactTag,\n UIManager.getConstants().AccessibilityEventTypes.typeViewFocused,\n );\n },\n\n /**\n * Post a string to be announced by the screen reader.\n *\n * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#announceforaccessibility\n */\n announceForAccessibility: function(announcement: string): void {\n if (NativeAccessibilityInfo) {\n NativeAccessibilityInfo.announceForAccessibility(announcement);\n }\n },\n};\n\nmodule.exports = AccessibilityInfo;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +isReduceMotionEnabled: (\n onSuccess: (isReduceMotionEnabled: boolean) => void,\n ) => void;\n +isTouchExplorationEnabled: (\n onSuccess: (isScreenReaderEnabled: boolean) => void,\n ) => void;\n +setAccessibilityFocus: (reactTag: number) => void;\n +announceForAccessibility: (announcement: string) => void;\n}\n\nexport default (TurboModuleRegistry.get('AccessibilityInfo'): ?Spec);\n","var _typeof = require(\"../helpers/typeof\");\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") {\n return {\n \"default\": obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj[\"default\"] = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nmodule.exports = _interopRequireWildcard;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst NativeModules = require('../BatchedBridge/NativeModules');\nimport type {TurboModule} from './RCTExport';\nimport invariant from 'invariant';\n\nconst turboModuleProxy = global.__turboModuleProxy;\n\nexport function get(name: string): ?T {\n // Bridgeless mode requires TurboModules\n if (!global.RN$Bridgeless) {\n // Backward compatibility layer during migration.\n const legacyModule = NativeModules[name];\n if (legacyModule != null) {\n return ((legacyModule: any): T);\n }\n }\n\n if (turboModuleProxy != null) {\n const module: ?T = turboModuleProxy(name);\n return module;\n }\n\n return null;\n}\n\nexport function getEnforcing(name: string): T {\n const module = get(name);\n invariant(\n module != null,\n `TurboModuleRegistry.getEnforcing(...): '${name}' could not be found. ` +\n 'Verify that a module by this name is registered in the native binary.',\n );\n return module;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('./BatchedBridge');\n\nconst invariant = require('invariant');\n\nimport type {ExtendedError} from '../Core/Devtools/parseErrorStack';\n\nexport type ModuleConfig = [\n string /* name */,\n ?Object /* constants */,\n ?$ReadOnlyArray /* functions */,\n ?$ReadOnlyArray /* promise method IDs */,\n ?$ReadOnlyArray /* sync method IDs */,\n];\n\nexport type MethodType = 'async' | 'promise' | 'sync';\n\nfunction genModule(\n config: ?ModuleConfig,\n moduleID: number,\n): ?{\n name: string,\n module?: Object,\n ...\n} {\n if (!config) {\n return null;\n }\n\n const [moduleName, constants, methods, promiseMethods, syncMethods] = config;\n invariant(\n !moduleName.startsWith('RCT') && !moduleName.startsWith('RK'),\n \"Module name prefixes should've been stripped by the native side \" +\n \"but wasn't for \" +\n moduleName,\n );\n\n if (!constants && !methods) {\n // Module contents will be filled in lazily later\n return {name: moduleName};\n }\n\n const module = {};\n methods &&\n methods.forEach((methodName, methodID) => {\n const isPromise =\n promiseMethods && arrayContains(promiseMethods, methodID);\n const isSync = syncMethods && arrayContains(syncMethods, methodID);\n invariant(\n !isPromise || !isSync,\n 'Cannot have a method that is both async and a sync hook',\n );\n const methodType = isPromise ? 'promise' : isSync ? 'sync' : 'async';\n module[methodName] = genMethod(moduleID, methodID, methodType);\n });\n\n Object.assign(module, constants);\n\n if (module.getConstants == null) {\n module.getConstants = () => constants || Object.freeze({});\n } else {\n console.warn(\n `Unable to define method 'getConstants()' on NativeModule '${moduleName}'. NativeModule '${moduleName}' already has a constant or method called 'getConstants'. Please remove it.`,\n );\n }\n\n if (__DEV__) {\n BatchedBridge.createDebugLookup(moduleID, moduleName, methods);\n }\n\n return {name: moduleName, module};\n}\n\n// export this method as a global so we can call it from native\nglobal.__fbGenNativeModule = genModule;\n\nfunction loadModule(name: string, moduleID: number): ?Object {\n invariant(\n global.nativeRequireModuleConfig,\n \"Can't lazily create module without nativeRequireModuleConfig\",\n );\n const config = global.nativeRequireModuleConfig(name);\n const info = genModule(config, moduleID);\n return info && info.module;\n}\n\nfunction genMethod(moduleID: number, methodID: number, type: MethodType) {\n let fn = null;\n if (type === 'promise') {\n fn = function promiseMethodWrapper(...args: Array) {\n // In case we reject, capture a useful stack trace here.\n const enqueueingFrameError: ExtendedError = new Error();\n return new Promise((resolve, reject) => {\n BatchedBridge.enqueueNativeCall(\n moduleID,\n methodID,\n args,\n data => resolve(data),\n errorData =>\n reject(updateErrorWithErrorData(errorData, enqueueingFrameError)),\n );\n });\n };\n } else {\n fn = function nonPromiseMethodWrapper(...args: Array) {\n const lastArg = args.length > 0 ? args[args.length - 1] : null;\n const secondLastArg = args.length > 1 ? args[args.length - 2] : null;\n const hasSuccessCallback = typeof lastArg === 'function';\n const hasErrorCallback = typeof secondLastArg === 'function';\n hasErrorCallback &&\n invariant(\n hasSuccessCallback,\n 'Cannot have a non-function arg after a function arg.',\n );\n const onSuccess = hasSuccessCallback ? lastArg : null;\n const onFail = hasErrorCallback ? secondLastArg : null;\n const callbackCount = hasSuccessCallback + hasErrorCallback;\n args = args.slice(0, args.length - callbackCount);\n if (type === 'sync') {\n return BatchedBridge.callNativeSyncHook(\n moduleID,\n methodID,\n args,\n onFail,\n onSuccess,\n );\n } else {\n BatchedBridge.enqueueNativeCall(\n moduleID,\n methodID,\n args,\n onFail,\n onSuccess,\n );\n }\n };\n }\n fn.type = type;\n return fn;\n}\n\nfunction arrayContains(array: $ReadOnlyArray, value: T): boolean {\n return array.indexOf(value) !== -1;\n}\n\nfunction updateErrorWithErrorData(\n errorData: {message: string, ...},\n error: ExtendedError,\n): ExtendedError {\n return Object.assign(error, errorData || {});\n}\n\nlet NativeModules: {[moduleName: string]: Object, ...} = {};\nif (global.nativeModuleProxy) {\n NativeModules = global.nativeModuleProxy;\n} else if (!global.nativeExtensions) {\n const bridgeConfig = global.__fbBatchedBridgeConfig;\n invariant(\n bridgeConfig,\n '__fbBatchedBridgeConfig is not set, cannot invoke native modules',\n );\n\n const defineLazyObjectProperty = require('../Utilities/defineLazyObjectProperty');\n (bridgeConfig.remoteModuleConfig || []).forEach(\n (config: ModuleConfig, moduleID: number) => {\n // Initially this config will only contain the module name when running in JSC. The actual\n // configuration of the module will be lazily loaded.\n const info = genModule(config, moduleID);\n if (!info) {\n return;\n }\n\n if (info.module) {\n NativeModules[info.name] = info.module;\n }\n // If there's no module config, define a lazy getter\n else {\n defineLazyObjectProperty(NativeModules, info.name, {\n get: () => loadModule(info.name, moduleID),\n });\n }\n },\n );\n}\n\nmodule.exports = NativeModules;\n","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst MessageQueue = require('./MessageQueue');\n\nconst BatchedBridge: MessageQueue = new MessageQueue();\n\n// Wire up the batched bridge on the global object so that we can call into it.\n// Ideally, this would be the inverse relationship. I.e. the native environment\n// provides this global directly with its script embedded. Then this module\n// would export it. A possible fix would be to trim the dependencies in\n// MessageQueue to its minimal features and embed that in the native runtime.\n\nObject.defineProperty(global, '__fbBatchedBridge', {\n configurable: true,\n value: BatchedBridge,\n});\n\nmodule.exports = BatchedBridge;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst ErrorUtils = require('../vendor/core/ErrorUtils');\nconst Systrace = require('../Performance/Systrace');\n\nconst deepFreezeAndThrowOnMutationInDev = require('../Utilities/deepFreezeAndThrowOnMutationInDev');\nconst invariant = require('invariant');\nconst stringifySafe = require('../Utilities/stringifySafe');\nconst warnOnce = require('../Utilities/warnOnce');\n\nexport type SpyData = {\n type: number,\n module: ?string,\n method: string | number,\n args: any[],\n ...\n};\n\nconst TO_JS = 0;\nconst TO_NATIVE = 1;\n\nconst MODULE_IDS = 0;\nconst METHOD_IDS = 1;\nconst PARAMS = 2;\nconst MIN_TIME_BETWEEN_FLUSHES_MS = 5;\n\n// eslint-disable-next-line no-bitwise\nconst TRACE_TAG_REACT_APPS = 1 << 17;\n\nconst DEBUG_INFO_LIMIT = 32;\n\nclass MessageQueue {\n _lazyCallableModules: {[key: string]: (void) => Object, ...};\n _queue: [number[], number[], any[], number];\n _successCallbacks: Map;\n _failureCallbacks: Map;\n _callID: number;\n _lastFlush: number;\n _eventLoopStartTime: number;\n _immediatesCallback: ?() => void;\n\n _debugInfo: {[number]: [number, number], ...};\n _remoteModuleTable: {[number]: string, ...};\n _remoteMethodTable: {[number]: $ReadOnlyArray, ...};\n\n __spy: ?(data: SpyData) => void;\n\n constructor() {\n this._lazyCallableModules = {};\n this._queue = [[], [], [], 0];\n this._successCallbacks = new Map();\n this._failureCallbacks = new Map();\n this._callID = 0;\n this._lastFlush = 0;\n this._eventLoopStartTime = Date.now();\n this._immediatesCallback = null;\n\n if (__DEV__) {\n this._debugInfo = {};\n this._remoteModuleTable = {};\n this._remoteMethodTable = {};\n }\n\n (this: any).callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue.bind(\n this,\n );\n (this: any).callFunctionReturnResultAndFlushedQueue = this.callFunctionReturnResultAndFlushedQueue.bind(\n this,\n );\n (this: any).flushedQueue = this.flushedQueue.bind(this);\n (this: any).invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue.bind(\n this,\n );\n }\n\n /**\n * Public APIs\n */\n\n static spy(spyOrToggle: boolean | ((data: SpyData) => void)) {\n if (spyOrToggle === true) {\n MessageQueue.prototype.__spy = info => {\n console.log(\n `${info.type === TO_JS ? 'N->JS' : 'JS->N'} : ` +\n `${info.module ? info.module + '.' : ''}${info.method}` +\n `(${JSON.stringify(info.args)})`,\n );\n };\n } else if (spyOrToggle === false) {\n MessageQueue.prototype.__spy = null;\n } else {\n MessageQueue.prototype.__spy = spyOrToggle;\n }\n }\n\n callFunctionReturnFlushedQueue(\n module: string,\n method: string,\n args: any[],\n ): null | [Array, Array, Array, number] {\n this.__guard(() => {\n this.__callFunction(module, method, args);\n });\n\n return this.flushedQueue();\n }\n\n callFunctionReturnResultAndFlushedQueue(\n module: string,\n method: string,\n args: any[],\n ): $TEMPORARY$array, Array, Array, number]> {\n let result;\n this.__guard(() => {\n result = this.__callFunction(module, method, args);\n });\n\n return [result, this.flushedQueue()];\n }\n\n invokeCallbackAndReturnFlushedQueue(\n cbID: number,\n args: any[],\n ): null | [Array, Array, Array, number] {\n this.__guard(() => {\n this.__invokeCallback(cbID, args);\n });\n\n return this.flushedQueue();\n }\n\n flushedQueue(): null | [Array, Array, Array, number] {\n this.__guard(() => {\n this.__callImmediates();\n });\n\n const queue = this._queue;\n this._queue = [[], [], [], this._callID];\n return queue[0].length ? queue : null;\n }\n\n getEventLoopRunningTime(): number {\n return Date.now() - this._eventLoopStartTime;\n }\n\n registerCallableModule(name: string, module: Object) {\n this._lazyCallableModules[name] = () => module;\n }\n\n registerLazyCallableModule(name: string, factory: void => Object) {\n let module: Object;\n let getValue: ?(void) => Object = factory;\n this._lazyCallableModules[name] = () => {\n if (getValue) {\n module = getValue();\n getValue = null;\n }\n return module;\n };\n }\n\n getCallableModule(name: string): any | null {\n const getValue = this._lazyCallableModules[name];\n return getValue ? getValue() : null;\n }\n\n callNativeSyncHook(\n moduleID: number,\n methodID: number,\n params: any[],\n onFail: ?Function,\n onSucc: ?Function,\n ): any {\n if (__DEV__) {\n invariant(\n global.nativeCallSyncHook,\n 'Calling synchronous methods on native ' +\n 'modules is not supported in Chrome.\\n\\n Consider providing alternative ' +\n 'methods to expose this method in debug mode, e.g. by exposing constants ' +\n 'ahead-of-time.',\n );\n }\n this.processCallbacks(moduleID, methodID, params, onFail, onSucc);\n return global.nativeCallSyncHook(moduleID, methodID, params);\n }\n\n processCallbacks(\n moduleID: number,\n methodID: number,\n params: any[],\n onFail: ?Function,\n onSucc: ?Function,\n ) {\n if (onFail || onSucc) {\n if (__DEV__) {\n this._debugInfo[this._callID] = [moduleID, methodID];\n if (this._callID > DEBUG_INFO_LIMIT) {\n delete this._debugInfo[this._callID - DEBUG_INFO_LIMIT];\n }\n if (this._successCallbacks.size > 500) {\n const info = {};\n this._successCallbacks.forEach((_, callID) => {\n const debug = this._debugInfo[callID];\n const module = debug && this._remoteModuleTable[debug[0]];\n const method = debug && this._remoteMethodTable[debug[0]][debug[1]];\n info[callID] = {module, method};\n });\n warnOnce(\n 'excessive-number-of-pending-callbacks',\n `Please report: Excessive number of pending callbacks: ${\n this._successCallbacks.size\n }. Some pending callbacks that might have leaked by never being called from native code: ${stringifySafe(\n info,\n )}`,\n );\n }\n }\n // Encode callIDs into pairs of callback identifiers by shifting left and using the rightmost bit\n // to indicate fail (0) or success (1)\n // eslint-disable-next-line no-bitwise\n onFail && params.push(this._callID << 1);\n // eslint-disable-next-line no-bitwise\n onSucc && params.push((this._callID << 1) | 1);\n this._successCallbacks.set(this._callID, onSucc);\n this._failureCallbacks.set(this._callID, onFail);\n }\n if (__DEV__) {\n global.nativeTraceBeginAsyncFlow &&\n global.nativeTraceBeginAsyncFlow(\n TRACE_TAG_REACT_APPS,\n 'native',\n this._callID,\n );\n }\n this._callID++;\n }\n\n enqueueNativeCall(\n moduleID: number,\n methodID: number,\n params: any[],\n onFail: ?Function,\n onSucc: ?Function,\n ) {\n this.processCallbacks(moduleID, methodID, params, onFail, onSucc);\n\n this._queue[MODULE_IDS].push(moduleID);\n this._queue[METHOD_IDS].push(methodID);\n\n if (__DEV__) {\n // Validate that parameters passed over the bridge are\n // folly-convertible. As a special case, if a prop value is a\n // function it is permitted here, and special-cased in the\n // conversion.\n const isValidArgument = val => {\n const t = typeof val;\n if (\n t === 'undefined' ||\n t === 'null' ||\n t === 'boolean' ||\n t === 'string'\n ) {\n return true;\n }\n if (t === 'number') {\n return isFinite(val);\n }\n if (t === 'function' || t !== 'object') {\n return false;\n }\n if (Array.isArray(val)) {\n return val.every(isValidArgument);\n }\n for (const k in val) {\n if (typeof val[k] !== 'function' && !isValidArgument(val[k])) {\n return false;\n }\n }\n return true;\n };\n\n // Replacement allows normally non-JSON-convertible values to be\n // seen. There is ambiguity with string values, but in context,\n // it should at least be a strong hint.\n const replacer = (key, val) => {\n const t = typeof val;\n if (t === 'function') {\n return '<>';\n } else if (t === 'number' && !isFinite(val)) {\n return '<<' + val.toString() + '>>';\n } else {\n return val;\n }\n };\n\n // Note that JSON.stringify\n invariant(\n isValidArgument(params),\n '%s is not usable as a native method argument',\n JSON.stringify(params, replacer),\n );\n\n // The params object should not be mutated after being queued\n deepFreezeAndThrowOnMutationInDev((params: any));\n }\n this._queue[PARAMS].push(params);\n\n const now = Date.now();\n if (\n global.nativeFlushQueueImmediate &&\n now - this._lastFlush >= MIN_TIME_BETWEEN_FLUSHES_MS\n ) {\n const queue = this._queue;\n this._queue = [[], [], [], this._callID];\n this._lastFlush = now;\n global.nativeFlushQueueImmediate(queue);\n }\n Systrace.counterEvent('pending_js_to_native_queue', this._queue[0].length);\n if (__DEV__ && this.__spy && isFinite(moduleID)) {\n this.__spy({\n type: TO_NATIVE,\n module: this._remoteModuleTable[moduleID],\n method: this._remoteMethodTable[moduleID][methodID],\n args: params,\n });\n } else if (this.__spy) {\n this.__spy({\n type: TO_NATIVE,\n module: moduleID + '',\n method: methodID,\n args: params,\n });\n }\n }\n\n createDebugLookup(\n moduleID: number,\n name: string,\n methods: ?$ReadOnlyArray,\n ) {\n if (__DEV__) {\n this._remoteModuleTable[moduleID] = name;\n this._remoteMethodTable[moduleID] = methods || [];\n }\n }\n\n // For JSTimers to register its callback. Otherwise a circular dependency\n // between modules is introduced. Note that only one callback may be\n // registered at a time.\n setImmediatesCallback(fn: () => void) {\n this._immediatesCallback = fn;\n }\n\n /**\n * Private methods\n */\n\n __guard(fn: () => void) {\n if (this.__shouldPauseOnThrow()) {\n fn();\n } else {\n try {\n fn();\n } catch (error) {\n ErrorUtils.reportFatalError(error);\n }\n }\n }\n\n // MessageQueue installs a global handler to catch all exceptions where JS users can register their own behavior\n // This handler makes all exceptions to be propagated from inside MessageQueue rather than by the VM at their origin\n // This makes stacktraces to be placed at MessageQueue rather than at where they were launched\n // The parameter DebuggerInternal.shouldPauseOnThrow is used to check before catching all exceptions and\n // can be configured by the VM or any Inspector\n __shouldPauseOnThrow(): boolean {\n return (\n // $FlowFixMe\n typeof DebuggerInternal !== 'undefined' &&\n DebuggerInternal.shouldPauseOnThrow === true // eslint-disable-line no-undef\n );\n }\n\n __callImmediates() {\n Systrace.beginEvent('JSTimers.callImmediates()');\n if (this._immediatesCallback != null) {\n this._immediatesCallback();\n }\n Systrace.endEvent();\n }\n\n __callFunction(module: string, method: string, args: any[]): any {\n this._lastFlush = Date.now();\n this._eventLoopStartTime = this._lastFlush;\n if (__DEV__ || this.__spy) {\n Systrace.beginEvent(`${module}.${method}(${stringifySafe(args)})`);\n } else {\n Systrace.beginEvent(`${module}.${method}(...)`);\n }\n if (this.__spy) {\n this.__spy({type: TO_JS, module, method, args});\n }\n const moduleMethods = this.getCallableModule(module);\n invariant(\n !!moduleMethods,\n 'Module %s is not a registered callable module (calling %s)',\n module,\n method,\n );\n invariant(\n !!moduleMethods[method],\n 'Method %s does not exist on module %s',\n method,\n module,\n );\n const result = moduleMethods[method].apply(moduleMethods, args);\n Systrace.endEvent();\n return result;\n }\n\n __invokeCallback(cbID: number, args: any[]) {\n this._lastFlush = Date.now();\n this._eventLoopStartTime = this._lastFlush;\n\n // The rightmost bit of cbID indicates fail (0) or success (1), the other bits are the callID shifted left.\n // eslint-disable-next-line no-bitwise\n const callID = cbID >>> 1;\n // eslint-disable-next-line no-bitwise\n const isSuccess = cbID & 1;\n const callback = isSuccess\n ? this._successCallbacks.get(callID)\n : this._failureCallbacks.get(callID);\n\n if (__DEV__) {\n const debug = this._debugInfo[callID];\n const module = debug && this._remoteModuleTable[debug[0]];\n const method = debug && this._remoteMethodTable[debug[0]][debug[1]];\n invariant(\n callback,\n `No callback found with cbID ${cbID} and callID ${callID} for ` +\n (method\n ? ` ${module}.${method} - most likely the callback was already invoked`\n : `module ${module || ''}`) +\n `. Args: '${stringifySafe(args)}'`,\n );\n const profileName = debug\n ? ''\n : cbID;\n if (callback && this.__spy) {\n this.__spy({type: TO_JS, module: null, method: profileName, args});\n }\n Systrace.beginEvent(\n `MessageQueue.invokeCallback(${profileName}, ${stringifySafe(args)})`,\n );\n }\n\n if (!callback) {\n return;\n }\n\n this._successCallbacks.delete(callID);\n this._failureCallbacks.delete(callID);\n callback(...args);\n\n if (__DEV__) {\n Systrace.endEvent();\n }\n }\n}\n\nmodule.exports = MessageQueue;\n","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\nimport type {ErrorUtilsT} from '../../polyfills/error-guard.js';\n\n/**\n * The particular require runtime that we are using looks for a global\n * `ErrorUtils` object and if it exists, then it requires modules with the\n * error handler specified via ErrorUtils.setGlobalHandler by calling the\n * require function with applyWithGuard. Since the require module is loaded\n * before any of the modules, this ErrorUtils must be defined (and the handler\n * set) globally before requiring anything.\n *\n * However, we still want to treat ErrorUtils as a module so that other modules\n * that use it aren't just using a global variable, so simply export the global\n * variable here. ErrorUtils is originally defined in a file named error-guard.js.\n */\nmodule.exports = (global.ErrorUtils: ErrorUtilsT);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\nconst TRACE_TAG_REACT_APPS = 1 << 17; // eslint-disable-line no-bitwise\nconst TRACE_TAG_JS_VM_CALLS = 1 << 27; // eslint-disable-line no-bitwise\n\nlet _enabled = false;\nlet _asyncCookie = 0;\nconst _markStack = [];\nlet _markStackIndex = -1;\nlet _canInstallReactHook = false;\n\n// Implements a subset of User Timing API necessary for React measurements.\n// https://developer.mozilla.org/en-US/docs/Web/API/User_Timing_API\nconst REACT_MARKER = '\\u269B';\nconst userTimingPolyfill = __DEV__\n ? {\n mark(markName: string) {\n if (_enabled) {\n _markStackIndex++;\n _markStack[_markStackIndex] = markName;\n let systraceLabel = markName;\n // Since perf measurements are a shared namespace in User Timing API,\n // we prefix all React results with a React emoji.\n if (markName[0] === REACT_MARKER) {\n // This is coming from React.\n // Removing component IDs keeps trace colors stable.\n const indexOfId = markName.lastIndexOf(' (#');\n const cutoffIndex = indexOfId !== -1 ? indexOfId : markName.length;\n // Also cut off the emoji because it breaks Systrace\n systraceLabel = markName.slice(2, cutoffIndex);\n }\n Systrace.beginEvent(systraceLabel);\n }\n },\n measure(measureName: string, startMark: ?string, endMark: ?string) {\n if (_enabled) {\n invariant(\n typeof measureName === 'string' &&\n typeof startMark === 'string' &&\n typeof endMark === 'undefined',\n 'Only performance.measure(string, string) overload is supported.',\n );\n const topMark = _markStack[_markStackIndex];\n invariant(\n startMark === topMark,\n 'There was a mismatching performance.measure() call. ' +\n 'Expected \"%s\" but got \"%s.\"',\n topMark,\n startMark,\n );\n _markStackIndex--;\n // We can't use more descriptive measureName because Systrace doesn't\n // let us edit labels post factum.\n Systrace.endEvent();\n }\n },\n clearMarks(markName: string) {\n if (_enabled) {\n if (_markStackIndex === -1) {\n return;\n }\n if (markName === _markStack[_markStackIndex]) {\n // React uses this for \"cancelling\" started measurements.\n // Systrace doesn't support deleting measurements, so we just stop them.\n if (userTimingPolyfill != null) {\n userTimingPolyfill.measure(markName, markName);\n }\n }\n }\n },\n clearMeasures() {\n // React calls this to avoid memory leaks in browsers, but we don't keep\n // measurements anyway.\n },\n }\n : null;\n\nconst Systrace = {\n installReactHook() {\n if (_enabled) {\n if (__DEV__) {\n global.performance = userTimingPolyfill;\n }\n }\n _canInstallReactHook = true;\n },\n\n setEnabled(enabled: boolean) {\n if (_enabled !== enabled) {\n if (__DEV__) {\n if (enabled) {\n global.nativeTraceBeginLegacy &&\n global.nativeTraceBeginLegacy(TRACE_TAG_JS_VM_CALLS);\n } else {\n global.nativeTraceEndLegacy &&\n global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS);\n }\n if (_canInstallReactHook) {\n if (enabled && global.performance === undefined) {\n global.performance = userTimingPolyfill;\n }\n }\n }\n _enabled = enabled;\n }\n },\n\n isEnabled(): boolean {\n return _enabled;\n },\n\n /**\n * beginEvent/endEvent for starting and then ending a profile within the same call stack frame\n **/\n beginEvent(profileName?: any, args?: any) {\n if (_enabled) {\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args);\n }\n },\n\n endEvent() {\n if (_enabled) {\n global.nativeTraceEndSection(TRACE_TAG_REACT_APPS);\n }\n },\n\n /**\n * beginAsyncEvent/endAsyncEvent for starting and then ending a profile where the end can either\n * occur on another thread or out of the current stack frame, eg await\n * the returned cookie variable should be used as input into the endAsyncEvent call to end the profile\n **/\n beginAsyncEvent(profileName?: any): any {\n const cookie = _asyncCookie;\n if (_enabled) {\n _asyncCookie++;\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceBeginAsyncSection(\n TRACE_TAG_REACT_APPS,\n profileName,\n cookie,\n );\n }\n return cookie;\n },\n\n endAsyncEvent(profileName?: any, cookie?: any) {\n if (_enabled) {\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceEndAsyncSection(\n TRACE_TAG_REACT_APPS,\n profileName,\n cookie,\n );\n }\n },\n\n /**\n * counterEvent registers the value to the profileName on the systrace timeline\n **/\n counterEvent(profileName?: any, value?: any) {\n if (_enabled) {\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceCounter &&\n global.nativeTraceCounter(TRACE_TAG_REACT_APPS, profileName, value);\n }\n },\n};\n\nif (__DEV__) {\n // This is needed, because require callis in polyfills are not processed as\n // other files. Therefore, calls to `require('moduleId')` are not replaced\n // with numeric IDs\n // TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686)\n (require: any).Systrace = Systrace;\n}\n\nmodule.exports = Systrace;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/**\n * If your application is accepting different values for the same field over\n * time and is doing a diff on them, you can either (1) create a copy or\n * (2) ensure that those values are not mutated behind two passes.\n * This function helps you with (2) by freezing the object and throwing if\n * the user subsequently modifies the value.\n *\n * There are two caveats with this function:\n * - If the call site is not in strict mode, it will only throw when\n * mutating existing fields, adding a new one\n * will unfortunately fail silently :(\n * - If the object is already frozen or sealed, it will not continue the\n * deep traversal and will leave leaf nodes unfrozen.\n *\n * Freezing the object and adding the throw mechanism is expensive and will\n * only be used in DEV.\n */\nfunction deepFreezeAndThrowOnMutationInDev(object: T): T {\n if (__DEV__) {\n if (\n typeof object !== 'object' ||\n object === null ||\n Object.isFrozen(object) ||\n Object.isSealed(object)\n ) {\n return object;\n }\n\n const keys = Object.keys(object);\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (hasOwnProperty.call(object, key)) {\n Object.defineProperty(object, key, {\n get: identity.bind(null, object[key]),\n });\n Object.defineProperty(object, key, {\n set: throwOnImmutableMutation.bind(null, key),\n });\n }\n }\n\n Object.freeze(object);\n Object.seal(object);\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (hasOwnProperty.call(object, key)) {\n deepFreezeAndThrowOnMutationInDev(object[key]);\n }\n }\n }\n return object;\n}\n\nfunction throwOnImmutableMutation(key, value) {\n throw Error(\n 'You attempted to set the key `' +\n key +\n '` with the value `' +\n JSON.stringify(value) +\n '` on an object that is meant to be immutable ' +\n 'and has been frozen.',\n );\n}\n\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = deepFreezeAndThrowOnMutationInDev;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/**\n * Tries to stringify with JSON.stringify and toString, but catches exceptions\n * (e.g. from circular objects) and always returns a string and never throws.\n */\nfunction stringifySafe(arg: any): string {\n let ret;\n const type = typeof arg;\n if (arg === undefined) {\n ret = 'undefined';\n } else if (arg === null) {\n ret = 'null';\n } else if (type === 'string') {\n ret = '\"' + arg + '\"';\n } else if (type === 'function') {\n try {\n ret = arg.toString();\n } catch (e) {\n ret = '[function unknown]';\n }\n } else if (arg instanceof Error) {\n ret = arg.name + ': ' + arg.message;\n } else {\n // Perform a try catch, just in case the object has a circular\n // reference or stringify throws for some other reason.\n try {\n ret = JSON.stringify(arg);\n } catch (e) {\n if (typeof arg.toString === 'function') {\n try {\n ret = arg.toString();\n } catch (E) {}\n }\n }\n }\n return ret || '[\"' + type + '\" failed to stringify]';\n}\n\nmodule.exports = stringifySafe;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/**\n * Defines a lazily evaluated property on the supplied `object`.\n */\nfunction defineLazyObjectProperty(\n object: Object,\n name: string,\n descriptor: {\n get: () => T,\n enumerable?: boolean,\n writable?: boolean,\n ...\n },\n): void {\n const {get} = descriptor;\n const enumerable = descriptor.enumerable !== false;\n const writable = descriptor.writable !== false;\n\n let value;\n let valueSet = false;\n function getValue(): T {\n // WORKAROUND: A weird infinite loop occurs where calling `getValue` calls\n // `setValue` which calls `Object.defineProperty` which somehow triggers\n // `getValue` again. Adding `valueSet` breaks this loop.\n if (!valueSet) {\n // Calling `get()` here can trigger an infinite loop if it fails to\n // remove the getter on the property, which can happen when executing\n // JS in a V8 context. `valueSet = true` will break this loop, and\n // sets the value of the property to undefined, until the code in `get()`\n // finishes, at which point the property is set to the correct value.\n valueSet = true;\n setValue(get());\n }\n return value;\n }\n function setValue(newValue: T): void {\n value = newValue;\n valueSet = true;\n Object.defineProperty(object, name, {\n value: newValue,\n configurable: true,\n enumerable,\n writable,\n });\n }\n\n Object.defineProperty(object, name, {\n get: getValue,\n set: setValue,\n configurable: true,\n enumerable,\n });\n}\n\nmodule.exports = defineLazyObjectProperty;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('../vendor/emitter/EventEmitter');\nconst EventSubscriptionVendor = require('../vendor/emitter/EventSubscriptionVendor');\n\nimport type EmitterSubscription from '../vendor/emitter/EmitterSubscription';\n\nfunction checkNativeEventModule(eventType: ?string) {\n if (eventType) {\n if (eventType.lastIndexOf('statusBar', 0) === 0) {\n throw new Error(\n '`' +\n eventType +\n '` event should be registered via the StatusBarIOS module',\n );\n }\n if (eventType.lastIndexOf('keyboard', 0) === 0) {\n throw new Error(\n '`' +\n eventType +\n '` event should be registered via the Keyboard module',\n );\n }\n if (eventType === 'appStateDidChange' || eventType === 'memoryWarning') {\n throw new Error(\n '`' +\n eventType +\n '` event should be registered via the AppState module',\n );\n }\n }\n}\n\n/**\n * Deprecated - subclass NativeEventEmitter to create granular event modules instead of\n * adding all event listeners directly to RCTDeviceEventEmitter.\n */\nclass RCTDeviceEventEmitter extends EventEmitter {\n sharedSubscriber: EventSubscriptionVendor;\n\n constructor() {\n const sharedSubscriber = new EventSubscriptionVendor();\n super(sharedSubscriber);\n this.sharedSubscriber = sharedSubscriber;\n }\n\n addListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n if (__DEV__) {\n checkNativeEventModule(eventType);\n }\n return super.addListener(eventType, listener, context);\n }\n\n removeAllListeners(eventType: ?string) {\n if (__DEV__) {\n checkNativeEventModule(eventType);\n }\n super.removeAllListeners(eventType);\n }\n\n removeSubscription(subscription: EmitterSubscription) {\n if (subscription.emitter !== this) {\n subscription.emitter.removeSubscription(subscription);\n } else {\n super.removeSubscription(subscription);\n }\n }\n}\n\nmodule.exports = (new RCTDeviceEventEmitter(): RCTDeviceEventEmitter);\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @noflow\n * @typecheck\n */\n\n'use strict';\n\nconst EmitterSubscription = require('./EmitterSubscription');\nconst EventSubscriptionVendor = require('./EventSubscriptionVendor');\n\nconst invariant = require('invariant');\n\nconst sparseFilterPredicate = () => true;\n\n/**\n * @class EventEmitter\n * @description\n * An EventEmitter is responsible for managing a set of listeners and publishing\n * events to them when it is told that such events happened. In addition to the\n * data for the given event it also sends a event control object which allows\n * the listeners/handlers to prevent the default behavior of the given event.\n *\n * The emitter is designed to be generic enough to support all the different\n * contexts in which one might want to emit events. It is a simple multicast\n * mechanism on top of which extra functionality can be composed. For example, a\n * more advanced emitter may use an EventHolder and EventFactory.\n */\nclass EventEmitter {\n _subscriber: EventSubscriptionVendor;\n _currentSubscription: ?EmitterSubscription;\n\n /**\n * @constructor\n *\n * @param {EventSubscriptionVendor} subscriber - Optional subscriber instance\n * to use. If omitted, a new subscriber will be created for the emitter.\n */\n constructor(subscriber: ?EventSubscriptionVendor) {\n this._subscriber = subscriber || new EventSubscriptionVendor();\n }\n\n /**\n * Adds a listener to be invoked when events of the specified type are\n * emitted. An optional calling context may be provided. The data arguments\n * emitted will be passed to the listener function.\n *\n * TODO: Annotate the listener arg's type. This is tricky because listeners\n * can be invoked with varargs.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n addListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n return (this._subscriber.addSubscription(\n eventType,\n new EmitterSubscription(this, this._subscriber, listener, context),\n ): any);\n }\n\n /**\n * Similar to addListener, except that the listener is removed after it is\n * invoked once.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke only once when the\n * specified event is emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n once(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n return this.addListener(eventType, (...args) => {\n this.removeCurrentListener();\n listener.apply(context, args);\n });\n }\n\n /**\n * Removes all of the registered listeners, including those registered as\n * listener maps.\n *\n * @param {?string} eventType - Optional name of the event whose registered\n * listeners to remove\n */\n removeAllListeners(eventType: ?string) {\n this._subscriber.removeAllSubscriptions(eventType);\n }\n\n /**\n * Provides an API that can be called during an eventing cycle to remove the\n * last listener that was invoked. This allows a developer to provide an event\n * object that can remove the listener (or listener map) during the\n * invocation.\n *\n * If it is called when not inside of an emitting cycle it will throw.\n *\n * @throws {Error} When called not during an eventing cycle\n *\n * @example\n * var subscription = emitter.addListenerMap({\n * someEvent: function(data, event) {\n * console.log(data);\n * emitter.removeCurrentListener();\n * }\n * });\n *\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\n * emitter.emit('someEvent', 'def'); // does not log anything\n */\n removeCurrentListener() {\n invariant(\n !!this._currentSubscription,\n 'Not in an emitting cycle; there is no current subscription',\n );\n this.removeSubscription(this._currentSubscription);\n }\n\n /**\n * Removes a specific subscription. Called by the `remove()` method of the\n * subscription itself to ensure any necessary cleanup is performed.\n */\n removeSubscription(subscription: EmitterSubscription) {\n invariant(\n subscription.emitter === this,\n 'Subscription does not belong to this emitter.',\n );\n this._subscriber.removeSubscription(subscription);\n }\n\n /**\n * Returns an array of listeners that are currently registered for the given\n * event.\n *\n * @param {string} eventType - Name of the event to query\n * @returns {array}\n */\n listeners(eventType: string): [EmitterSubscription] {\n const subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n return subscriptions\n ? subscriptions\n // We filter out missing entries because the array is sparse.\n // \"callbackfn is called only for elements of the array which actually\n // exist; it is not called for missing elements of the array.\"\n // https://www.ecma-international.org/ecma-262/9.0/index.html#sec-array.prototype.filter\n .filter(sparseFilterPredicate)\n .map(subscription => subscription.listener)\n : [];\n }\n\n /**\n * Emits an event of the given type with the given data. All handlers of that\n * particular type will be notified.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {...*} Arbitrary arguments to be passed to each registered listener\n *\n * @example\n * emitter.addListener('someEvent', function(message) {\n * console.log(message);\n * });\n *\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\n */\n emit(eventType: string) {\n const subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n if (subscriptions) {\n for (let i = 0, l = subscriptions.length; i < l; i++) {\n const subscription = subscriptions[i];\n\n // The subscription may have been removed during this event loop.\n if (subscription && subscription.listener) {\n this._currentSubscription = subscription;\n subscription.listener.apply(\n subscription.context,\n Array.prototype.slice.call(arguments, 1),\n );\n }\n }\n this._currentSubscription = null;\n }\n }\n\n /**\n * Removes the given listener for event of specific type.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n *\n * @example\n * emitter.removeListener('someEvent', function(message) {\n * console.log(message);\n * }); // removes the listener if already registered\n *\n */\n removeListener(eventType: String, listener) {\n const subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n if (subscriptions) {\n for (let i = 0, l = subscriptions.length; i < l; i++) {\n const subscription = subscriptions[i];\n\n // The subscription may have been removed during this event loop.\n // its listener matches the listener in method parameters\n if (subscription && subscription.listener === listener) {\n subscription.remove();\n }\n }\n }\n }\n}\n\nmodule.exports = EventEmitter;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventSubscription = require('./EventSubscription');\n\nimport type EventEmitter from './EventEmitter';\nimport type EventSubscriptionVendor from './EventSubscriptionVendor';\n\n/**\n * EmitterSubscription represents a subscription with listener and context data.\n */\nclass EmitterSubscription extends EventSubscription {\n emitter: EventEmitter;\n listener: Function;\n context: ?Object;\n\n /**\n * @param {EventEmitter} emitter - The event emitter that registered this\n * subscription\n * @param {EventSubscriptionVendor} subscriber - The subscriber that controls\n * this subscription\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n constructor(\n emitter: EventEmitter,\n subscriber: EventSubscriptionVendor,\n listener: Function,\n context: ?Object,\n ) {\n super(subscriber);\n this.emitter = emitter;\n this.listener = listener;\n this.context = context;\n }\n\n /**\n * Removes this subscription from the emitter that registered it.\n * Note: we're overriding the `remove()` method of EventSubscription here\n * but deliberately not calling `super.remove()` as the responsibility\n * for removing the subscription lies with the EventEmitter.\n */\n remove() {\n this.emitter.removeSubscription(this);\n }\n}\n\nmodule.exports = EmitterSubscription;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type EventSubscriptionVendor from './EventSubscriptionVendor';\n\n/**\n * EventSubscription represents a subscription to a particular event. It can\n * remove its own subscription.\n */\nclass EventSubscription {\n eventType: string;\n key: number;\n subscriber: EventSubscriptionVendor;\n\n /**\n * @param {EventSubscriptionVendor} subscriber the subscriber that controls\n * this subscription.\n */\n constructor(subscriber: EventSubscriptionVendor) {\n this.subscriber = subscriber;\n }\n\n /**\n * Removes this subscription from the subscriber that controls it.\n */\n remove() {\n this.subscriber.removeSubscription(this);\n }\n}\n\nmodule.exports = EventSubscription;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\nimport type EventSubscription from './EventSubscription';\n\n/**\n * EventSubscriptionVendor stores a set of EventSubscriptions that are\n * subscribed to a particular event type.\n */\nclass EventSubscriptionVendor {\n _subscriptionsForType: Object;\n _currentSubscription: ?EventSubscription;\n\n constructor() {\n this._subscriptionsForType = {};\n this._currentSubscription = null;\n }\n\n /**\n * Adds a subscription keyed by an event type.\n *\n * @param {string} eventType\n * @param {EventSubscription} subscription\n */\n addSubscription(\n eventType: string,\n subscription: EventSubscription,\n ): EventSubscription {\n invariant(\n subscription.subscriber === this,\n 'The subscriber of the subscription is incorrectly set.',\n );\n if (!this._subscriptionsForType[eventType]) {\n this._subscriptionsForType[eventType] = [];\n }\n const key = this._subscriptionsForType[eventType].length;\n this._subscriptionsForType[eventType].push(subscription);\n subscription.eventType = eventType;\n subscription.key = key;\n return subscription;\n }\n\n /**\n * Removes a bulk set of the subscriptions.\n *\n * @param {?string} eventType - Optional name of the event type whose\n * registered supscriptions to remove, if null remove all subscriptions.\n */\n removeAllSubscriptions(eventType: ?string) {\n if (eventType === undefined) {\n this._subscriptionsForType = {};\n } else {\n delete this._subscriptionsForType[eventType];\n }\n }\n\n /**\n * Removes a specific subscription. Instead of calling this function, call\n * `subscription.remove()` directly.\n *\n * @param {object} subscription\n */\n removeSubscription(subscription: Object) {\n const eventType = subscription.eventType;\n const key = subscription.key;\n\n const subscriptionsForType = this._subscriptionsForType[eventType];\n if (subscriptionsForType) {\n delete subscriptionsForType[key];\n }\n }\n\n /**\n * Returns the array of subscriptions that are currently registered for the\n * given event type.\n *\n * Note: This array can be potentially sparse as subscriptions are deleted\n * from it when they are removed.\n *\n * TODO: This returns a nullable array. wat?\n *\n * @param {string} eventType\n * @returns {?array}\n */\n getSubscriptionsForType(eventType: string): ?[EventSubscription] {\n return this._subscriptionsForType[eventType];\n }\n}\n\nmodule.exports = EventSubscriptionVendor;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {Spec} from './NativeUIManager';\n\ninterface UIManagerJSInterface extends Spec {\n +getViewManagerConfig: (viewManagerName: string) => Object;\n +createView: (\n reactTag: ?number,\n viewName: string,\n rootTag: number,\n props: Object,\n ) => void;\n +updateView: (reactTag: number, viewName: string, props: Object) => void;\n +manageChildren: (\n containerTag: ?number,\n moveFromIndices: Array,\n moveToIndices: Array,\n addChildReactTags: Array,\n addAtIndices: Array,\n removeAtIndices: Array,\n ) => void;\n}\n\nconst UIManager: UIManagerJSInterface =\n global.RN$Bridgeless === true\n ? require('./DummyUIManager') // No UIManager in bridgeless mode\n : require('./PaperUIManager');\n\nmodule.exports = UIManager;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nmodule.exports = {\n getViewManagerConfig: (viewManagerName: string): null => {\n console.warn(\n 'Attempting to get config for view manager: ' + viewManagerName,\n );\n return null;\n },\n getConstants: (): {...} => ({}),\n getConstantsForViewManager: (viewManagerName: string) => {},\n getDefaultEventTypes: (): Array<$FlowFixMe> => [],\n playTouchSound: () => {},\n lazilyLoadView: (name: string) => {},\n createView: (\n reactTag: ?number,\n viewName: string,\n rootTag: number,\n props: Object,\n ) => {},\n updateView: (reactTag: number, viewName: string, props: Object) => {},\n focus: (reactTag: ?number) => {},\n blur: (reactTag: ?number) => {},\n findSubviewIn: (\n reactTag: ?number,\n point: Array,\n callback: (\n nativeViewTag: number,\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void,\n ) => {},\n dispatchViewManagerCommand: (\n reactTag: ?number,\n commandID: number,\n commandArgs: ?Array,\n ) => {},\n measure: (\n reactTag: ?number,\n callback: (\n left: number,\n top: number,\n width: number,\n height: number,\n pageX: number,\n pageY: number,\n ) => void,\n ) => {},\n measureInWindow: (\n reactTag: ?number,\n callback: (x: number, y: number, width: number, height: number) => void,\n ) => {},\n viewIsDescendantOf: (\n reactTag: ?number,\n ancestorReactTag: ?number,\n callback: (result: Array) => void,\n ) => {},\n measureLayout: (\n reactTag: ?number,\n ancestorReactTag: ?number,\n errorCallback: (error: Object) => void,\n callback: (\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void,\n ) => {},\n measureLayoutRelativeToParent: (\n reactTag: ?number,\n errorCallback: (error: Object) => void,\n callback: (\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void,\n ) => {},\n setJSResponder: (reactTag: ?number, blockNativeResponder: boolean) => {},\n clearJSResponder: () => {},\n configureNextLayoutAnimation: (\n config: Object,\n callback: () => void,\n errorCallback: (error: Object) => void,\n ) => {},\n removeSubviewsFromContainerWithID: (containerID: number) => {},\n replaceExistingNonRootView: (reactTag: ?number, newReactTag: ?number) => {},\n setChildren: (containerTag: ?number, reactTags: Array) => {},\n manageChildren: (\n containerTag: ?number,\n moveFromIndices: Array,\n moveToIndices: Array,\n addChildReactTags: Array,\n addAtIndices: Array,\n removeAtIndices: Array,\n ) => {},\n\n // Android only\n setLayoutAnimationEnabledExperimental: (enabled: boolean) => {},\n sendAccessibilityEvent: (reactTag: ?number, eventType: number) => {},\n showPopupMenu: (\n reactTag: ?number,\n items: Array,\n error: (error: Object) => void,\n success: (event: string, selected?: number) => void,\n ) => {},\n dismissPopupMenu: () => {},\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst NativeModules = require('../BatchedBridge/NativeModules');\nconst Platform = require('../Utilities/Platform');\nconst UIManagerProperties = require('./UIManagerProperties');\n\nconst defineLazyObjectProperty = require('../Utilities/defineLazyObjectProperty');\n\nimport NativeUIManager from './NativeUIManager';\n\nconst viewManagerConfigs = {};\n\nconst triedLoadingConfig = new Set();\n\nlet NativeUIManagerConstants = {};\nlet isNativeUIManagerConstantsSet = false;\nfunction getConstants(): Object {\n if (!isNativeUIManagerConstantsSet) {\n NativeUIManagerConstants = NativeUIManager.getConstants();\n isNativeUIManagerConstantsSet = true;\n }\n return NativeUIManagerConstants;\n}\n\nconst UIManagerJS = {\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.111 was deployed. To see the error, delete this\n * comment and run Flow. */\n ...NativeUIManager,\n getConstants(): Object {\n return getConstants();\n },\n getViewManagerConfig: function(viewManagerName: string): any {\n if (\n viewManagerConfigs[viewManagerName] === undefined &&\n NativeUIManager.getConstantsForViewManager\n ) {\n try {\n viewManagerConfigs[\n viewManagerName\n ] = NativeUIManager.getConstantsForViewManager(viewManagerName);\n } catch (e) {\n viewManagerConfigs[viewManagerName] = null;\n }\n }\n\n const config = viewManagerConfigs[viewManagerName];\n if (config) {\n return config;\n }\n\n // If we're in the Chrome Debugger, let's not even try calling the sync\n // method.\n if (!global.nativeCallSyncHook) {\n return config;\n }\n\n if (\n NativeUIManager.lazilyLoadView &&\n !triedLoadingConfig.has(viewManagerName)\n ) {\n const result = NativeUIManager.lazilyLoadView(viewManagerName);\n triedLoadingConfig.add(viewManagerName);\n if (result.viewConfig) {\n getConstants()[viewManagerName] = result.viewConfig;\n lazifyViewManagerConfig(viewManagerName);\n }\n }\n\n return viewManagerConfigs[viewManagerName];\n },\n};\n\n// TODO (T45220498): Remove this.\n// 3rd party libs may be calling `NativeModules.UIManager.getViewManagerConfig()`\n// instead of `UIManager.getViewManagerConfig()` off UIManager.js.\n// This is a workaround for now.\n// $FlowFixMe\nNativeUIManager.getViewManagerConfig = UIManagerJS.getViewManagerConfig;\n\nfunction lazifyViewManagerConfig(viewName) {\n const viewConfig = getConstants()[viewName];\n viewManagerConfigs[viewName] = viewConfig;\n if (viewConfig.Manager) {\n defineLazyObjectProperty(viewConfig, 'Constants', {\n get: () => {\n const viewManager = NativeModules[viewConfig.Manager];\n const constants = {};\n viewManager &&\n Object.keys(viewManager).forEach(key => {\n const value = viewManager[key];\n if (typeof value !== 'function') {\n constants[key] = value;\n }\n });\n return constants;\n },\n });\n defineLazyObjectProperty(viewConfig, 'Commands', {\n get: () => {\n const viewManager = NativeModules[viewConfig.Manager];\n const commands = {};\n let index = 0;\n viewManager &&\n Object.keys(viewManager).forEach(key => {\n const value = viewManager[key];\n if (typeof value === 'function') {\n commands[key] = index++;\n }\n });\n return commands;\n },\n });\n }\n}\n\n/**\n * Copies the ViewManager constants and commands into UIManager. This is\n * only needed for iOS, which puts the constants in the ViewManager\n * namespace instead of UIManager, unlike Android.\n */\nif (Platform.OS === 'ios') {\n Object.keys(getConstants()).forEach(viewName => {\n lazifyViewManagerConfig(viewName);\n });\n} else if (getConstants().ViewManagerNames) {\n NativeUIManager.getConstants().ViewManagerNames.forEach(viewManagerName => {\n defineLazyObjectProperty(NativeUIManager, viewManagerName, {\n get: () => NativeUIManager.getConstantsForViewManager(viewManagerName),\n });\n });\n}\n\nif (!global.nativeCallSyncHook) {\n Object.keys(getConstants()).forEach(viewManagerName => {\n if (!UIManagerProperties.includes(viewManagerName)) {\n if (!viewManagerConfigs[viewManagerName]) {\n viewManagerConfigs[viewManagerName] = getConstants()[viewManagerName];\n }\n defineLazyObjectProperty(NativeUIManager, viewManagerName, {\n get: () => {\n console.warn(\n `Accessing view manager configs directly off UIManager via UIManager['${viewManagerName}'] ` +\n `is no longer supported. Use UIManager.getViewManagerConfig('${viewManagerName}') instead.`,\n );\n\n return UIManagerJS.getViewManagerConfig(viewManagerName);\n },\n });\n }\n });\n}\n\nmodule.exports = UIManagerJS;\n","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => Object;\n +getConstantsForViewManager: (viewManagerName: string) => Object;\n +getDefaultEventTypes: () => Array;\n +playTouchSound: () => void;\n +lazilyLoadView: (name: string) => Object; // revisit return\n +createView: (\n reactTag: ?number,\n viewName: string,\n rootTag: number,\n props: Object,\n ) => void;\n +updateView: (reactTag: number, viewName: string, props: Object) => void;\n +focus: (reactTag: ?number) => void;\n +blur: (reactTag: ?number) => void;\n +findSubviewIn: (\n reactTag: ?number,\n point: Array,\n callback: (\n nativeViewTag: number,\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void,\n ) => void;\n +dispatchViewManagerCommand: (\n reactTag: ?number,\n commandID: number,\n commandArgs: ?Array,\n ) => void;\n +measure: (\n reactTag: ?number,\n callback: (\n left: number,\n top: number,\n width: number,\n height: number,\n pageX: number,\n pageY: number,\n ) => void,\n ) => void;\n +measureInWindow: (\n reactTag: ?number,\n callback: (x: number, y: number, width: number, height: number) => void,\n ) => void;\n +viewIsDescendantOf: (\n reactTag: ?number,\n ancestorReactTag: ?number,\n callback: (result: Array) => void,\n ) => void;\n +measureLayout: (\n reactTag: ?number,\n ancestorReactTag: ?number,\n errorCallback: (error: Object) => void,\n callback: (\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void,\n ) => void;\n +measureLayoutRelativeToParent: (\n reactTag: ?number,\n errorCallback: (error: Object) => void,\n callback: (\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void,\n ) => void;\n +setJSResponder: (reactTag: ?number, blockNativeResponder: boolean) => void;\n +clearJSResponder: () => void;\n +configureNextLayoutAnimation: (\n config: Object,\n callback: () => void, // check what is returned here\n errorCallback: (error: Object) => void,\n ) => void;\n +removeSubviewsFromContainerWithID: (containerID: number) => void;\n +replaceExistingNonRootView: (\n reactTag: ?number,\n newReactTag: ?number,\n ) => void;\n +setChildren: (containerTag: ?number, reactTags: Array) => void;\n +manageChildren: (\n containerTag: ?number,\n moveFromIndices: Array,\n moveToIndices: Array,\n addChildReactTags: Array,\n addAtIndices: Array,\n removeAtIndices: Array,\n ) => void;\n\n // Android only\n +setLayoutAnimationEnabledExperimental: (enabled: boolean) => void;\n +sendAccessibilityEvent: (reactTag: ?number, eventType: number) => void;\n +showPopupMenu: (\n reactTag: ?number,\n items: Array,\n error: (error: Object) => void,\n success: (event: string, selected?: number) => void,\n ) => void;\n +dismissPopupMenu: () => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('UIManager'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport NativePlatformConstantsAndroid from './NativePlatformConstantsAndroid';\n\nexport type PlatformSelectSpec = {\n android?: A,\n native?: N,\n default?: D,\n ...\n};\n\nconst Platform = {\n __constants: null,\n OS: 'android',\n get Version(): number {\n return this.constants.Version;\n },\n get constants(): {|\n isTesting: boolean,\n reactNativeVersion: {|\n major: number,\n minor: number,\n patch: number,\n prerelease: ?number,\n |},\n Version: number,\n Release: string,\n Serial: string,\n Fingerprint: string,\n Model: string,\n ServerHost: string,\n uiMode: string,\n |} {\n if (this.__constants == null) {\n this.__constants = NativePlatformConstantsAndroid.getConstants();\n }\n return this.__constants;\n },\n get isTesting(): boolean {\n if (__DEV__) {\n return this.constants.isTesting;\n }\n return false;\n },\n get isTV(): boolean {\n return this.constants.uiMode === 'tv';\n },\n select: (spec: PlatformSelectSpec): A | N | D =>\n 'android' in spec\n ? spec.android\n : 'native' in spec\n ? spec.native\n : spec.default,\n};\n\nmodule.exports = Platform;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n isTesting: boolean,\n reactNativeVersion: {|\n major: number,\n minor: number,\n patch: number,\n prerelease: ?number,\n |},\n Version: number,\n Release: string,\n Serial: string,\n Fingerprint: string,\n Model: string,\n ServerHost: string,\n uiMode: string,\n |};\n +getAndroidID: () => string;\n}\n\nexport default (TurboModuleRegistry.getEnforcing(\n 'PlatformConstants',\n): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n/**\n * The list of non-ViewManager related UIManager properties.\n *\n * In an effort to improve startup performance by lazily loading view managers,\n * the interface to access view managers will change from\n * UIManager['viewManagerName'] to UIManager.getViewManagerConfig('viewManagerName').\n * By using a function call instead of a property access, the UIManager will\n * be able to initialize and load the required view manager from native\n * synchronously. All of React Native's core components have been updated to\n * use getViewManagerConfig(). For the next few releases, any usage of\n * UIManager['viewManagerName'] will result in a warning. Because React Native\n * does not support Proxy objects, a view manager access is implied if any of\n * UIManager's properties that are not one of the properties below is being\n * accessed. Once UIManager property accesses for view managers has been fully\n * deprecated, this file will also be removed.\n */\nmodule.exports = [\n 'clearJSResponder',\n 'configureNextLayoutAnimation',\n 'createView',\n 'dismissPopupMenu',\n 'dispatchViewManagerCommand',\n 'findSubviewIn',\n 'getConstantsForViewManager',\n 'getDefaultEventTypes',\n 'manageChildren',\n 'measure',\n 'measureInWindow',\n 'measureLayout',\n 'measureLayoutRelativeToParent',\n 'playTouchSound',\n 'removeRootView',\n 'removeSubviewsFromContainerWithID',\n 'replaceExistingNonRootView',\n 'sendAccessibilityEvent',\n 'setChildren',\n 'setJSResponder',\n 'setLayoutAnimationEnabledExperimental',\n 'showPopupMenu',\n 'updateView',\n 'viewIsDescendantOf',\n 'PopupMenu',\n 'LazyViewManagersEnabled',\n 'ViewManagerNames',\n 'StyleConstants',\n 'AccessibilityEventTypes',\n 'UIView',\n 'getViewManagerConfig',\n 'blur',\n 'focus',\n 'genericBubblingEventTypes',\n 'genericDirectEventTypes',\n 'lazilyLoadView',\n];\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst View = require('../View/View');\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nconst PlatformActivityIndicator =\n Platform.OS === 'android'\n ? require('../ProgressBarAndroid/ProgressBarAndroid')\n : require('./ActivityIndicatorViewNativeComponent').default;\n\nconst GRAY = '#999999';\n\ntype IndicatorSize = number | 'small' | 'large';\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Whether the indicator should hide when not animating (true by default).\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#hideswhenstopped\n */\n hidesWhenStopped?: ?boolean,\n|}>;\ntype Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n\n /**\n * Whether to show the indicator (true, the default) or hide it (false).\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#animating\n */\n animating?: ?boolean,\n\n /**\n * The foreground color of the spinner (default is gray).\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#color\n */\n color?: ?string,\n\n /**\n * Size of the indicator (default is 'small').\n * Passing a number to the size prop is only supported on Android.\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#size\n */\n size?: ?IndicatorSize,\n|}>;\n\n/**\n * Displays a circular loading indicator.\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html\n */\nconst ActivityIndicator = (props: Props, forwardedRef?: any) => {\n const {onLayout, style, size, ...restProps} = props;\n let sizeStyle;\n let sizeProp;\n\n switch (size) {\n case 'small':\n sizeStyle = styles.sizeSmall;\n sizeProp = 'small';\n break;\n case 'large':\n sizeStyle = styles.sizeLarge;\n sizeProp = 'large';\n break;\n default:\n sizeStyle = {height: props.size, width: props.size};\n break;\n }\n\n const nativeProps = {\n ...restProps,\n ref: forwardedRef,\n style: sizeStyle,\n size: sizeProp,\n };\n\n const androidProps = {\n styleAttr: 'Normal',\n indeterminate: true,\n };\n\n return (\n \n {Platform.OS === 'android' ? (\n // $FlowFixMe Flow doesn't know when this is the android component\n \n ) : (\n /* $FlowFixMe(>=0.106.0 site=react_native_android_fb) This comment\n * suppresses an error found when Flow v0.106 was deployed. To see the\n * error, delete this comment and run Flow. */\n \n )}\n \n );\n};\n\nconst ActivityIndicatorWithRef: React.AbstractComponent<\n Props,\n HostComponent,\n> = React.forwardRef(ActivityIndicator);\nActivityIndicatorWithRef.displayName = 'ActivityIndicator';\n\n/* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an error\n * found when Flow v0.89 was deployed. To see the error, delete this comment\n * and run Flow. */\nActivityIndicatorWithRef.defaultProps = {\n animating: true,\n color: Platform.OS === 'ios' ? GRAY : null,\n hidesWhenStopped: true,\n size: 'small',\n};\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n sizeSmall: {\n width: 20,\n height: 20,\n },\n sizeLarge: {\n width: 36,\n height: 36,\n },\n});\n\nmodule.exports = ActivityIndicatorWithRef;\n","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/** @license React v16.11.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var h=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.forward_ref\"):60112,y=n?Symbol.for(\"react.suspense\"):60113;n&&Symbol.for(\"react.suspense_list\");\nvar z=n?Symbol.for(\"react.memo\"):60115,aa=n?Symbol.for(\"react.lazy\"):60116;n&&Symbol.for(\"react.fundamental\");n&&Symbol.for(\"react.responder\");n&&Symbol.for(\"react.scope\");var A=\"function\"===typeof Symbol&&Symbol.iterator;\nfunction B(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cP.length&&P.push(a)}\nfunction S(a,b,c,e){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,\"\"===b?\".\"+T(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var l=0;l's `style` prop. This ensures call sites of the component\n * can't pass styles that View doesn't support such as `fontSize`.`\n *\n * type Props = {style: ViewStyleProp}\n * const MyComponent = (props: Props) => \n */\nexport type ViewStyleProp = ____ViewStyleProp_Internal;\n\n/**\n * This type should be used as the type for a prop that is passed through\n * to a 's `style` prop. This ensures call sites of the component\n * can't pass styles that Text doesn't support such as `resizeMode`.`\n *\n * type Props = {style: TextStyleProp}\n * const MyComponent = (props: Props) => \n */\nexport type TextStyleProp = ____TextStyleProp_Internal;\n\n/**\n * This type should be used as the type for a prop that is passed through\n * to an 's `style` prop. This ensures call sites of the component\n * can't pass styles that Image doesn't support such as `fontSize`.`\n *\n * type Props = {style: ImageStyleProp}\n * const MyComponent = (props: Props) => \n */\nexport type ImageStyleProp = ____ImageStyleProp_Internal;\n\n/**\n * WARNING: You probably shouldn't be using this type. This type\n * is similar to the ones above except it allows styles that are accepted\n * by all of View, Text, or Image. It is therefore very unsafe to pass this\n * through to an underlying component. Using this is almost always a mistake\n * and using one of the other more restrictive types is likely the right choice.\n */\nexport type DangerouslyImpreciseStyleProp = ____DangerouslyImpreciseStyleProp_Internal;\n\n/**\n * Utility type for getting the values for specific style keys.\n *\n * The following is bad because position is more restrictive than 'string':\n * ```\n * type Props = {position: string};\n * ```\n *\n * You should use the following instead:\n *\n * ```\n * type Props = {position: TypeForStyleKey<'position'>};\n * ```\n *\n * This will correctly give you the type 'absolute' | 'relative'\n */\nexport type TypeForStyleKey<\n +key: $Keys<____DangerouslyImpreciseStyle_Internal>,\n> = $ElementType<____DangerouslyImpreciseStyle_Internal, key>;\n\n/**\n * This type is an object of the different possible style\n * properties that can be specified for View.\n *\n * Note that this isn't a safe way to type a style prop for a component as\n * results from StyleSheet.create return an internal identifier, not\n * an object of styles.\n *\n * If you want to type the style prop of a function,\n * consider using ViewStyleProp.\n *\n * A reasonable usage of this type is for helper functions that return an\n * object of styles to pass to a View that can't be precomputed with\n * StyleSheet.create.\n */\nexport type ViewStyle = ____ViewStyle_Internal;\n\n/**\n * This type is an object of the different possible style\n * properties that can be specified for Text.\n *\n * Note that this isn't a safe way to type a style prop for a component as\n * results from StyleSheet.create return an internal identifier, not\n * an object of styles.\n *\n * If you want to type the style prop of a function,\n * consider using TextStyleProp.\n *\n * A reasonable usage of this type is for helper functions that return an\n * object of styles to pass to a Text that can't be precomputed with\n * StyleSheet.create.\n */\nexport type TextStyle = ____TextStyle_Internal;\n\n/**\n * This type is an object of the different possible style\n * properties that can be specified for Image.\n *\n * Note that this isn't a safe way to type a style prop for a component as\n * results from StyleSheet.create return an internal identifier, not\n * an object of styles.\n *\n * If you want to type the style prop of a function,\n * consider using ImageStyleProp.\n *\n * A reasonable usage of this type is for helper functions that return an\n * object of styles to pass to an Image that can't be precomputed with\n * StyleSheet.create.\n */\nexport type ImageStyle = ____ImageStyle_Internal;\n\n/**\n * WARNING: You probably shouldn't be using this type. This type is an object\n * with all possible style keys and their values. Note that this isn't\n * a safe way to type a style prop for a component as results from\n * StyleSheet.create return an internal identifier, not an object of styles.\n *\n * If you want to type the style prop of a function, consider using\n * ViewStyleProp, TextStyleProp, or ImageStyleProp.\n *\n * This should only be used by very core utilities that operate on an object\n * containing any possible style value.\n */\nexport type DangerouslyImpreciseStyle = ____DangerouslyImpreciseStyle_Internal;\n\nlet hairlineWidth: number = PixelRatio.roundToNearestPixel(0.4);\nif (hairlineWidth === 0) {\n hairlineWidth = 1 / PixelRatio.get();\n}\n\nconst absoluteFill = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n};\nif (__DEV__) {\n Object.freeze(absoluteFill);\n}\n\n/**\n * A StyleSheet is an abstraction similar to CSS StyleSheets\n *\n * Create a new StyleSheet:\n *\n * ```\n * const styles = StyleSheet.create({\n * container: {\n * borderRadius: 4,\n * borderWidth: 0.5,\n * borderColor: '#d6d7da',\n * },\n * title: {\n * fontSize: 19,\n * fontWeight: 'bold',\n * },\n * activeTitle: {\n * color: 'red',\n * },\n * });\n * ```\n *\n * Use a StyleSheet:\n *\n * ```\n * \n * \n * \n * ```\n *\n * Code quality:\n *\n * - By moving styles away from the render function, you're making the code\n * easier to understand.\n * - Naming the styles is a good way to add meaning to the low level components\n * in the render function.\n *\n * Performance:\n *\n * - Making a stylesheet from a style object makes it possible to refer to it\n * by ID instead of creating a new style object every time.\n * - It also allows to send the style only once through the bridge. All\n * subsequent uses are going to refer an id (not implemented yet).\n */\nmodule.exports = {\n /**\n * This is defined as the width of a thin line on the platform. It can be\n * used as the thickness of a border or division between two elements.\n * Example:\n * ```\n * {\n * borderBottomColor: '#bbb',\n * borderBottomWidth: StyleSheet.hairlineWidth\n * }\n * ```\n *\n * This constant will always be a round number of pixels (so a line defined\n * by it look crisp) and will try to match the standard width of a thin line\n * on the underlying platform. However, you should not rely on it being a\n * constant size, because on different platforms and screen densities its\n * value may be calculated differently.\n *\n * A line with hairline width may not be visible if your simulator is downscaled.\n */\n hairlineWidth,\n\n /**\n * A very common pattern is to create overlays with position absolute and zero positioning,\n * so `absoluteFill` can be used for convenience and to reduce duplication of these repeated\n * styles.\n */\n absoluteFill: (absoluteFill: any), // TODO: This should be updated after we fix downstream Flow sites.\n\n /**\n * Sometimes you may want `absoluteFill` but with a couple tweaks - `absoluteFillObject` can be\n * used to create a customized entry in a `StyleSheet`, e.g.:\n *\n * const styles = StyleSheet.create({\n * wrapper: {\n * ...StyleSheet.absoluteFillObject,\n * top: 10,\n * backgroundColor: 'transparent',\n * },\n * });\n */\n absoluteFillObject: absoluteFill,\n\n /**\n * Combines two styles such that `style2` will override any styles in `style1`.\n * If either style is falsy, the other one is returned without allocating an\n * array, saving allocations and maintaining reference equality for\n * PureComponent checks.\n */\n compose(\n style1: ?T,\n style2: ?T,\n ): ?T | $ReadOnlyArray {\n if (style1 != null && style2 != null) {\n return ([style1, style2]: $ReadOnlyArray);\n } else {\n return style1 != null ? style1 : style2;\n }\n },\n\n /**\n * Flattens an array of style objects, into one aggregated style object.\n * Alternatively, this method can be used to lookup IDs, returned by\n * StyleSheet.register.\n *\n * > **NOTE**: Exercise caution as abusing this can tax you in terms of\n * > optimizations.\n * >\n * > IDs enable optimizations through the bridge and memory in general. Referring\n * > to style objects directly will deprive you of these optimizations.\n *\n * Example:\n * ```\n * const styles = StyleSheet.create({\n * listItem: {\n * flex: 1,\n * fontSize: 16,\n * color: 'white'\n * },\n * selectedListItem: {\n * color: 'green'\n * }\n * });\n *\n * StyleSheet.flatten([styles.listItem, styles.selectedListItem])\n * // returns { flex: 1, fontSize: 16, color: 'green' }\n * ```\n * Alternative use:\n * ```\n * StyleSheet.flatten(styles.listItem);\n * // return { flex: 1, fontSize: 16, color: 'white' }\n * // Simply styles.listItem would return its ID (number)\n * ```\n * This method internally uses `StyleSheetRegistry.getStyleByID(style)`\n * to resolve style objects represented by IDs. Thus, an array of style\n * objects (instances of StyleSheet.create), are individually resolved to,\n * their respective objects, merged as one and then returned. This also explains\n * the alternative use.\n */\n flatten,\n\n /**\n * WARNING: EXPERIMENTAL. Breaking changes will probably happen a lot and will\n * not be reliably announced. The whole thing might be deleted, who knows? Use\n * at your own risk.\n *\n * Sets a function to use to pre-process a style property value. This is used\n * internally to process color and transform values. You should not use this\n * unless you really know what you are doing and have exhausted other options.\n */\n setStyleAttributePreprocessor(\n property: string,\n process: (nextProp: mixed) => mixed,\n ) {\n let value;\n\n if (ReactNativeStyleAttributes[property] === true) {\n value = {};\n } else if (typeof ReactNativeStyleAttributes[property] === 'object') {\n value = ReactNativeStyleAttributes[property];\n } else {\n console.error(`${property} is not a valid style attribute`);\n return;\n }\n\n if (__DEV__ && typeof value.process === 'function') {\n console.warn(`Overwriting ${property} style attribute preprocessor`);\n }\n\n ReactNativeStyleAttributes[property] = {...value, process};\n },\n\n /**\n * Creates a StyleSheet style reference from the given object.\n */\n create<+S: ____Styles_Internal>(obj: S): $ObjMap any> {\n // TODO: This should return S as the return type. But first,\n // we need to codemod all the callsites that are typing this\n // return value as a number (even though it was opaque).\n if (__DEV__) {\n for (const key in obj) {\n StyleSheetValidation.validateStyle(key, obj);\n if (obj[key]) {\n Object.freeze(obj[key]);\n }\n }\n }\n return obj;\n },\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Dimensions = require('./Dimensions');\n\n/**\n * PixelRatio class gives access to the device pixel density.\n *\n * ## Fetching a correctly sized image\n *\n * You should get a higher resolution image if you are on a high pixel density\n * device. A good rule of thumb is to multiply the size of the image you display\n * by the pixel ratio.\n *\n * ```\n * var image = getImage({\n * width: PixelRatio.getPixelSizeForLayoutSize(200),\n * height: PixelRatio.getPixelSizeForLayoutSize(100),\n * });\n * \n * ```\n *\n * ## Pixel grid snapping\n *\n * In iOS, you can specify positions and dimensions for elements with arbitrary\n * precision, for example 29.674825. But, ultimately the physical display only\n * have a fixed number of pixels, for example 640×960 for iPhone 4 or 750×1334\n * for iPhone 6. iOS tries to be as faithful as possible to the user value by\n * spreading one original pixel into multiple ones to trick the eye. The\n * downside of this technique is that it makes the resulting element look\n * blurry.\n *\n * In practice, we found out that developers do not want this feature and they\n * have to work around it by doing manual rounding in order to avoid having\n * blurry elements. In React Native, we are rounding all the pixels\n * automatically.\n *\n * We have to be careful when to do this rounding. You never want to work with\n * rounded and unrounded values at the same time as you're going to accumulate\n * rounding errors. Having even one rounding error is deadly because a one\n * pixel border may vanish or be twice as big.\n *\n * In React Native, everything in JavaScript and within the layout engine works\n * with arbitrary precision numbers. It's only when we set the position and\n * dimensions of the native element on the main thread that we round. Also,\n * rounding is done relative to the root rather than the parent, again to avoid\n * accumulating rounding errors.\n *\n */\nclass PixelRatio {\n /**\n * Returns the device pixel density. Some examples:\n *\n * - PixelRatio.get() === 1\n * - mdpi Android devices (160 dpi)\n * - PixelRatio.get() === 1.5\n * - hdpi Android devices (240 dpi)\n * - PixelRatio.get() === 2\n * - iPhone 4, 4S\n * - iPhone 5, 5c, 5s\n * - iPhone 6\n * - iPhone 7\n * - iPhone 8\n * - iPhone SE\n * - xhdpi Android devices (320 dpi)\n * - PixelRatio.get() === 3\n * - iPhone 6 Plus\n * - iPhone 7 Plus\n * - iPhone 8 Plus\n * - iPhone X\n * - xxhdpi Android devices (480 dpi)\n * - PixelRatio.get() === 3.5\n * - Nexus 6\n */\n static get(): number {\n return Dimensions.get('window').scale;\n }\n\n /**\n * Returns the scaling factor for font sizes. This is the ratio that is used to calculate the\n * absolute font size, so any elements that heavily depend on that should use this to do\n * calculations.\n *\n * If a font scale is not set, this returns the device pixel ratio.\n *\n * Currently this is only implemented on Android and reflects the user preference set in\n * Settings > Display > Font size, on iOS it will always return the default pixel ratio.\n * @platform android\n */\n static getFontScale(): number {\n return Dimensions.get('window').fontScale || PixelRatio.get();\n }\n\n /**\n * Converts a layout size (dp) to pixel size (px).\n *\n * Guaranteed to return an integer number.\n */\n static getPixelSizeForLayoutSize(layoutSize: number): number {\n return Math.round(layoutSize * PixelRatio.get());\n }\n\n /**\n * Rounds a layout size (dp) to the nearest layout size that corresponds to\n * an integer number of pixels. For example, on a device with a PixelRatio\n * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to\n * exactly (8.33 * 3) = 25 pixels.\n */\n static roundToNearestPixel(layoutSize: number): number {\n const ratio = PixelRatio.get();\n return Math.round(layoutSize * ratio) / ratio;\n }\n\n // No-op for iOS, but used on the web. Should not be documented.\n static startDetecting() {}\n}\n\nmodule.exports = PixelRatio;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport EventEmitter from '../vendor/emitter/EventEmitter';\nimport RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter';\nimport NativeDeviceInfo, {\n type DisplayMetrics,\n type DimensionsPayload,\n} from './NativeDeviceInfo';\nimport invariant from 'invariant';\n\ntype DimensionsValue = {\n window?: DisplayMetrics,\n screen?: DisplayMetrics,\n ...\n};\n\nconst eventEmitter = new EventEmitter();\nlet dimensionsInitialized = false;\nlet dimensions: DimensionsValue;\n\nclass Dimensions {\n /**\n * NOTE: `useWindowDimensions` is the preffered API for React components.\n *\n * Initial dimensions are set before `runApplication` is called so they should\n * be available before any other require's are run, but may be updated later.\n *\n * Note: Although dimensions are available immediately, they may change (e.g\n * due to device rotation) so any rendering logic or styles that depend on\n * these constants should try to call this function on every render, rather\n * than caching the value (for example, using inline styles rather than\n * setting a value in a `StyleSheet`).\n *\n * Example: `const {height, width} = Dimensions.get('window');`\n *\n * @param {string} dim Name of dimension as defined when calling `set`.\n * @returns {Object?} Value for the dimension.\n */\n static get(dim: string): Object {\n invariant(dimensions[dim], 'No dimension set for key ' + dim);\n return dimensions[dim];\n }\n\n /**\n * This should only be called from native code by sending the\n * didUpdateDimensions event.\n *\n * @param {object} dims Simple string-keyed object of dimensions to set\n */\n static set(dims: $ReadOnly<{[key: string]: any, ...}>): void {\n // We calculate the window dimensions in JS so that we don't encounter loss of\n // precision in transferring the dimensions (which could be non-integers) over\n // the bridge.\n let {screen, window} = dims;\n const {windowPhysicalPixels} = dims;\n if (windowPhysicalPixels) {\n window = {\n width: windowPhysicalPixels.width / windowPhysicalPixels.scale,\n height: windowPhysicalPixels.height / windowPhysicalPixels.scale,\n scale: windowPhysicalPixels.scale,\n fontScale: windowPhysicalPixels.fontScale,\n };\n }\n const {screenPhysicalPixels} = dims;\n if (screenPhysicalPixels) {\n screen = {\n width: screenPhysicalPixels.width / screenPhysicalPixels.scale,\n height: screenPhysicalPixels.height / screenPhysicalPixels.scale,\n scale: screenPhysicalPixels.scale,\n fontScale: screenPhysicalPixels.fontScale,\n };\n } else if (screen == null) {\n screen = window;\n }\n\n dimensions = {window, screen};\n if (dimensionsInitialized) {\n // Don't fire 'change' the first time the dimensions are set.\n eventEmitter.emit('change', dimensions);\n } else {\n dimensionsInitialized = true;\n }\n }\n\n /**\n * Add an event handler. Supported events:\n *\n * - `change`: Fires when a property within the `Dimensions` object changes. The argument\n * to the event handler is an object with `window` and `screen` properties whose values\n * are the same as the return values of `Dimensions.get('window')` and\n * `Dimensions.get('screen')`, respectively.\n */\n static addEventListener(type: 'change', handler: Function) {\n invariant(\n type === 'change',\n 'Trying to subscribe to unknown event: \"%s\"',\n type,\n );\n eventEmitter.addListener(type, handler);\n }\n\n /**\n * Remove an event handler.\n */\n static removeEventListener(type: 'change', handler: Function) {\n invariant(\n type === 'change',\n 'Trying to remove listener for unknown event: \"%s\"',\n type,\n );\n eventEmitter.removeListener(type, handler);\n }\n}\n\nlet initialDims: ?$ReadOnly<{[key: string]: any, ...}> =\n global.nativeExtensions &&\n global.nativeExtensions.DeviceInfo &&\n global.nativeExtensions.DeviceInfo.Dimensions;\nif (!initialDims) {\n // Subscribe before calling getConstants to make sure we don't miss any updates in between.\n RCTDeviceEventEmitter.addListener(\n 'didUpdateDimensions',\n (update: DimensionsPayload) => {\n Dimensions.set(update);\n },\n );\n // Can't use NativeDeviceInfo in ComponentScript because it does not support NativeModules,\n // but has nativeExtensions instead.\n initialDims = NativeDeviceInfo.getConstants().Dimensions;\n}\n\nDimensions.set(initialDims);\n\nmodule.exports = Dimensions;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\ntype DisplayMetricsAndroid = {|\n width: number,\n height: number,\n scale: number,\n fontScale: number,\n densityDpi: number,\n|};\n\nexport type DisplayMetrics = {|\n width: number,\n height: number,\n scale: number,\n fontScale: number,\n|};\n\nexport type DimensionsPayload = {|\n window?: DisplayMetrics,\n screen?: DisplayMetrics,\n windowPhysicalPixels?: DisplayMetricsAndroid,\n screenPhysicalPixels?: DisplayMetricsAndroid,\n|};\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n +Dimensions: DimensionsPayload,\n +isIPhoneX_deprecated?: boolean,\n |};\n}\n\nconst NativeModule: Spec = TurboModuleRegistry.getEnforcing('DeviceInfo');\n\nconst NativeDeviceInfo = NativeModule;\n\nexport default NativeDeviceInfo;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format strict-local\n * @flow\n */\n\n'use strict';\n\nconst DeprecatedImageStylePropTypes = require('../../DeprecatedPropTypes/DeprecatedImageStylePropTypes');\nconst DeprecatedTextStylePropTypes = require('../../DeprecatedPropTypes/DeprecatedTextStylePropTypes');\nconst DeprecatedViewStylePropTypes = require('../../DeprecatedPropTypes/DeprecatedViewStylePropTypes');\n\nconst processColor = require('../../StyleSheet/processColor');\nconst processTransform = require('../../StyleSheet/processTransform');\nconst sizesDiffer = require('../../Utilities/differ/sizesDiffer');\n\ntype ReturnBoolType = (V) => true;\ntype BoolifiedDeprecatedViewStylePropTypes = $ObjMap<\n typeof DeprecatedViewStylePropTypes,\n ReturnBoolType,\n>;\ntype BoolifiedDeprecatedTextStylePropTypes = $ObjMapi<\n typeof DeprecatedTextStylePropTypes,\n ReturnBoolType,\n>;\ntype BoolifiedDeprecatedImageStylePropTypes = $ObjMapi<\n typeof DeprecatedImageStylePropTypes,\n ReturnBoolType,\n>;\n\ntype StyleAttributesType = {\n ...BoolifiedDeprecatedViewStylePropTypes,\n ...BoolifiedDeprecatedTextStylePropTypes,\n ...BoolifiedDeprecatedImageStylePropTypes,\n transform: $ReadOnly<{|process: typeof processTransform|}> | true,\n shadowOffset: $ReadOnly<{|diff: typeof sizesDiffer|}> | true,\n backgroundColor: typeof colorAttributes | true,\n borderBottomColor: typeof colorAttributes | true,\n borderColor: typeof colorAttributes | true,\n borderLeftColor: typeof colorAttributes | true,\n borderRightColor: typeof colorAttributes | true,\n borderTopColor: typeof colorAttributes | true,\n borderStartColor: typeof colorAttributes | true,\n borderEndColor: typeof colorAttributes | true,\n color: typeof colorAttributes | true,\n shadowColor: typeof colorAttributes | true,\n textDecorationColor: typeof colorAttributes | true,\n tintColor: typeof colorAttributes | true,\n textShadowColor: typeof colorAttributes | true,\n overlayColor: typeof colorAttributes | true,\n ...\n};\n\nconst ReactNativeStyleAttributes: StyleAttributesType = {};\n\nfor (const attributeName of Object.keys({\n ...DeprecatedViewStylePropTypes,\n ...DeprecatedTextStylePropTypes,\n ...DeprecatedImageStylePropTypes,\n})) {\n ReactNativeStyleAttributes[attributeName] = true;\n}\n\nReactNativeStyleAttributes.transform = {process: processTransform};\nReactNativeStyleAttributes.shadowOffset = {diff: sizesDiffer};\n\nconst colorAttributes = {process: processColor};\nReactNativeStyleAttributes.backgroundColor = colorAttributes;\nReactNativeStyleAttributes.borderBottomColor = colorAttributes;\nReactNativeStyleAttributes.borderColor = colorAttributes;\nReactNativeStyleAttributes.borderLeftColor = colorAttributes;\nReactNativeStyleAttributes.borderRightColor = colorAttributes;\nReactNativeStyleAttributes.borderTopColor = colorAttributes;\nReactNativeStyleAttributes.borderStartColor = colorAttributes;\nReactNativeStyleAttributes.borderEndColor = colorAttributes;\nReactNativeStyleAttributes.color = colorAttributes;\nReactNativeStyleAttributes.shadowColor = colorAttributes;\nReactNativeStyleAttributes.textDecorationColor = colorAttributes;\nReactNativeStyleAttributes.tintColor = colorAttributes;\nReactNativeStyleAttributes.textShadowColor = colorAttributes;\nReactNativeStyleAttributes.overlayColor = colorAttributes;\n\nmodule.exports = ReactNativeStyleAttributes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('./DeprecatedColorPropType');\nconst DeprecatedLayoutPropTypes = require('./DeprecatedLayoutPropTypes');\nconst DeprecatedShadowPropTypesIOS = require('./DeprecatedShadowPropTypesIOS');\nconst DeprecatedTransformPropTypes = require('./DeprecatedTransformPropTypes');\nconst ReactPropTypes = require('prop-types');\n\nconst ImageStylePropTypes = {\n ...DeprecatedLayoutPropTypes,\n ...DeprecatedShadowPropTypesIOS,\n ...DeprecatedTransformPropTypes,\n resizeMode: (ReactPropTypes.oneOf([\n 'center',\n 'contain',\n 'cover',\n 'repeat',\n 'stretch',\n ]): React$PropType$Primitive<\n 'center' | 'contain' | 'cover' | 'repeat' | 'stretch',\n >),\n backfaceVisibility: (ReactPropTypes.oneOf([\n 'visible',\n 'hidden',\n ]): React$PropType$Primitive<'visible' | 'hidden'>),\n backgroundColor: DeprecatedColorPropType,\n borderColor: DeprecatedColorPropType,\n borderWidth: ReactPropTypes.number,\n borderRadius: ReactPropTypes.number,\n overflow: (ReactPropTypes.oneOf([\n 'visible',\n 'hidden',\n ]): React$PropType$Primitive<'visible' | 'hidden'>),\n\n /**\n * Changes the color of all the non-transparent pixels to the tintColor.\n */\n tintColor: DeprecatedColorPropType,\n opacity: ReactPropTypes.number,\n /**\n * When the image has rounded corners, specifying an overlayColor will\n * cause the remaining space in the corners to be filled with a solid color.\n * This is useful in cases which are not supported by the Android\n * implementation of rounded corners:\n * - Certain resize modes, such as 'contain'\n * - Animated GIFs\n *\n * A typical way to use this prop is with images displayed on a solid\n * background and setting the `overlayColor` to the same color\n * as the background.\n *\n * For details of how this works under the hood, see\n * http://frescolib.org/docs/rounded-corners-and-circles.html\n *\n * @platform android\n */\n overlayColor: ReactPropTypes.string,\n\n // Android-Specific styles\n borderTopLeftRadius: ReactPropTypes.number,\n borderTopRightRadius: ReactPropTypes.number,\n borderBottomLeftRadius: ReactPropTypes.number,\n borderBottomRightRadius: ReactPropTypes.number,\n};\n\nmodule.exports = ImageStylePropTypes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst normalizeColor = require('../StyleSheet/normalizeColor');\n\nconst colorPropType = function(\n isRequired,\n props,\n propName,\n componentName,\n location,\n propFullName,\n) {\n const color = props[propName];\n if (color === undefined || color === null) {\n if (isRequired) {\n return new Error(\n 'Required ' +\n location +\n ' `' +\n (propFullName || propName) +\n '` was not specified in `' +\n componentName +\n '`.',\n );\n }\n return;\n }\n\n if (typeof color === 'number') {\n // Developers should not use a number, but we are using the prop type\n // both for user provided colors and for transformed ones. This isn't ideal\n // and should be fixed but will do for now...\n return;\n }\n\n if (normalizeColor(color) === null) {\n return new Error(\n 'Invalid ' +\n location +\n ' `' +\n (propFullName || propName) +\n '` supplied to `' +\n componentName +\n '`: ' +\n color +\n '\\n' +\n `Valid color formats are\n - '#f0f' (#rgb)\n - '#f0fc' (#rgba)\n - '#ff00ff' (#rrggbb)\n - '#ff00ff00' (#rrggbbaa)\n - 'rgb(255, 255, 255)'\n - 'rgba(255, 255, 255, 1.0)'\n - 'hsl(360, 100%, 100%)'\n - 'hsla(360, 100%, 100%, 1.0)'\n - 'transparent'\n - 'red'\n - 0xff00ff00 (0xrrggbbaa)\n`,\n );\n }\n};\n\nconst ColorPropType = colorPropType.bind(null, false /* isRequired */);\nColorPropType.isRequired = colorPropType.bind(null, true /* isRequired */);\n\nmodule.exports = ColorPropType;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n/* eslint no-bitwise: 0 */\n\n'use strict';\n\nfunction normalizeColor(color: string | number): ?number {\n const matchers = getMatchers();\n let match;\n\n if (typeof color === 'number') {\n if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) {\n return color;\n }\n return null;\n }\n\n // Ordered based on occurrences on Facebook codebase\n if ((match = matchers.hex6.exec(color))) {\n return parseInt(match[1] + 'ff', 16) >>> 0;\n }\n\n if (names.hasOwnProperty(color)) {\n return names[color];\n }\n\n if ((match = matchers.rgb.exec(color))) {\n return (\n // b\n ((parse255(match[1]) << 24) | // r\n (parse255(match[2]) << 16) | // g\n (parse255(match[3]) << 8) |\n 0x000000ff) >>> // a\n 0\n );\n }\n\n if ((match = matchers.rgba.exec(color))) {\n return (\n // b\n ((parse255(match[1]) << 24) | // r\n (parse255(match[2]) << 16) | // g\n (parse255(match[3]) << 8) |\n parse1(match[4])) >>> // a\n 0\n );\n }\n\n if ((match = matchers.hex3.exec(color))) {\n return (\n parseInt(\n match[1] +\n match[1] + // r\n match[2] +\n match[2] + // g\n match[3] +\n match[3] + // b\n 'ff', // a\n 16,\n ) >>> 0\n );\n }\n\n // https://drafts.csswg.org/css-color-4/#hex-notation\n if ((match = matchers.hex8.exec(color))) {\n return parseInt(match[1], 16) >>> 0;\n }\n\n if ((match = matchers.hex4.exec(color))) {\n return (\n parseInt(\n match[1] +\n match[1] + // r\n match[2] +\n match[2] + // g\n match[3] +\n match[3] + // b\n match[4] +\n match[4], // a\n 16,\n ) >>> 0\n );\n }\n\n if ((match = matchers.hsl.exec(color))) {\n return (\n (hslToRgb(\n parse360(match[1]), // h\n parsePercentage(match[2]), // s\n parsePercentage(match[3]), // l\n ) |\n 0x000000ff) >>> // a\n 0\n );\n }\n\n if ((match = matchers.hsla.exec(color))) {\n return (\n (hslToRgb(\n parse360(match[1]), // h\n parsePercentage(match[2]), // s\n parsePercentage(match[3]), // l\n ) |\n parse1(match[4])) >>> // a\n 0\n );\n }\n\n return null;\n}\n\nfunction hue2rgb(p: number, q: number, t: number): number {\n if (t < 0) {\n t += 1;\n }\n if (t > 1) {\n t -= 1;\n }\n if (t < 1 / 6) {\n return p + (q - p) * 6 * t;\n }\n if (t < 1 / 2) {\n return q;\n }\n if (t < 2 / 3) {\n return p + (q - p) * (2 / 3 - t) * 6;\n }\n return p;\n}\n\nfunction hslToRgb(h: number, s: number, l: number): number {\n const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const p = 2 * l - q;\n const r = hue2rgb(p, q, h + 1 / 3);\n const g = hue2rgb(p, q, h);\n const b = hue2rgb(p, q, h - 1 / 3);\n\n return (\n (Math.round(r * 255) << 24) |\n (Math.round(g * 255) << 16) |\n (Math.round(b * 255) << 8)\n );\n}\n\n// var INTEGER = '[-+]?\\\\d+';\nconst NUMBER = '[-+]?\\\\d*\\\\.?\\\\d+';\nconst PERCENTAGE = NUMBER + '%';\n\nfunction call(...args) {\n return '\\\\(\\\\s*(' + args.join(')\\\\s*,\\\\s*(') + ')\\\\s*\\\\)';\n}\n\nlet cachedMatchers;\n\nfunction getMatchers() {\n if (cachedMatchers === undefined) {\n cachedMatchers = {\n rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)),\n rgba: new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER)),\n hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)),\n hsla: new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)),\n hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#([0-9a-fA-F]{6})$/,\n hex8: /^#([0-9a-fA-F]{8})$/,\n };\n }\n return cachedMatchers;\n}\n\nfunction parse255(str: string): number {\n const int = parseInt(str, 10);\n if (int < 0) {\n return 0;\n }\n if (int > 255) {\n return 255;\n }\n return int;\n}\n\nfunction parse360(str: string): number {\n const int = parseFloat(str);\n return (((int % 360) + 360) % 360) / 360;\n}\n\nfunction parse1(str: string): number {\n const num = parseFloat(str);\n if (num < 0) {\n return 0;\n }\n if (num > 1) {\n return 255;\n }\n return Math.round(num * 255);\n}\n\nfunction parsePercentage(str: string): number {\n // parseFloat conveniently ignores the final %\n const int = parseFloat(str);\n if (int < 0) {\n return 0;\n }\n if (int > 100) {\n return 1;\n }\n return int / 100;\n}\n\nconst names = {\n transparent: 0x00000000,\n\n // http://www.w3.org/TR/css3-color/#svg-color\n aliceblue: 0xf0f8ffff,\n antiquewhite: 0xfaebd7ff,\n aqua: 0x00ffffff,\n aquamarine: 0x7fffd4ff,\n azure: 0xf0ffffff,\n beige: 0xf5f5dcff,\n bisque: 0xffe4c4ff,\n black: 0x000000ff,\n blanchedalmond: 0xffebcdff,\n blue: 0x0000ffff,\n blueviolet: 0x8a2be2ff,\n brown: 0xa52a2aff,\n burlywood: 0xdeb887ff,\n burntsienna: 0xea7e5dff,\n cadetblue: 0x5f9ea0ff,\n chartreuse: 0x7fff00ff,\n chocolate: 0xd2691eff,\n coral: 0xff7f50ff,\n cornflowerblue: 0x6495edff,\n cornsilk: 0xfff8dcff,\n crimson: 0xdc143cff,\n cyan: 0x00ffffff,\n darkblue: 0x00008bff,\n darkcyan: 0x008b8bff,\n darkgoldenrod: 0xb8860bff,\n darkgray: 0xa9a9a9ff,\n darkgreen: 0x006400ff,\n darkgrey: 0xa9a9a9ff,\n darkkhaki: 0xbdb76bff,\n darkmagenta: 0x8b008bff,\n darkolivegreen: 0x556b2fff,\n darkorange: 0xff8c00ff,\n darkorchid: 0x9932ccff,\n darkred: 0x8b0000ff,\n darksalmon: 0xe9967aff,\n darkseagreen: 0x8fbc8fff,\n darkslateblue: 0x483d8bff,\n darkslategray: 0x2f4f4fff,\n darkslategrey: 0x2f4f4fff,\n darkturquoise: 0x00ced1ff,\n darkviolet: 0x9400d3ff,\n deeppink: 0xff1493ff,\n deepskyblue: 0x00bfffff,\n dimgray: 0x696969ff,\n dimgrey: 0x696969ff,\n dodgerblue: 0x1e90ffff,\n firebrick: 0xb22222ff,\n floralwhite: 0xfffaf0ff,\n forestgreen: 0x228b22ff,\n fuchsia: 0xff00ffff,\n gainsboro: 0xdcdcdcff,\n ghostwhite: 0xf8f8ffff,\n gold: 0xffd700ff,\n goldenrod: 0xdaa520ff,\n gray: 0x808080ff,\n green: 0x008000ff,\n greenyellow: 0xadff2fff,\n grey: 0x808080ff,\n honeydew: 0xf0fff0ff,\n hotpink: 0xff69b4ff,\n indianred: 0xcd5c5cff,\n indigo: 0x4b0082ff,\n ivory: 0xfffff0ff,\n khaki: 0xf0e68cff,\n lavender: 0xe6e6faff,\n lavenderblush: 0xfff0f5ff,\n lawngreen: 0x7cfc00ff,\n lemonchiffon: 0xfffacdff,\n lightblue: 0xadd8e6ff,\n lightcoral: 0xf08080ff,\n lightcyan: 0xe0ffffff,\n lightgoldenrodyellow: 0xfafad2ff,\n lightgray: 0xd3d3d3ff,\n lightgreen: 0x90ee90ff,\n lightgrey: 0xd3d3d3ff,\n lightpink: 0xffb6c1ff,\n lightsalmon: 0xffa07aff,\n lightseagreen: 0x20b2aaff,\n lightskyblue: 0x87cefaff,\n lightslategray: 0x778899ff,\n lightslategrey: 0x778899ff,\n lightsteelblue: 0xb0c4deff,\n lightyellow: 0xffffe0ff,\n lime: 0x00ff00ff,\n limegreen: 0x32cd32ff,\n linen: 0xfaf0e6ff,\n magenta: 0xff00ffff,\n maroon: 0x800000ff,\n mediumaquamarine: 0x66cdaaff,\n mediumblue: 0x0000cdff,\n mediumorchid: 0xba55d3ff,\n mediumpurple: 0x9370dbff,\n mediumseagreen: 0x3cb371ff,\n mediumslateblue: 0x7b68eeff,\n mediumspringgreen: 0x00fa9aff,\n mediumturquoise: 0x48d1ccff,\n mediumvioletred: 0xc71585ff,\n midnightblue: 0x191970ff,\n mintcream: 0xf5fffaff,\n mistyrose: 0xffe4e1ff,\n moccasin: 0xffe4b5ff,\n navajowhite: 0xffdeadff,\n navy: 0x000080ff,\n oldlace: 0xfdf5e6ff,\n olive: 0x808000ff,\n olivedrab: 0x6b8e23ff,\n orange: 0xffa500ff,\n orangered: 0xff4500ff,\n orchid: 0xda70d6ff,\n palegoldenrod: 0xeee8aaff,\n palegreen: 0x98fb98ff,\n paleturquoise: 0xafeeeeff,\n palevioletred: 0xdb7093ff,\n papayawhip: 0xffefd5ff,\n peachpuff: 0xffdab9ff,\n peru: 0xcd853fff,\n pink: 0xffc0cbff,\n plum: 0xdda0ddff,\n powderblue: 0xb0e0e6ff,\n purple: 0x800080ff,\n rebeccapurple: 0x663399ff,\n red: 0xff0000ff,\n rosybrown: 0xbc8f8fff,\n royalblue: 0x4169e1ff,\n saddlebrown: 0x8b4513ff,\n salmon: 0xfa8072ff,\n sandybrown: 0xf4a460ff,\n seagreen: 0x2e8b57ff,\n seashell: 0xfff5eeff,\n sienna: 0xa0522dff,\n silver: 0xc0c0c0ff,\n skyblue: 0x87ceebff,\n slateblue: 0x6a5acdff,\n slategray: 0x708090ff,\n slategrey: 0x708090ff,\n snow: 0xfffafaff,\n springgreen: 0x00ff7fff,\n steelblue: 0x4682b4ff,\n tan: 0xd2b48cff,\n teal: 0x008080ff,\n thistle: 0xd8bfd8ff,\n tomato: 0xff6347ff,\n turquoise: 0x40e0d0ff,\n violet: 0xee82eeff,\n wheat: 0xf5deb3ff,\n white: 0xffffffff,\n whitesmoke: 0xf5f5f5ff,\n yellow: 0xffff00ff,\n yellowgreen: 0x9acd32ff,\n};\n\nmodule.exports = normalizeColor;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst ReactPropTypes = require('prop-types');\n\nconst LayoutPropTypes = {\n display: (ReactPropTypes.oneOf(['none', 'flex']): React$PropType$Primitive<\n 'none' | 'flex',\n >),\n width: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n height: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n start: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n end: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n top: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n left: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n right: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n bottom: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n minWidth: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n maxWidth: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n minHeight: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n maxHeight: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n margin: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginVertical: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginHorizontal: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginTop: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginBottom: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginLeft: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginRight: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginStart: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n marginEnd: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n padding: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingVertical: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingHorizontal: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingTop: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingBottom: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingLeft: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingRight: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingStart: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n paddingEnd: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n borderWidth: ReactPropTypes.number,\n borderTopWidth: ReactPropTypes.number,\n borderStartWidth: ReactPropTypes.number,\n borderEndWidth: ReactPropTypes.number,\n borderRightWidth: ReactPropTypes.number,\n borderBottomWidth: ReactPropTypes.number,\n borderLeftWidth: ReactPropTypes.number,\n position: (ReactPropTypes.oneOf([\n 'absolute',\n 'relative',\n ]): React$PropType$Primitive<'absolute' | 'relative'>),\n flexDirection: (ReactPropTypes.oneOf([\n 'row',\n 'row-reverse',\n 'column',\n 'column-reverse',\n ]): React$PropType$Primitive<\n 'row' | 'row-reverse' | 'column' | 'column-reverse',\n >),\n flexWrap: (ReactPropTypes.oneOf([\n 'wrap',\n 'nowrap',\n 'wrap-reverse',\n ]): React$PropType$Primitive<'wrap' | 'nowrap' | 'wrap-reverse'>),\n justifyContent: (ReactPropTypes.oneOf([\n 'flex-start',\n 'flex-end',\n 'center',\n 'space-between',\n 'space-around',\n 'space-evenly',\n ]): React$PropType$Primitive<\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly',\n >),\n alignItems: (ReactPropTypes.oneOf([\n 'flex-start',\n 'flex-end',\n 'center',\n 'stretch',\n 'baseline',\n ]): React$PropType$Primitive<\n 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline',\n >),\n alignSelf: (ReactPropTypes.oneOf([\n 'auto',\n 'flex-start',\n 'flex-end',\n 'center',\n 'stretch',\n 'baseline',\n ]): React$PropType$Primitive<\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline',\n >),\n alignContent: (ReactPropTypes.oneOf([\n 'flex-start',\n 'flex-end',\n 'center',\n 'stretch',\n 'space-between',\n 'space-around',\n ]): React$PropType$Primitive<\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'stretch'\n | 'space-between'\n | 'space-around',\n >),\n overflow: (ReactPropTypes.oneOf([\n 'visible',\n 'hidden',\n 'scroll',\n ]): React$PropType$Primitive<'visible' | 'hidden' | 'scroll'>),\n flex: ReactPropTypes.number,\n flexGrow: ReactPropTypes.number,\n flexShrink: ReactPropTypes.number,\n flexBasis: (ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]): React$PropType$Primitive),\n aspectRatio: ReactPropTypes.number,\n zIndex: ReactPropTypes.number,\n direction: (ReactPropTypes.oneOf([\n 'inherit',\n 'ltr',\n 'rtl',\n ]): React$PropType$Primitive<'inherit' | 'ltr' | 'rtl'>),\n};\n\nmodule.exports = LayoutPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('./DeprecatedColorPropType');\nconst ReactPropTypes = require('prop-types');\n\nconst DeprecatedShadowPropTypesIOS = {\n shadowColor: DeprecatedColorPropType,\n shadowOffset: (ReactPropTypes.shape({\n width: ReactPropTypes.number,\n height: ReactPropTypes.number,\n }): React$PropType$Primitive<{\n height?: number,\n width?: number,\n ...\n }>),\n shadowOpacity: ReactPropTypes.number,\n shadowRadius: ReactPropTypes.number,\n};\n\nmodule.exports = DeprecatedShadowPropTypesIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ReactPropTypes = require('prop-types');\n\nconst deprecatedPropType = require('../Utilities/deprecatedPropType');\n\nconst TransformMatrixPropType = function(\n props: Object,\n propName: string,\n componentName: string,\n): ?Error {\n if (props[propName]) {\n return new Error(\n 'The transformMatrix style property is deprecated. ' +\n 'Use `transform: [{ matrix: ... }]` instead.',\n );\n }\n};\n\nconst DecomposedMatrixPropType = function(\n props: Object,\n propName: string,\n componentName: string,\n): ?Error {\n if (props[propName]) {\n return new Error(\n 'The decomposedMatrix style property is deprecated. ' +\n 'Use `transform: [...]` instead.',\n );\n }\n};\n\nconst DeprecatedTransformPropTypes = {\n transform: (ReactPropTypes.arrayOf(\n ReactPropTypes.oneOfType([\n ReactPropTypes.shape({perspective: ReactPropTypes.number}),\n ReactPropTypes.shape({rotate: ReactPropTypes.string}),\n ReactPropTypes.shape({rotateX: ReactPropTypes.string}),\n ReactPropTypes.shape({rotateY: ReactPropTypes.string}),\n ReactPropTypes.shape({rotateZ: ReactPropTypes.string}),\n ReactPropTypes.shape({scale: ReactPropTypes.number}),\n ReactPropTypes.shape({scaleX: ReactPropTypes.number}),\n ReactPropTypes.shape({scaleY: ReactPropTypes.number}),\n ReactPropTypes.shape({translateX: ReactPropTypes.number}),\n ReactPropTypes.shape({translateY: ReactPropTypes.number}),\n ReactPropTypes.shape({skewX: ReactPropTypes.string}),\n ReactPropTypes.shape({skewY: ReactPropTypes.string}),\n ]),\n ): React$PropType$Primitive<\n Array<\n | {perspective?: number, ...}\n | {rotate?: string, ...}\n | {rotateX?: string, ...}\n | {rotateY?: string, ...}\n | {rotateZ?: string, ...}\n | {scale?: number, ...}\n | {scaleX?: number, ...}\n | {scaleY?: number, ...}\n | {translateX?: number, ...}\n | {translateY?: number, ...}\n | {skewX?: string, ...}\n | {skewY?: string, ...},\n >,\n >),\n transformMatrix: TransformMatrixPropType,\n decomposedMatrix: DecomposedMatrixPropType,\n scaleX: (deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ): ReactPropsCheckType),\n scaleY: (deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ): ReactPropsCheckType),\n rotation: (deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ): ReactPropsCheckType),\n translateX: (deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ): ReactPropsCheckType),\n translateY: (deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ): ReactPropsCheckType),\n};\n\nmodule.exports = DeprecatedTransformPropTypes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst UIManager = require('../ReactNative/UIManager');\n\n/**\n * Adds a deprecation warning when the prop is used.\n */\nfunction deprecatedPropType(\n propType: ReactPropsCheckType,\n explanation: string,\n): ReactPropsCheckType {\n return function validate(props, propName, componentName, ...rest) {\n // Don't warn for native components.\n if (\n !UIManager.getViewManagerConfig(componentName) &&\n props[propName] !== undefined\n ) {\n console.warn(\n `\\`${propName}\\` supplied to \\`${componentName}\\` has been deprecated. ${explanation}`,\n );\n }\n\n return propType(props, propName, componentName, ...rest);\n };\n}\n\nmodule.exports = deprecatedPropType;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('./DeprecatedColorPropType');\nconst DeprecatedViewStylePropTypes = require('./DeprecatedViewStylePropTypes');\nconst ReactPropTypes = require('prop-types');\n\nconst DeprecatedTextStylePropTypes = {\n ...DeprecatedViewStylePropTypes,\n\n color: DeprecatedColorPropType,\n fontFamily: ReactPropTypes.string,\n fontSize: ReactPropTypes.number,\n fontStyle: (ReactPropTypes.oneOf([\n 'normal',\n 'italic',\n ]): React$PropType$Primitive<'normal' | 'italic'>),\n /**\n * Specifies font weight. The values 'normal' and 'bold' are supported for\n * most fonts. Not all fonts have a variant for each of the numeric values,\n * in that case the closest one is chosen.\n */\n fontWeight: (ReactPropTypes.oneOf([\n 'normal' /*default*/,\n 'bold',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n ]): React$PropType$Primitive<\n | 'normal'\n | 'bold'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900',\n >),\n fontVariant: (ReactPropTypes.arrayOf(\n ReactPropTypes.oneOf([\n 'small-caps',\n 'oldstyle-nums',\n 'lining-nums',\n 'tabular-nums',\n 'proportional-nums',\n ]),\n ): React$PropType$Primitive<\n Array<\n | 'small-caps'\n | 'oldstyle-nums'\n | 'lining-nums'\n | 'tabular-nums'\n | 'proportional-nums',\n >,\n >),\n textShadowOffset: (ReactPropTypes.shape({\n width: ReactPropTypes.number,\n height: ReactPropTypes.number,\n }): React$PropType$Primitive<{\n height?: number,\n width?: number,\n ...\n }>),\n textShadowRadius: ReactPropTypes.number,\n textShadowColor: DeprecatedColorPropType,\n /**\n * @platform ios\n */\n letterSpacing: ReactPropTypes.number,\n lineHeight: ReactPropTypes.number,\n /**\n * Specifies text alignment. The value 'justify' is only supported on iOS and\n * fallbacks to `left` on Android.\n */\n textAlign: (ReactPropTypes.oneOf([\n 'auto' /*default*/,\n 'left',\n 'right',\n 'center',\n 'justify',\n ]): React$PropType$Primitive<\n 'auto' | 'left' | 'right' | 'center' | 'justify',\n >),\n /**\n * @platform android\n */\n textAlignVertical: (ReactPropTypes.oneOf([\n 'auto' /*default*/,\n 'top',\n 'bottom',\n 'center',\n ]): React$PropType$Primitive<'auto' | 'top' | 'bottom' | 'center'>),\n /**\n * Set to `false` to remove extra font padding intended to make space for certain ascenders / descenders.\n * With some fonts, this padding can make text look slightly misaligned when centered vertically.\n * For best results also set `textAlignVertical` to `center`. Default is true.\n * @platform android\n */\n includeFontPadding: ReactPropTypes.bool,\n textDecorationLine: (ReactPropTypes.oneOf([\n 'none' /*default*/,\n 'underline',\n 'line-through',\n 'underline line-through',\n ]): React$PropType$Primitive<\n 'none' | 'underline' | 'line-through' | 'underline line-through',\n >),\n /**\n * @platform ios\n */\n textDecorationStyle: (ReactPropTypes.oneOf([\n 'solid' /*default*/,\n 'double',\n 'dotted',\n 'dashed',\n ]): React$PropType$Primitive<'solid' | 'double' | 'dotted' | 'dashed'>),\n /**\n * @platform ios\n */\n textDecorationColor: DeprecatedColorPropType,\n textTransform: (ReactPropTypes.oneOf([\n 'none' /*default*/,\n 'capitalize',\n 'uppercase',\n 'lowercase',\n ]): React$PropType$Primitive<\n 'none' | 'capitalize' | 'uppercase' | 'lowercase',\n >),\n /**\n * @platform ios\n */\n writingDirection: (ReactPropTypes.oneOf([\n 'auto' /*default*/,\n 'ltr',\n 'rtl',\n ]): React$PropType$Primitive<'auto' | 'ltr' | 'rtl'>),\n};\n\nmodule.exports = DeprecatedTextStylePropTypes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('./DeprecatedColorPropType');\nconst DeprecatedLayoutPropTypes = require('./DeprecatedLayoutPropTypes');\nconst DeprecatedShadowPropTypesIOS = require('./DeprecatedShadowPropTypesIOS');\nconst DeprecatedTransformPropTypes = require('./DeprecatedTransformPropTypes');\nconst ReactPropTypes = require('prop-types');\n\n/**\n * Warning: Some of these properties may not be supported in all releases.\n */\nconst DeprecatedViewStylePropTypes = {\n ...DeprecatedLayoutPropTypes,\n ...DeprecatedShadowPropTypesIOS,\n ...DeprecatedTransformPropTypes,\n backfaceVisibility: (ReactPropTypes.oneOf([\n 'visible',\n 'hidden',\n ]): React$PropType$Primitive<'visible' | 'hidden'>),\n backgroundColor: DeprecatedColorPropType,\n borderColor: DeprecatedColorPropType,\n borderTopColor: DeprecatedColorPropType,\n borderRightColor: DeprecatedColorPropType,\n borderBottomColor: DeprecatedColorPropType,\n borderLeftColor: DeprecatedColorPropType,\n borderStartColor: DeprecatedColorPropType,\n borderEndColor: DeprecatedColorPropType,\n borderRadius: ReactPropTypes.number,\n borderTopLeftRadius: ReactPropTypes.number,\n borderTopRightRadius: ReactPropTypes.number,\n borderTopStartRadius: ReactPropTypes.number,\n borderTopEndRadius: ReactPropTypes.number,\n borderBottomLeftRadius: ReactPropTypes.number,\n borderBottomRightRadius: ReactPropTypes.number,\n borderBottomStartRadius: ReactPropTypes.number,\n borderBottomEndRadius: ReactPropTypes.number,\n borderStyle: (ReactPropTypes.oneOf([\n 'solid',\n 'dotted',\n 'dashed',\n ]): React$PropType$Primitive<'solid' | 'dotted' | 'dashed'>),\n borderWidth: ReactPropTypes.number,\n borderTopWidth: ReactPropTypes.number,\n borderRightWidth: ReactPropTypes.number,\n borderBottomWidth: ReactPropTypes.number,\n borderLeftWidth: ReactPropTypes.number,\n opacity: ReactPropTypes.number,\n /**\n * (Android-only) Sets the elevation of a view, using Android's underlying\n * [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).\n * This adds a drop shadow to the item and affects z-order for overlapping views.\n * Only supported on Android 5.0+, has no effect on earlier versions.\n * @platform android\n */\n elevation: ReactPropTypes.number,\n};\n\nmodule.exports = DeprecatedViewStylePropTypes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Platform = require('../Utilities/Platform');\n\nconst normalizeColor = require('./normalizeColor');\n\n/* eslint no-bitwise: 0 */\nfunction processColor(color?: ?(string | number)): ?number {\n if (color === undefined || color === null) {\n return color;\n }\n\n let int32Color = normalizeColor(color);\n if (int32Color === null || int32Color === undefined) {\n return undefined;\n }\n\n // Converts 0xrrggbbaa into 0xaarrggbb\n int32Color = ((int32Color << 24) | (int32Color >>> 8)) >>> 0;\n\n if (Platform.OS === 'android') {\n // Android use 32 bit *signed* integer to represent the color\n // We utilize the fact that bitwise operations in JS also operates on\n // signed 32 bit integers, so that we can use those to convert from\n // *unsigned* to *signed* 32bit int that way.\n int32Color = int32Color | 0x0;\n }\n return int32Color;\n}\n\nmodule.exports = processColor;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst MatrixMath = require('../Utilities/MatrixMath');\nconst Platform = require('../Utilities/Platform');\n\nconst invariant = require('invariant');\nconst stringifySafe = require('../Utilities/stringifySafe');\n\n/**\n * Generate a transform matrix based on the provided transforms, and use that\n * within the style object instead.\n *\n * This allows us to provide an API that is similar to CSS, where transforms may\n * be applied in an arbitrary order, and yet have a universal, singular\n * interface to native code.\n */\nfunction processTransform(\n transform: Array,\n): Array | Array {\n if (__DEV__) {\n _validateTransforms(transform);\n }\n\n // Android & iOS implementations of transform property accept the list of\n // transform properties as opposed to a transform Matrix. This is necessary\n // to control transform property updates completely on the native thread.\n if (Platform.OS === 'android' || Platform.OS === 'ios') {\n return transform;\n }\n\n const result = MatrixMath.createIdentityMatrix();\n\n transform.forEach(transformation => {\n const key = Object.keys(transformation)[0];\n const value = transformation[key];\n\n switch (key) {\n case 'matrix':\n MatrixMath.multiplyInto(result, result, value);\n break;\n case 'perspective':\n _multiplyTransform(result, MatrixMath.reusePerspectiveCommand, [value]);\n break;\n case 'rotateX':\n _multiplyTransform(result, MatrixMath.reuseRotateXCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'rotateY':\n _multiplyTransform(result, MatrixMath.reuseRotateYCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'rotate':\n case 'rotateZ':\n _multiplyTransform(result, MatrixMath.reuseRotateZCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'scale':\n _multiplyTransform(result, MatrixMath.reuseScaleCommand, [value]);\n break;\n case 'scaleX':\n _multiplyTransform(result, MatrixMath.reuseScaleXCommand, [value]);\n break;\n case 'scaleY':\n _multiplyTransform(result, MatrixMath.reuseScaleYCommand, [value]);\n break;\n case 'translate':\n _multiplyTransform(result, MatrixMath.reuseTranslate3dCommand, [\n value[0],\n value[1],\n value[2] || 0,\n ]);\n break;\n case 'translateX':\n _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [\n value,\n 0,\n ]);\n break;\n case 'translateY':\n _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [\n 0,\n value,\n ]);\n break;\n case 'skewX':\n _multiplyTransform(result, MatrixMath.reuseSkewXCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'skewY':\n _multiplyTransform(result, MatrixMath.reuseSkewYCommand, [\n _convertToRadians(value),\n ]);\n break;\n default:\n throw new Error('Invalid transform name: ' + key);\n }\n });\n\n return result;\n}\n\n/**\n * Performs a destructive operation on a transform matrix.\n */\nfunction _multiplyTransform(\n result: Array,\n matrixMathFunction: Function,\n args: Array,\n): void {\n const matrixToApply = MatrixMath.createIdentityMatrix();\n const argsWithIdentity = [matrixToApply].concat(args);\n matrixMathFunction.apply(this, argsWithIdentity);\n MatrixMath.multiplyInto(result, result, matrixToApply);\n}\n\n/**\n * Parses a string like '0.5rad' or '60deg' into radians expressed in a float.\n * Note that validation on the string is done in `_validateTransform()`.\n */\nfunction _convertToRadians(value: string): number {\n const floatValue = parseFloat(value);\n return value.indexOf('rad') > -1 ? floatValue : (floatValue * Math.PI) / 180;\n}\n\nfunction _validateTransforms(transform: Array): void {\n transform.forEach(transformation => {\n const keys = Object.keys(transformation);\n invariant(\n keys.length === 1,\n 'You must specify exactly one property per transform object. Passed properties: %s',\n stringifySafe(transformation),\n );\n const key = keys[0];\n const value = transformation[key];\n _validateTransform(key, value, transformation);\n });\n}\n\nfunction _validateTransform(key, value, transformation) {\n invariant(\n !value.getValue,\n 'You passed an Animated.Value to a normal component. ' +\n 'You need to wrap that component in an Animated. For example, ' +\n 'replace by .',\n );\n\n const multivalueTransforms = ['matrix', 'translate'];\n if (multivalueTransforms.indexOf(key) !== -1) {\n invariant(\n Array.isArray(value),\n 'Transform with key of %s must have an array as the value: %s',\n key,\n stringifySafe(transformation),\n );\n }\n switch (key) {\n case 'matrix':\n invariant(\n /* $FlowFixMe(>=0.88.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.88 was deployed. To see the error, delete\n * this comment and run Flow. */\n value.length === 9 || value.length === 16,\n 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' +\n 'Provided matrix has a length of %s: %s',\n /* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.84 was deployed. To see the error, delete\n * this comment and run Flow. */\n value.length,\n stringifySafe(transformation),\n );\n break;\n case 'translate':\n invariant(\n /* $FlowFixMe(>=0.88.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.88 was deployed. To see the error, delete\n * this comment and run Flow. */\n value.length === 2 || value.length === 3,\n 'Transform with key translate must be an array of length 2 or 3, found %s: %s',\n /* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.84 was deployed. To see the error, delete\n * this comment and run Flow. */\n value.length,\n stringifySafe(transformation),\n );\n break;\n case 'rotateX':\n case 'rotateY':\n case 'rotateZ':\n case 'rotate':\n case 'skewX':\n case 'skewY':\n invariant(\n typeof value === 'string',\n 'Transform with key of \"%s\" must be a string: %s',\n key,\n stringifySafe(transformation),\n );\n invariant(\n value.indexOf('deg') > -1 || value.indexOf('rad') > -1,\n 'Rotate transform must be expressed in degrees (deg) or radians ' +\n '(rad): %s',\n stringifySafe(transformation),\n );\n break;\n case 'perspective':\n invariant(\n typeof value === 'number',\n 'Transform with key of \"%s\" must be a number: %s',\n key,\n stringifySafe(transformation),\n );\n invariant(\n value !== 0,\n 'Transform with key of \"%s\" cannot be zero: %s',\n key,\n stringifySafe(transformation),\n );\n break;\n case 'translateX':\n case 'translateY':\n case 'scale':\n case 'scaleX':\n case 'scaleY':\n invariant(\n typeof value === 'number',\n 'Transform with key of \"%s\" must be a number: %s',\n key,\n stringifySafe(transformation),\n );\n break;\n default:\n invariant(\n false,\n 'Invalid transform %s: %s',\n key,\n stringifySafe(transformation),\n );\n }\n}\n\nmodule.exports = processTransform;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @noflow\n */\n\n/* eslint-disable space-infix-ops */\n\n'use strict';\n\nconst invariant = require('invariant');\n\n/**\n * Memory conservative (mutative) matrix math utilities. Uses \"command\"\n * matrices, which are reusable.\n */\nconst MatrixMath = {\n createIdentityMatrix: function() {\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n },\n\n createCopy: function(m) {\n return [\n m[0],\n m[1],\n m[2],\n m[3],\n m[4],\n m[5],\n m[6],\n m[7],\n m[8],\n m[9],\n m[10],\n m[11],\n m[12],\n m[13],\n m[14],\n m[15],\n ];\n },\n\n createOrthographic: function(left, right, bottom, top, near, far) {\n const a = 2 / (right - left);\n const b = 2 / (top - bottom);\n const c = -2 / (far - near);\n\n const tx = -(right + left) / (right - left);\n const ty = -(top + bottom) / (top - bottom);\n const tz = -(far + near) / (far - near);\n\n return [a, 0, 0, 0, 0, b, 0, 0, 0, 0, c, 0, tx, ty, tz, 1];\n },\n\n createFrustum: function(left, right, bottom, top, near, far) {\n const r_width = 1 / (right - left);\n const r_height = 1 / (top - bottom);\n const r_depth = 1 / (near - far);\n const x = 2 * (near * r_width);\n const y = 2 * (near * r_height);\n const A = (right + left) * r_width;\n const B = (top + bottom) * r_height;\n const C = (far + near) * r_depth;\n const D = 2 * (far * near * r_depth);\n return [x, 0, 0, 0, 0, y, 0, 0, A, B, C, -1, 0, 0, D, 0];\n },\n\n /**\n * This create a perspective projection towards negative z\n * Clipping the z range of [-near, -far]\n *\n * @param fovInRadians - field of view in randians\n */\n createPerspective: function(fovInRadians, aspect, near, far) {\n const h = 1 / Math.tan(fovInRadians / 2);\n const r_depth = 1 / (near - far);\n const C = (far + near) * r_depth;\n const D = 2 * (far * near * r_depth);\n return [h / aspect, 0, 0, 0, 0, h, 0, 0, 0, 0, C, -1, 0, 0, D, 0];\n },\n\n createTranslate2d: function(x, y) {\n const mat = MatrixMath.createIdentityMatrix();\n MatrixMath.reuseTranslate2dCommand(mat, x, y);\n return mat;\n },\n\n reuseTranslate2dCommand: function(matrixCommand, x, y) {\n matrixCommand[12] = x;\n matrixCommand[13] = y;\n },\n\n reuseTranslate3dCommand: function(matrixCommand, x, y, z) {\n matrixCommand[12] = x;\n matrixCommand[13] = y;\n matrixCommand[14] = z;\n },\n\n createScale: function(factor) {\n const mat = MatrixMath.createIdentityMatrix();\n MatrixMath.reuseScaleCommand(mat, factor);\n return mat;\n },\n\n reuseScaleCommand: function(matrixCommand, factor) {\n matrixCommand[0] = factor;\n matrixCommand[5] = factor;\n },\n\n reuseScale3dCommand: function(matrixCommand, x, y, z) {\n matrixCommand[0] = x;\n matrixCommand[5] = y;\n matrixCommand[10] = z;\n },\n\n reusePerspectiveCommand: function(matrixCommand, p) {\n matrixCommand[11] = -1 / p;\n },\n\n reuseScaleXCommand(matrixCommand, factor) {\n matrixCommand[0] = factor;\n },\n\n reuseScaleYCommand(matrixCommand, factor) {\n matrixCommand[5] = factor;\n },\n\n reuseScaleZCommand(matrixCommand, factor) {\n matrixCommand[10] = factor;\n },\n\n reuseRotateXCommand: function(matrixCommand, radians) {\n matrixCommand[5] = Math.cos(radians);\n matrixCommand[6] = Math.sin(radians);\n matrixCommand[9] = -Math.sin(radians);\n matrixCommand[10] = Math.cos(radians);\n },\n\n reuseRotateYCommand: function(matrixCommand, amount) {\n matrixCommand[0] = Math.cos(amount);\n matrixCommand[2] = -Math.sin(amount);\n matrixCommand[8] = Math.sin(amount);\n matrixCommand[10] = Math.cos(amount);\n },\n\n // http://www.w3.org/TR/css3-transforms/#recomposing-to-a-2d-matrix\n reuseRotateZCommand: function(matrixCommand, radians) {\n matrixCommand[0] = Math.cos(radians);\n matrixCommand[1] = Math.sin(radians);\n matrixCommand[4] = -Math.sin(radians);\n matrixCommand[5] = Math.cos(radians);\n },\n\n createRotateZ: function(radians) {\n const mat = MatrixMath.createIdentityMatrix();\n MatrixMath.reuseRotateZCommand(mat, radians);\n return mat;\n },\n\n reuseSkewXCommand: function(matrixCommand, radians) {\n matrixCommand[4] = Math.tan(radians);\n },\n\n reuseSkewYCommand: function(matrixCommand, radians) {\n matrixCommand[1] = Math.tan(radians);\n },\n\n multiplyInto: function(out, a, b) {\n const a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11],\n a30 = a[12],\n a31 = a[13],\n a32 = a[14],\n a33 = a[15];\n\n let b0 = b[0],\n b1 = b[1],\n b2 = b[2],\n b3 = b[3];\n out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n\n b0 = b[4];\n b1 = b[5];\n b2 = b[6];\n b3 = b[7];\n out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n\n b0 = b[8];\n b1 = b[9];\n b2 = b[10];\n b3 = b[11];\n out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n\n b0 = b[12];\n b1 = b[13];\n b2 = b[14];\n b3 = b[15];\n out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n },\n\n determinant(matrix: Array): number {\n const [\n m00,\n m01,\n m02,\n m03,\n m10,\n m11,\n m12,\n m13,\n m20,\n m21,\n m22,\n m23,\n m30,\n m31,\n m32,\n m33,\n ] = matrix;\n return (\n m03 * m12 * m21 * m30 -\n m02 * m13 * m21 * m30 -\n m03 * m11 * m22 * m30 +\n m01 * m13 * m22 * m30 +\n m02 * m11 * m23 * m30 -\n m01 * m12 * m23 * m30 -\n m03 * m12 * m20 * m31 +\n m02 * m13 * m20 * m31 +\n m03 * m10 * m22 * m31 -\n m00 * m13 * m22 * m31 -\n m02 * m10 * m23 * m31 +\n m00 * m12 * m23 * m31 +\n m03 * m11 * m20 * m32 -\n m01 * m13 * m20 * m32 -\n m03 * m10 * m21 * m32 +\n m00 * m13 * m21 * m32 +\n m01 * m10 * m23 * m32 -\n m00 * m11 * m23 * m32 -\n m02 * m11 * m20 * m33 +\n m01 * m12 * m20 * m33 +\n m02 * m10 * m21 * m33 -\n m00 * m12 * m21 * m33 -\n m01 * m10 * m22 * m33 +\n m00 * m11 * m22 * m33\n );\n },\n\n /**\n * Inverse of a matrix. Multiplying by the inverse is used in matrix math\n * instead of division.\n *\n * Formula from:\n * http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm\n */\n inverse(matrix: Array): Array {\n const det = MatrixMath.determinant(matrix);\n if (!det) {\n return matrix;\n }\n const [\n m00,\n m01,\n m02,\n m03,\n m10,\n m11,\n m12,\n m13,\n m20,\n m21,\n m22,\n m23,\n m30,\n m31,\n m32,\n m33,\n ] = matrix;\n return [\n (m12 * m23 * m31 -\n m13 * m22 * m31 +\n m13 * m21 * m32 -\n m11 * m23 * m32 -\n m12 * m21 * m33 +\n m11 * m22 * m33) /\n det,\n (m03 * m22 * m31 -\n m02 * m23 * m31 -\n m03 * m21 * m32 +\n m01 * m23 * m32 +\n m02 * m21 * m33 -\n m01 * m22 * m33) /\n det,\n (m02 * m13 * m31 -\n m03 * m12 * m31 +\n m03 * m11 * m32 -\n m01 * m13 * m32 -\n m02 * m11 * m33 +\n m01 * m12 * m33) /\n det,\n (m03 * m12 * m21 -\n m02 * m13 * m21 -\n m03 * m11 * m22 +\n m01 * m13 * m22 +\n m02 * m11 * m23 -\n m01 * m12 * m23) /\n det,\n (m13 * m22 * m30 -\n m12 * m23 * m30 -\n m13 * m20 * m32 +\n m10 * m23 * m32 +\n m12 * m20 * m33 -\n m10 * m22 * m33) /\n det,\n (m02 * m23 * m30 -\n m03 * m22 * m30 +\n m03 * m20 * m32 -\n m00 * m23 * m32 -\n m02 * m20 * m33 +\n m00 * m22 * m33) /\n det,\n (m03 * m12 * m30 -\n m02 * m13 * m30 -\n m03 * m10 * m32 +\n m00 * m13 * m32 +\n m02 * m10 * m33 -\n m00 * m12 * m33) /\n det,\n (m02 * m13 * m20 -\n m03 * m12 * m20 +\n m03 * m10 * m22 -\n m00 * m13 * m22 -\n m02 * m10 * m23 +\n m00 * m12 * m23) /\n det,\n (m11 * m23 * m30 -\n m13 * m21 * m30 +\n m13 * m20 * m31 -\n m10 * m23 * m31 -\n m11 * m20 * m33 +\n m10 * m21 * m33) /\n det,\n (m03 * m21 * m30 -\n m01 * m23 * m30 -\n m03 * m20 * m31 +\n m00 * m23 * m31 +\n m01 * m20 * m33 -\n m00 * m21 * m33) /\n det,\n (m01 * m13 * m30 -\n m03 * m11 * m30 +\n m03 * m10 * m31 -\n m00 * m13 * m31 -\n m01 * m10 * m33 +\n m00 * m11 * m33) /\n det,\n (m03 * m11 * m20 -\n m01 * m13 * m20 -\n m03 * m10 * m21 +\n m00 * m13 * m21 +\n m01 * m10 * m23 -\n m00 * m11 * m23) /\n det,\n (m12 * m21 * m30 -\n m11 * m22 * m30 -\n m12 * m20 * m31 +\n m10 * m22 * m31 +\n m11 * m20 * m32 -\n m10 * m21 * m32) /\n det,\n (m01 * m22 * m30 -\n m02 * m21 * m30 +\n m02 * m20 * m31 -\n m00 * m22 * m31 -\n m01 * m20 * m32 +\n m00 * m21 * m32) /\n det,\n (m02 * m11 * m30 -\n m01 * m12 * m30 -\n m02 * m10 * m31 +\n m00 * m12 * m31 +\n m01 * m10 * m32 -\n m00 * m11 * m32) /\n det,\n (m01 * m12 * m20 -\n m02 * m11 * m20 +\n m02 * m10 * m21 -\n m00 * m12 * m21 -\n m01 * m10 * m22 +\n m00 * m11 * m22) /\n det,\n ];\n },\n\n /**\n * Turns columns into rows and rows into columns.\n */\n transpose(m: Array): Array {\n return [\n m[0],\n m[4],\n m[8],\n m[12],\n m[1],\n m[5],\n m[9],\n m[13],\n m[2],\n m[6],\n m[10],\n m[14],\n m[3],\n m[7],\n m[11],\n m[15],\n ];\n },\n\n /**\n * Based on: http://tog.acm.org/resources/GraphicsGems/gemsii/unmatrix.c\n */\n multiplyVectorByMatrix(v: Array, m: Array): Array {\n const [vx, vy, vz, vw] = v;\n return [\n vx * m[0] + vy * m[4] + vz * m[8] + vw * m[12],\n vx * m[1] + vy * m[5] + vz * m[9] + vw * m[13],\n vx * m[2] + vy * m[6] + vz * m[10] + vw * m[14],\n vx * m[3] + vy * m[7] + vz * m[11] + vw * m[15],\n ];\n },\n\n /**\n * From: https://code.google.com/p/webgl-mjs/source/browse/mjs.js\n */\n v3Length(a: Array): number {\n return Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]);\n },\n\n /**\n * Based on: https://code.google.com/p/webgl-mjs/source/browse/mjs.js\n */\n v3Normalize(vector: Array, v3Length: number): Array {\n const im = 1 / (v3Length || MatrixMath.v3Length(vector));\n return [vector[0] * im, vector[1] * im, vector[2] * im];\n },\n\n /**\n * The dot product of a and b, two 3-element vectors.\n * From: https://code.google.com/p/webgl-mjs/source/browse/mjs.js\n */\n v3Dot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n },\n\n /**\n * From:\n * http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp\n */\n v3Combine(\n a: Array,\n b: Array,\n aScale: number,\n bScale: number,\n ): Array {\n return [\n aScale * a[0] + bScale * b[0],\n aScale * a[1] + bScale * b[1],\n aScale * a[2] + bScale * b[2],\n ];\n },\n\n /**\n * From:\n * http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp\n */\n v3Cross(a: Array, b: Array): Array {\n return [\n a[1] * b[2] - a[2] * b[1],\n a[2] * b[0] - a[0] * b[2],\n a[0] * b[1] - a[1] * b[0],\n ];\n },\n\n /**\n * Based on:\n * http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/\n * and:\n * http://quat.zachbennett.com/\n *\n * Note that this rounds degrees to the thousandth of a degree, due to\n * floating point errors in the creation of the quaternion.\n *\n * Also note that this expects the qw value to be last, not first.\n *\n * Also, when researching this, remember that:\n * yaw === heading === z-axis\n * pitch === elevation/attitude === y-axis\n * roll === bank === x-axis\n */\n quaternionToDegreesXYZ(q: Array, matrix, row): Array {\n const [qx, qy, qz, qw] = q;\n const qw2 = qw * qw;\n const qx2 = qx * qx;\n const qy2 = qy * qy;\n const qz2 = qz * qz;\n const test = qx * qy + qz * qw;\n const unit = qw2 + qx2 + qy2 + qz2;\n const conv = 180 / Math.PI;\n\n if (test > 0.49999 * unit) {\n return [0, 2 * Math.atan2(qx, qw) * conv, 90];\n }\n if (test < -0.49999 * unit) {\n return [0, -2 * Math.atan2(qx, qw) * conv, -90];\n }\n\n return [\n MatrixMath.roundTo3Places(\n Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx2 - 2 * qz2) * conv,\n ),\n MatrixMath.roundTo3Places(\n Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy2 - 2 * qz2) * conv,\n ),\n MatrixMath.roundTo3Places(Math.asin(2 * qx * qy + 2 * qz * qw) * conv),\n ];\n },\n\n /**\n * Based on:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round\n */\n roundTo3Places(n: number): number {\n const arr = n.toString().split('e');\n return Math.round(arr[0] + 'e' + (arr[1] ? +arr[1] - 3 : 3)) * 0.001;\n },\n\n /**\n * Decompose a matrix into separate transform values, for use on platforms\n * where applying a precomposed matrix is not possible, and transforms are\n * applied in an inflexible ordering (e.g. Android).\n *\n * Implementation based on\n * http://www.w3.org/TR/css3-transforms/#decomposing-a-2d-matrix\n * http://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix\n * which was based on\n * http://tog.acm.org/resources/GraphicsGems/gemsii/unmatrix.c\n */\n decomposeMatrix(transformMatrix: Array): ?Object {\n invariant(\n transformMatrix.length === 16,\n 'Matrix decomposition needs a list of 3d matrix values, received %s',\n transformMatrix,\n );\n\n // output values\n let perspective = [];\n const quaternion = [];\n const scale = [];\n const skew = [];\n const translation = [];\n\n // create normalized, 2d array matrix\n // and normalized 1d array perspectiveMatrix with redefined 4th column\n if (!transformMatrix[15]) {\n return;\n }\n const matrix = [];\n const perspectiveMatrix = [];\n for (let i = 0; i < 4; i++) {\n matrix.push([]);\n for (let j = 0; j < 4; j++) {\n const value = transformMatrix[i * 4 + j] / transformMatrix[15];\n matrix[i].push(value);\n perspectiveMatrix.push(j === 3 ? 0 : value);\n }\n }\n perspectiveMatrix[15] = 1;\n\n // test for singularity of upper 3x3 part of the perspective matrix\n if (!MatrixMath.determinant(perspectiveMatrix)) {\n return;\n }\n\n // isolate perspective\n if (matrix[0][3] !== 0 || matrix[1][3] !== 0 || matrix[2][3] !== 0) {\n // rightHandSide is the right hand side of the equation.\n // rightHandSide is a vector, or point in 3d space relative to the origin.\n const rightHandSide = [\n matrix[0][3],\n matrix[1][3],\n matrix[2][3],\n matrix[3][3],\n ];\n\n // Solve the equation by inverting perspectiveMatrix and multiplying\n // rightHandSide by the inverse.\n const inversePerspectiveMatrix = MatrixMath.inverse(perspectiveMatrix);\n const transposedInversePerspectiveMatrix = MatrixMath.transpose(\n inversePerspectiveMatrix,\n );\n perspective = MatrixMath.multiplyVectorByMatrix(\n rightHandSide,\n transposedInversePerspectiveMatrix,\n );\n } else {\n // no perspective\n perspective[0] = perspective[1] = perspective[2] = 0;\n perspective[3] = 1;\n }\n\n // translation is simple\n for (let i = 0; i < 3; i++) {\n translation[i] = matrix[3][i];\n }\n\n // Now get scale and shear.\n // 'row' is a 3 element array of 3 component vectors\n const row = [];\n for (let i = 0; i < 3; i++) {\n row[i] = [matrix[i][0], matrix[i][1], matrix[i][2]];\n }\n\n // Compute X scale factor and normalize first row.\n scale[0] = MatrixMath.v3Length(row[0]);\n row[0] = MatrixMath.v3Normalize(row[0], scale[0]);\n\n // Compute XY shear factor and make 2nd row orthogonal to 1st.\n skew[0] = MatrixMath.v3Dot(row[0], row[1]);\n row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]);\n\n // Compute XY shear factor and make 2nd row orthogonal to 1st.\n skew[0] = MatrixMath.v3Dot(row[0], row[1]);\n row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]);\n\n // Now, compute Y scale and normalize 2nd row.\n scale[1] = MatrixMath.v3Length(row[1]);\n row[1] = MatrixMath.v3Normalize(row[1], scale[1]);\n skew[0] /= scale[1];\n\n // Compute XZ and YZ shears, orthogonalize 3rd row\n skew[1] = MatrixMath.v3Dot(row[0], row[2]);\n row[2] = MatrixMath.v3Combine(row[2], row[0], 1.0, -skew[1]);\n skew[2] = MatrixMath.v3Dot(row[1], row[2]);\n row[2] = MatrixMath.v3Combine(row[2], row[1], 1.0, -skew[2]);\n\n // Next, get Z scale and normalize 3rd row.\n scale[2] = MatrixMath.v3Length(row[2]);\n row[2] = MatrixMath.v3Normalize(row[2], scale[2]);\n skew[1] /= scale[2];\n skew[2] /= scale[2];\n\n // At this point, the matrix (in rows) is orthonormal.\n // Check for a coordinate system flip. If the determinant\n // is -1, then negate the matrix and the scaling factors.\n const pdum3 = MatrixMath.v3Cross(row[1], row[2]);\n if (MatrixMath.v3Dot(row[0], pdum3) < 0) {\n for (let i = 0; i < 3; i++) {\n scale[i] *= -1;\n row[i][0] *= -1;\n row[i][1] *= -1;\n row[i][2] *= -1;\n }\n }\n\n // Now, get the rotations out\n quaternion[0] =\n 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0));\n quaternion[1] =\n 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0));\n quaternion[2] =\n 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0));\n quaternion[3] =\n 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0));\n\n if (row[2][1] > row[1][2]) {\n quaternion[0] = -quaternion[0];\n }\n if (row[0][2] > row[2][0]) {\n quaternion[1] = -quaternion[1];\n }\n if (row[1][0] > row[0][1]) {\n quaternion[2] = -quaternion[2];\n }\n\n // correct for occasional, weird Euler synonyms for 2d rotation\n let rotationDegrees;\n if (\n quaternion[0] < 0.001 &&\n quaternion[0] >= 0 &&\n quaternion[1] < 0.001 &&\n quaternion[1] >= 0\n ) {\n // this is a 2d rotation on the z-axis\n rotationDegrees = [\n 0,\n 0,\n MatrixMath.roundTo3Places(\n (Math.atan2(row[0][1], row[0][0]) * 180) / Math.PI,\n ),\n ];\n } else {\n rotationDegrees = MatrixMath.quaternionToDegreesXYZ(\n quaternion,\n matrix,\n row,\n );\n }\n\n // expose both base data and convenience names\n return {\n rotationDegrees,\n perspective,\n quaternion,\n scale,\n skew,\n translation,\n\n rotate: rotationDegrees[2],\n rotateX: rotationDegrees[0],\n rotateY: rotationDegrees[1],\n scaleX: scale[0],\n scaleY: scale[1],\n translateX: translation[0],\n translateY: translation[1],\n };\n },\n};\n\nmodule.exports = MatrixMath;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst dummySize = {width: undefined, height: undefined};\n\nconst sizesDiffer = function(one, two) {\n one = one || dummySize;\n two = two || dummySize;\n return one !== two && (one.width !== two.width || one.height !== two.height);\n};\n\nmodule.exports = sizesDiffer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst DeprecatedImageStylePropTypes = require('../DeprecatedPropTypes/DeprecatedImageStylePropTypes');\nconst DeprecatedTextStylePropTypes = require('../DeprecatedPropTypes/DeprecatedTextStylePropTypes');\nconst DeprecatedViewStylePropTypes = require('../DeprecatedPropTypes/DeprecatedViewStylePropTypes');\n\nconst invariant = require('invariant');\n\n// Hardcoded because this is a legit case but we don't want to load it from\n// a private API. We might likely want to unify style sheet creation with how it\n// is done in the DOM so this might move into React. I know what I'm doing so\n// plz don't fire me.\nconst ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nclass StyleSheetValidation {\n static validateStyleProp(prop: string, style: Object, caller: string) {\n if (!__DEV__ || global.__RCTProfileIsProfiling) {\n return;\n }\n if (allStylePropTypes[prop] === undefined) {\n const message1 = '\"' + prop + '\" is not a valid style property.';\n const message2 =\n '\\nValid style props: ' +\n JSON.stringify(Object.keys(allStylePropTypes).sort(), null, ' ');\n styleError(message1, style, caller, message2);\n }\n const error = allStylePropTypes[prop](\n style,\n prop,\n caller,\n 'prop',\n null,\n ReactPropTypesSecret,\n );\n if (error) {\n styleError(error.message, style, caller);\n }\n }\n\n static validateStyle(name: string, styles: Object) {\n if (!__DEV__ || global.__RCTProfileIsProfiling) {\n return;\n }\n for (const prop in styles[name]) {\n StyleSheetValidation.validateStyleProp(\n prop,\n styles[name],\n 'StyleSheet ' + name,\n );\n }\n }\n\n /* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error\n * found when Flow v0.85 was deployed. To see the error, delete this comment\n * and run Flow. */\n static addValidStylePropTypes(stylePropTypes) {\n if (!__DEV__ || global.__RCTProfileIsProfiling) {\n return;\n }\n for (const key in stylePropTypes) {\n allStylePropTypes[key] = stylePropTypes[key];\n }\n }\n}\n\nconst styleError = function(message1, style, caller?, message2?) {\n invariant(\n false,\n message1 +\n '\\n' +\n (caller || '<>') +\n ': ' +\n JSON.stringify(style, null, ' ') +\n (message2 || ''),\n );\n};\n\nconst allStylePropTypes = {};\n\nif (__DEV__ && !global.__RCTProfileIsProfiling) {\n StyleSheetValidation.addValidStylePropTypes(DeprecatedImageStylePropTypes);\n StyleSheetValidation.addValidStylePropTypes(DeprecatedTextStylePropTypes);\n StyleSheetValidation.addValidStylePropTypes(DeprecatedViewStylePropTypes);\n}\n\nmodule.exports = StyleSheetValidation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {\n DangerouslyImpreciseStyle,\n DangerouslyImpreciseStyleProp,\n} from './StyleSheet';\n\nfunction flattenStyle(\n style: ?DangerouslyImpreciseStyleProp,\n): ?DangerouslyImpreciseStyle {\n if (style === null || typeof style !== 'object') {\n return undefined;\n }\n\n if (!Array.isArray(style)) {\n return style;\n }\n\n const result = {};\n for (let i = 0, styleLength = style.length; i < styleLength; ++i) {\n const computedStyle = flattenStyle(style[i]);\n if (computedStyle) {\n for (const key in computedStyle) {\n result[key] = computedStyle[key];\n }\n }\n }\n return result;\n}\n\nmodule.exports = flattenStyle;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {ViewProps} from './ViewPropTypes';\nimport type {ViewNativeComponentType} from './ViewNativeComponent';\n\nexport type Props = ViewProps;\n\n/**\n * The most fundamental component for building a UI, View is a container that\n * supports layout with flexbox, style, some touch handling, and accessibility\n * controls.\n *\n * @see http://facebook.github.io/react-native/docs/view.html\n */\nmodule.exports = (require('./ViewNativeComponent')\n .default: ViewNativeComponentType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst ReactNativeViewViewConfigAndroid = require('./ReactNativeViewViewConfigAndroid');\n\nconst registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\n\nimport * as React from 'react';\n\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport type {ViewProps} from './ViewPropTypes';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\nexport type ViewNativeComponentType = HostComponent;\n\nlet NativeViewComponent;\nlet viewConfig:\n | {...}\n | {|\n bubblingEventTypes?: $ReadOnly<{\n [eventName: string]: $ReadOnly<{|\n phasedRegistrationNames: $ReadOnly<{|\n bubbled: string,\n captured: string,\n |}>,\n |}>,\n ...,\n }>,\n directEventTypes?: $ReadOnly<{\n [eventName: string]: $ReadOnly<{|registrationName: string|}>,\n ...,\n }>,\n uiViewClassName: string,\n validAttributes?: {\n [propName: string]:\n | true\n | $ReadOnly<{|\n diff?: (arg1: any, arg2: any) => boolean,\n process?: (arg1: any) => any,\n |}>,\n ...,\n },\n |};\n\n// Only use the JS view config in DEV\nif (__DEV__) {\n // On Android, View extends the base component with additional view-only props\n // On iOS, the base component is View\n if (Platform.OS === 'android') {\n viewConfig = ReactNativeViewViewConfigAndroid;\n registerGeneratedViewConfig('RCTView', ReactNativeViewViewConfigAndroid);\n } else {\n viewConfig = {};\n registerGeneratedViewConfig('RCTView', {uiViewClassName: 'RCTView'});\n }\n\n NativeViewComponent = 'RCTView';\n} else {\n NativeViewComponent = requireNativeComponent('RCTView');\n}\n\nexport const __INTERNAL_VIEW_CONFIG = viewConfig;\n\ninterface NativeCommands {\n +hotspotUpdate: (\n viewRef: React.ElementRef>,\n x: number,\n y: number,\n ) => void;\n +setPressed: (\n viewRef: React.ElementRef>,\n pressed: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['hotspotUpdate', 'setPressed'],\n});\n\nexport default ((NativeViewComponent: any): ViewNativeComponentType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport {dispatchCommand} from '../../Libraries/Renderer/shims/ReactNative';\n\ntype Options = $ReadOnly<{|\n supportedCommands: $ReadOnlyArray,\n|}>;\n\nfunction codegenNativeCommands(options: Options<$Keys>): T {\n const commandObj = {};\n\n options.supportedCommands.forEach(command => {\n commandObj[command] = (ref, ...args) => {\n dispatchCommand(ref, command, args);\n };\n });\n\n return ((commandObj: any): T);\n}\n\nexport default codegenNativeCommands;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type {ReactNativeType} from './ReactNativeTypes';\n\nlet ReactNative;\n\nif (__DEV__) {\n ReactNative = require('../implementations/ReactNativeRenderer-dev');\n} else {\n ReactNative = require('../implementations/ReactNativeRenderer-prod');\n}\n\nmodule.exports = (ReactNative: ReactNativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @noflow\n * @providesModule ReactNativeRenderer-prod\n * @preventMunge\n * @generated\n */\n\n\"use strict\";\nrequire(\"react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore\");\nvar ReactNativePrivateInterface = require(\"react-native/Libraries/ReactPrivate/ReactNativePrivateInterface\"),\n React = require(\"react\"),\n Scheduler = require(\"scheduler\");\nvar eventPluginOrder = null,\n namesToPlugins = {};\nfunction recomputePluginOrdering() {\n if (eventPluginOrder)\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName],\n pluginIndex = eventPluginOrder.indexOf(pluginName);\n if (!(-1 < pluginIndex))\n throw Error(\n \"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `\" +\n pluginName +\n \"`.\"\n );\n if (!plugins[pluginIndex]) {\n if (!pluginModule.extractEvents)\n throw Error(\n \"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `\" +\n pluginName +\n \"` does not.\"\n );\n plugins[pluginIndex] = pluginModule;\n pluginIndex = pluginModule.eventTypes;\n for (var eventName in pluginIndex) {\n var JSCompiler_inline_result = void 0;\n var dispatchConfig = pluginIndex[eventName],\n pluginModule$jscomp$0 = pluginModule,\n eventName$jscomp$0 = eventName;\n if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))\n throw Error(\n \"EventPluginHub: More than one plugin attempted to publish the same event name, `\" +\n eventName$jscomp$0 +\n \"`.\"\n );\n eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n if (phasedRegistrationNames) {\n for (JSCompiler_inline_result in phasedRegistrationNames)\n phasedRegistrationNames.hasOwnProperty(\n JSCompiler_inline_result\n ) &&\n publishRegistrationName(\n phasedRegistrationNames[JSCompiler_inline_result],\n pluginModule$jscomp$0,\n eventName$jscomp$0\n );\n JSCompiler_inline_result = !0;\n } else\n dispatchConfig.registrationName\n ? (publishRegistrationName(\n dispatchConfig.registrationName,\n pluginModule$jscomp$0,\n eventName$jscomp$0\n ),\n (JSCompiler_inline_result = !0))\n : (JSCompiler_inline_result = !1);\n if (!JSCompiler_inline_result)\n throw Error(\n \"EventPluginRegistry: Failed to publish event `\" +\n eventName +\n \"` for plugin `\" +\n pluginName +\n \"`.\"\n );\n }\n }\n }\n}\nfunction publishRegistrationName(registrationName, pluginModule) {\n if (registrationNameModules[registrationName])\n throw Error(\n \"EventPluginHub: More than one plugin attempted to publish the same registration name, `\" +\n registrationName +\n \"`.\"\n );\n registrationNameModules[registrationName] = pluginModule;\n}\nvar plugins = [],\n eventNameDispatchConfigs = {},\n registrationNameModules = {};\nfunction invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n}\nvar hasError = !1,\n caughtError = null,\n hasRethrowError = !1,\n rethrowError = null,\n reporter = {\n onError: function(error) {\n hasError = !0;\n caughtError = error;\n }\n };\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = !1;\n caughtError = null;\n invokeGuardedCallbackImpl.apply(reporter, arguments);\n}\nfunction invokeGuardedCallbackAndCatchFirstError(\n name,\n func,\n context,\n a,\n b,\n c,\n d,\n e,\n f\n) {\n invokeGuardedCallback.apply(this, arguments);\n if (hasError) {\n if (hasError) {\n var error = caughtError;\n hasError = !1;\n caughtError = null;\n } else\n throw Error(\n \"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.\"\n );\n hasRethrowError || ((hasRethrowError = !0), (rethrowError = error));\n }\n}\nvar getFiberCurrentPropsFromNode = null,\n getInstanceFromNode = null,\n getNodeFromInstance = null;\nfunction executeDispatch(event, listener, inst) {\n var type = event.type || \"unknown-event\";\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event);\n event.currentTarget = null;\n}\nfunction executeDirectDispatch(event) {\n var dispatchListener = event._dispatchListeners,\n dispatchInstance = event._dispatchInstances;\n if (Array.isArray(dispatchListener))\n throw Error(\"executeDirectDispatch(...): Invalid `event`.\");\n event.currentTarget = dispatchListener\n ? getNodeFromInstance(dispatchInstance)\n : null;\n dispatchListener = dispatchListener ? dispatchListener(event) : null;\n event.currentTarget = null;\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n return dispatchListener;\n}\nfunction accumulateInto(current, next) {\n if (null == next)\n throw Error(\n \"accumulateInto(...): Accumulated items must not be null or undefined.\"\n );\n if (null == current) return next;\n if (Array.isArray(current)) {\n if (Array.isArray(next)) return current.push.apply(current, next), current;\n current.push(next);\n return current;\n }\n return Array.isArray(next) ? [current].concat(next) : [current, next];\n}\nfunction forEachAccumulated(arr, cb, scope) {\n Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr);\n}\nvar eventQueue = null;\nfunction executeDispatchesAndReleaseTopLevel(e) {\n if (e) {\n var dispatchListeners = e._dispatchListeners,\n dispatchInstances = e._dispatchInstances;\n if (Array.isArray(dispatchListeners))\n for (\n var i = 0;\n i < dispatchListeners.length && !e.isPropagationStopped();\n i++\n )\n executeDispatch(e, dispatchListeners[i], dispatchInstances[i]);\n else\n dispatchListeners &&\n executeDispatch(e, dispatchListeners, dispatchInstances);\n e._dispatchListeners = null;\n e._dispatchInstances = null;\n e.isPersistent() || e.constructor.release(e);\n }\n}\nvar injection = {\n injectEventPluginOrder: function(injectedEventPluginOrder) {\n if (eventPluginOrder)\n throw Error(\n \"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.\"\n );\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n },\n injectEventPluginsByName: function(injectedNamesToPlugins) {\n var isOrderingDirty = !1,\n pluginName;\n for (pluginName in injectedNamesToPlugins)\n if (injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n var pluginModule = injectedNamesToPlugins[pluginName];\n if (\n !namesToPlugins.hasOwnProperty(pluginName) ||\n namesToPlugins[pluginName] !== pluginModule\n ) {\n if (namesToPlugins[pluginName])\n throw Error(\n \"EventPluginRegistry: Cannot inject two different event plugins using the same name, `\" +\n pluginName +\n \"`.\"\n );\n namesToPlugins[pluginName] = pluginModule;\n isOrderingDirty = !0;\n }\n }\n isOrderingDirty && recomputePluginOrdering();\n }\n};\nfunction getListener(inst, registrationName) {\n var listener = inst.stateNode;\n if (!listener) return null;\n var props = getFiberCurrentPropsFromNode(listener);\n if (!props) return null;\n listener = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n if (listener && \"function\" !== typeof listener)\n throw Error(\n \"Expected `\" +\n registrationName +\n \"` listener to be a function, instead got a value of `\" +\n typeof listener +\n \"` type.\"\n );\n return listener;\n}\nfunction getParent(inst) {\n do inst = inst.return;\n while (inst && 5 !== inst.tag);\n return inst ? inst : null;\n}\nfunction traverseTwoPhase(inst, fn, arg) {\n for (var path = []; inst; ) path.push(inst), (inst = getParent(inst));\n for (inst = path.length; 0 < inst--; ) fn(path[inst], \"captured\", arg);\n for (inst = 0; inst < path.length; inst++) fn(path[inst], \"bubbled\", arg);\n}\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n if (\n (phase = getListener(\n inst,\n event.dispatchConfig.phasedRegistrationNames[phase]\n ))\n )\n (event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n phase\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n ));\n}\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n event &&\n event.dispatchConfig.phasedRegistrationNames &&\n traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n}\nfunction accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n targetInst = targetInst ? getParent(targetInst) : null;\n traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event);\n }\n}\nfunction accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n var inst = event._targetInst;\n if (inst && event && event.dispatchConfig.registrationName) {\n var listener = getListener(inst, event.dispatchConfig.registrationName);\n listener &&\n ((event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n listener\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n )));\n }\n }\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction SyntheticEvent(\n dispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n) {\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n dispatchConfig = this.constructor.Interface;\n for (var propName in dispatchConfig)\n dispatchConfig.hasOwnProperty(propName) &&\n ((targetInst = dispatchConfig[propName])\n ? (this[propName] = targetInst(nativeEvent))\n : \"target\" === propName\n ? (this.target = nativeEventTarget)\n : (this[propName] = nativeEvent[propName]));\n this.isDefaultPrevented = (null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue)\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n}\nObject.assign(SyntheticEvent.prototype, {\n preventDefault: function() {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function() {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble && (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function() {\n this.isPersistent = functionThatReturnsTrue;\n },\n isPersistent: functionThatReturnsFalse,\n destructor: function() {\n var Interface = this.constructor.Interface,\n propName;\n for (propName in Interface) this[propName] = null;\n this.nativeEvent = this._targetInst = this.dispatchConfig = null;\n this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse;\n this._dispatchInstances = this._dispatchListeners = null;\n }\n});\nSyntheticEvent.Interface = {\n type: null,\n target: null,\n currentTarget: function() {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function(event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\nSyntheticEvent.extend = function(Interface) {\n function E() {}\n function Class() {\n return Super.apply(this, arguments);\n }\n var Super = this;\n E.prototype = Super.prototype;\n var prototype = new E();\n Object.assign(prototype, Class.prototype);\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n Class.Interface = Object.assign({}, Super.Interface, Interface);\n Class.extend = Super.extend;\n addEventPoolingTo(Class);\n return Class;\n};\naddEventPoolingTo(SyntheticEvent);\nfunction getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {\n if (this.eventPool.length) {\n var instance = this.eventPool.pop();\n this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n return instance;\n }\n return new this(dispatchConfig, targetInst, nativeEvent, nativeInst);\n}\nfunction releasePooledEvent(event) {\n if (!(event instanceof this))\n throw Error(\n \"Trying to release an event instance into a pool of a different type.\"\n );\n event.destructor();\n 10 > this.eventPool.length && this.eventPool.push(event);\n}\nfunction addEventPoolingTo(EventConstructor) {\n EventConstructor.eventPool = [];\n EventConstructor.getPooled = getPooledEvent;\n EventConstructor.release = releasePooledEvent;\n}\nvar ResponderSyntheticEvent = SyntheticEvent.extend({\n touchHistory: function() {\n return null;\n }\n});\nfunction isStartish(topLevelType) {\n return \"topTouchStart\" === topLevelType;\n}\nfunction isMoveish(topLevelType) {\n return \"topTouchMove\" === topLevelType;\n}\nvar startDependencies = [\"topTouchStart\"],\n moveDependencies = [\"topTouchMove\"],\n endDependencies = [\"topTouchCancel\", \"topTouchEnd\"],\n touchBank = [],\n touchHistory = {\n touchBank: touchBank,\n numberActiveTouches: 0,\n indexOfSingleActiveTouch: -1,\n mostRecentTimeStamp: 0\n };\nfunction timestampForTouch(touch) {\n return touch.timeStamp || touch.timestamp;\n}\nfunction getTouchIdentifier(_ref) {\n _ref = _ref.identifier;\n if (null == _ref) throw Error(\"Touch object is missing identifier.\");\n return _ref;\n}\nfunction recordTouchStart(touch) {\n var identifier = getTouchIdentifier(touch),\n touchRecord = touchBank[identifier];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.startPageX = touch.pageX),\n (touchRecord.startPageY = touch.pageY),\n (touchRecord.startTimeStamp = timestampForTouch(touch)),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchRecord.previousPageX = touch.pageX),\n (touchRecord.previousPageY = touch.pageY),\n (touchRecord.previousTimeStamp = timestampForTouch(touch)))\n : ((touchRecord = {\n touchActive: !0,\n startPageX: touch.pageX,\n startPageY: touch.pageY,\n startTimeStamp: timestampForTouch(touch),\n currentPageX: touch.pageX,\n currentPageY: touch.pageY,\n currentTimeStamp: timestampForTouch(touch),\n previousPageX: touch.pageX,\n previousPageY: touch.pageY,\n previousTimeStamp: timestampForTouch(touch)\n }),\n (touchBank[identifier] = touchRecord));\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n}\nfunction recordTouchMove(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.warn(\n \"Cannot record touch move without a touch start.\\nTouch Move: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction recordTouchEnd(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !1),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.warn(\n \"Cannot record touch end without a touch start.\\nTouch End: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction printTouch(touch) {\n return JSON.stringify({\n identifier: touch.identifier,\n pageX: touch.pageX,\n pageY: touch.pageY,\n timestamp: timestampForTouch(touch)\n });\n}\nfunction printTouchBank() {\n var printed = JSON.stringify(touchBank.slice(0, 20));\n 20 < touchBank.length &&\n (printed += \" (original size: \" + touchBank.length + \")\");\n return printed;\n}\nvar ResponderTouchHistoryStore = {\n recordTouchTrack: function(topLevelType, nativeEvent) {\n if (isMoveish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchMove);\n else if (isStartish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchStart),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches &&\n (touchHistory.indexOfSingleActiveTouch =\n nativeEvent.touches[0].identifier);\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (\n (nativeEvent.changedTouches.forEach(recordTouchEnd),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches)\n )\n for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++)\n if (\n ((nativeEvent = touchBank[topLevelType]),\n null != nativeEvent && nativeEvent.touchActive)\n ) {\n touchHistory.indexOfSingleActiveTouch = topLevelType;\n break;\n }\n },\n touchHistory: touchHistory\n};\nfunction accumulate(current, next) {\n if (null == next)\n throw Error(\n \"accumulate(...): Accumulated items must not be null or undefined.\"\n );\n return null == current\n ? next\n : Array.isArray(current)\n ? current.concat(next)\n : Array.isArray(next)\n ? [current].concat(next)\n : [current, next];\n}\nvar responderInst = null,\n trackedTouchCount = 0;\nfunction changeResponder(nextResponderInst, blockHostResponder) {\n var oldResponderInst = responderInst;\n responderInst = nextResponderInst;\n if (null !== ResponderEventPlugin.GlobalResponderHandler)\n ResponderEventPlugin.GlobalResponderHandler.onChange(\n oldResponderInst,\n nextResponderInst,\n blockHostResponder\n );\n}\nvar eventTypes = {\n startShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onStartShouldSetResponder\",\n captured: \"onStartShouldSetResponderCapture\"\n },\n dependencies: startDependencies\n },\n scrollShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onScrollShouldSetResponder\",\n captured: \"onScrollShouldSetResponderCapture\"\n },\n dependencies: [\"topScroll\"]\n },\n selectionChangeShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onSelectionChangeShouldSetResponder\",\n captured: \"onSelectionChangeShouldSetResponderCapture\"\n },\n dependencies: [\"topSelectionChange\"]\n },\n moveShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onMoveShouldSetResponder\",\n captured: \"onMoveShouldSetResponderCapture\"\n },\n dependencies: moveDependencies\n },\n responderStart: {\n registrationName: \"onResponderStart\",\n dependencies: startDependencies\n },\n responderMove: {\n registrationName: \"onResponderMove\",\n dependencies: moveDependencies\n },\n responderEnd: {\n registrationName: \"onResponderEnd\",\n dependencies: endDependencies\n },\n responderRelease: {\n registrationName: \"onResponderRelease\",\n dependencies: endDependencies\n },\n responderTerminationRequest: {\n registrationName: \"onResponderTerminationRequest\",\n dependencies: []\n },\n responderGrant: { registrationName: \"onResponderGrant\", dependencies: [] },\n responderReject: {\n registrationName: \"onResponderReject\",\n dependencies: []\n },\n responderTerminate: {\n registrationName: \"onResponderTerminate\",\n dependencies: []\n }\n },\n ResponderEventPlugin = {\n _getResponder: function() {\n return responderInst;\n },\n eventTypes: eventTypes,\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (isStartish(topLevelType)) trackedTouchCount += 1;\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (0 <= trackedTouchCount) --trackedTouchCount;\n else\n return (\n console.warn(\n \"Ended a touch event which was not counted in `trackedTouchCount`.\"\n ),\n null\n );\n ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent);\n if (\n targetInst &&\n ((\"topScroll\" === topLevelType && !nativeEvent.responderIgnoreScroll) ||\n (0 < trackedTouchCount && \"topSelectionChange\" === topLevelType) ||\n isStartish(topLevelType) ||\n isMoveish(topLevelType))\n ) {\n var shouldSetEventType = isStartish(topLevelType)\n ? eventTypes.startShouldSetResponder\n : isMoveish(topLevelType)\n ? eventTypes.moveShouldSetResponder\n : \"topSelectionChange\" === topLevelType\n ? eventTypes.selectionChangeShouldSetResponder\n : eventTypes.scrollShouldSetResponder;\n if (responderInst)\n b: {\n var JSCompiler_temp = responderInst;\n for (\n var depthA = 0, tempA = JSCompiler_temp;\n tempA;\n tempA = getParent(tempA)\n )\n depthA++;\n tempA = 0;\n for (var tempB = targetInst; tempB; tempB = getParent(tempB))\n tempA++;\n for (; 0 < depthA - tempA; )\n (JSCompiler_temp = getParent(JSCompiler_temp)), depthA--;\n for (; 0 < tempA - depthA; )\n (targetInst = getParent(targetInst)), tempA--;\n for (; depthA--; ) {\n if (\n JSCompiler_temp === targetInst ||\n JSCompiler_temp === targetInst.alternate\n )\n break b;\n JSCompiler_temp = getParent(JSCompiler_temp);\n targetInst = getParent(targetInst);\n }\n JSCompiler_temp = null;\n }\n else JSCompiler_temp = targetInst;\n targetInst = JSCompiler_temp === responderInst;\n JSCompiler_temp = ResponderSyntheticEvent.getPooled(\n shouldSetEventType,\n JSCompiler_temp,\n nativeEvent,\n nativeEventTarget\n );\n JSCompiler_temp.touchHistory = ResponderTouchHistoryStore.touchHistory;\n targetInst\n ? forEachAccumulated(\n JSCompiler_temp,\n accumulateTwoPhaseDispatchesSingleSkipTarget\n )\n : forEachAccumulated(\n JSCompiler_temp,\n accumulateTwoPhaseDispatchesSingle\n );\n b: {\n shouldSetEventType = JSCompiler_temp._dispatchListeners;\n targetInst = JSCompiler_temp._dispatchInstances;\n if (Array.isArray(shouldSetEventType))\n for (\n depthA = 0;\n depthA < shouldSetEventType.length &&\n !JSCompiler_temp.isPropagationStopped();\n depthA++\n ) {\n if (\n shouldSetEventType[depthA](JSCompiler_temp, targetInst[depthA])\n ) {\n shouldSetEventType = targetInst[depthA];\n break b;\n }\n }\n else if (\n shouldSetEventType &&\n shouldSetEventType(JSCompiler_temp, targetInst)\n ) {\n shouldSetEventType = targetInst;\n break b;\n }\n shouldSetEventType = null;\n }\n JSCompiler_temp._dispatchInstances = null;\n JSCompiler_temp._dispatchListeners = null;\n JSCompiler_temp.isPersistent() ||\n JSCompiler_temp.constructor.release(JSCompiler_temp);\n if (shouldSetEventType && shouldSetEventType !== responderInst)\n if (\n ((JSCompiler_temp = ResponderSyntheticEvent.getPooled(\n eventTypes.responderGrant,\n shouldSetEventType,\n nativeEvent,\n nativeEventTarget\n )),\n (JSCompiler_temp.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n JSCompiler_temp,\n accumulateDirectDispatchesSingle\n ),\n (targetInst = !0 === executeDirectDispatch(JSCompiler_temp)),\n responderInst)\n )\n if (\n ((depthA = ResponderSyntheticEvent.getPooled(\n eventTypes.responderTerminationRequest,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (depthA.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(depthA, accumulateDirectDispatchesSingle),\n (tempA =\n !depthA._dispatchListeners || executeDirectDispatch(depthA)),\n depthA.isPersistent() || depthA.constructor.release(depthA),\n tempA)\n ) {\n depthA = ResponderSyntheticEvent.getPooled(\n eventTypes.responderTerminate,\n responderInst,\n nativeEvent,\n nativeEventTarget\n );\n depthA.touchHistory = ResponderTouchHistoryStore.touchHistory;\n forEachAccumulated(depthA, accumulateDirectDispatchesSingle);\n var JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n [JSCompiler_temp, depthA]\n );\n changeResponder(shouldSetEventType, targetInst);\n } else\n (shouldSetEventType = ResponderSyntheticEvent.getPooled(\n eventTypes.responderReject,\n shouldSetEventType,\n nativeEvent,\n nativeEventTarget\n )),\n (shouldSetEventType.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n shouldSetEventType,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n shouldSetEventType\n ));\n else\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n JSCompiler_temp\n )),\n changeResponder(shouldSetEventType, targetInst);\n else JSCompiler_temp$jscomp$0 = null;\n } else JSCompiler_temp$jscomp$0 = null;\n shouldSetEventType = responderInst && isStartish(topLevelType);\n JSCompiler_temp = responderInst && isMoveish(topLevelType);\n targetInst =\n responderInst &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType);\n if (\n (shouldSetEventType = shouldSetEventType\n ? eventTypes.responderStart\n : JSCompiler_temp\n ? eventTypes.responderMove\n : targetInst\n ? eventTypes.responderEnd\n : null)\n )\n (shouldSetEventType = ResponderSyntheticEvent.getPooled(\n shouldSetEventType,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (shouldSetEventType.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n shouldSetEventType,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n shouldSetEventType\n ));\n shouldSetEventType = responderInst && \"topTouchCancel\" === topLevelType;\n if (\n (topLevelType =\n responderInst &&\n !shouldSetEventType &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType))\n )\n a: {\n if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length)\n for (\n JSCompiler_temp = 0;\n JSCompiler_temp < topLevelType.length;\n JSCompiler_temp++\n )\n if (\n ((targetInst = topLevelType[JSCompiler_temp].target),\n null !== targetInst &&\n void 0 !== targetInst &&\n 0 !== targetInst)\n ) {\n depthA = getInstanceFromNode(targetInst);\n b: {\n for (targetInst = responderInst; depthA; ) {\n if (\n targetInst === depthA ||\n targetInst === depthA.alternate\n ) {\n targetInst = !0;\n break b;\n }\n depthA = getParent(depthA);\n }\n targetInst = !1;\n }\n if (targetInst) {\n topLevelType = !1;\n break a;\n }\n }\n topLevelType = !0;\n }\n if (\n (topLevelType = shouldSetEventType\n ? eventTypes.responderTerminate\n : topLevelType\n ? eventTypes.responderRelease\n : null)\n )\n (nativeEvent = ResponderSyntheticEvent.getPooled(\n topLevelType,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n nativeEvent\n )),\n changeResponder(null);\n return JSCompiler_temp$jscomp$0;\n },\n GlobalResponderHandler: null,\n injection: {\n injectGlobalResponderHandler: function(GlobalResponderHandler) {\n ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler;\n }\n }\n },\n customBubblingEventTypes =\n ReactNativePrivateInterface.ReactNativeViewConfigRegistry\n .customBubblingEventTypes,\n customDirectEventTypes =\n ReactNativePrivateInterface.ReactNativeViewConfigRegistry\n .customDirectEventTypes;\ninjection.injectEventPluginOrder([\n \"ResponderEventPlugin\",\n \"ReactNativeBridgeEventPlugin\"\n]);\ninjection.injectEventPluginsByName({\n ResponderEventPlugin: ResponderEventPlugin,\n ReactNativeBridgeEventPlugin: {\n eventTypes: {},\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (null == targetInst) return null;\n var bubbleDispatchConfig = customBubblingEventTypes[topLevelType],\n directDispatchConfig = customDirectEventTypes[topLevelType];\n if (!bubbleDispatchConfig && !directDispatchConfig)\n throw Error(\n 'Unsupported top level event type \"' + topLevelType + '\" dispatched'\n );\n topLevelType = SyntheticEvent.getPooled(\n bubbleDispatchConfig || directDispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n );\n if (bubbleDispatchConfig)\n forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);\n else if (directDispatchConfig)\n forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);\n else return null;\n return topLevelType;\n }\n }\n});\nvar instanceCache = new Map(),\n instanceProps = new Map();\nfunction getInstanceFromTag(tag) {\n return instanceCache.get(tag) || null;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n if (getInstanceFromNode(target))\n throw Error(\n \"setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.\"\n );\n}\nfunction batchedUpdatesImpl(fn, bookkeeping) {\n return fn(bookkeeping);\n}\nfunction flushDiscreteUpdatesImpl() {}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates(fn, bookkeeping) {\n if (isInsideEventHandler) return fn(bookkeeping);\n isInsideEventHandler = !0;\n try {\n return batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n if (\n ((isInsideEventHandler = !1),\n null !== restoreTarget || null !== restoreQueue)\n )\n if (\n (flushDiscreteUpdatesImpl(),\n restoreTarget &&\n ((bookkeeping = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(bookkeeping),\n fn))\n )\n for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++)\n restoreStateOfTarget(fn[bookkeeping]);\n }\n}\nvar EMPTY_NATIVE_EVENT = {};\nfunction _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) {\n var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT,\n inst = getInstanceFromTag(rootNodeID),\n target = null;\n target = nativeEvent.target;\n batchedUpdates(function() {\n var events = target;\n for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) {\n var possiblePlugin = plugins[i];\n possiblePlugin &&\n (possiblePlugin = possiblePlugin.extractEvents(\n topLevelType,\n inst,\n nativeEvent,\n events,\n 1\n )) &&\n (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin));\n }\n events = events$jscomp$0;\n null !== events && (eventQueue = accumulateInto(eventQueue, events));\n events = eventQueue;\n eventQueue = null;\n if (events) {\n forEachAccumulated(events, executeDispatchesAndReleaseTopLevel);\n if (eventQueue)\n throw Error(\n \"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.\"\n );\n if (hasRethrowError)\n throw ((events = rethrowError),\n (hasRethrowError = !1),\n (rethrowError = null),\n events);\n }\n });\n}\nReactNativePrivateInterface.RCTEventEmitter.register({\n receiveEvent: function(rootNodeID, topLevelType, nativeEventParam) {\n _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam);\n },\n receiveTouches: function(eventTopLevelType, touches, changedIndices) {\n if (\n \"topTouchEnd\" === eventTopLevelType ||\n \"topTouchCancel\" === eventTopLevelType\n ) {\n var JSCompiler_temp = [];\n for (var i = 0; i < changedIndices.length; i++) {\n var index = changedIndices[i];\n JSCompiler_temp.push(touches[index]);\n touches[index] = null;\n }\n for (i = changedIndices = 0; i < touches.length; i++)\n (index = touches[i]),\n null !== index && (touches[changedIndices++] = index);\n touches.length = changedIndices;\n } else\n for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++)\n JSCompiler_temp.push(touches[changedIndices[i]]);\n for (\n changedIndices = 0;\n changedIndices < JSCompiler_temp.length;\n changedIndices++\n ) {\n i = JSCompiler_temp[changedIndices];\n i.changedTouches = JSCompiler_temp;\n i.touches = touches;\n index = null;\n var target = i.target;\n null === target || void 0 === target || 1 > target || (index = target);\n _receiveRootNodeIDEvent(index, eventTopLevelType, i);\n }\n }\n});\ngetFiberCurrentPropsFromNode = function(stateNode) {\n return instanceProps.get(stateNode._nativeTag) || null;\n};\ngetInstanceFromNode = getInstanceFromTag;\ngetNodeFromInstance = function(inst) {\n var _tag = inst.stateNode._nativeTag;\n void 0 === _tag && (_tag = inst.stateNode.canonical._nativeTag);\n if (!_tag) throw Error(\"All native instances should have a tag.\");\n return _tag;\n};\nResponderEventPlugin.injection.injectGlobalResponderHandler({\n onChange: function(from, to, blockNativeResponder) {\n null !== to\n ? ReactNativePrivateInterface.UIManager.setJSResponder(\n to.stateNode._nativeTag,\n blockNativeResponder\n )\n : ReactNativePrivateInterface.UIManager.clearJSResponder();\n }\n});\nvar ReactSharedInternals =\n React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\nReactSharedInternals.hasOwnProperty(\"ReactCurrentDispatcher\") ||\n (ReactSharedInternals.ReactCurrentDispatcher = { current: null });\nReactSharedInternals.hasOwnProperty(\"ReactCurrentBatchConfig\") ||\n (ReactSharedInternals.ReactCurrentBatchConfig = { suspense: null });\nvar hasSymbol = \"function\" === typeof Symbol && Symbol.for,\n REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for(\"react.element\") : 60103,\n REACT_PORTAL_TYPE = hasSymbol ? Symbol.for(\"react.portal\") : 60106,\n REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for(\"react.fragment\") : 60107,\n REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for(\"react.strict_mode\") : 60108,\n REACT_PROFILER_TYPE = hasSymbol ? Symbol.for(\"react.profiler\") : 60114,\n REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for(\"react.provider\") : 60109,\n REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for(\"react.context\") : 60110,\n REACT_CONCURRENT_MODE_TYPE = hasSymbol\n ? Symbol.for(\"react.concurrent_mode\")\n : 60111,\n REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for(\"react.forward_ref\") : 60112,\n REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for(\"react.suspense\") : 60113,\n REACT_SUSPENSE_LIST_TYPE = hasSymbol\n ? Symbol.for(\"react.suspense_list\")\n : 60120,\n REACT_MEMO_TYPE = hasSymbol ? Symbol.for(\"react.memo\") : 60115,\n REACT_LAZY_TYPE = hasSymbol ? Symbol.for(\"react.lazy\") : 60116;\nhasSymbol && Symbol.for(\"react.fundamental\");\nhasSymbol && Symbol.for(\"react.responder\");\nhasSymbol && Symbol.for(\"react.scope\");\nvar MAYBE_ITERATOR_SYMBOL = \"function\" === typeof Symbol && Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nfunction initializeLazyComponentType(lazyComponent) {\n if (-1 === lazyComponent._status) {\n lazyComponent._status = 0;\n var ctor = lazyComponent._ctor;\n ctor = ctor();\n lazyComponent._result = ctor;\n ctor.then(\n function(moduleObject) {\n 0 === lazyComponent._status &&\n ((moduleObject = moduleObject.default),\n (lazyComponent._status = 1),\n (lazyComponent._result = moduleObject));\n },\n function(error) {\n 0 === lazyComponent._status &&\n ((lazyComponent._status = 2), (lazyComponent._result = error));\n }\n );\n }\n}\nfunction getComponentName(type) {\n if (null == type) return null;\n if (\"function\" === typeof type) return type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return \"Context.Consumer\";\n case REACT_PROVIDER_TYPE:\n return \"Context.Provider\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n innerType = innerType.displayName || innerType.name || \"\";\n return (\n type.displayName ||\n (\"\" !== innerType ? \"ForwardRef(\" + innerType + \")\" : \"ForwardRef\")\n );\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n if ((type = 1 === type._status ? type._result : null))\n return getComponentName(type);\n }\n return null;\n}\nfunction getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.effectTag & 1026) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n}\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber)\n throw Error(\"Unable to find node on an unmounted component.\");\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n alternate = getNearestMountedFiber(fiber);\n if (null === alternate)\n throw Error(\"Unable to find node on an unmounted component.\");\n return alternate !== fiber ? null : fiber;\n }\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return;\n if (null === parentA) break;\n var parentB = parentA.alternate;\n if (null === parentB) {\n b = parentA.return;\n if (null !== b) {\n a = b;\n continue;\n }\n break;\n }\n if (parentA.child === parentB.child) {\n for (parentB = parentA.child; parentB; ) {\n if (parentB === a) return assertIsMounted(parentA), fiber;\n if (parentB === b) return assertIsMounted(parentA), alternate;\n parentB = parentB.sibling;\n }\n throw Error(\"Unable to find node on an unmounted component.\");\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n for (var didFindChild = !1, _child = parentA.child; _child; ) {\n if (_child === a) {\n didFindChild = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (_child === b) {\n didFindChild = !0;\n b = parentA;\n a = parentB;\n break;\n }\n _child = _child.sibling;\n }\n if (!didFindChild) {\n for (_child = parentB.child; _child; ) {\n if (_child === a) {\n didFindChild = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (_child === b) {\n didFindChild = !0;\n b = parentB;\n a = parentA;\n break;\n }\n _child = _child.sibling;\n }\n if (!didFindChild)\n throw Error(\n \"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\"\n );\n }\n }\n if (a.alternate !== b)\n throw Error(\n \"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n if (3 !== a.tag)\n throw Error(\"Unable to find node on an unmounted component.\");\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiber(parent) {\n parent = findCurrentFiberUsingSlowPath(parent);\n if (!parent) return null;\n for (var node = parent; ; ) {\n if (5 === node.tag || 6 === node.tag) return node;\n if (node.child) (node.child.return = node), (node = node.child);\n else {\n if (node === parent) break;\n for (; !node.sibling; ) {\n if (!node.return || node.return === parent) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n return null;\n}\nvar emptyObject = {},\n removedKeys = null,\n removedKeyCount = 0,\n deepDifferOptions = { unsafelyIgnoreFunctions: !0 };\nfunction defaultDiffer(prevProp, nextProp) {\n return \"object\" !== typeof nextProp || null === nextProp\n ? !0\n : ReactNativePrivateInterface.deepDiffer(\n prevProp,\n nextProp,\n deepDifferOptions\n );\n}\nfunction restoreDeletedValuesInNestedArray(\n updatePayload,\n node,\n validAttributes\n) {\n if (Array.isArray(node))\n for (var i = node.length; i-- && 0 < removedKeyCount; )\n restoreDeletedValuesInNestedArray(\n updatePayload,\n node[i],\n validAttributes\n );\n else if (node && 0 < removedKeyCount)\n for (i in removedKeys)\n if (removedKeys[i]) {\n var nextProp = node[i];\n if (void 0 !== nextProp) {\n var attributeConfig = validAttributes[i];\n if (attributeConfig) {\n \"function\" === typeof nextProp && (nextProp = !0);\n \"undefined\" === typeof nextProp && (nextProp = null);\n if (\"object\" !== typeof attributeConfig)\n updatePayload[i] = nextProp;\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (nextProp =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[i] = nextProp);\n removedKeys[i] = !1;\n removedKeyCount--;\n }\n }\n }\n}\nfunction diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n validAttributes\n) {\n if (!updatePayload && prevProp === nextProp) return updatePayload;\n if (!prevProp || !nextProp)\n return nextProp\n ? addNestedProperty(updatePayload, nextProp, validAttributes)\n : prevProp\n ? clearNestedProperty(updatePayload, prevProp, validAttributes)\n : updatePayload;\n if (!Array.isArray(prevProp) && !Array.isArray(nextProp))\n return diffProperties(updatePayload, prevProp, nextProp, validAttributes);\n if (Array.isArray(prevProp) && Array.isArray(nextProp)) {\n var minLength =\n prevProp.length < nextProp.length ? prevProp.length : nextProp.length,\n i;\n for (i = 0; i < minLength; i++)\n updatePayload = diffNestedProperty(\n updatePayload,\n prevProp[i],\n nextProp[i],\n validAttributes\n );\n for (; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n for (; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n }\n return Array.isArray(prevProp)\n ? diffProperties(\n updatePayload,\n ReactNativePrivateInterface.flattenStyle(prevProp),\n nextProp,\n validAttributes\n )\n : diffProperties(\n updatePayload,\n prevProp,\n ReactNativePrivateInterface.flattenStyle(nextProp),\n validAttributes\n );\n}\nfunction addNestedProperty(updatePayload, nextProp, validAttributes) {\n if (!nextProp) return updatePayload;\n if (!Array.isArray(nextProp))\n return diffProperties(\n updatePayload,\n emptyObject,\n nextProp,\n validAttributes\n );\n for (var i = 0; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction clearNestedProperty(updatePayload, prevProp, validAttributes) {\n if (!prevProp) return updatePayload;\n if (!Array.isArray(prevProp))\n return diffProperties(\n updatePayload,\n prevProp,\n emptyObject,\n validAttributes\n );\n for (var i = 0; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction diffProperties(updatePayload, prevProps, nextProps, validAttributes) {\n var attributeConfig, propKey;\n for (propKey in nextProps)\n if ((attributeConfig = validAttributes[propKey])) {\n var prevProp = prevProps[propKey];\n var nextProp = nextProps[propKey];\n \"function\" === typeof nextProp &&\n ((nextProp = !0), \"function\" === typeof prevProp && (prevProp = !0));\n \"undefined\" === typeof nextProp &&\n ((nextProp = null),\n \"undefined\" === typeof prevProp && (prevProp = null));\n removedKeys && (removedKeys[propKey] = !1);\n if (updatePayload && void 0 !== updatePayload[propKey])\n if (\"object\" !== typeof attributeConfig)\n updatePayload[propKey] = nextProp;\n else {\n if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[propKey] = attributeConfig);\n }\n else if (prevProp !== nextProp)\n if (\"object\" !== typeof attributeConfig)\n defaultDiffer(prevProp, nextProp) &&\n ((updatePayload || (updatePayload = {}))[propKey] = nextProp);\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ) {\n if (\n void 0 === prevProp ||\n (\"function\" === typeof attributeConfig.diff\n ? attributeConfig.diff(prevProp, nextProp)\n : defaultDiffer(prevProp, nextProp))\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n ((updatePayload || (updatePayload = {}))[\n propKey\n ] = attributeConfig);\n } else\n (removedKeys = null),\n (removedKeyCount = 0),\n (updatePayload = diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n attributeConfig\n )),\n 0 < removedKeyCount &&\n updatePayload &&\n (restoreDeletedValuesInNestedArray(\n updatePayload,\n nextProp,\n attributeConfig\n ),\n (removedKeys = null));\n }\n for (var _propKey in prevProps)\n void 0 === nextProps[_propKey] &&\n (!(attributeConfig = validAttributes[_propKey]) ||\n (updatePayload && void 0 !== updatePayload[_propKey]) ||\n ((prevProp = prevProps[_propKey]),\n void 0 !== prevProp &&\n (\"object\" !== typeof attributeConfig ||\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ? (((updatePayload || (updatePayload = {}))[_propKey] = null),\n removedKeys || (removedKeys = {}),\n removedKeys[_propKey] ||\n ((removedKeys[_propKey] = !0), removedKeyCount++))\n : (updatePayload = clearNestedProperty(\n updatePayload,\n prevProp,\n attributeConfig\n )))));\n return updatePayload;\n}\nfunction mountSafeCallback_NOT_REALLY_SAFE(context, callback) {\n return function() {\n if (\n callback &&\n (\"boolean\" !== typeof context.__isMounted || context.__isMounted)\n )\n return callback.apply(context, arguments);\n };\n}\nvar ReactNativeFiberHostComponent = (function() {\n function ReactNativeFiberHostComponent(tag, viewConfig) {\n this._nativeTag = tag;\n this._children = [];\n this.viewConfig = viewConfig;\n }\n var _proto = ReactNativeFiberHostComponent.prototype;\n _proto.blur = function() {\n ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);\n };\n _proto.focus = function() {\n ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);\n };\n _proto.measure = function(callback) {\n ReactNativePrivateInterface.UIManager.measure(\n this._nativeTag,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n _proto.measureInWindow = function(callback) {\n ReactNativePrivateInterface.UIManager.measureInWindow(\n this._nativeTag,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n _proto.measureLayout = function(relativeToNativeNode, onSuccess, onFail) {\n if (\"number\" === typeof relativeToNativeNode)\n var relativeNode = relativeToNativeNode;\n else\n relativeToNativeNode._nativeTag &&\n (relativeNode = relativeToNativeNode._nativeTag);\n null != relativeNode &&\n ReactNativePrivateInterface.UIManager.measureLayout(\n this._nativeTag,\n relativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n };\n _proto.setNativeProps = function(nativeProps) {\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n this.viewConfig.validAttributes\n );\n null != nativeProps &&\n ReactNativePrivateInterface.UIManager.updateView(\n this._nativeTag,\n this.viewConfig.uiViewClassName,\n nativeProps\n );\n };\n return ReactNativeFiberHostComponent;\n})();\nfunction shim$1() {\n throw Error(\n \"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue.\"\n );\n}\nvar getViewConfigForType =\n ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,\n UPDATE_SIGNAL = {},\n nextReactTag = 3;\nfunction allocateTag() {\n var tag = nextReactTag;\n 1 === tag % 10 && (tag += 2);\n nextReactTag = tag + 2;\n return tag;\n}\nfunction recursivelyUncacheFiberNode(node) {\n if (\"number\" === typeof node)\n instanceCache.delete(node), instanceProps.delete(node);\n else {\n var tag = node._nativeTag;\n instanceCache.delete(tag);\n instanceProps.delete(tag);\n node._children.forEach(recursivelyUncacheFiberNode);\n }\n}\nfunction finalizeInitialChildren(parentInstance) {\n if (0 === parentInstance._children.length) return !1;\n var nativeTags = parentInstance._children.map(function(child) {\n return \"number\" === typeof child ? child : child._nativeTag;\n });\n ReactNativePrivateInterface.UIManager.setChildren(\n parentInstance._nativeTag,\n nativeTags\n );\n return !1;\n}\nvar scheduleTimeout = setTimeout,\n cancelTimeout = clearTimeout,\n BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\nfunction getStackByFiberInDevAndProd(workInProgress) {\n var info = \"\";\n do {\n a: switch (workInProgress.tag) {\n case 3:\n case 4:\n case 6:\n case 7:\n case 10:\n case 9:\n var JSCompiler_inline_result = \"\";\n break a;\n default:\n var owner = workInProgress._debugOwner,\n source = workInProgress._debugSource,\n name = getComponentName(workInProgress.type);\n JSCompiler_inline_result = null;\n owner && (JSCompiler_inline_result = getComponentName(owner.type));\n owner = name;\n name = \"\";\n source\n ? (name =\n \" (at \" +\n source.fileName.replace(BEFORE_SLASH_RE, \"\") +\n \":\" +\n source.lineNumber +\n \")\")\n : JSCompiler_inline_result &&\n (name = \" (created by \" + JSCompiler_inline_result + \")\");\n JSCompiler_inline_result = \"\\n in \" + (owner || \"Unknown\") + name;\n }\n info += JSCompiler_inline_result;\n workInProgress = workInProgress.return;\n } while (workInProgress);\n return info;\n}\nnew Set();\nvar valueStack = [],\n index = -1;\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar emptyContextObject = {},\n contextStackCursor = { current: emptyContextObject },\n didPerformWorkStackCursor = { current: !1 },\n previousContext = emptyContextObject;\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n var contextTypes = workInProgress.type.contextTypes;\n if (!contextTypes) return emptyContextObject;\n var instance = workInProgress.stateNode;\n if (\n instance &&\n instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext\n )\n return instance.__reactInternalMemoizedMaskedChildContext;\n var context = {},\n key;\n for (key in contextTypes) context[key] = unmaskedContext[key];\n instance &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return context;\n}\nfunction isContextProvider(type) {\n type = type.childContextTypes;\n return null !== type && void 0 !== type;\n}\nfunction popContext(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction popTopLevelContextObject(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n if (contextStackCursor.current !== emptyContextObject)\n throw Error(\n \"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.\"\n );\n push(contextStackCursor, context, fiber);\n push(didPerformWorkStackCursor, didChange, fiber);\n}\nfunction processChildContext(fiber, type, parentContext) {\n var instance = fiber.stateNode;\n fiber = type.childContextTypes;\n if (\"function\" !== typeof instance.getChildContext) return parentContext;\n instance = instance.getChildContext();\n for (var contextKey in instance)\n if (!(contextKey in fiber))\n throw Error(\n (getComponentName(type) || \"Unknown\") +\n '.getChildContext(): key \"' +\n contextKey +\n '\" is not defined in childContextTypes.'\n );\n return Object.assign({}, parentContext, {}, instance);\n}\nfunction pushContextProvider(workInProgress) {\n var instance = workInProgress.stateNode;\n instance =\n (instance && instance.__reactInternalMemoizedMergedChildContext) ||\n emptyContextObject;\n previousContext = contextStackCursor.current;\n push(contextStackCursor, instance, workInProgress);\n push(\n didPerformWorkStackCursor,\n didPerformWorkStackCursor.current,\n workInProgress\n );\n return !0;\n}\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n var instance = workInProgress.stateNode;\n if (!instance)\n throw Error(\n \"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.\"\n );\n didChange\n ? ((type = processChildContext(workInProgress, type, previousContext)),\n (instance.__reactInternalMemoizedMergedChildContext = type),\n pop(didPerformWorkStackCursor, workInProgress),\n pop(contextStackCursor, workInProgress),\n push(contextStackCursor, type, workInProgress))\n : pop(didPerformWorkStackCursor, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n}\nvar Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,\n Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,\n Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,\n Scheduler_shouldYield = Scheduler.unstable_shouldYield,\n Scheduler_requestPaint = Scheduler.unstable_requestPaint,\n Scheduler_now = Scheduler.unstable_now,\n Scheduler_getCurrentPriorityLevel =\n Scheduler.unstable_getCurrentPriorityLevel,\n Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,\n Scheduler_LowPriority = Scheduler.unstable_LowPriority,\n Scheduler_IdlePriority = Scheduler.unstable_IdlePriority,\n fakeCallbackNode = {},\n requestPaint =\n void 0 !== Scheduler_requestPaint ? Scheduler_requestPaint : function() {},\n syncQueue = null,\n immediateQueueCallbackNode = null,\n isFlushingSyncQueue = !1,\n initialTimeMs = Scheduler_now(),\n now =\n 1e4 > initialTimeMs\n ? Scheduler_now\n : function() {\n return Scheduler_now() - initialTimeMs;\n };\nfunction getCurrentPriorityLevel() {\n switch (Scheduler_getCurrentPriorityLevel()) {\n case Scheduler_ImmediatePriority:\n return 99;\n case Scheduler_UserBlockingPriority:\n return 98;\n case Scheduler_NormalPriority:\n return 97;\n case Scheduler_LowPriority:\n return 96;\n case Scheduler_IdlePriority:\n return 95;\n default:\n throw Error(\"Unknown priority level.\");\n }\n}\nfunction reactPriorityToSchedulerPriority(reactPriorityLevel) {\n switch (reactPriorityLevel) {\n case 99:\n return Scheduler_ImmediatePriority;\n case 98:\n return Scheduler_UserBlockingPriority;\n case 97:\n return Scheduler_NormalPriority;\n case 96:\n return Scheduler_LowPriority;\n case 95:\n return Scheduler_IdlePriority;\n default:\n throw Error(\"Unknown priority level.\");\n }\n}\nfunction runWithPriority(reactPriorityLevel, fn) {\n reactPriorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);\n return Scheduler_runWithPriority(reactPriorityLevel, fn);\n}\nfunction scheduleCallback(reactPriorityLevel, callback, options) {\n reactPriorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);\n return Scheduler_scheduleCallback(reactPriorityLevel, callback, options);\n}\nfunction scheduleSyncCallback(callback) {\n null === syncQueue\n ? ((syncQueue = [callback]),\n (immediateQueueCallbackNode = Scheduler_scheduleCallback(\n Scheduler_ImmediatePriority,\n flushSyncCallbackQueueImpl\n )))\n : syncQueue.push(callback);\n return fakeCallbackNode;\n}\nfunction flushSyncCallbackQueue() {\n if (null !== immediateQueueCallbackNode) {\n var node = immediateQueueCallbackNode;\n immediateQueueCallbackNode = null;\n Scheduler_cancelCallback(node);\n }\n flushSyncCallbackQueueImpl();\n}\nfunction flushSyncCallbackQueueImpl() {\n if (!isFlushingSyncQueue && null !== syncQueue) {\n isFlushingSyncQueue = !0;\n var i = 0;\n try {\n var queue = syncQueue;\n runWithPriority(99, function() {\n for (; i < queue.length; i++) {\n var callback = queue[i];\n do callback = callback(!0);\n while (null !== callback);\n }\n });\n syncQueue = null;\n } catch (error) {\n throw (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)),\n Scheduler_scheduleCallback(\n Scheduler_ImmediatePriority,\n flushSyncCallbackQueue\n ),\n error);\n } finally {\n isFlushingSyncQueue = !1;\n }\n }\n}\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar is$1 = \"function\" === typeof Object.is ? Object.is : is,\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction shallowEqual(objA, objB) {\n if (is$1(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++)\n if (\n !hasOwnProperty.call(objB, keysA[keysB]) ||\n !is$1(objA[keysA[keysB]], objB[keysA[keysB]])\n )\n return !1;\n return !0;\n}\nfunction resolveDefaultProps(Component, baseProps) {\n if (Component && Component.defaultProps) {\n baseProps = Object.assign({}, baseProps);\n Component = Component.defaultProps;\n for (var propName in Component)\n void 0 === baseProps[propName] &&\n (baseProps[propName] = Component[propName]);\n }\n return baseProps;\n}\nvar valueCursor = { current: null },\n currentlyRenderingFiber = null,\n lastContextDependency = null,\n lastContextWithAllBitsObserved = null;\nfunction resetContextDependencies() {\n lastContextWithAllBitsObserved = lastContextDependency = currentlyRenderingFiber = null;\n}\nfunction pushProvider(providerFiber, nextValue) {\n var context = providerFiber.type._context;\n push(valueCursor, context._currentValue, providerFiber);\n context._currentValue = nextValue;\n}\nfunction popProvider(providerFiber) {\n var currentValue = valueCursor.current;\n pop(valueCursor, providerFiber);\n providerFiber.type._context._currentValue = currentValue;\n}\nfunction scheduleWorkOnParentPath(parent, renderExpirationTime) {\n for (; null !== parent; ) {\n var alternate = parent.alternate;\n if (parent.childExpirationTime < renderExpirationTime)\n (parent.childExpirationTime = renderExpirationTime),\n null !== alternate &&\n alternate.childExpirationTime < renderExpirationTime &&\n (alternate.childExpirationTime = renderExpirationTime);\n else if (\n null !== alternate &&\n alternate.childExpirationTime < renderExpirationTime\n )\n alternate.childExpirationTime = renderExpirationTime;\n else break;\n parent = parent.return;\n }\n}\nfunction prepareToReadContext(workInProgress, renderExpirationTime) {\n currentlyRenderingFiber = workInProgress;\n lastContextWithAllBitsObserved = lastContextDependency = null;\n workInProgress = workInProgress.dependencies;\n null !== workInProgress &&\n null !== workInProgress.firstContext &&\n (workInProgress.expirationTime >= renderExpirationTime &&\n (didReceiveUpdate = !0),\n (workInProgress.firstContext = null));\n}\nfunction readContext(context, observedBits) {\n if (\n lastContextWithAllBitsObserved !== context &&\n !1 !== observedBits &&\n 0 !== observedBits\n ) {\n if (\"number\" !== typeof observedBits || 1073741823 === observedBits)\n (lastContextWithAllBitsObserved = context), (observedBits = 1073741823);\n observedBits = { context: context, observedBits: observedBits, next: null };\n if (null === lastContextDependency) {\n if (null === currentlyRenderingFiber)\n throw Error(\n \"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"\n );\n lastContextDependency = observedBits;\n currentlyRenderingFiber.dependencies = {\n expirationTime: 0,\n firstContext: observedBits,\n responders: null\n };\n } else lastContextDependency = lastContextDependency.next = observedBits;\n }\n return context._currentValue;\n}\nvar hasForceUpdate = !1;\nfunction createUpdateQueue(baseState) {\n return {\n baseState: baseState,\n firstUpdate: null,\n lastUpdate: null,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction cloneUpdateQueue(currentQueue) {\n return {\n baseState: currentQueue.baseState,\n firstUpdate: currentQueue.firstUpdate,\n lastUpdate: currentQueue.lastUpdate,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction createUpdate(expirationTime, suspenseConfig) {\n return {\n expirationTime: expirationTime,\n suspenseConfig: suspenseConfig,\n tag: 0,\n payload: null,\n callback: null,\n next: null,\n nextEffect: null\n };\n}\nfunction appendUpdateToQueue(queue, update) {\n null === queue.lastUpdate\n ? (queue.firstUpdate = queue.lastUpdate = update)\n : ((queue.lastUpdate.next = update), (queue.lastUpdate = update));\n}\nfunction enqueueUpdate(fiber, update) {\n var alternate = fiber.alternate;\n if (null === alternate) {\n var queue1 = fiber.updateQueue;\n var queue2 = null;\n null === queue1 &&\n (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState));\n } else\n (queue1 = fiber.updateQueue),\n (queue2 = alternate.updateQueue),\n null === queue1\n ? null === queue2\n ? ((queue1 = fiber.updateQueue = createUpdateQueue(\n fiber.memoizedState\n )),\n (queue2 = alternate.updateQueue = createUpdateQueue(\n alternate.memoizedState\n )))\n : (queue1 = fiber.updateQueue = cloneUpdateQueue(queue2))\n : null === queue2 &&\n (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1));\n null === queue2 || queue1 === queue2\n ? appendUpdateToQueue(queue1, update)\n : null === queue1.lastUpdate || null === queue2.lastUpdate\n ? (appendUpdateToQueue(queue1, update),\n appendUpdateToQueue(queue2, update))\n : (appendUpdateToQueue(queue1, update), (queue2.lastUpdate = update));\n}\nfunction enqueueCapturedUpdate(workInProgress, update) {\n var workInProgressQueue = workInProgress.updateQueue;\n workInProgressQueue =\n null === workInProgressQueue\n ? (workInProgress.updateQueue = createUpdateQueue(\n workInProgress.memoizedState\n ))\n : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);\n null === workInProgressQueue.lastCapturedUpdate\n ? (workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update)\n : ((workInProgressQueue.lastCapturedUpdate.next = update),\n (workInProgressQueue.lastCapturedUpdate = update));\n}\nfunction ensureWorkInProgressQueueIsAClone(workInProgress, queue) {\n var current = workInProgress.alternate;\n null !== current &&\n queue === current.updateQueue &&\n (queue = workInProgress.updateQueue = cloneUpdateQueue(queue));\n return queue;\n}\nfunction getStateFromUpdate(\n workInProgress,\n queue,\n update,\n prevState,\n nextProps,\n instance\n) {\n switch (update.tag) {\n case 1:\n return (\n (workInProgress = update.payload),\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress\n );\n case 3:\n workInProgress.effectTag = (workInProgress.effectTag & -4097) | 64;\n case 0:\n workInProgress = update.payload;\n nextProps =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress;\n if (null === nextProps || void 0 === nextProps) break;\n return Object.assign({}, prevState, nextProps);\n case 2:\n hasForceUpdate = !0;\n }\n return prevState;\n}\nfunction processUpdateQueue(\n workInProgress,\n queue,\n props,\n instance,\n renderExpirationTime\n) {\n hasForceUpdate = !1;\n queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);\n for (\n var newBaseState = queue.baseState,\n newFirstUpdate = null,\n newExpirationTime = 0,\n update = queue.firstUpdate,\n resultState = newBaseState;\n null !== update;\n\n ) {\n var updateExpirationTime = update.expirationTime;\n updateExpirationTime < renderExpirationTime\n ? (null === newFirstUpdate &&\n ((newFirstUpdate = update), (newBaseState = resultState)),\n newExpirationTime < updateExpirationTime &&\n (newExpirationTime = updateExpirationTime))\n : (markRenderEventTimeAndConfig(\n updateExpirationTime,\n update.suspenseConfig\n ),\n (resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastEffect\n ? (queue.firstEffect = queue.lastEffect = update)\n : ((queue.lastEffect.nextEffect = update),\n (queue.lastEffect = update))));\n update = update.next;\n }\n updateExpirationTime = null;\n for (update = queue.firstCapturedUpdate; null !== update; ) {\n var _updateExpirationTime = update.expirationTime;\n _updateExpirationTime < renderExpirationTime\n ? (null === updateExpirationTime &&\n ((updateExpirationTime = update),\n null === newFirstUpdate && (newBaseState = resultState)),\n newExpirationTime < _updateExpirationTime &&\n (newExpirationTime = _updateExpirationTime))\n : ((resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastCapturedEffect\n ? (queue.firstCapturedEffect = queue.lastCapturedEffect = update)\n : ((queue.lastCapturedEffect.nextEffect = update),\n (queue.lastCapturedEffect = update))));\n update = update.next;\n }\n null === newFirstUpdate && (queue.lastUpdate = null);\n null === updateExpirationTime\n ? (queue.lastCapturedUpdate = null)\n : (workInProgress.effectTag |= 32);\n null === newFirstUpdate &&\n null === updateExpirationTime &&\n (newBaseState = resultState);\n queue.baseState = newBaseState;\n queue.firstUpdate = newFirstUpdate;\n queue.firstCapturedUpdate = updateExpirationTime;\n markUnprocessedUpdateTime(newExpirationTime);\n workInProgress.expirationTime = newExpirationTime;\n workInProgress.memoizedState = resultState;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance) {\n null !== finishedQueue.firstCapturedUpdate &&\n (null !== finishedQueue.lastUpdate &&\n ((finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate),\n (finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate)),\n (finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null));\n commitUpdateEffects(finishedQueue.firstEffect, instance);\n finishedQueue.firstEffect = finishedQueue.lastEffect = null;\n commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);\n finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;\n}\nfunction commitUpdateEffects(effect, instance) {\n for (; null !== effect; ) {\n var callback = effect.callback;\n if (null !== callback) {\n effect.callback = null;\n if (\"function\" !== typeof callback)\n throw Error(\n \"Invalid argument passed as callback. Expected a function. Instead received: \" +\n callback\n );\n callback.call(instance);\n }\n effect = effect.nextEffect;\n }\n}\nvar ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig,\n emptyRefsObject = new React.Component().refs;\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : Object.assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n nextProps = workInProgress.updateQueue;\n null !== nextProps &&\n 0 === workInProgress.expirationTime &&\n (nextProps.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n isMounted: function(component) {\n return (component = component._reactInternalFiber)\n ? getNearestMountedFiber(component) === component\n : !1;\n },\n enqueueSetState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, inst, suspenseConfig);\n suspenseConfig = createUpdate(currentTime, suspenseConfig);\n suspenseConfig.payload = payload;\n void 0 !== callback &&\n null !== callback &&\n (suspenseConfig.callback = callback);\n enqueueUpdate(inst, suspenseConfig);\n scheduleUpdateOnFiber(inst, currentTime);\n },\n enqueueReplaceState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, inst, suspenseConfig);\n suspenseConfig = createUpdate(currentTime, suspenseConfig);\n suspenseConfig.tag = 1;\n suspenseConfig.payload = payload;\n void 0 !== callback &&\n null !== callback &&\n (suspenseConfig.callback = callback);\n enqueueUpdate(inst, suspenseConfig);\n scheduleUpdateOnFiber(inst, currentTime);\n },\n enqueueForceUpdate: function(inst, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, inst, suspenseConfig);\n suspenseConfig = createUpdate(currentTime, suspenseConfig);\n suspenseConfig.tag = 2;\n void 0 !== callback &&\n null !== callback &&\n (suspenseConfig.callback = callback);\n enqueueUpdate(inst, suspenseConfig);\n scheduleUpdateOnFiber(inst, currentTime);\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction constructClassInstance(workInProgress, ctor, props) {\n var isLegacyContextConsumer = !1,\n unmaskedContext = emptyContextObject;\n var context = ctor.contextType;\n \"object\" === typeof context && null !== context\n ? (context = readContext(context))\n : ((unmaskedContext = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (isLegacyContextConsumer = ctor.contextTypes),\n (context = (isLegacyContextConsumer =\n null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer)\n ? getMaskedContext(workInProgress, unmaskedContext)\n : emptyContextObject));\n ctor = new ctor(props, context);\n workInProgress.memoizedState =\n null !== ctor.state && void 0 !== ctor.state ? ctor.state : null;\n ctor.updater = classComponentUpdater;\n workInProgress.stateNode = ctor;\n ctor._reactInternalFiber = workInProgress;\n isLegacyContextConsumer &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return ctor;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction mountClassInstance(\n workInProgress,\n ctor,\n newProps,\n renderExpirationTime\n) {\n var instance = workInProgress.stateNode;\n instance.props = newProps;\n instance.state = workInProgress.memoizedState;\n instance.refs = emptyRefsObject;\n var contextType = ctor.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (instance.context = readContext(contextType))\n : ((contextType = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (instance.context = getMaskedContext(workInProgress, contextType)));\n contextType = workInProgress.updateQueue;\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState));\n contextType = ctor.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps),\n (instance.state = workInProgress.memoizedState));\n \"function\" === typeof ctor.getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n ((ctor = instance.state),\n \"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount(),\n ctor !== instance.state &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null),\n (contextType = workInProgress.updateQueue),\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState)));\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4);\n}\nvar isArray = Array.isArray;\nfunction coerceRef(returnFiber, current$$1, element) {\n returnFiber = element.ref;\n if (\n null !== returnFiber &&\n \"function\" !== typeof returnFiber &&\n \"object\" !== typeof returnFiber\n ) {\n if (element._owner) {\n element = element._owner;\n if (element) {\n if (1 !== element.tag)\n throw Error(\n \"Function components cannot have refs. Did you mean to use React.forwardRef()?\"\n );\n var inst = element.stateNode;\n }\n if (!inst)\n throw Error(\n \"Missing owner for string ref \" +\n returnFiber +\n \". This error is likely caused by a bug in React. Please file an issue.\"\n );\n var stringRef = \"\" + returnFiber;\n if (\n null !== current$$1 &&\n null !== current$$1.ref &&\n \"function\" === typeof current$$1.ref &&\n current$$1.ref._stringRef === stringRef\n )\n return current$$1.ref;\n current$$1 = function(value) {\n var refs = inst.refs;\n refs === emptyRefsObject && (refs = inst.refs = {});\n null === value ? delete refs[stringRef] : (refs[stringRef] = value);\n };\n current$$1._stringRef = stringRef;\n return current$$1;\n }\n if (\"string\" !== typeof returnFiber)\n throw Error(\n \"Expected ref to be a function, a string, an object returned by React.createRef(), or null.\"\n );\n if (!element._owner)\n throw Error(\n \"Element ref was specified as a string (\" +\n returnFiber +\n \") but no owner was set. This could happen for one of the following reasons:\\n1. You may be adding a ref to a function component\\n2. You may be adding a ref to a component that was not created inside a component's render method\\n3. You have multiple copies of React loaded\\nSee https://fb.me/react-refs-must-have-owner for more information.\"\n );\n }\n return returnFiber;\n}\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n if (\"textarea\" !== returnFiber.type)\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === Object.prototype.toString.call(newChild)\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : newChild) +\n \").\"\n );\n}\nfunction ChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var last = returnFiber.lastEffect;\n null !== last\n ? ((last.nextEffect = childToDelete),\n (returnFiber.lastEffect = childToDelete))\n : (returnFiber.firstEffect = returnFiber.lastEffect = childToDelete);\n childToDelete.nextEffect = null;\n childToDelete.effectTag = 8;\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(returnFiber, currentFirstChild) {\n for (returnFiber = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? returnFiber.set(currentFirstChild.key, currentFirstChild)\n : returnFiber.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return returnFiber;\n }\n function useFiber(fiber, pendingProps, expirationTime) {\n fiber = createWorkInProgress(fiber, pendingProps, expirationTime);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects) return lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.effectTag = 2), lastPlacedIndex)\n : newIndex\n );\n newFiber.effectTag = 2;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.effectTag = 2);\n return newFiber;\n }\n function updateTextNode(\n returnFiber,\n current$$1,\n textContent,\n expirationTime\n ) {\n if (null === current$$1 || 6 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromText(\n textContent,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, textContent, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateElement(returnFiber, current$$1, element, expirationTime) {\n if (null !== current$$1 && current$$1.elementType === element.type)\n return (\n (expirationTime = useFiber(current$$1, element.props, expirationTime)),\n (expirationTime.ref = coerceRef(returnFiber, current$$1, element)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n expirationTime = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n expirationTime\n );\n expirationTime.ref = coerceRef(returnFiber, current$$1, element);\n expirationTime.return = returnFiber;\n return expirationTime;\n }\n function updatePortal(returnFiber, current$$1, portal, expirationTime) {\n if (\n null === current$$1 ||\n 4 !== current$$1.tag ||\n current$$1.stateNode.containerInfo !== portal.containerInfo ||\n current$$1.stateNode.implementation !== portal.implementation\n )\n return (\n (current$$1 = createFiberFromPortal(\n portal,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, portal.children || [], expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateFragment(\n returnFiber,\n current$$1,\n fragment,\n expirationTime,\n key\n ) {\n if (null === current$$1 || 7 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n expirationTime,\n key\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, fragment, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function createChild(returnFiber, newChild, expirationTime) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(returnFiber, null, newChild)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n expirationTime,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, expirationTime);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n oldFiber,\n newChild.props.children,\n expirationTime,\n key\n )\n : updateElement(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(\n returnFiber,\n oldFiber,\n newChild,\n expirationTime,\n null\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n expirationTime\n ) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(\n returnFiber,\n existingChildren,\n \"\" + newChild,\n expirationTime\n )\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n existingChildren,\n newChild.props.children,\n expirationTime,\n newChild.key\n )\n : updateElement(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime,\n null\n )\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n expirationTime\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n expirationTime\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n (oldFiber = createChild(\n returnFiber,\n newChildren[newIdx],\n expirationTime\n )),\n null !== oldFiber &&\n ((currentFirstChild = placeChild(\n oldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber));\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n expirationTime\n )),\n null !== nextOldFiber &&\n (shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber));\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildrenIterable,\n expirationTime\n ) {\n var iteratorFn = getIteratorFn(newChildrenIterable);\n if (\"function\" !== typeof iteratorFn)\n throw Error(\n \"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\"\n );\n newChildrenIterable = iteratorFn.call(newChildrenIterable);\n if (null == newChildrenIterable)\n throw Error(\"An iterable object provided no iterator.\");\n for (\n var previousNewFiber = (iteratorFn = null),\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildrenIterable.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildrenIterable.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n step.value,\n expirationTime\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (iteratorFn = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn;\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildrenIterable.next())\n (step = createChild(returnFiber, step.value, expirationTime)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n return iteratorFn;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n !step.done;\n newIdx++, step = newChildrenIterable.next()\n )\n (step = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n step.value,\n expirationTime\n )),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return iteratorFn;\n }\n return function(returnFiber, currentFirstChild, newChild, expirationTime) {\n var isUnkeyedTopLevelFragment =\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key;\n isUnkeyedTopLevelFragment && (newChild = newChild.props.children);\n var isObject = \"object\" === typeof newChild && null !== newChild;\n if (isObject)\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n isObject = newChild.key;\n for (\n isUnkeyedTopLevelFragment = currentFirstChild;\n null !== isUnkeyedTopLevelFragment;\n\n ) {\n if (isUnkeyedTopLevelFragment.key === isObject)\n if (\n 7 === isUnkeyedTopLevelFragment.tag\n ? newChild.type === REACT_FRAGMENT_TYPE\n : isUnkeyedTopLevelFragment.elementType === newChild.type\n ) {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment.sibling\n );\n currentFirstChild = useFiber(\n isUnkeyedTopLevelFragment,\n newChild.type === REACT_FRAGMENT_TYPE\n ? newChild.props.children\n : newChild.props,\n expirationTime\n );\n currentFirstChild.ref = coerceRef(\n returnFiber,\n isUnkeyedTopLevelFragment,\n newChild\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment\n );\n break;\n }\n else deleteChild(returnFiber, isUnkeyedTopLevelFragment);\n isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((currentFirstChild = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n expirationTime,\n newChild.key\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : ((expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(\n returnFiber,\n currentFirstChild,\n newChild\n )),\n (expirationTime.return = returnFiber),\n (returnFiber = expirationTime));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (\n isUnkeyedTopLevelFragment = newChild.key;\n null !== currentFirstChild;\n\n ) {\n if (currentFirstChild.key === isUnkeyedTopLevelFragment)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n currentFirstChild = useFiber(\n currentFirstChild,\n newChild.children || [],\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n currentFirstChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n }\n return placeSingleChild(returnFiber);\n }\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (currentFirstChild = useFiber(\n currentFirstChild,\n newChild,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (currentFirstChild = createFiberFromText(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild)),\n placeSingleChild(returnFiber)\n );\n if (isArray(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n if (getIteratorFn(newChild))\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n isObject && throwOnInvalidObjectType(returnFiber, newChild);\n if (\"undefined\" === typeof newChild && !isUnkeyedTopLevelFragment)\n switch (returnFiber.tag) {\n case 1:\n case 0:\n throw ((returnFiber = returnFiber.type),\n Error(\n (returnFiber.displayName || returnFiber.name || \"Component\") +\n \"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.\"\n ));\n }\n return deleteRemainingChildren(returnFiber, currentFirstChild);\n };\n}\nvar reconcileChildFibers = ChildReconciler(!0),\n mountChildFibers = ChildReconciler(!1),\n NO_CONTEXT = {},\n contextStackCursor$1 = { current: NO_CONTEXT },\n contextFiberStackCursor = { current: NO_CONTEXT },\n rootInstanceStackCursor = { current: NO_CONTEXT };\nfunction requiredContext(c) {\n if (c === NO_CONTEXT)\n throw Error(\n \"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"\n );\n return c;\n}\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance, fiber);\n push(contextFiberStackCursor, fiber, fiber);\n push(contextStackCursor$1, NO_CONTEXT, fiber);\n pop(contextStackCursor$1, fiber);\n push(contextStackCursor$1, { isInAParentText: !1 }, fiber);\n}\nfunction popHostContainer(fiber) {\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n pop(rootInstanceStackCursor, fiber);\n}\nfunction pushHostContext(fiber) {\n requiredContext(rootInstanceStackCursor.current);\n var context = requiredContext(contextStackCursor$1.current);\n var nextContext = fiber.type;\n nextContext =\n \"AndroidTextInput\" === nextContext ||\n \"RCTMultilineTextInputView\" === nextContext ||\n \"RCTSinglelineTextInputView\" === nextContext ||\n \"RCTText\" === nextContext ||\n \"RCTVirtualText\" === nextContext;\n nextContext =\n context.isInAParentText !== nextContext\n ? { isInAParentText: nextContext }\n : context;\n context !== nextContext &&\n (push(contextFiberStackCursor, fiber, fiber),\n push(contextStackCursor$1, nextContext, fiber));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber));\n}\nvar suspenseStackCursor = { current: 0 };\nfunction findFirstSuspended(row) {\n for (var node = row; null !== node; ) {\n if (13 === node.tag) {\n var state = node.memoizedState;\n if (\n null !== state &&\n ((state = state.dehydrated),\n null === state || shim$1(state) || shim$1(state))\n )\n return node;\n } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {\n if (0 !== (node.effectTag & 64)) return node;\n } else if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === row) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === row) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n return null;\n}\nfunction createResponderListener(responder, props) {\n return { responder: responder, props: props };\n}\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,\n ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig,\n renderExpirationTime$1 = 0,\n currentlyRenderingFiber$1 = null,\n currentHook = null,\n nextCurrentHook = null,\n firstWorkInProgressHook = null,\n workInProgressHook = null,\n nextWorkInProgressHook = null,\n remainingExpirationTime = 0,\n componentUpdateQueue = null,\n sideEffectTag = 0,\n didScheduleRenderPhaseUpdate = !1,\n renderPhaseUpdates = null,\n numberOfReRenders = 0;\nfunction throwInvalidHookError() {\n throw Error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (null === prevDeps) return !1;\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n if (!is$1(nextDeps[i], prevDeps[i])) return !1;\n return !0;\n}\nfunction renderWithHooks(\n current,\n workInProgress,\n Component,\n props,\n refOrContext,\n nextRenderExpirationTime\n) {\n renderExpirationTime$1 = nextRenderExpirationTime;\n currentlyRenderingFiber$1 = workInProgress;\n nextCurrentHook = null !== current ? current.memoizedState : null;\n ReactCurrentDispatcher$1.current =\n null === nextCurrentHook ? HooksDispatcherOnMount : HooksDispatcherOnUpdate;\n workInProgress = Component(props, refOrContext);\n if (didScheduleRenderPhaseUpdate) {\n do\n (didScheduleRenderPhaseUpdate = !1),\n (numberOfReRenders += 1),\n (nextCurrentHook = null !== current ? current.memoizedState : null),\n (nextWorkInProgressHook = firstWorkInProgressHook),\n (componentUpdateQueue = workInProgressHook = currentHook = null),\n (ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdate),\n (workInProgress = Component(props, refOrContext));\n while (didScheduleRenderPhaseUpdate);\n renderPhaseUpdates = null;\n numberOfReRenders = 0;\n }\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n current = currentlyRenderingFiber$1;\n current.memoizedState = firstWorkInProgressHook;\n current.expirationTime = remainingExpirationTime;\n current.updateQueue = componentUpdateQueue;\n current.effectTag |= sideEffectTag;\n current = null !== currentHook && null !== currentHook.next;\n renderExpirationTime$1 = 0;\n nextWorkInProgressHook = workInProgressHook = firstWorkInProgressHook = nextCurrentHook = currentHook = currentlyRenderingFiber$1 = null;\n remainingExpirationTime = 0;\n componentUpdateQueue = null;\n sideEffectTag = 0;\n if (current)\n throw Error(\n \"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\"\n );\n return workInProgress;\n}\nfunction resetHooks() {\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n renderExpirationTime$1 = 0;\n nextWorkInProgressHook = workInProgressHook = firstWorkInProgressHook = nextCurrentHook = currentHook = currentlyRenderingFiber$1 = null;\n remainingExpirationTime = 0;\n componentUpdateQueue = null;\n sideEffectTag = 0;\n didScheduleRenderPhaseUpdate = !1;\n renderPhaseUpdates = null;\n numberOfReRenders = 0;\n}\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n queue: null,\n baseUpdate: null,\n next: null\n };\n null === workInProgressHook\n ? (firstWorkInProgressHook = workInProgressHook = hook)\n : (workInProgressHook = workInProgressHook.next = hook);\n return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n if (null !== nextWorkInProgressHook)\n (workInProgressHook = nextWorkInProgressHook),\n (nextWorkInProgressHook = workInProgressHook.next),\n (currentHook = nextCurrentHook),\n (nextCurrentHook = null !== currentHook ? currentHook.next : null);\n else {\n if (null === nextCurrentHook)\n throw Error(\"Rendered more hooks than during the previous render.\");\n currentHook = nextCurrentHook;\n var newHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n queue: currentHook.queue,\n baseUpdate: currentHook.baseUpdate,\n next: null\n };\n workInProgressHook =\n null === workInProgressHook\n ? (firstWorkInProgressHook = newHook)\n : (workInProgressHook.next = newHook);\n nextCurrentHook = currentHook.next;\n }\n return workInProgressHook;\n}\nfunction basicStateReducer(state, action) {\n return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n var hook = updateWorkInProgressHook(),\n queue = hook.queue;\n if (null === queue)\n throw Error(\n \"Should have a queue. This is likely a bug in React. Please file an issue.\"\n );\n queue.lastRenderedReducer = reducer;\n if (0 < numberOfReRenders) {\n var _dispatch = queue.dispatch;\n if (null !== renderPhaseUpdates) {\n var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n if (void 0 !== firstRenderPhaseUpdate) {\n renderPhaseUpdates.delete(queue);\n var newState = hook.memoizedState;\n do\n (newState = reducer(newState, firstRenderPhaseUpdate.action)),\n (firstRenderPhaseUpdate = firstRenderPhaseUpdate.next);\n while (null !== firstRenderPhaseUpdate);\n is$1(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n hook.baseUpdate === queue.last && (hook.baseState = newState);\n queue.lastRenderedState = newState;\n return [newState, _dispatch];\n }\n }\n return [hook.memoizedState, _dispatch];\n }\n _dispatch = queue.last;\n var baseUpdate = hook.baseUpdate;\n newState = hook.baseState;\n null !== baseUpdate\n ? (null !== _dispatch && (_dispatch.next = null),\n (_dispatch = baseUpdate.next))\n : (_dispatch = null !== _dispatch ? _dispatch.next : null);\n if (null !== _dispatch) {\n var newBaseUpdate = (firstRenderPhaseUpdate = null),\n _update = _dispatch,\n didSkip = !1;\n do {\n var updateExpirationTime = _update.expirationTime;\n updateExpirationTime < renderExpirationTime$1\n ? (didSkip ||\n ((didSkip = !0),\n (newBaseUpdate = baseUpdate),\n (firstRenderPhaseUpdate = newState)),\n updateExpirationTime > remainingExpirationTime &&\n ((remainingExpirationTime = updateExpirationTime),\n markUnprocessedUpdateTime(remainingExpirationTime)))\n : (markRenderEventTimeAndConfig(\n updateExpirationTime,\n _update.suspenseConfig\n ),\n (newState =\n _update.eagerReducer === reducer\n ? _update.eagerState\n : reducer(newState, _update.action)));\n baseUpdate = _update;\n _update = _update.next;\n } while (null !== _update && _update !== _dispatch);\n didSkip ||\n ((newBaseUpdate = baseUpdate), (firstRenderPhaseUpdate = newState));\n is$1(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n hook.baseUpdate = newBaseUpdate;\n hook.baseState = firstRenderPhaseUpdate;\n queue.lastRenderedState = newState;\n }\n return [hook.memoizedState, queue.dispatch];\n}\nfunction mountState(initialState) {\n var hook = mountWorkInProgressHook();\n \"function\" === typeof initialState && (initialState = initialState());\n hook.memoizedState = hook.baseState = initialState;\n initialState = hook.queue = {\n last: null,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n initialState = initialState.dispatch = dispatchAction.bind(\n null,\n currentlyRenderingFiber$1,\n initialState\n );\n return [hook.memoizedState, initialState];\n}\nfunction updateState(initialState) {\n return updateReducer(basicStateReducer, initialState);\n}\nfunction pushEffect(tag, create, destroy, deps) {\n tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };\n null === componentUpdateQueue\n ? ((componentUpdateQueue = { lastEffect: null }),\n (componentUpdateQueue.lastEffect = tag.next = tag))\n : ((create = componentUpdateQueue.lastEffect),\n null === create\n ? (componentUpdateQueue.lastEffect = tag.next = tag)\n : ((destroy = create.next),\n (create.next = tag),\n (tag.next = destroy),\n (componentUpdateQueue.lastEffect = tag)));\n return tag;\n}\nfunction mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {\n var hook = mountWorkInProgressHook();\n sideEffectTag |= fiberEffectTag;\n hook.memoizedState = pushEffect(\n hookEffectTag,\n create,\n void 0,\n void 0 === deps ? null : deps\n );\n}\nfunction updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var destroy = void 0;\n if (null !== currentHook) {\n var prevEffect = currentHook.memoizedState;\n destroy = prevEffect.destroy;\n if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) {\n pushEffect(0, create, destroy, deps);\n return;\n }\n }\n sideEffectTag |= fiberEffectTag;\n hook.memoizedState = pushEffect(hookEffectTag, create, destroy, deps);\n}\nfunction mountEffect(create, deps) {\n return mountEffectImpl(516, 192, create, deps);\n}\nfunction updateEffect(create, deps) {\n return updateEffectImpl(516, 192, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n if (\"function\" === typeof ref)\n return (\n (create = create()),\n ref(create),\n function() {\n ref(null);\n }\n );\n if (null !== ref && void 0 !== ref)\n return (\n (create = create()),\n (ref.current = create),\n function() {\n ref.current = null;\n }\n );\n}\nfunction mountDebugValue() {}\nfunction mountCallback(callback, deps) {\n mountWorkInProgressHook().memoizedState = [\n callback,\n void 0 === deps ? null : deps\n ];\n return callback;\n}\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (\n null !== prevState &&\n null !== deps &&\n areHookInputsEqual(deps, prevState[1])\n )\n return prevState[0];\n hook.memoizedState = [callback, deps];\n return callback;\n}\nfunction dispatchAction(fiber, queue, action) {\n if (!(25 > numberOfReRenders))\n throw Error(\n \"Too many re-renders. React limits the number of renders to prevent an infinite loop.\"\n );\n var alternate = fiber.alternate;\n if (\n fiber === currentlyRenderingFiber$1 ||\n (null !== alternate && alternate === currentlyRenderingFiber$1)\n )\n if (\n ((didScheduleRenderPhaseUpdate = !0),\n (fiber = {\n expirationTime: renderExpirationTime$1,\n suspenseConfig: null,\n action: action,\n eagerReducer: null,\n eagerState: null,\n next: null\n }),\n null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),\n (action = renderPhaseUpdates.get(queue)),\n void 0 === action)\n )\n renderPhaseUpdates.set(queue, fiber);\n else {\n for (queue = action; null !== queue.next; ) queue = queue.next;\n queue.next = fiber;\n }\n else {\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);\n suspenseConfig = {\n expirationTime: currentTime,\n suspenseConfig: suspenseConfig,\n action: action,\n eagerReducer: null,\n eagerState: null,\n next: null\n };\n var last = queue.last;\n if (null === last) suspenseConfig.next = suspenseConfig;\n else {\n var first = last.next;\n null !== first && (suspenseConfig.next = first);\n last.next = suspenseConfig;\n }\n queue.last = suspenseConfig;\n if (\n 0 === fiber.expirationTime &&\n (null === alternate || 0 === alternate.expirationTime) &&\n ((alternate = queue.lastRenderedReducer), null !== alternate)\n )\n try {\n var currentState = queue.lastRenderedState,\n eagerState = alternate(currentState, action);\n suspenseConfig.eagerReducer = alternate;\n suspenseConfig.eagerState = eagerState;\n if (is$1(eagerState, currentState)) return;\n } catch (error) {\n } finally {\n }\n scheduleUpdateOnFiber(fiber, currentTime);\n }\n}\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useResponder: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError\n },\n HooksDispatcherOnMount = {\n readContext: readContext,\n useCallback: mountCallback,\n useContext: readContext,\n useEffect: mountEffect,\n useImperativeHandle: function(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n return mountEffectImpl(\n 4,\n 36,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function(create, deps) {\n return mountEffectImpl(4, 36, create, deps);\n },\n useMemo: function(nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n nextCreate = nextCreate();\n hook.memoizedState = [nextCreate, deps];\n return nextCreate;\n },\n useReducer: function(reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n initialArg = void 0 !== init ? init(initialArg) : initialArg;\n hook.memoizedState = hook.baseState = initialArg;\n reducer = hook.queue = {\n last: null,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialArg\n };\n reducer = reducer.dispatch = dispatchAction.bind(\n null,\n currentlyRenderingFiber$1,\n reducer\n );\n return [hook.memoizedState, reducer];\n },\n useRef: function(initialValue) {\n var hook = mountWorkInProgressHook();\n initialValue = { current: initialValue };\n return (hook.memoizedState = initialValue);\n },\n useState: mountState,\n useDebugValue: mountDebugValue,\n useResponder: createResponderListener,\n useDeferredValue: function(value, config) {\n var _mountState = mountState(value),\n prevValue = _mountState[0],\n setValue = _mountState[1];\n mountEffect(\n function() {\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setValue(value);\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [value, config]\n );\n return prevValue;\n },\n useTransition: function(config) {\n var _mountState2 = mountState(!1),\n isPending = _mountState2[0],\n setPending = _mountState2[1];\n return [\n mountCallback(\n function(callback) {\n setPending(!0);\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setPending(!1), callback();\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [config, isPending]\n ),\n isPending\n ];\n }\n },\n HooksDispatcherOnUpdate = {\n readContext: readContext,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: function(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n return updateEffectImpl(\n 4,\n 36,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function(create, deps) {\n return updateEffectImpl(4, 36, create, deps);\n },\n useMemo: function(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (\n null !== prevState &&\n null !== deps &&\n areHookInputsEqual(deps, prevState[1])\n )\n return prevState[0];\n nextCreate = nextCreate();\n hook.memoizedState = [nextCreate, deps];\n return nextCreate;\n },\n useReducer: updateReducer,\n useRef: function() {\n return updateWorkInProgressHook().memoizedState;\n },\n useState: updateState,\n useDebugValue: mountDebugValue,\n useResponder: createResponderListener,\n useDeferredValue: function(value, config) {\n var _updateState = updateState(value),\n prevValue = _updateState[0],\n setValue = _updateState[1];\n updateEffect(\n function() {\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setValue(value);\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [value, config]\n );\n return prevValue;\n },\n useTransition: function(config) {\n var _updateState2 = updateState(!1),\n isPending = _updateState2[0],\n setPending = _updateState2[1];\n return [\n updateCallback(\n function(callback) {\n setPending(!0);\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setPending(!1), callback();\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [config, isPending]\n ),\n isPending\n ];\n }\n },\n hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1;\nfunction tryHydrate(fiber, nextInstance) {\n switch (fiber.tag) {\n case 5:\n return (\n (nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n case 6:\n return (\n (nextInstance = shim$1(nextInstance, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n case 13:\n return !1;\n default:\n return !1;\n }\n}\nfunction tryToClaimNextHydratableInstance(fiber$jscomp$0) {\n if (isHydrating) {\n var nextInstance = nextHydratableInstance;\n if (nextInstance) {\n var firstAttemptedInstance = nextInstance;\n if (!tryHydrate(fiber$jscomp$0, nextInstance)) {\n nextInstance = shim$1(firstAttemptedInstance);\n if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) {\n fiber$jscomp$0.effectTag = (fiber$jscomp$0.effectTag & -1025) | 2;\n isHydrating = !1;\n hydrationParentFiber = fiber$jscomp$0;\n return;\n }\n var returnFiber = hydrationParentFiber,\n fiber = createFiber(5, null, null, 0);\n fiber.elementType = \"DELETED\";\n fiber.type = \"DELETED\";\n fiber.stateNode = firstAttemptedInstance;\n fiber.return = returnFiber;\n fiber.effectTag = 8;\n null !== returnFiber.lastEffect\n ? ((returnFiber.lastEffect.nextEffect = fiber),\n (returnFiber.lastEffect = fiber))\n : (returnFiber.firstEffect = returnFiber.lastEffect = fiber);\n }\n hydrationParentFiber = fiber$jscomp$0;\n nextHydratableInstance = shim$1(nextInstance);\n } else\n (fiber$jscomp$0.effectTag = (fiber$jscomp$0.effectTag & -1025) | 2),\n (isHydrating = !1),\n (hydrationParentFiber = fiber$jscomp$0);\n }\n}\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner,\n didReceiveUpdate = !1;\nfunction reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n) {\n workInProgress.child =\n null === current$$1\n ? mountChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )\n : reconcileChildFibers(\n workInProgress,\n current$$1.child,\n nextChildren,\n renderExpirationTime\n );\n}\nfunction updateForwardRef(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n prepareToReadContext(workInProgress, renderExpirationTime);\n nextProps = renderWithHooks(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n ref,\n renderExpirationTime\n );\n if (null !== current$$1 && !didReceiveUpdate)\n return (\n (workInProgress.updateQueue = current$$1.updateQueue),\n (workInProgress.effectTag &= -517),\n current$$1.expirationTime <= renderExpirationTime &&\n (current$$1.expirationTime = 0),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n nextProps,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n if (null === current$$1) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare &&\n void 0 === Component.defaultProps\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n type,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n current$$1 = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n null,\n workInProgress.mode,\n renderExpirationTime\n );\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n }\n type = current$$1.child;\n if (\n updateExpirationTime < renderExpirationTime &&\n ((updateExpirationTime = type.memoizedProps),\n (Component = Component.compare),\n (Component = null !== Component ? Component : shallowEqual),\n Component(updateExpirationTime, nextProps) &&\n current$$1.ref === workInProgress.ref)\n )\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress.effectTag |= 1;\n current$$1 = createWorkInProgress(type, nextProps, renderExpirationTime);\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n}\nfunction updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n return null !== current$$1 &&\n shallowEqual(current$$1.memoizedProps, nextProps) &&\n current$$1.ref === workInProgress.ref &&\n ((didReceiveUpdate = !1), updateExpirationTime < renderExpirationTime)\n ? bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n : updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n );\n}\nfunction markRef(current$$1, workInProgress) {\n var ref = workInProgress.ref;\n if (\n (null === current$$1 && null !== ref) ||\n (null !== current$$1 && current$$1.ref !== ref)\n )\n workInProgress.effectTag |= 128;\n}\nfunction updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n var context = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current;\n context = getMaskedContext(workInProgress, context);\n prepareToReadContext(workInProgress, renderExpirationTime);\n Component = renderWithHooks(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n context,\n renderExpirationTime\n );\n if (null !== current$$1 && !didReceiveUpdate)\n return (\n (workInProgress.updateQueue = current$$1.updateQueue),\n (workInProgress.effectTag &= -517),\n current$$1.expirationTime <= renderExpirationTime &&\n (current$$1.expirationTime = 0),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n Component,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n if (isContextProvider(Component)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n prepareToReadContext(workInProgress, renderExpirationTime);\n if (null === workInProgress.stateNode)\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n constructClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n (nextProps = !0);\n else if (null === current$$1) {\n var instance = workInProgress.stateNode,\n oldProps = workInProgress.memoizedProps;\n instance.props = oldProps;\n var oldContext = instance.context,\n contextType = Component.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = readContext(contextType))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType)));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps,\n hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate;\n hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n oldContext = instance.state = oldState;\n var updateQueue = workInProgress.updateQueue;\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldContext = workInProgress.memoizedState));\n oldProps !== nextProps ||\n oldState !== oldContext ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n (\"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount()),\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (instance.props = nextProps),\n (instance.state = oldContext),\n (instance.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (nextProps = !1));\n } else\n (instance = workInProgress.stateNode),\n (oldProps = workInProgress.memoizedProps),\n (instance.props =\n workInProgress.type === workInProgress.elementType\n ? oldProps\n : resolveDefaultProps(workInProgress.type, oldProps)),\n (oldContext = instance.context),\n (contextType = Component.contextType),\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = readContext(contextType))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType))),\n (getDerivedStateFromProps = Component.getDerivedStateFromProps),\n (hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n )),\n (hasForceUpdate = !1),\n (oldContext = workInProgress.memoizedState),\n (oldState = instance.state = oldContext),\n (updateQueue = workInProgress.updateQueue),\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldState = workInProgress.memoizedState)),\n oldProps !== nextProps ||\n oldContext !== oldState ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldState = workInProgress.memoizedState)),\n (getDerivedStateFromProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldContext,\n oldState,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof instance.componentWillUpdate) ||\n (\"function\" === typeof instance.componentWillUpdate &&\n instance.componentWillUpdate(\n nextProps,\n oldState,\n contextType\n ),\n \"function\" === typeof instance.UNSAFE_componentWillUpdate &&\n instance.UNSAFE_componentWillUpdate(\n nextProps,\n oldState,\n contextType\n )),\n \"function\" === typeof instance.componentDidUpdate &&\n (workInProgress.effectTag |= 4),\n \"function\" === typeof instance.getSnapshotBeforeUpdate &&\n (workInProgress.effectTag |= 256))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldState)),\n (instance.props = nextProps),\n (instance.state = oldState),\n (instance.context = contextType),\n (nextProps = getDerivedStateFromProps))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (nextProps = !1));\n return finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n hasContext,\n renderExpirationTime\n );\n}\nfunction finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n shouldUpdate,\n hasContext,\n renderExpirationTime\n) {\n markRef(current$$1, workInProgress);\n var didCaptureError = 0 !== (workInProgress.effectTag & 64);\n if (!shouldUpdate && !didCaptureError)\n return (\n hasContext && invalidateContextProvider(workInProgress, Component, !1),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n shouldUpdate = workInProgress.stateNode;\n ReactCurrentOwner$3.current = workInProgress;\n var nextChildren =\n didCaptureError && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : shouldUpdate.render();\n workInProgress.effectTag |= 1;\n null !== current$$1 && didCaptureError\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current$$1.child,\n null,\n renderExpirationTime\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )))\n : reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n );\n workInProgress.memoizedState = shouldUpdate.state;\n hasContext && invalidateContextProvider(workInProgress, Component, !0);\n return workInProgress.child;\n}\nfunction pushHostRootContext(workInProgress) {\n var root = workInProgress.stateNode;\n root.pendingContext\n ? pushTopLevelContextObject(\n workInProgress,\n root.pendingContext,\n root.pendingContext !== root.context\n )\n : root.context &&\n pushTopLevelContextObject(workInProgress, root.context, !1);\n pushHostContainer(workInProgress, root.containerInfo);\n}\nvar SUSPENDED_MARKER = { dehydrated: null, retryTime: 0 };\nfunction updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n var mode = workInProgress.mode,\n nextProps = workInProgress.pendingProps,\n suspenseContext = suspenseStackCursor.current,\n nextDidTimeout = !1,\n JSCompiler_temp;\n (JSCompiler_temp = 0 !== (workInProgress.effectTag & 64)) ||\n (JSCompiler_temp =\n 0 !== (suspenseContext & 2) &&\n (null === current$$1 || null !== current$$1.memoizedState));\n JSCompiler_temp\n ? ((nextDidTimeout = !0), (workInProgress.effectTag &= -65))\n : (null !== current$$1 && null === current$$1.memoizedState) ||\n void 0 === nextProps.fallback ||\n !0 === nextProps.unstable_avoidThisFallback ||\n (suspenseContext |= 1);\n push(suspenseStackCursor, suspenseContext & 1, workInProgress);\n if (null === current$$1) {\n void 0 !== nextProps.fallback &&\n tryToClaimNextHydratableInstance(workInProgress);\n if (nextDidTimeout) {\n nextDidTimeout = nextProps.fallback;\n nextProps = createFiberFromFragment(null, mode, 0, null);\n nextProps.return = workInProgress;\n if (0 === (workInProgress.mode & 2))\n for (\n current$$1 =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child,\n nextProps.child = current$$1;\n null !== current$$1;\n\n )\n (current$$1.return = nextProps), (current$$1 = current$$1.sibling);\n renderExpirationTime = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n );\n renderExpirationTime.return = workInProgress;\n nextProps.sibling = renderExpirationTime;\n workInProgress.memoizedState = SUSPENDED_MARKER;\n workInProgress.child = nextProps;\n return renderExpirationTime;\n }\n mode = nextProps.children;\n workInProgress.memoizedState = null;\n return (workInProgress.child = mountChildFibers(\n workInProgress,\n null,\n mode,\n renderExpirationTime\n ));\n }\n if (null !== current$$1.memoizedState) {\n current$$1 = current$$1.child;\n mode = current$$1.sibling;\n if (nextDidTimeout) {\n nextProps = nextProps.fallback;\n renderExpirationTime = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n 0\n );\n renderExpirationTime.return = workInProgress;\n if (\n 0 === (workInProgress.mode & 2) &&\n ((nextDidTimeout =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n nextDidTimeout !== current$$1.child)\n )\n for (\n renderExpirationTime.child = nextDidTimeout;\n null !== nextDidTimeout;\n\n )\n (nextDidTimeout.return = renderExpirationTime),\n (nextDidTimeout = nextDidTimeout.sibling);\n mode = createWorkInProgress(mode, nextProps, mode.expirationTime);\n mode.return = workInProgress;\n renderExpirationTime.sibling = mode;\n renderExpirationTime.childExpirationTime = 0;\n workInProgress.memoizedState = SUSPENDED_MARKER;\n workInProgress.child = renderExpirationTime;\n return mode;\n }\n renderExpirationTime = reconcileChildFibers(\n workInProgress,\n current$$1.child,\n nextProps.children,\n renderExpirationTime\n );\n workInProgress.memoizedState = null;\n return (workInProgress.child = renderExpirationTime);\n }\n current$$1 = current$$1.child;\n if (nextDidTimeout) {\n nextDidTimeout = nextProps.fallback;\n nextProps = createFiberFromFragment(null, mode, 0, null);\n nextProps.return = workInProgress;\n nextProps.child = current$$1;\n null !== current$$1 && (current$$1.return = nextProps);\n if (0 === (workInProgress.mode & 2))\n for (\n current$$1 =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child,\n nextProps.child = current$$1;\n null !== current$$1;\n\n )\n (current$$1.return = nextProps), (current$$1 = current$$1.sibling);\n renderExpirationTime = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n );\n renderExpirationTime.return = workInProgress;\n nextProps.sibling = renderExpirationTime;\n renderExpirationTime.effectTag |= 2;\n nextProps.childExpirationTime = 0;\n workInProgress.memoizedState = SUSPENDED_MARKER;\n workInProgress.child = nextProps;\n return renderExpirationTime;\n }\n workInProgress.memoizedState = null;\n return (workInProgress.child = reconcileChildFibers(\n workInProgress,\n current$$1,\n nextProps.children,\n renderExpirationTime\n ));\n}\nfunction scheduleWorkOnFiber(fiber, renderExpirationTime) {\n fiber.expirationTime < renderExpirationTime &&\n (fiber.expirationTime = renderExpirationTime);\n var alternate = fiber.alternate;\n null !== alternate &&\n alternate.expirationTime < renderExpirationTime &&\n (alternate.expirationTime = renderExpirationTime);\n scheduleWorkOnParentPath(fiber.return, renderExpirationTime);\n}\nfunction initSuspenseListRenderState(\n workInProgress,\n isBackwards,\n tail,\n lastContentRow,\n tailMode,\n lastEffectBeforeRendering\n) {\n var renderState = workInProgress.memoizedState;\n null === renderState\n ? (workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n last: lastContentRow,\n tail: tail,\n tailExpiration: 0,\n tailMode: tailMode,\n lastEffect: lastEffectBeforeRendering\n })\n : ((renderState.isBackwards = isBackwards),\n (renderState.rendering = null),\n (renderState.last = lastContentRow),\n (renderState.tail = tail),\n (renderState.tailExpiration = 0),\n (renderState.tailMode = tailMode),\n (renderState.lastEffect = lastEffectBeforeRendering));\n}\nfunction updateSuspenseListComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n var nextProps = workInProgress.pendingProps,\n revealOrder = nextProps.revealOrder,\n tailMode = nextProps.tail;\n reconcileChildren(\n current$$1,\n workInProgress,\n nextProps.children,\n renderExpirationTime\n );\n nextProps = suspenseStackCursor.current;\n if (0 !== (nextProps & 2))\n (nextProps = (nextProps & 1) | 2), (workInProgress.effectTag |= 64);\n else {\n if (null !== current$$1 && 0 !== (current$$1.effectTag & 64))\n a: for (current$$1 = workInProgress.child; null !== current$$1; ) {\n if (13 === current$$1.tag)\n null !== current$$1.memoizedState &&\n scheduleWorkOnFiber(current$$1, renderExpirationTime);\n else if (19 === current$$1.tag)\n scheduleWorkOnFiber(current$$1, renderExpirationTime);\n else if (null !== current$$1.child) {\n current$$1.child.return = current$$1;\n current$$1 = current$$1.child;\n continue;\n }\n if (current$$1 === workInProgress) break a;\n for (; null === current$$1.sibling; ) {\n if (\n null === current$$1.return ||\n current$$1.return === workInProgress\n )\n break a;\n current$$1 = current$$1.return;\n }\n current$$1.sibling.return = current$$1.return;\n current$$1 = current$$1.sibling;\n }\n nextProps &= 1;\n }\n push(suspenseStackCursor, nextProps, workInProgress);\n if (0 === (workInProgress.mode & 2)) workInProgress.memoizedState = null;\n else\n switch (revealOrder) {\n case \"forwards\":\n renderExpirationTime = workInProgress.child;\n for (revealOrder = null; null !== renderExpirationTime; )\n (current$$1 = renderExpirationTime.alternate),\n null !== current$$1 &&\n null === findFirstSuspended(current$$1) &&\n (revealOrder = renderExpirationTime),\n (renderExpirationTime = renderExpirationTime.sibling);\n renderExpirationTime = revealOrder;\n null === renderExpirationTime\n ? ((revealOrder = workInProgress.child),\n (workInProgress.child = null))\n : ((revealOrder = renderExpirationTime.sibling),\n (renderExpirationTime.sibling = null));\n initSuspenseListRenderState(\n workInProgress,\n !1,\n revealOrder,\n renderExpirationTime,\n tailMode,\n workInProgress.lastEffect\n );\n break;\n case \"backwards\":\n renderExpirationTime = null;\n revealOrder = workInProgress.child;\n for (workInProgress.child = null; null !== revealOrder; ) {\n current$$1 = revealOrder.alternate;\n if (null !== current$$1 && null === findFirstSuspended(current$$1)) {\n workInProgress.child = revealOrder;\n break;\n }\n current$$1 = revealOrder.sibling;\n revealOrder.sibling = renderExpirationTime;\n renderExpirationTime = revealOrder;\n revealOrder = current$$1;\n }\n initSuspenseListRenderState(\n workInProgress,\n !0,\n renderExpirationTime,\n null,\n tailMode,\n workInProgress.lastEffect\n );\n break;\n case \"together\":\n initSuspenseListRenderState(\n workInProgress,\n !1,\n null,\n null,\n void 0,\n workInProgress.lastEffect\n );\n break;\n default:\n workInProgress.memoizedState = null;\n }\n return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n null !== current$$1 &&\n (workInProgress.dependencies = current$$1.dependencies);\n var updateExpirationTime = workInProgress.expirationTime;\n 0 !== updateExpirationTime && markUnprocessedUpdateTime(updateExpirationTime);\n if (workInProgress.childExpirationTime < renderExpirationTime) return null;\n if (null !== current$$1 && workInProgress.child !== current$$1.child)\n throw Error(\"Resuming work not yet implemented.\");\n if (null !== workInProgress.child) {\n current$$1 = workInProgress.child;\n renderExpirationTime = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n );\n workInProgress.child = renderExpirationTime;\n for (\n renderExpirationTime.return = workInProgress;\n null !== current$$1.sibling;\n\n )\n (current$$1 = current$$1.sibling),\n (renderExpirationTime = renderExpirationTime.sibling = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n )),\n (renderExpirationTime.return = workInProgress);\n renderExpirationTime.sibling = null;\n }\n return workInProgress.child;\n}\nvar appendAllChildren,\n updateHostContainer,\n updateHostComponent$1,\n updateHostText$1;\nappendAllChildren = function(parent, workInProgress) {\n for (var node = workInProgress.child; null !== node; ) {\n if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);\n else if (4 !== node.tag && null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === workInProgress) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === workInProgress) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n};\nupdateHostContainer = function() {};\nupdateHostComponent$1 = function(current, workInProgress, type, newProps) {\n current.memoizedProps !== newProps &&\n (requiredContext(contextStackCursor$1.current),\n (workInProgress.updateQueue = UPDATE_SIGNAL)) &&\n (workInProgress.effectTag |= 4);\n};\nupdateHostText$1 = function(current, workInProgress, oldText, newText) {\n oldText !== newText && (workInProgress.effectTag |= 4);\n};\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n switch (renderState.tailMode) {\n case \"hidden\":\n hasRenderedATailFallback = renderState.tail;\n for (var lastTailNode = null; null !== hasRenderedATailFallback; )\n null !== hasRenderedATailFallback.alternate &&\n (lastTailNode = hasRenderedATailFallback),\n (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n null === lastTailNode\n ? (renderState.tail = null)\n : (lastTailNode.sibling = null);\n break;\n case \"collapsed\":\n lastTailNode = renderState.tail;\n for (var _lastTailNode = null; null !== lastTailNode; )\n null !== lastTailNode.alternate && (_lastTailNode = lastTailNode),\n (lastTailNode = lastTailNode.sibling);\n null === _lastTailNode\n ? hasRenderedATailFallback || null === renderState.tail\n ? (renderState.tail = null)\n : (renderState.tail.sibling = null)\n : (_lastTailNode.sibling = null);\n }\n}\nfunction unwindWork(workInProgress) {\n switch (workInProgress.tag) {\n case 1:\n isContextProvider(workInProgress.type) && popContext(workInProgress);\n var effectTag = workInProgress.effectTag;\n return effectTag & 4096\n ? ((workInProgress.effectTag = (effectTag & -4097) | 64),\n workInProgress)\n : null;\n case 3:\n popHostContainer(workInProgress);\n popTopLevelContextObject(workInProgress);\n effectTag = workInProgress.effectTag;\n if (0 !== (effectTag & 64))\n throw Error(\n \"The root failed to unmount after an error. This is likely a bug in React. Please file an issue.\"\n );\n workInProgress.effectTag = (effectTag & -4097) | 64;\n return workInProgress;\n case 5:\n return popHostContext(workInProgress), null;\n case 13:\n return (\n pop(suspenseStackCursor, workInProgress),\n (effectTag = workInProgress.effectTag),\n effectTag & 4096\n ? ((workInProgress.effectTag = (effectTag & -4097) | 64),\n workInProgress)\n : null\n );\n case 19:\n return pop(suspenseStackCursor, workInProgress), null;\n case 4:\n return popHostContainer(workInProgress), null;\n case 10:\n return popProvider(workInProgress), null;\n default:\n return null;\n }\n}\nfunction createCapturedValue(value, source) {\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nif (\n \"function\" !==\n typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog\n)\n throw Error(\n \"Expected ReactFiberErrorDialog.showErrorDialog to be a function.\"\n );\nfunction logCapturedError(capturedError) {\n !1 !==\n ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog(\n capturedError\n ) && console.error(capturedError.error);\n}\nvar PossiblyWeakSet = \"function\" === typeof WeakSet ? WeakSet : Set;\nfunction logError(boundary, errorInfo) {\n var source = errorInfo.source,\n stack = errorInfo.stack;\n null === stack &&\n null !== source &&\n (stack = getStackByFiberInDevAndProd(source));\n errorInfo = {\n componentName: null !== source ? getComponentName(source.type) : null,\n componentStack: null !== stack ? stack : \"\",\n error: errorInfo.value,\n errorBoundary: null,\n errorBoundaryName: null,\n errorBoundaryFound: !1,\n willRetry: !1\n };\n null !== boundary &&\n 1 === boundary.tag &&\n ((errorInfo.errorBoundary = boundary.stateNode),\n (errorInfo.errorBoundaryName = getComponentName(boundary.type)),\n (errorInfo.errorBoundaryFound = !0),\n (errorInfo.willRetry = !0));\n try {\n logCapturedError(errorInfo);\n } catch (e) {\n setTimeout(function() {\n throw e;\n });\n }\n}\nfunction safelyCallComponentWillUnmount(current$$1, instance) {\n try {\n (instance.props = current$$1.memoizedProps),\n (instance.state = current$$1.memoizedState),\n instance.componentWillUnmount();\n } catch (unmountError) {\n captureCommitPhaseError(current$$1, unmountError);\n }\n}\nfunction safelyDetachRef(current$$1) {\n var ref = current$$1.ref;\n if (null !== ref)\n if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (refError) {\n captureCommitPhaseError(current$$1, refError);\n }\n else ref.current = null;\n}\nfunction commitBeforeMutationLifeCycles(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectList(2, 0, finishedWork);\n break;\n case 1:\n if (finishedWork.effectTag & 256 && null !== current$$1) {\n var prevProps = current$$1.memoizedProps,\n prevState = current$$1.memoizedState;\n current$$1 = finishedWork.stateNode;\n finishedWork = current$$1.getSnapshotBeforeUpdate(\n finishedWork.elementType === finishedWork.type\n ? prevProps\n : resolveDefaultProps(finishedWork.type, prevProps),\n prevState\n );\n current$$1.__reactInternalSnapshotBeforeUpdate = finishedWork;\n }\n break;\n case 3:\n case 5:\n case 6:\n case 4:\n case 17:\n break;\n default:\n throw Error(\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nfunction commitHookEffectList(unmountTag, mountTag, finishedWork) {\n finishedWork = finishedWork.updateQueue;\n finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;\n if (null !== finishedWork) {\n var effect = (finishedWork = finishedWork.next);\n do {\n if (0 !== (effect.tag & unmountTag)) {\n var destroy = effect.destroy;\n effect.destroy = void 0;\n void 0 !== destroy && destroy();\n }\n 0 !== (effect.tag & mountTag) &&\n ((destroy = effect.create), (effect.destroy = destroy()));\n effect = effect.next;\n } while (effect !== finishedWork);\n }\n}\nfunction commitUnmount(finishedRoot, current$$1$jscomp$0, renderPriorityLevel) {\n \"function\" === typeof onCommitFiberUnmount &&\n onCommitFiberUnmount(current$$1$jscomp$0);\n switch (current$$1$jscomp$0.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n finishedRoot = current$$1$jscomp$0.updateQueue;\n if (\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.lastEffect), null !== finishedRoot)\n ) {\n var firstEffect = finishedRoot.next;\n runWithPriority(\n 97 < renderPriorityLevel ? 97 : renderPriorityLevel,\n function() {\n var effect = firstEffect;\n do {\n var destroy = effect.destroy;\n if (void 0 !== destroy) {\n var current$$1 = current$$1$jscomp$0;\n try {\n destroy();\n } catch (error) {\n captureCommitPhaseError(current$$1, error);\n }\n }\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n );\n }\n break;\n case 1:\n safelyDetachRef(current$$1$jscomp$0);\n renderPriorityLevel = current$$1$jscomp$0.stateNode;\n \"function\" === typeof renderPriorityLevel.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n current$$1$jscomp$0,\n renderPriorityLevel\n );\n break;\n case 5:\n safelyDetachRef(current$$1$jscomp$0);\n break;\n case 4:\n unmountHostComponents(\n finishedRoot,\n current$$1$jscomp$0,\n renderPriorityLevel\n );\n }\n}\nfunction detachFiber(current$$1) {\n var alternate = current$$1.alternate;\n current$$1.return = null;\n current$$1.child = null;\n current$$1.memoizedState = null;\n current$$1.updateQueue = null;\n current$$1.dependencies = null;\n current$$1.alternate = null;\n current$$1.firstEffect = null;\n current$$1.lastEffect = null;\n current$$1.pendingProps = null;\n current$$1.memoizedProps = null;\n null !== alternate && detachFiber(alternate);\n}\nfunction isHostParent(fiber) {\n return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;\n}\nfunction commitPlacement(finishedWork) {\n a: {\n for (var parent = finishedWork.return; null !== parent; ) {\n if (isHostParent(parent)) {\n var parentFiber = parent;\n break a;\n }\n parent = parent.return;\n }\n throw Error(\n \"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n parent = parentFiber.stateNode;\n switch (parentFiber.tag) {\n case 5:\n var isContainer = !1;\n break;\n case 3:\n parent = parent.containerInfo;\n isContainer = !0;\n break;\n case 4:\n parent = parent.containerInfo;\n isContainer = !0;\n break;\n default:\n throw Error(\n \"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n parentFiber.effectTag & 16 && (parentFiber.effectTag &= -17);\n a: b: for (parentFiber = finishedWork; ; ) {\n for (; null === parentFiber.sibling; ) {\n if (null === parentFiber.return || isHostParent(parentFiber.return)) {\n parentFiber = null;\n break a;\n }\n parentFiber = parentFiber.return;\n }\n parentFiber.sibling.return = parentFiber.return;\n for (\n parentFiber = parentFiber.sibling;\n 5 !== parentFiber.tag && 6 !== parentFiber.tag && 18 !== parentFiber.tag;\n\n ) {\n if (parentFiber.effectTag & 2) continue b;\n if (null === parentFiber.child || 4 === parentFiber.tag) continue b;\n else\n (parentFiber.child.return = parentFiber),\n (parentFiber = parentFiber.child);\n }\n if (!(parentFiber.effectTag & 2)) {\n parentFiber = parentFiber.stateNode;\n break a;\n }\n }\n for (var node = finishedWork; ; ) {\n var isHost = 5 === node.tag || 6 === node.tag;\n if (isHost) {\n var stateNode = isHost ? node.stateNode : node.stateNode.instance;\n if (parentFiber)\n if (isContainer) {\n if (\"number\" === typeof parent)\n throw Error(\"Container does not support insertBefore operation\");\n } else {\n isHost = parent;\n var beforeChild = parentFiber,\n children = isHost._children,\n index = children.indexOf(stateNode);\n 0 <= index\n ? (children.splice(index, 1),\n (beforeChild = children.indexOf(beforeChild)),\n children.splice(beforeChild, 0, stateNode),\n ReactNativePrivateInterface.UIManager.manageChildren(\n isHost._nativeTag,\n [index],\n [beforeChild],\n [],\n [],\n []\n ))\n : ((index = children.indexOf(beforeChild)),\n children.splice(index, 0, stateNode),\n ReactNativePrivateInterface.UIManager.manageChildren(\n isHost._nativeTag,\n [],\n [],\n [\n \"number\" === typeof stateNode\n ? stateNode\n : stateNode._nativeTag\n ],\n [index],\n []\n ));\n }\n else\n isContainer\n ? ReactNativePrivateInterface.UIManager.setChildren(parent, [\n \"number\" === typeof stateNode ? stateNode : stateNode._nativeTag\n ])\n : ((isHost = parent),\n (children =\n \"number\" === typeof stateNode ? stateNode : stateNode._nativeTag),\n (index = isHost._children),\n (beforeChild = index.indexOf(stateNode)),\n 0 <= beforeChild\n ? (index.splice(beforeChild, 1),\n index.push(stateNode),\n ReactNativePrivateInterface.UIManager.manageChildren(\n isHost._nativeTag,\n [beforeChild],\n [index.length - 1],\n [],\n [],\n []\n ))\n : (index.push(stateNode),\n ReactNativePrivateInterface.UIManager.manageChildren(\n isHost._nativeTag,\n [],\n [],\n [children],\n [index.length - 1],\n []\n )));\n } else if (4 !== node.tag && null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === finishedWork) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === finishedWork) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\nfunction unmountHostComponents(\n finishedRoot$jscomp$0,\n current$$1,\n renderPriorityLevel$jscomp$0\n) {\n for (\n var node = current$$1,\n currentParentIsValid = !1,\n currentParent,\n currentParentIsContainer;\n ;\n\n ) {\n if (!currentParentIsValid) {\n currentParentIsValid = node.return;\n a: for (;;) {\n if (null === currentParentIsValid)\n throw Error(\n \"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n currentParent = currentParentIsValid.stateNode;\n switch (currentParentIsValid.tag) {\n case 5:\n currentParentIsContainer = !1;\n break a;\n case 3:\n currentParent = currentParent.containerInfo;\n currentParentIsContainer = !0;\n break a;\n case 4:\n currentParent = currentParent.containerInfo;\n currentParentIsContainer = !0;\n break a;\n }\n currentParentIsValid = currentParentIsValid.return;\n }\n currentParentIsValid = !0;\n }\n if (5 === node.tag || 6 === node.tag) {\n a: for (\n var finishedRoot = finishedRoot$jscomp$0,\n root = node,\n renderPriorityLevel = renderPriorityLevel$jscomp$0,\n node$jscomp$0 = root;\n ;\n\n )\n if (\n (commitUnmount(finishedRoot, node$jscomp$0, renderPriorityLevel),\n null !== node$jscomp$0.child && 4 !== node$jscomp$0.tag)\n )\n (node$jscomp$0.child.return = node$jscomp$0),\n (node$jscomp$0 = node$jscomp$0.child);\n else {\n if (node$jscomp$0 === root) break;\n for (; null === node$jscomp$0.sibling; ) {\n if (null === node$jscomp$0.return || node$jscomp$0.return === root)\n break a;\n node$jscomp$0 = node$jscomp$0.return;\n }\n node$jscomp$0.sibling.return = node$jscomp$0.return;\n node$jscomp$0 = node$jscomp$0.sibling;\n }\n currentParentIsContainer\n ? ((finishedRoot = currentParent),\n recursivelyUncacheFiberNode(node.stateNode),\n ReactNativePrivateInterface.UIManager.manageChildren(\n finishedRoot,\n [],\n [],\n [],\n [],\n [0]\n ))\n : ((finishedRoot = currentParent),\n (renderPriorityLevel = node.stateNode),\n recursivelyUncacheFiberNode(renderPriorityLevel),\n (root = finishedRoot._children),\n (renderPriorityLevel = root.indexOf(renderPriorityLevel)),\n root.splice(renderPriorityLevel, 1),\n ReactNativePrivateInterface.UIManager.manageChildren(\n finishedRoot._nativeTag,\n [],\n [],\n [],\n [],\n [renderPriorityLevel]\n ));\n } else if (4 === node.tag) {\n if (null !== node.child) {\n currentParent = node.stateNode.containerInfo;\n currentParentIsContainer = !0;\n node.child.return = node;\n node = node.child;\n continue;\n }\n } else if (\n (commitUnmount(finishedRoot$jscomp$0, node, renderPriorityLevel$jscomp$0),\n null !== node.child)\n ) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === current$$1) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === current$$1) return;\n node = node.return;\n 4 === node.tag && (currentParentIsValid = !1);\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\nfunction commitWork(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n commitHookEffectList(4, 8, finishedWork);\n break;\n case 1:\n break;\n case 5:\n var instance = finishedWork.stateNode;\n if (null != instance) {\n var newProps = finishedWork.memoizedProps;\n current$$1 = null !== current$$1 ? current$$1.memoizedProps : newProps;\n var updatePayload = finishedWork.updateQueue;\n finishedWork.updateQueue = null;\n null !== updatePayload &&\n ((finishedWork = instance.viewConfig),\n instanceProps.set(instance._nativeTag, newProps),\n (newProps = diffProperties(\n null,\n current$$1,\n newProps,\n finishedWork.validAttributes\n )),\n null != newProps &&\n ReactNativePrivateInterface.UIManager.updateView(\n instance._nativeTag,\n finishedWork.uiViewClassName,\n newProps\n ));\n }\n break;\n case 6:\n if (null === finishedWork.stateNode)\n throw Error(\n \"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\"\n );\n ReactNativePrivateInterface.UIManager.updateView(\n finishedWork.stateNode,\n \"RCTRawText\",\n { text: finishedWork.memoizedProps }\n );\n break;\n case 3:\n break;\n case 12:\n break;\n case 13:\n instance = finishedWork;\n null === finishedWork.memoizedState\n ? (newProps = !1)\n : ((newProps = !0),\n (instance = finishedWork.child),\n (globalMostRecentFallbackTime = now()));\n if (null !== instance)\n a: for (current$$1 = instance; ; ) {\n if (5 === current$$1.tag)\n if (((updatePayload = current$$1.stateNode), newProps)) {\n var viewConfig = updatePayload.viewConfig;\n var updatePayload$jscomp$0 = diffProperties(\n null,\n emptyObject,\n { style: { display: \"none\" } },\n viewConfig.validAttributes\n );\n ReactNativePrivateInterface.UIManager.updateView(\n updatePayload._nativeTag,\n viewConfig.uiViewClassName,\n updatePayload$jscomp$0\n );\n } else {\n updatePayload = current$$1.stateNode;\n updatePayload$jscomp$0 = current$$1.memoizedProps;\n viewConfig = updatePayload.viewConfig;\n var prevProps = Object.assign({}, updatePayload$jscomp$0, {\n style: [updatePayload$jscomp$0.style, { display: \"none\" }]\n });\n updatePayload$jscomp$0 = diffProperties(\n null,\n prevProps,\n updatePayload$jscomp$0,\n viewConfig.validAttributes\n );\n ReactNativePrivateInterface.UIManager.updateView(\n updatePayload._nativeTag,\n viewConfig.uiViewClassName,\n updatePayload$jscomp$0\n );\n }\n else {\n if (6 === current$$1.tag) throw Error(\"Not yet implemented.\");\n if (\n 13 === current$$1.tag &&\n null !== current$$1.memoizedState &&\n null === current$$1.memoizedState.dehydrated\n ) {\n updatePayload = current$$1.child.sibling;\n updatePayload.return = current$$1;\n current$$1 = updatePayload;\n continue;\n } else if (null !== current$$1.child) {\n current$$1.child.return = current$$1;\n current$$1 = current$$1.child;\n continue;\n }\n }\n if (current$$1 === instance) break a;\n for (; null === current$$1.sibling; ) {\n if (null === current$$1.return || current$$1.return === instance)\n break a;\n current$$1 = current$$1.return;\n }\n current$$1.sibling.return = current$$1.return;\n current$$1 = current$$1.sibling;\n }\n attachSuspenseRetryListeners(finishedWork);\n break;\n case 19:\n attachSuspenseRetryListeners(finishedWork);\n break;\n case 17:\n break;\n case 20:\n break;\n case 21:\n break;\n default:\n throw Error(\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nfunction attachSuspenseRetryListeners(finishedWork) {\n var thenables = finishedWork.updateQueue;\n if (null !== thenables) {\n finishedWork.updateQueue = null;\n var retryCache = finishedWork.stateNode;\n null === retryCache &&\n (retryCache = finishedWork.stateNode = new PossiblyWeakSet());\n thenables.forEach(function(thenable) {\n var retry = resolveRetryThenable.bind(null, finishedWork, thenable);\n retryCache.has(thenable) ||\n (retryCache.add(thenable), thenable.then(retry, retry));\n });\n }\n}\nvar PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map;\nfunction createRootErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime, null);\n expirationTime.tag = 3;\n expirationTime.payload = { element: null };\n var error = errorInfo.value;\n expirationTime.callback = function() {\n hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));\n logError(fiber, errorInfo);\n };\n return expirationTime;\n}\nfunction createClassErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime, null);\n expirationTime.tag = 3;\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error = errorInfo.value;\n expirationTime.payload = function() {\n logError(fiber, errorInfo);\n return getDerivedStateFromError(error);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (expirationTime.callback = function() {\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this),\n logError(fiber, errorInfo));\n var stack = errorInfo.stack;\n this.componentDidCatch(errorInfo.value, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n return expirationTime;\n}\nvar ceil = Math.ceil,\n ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,\n ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,\n NoContext = 0,\n LegacyUnbatchedContext = 8,\n RenderContext = 16,\n CommitContext = 32,\n RootIncomplete = 0,\n RootFatalErrored = 1,\n RootErrored = 2,\n RootSuspended = 3,\n RootSuspendedWithDelay = 4,\n RootCompleted = 5,\n executionContext = NoContext,\n workInProgressRoot = null,\n workInProgress = null,\n renderExpirationTime = 0,\n workInProgressRootExitStatus = RootIncomplete,\n workInProgressRootFatalError = null,\n workInProgressRootLatestProcessedExpirationTime = 1073741823,\n workInProgressRootLatestSuspenseTimeout = 1073741823,\n workInProgressRootCanSuspendUsingConfig = null,\n workInProgressRootNextUnprocessedUpdateTime = 0,\n workInProgressRootHasPendingPing = !1,\n globalMostRecentFallbackTime = 0,\n FALLBACK_THROTTLE_MS = 500,\n nextEffect = null,\n hasUncaughtError = !1,\n firstUncaughtError = null,\n legacyErrorBoundariesThatAlreadyFailed = null,\n rootDoesHavePassiveEffects = !1,\n rootWithPendingPassiveEffects = null,\n pendingPassiveEffectsRenderPriority = 90,\n rootsWithPendingDiscreteUpdates = null,\n nestedUpdateCount = 0,\n rootWithNestedUpdates = null,\n currentEventTime = 0;\nfunction requestCurrentTimeForUpdate() {\n return (executionContext & (RenderContext | CommitContext)) !== NoContext\n ? 1073741821 - ((now() / 10) | 0)\n : 0 !== currentEventTime\n ? currentEventTime\n : (currentEventTime = 1073741821 - ((now() / 10) | 0));\n}\nfunction computeExpirationForFiber(currentTime, fiber, suspenseConfig) {\n fiber = fiber.mode;\n if (0 === (fiber & 2)) return 1073741823;\n var priorityLevel = getCurrentPriorityLevel();\n if (0 === (fiber & 4)) return 99 === priorityLevel ? 1073741823 : 1073741822;\n if ((executionContext & RenderContext) !== NoContext)\n return renderExpirationTime;\n if (null !== suspenseConfig)\n currentTime =\n 1073741821 -\n 25 *\n ((((1073741821 -\n currentTime +\n (suspenseConfig.timeoutMs | 0 || 5e3) / 10) /\n 25) |\n 0) +\n 1);\n else\n switch (priorityLevel) {\n case 99:\n currentTime = 1073741823;\n break;\n case 98:\n currentTime =\n 1073741821 - 10 * ((((1073741821 - currentTime + 15) / 10) | 0) + 1);\n break;\n case 97:\n case 96:\n currentTime =\n 1073741821 - 25 * ((((1073741821 - currentTime + 500) / 25) | 0) + 1);\n break;\n case 95:\n currentTime = 2;\n break;\n default:\n throw Error(\"Expected a valid priority level\");\n }\n null !== workInProgressRoot &&\n currentTime === renderExpirationTime &&\n --currentTime;\n return currentTime;\n}\nfunction scheduleUpdateOnFiber(fiber, expirationTime) {\n if (50 < nestedUpdateCount)\n throw ((nestedUpdateCount = 0),\n (rootWithNestedUpdates = null),\n Error(\n \"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\"\n ));\n fiber = markUpdateTimeFromFiberToRoot(fiber, expirationTime);\n if (null !== fiber) {\n var priorityLevel = getCurrentPriorityLevel();\n 1073741823 === expirationTime\n ? (executionContext & LegacyUnbatchedContext) !== NoContext &&\n (executionContext & (RenderContext | CommitContext)) === NoContext\n ? performSyncWorkOnRoot(fiber)\n : (ensureRootIsScheduled(fiber),\n executionContext === NoContext && flushSyncCallbackQueue())\n : ensureRootIsScheduled(fiber);\n (executionContext & 4) === NoContext ||\n (98 !== priorityLevel && 99 !== priorityLevel) ||\n (null === rootsWithPendingDiscreteUpdates\n ? (rootsWithPendingDiscreteUpdates = new Map([[fiber, expirationTime]]))\n : ((priorityLevel = rootsWithPendingDiscreteUpdates.get(fiber)),\n (void 0 === priorityLevel || priorityLevel > expirationTime) &&\n rootsWithPendingDiscreteUpdates.set(fiber, expirationTime)));\n }\n}\nfunction markUpdateTimeFromFiberToRoot(fiber, expirationTime) {\n fiber.expirationTime < expirationTime &&\n (fiber.expirationTime = expirationTime);\n var alternate = fiber.alternate;\n null !== alternate &&\n alternate.expirationTime < expirationTime &&\n (alternate.expirationTime = expirationTime);\n var node = fiber.return,\n root = null;\n if (null === node && 3 === fiber.tag) root = fiber.stateNode;\n else\n for (; null !== node; ) {\n alternate = node.alternate;\n node.childExpirationTime < expirationTime &&\n (node.childExpirationTime = expirationTime);\n null !== alternate &&\n alternate.childExpirationTime < expirationTime &&\n (alternate.childExpirationTime = expirationTime);\n if (null === node.return && 3 === node.tag) {\n root = node.stateNode;\n break;\n }\n node = node.return;\n }\n null !== root &&\n (workInProgressRoot === root &&\n (markUnprocessedUpdateTime(expirationTime),\n workInProgressRootExitStatus === RootSuspendedWithDelay &&\n markRootSuspendedAtTime(root, renderExpirationTime)),\n markRootUpdatedAtTime(root, expirationTime));\n return root;\n}\nfunction getNextRootExpirationTimeToWorkOn(root) {\n var lastExpiredTime = root.lastExpiredTime;\n if (0 !== lastExpiredTime) return lastExpiredTime;\n lastExpiredTime = root.firstPendingTime;\n if (!isRootSuspendedAtTime(root, lastExpiredTime)) return lastExpiredTime;\n lastExpiredTime = root.lastPingedTime;\n root = root.nextKnownPendingLevel;\n return lastExpiredTime > root ? lastExpiredTime : root;\n}\nfunction ensureRootIsScheduled(root) {\n if (0 !== root.lastExpiredTime)\n (root.callbackExpirationTime = 1073741823),\n (root.callbackPriority = 99),\n (root.callbackNode = scheduleSyncCallback(\n performSyncWorkOnRoot.bind(null, root)\n ));\n else {\n var expirationTime = getNextRootExpirationTimeToWorkOn(root),\n existingCallbackNode = root.callbackNode;\n if (0 === expirationTime)\n null !== existingCallbackNode &&\n ((root.callbackNode = null),\n (root.callbackExpirationTime = 0),\n (root.callbackPriority = 90));\n else {\n var priorityLevel = requestCurrentTimeForUpdate();\n 1073741823 === expirationTime\n ? (priorityLevel = 99)\n : 1 === expirationTime || 2 === expirationTime\n ? (priorityLevel = 95)\n : ((priorityLevel =\n 10 * (1073741821 - expirationTime) -\n 10 * (1073741821 - priorityLevel)),\n (priorityLevel =\n 0 >= priorityLevel\n ? 99\n : 250 >= priorityLevel\n ? 98\n : 5250 >= priorityLevel\n ? 97\n : 95));\n if (null !== existingCallbackNode) {\n var existingCallbackPriority = root.callbackPriority;\n if (\n root.callbackExpirationTime === expirationTime &&\n existingCallbackPriority >= priorityLevel\n )\n return;\n existingCallbackNode !== fakeCallbackNode &&\n Scheduler_cancelCallback(existingCallbackNode);\n }\n root.callbackExpirationTime = expirationTime;\n root.callbackPriority = priorityLevel;\n expirationTime =\n 1073741823 === expirationTime\n ? scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root))\n : scheduleCallback(\n priorityLevel,\n performConcurrentWorkOnRoot.bind(null, root),\n { timeout: 10 * (1073741821 - expirationTime) - now() }\n );\n root.callbackNode = expirationTime;\n }\n }\n}\nfunction performConcurrentWorkOnRoot(root, didTimeout) {\n currentEventTime = 0;\n if (didTimeout)\n return (\n (didTimeout = requestCurrentTimeForUpdate()),\n markRootExpiredAtTime(root, didTimeout),\n ensureRootIsScheduled(root),\n null\n );\n var expirationTime = getNextRootExpirationTimeToWorkOn(root);\n if (0 !== expirationTime) {\n didTimeout = root.callbackNode;\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Should not already be working.\");\n flushPassiveEffects();\n (root === workInProgressRoot && expirationTime === renderExpirationTime) ||\n prepareFreshStack(root, expirationTime);\n if (null !== workInProgress) {\n var prevExecutionContext = executionContext;\n executionContext |= RenderContext;\n var prevDispatcher = pushDispatcher(root);\n do\n try {\n workLoopConcurrent();\n break;\n } catch (thrownValue) {\n handleError(root, thrownValue);\n }\n while (1);\n resetContextDependencies();\n executionContext = prevExecutionContext;\n ReactCurrentDispatcher.current = prevDispatcher;\n if (workInProgressRootExitStatus === RootFatalErrored)\n throw ((didTimeout = workInProgressRootFatalError),\n prepareFreshStack(root, expirationTime),\n markRootSuspendedAtTime(root, expirationTime),\n ensureRootIsScheduled(root),\n didTimeout);\n if (null === workInProgress)\n switch (\n ((prevDispatcher = root.finishedWork = root.current.alternate),\n (root.finishedExpirationTime = expirationTime),\n (prevExecutionContext = workInProgressRootExitStatus),\n (workInProgressRoot = null),\n prevExecutionContext)\n ) {\n case RootIncomplete:\n case RootFatalErrored:\n throw Error(\"Root did not complete. This is a bug in React.\");\n case RootErrored:\n markRootExpiredAtTime(\n root,\n 2 < expirationTime ? 2 : expirationTime\n );\n break;\n case RootSuspended:\n markRootSuspendedAtTime(root, expirationTime);\n prevExecutionContext = root.lastSuspendedTime;\n expirationTime === prevExecutionContext &&\n (root.nextKnownPendingLevel = getRemainingExpirationTime(\n prevDispatcher\n ));\n if (\n 1073741823 === workInProgressRootLatestProcessedExpirationTime &&\n ((prevDispatcher =\n globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now()),\n 10 < prevDispatcher)\n ) {\n if (workInProgressRootHasPendingPing) {\n var lastPingedTime = root.lastPingedTime;\n if (0 === lastPingedTime || lastPingedTime >= expirationTime) {\n root.lastPingedTime = expirationTime;\n prepareFreshStack(root, expirationTime);\n break;\n }\n }\n lastPingedTime = getNextRootExpirationTimeToWorkOn(root);\n if (0 !== lastPingedTime && lastPingedTime !== expirationTime)\n break;\n if (\n 0 !== prevExecutionContext &&\n prevExecutionContext !== expirationTime\n ) {\n root.lastPingedTime = prevExecutionContext;\n break;\n }\n root.timeoutHandle = scheduleTimeout(\n commitRoot.bind(null, root),\n prevDispatcher\n );\n break;\n }\n commitRoot(root);\n break;\n case RootSuspendedWithDelay:\n markRootSuspendedAtTime(root, expirationTime);\n prevExecutionContext = root.lastSuspendedTime;\n expirationTime === prevExecutionContext &&\n (root.nextKnownPendingLevel = getRemainingExpirationTime(\n prevDispatcher\n ));\n if (\n workInProgressRootHasPendingPing &&\n ((prevDispatcher = root.lastPingedTime),\n 0 === prevDispatcher || prevDispatcher >= expirationTime)\n ) {\n root.lastPingedTime = expirationTime;\n prepareFreshStack(root, expirationTime);\n break;\n }\n prevDispatcher = getNextRootExpirationTimeToWorkOn(root);\n if (0 !== prevDispatcher && prevDispatcher !== expirationTime)\n break;\n if (\n 0 !== prevExecutionContext &&\n prevExecutionContext !== expirationTime\n ) {\n root.lastPingedTime = prevExecutionContext;\n break;\n }\n 1073741823 !== workInProgressRootLatestSuspenseTimeout\n ? (prevExecutionContext =\n 10 * (1073741821 - workInProgressRootLatestSuspenseTimeout) -\n now())\n : 1073741823 === workInProgressRootLatestProcessedExpirationTime\n ? (prevExecutionContext = 0)\n : ((prevExecutionContext =\n 10 *\n (1073741821 -\n workInProgressRootLatestProcessedExpirationTime) -\n 5e3),\n (prevDispatcher = now()),\n (expirationTime =\n 10 * (1073741821 - expirationTime) - prevDispatcher),\n (prevExecutionContext =\n prevDispatcher - prevExecutionContext),\n 0 > prevExecutionContext && (prevExecutionContext = 0),\n (prevExecutionContext =\n (120 > prevExecutionContext\n ? 120\n : 480 > prevExecutionContext\n ? 480\n : 1080 > prevExecutionContext\n ? 1080\n : 1920 > prevExecutionContext\n ? 1920\n : 3e3 > prevExecutionContext\n ? 3e3\n : 4320 > prevExecutionContext\n ? 4320\n : 1960 * ceil(prevExecutionContext / 1960)) -\n prevExecutionContext),\n expirationTime < prevExecutionContext &&\n (prevExecutionContext = expirationTime));\n if (10 < prevExecutionContext) {\n root.timeoutHandle = scheduleTimeout(\n commitRoot.bind(null, root),\n prevExecutionContext\n );\n break;\n }\n commitRoot(root);\n break;\n case RootCompleted:\n if (\n 1073741823 !== workInProgressRootLatestProcessedExpirationTime &&\n null !== workInProgressRootCanSuspendUsingConfig\n ) {\n lastPingedTime = workInProgressRootLatestProcessedExpirationTime;\n var suspenseConfig = workInProgressRootCanSuspendUsingConfig;\n prevExecutionContext = suspenseConfig.busyMinDurationMs | 0;\n 0 >= prevExecutionContext\n ? (prevExecutionContext = 0)\n : ((prevDispatcher = suspenseConfig.busyDelayMs | 0),\n (lastPingedTime =\n now() -\n (10 * (1073741821 - lastPingedTime) -\n (suspenseConfig.timeoutMs | 0 || 5e3))),\n (prevExecutionContext =\n lastPingedTime <= prevDispatcher\n ? 0\n : prevDispatcher +\n prevExecutionContext -\n lastPingedTime));\n if (10 < prevExecutionContext) {\n markRootSuspendedAtTime(root, expirationTime);\n root.timeoutHandle = scheduleTimeout(\n commitRoot.bind(null, root),\n prevExecutionContext\n );\n break;\n }\n }\n commitRoot(root);\n break;\n default:\n throw Error(\"Unknown root exit status.\");\n }\n ensureRootIsScheduled(root);\n if (root.callbackNode === didTimeout)\n return performConcurrentWorkOnRoot.bind(null, root);\n }\n }\n return null;\n}\nfunction performSyncWorkOnRoot(root) {\n var lastExpiredTime = root.lastExpiredTime;\n lastExpiredTime = 0 !== lastExpiredTime ? lastExpiredTime : 1073741823;\n if (root.finishedExpirationTime === lastExpiredTime) commitRoot(root);\n else {\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Should not already be working.\");\n flushPassiveEffects();\n (root === workInProgressRoot && lastExpiredTime === renderExpirationTime) ||\n prepareFreshStack(root, lastExpiredTime);\n if (null !== workInProgress) {\n var prevExecutionContext = executionContext;\n executionContext |= RenderContext;\n var prevDispatcher = pushDispatcher(root);\n do\n try {\n workLoopSync();\n break;\n } catch (thrownValue) {\n handleError(root, thrownValue);\n }\n while (1);\n resetContextDependencies();\n executionContext = prevExecutionContext;\n ReactCurrentDispatcher.current = prevDispatcher;\n if (workInProgressRootExitStatus === RootFatalErrored)\n throw ((prevExecutionContext = workInProgressRootFatalError),\n prepareFreshStack(root, lastExpiredTime),\n markRootSuspendedAtTime(root, lastExpiredTime),\n ensureRootIsScheduled(root),\n prevExecutionContext);\n if (null !== workInProgress)\n throw Error(\n \"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n root.finishedWork = root.current.alternate;\n root.finishedExpirationTime = lastExpiredTime;\n workInProgressRoot = null;\n commitRoot(root);\n ensureRootIsScheduled(root);\n }\n }\n return null;\n}\nfunction flushPendingDiscreteUpdates() {\n if (null !== rootsWithPendingDiscreteUpdates) {\n var roots = rootsWithPendingDiscreteUpdates;\n rootsWithPendingDiscreteUpdates = null;\n roots.forEach(function(expirationTime, root) {\n markRootExpiredAtTime(root, expirationTime);\n ensureRootIsScheduled(root);\n });\n flushSyncCallbackQueue();\n }\n}\nfunction prepareFreshStack(root, expirationTime) {\n root.finishedWork = null;\n root.finishedExpirationTime = 0;\n var timeoutHandle = root.timeoutHandle;\n -1 !== timeoutHandle &&\n ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));\n if (null !== workInProgress)\n for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {\n var interruptedWork = timeoutHandle;\n switch (interruptedWork.tag) {\n case 1:\n var childContextTypes = interruptedWork.type.childContextTypes;\n null !== childContextTypes &&\n void 0 !== childContextTypes &&\n popContext(interruptedWork);\n break;\n case 3:\n popHostContainer(interruptedWork);\n popTopLevelContextObject(interruptedWork);\n break;\n case 5:\n popHostContext(interruptedWork);\n break;\n case 4:\n popHostContainer(interruptedWork);\n break;\n case 13:\n pop(suspenseStackCursor, interruptedWork);\n break;\n case 19:\n pop(suspenseStackCursor, interruptedWork);\n break;\n case 10:\n popProvider(interruptedWork);\n }\n timeoutHandle = timeoutHandle.return;\n }\n workInProgressRoot = root;\n workInProgress = createWorkInProgress(root.current, null, expirationTime);\n renderExpirationTime = expirationTime;\n workInProgressRootExitStatus = RootIncomplete;\n workInProgressRootFatalError = null;\n workInProgressRootLatestSuspenseTimeout = workInProgressRootLatestProcessedExpirationTime = 1073741823;\n workInProgressRootCanSuspendUsingConfig = null;\n workInProgressRootNextUnprocessedUpdateTime = 0;\n workInProgressRootHasPendingPing = !1;\n}\nfunction handleError(root$jscomp$0, thrownValue) {\n do {\n try {\n resetContextDependencies();\n resetHooks();\n if (null === workInProgress || null === workInProgress.return)\n return (\n (workInProgressRootExitStatus = RootFatalErrored),\n (workInProgressRootFatalError = thrownValue),\n null\n );\n a: {\n var root = root$jscomp$0,\n returnFiber = workInProgress.return,\n sourceFiber = workInProgress,\n value = thrownValue;\n thrownValue = renderExpirationTime;\n sourceFiber.effectTag |= 2048;\n sourceFiber.firstEffect = sourceFiber.lastEffect = null;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n var thenable = value,\n hasInvisibleParentBoundary =\n 0 !== (suspenseStackCursor.current & 1),\n _workInProgress = returnFiber;\n do {\n var JSCompiler_temp;\n if ((JSCompiler_temp = 13 === _workInProgress.tag)) {\n var nextState = _workInProgress.memoizedState;\n if (null !== nextState)\n JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;\n else {\n var props = _workInProgress.memoizedProps;\n JSCompiler_temp =\n void 0 === props.fallback\n ? !1\n : !0 !== props.unstable_avoidThisFallback\n ? !0\n : hasInvisibleParentBoundary\n ? !1\n : !0;\n }\n }\n if (JSCompiler_temp) {\n var thenables = _workInProgress.updateQueue;\n if (null === thenables) {\n var updateQueue = new Set();\n updateQueue.add(thenable);\n _workInProgress.updateQueue = updateQueue;\n } else thenables.add(thenable);\n if (0 === (_workInProgress.mode & 2)) {\n _workInProgress.effectTag |= 64;\n sourceFiber.effectTag &= -2981;\n if (1 === sourceFiber.tag)\n if (null === sourceFiber.alternate) sourceFiber.tag = 17;\n else {\n var update = createUpdate(1073741823, null);\n update.tag = 2;\n enqueueUpdate(sourceFiber, update);\n }\n sourceFiber.expirationTime = 1073741823;\n break a;\n }\n value = void 0;\n sourceFiber = thrownValue;\n var pingCache = root.pingCache;\n null === pingCache\n ? ((pingCache = root.pingCache = new PossiblyWeakMap()),\n (value = new Set()),\n pingCache.set(thenable, value))\n : ((value = pingCache.get(thenable)),\n void 0 === value &&\n ((value = new Set()), pingCache.set(thenable, value)));\n if (!value.has(sourceFiber)) {\n value.add(sourceFiber);\n var ping = pingSuspendedRoot.bind(\n null,\n root,\n thenable,\n sourceFiber\n );\n thenable.then(ping, ping);\n }\n _workInProgress.effectTag |= 4096;\n _workInProgress.expirationTime = thrownValue;\n break a;\n }\n _workInProgress = _workInProgress.return;\n } while (null !== _workInProgress);\n value = Error(\n (getComponentName(sourceFiber.type) || \"A React component\") +\n \" suspended while rendering, but no fallback UI was specified.\\n\\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.\" +\n getStackByFiberInDevAndProd(sourceFiber)\n );\n }\n workInProgressRootExitStatus !== RootCompleted &&\n (workInProgressRootExitStatus = RootErrored);\n value = createCapturedValue(value, sourceFiber);\n _workInProgress = returnFiber;\n do {\n switch (_workInProgress.tag) {\n case 3:\n thenable = value;\n _workInProgress.effectTag |= 4096;\n _workInProgress.expirationTime = thrownValue;\n var _update = createRootErrorUpdate(\n _workInProgress,\n thenable,\n thrownValue\n );\n enqueueCapturedUpdate(_workInProgress, _update);\n break a;\n case 1:\n thenable = value;\n var ctor = _workInProgress.type,\n instance = _workInProgress.stateNode;\n if (\n 0 === (_workInProgress.effectTag & 64) &&\n (\"function\" === typeof ctor.getDerivedStateFromError ||\n (null !== instance &&\n \"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance))))\n ) {\n _workInProgress.effectTag |= 4096;\n _workInProgress.expirationTime = thrownValue;\n var _update2 = createClassErrorUpdate(\n _workInProgress,\n thenable,\n thrownValue\n );\n enqueueCapturedUpdate(_workInProgress, _update2);\n break a;\n }\n }\n _workInProgress = _workInProgress.return;\n } while (null !== _workInProgress);\n }\n workInProgress = completeUnitOfWork(workInProgress);\n } catch (yetAnotherThrownValue) {\n thrownValue = yetAnotherThrownValue;\n continue;\n }\n break;\n } while (1);\n}\nfunction pushDispatcher() {\n var prevDispatcher = ReactCurrentDispatcher.current;\n ReactCurrentDispatcher.current = ContextOnlyDispatcher;\n return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;\n}\nfunction markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {\n expirationTime < workInProgressRootLatestProcessedExpirationTime &&\n 2 < expirationTime &&\n (workInProgressRootLatestProcessedExpirationTime = expirationTime);\n null !== suspenseConfig &&\n expirationTime < workInProgressRootLatestSuspenseTimeout &&\n 2 < expirationTime &&\n ((workInProgressRootLatestSuspenseTimeout = expirationTime),\n (workInProgressRootCanSuspendUsingConfig = suspenseConfig));\n}\nfunction markUnprocessedUpdateTime(expirationTime) {\n expirationTime > workInProgressRootNextUnprocessedUpdateTime &&\n (workInProgressRootNextUnprocessedUpdateTime = expirationTime);\n}\nfunction workLoopSync() {\n for (; null !== workInProgress; )\n workInProgress = performUnitOfWork(workInProgress);\n}\nfunction workLoopConcurrent() {\n for (; null !== workInProgress && !Scheduler_shouldYield(); )\n workInProgress = performUnitOfWork(workInProgress);\n}\nfunction performUnitOfWork(unitOfWork) {\n var next = beginWork$$1(\n unitOfWork.alternate,\n unitOfWork,\n renderExpirationTime\n );\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n null === next && (next = completeUnitOfWork(unitOfWork));\n ReactCurrentOwner$2.current = null;\n return next;\n}\nfunction completeUnitOfWork(unitOfWork) {\n workInProgress = unitOfWork;\n do {\n var current$$1 = workInProgress.alternate;\n unitOfWork = workInProgress.return;\n if (0 === (workInProgress.effectTag & 2048)) {\n a: {\n var current = current$$1;\n current$$1 = workInProgress;\n var renderExpirationTime$jscomp$0 = renderExpirationTime,\n newProps = current$$1.pendingProps;\n switch (current$$1.tag) {\n case 2:\n break;\n case 16:\n break;\n case 15:\n case 0:\n break;\n case 1:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n case 3:\n popHostContainer(current$$1);\n popTopLevelContextObject(current$$1);\n current = current$$1.stateNode;\n current.pendingContext &&\n ((current.context = current.pendingContext),\n (current.pendingContext = null));\n updateHostContainer(current$$1);\n break;\n case 5:\n popHostContext(current$$1);\n var rootContainerInstance = requiredContext(\n rootInstanceStackCursor.current\n );\n renderExpirationTime$jscomp$0 = current$$1.type;\n if (null !== current && null != current$$1.stateNode)\n updateHostComponent$1(\n current,\n current$$1,\n renderExpirationTime$jscomp$0,\n newProps,\n rootContainerInstance\n ),\n current.ref !== current$$1.ref && (current$$1.effectTag |= 128);\n else if (newProps) {\n current = requiredContext(contextStackCursor$1.current);\n var internalInstanceHandle = current$$1,\n tag = allocateTag(),\n viewConfig = getViewConfigForType(\n renderExpirationTime$jscomp$0\n ),\n updatePayload = diffProperties(\n null,\n emptyObject,\n newProps,\n viewConfig.validAttributes\n );\n ReactNativePrivateInterface.UIManager.createView(\n tag,\n viewConfig.uiViewClassName,\n rootContainerInstance,\n updatePayload\n );\n viewConfig = new ReactNativeFiberHostComponent(tag, viewConfig);\n instanceCache.set(tag, internalInstanceHandle);\n instanceProps.set(tag, newProps);\n appendAllChildren(viewConfig, current$$1, !1, !1);\n current$$1.stateNode = viewConfig;\n finalizeInitialChildren(\n viewConfig,\n renderExpirationTime$jscomp$0,\n newProps,\n rootContainerInstance,\n current\n ) && (current$$1.effectTag |= 4);\n null !== current$$1.ref && (current$$1.effectTag |= 128);\n } else if (null === current$$1.stateNode)\n throw Error(\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n );\n break;\n case 6:\n if (current && null != current$$1.stateNode)\n updateHostText$1(\n current,\n current$$1,\n current.memoizedProps,\n newProps\n );\n else {\n if (\"string\" !== typeof newProps && null === current$$1.stateNode)\n throw Error(\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n );\n renderExpirationTime$jscomp$0 = requiredContext(\n rootInstanceStackCursor.current\n );\n rootContainerInstance = requiredContext(\n contextStackCursor$1.current\n );\n current = current$$1;\n if (!rootContainerInstance.isInAParentText)\n throw Error(\n \"Text strings must be rendered within a component.\"\n );\n rootContainerInstance = allocateTag();\n ReactNativePrivateInterface.UIManager.createView(\n rootContainerInstance,\n \"RCTRawText\",\n renderExpirationTime$jscomp$0,\n { text: newProps }\n );\n instanceCache.set(rootContainerInstance, current$$1);\n current.stateNode = rootContainerInstance;\n }\n break;\n case 11:\n break;\n case 13:\n pop(suspenseStackCursor, current$$1);\n newProps = current$$1.memoizedState;\n if (0 !== (current$$1.effectTag & 64)) {\n current$$1.expirationTime = renderExpirationTime$jscomp$0;\n break a;\n }\n newProps = null !== newProps;\n rootContainerInstance = !1;\n null !== current &&\n ((renderExpirationTime$jscomp$0 = current.memoizedState),\n (rootContainerInstance = null !== renderExpirationTime$jscomp$0),\n newProps ||\n null === renderExpirationTime$jscomp$0 ||\n ((renderExpirationTime$jscomp$0 = current.child.sibling),\n null !== renderExpirationTime$jscomp$0 &&\n ((internalInstanceHandle = current$$1.firstEffect),\n null !== internalInstanceHandle\n ? ((current$$1.firstEffect = renderExpirationTime$jscomp$0),\n (renderExpirationTime$jscomp$0.nextEffect = internalInstanceHandle))\n : ((current$$1.firstEffect = current$$1.lastEffect = renderExpirationTime$jscomp$0),\n (renderExpirationTime$jscomp$0.nextEffect = null)),\n (renderExpirationTime$jscomp$0.effectTag = 8))));\n if (\n newProps &&\n !rootContainerInstance &&\n 0 !== (current$$1.mode & 2)\n )\n if (\n (null === current &&\n !0 !== current$$1.memoizedProps.unstable_avoidThisFallback) ||\n 0 !== (suspenseStackCursor.current & 1)\n )\n workInProgressRootExitStatus === RootIncomplete &&\n (workInProgressRootExitStatus = RootSuspended);\n else {\n if (\n workInProgressRootExitStatus === RootIncomplete ||\n workInProgressRootExitStatus === RootSuspended\n )\n workInProgressRootExitStatus = RootSuspendedWithDelay;\n 0 !== workInProgressRootNextUnprocessedUpdateTime &&\n null !== workInProgressRoot &&\n (markRootSuspendedAtTime(\n workInProgressRoot,\n renderExpirationTime\n ),\n markRootUpdatedAtTime(\n workInProgressRoot,\n workInProgressRootNextUnprocessedUpdateTime\n ));\n }\n if (newProps || rootContainerInstance) current$$1.effectTag |= 4;\n break;\n case 7:\n break;\n case 8:\n break;\n case 12:\n break;\n case 4:\n popHostContainer(current$$1);\n updateHostContainer(current$$1);\n break;\n case 10:\n popProvider(current$$1);\n break;\n case 9:\n break;\n case 14:\n break;\n case 17:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n case 19:\n pop(suspenseStackCursor, current$$1);\n newProps = current$$1.memoizedState;\n if (null === newProps) break;\n rootContainerInstance = 0 !== (current$$1.effectTag & 64);\n internalInstanceHandle = newProps.rendering;\n if (null === internalInstanceHandle)\n if (rootContainerInstance) cutOffTailIfNeeded(newProps, !1);\n else {\n if (\n workInProgressRootExitStatus !== RootIncomplete ||\n (null !== current && 0 !== (current.effectTag & 64))\n )\n for (current = current$$1.child; null !== current; ) {\n internalInstanceHandle = findFirstSuspended(current);\n if (null !== internalInstanceHandle) {\n current$$1.effectTag |= 64;\n cutOffTailIfNeeded(newProps, !1);\n current = internalInstanceHandle.updateQueue;\n null !== current &&\n ((current$$1.updateQueue = current),\n (current$$1.effectTag |= 4));\n null === newProps.lastEffect &&\n (current$$1.firstEffect = null);\n current$$1.lastEffect = newProps.lastEffect;\n current = renderExpirationTime$jscomp$0;\n for (newProps = current$$1.child; null !== newProps; )\n (rootContainerInstance = newProps),\n (renderExpirationTime$jscomp$0 = current),\n (rootContainerInstance.effectTag &= 2),\n (rootContainerInstance.nextEffect = null),\n (rootContainerInstance.firstEffect = null),\n (rootContainerInstance.lastEffect = null),\n (internalInstanceHandle =\n rootContainerInstance.alternate),\n null === internalInstanceHandle\n ? ((rootContainerInstance.childExpirationTime = 0),\n (rootContainerInstance.expirationTime = renderExpirationTime$jscomp$0),\n (rootContainerInstance.child = null),\n (rootContainerInstance.memoizedProps = null),\n (rootContainerInstance.memoizedState = null),\n (rootContainerInstance.updateQueue = null),\n (rootContainerInstance.dependencies = null))\n : ((rootContainerInstance.childExpirationTime =\n internalInstanceHandle.childExpirationTime),\n (rootContainerInstance.expirationTime =\n internalInstanceHandle.expirationTime),\n (rootContainerInstance.child =\n internalInstanceHandle.child),\n (rootContainerInstance.memoizedProps =\n internalInstanceHandle.memoizedProps),\n (rootContainerInstance.memoizedState =\n internalInstanceHandle.memoizedState),\n (rootContainerInstance.updateQueue =\n internalInstanceHandle.updateQueue),\n (renderExpirationTime$jscomp$0 =\n internalInstanceHandle.dependencies),\n (rootContainerInstance.dependencies =\n null === renderExpirationTime$jscomp$0\n ? null\n : {\n expirationTime:\n renderExpirationTime$jscomp$0.expirationTime,\n firstContext:\n renderExpirationTime$jscomp$0.firstContext,\n responders:\n renderExpirationTime$jscomp$0.responders\n })),\n (newProps = newProps.sibling);\n push(\n suspenseStackCursor,\n (suspenseStackCursor.current & 1) | 2,\n current$$1\n );\n current$$1 = current$$1.child;\n break a;\n }\n current = current.sibling;\n }\n }\n else {\n if (!rootContainerInstance)\n if (\n ((current = findFirstSuspended(internalInstanceHandle)),\n null !== current)\n ) {\n if (\n ((current$$1.effectTag |= 64),\n (rootContainerInstance = !0),\n (current = current.updateQueue),\n null !== current &&\n ((current$$1.updateQueue = current),\n (current$$1.effectTag |= 4)),\n cutOffTailIfNeeded(newProps, !0),\n null === newProps.tail &&\n \"hidden\" === newProps.tailMode &&\n !internalInstanceHandle.alternate)\n ) {\n current$$1 = current$$1.lastEffect = newProps.lastEffect;\n null !== current$$1 && (current$$1.nextEffect = null);\n break;\n }\n } else\n now() > newProps.tailExpiration &&\n 1 < renderExpirationTime$jscomp$0 &&\n ((current$$1.effectTag |= 64),\n (rootContainerInstance = !0),\n cutOffTailIfNeeded(newProps, !1),\n (current$$1.expirationTime = current$$1.childExpirationTime =\n renderExpirationTime$jscomp$0 - 1));\n newProps.isBackwards\n ? ((internalInstanceHandle.sibling = current$$1.child),\n (current$$1.child = internalInstanceHandle))\n : ((current = newProps.last),\n null !== current\n ? (current.sibling = internalInstanceHandle)\n : (current$$1.child = internalInstanceHandle),\n (newProps.last = internalInstanceHandle));\n }\n if (null !== newProps.tail) {\n 0 === newProps.tailExpiration &&\n (newProps.tailExpiration = now() + 500);\n current = newProps.tail;\n newProps.rendering = current;\n newProps.tail = current.sibling;\n newProps.lastEffect = current$$1.lastEffect;\n current.sibling = null;\n newProps = suspenseStackCursor.current;\n newProps = rootContainerInstance\n ? (newProps & 1) | 2\n : newProps & 1;\n push(suspenseStackCursor, newProps, current$$1);\n current$$1 = current;\n break a;\n }\n break;\n case 20:\n break;\n case 21:\n break;\n default:\n throw Error(\n \"Unknown unit of work tag (\" +\n current$$1.tag +\n \"). This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n current$$1 = null;\n }\n current = workInProgress;\n if (1 === renderExpirationTime || 1 !== current.childExpirationTime) {\n newProps = 0;\n for (\n rootContainerInstance = current.child;\n null !== rootContainerInstance;\n\n )\n (renderExpirationTime$jscomp$0 =\n rootContainerInstance.expirationTime),\n (internalInstanceHandle =\n rootContainerInstance.childExpirationTime),\n renderExpirationTime$jscomp$0 > newProps &&\n (newProps = renderExpirationTime$jscomp$0),\n internalInstanceHandle > newProps &&\n (newProps = internalInstanceHandle),\n (rootContainerInstance = rootContainerInstance.sibling);\n current.childExpirationTime = newProps;\n }\n if (null !== current$$1) return current$$1;\n null !== unitOfWork &&\n 0 === (unitOfWork.effectTag & 2048) &&\n (null === unitOfWork.firstEffect &&\n (unitOfWork.firstEffect = workInProgress.firstEffect),\n null !== workInProgress.lastEffect &&\n (null !== unitOfWork.lastEffect &&\n (unitOfWork.lastEffect.nextEffect = workInProgress.firstEffect),\n (unitOfWork.lastEffect = workInProgress.lastEffect)),\n 1 < workInProgress.effectTag &&\n (null !== unitOfWork.lastEffect\n ? (unitOfWork.lastEffect.nextEffect = workInProgress)\n : (unitOfWork.firstEffect = workInProgress),\n (unitOfWork.lastEffect = workInProgress)));\n } else {\n current$$1 = unwindWork(workInProgress, renderExpirationTime);\n if (null !== current$$1)\n return (current$$1.effectTag &= 2047), current$$1;\n null !== unitOfWork &&\n ((unitOfWork.firstEffect = unitOfWork.lastEffect = null),\n (unitOfWork.effectTag |= 2048));\n }\n current$$1 = workInProgress.sibling;\n if (null !== current$$1) return current$$1;\n workInProgress = unitOfWork;\n } while (null !== workInProgress);\n workInProgressRootExitStatus === RootIncomplete &&\n (workInProgressRootExitStatus = RootCompleted);\n return null;\n}\nfunction getRemainingExpirationTime(fiber) {\n var updateExpirationTime = fiber.expirationTime;\n fiber = fiber.childExpirationTime;\n return updateExpirationTime > fiber ? updateExpirationTime : fiber;\n}\nfunction commitRoot(root) {\n var renderPriorityLevel = getCurrentPriorityLevel();\n runWithPriority(99, commitRootImpl.bind(null, root, renderPriorityLevel));\n return null;\n}\nfunction commitRootImpl(root$jscomp$0, renderPriorityLevel$jscomp$0) {\n flushPassiveEffects();\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Should not already be working.\");\n var finishedWork = root$jscomp$0.finishedWork,\n expirationTime = root$jscomp$0.finishedExpirationTime;\n if (null === finishedWork) return null;\n root$jscomp$0.finishedWork = null;\n root$jscomp$0.finishedExpirationTime = 0;\n if (finishedWork === root$jscomp$0.current)\n throw Error(\n \"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\"\n );\n root$jscomp$0.callbackNode = null;\n root$jscomp$0.callbackExpirationTime = 0;\n root$jscomp$0.callbackPriority = 90;\n root$jscomp$0.nextKnownPendingLevel = 0;\n var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(\n finishedWork\n );\n root$jscomp$0.firstPendingTime = remainingExpirationTimeBeforeCommit;\n expirationTime <= root$jscomp$0.lastSuspendedTime\n ? (root$jscomp$0.firstSuspendedTime = root$jscomp$0.lastSuspendedTime = root$jscomp$0.nextKnownPendingLevel = 0)\n : expirationTime <= root$jscomp$0.firstSuspendedTime &&\n (root$jscomp$0.firstSuspendedTime = expirationTime - 1);\n expirationTime <= root$jscomp$0.lastPingedTime &&\n (root$jscomp$0.lastPingedTime = 0);\n expirationTime <= root$jscomp$0.lastExpiredTime &&\n (root$jscomp$0.lastExpiredTime = 0);\n root$jscomp$0 === workInProgressRoot &&\n ((workInProgress = workInProgressRoot = null), (renderExpirationTime = 0));\n 1 < finishedWork.effectTag\n ? null !== finishedWork.lastEffect\n ? ((finishedWork.lastEffect.nextEffect = finishedWork),\n (remainingExpirationTimeBeforeCommit = finishedWork.firstEffect))\n : (remainingExpirationTimeBeforeCommit = finishedWork)\n : (remainingExpirationTimeBeforeCommit = finishedWork.firstEffect);\n if (null !== remainingExpirationTimeBeforeCommit) {\n var prevExecutionContext = executionContext;\n executionContext |= CommitContext;\n ReactCurrentOwner$2.current = null;\n nextEffect = remainingExpirationTimeBeforeCommit;\n do\n try {\n commitBeforeMutationEffects();\n } catch (error) {\n if (null === nextEffect) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(nextEffect, error);\n nextEffect = nextEffect.nextEffect;\n }\n while (null !== nextEffect);\n nextEffect = remainingExpirationTimeBeforeCommit;\n do\n try {\n for (\n var root = root$jscomp$0,\n renderPriorityLevel = renderPriorityLevel$jscomp$0;\n null !== nextEffect;\n\n ) {\n var effectTag = nextEffect.effectTag;\n if (effectTag & 128) {\n var current$$1 = nextEffect.alternate;\n if (null !== current$$1) {\n var currentRef = current$$1.ref;\n null !== currentRef &&\n (\"function\" === typeof currentRef\n ? currentRef(null)\n : (currentRef.current = null));\n }\n }\n switch (effectTag & 1038) {\n case 2:\n commitPlacement(nextEffect);\n nextEffect.effectTag &= -3;\n break;\n case 6:\n commitPlacement(nextEffect);\n nextEffect.effectTag &= -3;\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 1024:\n nextEffect.effectTag &= -1025;\n break;\n case 1028:\n nextEffect.effectTag &= -1025;\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 4:\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 8:\n var current$$1$jscomp$0 = nextEffect;\n unmountHostComponents(\n root,\n current$$1$jscomp$0,\n renderPriorityLevel\n );\n detachFiber(current$$1$jscomp$0);\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (error) {\n if (null === nextEffect) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(nextEffect, error);\n nextEffect = nextEffect.nextEffect;\n }\n while (null !== nextEffect);\n root$jscomp$0.current = finishedWork;\n nextEffect = remainingExpirationTimeBeforeCommit;\n do\n try {\n for (effectTag = expirationTime; null !== nextEffect; ) {\n var effectTag$jscomp$0 = nextEffect.effectTag;\n if (effectTag$jscomp$0 & 36) {\n var current$$1$jscomp$1 = nextEffect.alternate;\n current$$1 = nextEffect;\n currentRef = effectTag;\n switch (current$$1.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectList(16, 32, current$$1);\n break;\n case 1:\n var instance = current$$1.stateNode;\n if (current$$1.effectTag & 4)\n if (null === current$$1$jscomp$1)\n instance.componentDidMount();\n else {\n var prevProps =\n current$$1.elementType === current$$1.type\n ? current$$1$jscomp$1.memoizedProps\n : resolveDefaultProps(\n current$$1.type,\n current$$1$jscomp$1.memoizedProps\n );\n instance.componentDidUpdate(\n prevProps,\n current$$1$jscomp$1.memoizedState,\n instance.__reactInternalSnapshotBeforeUpdate\n );\n }\n var updateQueue = current$$1.updateQueue;\n null !== updateQueue &&\n commitUpdateQueue(\n current$$1,\n updateQueue,\n instance,\n currentRef\n );\n break;\n case 3:\n var _updateQueue = current$$1.updateQueue;\n if (null !== _updateQueue) {\n root = null;\n if (null !== current$$1.child)\n switch (current$$1.child.tag) {\n case 5:\n root = current$$1.child.stateNode;\n break;\n case 1:\n root = current$$1.child.stateNode;\n }\n commitUpdateQueue(current$$1, _updateQueue, root, currentRef);\n }\n break;\n case 5:\n break;\n case 6:\n break;\n case 4:\n break;\n case 12:\n break;\n case 13:\n break;\n case 19:\n case 17:\n case 20:\n case 21:\n break;\n default:\n throw Error(\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n }\n if (effectTag$jscomp$0 & 128) {\n current$$1 = void 0;\n var ref = nextEffect.ref;\n if (null !== ref) {\n var instance$jscomp$0 = nextEffect.stateNode;\n switch (nextEffect.tag) {\n case 5:\n current$$1 = instance$jscomp$0;\n break;\n default:\n current$$1 = instance$jscomp$0;\n }\n \"function\" === typeof ref\n ? ref(current$$1)\n : (ref.current = current$$1);\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (error) {\n if (null === nextEffect) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(nextEffect, error);\n nextEffect = nextEffect.nextEffect;\n }\n while (null !== nextEffect);\n nextEffect = null;\n requestPaint();\n executionContext = prevExecutionContext;\n } else root$jscomp$0.current = finishedWork;\n if (rootDoesHavePassiveEffects)\n (rootDoesHavePassiveEffects = !1),\n (rootWithPendingPassiveEffects = root$jscomp$0),\n (pendingPassiveEffectsRenderPriority = renderPriorityLevel$jscomp$0);\n else\n for (\n nextEffect = remainingExpirationTimeBeforeCommit;\n null !== nextEffect;\n\n )\n (renderPriorityLevel$jscomp$0 = nextEffect.nextEffect),\n (nextEffect.nextEffect = null),\n (nextEffect = renderPriorityLevel$jscomp$0);\n renderPriorityLevel$jscomp$0 = root$jscomp$0.firstPendingTime;\n 0 === renderPriorityLevel$jscomp$0 &&\n (legacyErrorBoundariesThatAlreadyFailed = null);\n 1073741823 === renderPriorityLevel$jscomp$0\n ? root$jscomp$0 === rootWithNestedUpdates\n ? nestedUpdateCount++\n : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root$jscomp$0))\n : (nestedUpdateCount = 0);\n \"function\" === typeof onCommitFiberRoot &&\n onCommitFiberRoot(finishedWork.stateNode, expirationTime);\n ensureRootIsScheduled(root$jscomp$0);\n if (hasUncaughtError)\n throw ((hasUncaughtError = !1),\n (root$jscomp$0 = firstUncaughtError),\n (firstUncaughtError = null),\n root$jscomp$0);\n if ((executionContext & LegacyUnbatchedContext) !== NoContext) return null;\n flushSyncCallbackQueue();\n return null;\n}\nfunction commitBeforeMutationEffects() {\n for (; null !== nextEffect; ) {\n var effectTag = nextEffect.effectTag;\n 0 !== (effectTag & 256) &&\n commitBeforeMutationLifeCycles(nextEffect.alternate, nextEffect);\n 0 === (effectTag & 512) ||\n rootDoesHavePassiveEffects ||\n ((rootDoesHavePassiveEffects = !0),\n scheduleCallback(97, function() {\n flushPassiveEffects();\n return null;\n }));\n nextEffect = nextEffect.nextEffect;\n }\n}\nfunction flushPassiveEffects() {\n if (90 !== pendingPassiveEffectsRenderPriority) {\n var priorityLevel =\n 97 < pendingPassiveEffectsRenderPriority\n ? 97\n : pendingPassiveEffectsRenderPriority;\n pendingPassiveEffectsRenderPriority = 90;\n return runWithPriority(priorityLevel, flushPassiveEffectsImpl);\n }\n}\nfunction flushPassiveEffectsImpl() {\n if (null === rootWithPendingPassiveEffects) return !1;\n var root = rootWithPendingPassiveEffects;\n rootWithPendingPassiveEffects = null;\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Cannot flush passive effects while already rendering.\");\n var prevExecutionContext = executionContext;\n executionContext |= CommitContext;\n for (root = root.current.firstEffect; null !== root; ) {\n try {\n var finishedWork = root;\n if (0 !== (finishedWork.effectTag & 512))\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectList(128, 0, finishedWork),\n commitHookEffectList(0, 64, finishedWork);\n }\n } catch (error) {\n if (null === root) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(root, error);\n }\n finishedWork = root.nextEffect;\n root.nextEffect = null;\n root = finishedWork;\n }\n executionContext = prevExecutionContext;\n flushSyncCallbackQueue();\n return !0;\n}\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n sourceFiber = createCapturedValue(error, sourceFiber);\n sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1073741823);\n enqueueUpdate(rootFiber, sourceFiber);\n rootFiber = markUpdateTimeFromFiberToRoot(rootFiber, 1073741823);\n null !== rootFiber && ensureRootIsScheduled(rootFiber);\n}\nfunction captureCommitPhaseError(sourceFiber, error) {\n if (3 === sourceFiber.tag)\n captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);\n else\n for (var fiber = sourceFiber.return; null !== fiber; ) {\n if (3 === fiber.tag) {\n captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);\n break;\n } else if (1 === fiber.tag) {\n var instance = fiber.stateNode;\n if (\n \"function\" === typeof fiber.type.getDerivedStateFromError ||\n (\"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n ) {\n sourceFiber = createCapturedValue(error, sourceFiber);\n sourceFiber = createClassErrorUpdate(fiber, sourceFiber, 1073741823);\n enqueueUpdate(fiber, sourceFiber);\n fiber = markUpdateTimeFromFiberToRoot(fiber, 1073741823);\n null !== fiber && ensureRootIsScheduled(fiber);\n break;\n }\n }\n fiber = fiber.return;\n }\n}\nfunction pingSuspendedRoot(root, thenable, suspendedTime) {\n var pingCache = root.pingCache;\n null !== pingCache && pingCache.delete(thenable);\n workInProgressRoot === root && renderExpirationTime === suspendedTime\n ? workInProgressRootExitStatus === RootSuspendedWithDelay ||\n (workInProgressRootExitStatus === RootSuspended &&\n 1073741823 === workInProgressRootLatestProcessedExpirationTime &&\n now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS)\n ? prepareFreshStack(root, renderExpirationTime)\n : (workInProgressRootHasPendingPing = !0)\n : isRootSuspendedAtTime(root, suspendedTime) &&\n ((thenable = root.lastPingedTime),\n (0 !== thenable && thenable < suspendedTime) ||\n ((root.lastPingedTime = suspendedTime),\n root.finishedExpirationTime === suspendedTime &&\n ((root.finishedExpirationTime = 0), (root.finishedWork = null)),\n ensureRootIsScheduled(root)));\n}\nfunction resolveRetryThenable(boundaryFiber, thenable) {\n var retryCache = boundaryFiber.stateNode;\n null !== retryCache && retryCache.delete(thenable);\n thenable = 0;\n 0 === thenable &&\n ((thenable = requestCurrentTimeForUpdate()),\n (thenable = computeExpirationForFiber(thenable, boundaryFiber, null)));\n boundaryFiber = markUpdateTimeFromFiberToRoot(boundaryFiber, thenable);\n null !== boundaryFiber && ensureRootIsScheduled(boundaryFiber);\n}\nvar beginWork$$1;\nbeginWork$$1 = function(current$$1, workInProgress, renderExpirationTime) {\n var updateExpirationTime = workInProgress.expirationTime;\n if (null !== current$$1)\n if (\n current$$1.memoizedProps !== workInProgress.pendingProps ||\n didPerformWorkStackCursor.current\n )\n didReceiveUpdate = !0;\n else {\n if (updateExpirationTime < renderExpirationTime) {\n didReceiveUpdate = !1;\n switch (workInProgress.tag) {\n case 3:\n pushHostRootContext(workInProgress);\n break;\n case 5:\n pushHostContext(workInProgress);\n break;\n case 1:\n isContextProvider(workInProgress.type) &&\n pushContextProvider(workInProgress);\n break;\n case 4:\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n break;\n case 10:\n pushProvider(workInProgress, workInProgress.memoizedProps.value);\n break;\n case 13:\n if (null !== workInProgress.memoizedState) {\n updateExpirationTime = workInProgress.child.childExpirationTime;\n if (\n 0 !== updateExpirationTime &&\n updateExpirationTime >= renderExpirationTime\n )\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n push(\n suspenseStackCursor,\n suspenseStackCursor.current & 1,\n workInProgress\n );\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n return null !== workInProgress ? workInProgress.sibling : null;\n }\n push(\n suspenseStackCursor,\n suspenseStackCursor.current & 1,\n workInProgress\n );\n break;\n case 19:\n updateExpirationTime =\n workInProgress.childExpirationTime >= renderExpirationTime;\n if (0 !== (current$$1.effectTag & 64)) {\n if (updateExpirationTime)\n return updateSuspenseListComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress.effectTag |= 64;\n }\n var renderState = workInProgress.memoizedState;\n null !== renderState &&\n ((renderState.rendering = null), (renderState.tail = null));\n push(\n suspenseStackCursor,\n suspenseStackCursor.current,\n workInProgress\n );\n if (!updateExpirationTime) return null;\n }\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n }\n didReceiveUpdate = !1;\n }\n else didReceiveUpdate = !1;\n workInProgress.expirationTime = 0;\n switch (workInProgress.tag) {\n case 2:\n updateExpirationTime = workInProgress.type;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n current$$1 = workInProgress.pendingProps;\n renderState = getMaskedContext(\n workInProgress,\n contextStackCursor.current\n );\n prepareToReadContext(workInProgress, renderExpirationTime);\n renderState = renderWithHooks(\n null,\n workInProgress,\n updateExpirationTime,\n current$$1,\n renderState,\n renderExpirationTime\n );\n workInProgress.effectTag |= 1;\n if (\n \"object\" === typeof renderState &&\n null !== renderState &&\n \"function\" === typeof renderState.render &&\n void 0 === renderState.$$typeof\n ) {\n workInProgress.tag = 1;\n resetHooks();\n if (isContextProvider(updateExpirationTime)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n workInProgress.memoizedState =\n null !== renderState.state && void 0 !== renderState.state\n ? renderState.state\n : null;\n var getDerivedStateFromProps =\n updateExpirationTime.getDerivedStateFromProps;\n \"function\" === typeof getDerivedStateFromProps &&\n applyDerivedStateFromProps(\n workInProgress,\n updateExpirationTime,\n getDerivedStateFromProps,\n current$$1\n );\n renderState.updater = classComponentUpdater;\n workInProgress.stateNode = renderState;\n renderState._reactInternalFiber = workInProgress;\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n current$$1,\n renderExpirationTime\n );\n workInProgress = finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n hasContext,\n renderExpirationTime\n );\n } else\n (workInProgress.tag = 0),\n reconcileChildren(\n null,\n workInProgress,\n renderState,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child);\n return workInProgress;\n case 16:\n renderState = workInProgress.elementType;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n current$$1 = workInProgress.pendingProps;\n initializeLazyComponentType(renderState);\n if (1 !== renderState._status) throw renderState._result;\n renderState = renderState._result;\n workInProgress.type = renderState;\n hasContext = workInProgress.tag = resolveLazyComponentTag(renderState);\n current$$1 = resolveDefaultProps(renderState, current$$1);\n switch (hasContext) {\n case 0:\n workInProgress = updateFunctionComponent(\n null,\n workInProgress,\n renderState,\n current$$1,\n renderExpirationTime\n );\n break;\n case 1:\n workInProgress = updateClassComponent(\n null,\n workInProgress,\n renderState,\n current$$1,\n renderExpirationTime\n );\n break;\n case 11:\n workInProgress = updateForwardRef(\n null,\n workInProgress,\n renderState,\n current$$1,\n renderExpirationTime\n );\n break;\n case 14:\n workInProgress = updateMemoComponent(\n null,\n workInProgress,\n renderState,\n resolveDefaultProps(renderState.type, current$$1),\n updateExpirationTime,\n renderExpirationTime\n );\n break;\n default:\n throw Error(\n \"Element type is invalid. Received a promise that resolves to: \" +\n renderState +\n \". Lazy element type must resolve to a class or function.\"\n );\n }\n return workInProgress;\n case 0:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n updateFunctionComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n )\n );\n case 1:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n updateClassComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n )\n );\n case 3:\n pushHostRootContext(workInProgress);\n updateExpirationTime = workInProgress.updateQueue;\n if (null === updateExpirationTime)\n throw Error(\n \"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.\"\n );\n renderState = workInProgress.memoizedState;\n renderState = null !== renderState ? renderState.element : null;\n processUpdateQueue(\n workInProgress,\n updateExpirationTime,\n workInProgress.pendingProps,\n null,\n renderExpirationTime\n );\n updateExpirationTime = workInProgress.memoizedState.element;\n updateExpirationTime === renderState\n ? (workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n ))\n : (reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child));\n return workInProgress;\n case 5:\n return (\n pushHostContext(workInProgress),\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n (updateExpirationTime = workInProgress.pendingProps.children),\n markRef(current$$1, workInProgress),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child),\n workInProgress\n );\n case 6:\n return (\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n null\n );\n case 13:\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (updateExpirationTime = workInProgress.pendingProps),\n null === current$$1\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n updateExpirationTime,\n renderExpirationTime\n ))\n : reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 11:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n updateForwardRef(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n )\n );\n case 7:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 10:\n a: {\n updateExpirationTime = workInProgress.type._context;\n renderState = workInProgress.pendingProps;\n getDerivedStateFromProps = workInProgress.memoizedProps;\n hasContext = renderState.value;\n pushProvider(workInProgress, hasContext);\n if (null !== getDerivedStateFromProps) {\n var oldValue = getDerivedStateFromProps.value;\n hasContext = is$1(oldValue, hasContext)\n ? 0\n : (\"function\" === typeof updateExpirationTime._calculateChangedBits\n ? updateExpirationTime._calculateChangedBits(\n oldValue,\n hasContext\n )\n : 1073741823) | 0;\n if (0 === hasContext) {\n if (\n getDerivedStateFromProps.children === renderState.children &&\n !didPerformWorkStackCursor.current\n ) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n break a;\n }\n } else\n for (\n oldValue = workInProgress.child,\n null !== oldValue && (oldValue.return = workInProgress);\n null !== oldValue;\n\n ) {\n var list = oldValue.dependencies;\n if (null !== list) {\n getDerivedStateFromProps = oldValue.child;\n for (\n var dependency = list.firstContext;\n null !== dependency;\n\n ) {\n if (\n dependency.context === updateExpirationTime &&\n 0 !== (dependency.observedBits & hasContext)\n ) {\n 1 === oldValue.tag &&\n ((dependency = createUpdate(renderExpirationTime, null)),\n (dependency.tag = 2),\n enqueueUpdate(oldValue, dependency));\n oldValue.expirationTime < renderExpirationTime &&\n (oldValue.expirationTime = renderExpirationTime);\n dependency = oldValue.alternate;\n null !== dependency &&\n dependency.expirationTime < renderExpirationTime &&\n (dependency.expirationTime = renderExpirationTime);\n scheduleWorkOnParentPath(\n oldValue.return,\n renderExpirationTime\n );\n list.expirationTime < renderExpirationTime &&\n (list.expirationTime = renderExpirationTime);\n break;\n }\n dependency = dependency.next;\n }\n } else\n getDerivedStateFromProps =\n 10 === oldValue.tag\n ? oldValue.type === workInProgress.type\n ? null\n : oldValue.child\n : oldValue.child;\n if (null !== getDerivedStateFromProps)\n getDerivedStateFromProps.return = oldValue;\n else\n for (\n getDerivedStateFromProps = oldValue;\n null !== getDerivedStateFromProps;\n\n ) {\n if (getDerivedStateFromProps === workInProgress) {\n getDerivedStateFromProps = null;\n break;\n }\n oldValue = getDerivedStateFromProps.sibling;\n if (null !== oldValue) {\n oldValue.return = getDerivedStateFromProps.return;\n getDerivedStateFromProps = oldValue;\n break;\n }\n getDerivedStateFromProps = getDerivedStateFromProps.return;\n }\n oldValue = getDerivedStateFromProps;\n }\n }\n reconcileChildren(\n current$$1,\n workInProgress,\n renderState.children,\n renderExpirationTime\n );\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 9:\n return (\n (renderState = workInProgress.type),\n (hasContext = workInProgress.pendingProps),\n (updateExpirationTime = hasContext.children),\n prepareToReadContext(workInProgress, renderExpirationTime),\n (renderState = readContext(\n renderState,\n hasContext.unstable_observedBits\n )),\n (updateExpirationTime = updateExpirationTime(renderState)),\n (workInProgress.effectTag |= 1),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 14:\n return (\n (renderState = workInProgress.type),\n (hasContext = resolveDefaultProps(\n renderState,\n workInProgress.pendingProps\n )),\n (hasContext = resolveDefaultProps(renderState.type, hasContext)),\n updateMemoComponent(\n current$$1,\n workInProgress,\n renderState,\n hasContext,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n case 15:\n return updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n updateExpirationTime,\n renderExpirationTime\n );\n case 17:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n (workInProgress.tag = 1),\n isContextProvider(updateExpirationTime)\n ? ((current$$1 = !0), pushContextProvider(workInProgress))\n : (current$$1 = !1),\n prepareToReadContext(workInProgress, renderExpirationTime),\n constructClassInstance(\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n ),\n finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n current$$1,\n renderExpirationTime\n )\n );\n case 19:\n return updateSuspenseListComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n }\n throw Error(\n \"Unknown unit of work tag (\" +\n workInProgress.tag +\n \"). This error is likely caused by a bug in React. Please file an issue.\"\n );\n};\nvar onCommitFiberRoot = null,\n onCommitFiberUnmount = null;\nfunction injectInternals(internals) {\n if (\"undefined\" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;\n var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (hook.isDisabled || !hook.supportsFiber) return !0;\n try {\n var rendererID = hook.inject(internals);\n onCommitFiberRoot = function(root) {\n try {\n hook.onCommitFiberRoot(\n rendererID,\n root,\n void 0,\n 64 === (root.current.effectTag & 64)\n );\n } catch (err) {}\n };\n onCommitFiberUnmount = function(fiber) {\n try {\n hook.onCommitFiberUnmount(rendererID, fiber);\n } catch (err) {}\n };\n } catch (err) {}\n return !0;\n}\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;\n this.index = 0;\n this.ref = null;\n this.pendingProps = pendingProps;\n this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;\n this.mode = mode;\n this.effectTag = 0;\n this.lastEffect = this.firstEffect = this.nextEffect = null;\n this.childExpirationTime = this.expirationTime = 0;\n this.alternate = null;\n}\nfunction createFiber(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction resolveLazyComponentTag(Component) {\n if (\"function\" === typeof Component)\n return shouldConstruct(Component) ? 1 : 0;\n if (void 0 !== Component && null !== Component) {\n Component = Component.$$typeof;\n if (Component === REACT_FORWARD_REF_TYPE) return 11;\n if (Component === REACT_MEMO_TYPE) return 14;\n }\n return 2;\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiber(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.effectTag = 0),\n (workInProgress.nextEffect = null),\n (workInProgress.firstEffect = null),\n (workInProgress.lastEffect = null));\n workInProgress.childExpirationTime = current.childExpirationTime;\n workInProgress.expirationTime = current.expirationTime;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n pendingProps = current.dependencies;\n workInProgress.dependencies =\n null === pendingProps\n ? null\n : {\n expirationTime: pendingProps.expirationTime,\n firstContext: pendingProps.firstContext,\n responders: pendingProps.responders\n };\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n expirationTime\n) {\n var fiberTag = 2;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type) fiberTag = 5;\n else\n a: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(\n pendingProps.children,\n mode,\n expirationTime,\n key\n );\n case REACT_CONCURRENT_MODE_TYPE:\n fiberTag = 8;\n mode |= 7;\n break;\n case REACT_STRICT_MODE_TYPE:\n fiberTag = 8;\n mode |= 1;\n break;\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiber(12, pendingProps, key, mode | 8)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.type = REACT_PROFILER_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiber(13, pendingProps, key, mode)),\n (type.type = REACT_SUSPENSE_TYPE),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n case REACT_SUSPENSE_LIST_TYPE:\n return (\n (type = createFiber(19, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONTEXT_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n throw Error(\n \"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \" +\n (null == type ? type : typeof type) +\n \".\"\n );\n }\n key = createFiber(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.expirationTime = expirationTime;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, expirationTime, key) {\n elements = createFiber(7, elements, key, mode);\n elements.expirationTime = expirationTime;\n return elements;\n}\nfunction createFiberFromText(content, mode, expirationTime) {\n content = createFiber(6, content, null, mode);\n content.expirationTime = expirationTime;\n return content;\n}\nfunction createFiberFromPortal(portal, mode, expirationTime) {\n mode = createFiber(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.expirationTime = expirationTime;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nfunction FiberRootNode(containerInfo, tag, hydrate) {\n this.tag = tag;\n this.current = null;\n this.containerInfo = containerInfo;\n this.pingCache = this.pendingChildren = null;\n this.finishedExpirationTime = 0;\n this.finishedWork = null;\n this.timeoutHandle = -1;\n this.pendingContext = this.context = null;\n this.hydrate = hydrate;\n this.callbackNode = null;\n this.callbackPriority = 90;\n this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0;\n}\nfunction isRootSuspendedAtTime(root, expirationTime) {\n var firstSuspendedTime = root.firstSuspendedTime;\n root = root.lastSuspendedTime;\n return (\n 0 !== firstSuspendedTime &&\n firstSuspendedTime >= expirationTime &&\n root <= expirationTime\n );\n}\nfunction markRootSuspendedAtTime(root, expirationTime) {\n var firstSuspendedTime = root.firstSuspendedTime,\n lastSuspendedTime = root.lastSuspendedTime;\n firstSuspendedTime < expirationTime &&\n (root.firstSuspendedTime = expirationTime);\n if (lastSuspendedTime > expirationTime || 0 === firstSuspendedTime)\n root.lastSuspendedTime = expirationTime;\n expirationTime <= root.lastPingedTime && (root.lastPingedTime = 0);\n expirationTime <= root.lastExpiredTime && (root.lastExpiredTime = 0);\n}\nfunction markRootUpdatedAtTime(root, expirationTime) {\n expirationTime > root.firstPendingTime &&\n (root.firstPendingTime = expirationTime);\n var firstSuspendedTime = root.firstSuspendedTime;\n 0 !== firstSuspendedTime &&\n (expirationTime >= firstSuspendedTime\n ? (root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = 0)\n : expirationTime >= root.lastSuspendedTime &&\n (root.lastSuspendedTime = expirationTime + 1),\n expirationTime > root.nextKnownPendingLevel &&\n (root.nextKnownPendingLevel = expirationTime));\n}\nfunction markRootExpiredAtTime(root, expirationTime) {\n var lastExpiredTime = root.lastExpiredTime;\n if (0 === lastExpiredTime || lastExpiredTime > expirationTime)\n root.lastExpiredTime = expirationTime;\n}\nfunction findHostInstance(component) {\n var fiber = component._reactInternalFiber;\n if (void 0 === fiber) {\n if (\"function\" === typeof component.render)\n throw Error(\"Unable to find node on an unmounted component.\");\n throw Error(\n \"Argument appears to not be a ReactComponent. Keys: \" +\n Object.keys(component)\n );\n }\n component = findCurrentHostFiber(fiber);\n return null === component ? null : component.stateNode;\n}\nfunction updateContainer(element, container, parentComponent, callback) {\n var current$$1 = container.current,\n currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(\n currentTime,\n current$$1,\n suspenseConfig\n );\n a: if (parentComponent) {\n parentComponent = parentComponent._reactInternalFiber;\n b: {\n if (\n getNearestMountedFiber(parentComponent) !== parentComponent ||\n 1 !== parentComponent.tag\n )\n throw Error(\n \"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.\"\n );\n var parentContext = parentComponent;\n do {\n switch (parentContext.tag) {\n case 3:\n parentContext = parentContext.stateNode.context;\n break b;\n case 1:\n if (isContextProvider(parentContext.type)) {\n parentContext =\n parentContext.stateNode\n .__reactInternalMemoizedMergedChildContext;\n break b;\n }\n }\n parentContext = parentContext.return;\n } while (null !== parentContext);\n throw Error(\n \"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n if (1 === parentComponent.tag) {\n var Component = parentComponent.type;\n if (isContextProvider(Component)) {\n parentComponent = processChildContext(\n parentComponent,\n Component,\n parentContext\n );\n break a;\n }\n }\n parentComponent = parentContext;\n } else parentComponent = emptyContextObject;\n null === container.context\n ? (container.context = parentComponent)\n : (container.pendingContext = parentComponent);\n container = createUpdate(currentTime, suspenseConfig);\n container.payload = { element: element };\n callback = void 0 === callback ? null : callback;\n null !== callback && (container.callback = callback);\n enqueueUpdate(current$$1, container);\n scheduleUpdateOnFiber(current$$1, currentTime);\n return currentTime;\n}\nfunction createPortal(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\nfunction findNodeHandle(componentOrHandle) {\n if (null == componentOrHandle) return null;\n if (\"number\" === typeof componentOrHandle) return componentOrHandle;\n if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;\n if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)\n return componentOrHandle.canonical._nativeTag;\n componentOrHandle = findHostInstance(componentOrHandle);\n return null == componentOrHandle\n ? componentOrHandle\n : componentOrHandle.canonical\n ? componentOrHandle.canonical._nativeTag\n : componentOrHandle._nativeTag;\n}\nbatchedUpdatesImpl = function(fn, a) {\n var prevExecutionContext = executionContext;\n executionContext |= 1;\n try {\n return fn(a);\n } finally {\n (executionContext = prevExecutionContext),\n executionContext === NoContext && flushSyncCallbackQueue();\n }\n};\nflushDiscreteUpdatesImpl = function() {\n (executionContext & (1 | RenderContext | CommitContext)) === NoContext &&\n (flushPendingDiscreteUpdates(), flushPassiveEffects());\n};\nvar roots = new Map(),\n ReactNativeRenderer = {\n NativeComponent: (function(findNodeHandle, findHostInstance) {\n return (function(_React$Component) {\n function ReactNativeComponent() {\n return _React$Component.apply(this, arguments) || this;\n }\n _inheritsLoose(ReactNativeComponent, _React$Component);\n var _proto = ReactNativeComponent.prototype;\n _proto.blur = function() {\n ReactNativePrivateInterface.TextInputState.blurTextInput(\n findNodeHandle(this)\n );\n };\n _proto.focus = function() {\n ReactNativePrivateInterface.TextInputState.focusTextInput(\n findNodeHandle(this)\n );\n };\n _proto.measure = function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measure(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n };\n _proto.measureInWindow = function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measureInWindow(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n };\n _proto.measureLayout = function(\n relativeToNativeNode,\n onSuccess,\n onFail\n ) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n if (\"number\" === typeof relativeToNativeNode)\n var relativeNode = relativeToNativeNode;\n else\n relativeToNativeNode._nativeTag &&\n (relativeNode = relativeToNativeNode._nativeTag);\n null != relativeNode &&\n ReactNativePrivateInterface.UIManager.measureLayout(\n findNodeHandle(this),\n relativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n }\n };\n _proto.setNativeProps = function(nativeProps) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n var nativeTag =\n maybeInstance._nativeTag || maybeInstance.canonical._nativeTag;\n maybeInstance =\n maybeInstance.viewConfig || maybeInstance.canonical.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n maybeInstance.validAttributes\n );\n null != nativeProps &&\n ReactNativePrivateInterface.UIManager.updateView(\n nativeTag,\n maybeInstance.uiViewClassName,\n nativeProps\n );\n }\n };\n return ReactNativeComponent;\n })(React.Component);\n })(findNodeHandle, findHostInstance),\n findHostInstance_DEPRECATED: function(componentOrHandle) {\n if (null == componentOrHandle) return null;\n if (componentOrHandle._nativeTag) return componentOrHandle;\n if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)\n return componentOrHandle.canonical;\n componentOrHandle = findHostInstance(componentOrHandle);\n return null == componentOrHandle\n ? componentOrHandle\n : componentOrHandle.canonical\n ? componentOrHandle.canonical\n : componentOrHandle;\n },\n findNodeHandle: findNodeHandle,\n dispatchCommand: function(handle, command, args) {\n null != handle._nativeTag &&\n ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(\n handle._nativeTag,\n command,\n args\n );\n },\n render: function(element, containerTag, callback) {\n var root = roots.get(containerTag);\n if (!root) {\n root = new FiberRootNode(containerTag, 0, !1);\n var uninitializedFiber = createFiber(3, null, null, 0);\n root.current = uninitializedFiber;\n uninitializedFiber.stateNode = root;\n roots.set(containerTag, root);\n }\n updateContainer(element, root, null, callback);\n a: if (((element = root.current), element.child))\n switch (element.child.tag) {\n case 5:\n element = element.child.stateNode;\n break a;\n default:\n element = element.child.stateNode;\n }\n else element = null;\n return element;\n },\n unmountComponentAtNode: function(containerTag) {\n var root = roots.get(containerTag);\n root &&\n updateContainer(null, root, null, function() {\n roots.delete(containerTag);\n });\n },\n unmountComponentAtNodeAndRemoveContainer: function(containerTag) {\n ReactNativeRenderer.unmountComponentAtNode(containerTag);\n ReactNativePrivateInterface.UIManager.removeRootView(containerTag);\n },\n createPortal: function(children, containerTag) {\n return createPortal(\n children,\n containerTag,\n null,\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null\n );\n },\n unstable_batchedUpdates: batchedUpdates,\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n NativeMethodsMixin: (function(findNodeHandle, findHostInstance) {\n return {\n measure: function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measure(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n },\n measureInWindow: function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measureInWindow(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n },\n measureLayout: function(relativeToNativeNode, onSuccess, onFail) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n if (\"number\" === typeof relativeToNativeNode)\n var relativeNode = relativeToNativeNode;\n else\n relativeToNativeNode._nativeTag &&\n (relativeNode = relativeToNativeNode._nativeTag);\n null != relativeNode &&\n ReactNativePrivateInterface.UIManager.measureLayout(\n findNodeHandle(this),\n relativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n }\n },\n setNativeProps: function(nativeProps) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n var nativeTag =\n maybeInstance._nativeTag || maybeInstance.canonical._nativeTag;\n maybeInstance =\n maybeInstance.viewConfig || maybeInstance.canonical.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n maybeInstance.validAttributes\n );\n null != nativeProps &&\n ReactNativePrivateInterface.UIManager.updateView(\n nativeTag,\n maybeInstance.uiViewClassName,\n nativeProps\n );\n }\n },\n focus: function() {\n ReactNativePrivateInterface.TextInputState.focusTextInput(\n findNodeHandle(this)\n );\n },\n blur: function() {\n ReactNativePrivateInterface.TextInputState.blurTextInput(\n findNodeHandle(this)\n );\n }\n };\n })(findNodeHandle, findHostInstance),\n computeComponentStackForErrorReporting: function(reactTag) {\n return (reactTag = getInstanceFromTag(reactTag))\n ? getStackByFiberInDevAndProd(reactTag)\n : \"\";\n }\n }\n };\n(function(devToolsConfig) {\n var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n return injectInternals(\n Object.assign({}, devToolsConfig, {\n overrideHookState: null,\n overrideProps: null,\n setSuspenseHandler: null,\n scheduleUpdate: null,\n currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,\n findHostInstanceByFiber: function(fiber) {\n fiber = findCurrentHostFiber(fiber);\n return null === fiber ? null : fiber.stateNode;\n },\n findFiberByHostInstance: function(instance) {\n return findFiberByHostInstance\n ? findFiberByHostInstance(instance)\n : null;\n },\n findHostInstancesForRefresh: null,\n scheduleRefresh: null,\n scheduleRoot: null,\n setRefreshHandler: null,\n getCurrentFiber: null\n })\n );\n})({\n findFiberByHostInstance: getInstanceFromTag,\n getInspectorDataForViewTag: function() {\n throw Error(\"getInspectorDataForViewTag() is not available in production\");\n },\n bundleType: 0,\n version: \"16.11.0\",\n rendererPackageName: \"react-native-renderer\"\n});\nvar ReactNativeRenderer$2 = { default: ReactNativeRenderer },\n ReactNativeRenderer$3 =\n (ReactNativeRenderer$2 && ReactNativeRenderer) || ReactNativeRenderer$2;\nmodule.exports = ReactNativeRenderer$3.default || ReactNativeRenderer$3;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport '../Core/InitializeCore';\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n/* globals window: true */\n\n/**\n * Sets up global variables typical in most JavaScript environments.\n *\n * 1. Global timers (via `setTimeout` etc).\n * 2. Global console object.\n * 3. Hooks for printing stack traces with source maps.\n *\n * Leaves enough room in the environment for implementing your own:\n *\n * 1. Require system.\n * 2. Bridged modules.\n *\n */\n\n'use strict';\n\nconst start = Date.now();\n\nrequire('./setUpGlobals');\nrequire('./setUpSystrace');\nrequire('./setUpErrorHandling');\nrequire('./polyfillPromise');\nrequire('./setUpRegeneratorRuntime');\nrequire('./setUpTimers');\nrequire('./setUpXHR');\nrequire('./setUpAlert');\nrequire('./setUpNavigator');\nrequire('./setUpBatchedBridge');\nrequire('./setUpSegmentFetcher');\nif (__DEV__) {\n require('./checkNativeVersion');\n require('./setUpDeveloperTools');\n}\n\nconst GlobalPerformanceLogger = require('../Utilities/GlobalPerformanceLogger');\n// We could just call GlobalPerformanceLogger.markPoint at the top of the file,\n// but then we'd be excluding the time it took to require the logger.\n// Instead, we just use Date.now and backdate the timestamp.\nGlobalPerformanceLogger.markPoint(\n 'initializeCore_start',\n GlobalPerformanceLogger.currentTimestamp() - (Date.now() - start),\n);\nGlobalPerformanceLogger.markPoint('initializeCore_end');\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n/**\n * Sets up global variables for React Native.\n * You can use this module directly, or just require InitializeCore.\n */\nif (global.GLOBAL === undefined) {\n global.GLOBAL = global;\n}\n\nif (global.window === undefined) {\n global.window = global;\n}\n\nif (global.self === undefined) {\n global.self = global;\n}\n\n// Set up process\nglobal.process = global.process || {};\nglobal.process.env = global.process.env || {};\nif (!global.process.env.NODE_ENV) {\n global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production';\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n/**\n * Set up Systrace profiling hooks if necessary.\n * You can use this module directly, or just require InitializeCore.\n */\nif (global.__RCTProfileIsProfiling) {\n const Systrace = require('../Performance/Systrace');\n Systrace.installReactHook();\n Systrace.setEnabled(true);\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n/**\n * Sets up the console and exception handling (redbox) for React Native.\n * You can use this module directly, or just require InitializeCore.\n */\nconst ExceptionsManager = require('./ExceptionsManager');\nExceptionsManager.installConsoleErrorReporter();\n\n// Set up error handler\nif (!global.__fbDisableExceptionsManager) {\n const handleError = (e, isFatal) => {\n try {\n ExceptionsManager.handleException(e, isFatal);\n } catch (ee) {\n console.log('Failed to print error: ', ee.message);\n throw e;\n }\n };\n\n const ErrorUtils = require('../vendor/core/ErrorUtils');\n ErrorUtils.setGlobalHandler(handleError);\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {ExtendedError} from './Devtools/parseErrorStack';\nimport * as LogBoxData from '../LogBox/Data/LogBoxData';\nimport type {ExceptionData} from './NativeExceptionsManager';\n\nclass SyntheticError extends Error {\n name: string = '';\n}\n\ntype ExceptionDecorator = ExceptionData => ExceptionData;\n\nlet userExceptionDecorator: ?ExceptionDecorator;\nlet inUserExceptionDecorator = false;\n\n/**\n * Allows the app to add information to the exception report before it is sent\n * to native. This API is not final.\n */\n\nfunction unstable_setExceptionDecorator(\n exceptionDecorator: ?ExceptionDecorator,\n) {\n userExceptionDecorator = exceptionDecorator;\n}\n\nfunction preprocessException(data: ExceptionData): ExceptionData {\n if (userExceptionDecorator && !inUserExceptionDecorator) {\n inUserExceptionDecorator = true;\n try {\n return userExceptionDecorator(data);\n } catch {\n // Fall through\n } finally {\n inUserExceptionDecorator = false;\n }\n }\n return data;\n}\n\n/**\n * Handles the developer-visible aspect of errors and exceptions\n */\nlet exceptionID = 0;\nfunction reportException(e: ExtendedError, isFatal: boolean) {\n const NativeExceptionsManager = require('./NativeExceptionsManager').default;\n if (NativeExceptionsManager) {\n const parseErrorStack = require('./Devtools/parseErrorStack');\n const stack = parseErrorStack(e);\n const currentExceptionID = ++exceptionID;\n const originalMessage = e.message || '';\n let message = originalMessage;\n if (e.componentStack != null) {\n message += `\\n\\nThis error is located at:${e.componentStack}`;\n }\n const namePrefix = e.name == null || e.name === '' ? '' : `${e.name}: `;\n const isFromConsoleError = e.name === 'console.error';\n\n if (!message.startsWith(namePrefix)) {\n message = namePrefix + message;\n }\n\n // Errors created by `console.error` have already been printed.\n if (!isFromConsoleError) {\n if (console._errorOriginal) {\n console._errorOriginal(message);\n } else {\n console.error(message);\n }\n }\n\n message =\n e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`;\n\n const isHandledByLogBox =\n e.forceRedbox !== true && global.__unstable_isLogBoxEnabled === true;\n\n const data = preprocessException({\n message,\n originalMessage: message === originalMessage ? null : originalMessage,\n name: e.name == null || e.name === '' ? null : e.name,\n componentStack:\n typeof e.componentStack === 'string' ? e.componentStack : null,\n stack,\n id: currentExceptionID,\n isFatal,\n extraData: {\n jsEngine: e.jsEngine,\n rawStack: e.stack,\n\n // Hack to hide native redboxes when in the LogBox experiment.\n // This is intentionally untyped and stuffed here, because it is temporary.\n suppressRedBox: isHandledByLogBox,\n },\n });\n\n if (isHandledByLogBox) {\n LogBoxData.addException({\n ...data,\n isComponentError: !!e.isComponentError,\n });\n }\n\n NativeExceptionsManager.reportException(data);\n\n if (__DEV__) {\n if (e.preventSymbolication === true) {\n return;\n }\n const symbolicateStackTrace = require('./Devtools/symbolicateStackTrace');\n symbolicateStackTrace(stack)\n .then(({stack: prettyStack}) => {\n if (prettyStack) {\n NativeExceptionsManager.updateExceptionMessage(\n data.message,\n prettyStack,\n currentExceptionID,\n );\n } else {\n throw new Error('The stack is null');\n }\n })\n .catch(error => {\n console.log('Unable to symbolicate stack trace: ' + error.message);\n });\n }\n }\n}\n\ndeclare var console: typeof console & {\n _errorOriginal: typeof console.error,\n reportErrorsAsExceptions: boolean,\n ...\n};\n\n/**\n * Logs exceptions to the (native) console and displays them\n */\nfunction handleException(e: mixed, isFatal: boolean) {\n let error: Error;\n if (e instanceof Error) {\n error = e;\n } else {\n // Workaround for reporting errors caused by `throw 'some string'`\n // Unfortunately there is no way to figure out the stacktrace in this\n // case, so if you ended up here trying to trace an error, look for\n // `throw ''` somewhere in your codebase.\n error = new SyntheticError(e);\n }\n reportException(error, isFatal);\n}\n\nfunction reactConsoleErrorHandler() {\n if (!console.reportErrorsAsExceptions) {\n console._errorOriginal.apply(console, arguments);\n return;\n }\n\n if (arguments[0] && arguments[0].stack) {\n // reportException will console.error this with high enough fidelity.\n reportException(arguments[0], /* isFatal */ false);\n } else {\n console._errorOriginal.apply(console, arguments);\n const stringifySafe = require('../Utilities/stringifySafe');\n const str = Array.prototype.map\n .call(arguments, value =>\n typeof value === 'string' ? value : stringifySafe(value),\n )\n .join(' ');\n\n if (str.slice(0, 9) === 'Warning: ') {\n // React warnings use console.error so that a stack trace is shown, but\n // we don't (currently) want these to show a redbox\n // (Note: Logic duplicated in polyfills/console.js.)\n return;\n }\n const error: ExtendedError = new SyntheticError(str);\n error.name = 'console.error';\n reportException(error, /* isFatal */ false);\n }\n}\n\n/**\n * Shows a redbox with stacktrace for all console.error messages. Disable by\n * setting `console.reportErrorsAsExceptions = false;` in your app.\n */\nfunction installConsoleErrorReporter() {\n // Enable reportErrorsAsExceptions\n if (console._errorOriginal) {\n return; // already installed\n }\n // Flow doesn't like it when you set arbitrary values on a global object\n console._errorOriginal = console.error.bind(console);\n console.error = reactConsoleErrorHandler;\n if (console.reportErrorsAsExceptions === undefined) {\n // Individual apps can disable this\n // Flow doesn't like it when you set arbitrary values on a global object\n console.reportErrorsAsExceptions = true;\n }\n}\n\nmodule.exports = {\n handleException,\n installConsoleErrorReporter,\n SyntheticError,\n unstable_setExceptionDecorator,\n};\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct\");\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nmodule.exports = _isNativeReflectConstruct;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n('use strict');\n\nimport * as React from 'react';\nimport LogBoxLog from './LogBoxLog';\nimport {parseLogBoxException} from './parseLogBoxLog';\nimport type {LogLevel} from './LogBoxLog';\nimport type {\n Message,\n Category,\n ComponentStack,\n ExtendedExceptionData,\n} from './parseLogBoxLog';\nimport parseErrorStack from '../../Core/Devtools/parseErrorStack';\nimport type {ExtendedError} from '../../Core/Devtools/parseErrorStack';\nimport NativeLogBox from '../../NativeModules/specs/NativeLogBox';\nexport type LogBoxLogs = Set;\nexport type LogData = $ReadOnly<{|\n level: LogLevel,\n message: Message,\n category: Category,\n componentStack: ComponentStack,\n|}>;\n\nexport type Observer = (\n $ReadOnly<{|\n logs: LogBoxLogs,\n isDisabled: boolean,\n selectedLogIndex: number,\n |}>,\n) => void;\n\nexport type IgnorePattern = string | RegExp;\n\nexport type Subscription = $ReadOnly<{|\n unsubscribe: () => void,\n|}>;\n\nexport type WarningInfo = {|\n finalFormat: string,\n forceDialogImmediately: boolean,\n suppressDialog_LEGACY: boolean,\n suppressCompletely: boolean,\n monitorEvent: string | null,\n monitorListVersion: number,\n monitorSampleRate: number,\n|};\n\nexport type WarningFilter = (format: string) => WarningInfo;\n\ntype AppInfo = $ReadOnly<{|\n appVersion: string,\n engine: string,\n|}>;\n\nconst observers: Set<{observer: Observer, ...}> = new Set();\nconst ignorePatterns: Set = new Set();\nlet appInfo: ?() => AppInfo = null;\nlet logs: LogBoxLogs = new Set();\nlet updateTimeout = null;\nlet _isDisabled = false;\nlet _selectedIndex = -1;\n\nlet warningFilter: WarningFilter = function(format) {\n return {\n finalFormat: format,\n forceDialogImmediately: false,\n suppressDialog_LEGACY: true,\n suppressCompletely: false,\n monitorEvent: 'unknown',\n monitorListVersion: 0,\n monitorSampleRate: 1,\n };\n};\n\nconst LOGBOX_ERROR_MESSAGE =\n 'An error was thrown when attempting to render log messages via LogBox.';\n\nfunction getNextState() {\n return {\n logs,\n isDisabled: _isDisabled,\n selectedLogIndex: _selectedIndex,\n };\n}\n\nexport function reportLogBoxError(\n error: ExtendedError,\n componentStack?: string,\n): void {\n const ExceptionsManager = require('../../Core/ExceptionsManager');\n\n error.forceRedbox = true;\n error.message = `${LOGBOX_ERROR_MESSAGE}\\n\\n${error.message}`;\n if (componentStack != null) {\n error.componentStack = componentStack;\n }\n ExceptionsManager.handleException(error, /* isFatal */ true);\n}\n\nexport function isLogBoxErrorMessage(message: string): boolean {\n return typeof message === 'string' && message.includes(LOGBOX_ERROR_MESSAGE);\n}\n\nexport function isMessageIgnored(message: string): boolean {\n for (const pattern of ignorePatterns) {\n if (\n (pattern instanceof RegExp && pattern.test(message)) ||\n (typeof pattern === 'string' && message.includes(pattern))\n ) {\n return true;\n }\n }\n return false;\n}\n\nfunction handleUpdate(): void {\n if (updateTimeout == null) {\n updateTimeout = setImmediate(() => {\n updateTimeout = null;\n const nextState = getNextState();\n observers.forEach(({observer}) => observer(nextState));\n });\n }\n}\n\nfunction appendNewLog(newLog) {\n // We don't want to store these logs because they trigger a\n // state update whenever we add them to the store, which is\n // expensive to noisy logs. If we later want to display these\n // we will store them in a different state object.\n if (isMessageIgnored(newLog.message.content)) {\n return;\n }\n\n // If the next log has the same category as the previous one\n // then we want to roll it up into the last log in the list\n // by incrementing the count (simar to how Chrome does it).\n const lastLog = Array.from(logs).pop();\n if (lastLog && lastLog.category === newLog.category) {\n lastLog.incrementCount();\n handleUpdate();\n return;\n }\n\n if (newLog.level === 'fatal') {\n // If possible, to avoid jank, we don't want to open the error before\n // it's symbolicated. To do that, we optimistically wait for\n // sybolication for up to a second before adding the log.\n const OPTIMISTIC_WAIT_TIME = 1000;\n\n let addPendingLog = () => {\n logs.add(newLog);\n if (_selectedIndex <= 0) {\n setSelectedLog(logs.size - 1);\n } else {\n handleUpdate();\n }\n addPendingLog = null;\n };\n\n const optimisticTimeout = setTimeout(() => {\n if (addPendingLog) {\n addPendingLog();\n }\n }, OPTIMISTIC_WAIT_TIME);\n\n newLog.symbolicate(status => {\n if (addPendingLog && status !== 'PENDING') {\n addPendingLog();\n clearTimeout(optimisticTimeout);\n } else if (status !== 'PENDING') {\n // The log has already been added but we need to trigger a render.\n handleUpdate();\n }\n });\n } else if (newLog.level === 'syntax') {\n logs.add(newLog);\n setSelectedLog(logs.size - 1);\n } else {\n logs.add(newLog);\n handleUpdate();\n }\n}\n\nexport function addLog(log: LogData): void {\n const errorForStackTrace = new Error();\n\n // Parsing logs are expensive so we schedule this\n // otherwise spammy logs would pause rendering.\n setImmediate(() => {\n try {\n // TODO: Use Error.captureStackTrace on Hermes\n const stack = parseErrorStack(errorForStackTrace);\n\n appendNewLog(\n new LogBoxLog({\n level: log.level,\n message: log.message,\n isComponentError: false,\n stack,\n category: log.category,\n componentStack: log.componentStack,\n }),\n );\n } catch (error) {\n reportLogBoxError(error);\n }\n });\n}\n\nexport function addException(error: ExtendedExceptionData): void {\n // Parsing logs are expensive so we schedule this\n // otherwise spammy logs would pause rendering.\n setImmediate(() => {\n try {\n appendNewLog(new LogBoxLog(parseLogBoxException(error)));\n } catch (loggingError) {\n reportLogBoxError(loggingError);\n }\n });\n}\n\nexport function symbolicateLogNow(log: LogBoxLog) {\n log.symbolicate(() => {\n handleUpdate();\n });\n}\n\nexport function retrySymbolicateLogNow(log: LogBoxLog) {\n log.retrySymbolicate(() => {\n handleUpdate();\n });\n}\n\nexport function symbolicateLogLazy(log: LogBoxLog) {\n log.symbolicate();\n}\n\nexport function clear(): void {\n if (logs.size > 0) {\n logs = new Set();\n setSelectedLog(-1);\n }\n}\n\nexport function setSelectedLog(proposedNewIndex: number): void {\n const oldIndex = _selectedIndex;\n let newIndex = proposedNewIndex;\n\n const logArray = Array.from(logs);\n let index = logArray.length - 1;\n while (index >= 0) {\n // The latest syntax error is selected and displayed before all other logs.\n if (logArray[index].level === 'syntax') {\n newIndex = index;\n break;\n }\n index -= 1;\n }\n _selectedIndex = newIndex;\n handleUpdate();\n if (NativeLogBox) {\n setTimeout(() => {\n if (oldIndex < 0 && newIndex >= 0) {\n NativeLogBox.show();\n } else if (oldIndex >= 0 && newIndex < 0) {\n NativeLogBox.hide();\n }\n }, 0);\n }\n}\n\nexport function clearWarnings(): void {\n const newLogs = Array.from(logs).filter(log => log.level !== 'warn');\n if (newLogs.length !== logs.size) {\n logs = new Set(newLogs);\n setSelectedLog(-1);\n handleUpdate();\n }\n}\n\nexport function clearErrors(): void {\n const newLogs = Array.from(logs).filter(\n log => log.level !== 'error' && log.level !== 'fatal',\n );\n if (newLogs.length !== logs.size) {\n logs = new Set(newLogs);\n setSelectedLog(-1);\n }\n}\n\nexport function dismiss(log: LogBoxLog): void {\n if (logs.has(log)) {\n logs.delete(log);\n handleUpdate();\n }\n}\n\nexport function setWarningFilter(filter: WarningFilter): void {\n warningFilter = filter;\n}\n\nexport function setAppInfo(info: () => AppInfo): void {\n appInfo = info;\n}\n\nexport function getAppInfo(): ?AppInfo {\n return appInfo != null ? appInfo() : null;\n}\n\nexport function checkWarningFilter(format: string): WarningInfo {\n return warningFilter(format);\n}\n\nexport function addIgnorePatterns(\n patterns: $ReadOnlyArray,\n): void {\n // The same pattern may be added multiple times, but adding a new pattern\n // can be expensive so let's find only the ones that are new.\n const newPatterns = patterns.filter((pattern: IgnorePattern) => {\n if (pattern instanceof RegExp) {\n for (const existingPattern of ignorePatterns.entries()) {\n if (\n existingPattern instanceof RegExp &&\n existingPattern.toString() === pattern.toString()\n ) {\n return false;\n }\n }\n return true;\n }\n return !ignorePatterns.has(pattern);\n });\n\n if (newPatterns.length === 0) {\n return;\n }\n for (const pattern of newPatterns) {\n ignorePatterns.add(pattern);\n\n // We need to recheck all of the existing logs.\n // This allows adding an ignore pattern anywhere in the codebase.\n // Without this, if you ignore a pattern after the a log is created,\n // then we would keep showing the log.\n logs = new Set(\n Array.from(logs).filter(log => !isMessageIgnored(log.message.content)),\n );\n }\n handleUpdate();\n}\n\nexport function setDisabled(value: boolean): void {\n if (value === _isDisabled) {\n return;\n }\n _isDisabled = value;\n handleUpdate();\n}\n\nexport function isDisabled(): boolean {\n return _isDisabled;\n}\n\nexport function observe(observer: Observer): Subscription {\n const subscription = {observer};\n observers.add(subscription);\n\n observer(getNextState());\n\n return {\n unsubscribe(): void {\n observers.delete(subscription);\n },\n };\n}\n\ntype Props = $ReadOnly<{||}>;\ntype State = $ReadOnly<{|\n logs: LogBoxLogs,\n isDisabled: boolean,\n hasError: boolean,\n selectedLogIndex: number,\n|}>;\n\ntype SubscribedComponent = React.AbstractComponent<\n $ReadOnly<{|\n logs: $ReadOnlyArray,\n isDisabled: boolean,\n selectedLogIndex: number,\n |}>,\n>;\n\nexport function withSubscription(\n WrappedComponent: SubscribedComponent,\n): React.AbstractComponent<{||}> {\n class LogBoxStateSubscription extends React.Component {\n static getDerivedStateFromError() {\n return {hasError: true};\n }\n\n componentDidCatch(err: Error, errorInfo: {componentStack: string, ...}) {\n reportLogBoxError(err, errorInfo.componentStack);\n }\n\n _subscription: ?Subscription;\n\n state = {\n logs: new Set(),\n isDisabled: false,\n hasError: false,\n selectedLogIndex: -1,\n };\n\n render(): React.Node {\n if (this.state.hasError) {\n // This happens when the component failed to render, in which case we delegate to the native redbox.\n // We can't show anyback fallback UI here, because the error may be with or .\n return null;\n }\n\n return (\n \n );\n }\n\n componentDidMount(): void {\n this._subscription = observe(data => {\n this.setState(data);\n });\n }\n\n componentWillUnmount(): void {\n if (this._subscription != null) {\n this._subscription.unsubscribe();\n }\n }\n\n _handleDismiss = (): void => {\n // Here we handle the cases when the log is dismissed and it\n // was either the last log, or when the current index\n // is now outside the bounds of the log array.\n const {selectedLogIndex, logs: stateLogs} = this.state;\n const logsArray = Array.from(stateLogs);\n if (selectedLogIndex != null) {\n if (logsArray.length - 1 <= 0) {\n setSelectedLog(-1);\n } else if (selectedLogIndex >= logsArray.length - 1) {\n setSelectedLog(selectedLogIndex - 1);\n }\n\n dismiss(logsArray[selectedLogIndex]);\n }\n };\n\n _handleMinimize = (): void => {\n setSelectedLog(-1);\n };\n\n _handleSetSelectedLog = (index: number): void => {\n setSelectedLog(index);\n };\n }\n\n return LogBoxStateSubscription;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as LogBoxSymbolication from './LogBoxSymbolication';\n\nimport type {\n Category,\n Message,\n ComponentStack,\n CodeFrame,\n} from './parseLogBoxLog';\nimport type {Stack} from './LogBoxSymbolication';\n\ntype SymbolicationStatus = 'NONE' | 'PENDING' | 'COMPLETE' | 'FAILED';\n\nexport type LogLevel = 'warn' | 'error' | 'fatal' | 'syntax';\n\nexport type LogBoxLogData = $ReadOnly<{|\n level: LogLevel,\n message: Message,\n stack: Stack,\n category: string,\n componentStack: ComponentStack,\n codeFrame?: ?CodeFrame,\n isComponentError: boolean,\n|}>;\n\nclass LogBoxLog {\n message: Message;\n category: Category;\n componentStack: ComponentStack;\n stack: Stack;\n count: number;\n level: LogLevel;\n codeFrame: ?CodeFrame;\n isComponentError: boolean;\n symbolicated:\n | $ReadOnly<{|error: null, stack: null, status: 'NONE'|}>\n | $ReadOnly<{|error: null, stack: null, status: 'PENDING'|}>\n | $ReadOnly<{|error: null, stack: Stack, status: 'COMPLETE'|}>\n | $ReadOnly<{|error: Error, stack: null, status: 'FAILED'|}> = {\n error: null,\n stack: null,\n status: 'NONE',\n };\n\n constructor(data: LogBoxLogData) {\n this.level = data.level;\n this.message = data.message;\n this.stack = data.stack;\n this.category = data.category;\n this.componentStack = data.componentStack;\n this.codeFrame = data.codeFrame;\n this.isComponentError = data.isComponentError;\n this.count = 1;\n }\n\n incrementCount(): void {\n this.count += 1;\n }\n\n getAvailableStack(): Stack {\n return this.symbolicated.status === 'COMPLETE'\n ? this.symbolicated.stack\n : this.stack;\n }\n\n retrySymbolicate(callback?: (status: SymbolicationStatus) => void): void {\n if (this.symbolicated.status !== 'COMPLETE') {\n LogBoxSymbolication.deleteStack(this.stack);\n this.handleSymbolicate(callback);\n }\n }\n\n symbolicate(callback?: (status: SymbolicationStatus) => void): void {\n if (this.symbolicated.status === 'NONE') {\n this.handleSymbolicate(callback);\n }\n }\n\n handleSymbolicate(callback?: (status: SymbolicationStatus) => void): void {\n if (this.symbolicated.status !== 'PENDING') {\n this.updateStatus(null, null, null, callback);\n LogBoxSymbolication.symbolicate(this.stack).then(\n data => {\n this.updateStatus(null, data?.stack, data?.codeFrame, callback);\n },\n error => {\n this.updateStatus(error, null, null, callback);\n },\n );\n }\n }\n\n updateStatus(\n error: ?Error,\n stack: ?Stack,\n codeFrame: ?CodeFrame,\n callback?: (status: SymbolicationStatus) => void,\n ): void {\n const lastStatus = this.symbolicated.status;\n if (error != null) {\n this.symbolicated = {\n error,\n stack: null,\n status: 'FAILED',\n };\n } else if (stack != null) {\n if (codeFrame) {\n this.codeFrame = codeFrame;\n }\n\n this.symbolicated = {\n error: null,\n stack,\n status: 'COMPLETE',\n };\n } else {\n this.symbolicated = {\n error: null,\n stack: null,\n status: 'PENDING',\n };\n }\n\n if (callback && lastStatus !== this.symbolicated.status) {\n callback(this.symbolicated.status);\n }\n }\n}\n\nexport default LogBoxLog;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport symbolicateStackTrace from '../../Core/Devtools/symbolicateStackTrace';\n\nimport type {StackFrame} from '../../Core/NativeExceptionsManager';\nimport type {SymbolicatedStackTrace} from '../../Core/Devtools/symbolicateStackTrace';\n\nexport type Stack = Array;\n\nconst cache: Map> = new Map();\n\n/**\n * Sanitize because sometimes, `symbolicateStackTrace` gives us invalid values.\n */\nconst sanitize = ({\n stack: maybeStack,\n codeFrame,\n}: SymbolicatedStackTrace): SymbolicatedStackTrace => {\n if (!Array.isArray(maybeStack)) {\n throw new Error('Expected stack to be an array.');\n }\n const stack = [];\n for (const maybeFrame of maybeStack) {\n let collapse = false;\n if ('collapse' in maybeFrame) {\n if (typeof maybeFrame.collapse !== 'boolean') {\n throw new Error('Expected stack frame `collapse` to be a boolean.');\n }\n collapse = maybeFrame.collapse;\n }\n stack.push({\n column: maybeFrame.column,\n file: maybeFrame.file,\n lineNumber: maybeFrame.lineNumber,\n methodName: maybeFrame.methodName,\n collapse,\n });\n }\n return {stack, codeFrame};\n};\n\nexport function deleteStack(stack: Stack): void {\n cache.delete(stack);\n}\n\nexport function symbolicate(stack: Stack): Promise {\n let promise = cache.get(stack);\n if (promise == null) {\n promise = symbolicateStackTrace(stack).then(sanitize);\n cache.set(stack, promise);\n }\n\n return promise;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst getDevServer = require('./getDevServer');\n\nimport NativeSourceCode from '../../NativeModules/specs/NativeSourceCode';\n\n// Avoid requiring fetch on load of this module; see symbolicateStackTrace\nlet fetch;\n\nimport type {StackFrame} from '../NativeExceptionsManager';\n\nexport type CodeFrame = $ReadOnly<{|\n content: string,\n location: ?{\n row: number,\n column: number,\n ...\n },\n fileName: string,\n|}>;\n\nexport type SymbolicatedStackTrace = $ReadOnly<{|\n stack: Array,\n codeFrame: ?CodeFrame,\n|}>;\n\nfunction isSourcedFromDisk(sourcePath: string): boolean {\n return !/^http/.test(sourcePath) && /[\\\\/]/.test(sourcePath);\n}\n\nasync function symbolicateStackTrace(\n stack: Array,\n): Promise {\n // RN currently lazy loads whatwg-fetch using a custom fetch module, which,\n // when called for the first time, requires and re-exports 'whatwg-fetch'.\n // However, when a dependency of the project tries to require whatwg-fetch\n // either directly or indirectly, whatwg-fetch is required before\n // RN can lazy load whatwg-fetch. As whatwg-fetch checks\n // for a fetch polyfill before loading, it will in turn try to load\n // RN's fetch module, which immediately tries to import whatwg-fetch AGAIN.\n // This causes a circular require which results in RN's fetch module\n // exporting fetch as 'undefined'.\n // The fix below postpones trying to load fetch until the first call to symbolicateStackTrace.\n // At that time, we will have either global.fetch (whatwg-fetch) or RN's fetch.\n if (!fetch) {\n fetch = global.fetch || require('../../Network/fetch').fetch;\n }\n\n const devServer = getDevServer();\n if (!devServer.bundleLoadedFromServer) {\n throw new Error('Bundle was not loaded from the packager');\n }\n\n let stackCopy = stack;\n\n const {scriptURL} = NativeSourceCode.getConstants();\n if (scriptURL) {\n let foundInternalSource: boolean = false;\n stackCopy = stack.map((frame: StackFrame) => {\n if (frame.file == null) {\n return frame;\n }\n\n // If the sources exist on disk rather than appearing to come from the packager,\n // replace the location with the packager URL until we reach an internal source\n // which does not have a path (no slashes), indicating a switch from within\n // the application to a surrounding debugging environment.\n if (!foundInternalSource && isSourcedFromDisk(frame.file)) {\n // Copy frame into new object and replace 'file' property\n return {...frame, file: scriptURL};\n }\n\n foundInternalSource = true;\n return frame;\n });\n }\n\n const response = await fetch(devServer.url + 'symbolicate', {\n method: 'POST',\n body: JSON.stringify({stack: stackCopy}),\n });\n return await response.json();\n}\n\nmodule.exports = symbolicateStackTrace;\n","module.exports = require(\"regenerator-runtime\");\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n scriptURL: string,\n |};\n}\n\nexport default (TurboModuleRegistry.getEnforcing('SourceCode'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport NativeSourceCode from '../../NativeModules/specs/NativeSourceCode';\n\nlet _cachedDevServerURL: ?string;\nconst FALLBACK = 'http://localhost:8081/';\n\ntype DevServerInfo = {\n url: string,\n bundleLoadedFromServer: boolean,\n ...\n};\n\n/**\n * Many RN development tools rely on the development server (packager) running\n * @return URL to packager with trailing slash\n */\nfunction getDevServer(): DevServerInfo {\n if (_cachedDevServerURL === undefined) {\n const match = NativeSourceCode.getConstants().scriptURL.match(\n /^https?:\\/\\/.*?\\//,\n );\n _cachedDevServerURL = match ? match[0] : null;\n }\n\n return {\n url: _cachedDevServerURL || FALLBACK,\n bundleLoadedFromServer: _cachedDevServerURL !== null,\n };\n}\n\nmodule.exports = getDevServer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n/* globals Headers, Request, Response */\n\n'use strict';\n\n// side-effectful require() to put fetch,\n// Headers, Request, Response in global scope\nrequire('whatwg-fetch');\n\nmodule.exports = {fetch, Headers, Request, Response};\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (factory((global.WHATWGFetch = {})));\n}(this, (function (exports) { 'use strict';\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob:\n 'FileReader' in self &&\n 'Blob' in self &&\n (function() {\n try {\n new Blob();\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n };\n\n function isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ];\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n };\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift();\n return {done: value === undefined, value: value}\n }\n };\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n };\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {};\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\n };\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)];\n };\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null\n };\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n };\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n\n Headers.prototype.keys = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push(name);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.values = function() {\n var items = [];\n this.forEach(function(value) {\n items.push(value);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.entries = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items)\n };\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true;\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result);\n };\n reader.onerror = function() {\n reject(reader.error);\n };\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsText(blob);\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false;\n\n this._initBody = function(body) {\n this._bodyInit = body;\n if (!body) {\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n this._bodyText = body = Object.prototype.toString.call(body);\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n }\n };\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n };\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n };\n }\n\n this.text = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n };\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n };\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n };\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {};\n var body = options.body;\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n this.signal = input.signal;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.signal = options.signal || this.signal;\n this.referrer = null;\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body);\n }\n\n Request.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n };\n\n function decode(body) {\n var form = new FormData();\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n headers.append(key, value);\n }\n });\n return headers\n }\n\n Body.call(Request.prototype);\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {};\n }\n\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n\n Body.call(Response.prototype);\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n };\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''});\n response.type = 'error';\n return response\n };\n\n var redirectStatuses = [301, 302, 303, 307, 308];\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n };\n\n exports.DOMException = self.DOMException;\n try {\n new exports.DOMException();\n } catch (err) {\n exports.DOMException = function(message, name) {\n this.message = message;\n this.name = name;\n var error = Error(message);\n this.stack = error.stack;\n };\n exports.DOMException.prototype = Object.create(Error.prototype);\n exports.DOMException.prototype.constructor = exports.DOMException;\n }\n\n function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init);\n\n if (request.signal && request.signal.aborted) {\n return reject(new exports.DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest();\n\n function abortXhr() {\n xhr.abort();\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n };\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options));\n };\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.onabort = function() {\n reject(new exports.DOMException('Aborted', 'AbortError'));\n };\n\n xhr.open(request.method, request.url, true);\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob';\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value);\n });\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr);\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr);\n }\n };\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n })\n }\n\n fetch.polyfill = true;\n\n if (!self.fetch) {\n self.fetch = fetch;\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n }\n\n exports.Headers = Headers;\n exports.Request = Request;\n exports.Response = Response;\n exports.fetch = fetch;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport UTFSequence from '../../UTFSequence';\nimport stringifySafe from '../../Utilities/stringifySafe';\nimport type {ExceptionData} from '../../Core/NativeExceptionsManager';\nimport type {LogBoxLogData} from './LogBoxLog';\n\nconst BABEL_TRANSFORM_ERROR_FORMAT = /^(?:TransformError )?(?:SyntaxError: |ReferenceError: )(.*): (.*) \\((\\d+):(\\d+)\\)\\n\\n([\\s\\S]+)/;\nconst BABEL_CODE_FRAME_ERROR_FORMAT = /^(?:TransformError )?(?:.*): (.*): ([\\s\\S]+?)\\n([ >]{2}[\\d\\s]+ \\|[\\s\\S]+|\\u{001b}[\\s\\S]+)/u;\n\nexport type ExtendedExceptionData = ExceptionData & {\n isComponentError: boolean,\n ...\n};\nexport type Category = string;\nexport type CodeFrame = $ReadOnly<{|\n content: string,\n location: ?{\n row: number,\n column: number,\n ...\n },\n fileName: string,\n|}>;\nexport type Message = $ReadOnly<{|\n content: string,\n substitutions: $ReadOnlyArray<\n $ReadOnly<{|\n length: number,\n offset: number,\n |}>,\n >,\n|}>;\n\nexport type ComponentStack = $ReadOnlyArray;\n\nconst SUBSTITUTION = UTFSequence.BOM + '%s';\n\nexport function parseCategory(\n args: $ReadOnlyArray,\n): $ReadOnly<{|\n category: Category,\n message: Message,\n|}> {\n const categoryParts = [];\n const contentParts = [];\n const substitutionOffsets = [];\n\n const remaining = [...args];\n if (typeof remaining[0] === 'string') {\n const formatString = String(remaining.shift());\n const formatStringParts = formatString.split('%s');\n const substitutionCount = formatStringParts.length - 1;\n const substitutions = remaining.splice(0, substitutionCount);\n\n let categoryString = '';\n let contentString = '';\n\n let substitutionIndex = 0;\n for (const formatStringPart of formatStringParts) {\n categoryString += formatStringPart;\n contentString += formatStringPart;\n\n if (substitutionIndex < substitutionCount) {\n if (substitutionIndex < substitutions.length) {\n // Don't stringify a string type.\n // It adds quotation mark wrappers around the string,\n // which causes the LogBox to look odd.\n const substitution =\n typeof substitutions[substitutionIndex] === 'string'\n ? substitutions[substitutionIndex]\n : stringifySafe(substitutions[substitutionIndex]);\n substitutionOffsets.push({\n length: substitution.length,\n offset: contentString.length,\n });\n\n categoryString += SUBSTITUTION;\n contentString += substitution;\n } else {\n substitutionOffsets.push({\n length: 2,\n offset: contentString.length,\n });\n\n categoryString += '%s';\n contentString += '%s';\n }\n\n substitutionIndex++;\n }\n }\n\n categoryParts.push(categoryString);\n contentParts.push(contentString);\n }\n\n const remainingArgs = remaining.map(arg => {\n // Don't stringify a string type.\n // It adds quotation mark wrappers around the string,\n // which causes the LogBox to look odd.\n return typeof arg === 'string' ? arg : stringifySafe(arg);\n });\n categoryParts.push(...remainingArgs);\n contentParts.push(...remainingArgs);\n\n return {\n category: categoryParts.join(' '),\n message: {\n content: contentParts.join(' '),\n substitutions: substitutionOffsets,\n },\n };\n}\n\nexport function parseComponentStack(message: string): ComponentStack {\n return message\n .split(/\\n {4}in /g)\n .map(s => {\n if (!s) {\n return null;\n }\n const match = s.match(/(.*) \\(at (.*\\.js):([\\d]+)\\)/);\n if (!match) {\n return null;\n }\n\n let [content, fileName, row] = match.slice(1);\n return {\n content,\n fileName,\n location: {column: -1, row: parseInt(row, 10)},\n };\n })\n .filter(Boolean);\n}\n\nexport function parseLogBoxException(\n error: ExtendedExceptionData,\n): LogBoxLogData {\n const message =\n error.originalMessage != null ? error.originalMessage : 'Unknown';\n\n const babelTransformError = message.match(BABEL_TRANSFORM_ERROR_FORMAT);\n if (babelTransformError) {\n // Transform errors are thrown from inside the Babel transformer.\n const [\n fileName,\n content,\n row,\n column,\n codeFrame,\n ] = babelTransformError.slice(1);\n\n return {\n level: 'syntax',\n stack: [],\n isComponentError: false,\n componentStack: [],\n codeFrame: {\n fileName,\n location: {\n row: parseInt(row, 10),\n column: parseInt(column, 10),\n },\n content: codeFrame,\n },\n message: {\n content,\n substitutions: [],\n },\n category: `${fileName}-${row}-${column}`,\n };\n }\n\n const babelCodeFrameError = message.match(BABEL_CODE_FRAME_ERROR_FORMAT);\n\n if (babelCodeFrameError) {\n // Codeframe errors are thrown from any use of buildCodeFrameError.\n const [fileName, content, codeFrame] = babelCodeFrameError.slice(1);\n return {\n level: 'syntax',\n stack: [],\n isComponentError: false,\n componentStack: [],\n codeFrame: {\n fileName,\n location: null, // We are not given the location.\n content: codeFrame,\n },\n message: {\n content,\n substitutions: [],\n },\n category: `${fileName}-${1}-${1}`,\n };\n }\n\n const level = message.match(/^TransformError /)\n ? 'syntax'\n : error.isFatal || error.isComponentError\n ? 'fatal'\n : 'error';\n\n return {\n level: level,\n stack: error.stack,\n isComponentError: error.isComponentError,\n componentStack:\n error.componentStack != null\n ? parseComponentStack(error.componentStack)\n : [],\n ...parseCategory([message]),\n };\n}\n\nexport function parseLogBoxLog(\n args: $ReadOnlyArray,\n): {|\n componentStack: ComponentStack,\n category: Category,\n message: Message,\n|} {\n const message = args[0];\n let argsWithoutComponentStack = [];\n let componentStack = [];\n\n // Extract component stack from warnings like \"Some warning%s\".\n if (\n typeof message === 'string' &&\n message.slice(-2) === '%s' &&\n args.length > 0\n ) {\n const lastArg = args[args.length - 1];\n // Does it look like React component stack? \" in ...\"\n if (typeof lastArg === 'string' && /\\s{4}in/.test(lastArg)) {\n argsWithoutComponentStack = args.slice(0, -1);\n argsWithoutComponentStack[0] = message.slice(0, -2);\n componentStack = parseComponentStack(lastArg);\n }\n }\n\n if (componentStack.length === 0) {\n // Try finding the component stack elsewhere.\n for (const arg of args) {\n if (typeof arg === 'string' && /^\\n {4}in/.exec(arg)) {\n componentStack = parseComponentStack(arg);\n } else {\n argsWithoutComponentStack.push(arg);\n }\n }\n }\n\n return {\n ...parseCategory(argsWithoutComponentStack),\n componentStack,\n };\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst deepFreezeAndThrowOnMutationInDev = require('./Utilities/deepFreezeAndThrowOnMutationInDev');\n\n/**\n * A collection of Unicode sequences for various characters and emoji.\n *\n * - More explicit than using the sequences directly in code.\n * - Source code should be limitted to ASCII.\n * - Less chance of typos.\n */\nconst UTFSequence: {|\n BOM: string,\n BULLET: string,\n BULLET_SP: string,\n MDASH: string,\n MDASH_SP: string,\n MIDDOT: string,\n MIDDOT_KATAKANA: string,\n MIDDOT_SP: string,\n NBSP: string,\n NDASH: string,\n NDASH_SP: string,\n PIZZA: string,\n TRIANGLE_LEFT: string,\n TRIANGLE_RIGHT: string,\n|} = deepFreezeAndThrowOnMutationInDev({\n BOM: '\\ufeff', // byte order mark\n BULLET: '\\u2022', // bullet: •\n BULLET_SP: '\\u00A0\\u2022\\u00A0', //  • \n MIDDOT: '\\u00B7', // normal middle dot: ·\n MIDDOT_SP: '\\u00A0\\u00B7\\u00A0', //  · \n MIDDOT_KATAKANA: '\\u30FB', // katakana middle dot\n MDASH: '\\u2014', // em dash: —\n MDASH_SP: '\\u00A0\\u2014\\u00A0', //  — \n NDASH: '\\u2013', // en dash: –\n NDASH_SP: '\\u00A0\\u2013\\u00A0', //  – \n NBSP: '\\u00A0', // non-breaking space:  \n PIZZA: '\\uD83C\\uDF55',\n TRIANGLE_LEFT: '\\u25c0', // black left-pointing triangle\n TRIANGLE_RIGHT: '\\u25b6', // black right-pointing triangle\n});\n\nmodule.exports = UTFSequence;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type {StackFrame} from '../NativeExceptionsManager';\nimport type {HermesParsedStack} from './parseHermesStack';\n\nconst parseHermesStack = require('./parseHermesStack');\n\nexport type ExtendedError = Error & {\n jsEngine?: string,\n preventSymbolication?: boolean,\n componentStack?: string,\n forceRedbox?: boolean,\n isComponentError?: boolean,\n ...\n};\n\nfunction convertHermesStack(stack: HermesParsedStack): Array {\n const frames = [];\n for (const entry of stack.entries) {\n if (entry.type !== 'FRAME') {\n continue;\n }\n const {location, functionName} = entry;\n if (location.type === 'NATIVE') {\n continue;\n }\n frames.push({\n methodName: functionName,\n file: location.sourceUrl,\n lineNumber: location.line1Based,\n column:\n location.type === 'SOURCE'\n ? location.column1Based - 1\n : location.virtualOffset0Based,\n });\n }\n return frames;\n}\n\nfunction parseErrorStack(e: ExtendedError): Array {\n if (!e || !e.stack) {\n return [];\n }\n\n const stacktraceParser = require('stacktrace-parser');\n const stack = Array.isArray(e.stack)\n ? e.stack\n : global.HermesInternal\n ? convertHermesStack(parseHermesStack(e.stack))\n : stacktraceParser.parse(e.stack).map(frame => ({\n ...frame,\n column: frame.column != null ? frame.column - 1 : null,\n }));\n\n return stack;\n}\n\nmodule.exports = parseErrorStack;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\ntype HermesStackLocationNative = {|\n +type: 'NATIVE',\n|};\n\ntype HermesStackLocationSource = {|\n +type: 'SOURCE',\n +sourceUrl: string,\n +line1Based: number,\n +column1Based: number,\n|};\n\ntype HermesStackLocationBytecode = {|\n +type: 'BYTECODE',\n +sourceUrl: string,\n +line1Based: number,\n +virtualOffset0Based: number,\n|};\n\ntype HermesStackLocation =\n | HermesStackLocationNative\n | HermesStackLocationSource\n | HermesStackLocationBytecode;\n\ntype HermesStackEntryFrame = {|\n +type: 'FRAME',\n +location: HermesStackLocation,\n +functionName: string,\n|};\n\ntype HermesStackEntrySkipped = {|\n +type: 'SKIPPED',\n +count: number,\n|};\n\ntype HermesStackEntry = HermesStackEntryFrame | HermesStackEntrySkipped;\n\nexport type HermesParsedStack = {|\n +message: string,\n +entries: $ReadOnlyArray,\n|};\n\n// Capturing groups:\n// 1. function name\n// 2. is this a native stack frame?\n// 3. is this a bytecode address or a source location?\n// 4. source URL (filename)\n// 5. line number (1 based)\n// 6. column number (1 based) or virtual offset (0 based)\nconst RE_FRAME = /^ {4}at (.+?)(?: \\((native)\\)?| \\((address at )?(.+?):(\\d+):(\\d+)\\))$/;\n\n// Capturing groups:\n// 1. count of skipped frames\nconst RE_SKIPPED = /^ {4}... skipping (\\d+) frames$/;\n\nfunction parseLine(line: string): ?HermesStackEntry {\n const asFrame = line.match(RE_FRAME);\n if (asFrame) {\n return {\n type: 'FRAME',\n functionName: asFrame[1],\n location:\n asFrame[2] === 'native'\n ? {type: 'NATIVE'}\n : asFrame[3] === 'address at '\n ? {\n type: 'BYTECODE',\n sourceUrl: asFrame[4],\n line1Based: Number.parseInt(asFrame[5], 10),\n virtualOffset0Based: Number.parseInt(asFrame[6], 10),\n }\n : {\n type: 'SOURCE',\n sourceUrl: asFrame[4],\n line1Based: Number.parseInt(asFrame[5], 10),\n column1Based: Number.parseInt(asFrame[6], 10),\n },\n };\n }\n const asSkipped = line.match(RE_SKIPPED);\n if (asSkipped) {\n return {\n type: 'SKIPPED',\n count: Number.parseInt(asSkipped[1], 10),\n };\n }\n}\n\nmodule.exports = function parseHermesStack(stack: string): HermesParsedStack {\n const lines = stack.split(/\\n/);\n let entries = [];\n let lastMessageLine = -1;\n for (let i = 0; i < lines.length; ++i) {\n const line = lines[i];\n if (!line) {\n continue;\n }\n const entry = parseLine(line);\n if (entry) {\n entries.push(entry);\n continue;\n }\n // No match - we're still in the message\n lastMessageLine = i;\n entries = [];\n }\n const message = lines.slice(0, lastMessageLine + 1).join('\\n');\n return {message, entries};\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar UNKNOWN_FUNCTION = '';\n/**\n * This parses the different stack traces and puts them into one format\n * This borrows heavily from TraceKit (https://github.com/csnover/TraceKit)\n */\n\nfunction parse(stackString) {\n var lines = stackString.split('\\n');\n return lines.reduce(function (stack, line) {\n var parseResult = parseChrome(line) || parseWinjs(line) || parseGecko(line) || parseNode(line) || parseJSC(line);\n\n if (parseResult) {\n stack.push(parseResult);\n }\n\n return stack;\n }, []);\n}\nvar chromeRe = /^\\s*at (.*?) ?\\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\\/|[a-z]:\\\\|\\\\\\\\).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nvar chromeEvalRe = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\n\nfunction parseChrome(line) {\n var parts = chromeRe.exec(line);\n\n if (!parts) {\n return null;\n }\n\n var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line\n\n var isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line\n\n var submatch = chromeEvalRe.exec(parts[2]);\n\n if (isEval && submatch != null) {\n // throw out eval line/column and use top-most line/column number\n parts[2] = submatch[1]; // url\n\n parts[3] = submatch[2]; // line\n\n parts[4] = submatch[3]; // column\n }\n\n return {\n file: !isNative ? parts[2] : null,\n methodName: parts[1] || UNKNOWN_FUNCTION,\n arguments: isNative ? [parts[2]] : [],\n lineNumber: parts[3] ? +parts[3] : null,\n column: parts[4] ? +parts[4] : null\n };\n}\n\nvar winjsRe = /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nfunction parseWinjs(line) {\n var parts = winjsRe.exec(line);\n\n if (!parts) {\n return null;\n }\n\n return {\n file: parts[2],\n methodName: parts[1] || UNKNOWN_FUNCTION,\n arguments: [],\n lineNumber: +parts[3],\n column: parts[4] ? +parts[4] : null\n };\n}\n\nvar geckoRe = /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\\[native).*?|[^@]*bundle)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nvar geckoEvalRe = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\n\nfunction parseGecko(line) {\n var parts = geckoRe.exec(line);\n\n if (!parts) {\n return null;\n }\n\n var isEval = parts[3] && parts[3].indexOf(' > eval') > -1;\n var submatch = geckoEvalRe.exec(parts[3]);\n\n if (isEval && submatch != null) {\n // throw out eval line/column and use top-most line number\n parts[3] = submatch[1];\n parts[4] = submatch[2];\n parts[5] = null; // no column when eval\n }\n\n return {\n file: parts[3],\n methodName: parts[1] || UNKNOWN_FUNCTION,\n arguments: parts[2] ? parts[2].split(',') : [],\n lineNumber: parts[4] ? +parts[4] : null,\n column: parts[5] ? +parts[5] : null\n };\n}\n\nvar javaScriptCoreRe = /^\\s*(?:([^@]*)(?:\\((.*?)\\))?@)?(\\S.*?):(\\d+)(?::(\\d+))?\\s*$/i;\n\nfunction parseJSC(line) {\n var parts = javaScriptCoreRe.exec(line);\n\n if (!parts) {\n return null;\n }\n\n return {\n file: parts[3],\n methodName: parts[1] || UNKNOWN_FUNCTION,\n arguments: [],\n lineNumber: +parts[4],\n column: parts[5] ? +parts[5] : null\n };\n}\n\nvar nodeRe = /^\\s*at (?:((?:\\[object object\\])?[^\\\\/]+(?: \\[as \\S+\\])?) )?\\(?(.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nfunction parseNode(line) {\n var parts = nodeRe.exec(line);\n\n if (!parts) {\n return null;\n }\n\n return {\n file: parts[2],\n methodName: parts[1] || UNKNOWN_FUNCTION,\n arguments: [],\n lineNumber: +parts[3],\n column: parts[4] ? +parts[4] : null\n };\n}\n\nexports.parse = parse;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';\nimport * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +show: () => void;\n +hide: () => void;\n}\n\nexport default (TurboModuleRegistry.get('LogBox'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport type StackFrame = {|\n column: ?number,\n file: ?string,\n lineNumber: ?number,\n methodName: string,\n collapse?: boolean,\n|};\n\nexport type ExceptionData = {\n message: string,\n originalMessage: ?string,\n name: ?string,\n componentStack: ?string,\n stack: Array,\n id: number,\n isFatal: boolean,\n // flowlint-next-line unclear-type:off\n extraData?: Object,\n ...\n};\n\nexport interface Spec extends TurboModule {\n // Deprecated: Use `reportException`\n +reportFatalException: (\n message: string,\n stack: Array,\n exceptionId: number,\n ) => void;\n // Deprecated: Use `reportException`\n +reportSoftException: (\n message: string,\n stack: Array,\n exceptionId: number,\n ) => void;\n // TODO(T53311281): This is a noop on iOS now. Implement it.\n +reportException?: (data: ExceptionData) => void;\n +updateExceptionMessage: (\n message: string,\n stack: Array,\n exceptionId: number,\n ) => void;\n // TODO(T53311281): This is a noop on iOS now. Implement it.\n +dismissRedbox?: () => void;\n}\n\nconst Platform = require('../Utilities/Platform');\n\nconst NativeModule = TurboModuleRegistry.getEnforcing(\n 'ExceptionsManager',\n);\n\nconst ExceptionsManager = {\n reportFatalException(\n message: string,\n stack: Array,\n exceptionId: number,\n ) {\n NativeModule.reportFatalException(message, stack, exceptionId);\n },\n reportSoftException(\n message: string,\n stack: Array,\n exceptionId: number,\n ) {\n NativeModule.reportSoftException(message, stack, exceptionId);\n },\n updateExceptionMessage(\n message: string,\n stack: Array,\n exceptionId: number,\n ) {\n NativeModule.updateExceptionMessage(message, stack, exceptionId);\n },\n dismissRedbox(): void {\n if (Platform.OS !== 'ios' && NativeModule.dismissRedbox) {\n // TODO(T53311281): This is a noop on iOS now. Implement it.\n NativeModule.dismissRedbox();\n }\n },\n reportException(data: ExceptionData): void {\n if (NativeModule.reportException) {\n NativeModule.reportException(data);\n return;\n }\n if (data.isFatal) {\n ExceptionsManager.reportFatalException(data.message, data.stack, data.id);\n } else {\n ExceptionsManager.reportSoftException(data.message, data.stack, data.id);\n }\n },\n};\n\nexport default ExceptionsManager;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst {polyfillGlobal} = require('../Utilities/PolyfillFunctions');\n\n/**\n * Set up Promise. The native Promise implementation throws the following error:\n * ERROR: Event loop not supported.\n *\n * If you don't need these polyfills, don't use InitializeCore; just directly\n * require the modules you need from InitializeCore for setup.\n */\npolyfillGlobal('Promise', () => require('../Promise'));\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst defineLazyObjectProperty = require('./defineLazyObjectProperty');\n\n/**\n * Sets an object's property. If a property with the same name exists, this will\n * replace it but maintain its descriptor configuration. The property will be\n * replaced with a lazy getter.\n *\n * In DEV mode the original property value will be preserved as `original[PropertyName]`\n * so that, if necessary, it can be restored. For example, if you want to route\n * network requests through DevTools (to trace them):\n *\n * global.XMLHttpRequest = global.originalXMLHttpRequest;\n *\n * @see https://github.com/facebook/react-native/issues/934\n */\nfunction polyfillObjectProperty(\n object: Object,\n name: string,\n getValue: () => T,\n): void {\n const descriptor = Object.getOwnPropertyDescriptor(object, name);\n if (__DEV__ && descriptor) {\n const backupName = `original${name[0].toUpperCase()}${name.substr(1)}`;\n Object.defineProperty(object, backupName, descriptor);\n }\n\n const {enumerable, writable, configurable} = descriptor || {};\n if (descriptor && !configurable) {\n console.error('Failed to set polyfill. ' + name + ' is not configurable.');\n return;\n }\n\n defineLazyObjectProperty(object, name, {\n get: getValue,\n enumerable: enumerable !== false,\n writable: writable !== false,\n });\n}\n\nfunction polyfillGlobal(name: string, getValue: () => T): void {\n polyfillObjectProperty(global, name, getValue);\n}\n\nmodule.exports = {polyfillObjectProperty, polyfillGlobal};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Promise = require('promise/setimmediate/es6-extensions');\n\nrequire('promise/setimmediate/done');\nrequire('promise/setimmediate/finally');\n\nif (__DEV__) {\n require('promise/setimmediate/rejection-tracking').enable({\n allRejections: true,\n onUnhandled: (id, error = {}) => {\n let message: string;\n let stack: ?string;\n\n const stringValue = Object.prototype.toString.call(error);\n if (stringValue === '[object Error]') {\n message = Error.prototype.toString.call(error);\n stack = error.stack;\n } else {\n try {\n message = require('pretty-format')(error);\n } catch {\n message = typeof error === 'string' ? error : JSON.stringify(error);\n }\n }\n\n const warning =\n `Possible Unhandled Promise Rejection (id: ${id}):\\n` +\n `${message}\\n` +\n (stack == null ? '' : stack);\n console.warn(warning);\n },\n onHandled: id => {\n const warning =\n `Promise Rejection Handled (id: ${id})\\n` +\n 'This means you can ignore any previous messages of the form ' +\n `\"Possible Unhandled Promise Rejection (id: ${id}):\"`;\n console.warn(warning);\n },\n });\n}\n\nmodule.exports = Promise;\n","'use strict';\n\n//This file contains the ES6 extensions to the core Promises/A+ API\n\nvar Promise = require('./core.js');\n\nmodule.exports = Promise;\n\n/* Static Functions */\n\nvar TRUE = valuePromise(true);\nvar FALSE = valuePromise(false);\nvar NULL = valuePromise(null);\nvar UNDEFINED = valuePromise(undefined);\nvar ZERO = valuePromise(0);\nvar EMPTYSTRING = valuePromise('');\n\nfunction valuePromise(value) {\n var p = new Promise(Promise._61);\n p._65 = 1;\n p._55 = value;\n return p;\n}\nPromise.resolve = function (value) {\n if (value instanceof Promise) return value;\n\n if (value === null) return NULL;\n if (value === undefined) return UNDEFINED;\n if (value === true) return TRUE;\n if (value === false) return FALSE;\n if (value === 0) return ZERO;\n if (value === '') return EMPTYSTRING;\n\n if (typeof value === 'object' || typeof value === 'function') {\n try {\n var then = value.then;\n if (typeof then === 'function') {\n return new Promise(then.bind(value));\n }\n } catch (ex) {\n return new Promise(function (resolve, reject) {\n reject(ex);\n });\n }\n }\n return valuePromise(value);\n};\n\nPromise.all = function (arr) {\n var args = Array.prototype.slice.call(arr);\n\n return new Promise(function (resolve, reject) {\n if (args.length === 0) return resolve([]);\n var remaining = args.length;\n function res(i, val) {\n if (val && (typeof val === 'object' || typeof val === 'function')) {\n if (val instanceof Promise && val.then === Promise.prototype.then) {\n while (val._65 === 3) {\n val = val._55;\n }\n if (val._65 === 1) return res(i, val._55);\n if (val._65 === 2) reject(val._55);\n val.then(function (val) {\n res(i, val);\n }, reject);\n return;\n } else {\n var then = val.then;\n if (typeof then === 'function') {\n var p = new Promise(then.bind(val));\n p.then(function (val) {\n res(i, val);\n }, reject);\n return;\n }\n }\n }\n args[i] = val;\n if (--remaining === 0) {\n resolve(args);\n }\n }\n for (var i = 0; i < args.length; i++) {\n res(i, args[i]);\n }\n });\n};\n\nPromise.reject = function (value) {\n return new Promise(function (resolve, reject) {\n reject(value);\n });\n};\n\nPromise.race = function (values) {\n return new Promise(function (resolve, reject) {\n values.forEach(function(value){\n Promise.resolve(value).then(resolve, reject);\n });\n });\n};\n\n/* Prototype Methods */\n\nPromise.prototype['catch'] = function (onRejected) {\n return this.then(null, onRejected);\n};\n","'use strict';\n\n\n\nfunction noop() {}\n\n// States:\n//\n// 0 - pending\n// 1 - fulfilled with _value\n// 2 - rejected with _value\n// 3 - adopted the state of another promise, _value\n//\n// once the state is no longer pending (0) it is immutable\n\n// All `_` prefixed properties will be reduced to `_{random number}`\n// at build time to obfuscate them and discourage their use.\n// We don't use symbols or Object.defineProperty to fully hide them\n// because the performance isn't good enough.\n\n\n// to avoid using try/catch inside critical functions, we\n// extract them to here.\nvar LAST_ERROR = null;\nvar IS_ERROR = {};\nfunction getThen(obj) {\n try {\n return obj.then;\n } catch (ex) {\n LAST_ERROR = ex;\n return IS_ERROR;\n }\n}\n\nfunction tryCallOne(fn, a) {\n try {\n return fn(a);\n } catch (ex) {\n LAST_ERROR = ex;\n return IS_ERROR;\n }\n}\nfunction tryCallTwo(fn, a, b) {\n try {\n fn(a, b);\n } catch (ex) {\n LAST_ERROR = ex;\n return IS_ERROR;\n }\n}\n\nmodule.exports = Promise;\n\nfunction Promise(fn) {\n if (typeof this !== 'object') {\n throw new TypeError('Promises must be constructed via new');\n }\n if (typeof fn !== 'function') {\n throw new TypeError('Promise constructor\\'s argument is not a function');\n }\n this._40 = 0;\n this._65 = 0;\n this._55 = null;\n this._72 = null;\n if (fn === noop) return;\n doResolve(fn, this);\n}\nPromise._37 = null;\nPromise._87 = null;\nPromise._61 = noop;\n\nPromise.prototype.then = function(onFulfilled, onRejected) {\n if (this.constructor !== Promise) {\n return safeThen(this, onFulfilled, onRejected);\n }\n var res = new Promise(noop);\n handle(this, new Handler(onFulfilled, onRejected, res));\n return res;\n};\n\nfunction safeThen(self, onFulfilled, onRejected) {\n return new self.constructor(function (resolve, reject) {\n var res = new Promise(noop);\n res.then(resolve, reject);\n handle(self, new Handler(onFulfilled, onRejected, res));\n });\n}\nfunction handle(self, deferred) {\n while (self._65 === 3) {\n self = self._55;\n }\n if (Promise._37) {\n Promise._37(self);\n }\n if (self._65 === 0) {\n if (self._40 === 0) {\n self._40 = 1;\n self._72 = deferred;\n return;\n }\n if (self._40 === 1) {\n self._40 = 2;\n self._72 = [self._72, deferred];\n return;\n }\n self._72.push(deferred);\n return;\n }\n handleResolved(self, deferred);\n}\n\nfunction handleResolved(self, deferred) {\n setImmediate(function() {\n var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected;\n if (cb === null) {\n if (self._65 === 1) {\n resolve(deferred.promise, self._55);\n } else {\n reject(deferred.promise, self._55);\n }\n return;\n }\n var ret = tryCallOne(cb, self._55);\n if (ret === IS_ERROR) {\n reject(deferred.promise, LAST_ERROR);\n } else {\n resolve(deferred.promise, ret);\n }\n });\n}\nfunction resolve(self, newValue) {\n // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure\n if (newValue === self) {\n return reject(\n self,\n new TypeError('A promise cannot be resolved with itself.')\n );\n }\n if (\n newValue &&\n (typeof newValue === 'object' || typeof newValue === 'function')\n ) {\n var then = getThen(newValue);\n if (then === IS_ERROR) {\n return reject(self, LAST_ERROR);\n }\n if (\n then === self.then &&\n newValue instanceof Promise\n ) {\n self._65 = 3;\n self._55 = newValue;\n finale(self);\n return;\n } else if (typeof then === 'function') {\n doResolve(then.bind(newValue), self);\n return;\n }\n }\n self._65 = 1;\n self._55 = newValue;\n finale(self);\n}\n\nfunction reject(self, newValue) {\n self._65 = 2;\n self._55 = newValue;\n if (Promise._87) {\n Promise._87(self, newValue);\n }\n finale(self);\n}\nfunction finale(self) {\n if (self._40 === 1) {\n handle(self, self._72);\n self._72 = null;\n }\n if (self._40 === 2) {\n for (var i = 0; i < self._72.length; i++) {\n handle(self, self._72[i]);\n }\n self._72 = null;\n }\n}\n\nfunction Handler(onFulfilled, onRejected, promise){\n this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;\n this.onRejected = typeof onRejected === 'function' ? onRejected : null;\n this.promise = promise;\n}\n\n/**\n * Take a potentially misbehaving resolver function and make sure\n * onFulfilled and onRejected are only called once.\n *\n * Makes no guarantees about asynchrony.\n */\nfunction doResolve(fn, promise) {\n var done = false;\n var res = tryCallTwo(fn, function (value) {\n if (done) return;\n done = true;\n resolve(promise, value);\n }, function (reason) {\n if (done) return;\n done = true;\n reject(promise, reason);\n });\n if (!done && res === IS_ERROR) {\n done = true;\n reject(promise, LAST_ERROR);\n }\n}\n","'use strict';\n\nvar Promise = require('./core.js');\n\nmodule.exports = Promise;\nPromise.prototype.done = function (onFulfilled, onRejected) {\n var self = arguments.length ? this.then.apply(this, arguments) : this;\n self.then(null, function (err) {\n setTimeout(function () {\n throw err;\n }, 0);\n });\n};\n","'use strict';\n\nvar Promise = require('./core.js');\n\nmodule.exports = Promise;\nPromise.prototype['finally'] = function (f) {\n return this.then(function (value) {\n return Promise.resolve(f()).then(function () {\n return value;\n });\n }, function (err) {\n return Promise.resolve(f()).then(function () {\n throw err;\n });\n });\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst {polyfillGlobal} = require('../Utilities/PolyfillFunctions');\n\n/**\n * Set up regenerator.\n * You can use this module directly, or just require InitializeCore.\n */\npolyfillGlobal('regeneratorRuntime', () => {\n // The require just sets up the global, so make sure when we first\n // invoke it the global does not exist\n delete global.regeneratorRuntime;\n\n // regenerator-runtime/runtime exports the regeneratorRuntime object, so we\n // can return it safely.\n return require('regenerator-runtime/runtime'); // flowlint-line untyped-import:off\n});\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n// In bridgeless mode, timers are host functions installed from cpp.\nif (!global.RN$Bridgeless) {\n const {polyfillGlobal} = require('../Utilities/PolyfillFunctions');\n\n /**\n * Set up timers.\n * You can use this module directly, or just require InitializeCore.\n */\n const defineLazyTimer = name => {\n polyfillGlobal(name, () => require('./Timers/JSTimers')[name]);\n };\n defineLazyTimer('setTimeout');\n defineLazyTimer('setInterval');\n defineLazyTimer('setImmediate');\n defineLazyTimer('clearTimeout');\n defineLazyTimer('clearInterval');\n defineLazyTimer('clearImmediate');\n defineLazyTimer('requestAnimationFrame');\n defineLazyTimer('cancelAnimationFrame');\n defineLazyTimer('requestIdleCallback');\n defineLazyTimer('cancelIdleCallback');\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('../../BatchedBridge/BatchedBridge');\nconst Platform = require('../../Utilities/Platform');\nconst Systrace = require('../../Performance/Systrace');\n\nconst invariant = require('invariant');\n\nimport NativeTiming from './NativeTiming';\n\nlet _performanceNow = null;\nfunction performanceNow() {\n if (!_performanceNow) {\n _performanceNow = require('fbjs/lib/performanceNow');\n }\n return _performanceNow();\n}\n\n/**\n * JS implementation of timer functions. Must be completely driven by an\n * external clock signal, all that's stored here is timerID, timer type, and\n * callback.\n */\n\nexport type JSTimerType =\n | 'setTimeout'\n | 'setInterval'\n | 'requestAnimationFrame'\n | 'setImmediate'\n | 'requestIdleCallback';\n\n// These timing constants should be kept in sync with the ones in native ios and\n// android `RCTTiming` module.\nconst FRAME_DURATION = 1000 / 60;\nconst IDLE_CALLBACK_FRAME_DEADLINE = 1;\n\nconst MAX_TIMER_DURATION_MS = 60 * 1000;\nconst IS_ANDROID = Platform.OS === 'android';\nconst ANDROID_LONG_TIMER_MESSAGE =\n 'Setting a timer for a long period of time, i.e. multiple minutes, is a ' +\n 'performance and correctness issue on Android as it keeps the timer ' +\n 'module awake, and timers can only be called when the app is in the foreground. ' +\n 'See https://github.com/facebook/react-native/issues/12981 for more info.';\n\n// Parallel arrays\nconst callbacks: Array = [];\nconst types: Array = [];\nconst timerIDs: Array = [];\nlet immediates: Array = [];\nlet requestIdleCallbacks: Array = [];\nconst requestIdleCallbackTimeouts: {[number]: number, ...} = {};\n\nlet GUID = 1;\nlet errors: ?Array = null;\n\nlet hasEmittedTimeDriftWarning = false;\n\n// Returns a free index if one is available, and the next consecutive index otherwise.\nfunction _getFreeIndex(): number {\n let freeIndex = timerIDs.indexOf(null);\n if (freeIndex === -1) {\n freeIndex = timerIDs.length;\n }\n return freeIndex;\n}\n\nfunction _allocateCallback(func: Function, type: JSTimerType): number {\n const id = GUID++;\n const freeIndex = _getFreeIndex();\n timerIDs[freeIndex] = id;\n callbacks[freeIndex] = func;\n types[freeIndex] = type;\n return id;\n}\n\n/**\n * Calls the callback associated with the ID. Also unregister that callback\n * if it was a one time timer (setTimeout), and not unregister it if it was\n * recurring (setInterval).\n */\nfunction _callTimer(timerID: number, frameTime: number, didTimeout: ?boolean) {\n require('fbjs/lib/warning')(\n timerID <= GUID,\n 'Tried to call timer with ID %s but no such timer exists.',\n timerID,\n );\n\n // timerIndex of -1 means that no timer with that ID exists. There are\n // two situations when this happens, when a garbage timer ID was given\n // and when a previously existing timer was deleted before this callback\n // fired. In both cases we want to ignore the timer id, but in the former\n // case we warn as well.\n const timerIndex = timerIDs.indexOf(timerID);\n if (timerIndex === -1) {\n return;\n }\n\n const type = types[timerIndex];\n const callback = callbacks[timerIndex];\n if (!callback || !type) {\n console.error('No callback found for timerID ' + timerID);\n return;\n }\n\n if (__DEV__) {\n Systrace.beginEvent('Systrace.callTimer: ' + type);\n }\n\n // Clear the metadata\n if (\n type === 'setTimeout' ||\n type === 'setImmediate' ||\n type === 'requestAnimationFrame' ||\n type === 'requestIdleCallback'\n ) {\n _clearIndex(timerIndex);\n }\n\n try {\n if (\n type === 'setTimeout' ||\n type === 'setInterval' ||\n type === 'setImmediate'\n ) {\n callback();\n } else if (type === 'requestAnimationFrame') {\n callback(performanceNow());\n } else if (type === 'requestIdleCallback') {\n callback({\n timeRemaining: function() {\n // TODO: Optimisation: allow running for longer than one frame if\n // there are no pending JS calls on the bridge from native. This\n // would require a way to check the bridge queue synchronously.\n return Math.max(0, FRAME_DURATION - (performanceNow() - frameTime));\n },\n didTimeout: !!didTimeout,\n });\n } else {\n console.error('Tried to call a callback with invalid type: ' + type);\n }\n } catch (e) {\n // Don't rethrow so that we can run all timers.\n if (!errors) {\n errors = [e];\n } else {\n errors.push(e);\n }\n }\n\n if (__DEV__) {\n Systrace.endEvent();\n }\n}\n\n/**\n * Performs a single pass over the enqueued immediates. Returns whether\n * more immediates are queued up (can be used as a condition a while loop).\n */\nfunction _callImmediatesPass() {\n if (__DEV__) {\n Systrace.beginEvent('callImmediatesPass()');\n }\n\n // The main reason to extract a single pass is so that we can track\n // in the system trace\n if (immediates.length > 0) {\n const passImmediates = immediates.slice();\n immediates = [];\n\n // Use for loop rather than forEach as per @vjeux's advice\n // https://github.com/facebook/react-native/commit/c8fd9f7588ad02d2293cac7224715f4af7b0f352#commitcomment-14570051\n for (let i = 0; i < passImmediates.length; ++i) {\n _callTimer(passImmediates[i], 0);\n }\n }\n\n if (__DEV__) {\n Systrace.endEvent();\n }\n return immediates.length > 0;\n}\n\nfunction _clearIndex(i: number) {\n timerIDs[i] = null;\n callbacks[i] = null;\n types[i] = null;\n}\n\nfunction _freeCallback(timerID: number) {\n // timerIDs contains nulls after timers have been removed;\n // ignore nulls upfront so indexOf doesn't find them\n if (timerID == null) {\n return;\n }\n\n const index = timerIDs.indexOf(timerID);\n // See corresponding comment in `callTimers` for reasoning behind this\n if (index !== -1) {\n const type = types[index];\n _clearIndex(index);\n if (type !== 'setImmediate' && type !== 'requestIdleCallback') {\n deleteTimer(timerID);\n }\n }\n}\n\n/**\n * JS implementation of timer functions. Must be completely driven by an\n * external clock signal, all that's stored here is timerID, timer type, and\n * callback.\n */\nconst JSTimers = {\n /**\n * @param {function} func Callback to be invoked after `duration` ms.\n * @param {number} duration Number of milliseconds.\n */\n setTimeout: function(func: Function, duration: number, ...args: any): number {\n if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {\n console.warn(\n ANDROID_LONG_TIMER_MESSAGE +\n '\\n' +\n '(Saw setTimeout with duration ' +\n duration +\n 'ms)',\n );\n }\n const id = _allocateCallback(\n () => func.apply(undefined, args),\n 'setTimeout',\n );\n createTimer(id, duration || 0, Date.now(), /* recurring */ false);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked every `duration` ms.\n * @param {number} duration Number of milliseconds.\n */\n setInterval: function(\n func: Function,\n duration: number,\n ...args: any\n ): number {\n if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {\n console.warn(\n ANDROID_LONG_TIMER_MESSAGE +\n '\\n' +\n '(Saw setInterval with duration ' +\n duration +\n 'ms)',\n );\n }\n const id = _allocateCallback(\n () => func.apply(undefined, args),\n 'setInterval',\n );\n createTimer(id, duration || 0, Date.now(), /* recurring */ true);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked before the end of the\n * current JavaScript execution loop.\n */\n setImmediate: function(func: Function, ...args: any) {\n const id = _allocateCallback(\n () => func.apply(undefined, args),\n 'setImmediate',\n );\n immediates.push(id);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked every frame.\n */\n requestAnimationFrame: function(func: Function) {\n const id = _allocateCallback(func, 'requestAnimationFrame');\n createTimer(id, 1, Date.now(), /* recurring */ false);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked every frame and provided\n * with time remaining in frame.\n * @param {?object} options\n */\n requestIdleCallback: function(func: Function, options: ?Object) {\n if (requestIdleCallbacks.length === 0) {\n setSendIdleEvents(true);\n }\n\n const timeout = options && options.timeout;\n const id = _allocateCallback(\n timeout != null\n ? deadline => {\n const timeoutId = requestIdleCallbackTimeouts[id];\n if (timeoutId) {\n JSTimers.clearTimeout(timeoutId);\n delete requestIdleCallbackTimeouts[id];\n }\n return func(deadline);\n }\n : func,\n 'requestIdleCallback',\n );\n requestIdleCallbacks.push(id);\n\n if (timeout != null) {\n const timeoutId = JSTimers.setTimeout(() => {\n const index = requestIdleCallbacks.indexOf(id);\n if (index > -1) {\n requestIdleCallbacks.splice(index, 1);\n _callTimer(id, performanceNow(), true);\n }\n delete requestIdleCallbackTimeouts[id];\n if (requestIdleCallbacks.length === 0) {\n setSendIdleEvents(false);\n }\n }, timeout);\n requestIdleCallbackTimeouts[id] = timeoutId;\n }\n return id;\n },\n\n cancelIdleCallback: function(timerID: number) {\n _freeCallback(timerID);\n const index = requestIdleCallbacks.indexOf(timerID);\n if (index !== -1) {\n requestIdleCallbacks.splice(index, 1);\n }\n\n const timeoutId = requestIdleCallbackTimeouts[timerID];\n if (timeoutId) {\n JSTimers.clearTimeout(timeoutId);\n delete requestIdleCallbackTimeouts[timerID];\n }\n\n if (requestIdleCallbacks.length === 0) {\n setSendIdleEvents(false);\n }\n },\n\n clearTimeout: function(timerID: number) {\n _freeCallback(timerID);\n },\n\n clearInterval: function(timerID: number) {\n _freeCallback(timerID);\n },\n\n clearImmediate: function(timerID: number) {\n _freeCallback(timerID);\n const index = immediates.indexOf(timerID);\n if (index !== -1) {\n immediates.splice(index, 1);\n }\n },\n\n cancelAnimationFrame: function(timerID: number) {\n _freeCallback(timerID);\n },\n\n /**\n * This is called from the native side. We are passed an array of timerIDs,\n * and\n */\n callTimers: function(timersToCall: Array) {\n invariant(\n timersToCall.length !== 0,\n 'Cannot call `callTimers` with an empty list of IDs.',\n );\n\n // $FlowFixMe: optionals do not allow assignment from null\n errors = null;\n for (let i = 0; i < timersToCall.length; i++) {\n _callTimer(timersToCall[i], 0);\n }\n\n if (errors) {\n const errorCount = errors.length;\n if (errorCount > 1) {\n // Throw all the other errors in a setTimeout, which will throw each\n // error one at a time\n for (let ii = 1; ii < errorCount; ii++) {\n JSTimers.setTimeout(\n (error => {\n throw error;\n }).bind(null, errors[ii]),\n 0,\n );\n }\n }\n throw errors[0];\n }\n },\n\n callIdleCallbacks: function(frameTime: number) {\n if (\n FRAME_DURATION - (performanceNow() - frameTime) <\n IDLE_CALLBACK_FRAME_DEADLINE\n ) {\n return;\n }\n\n // $FlowFixMe: optionals do not allow assignment from null\n errors = null;\n if (requestIdleCallbacks.length > 0) {\n const passIdleCallbacks = requestIdleCallbacks.slice();\n requestIdleCallbacks = [];\n\n for (let i = 0; i < passIdleCallbacks.length; ++i) {\n _callTimer(passIdleCallbacks[i], frameTime);\n }\n }\n\n if (requestIdleCallbacks.length === 0) {\n setSendIdleEvents(false);\n }\n\n if (errors) {\n errors.forEach(error =>\n JSTimers.setTimeout(() => {\n throw error;\n }, 0),\n );\n }\n },\n\n /**\n * This is called after we execute any command we receive from native but\n * before we hand control back to native.\n */\n callImmediates() {\n errors = null;\n while (_callImmediatesPass()) {}\n if (errors) {\n errors.forEach(error =>\n JSTimers.setTimeout(() => {\n throw error;\n }, 0),\n );\n }\n },\n\n /**\n * Called from native (in development) when environment times are out-of-sync.\n */\n emitTimeDriftWarning(warningMessage: string) {\n if (hasEmittedTimeDriftWarning) {\n return;\n }\n hasEmittedTimeDriftWarning = true;\n console.warn(warningMessage);\n },\n};\n\nfunction createTimer(\n callbackID: number,\n duration: number,\n jsSchedulingTime: number,\n repeats: boolean,\n): void {\n invariant(NativeTiming, 'NativeTiming is available');\n NativeTiming.createTimer(callbackID, duration, jsSchedulingTime, repeats);\n}\n\nfunction deleteTimer(timerID: number): void {\n invariant(NativeTiming, 'NativeTiming is available');\n NativeTiming.deleteTimer(timerID);\n}\n\nfunction setSendIdleEvents(sendIdleEvents: boolean): void {\n invariant(NativeTiming, 'NativeTiming is available');\n NativeTiming.setSendIdleEvents(sendIdleEvents);\n}\n\nlet ExportedJSTimers: {|\n callIdleCallbacks: (frameTime: number) => any | void,\n callImmediates: () => void,\n callTimers: (timersToCall: Array) => any | void,\n cancelAnimationFrame: (timerID: number) => void,\n cancelIdleCallback: (timerID: number) => void,\n clearImmediate: (timerID: number) => void,\n clearInterval: (timerID: number) => void,\n clearTimeout: (timerID: number) => void,\n emitTimeDriftWarning: (warningMessage: string) => any | void,\n requestAnimationFrame: (func: any) => any | number,\n requestIdleCallback: (func: any, options: ?any) => any | number,\n setImmediate: (func: any, ...args: any) => number,\n setInterval: (func: any, duration: number, ...args: any) => number,\n setTimeout: (func: any, duration: number, ...args: any) => number,\n|};\nif (!NativeTiming) {\n console.warn(\"Timing native module is not available, can't set timers.\");\n // $FlowFixMe: we can assume timers are generally available\n ExportedJSTimers = ({\n callImmediates: JSTimers.callImmediates,\n setImmediate: JSTimers.setImmediate,\n }: typeof JSTimers);\n} else {\n ExportedJSTimers = JSTimers;\n}\n\nBatchedBridge.setImmediatesCallback(\n ExportedJSTimers.callImmediates.bind(ExportedJSTimers),\n);\n\nmodule.exports = ExportedJSTimers;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +createTimer: (\n callbackID: number,\n duration: number,\n jsSchedulingTime: number,\n repeats: boolean,\n ) => void;\n +deleteTimer: (timerID: number) => void;\n +setSendIdleEvents: (sendIdleEvents: boolean) => void;\n}\n\nexport default (TurboModuleRegistry.get('Timing'): ?Spec);\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\nvar performance = require(\"./performance\");\n\nvar performanceNow;\n/**\n * Detect if we can use `window.performance.now()` and gracefully fallback to\n * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now\n * because of Facebook's testing infrastructure.\n */\n\nif (performance.now) {\n performanceNow = function performanceNow() {\n return performance.now();\n };\n} else {\n performanceNow = function performanceNow() {\n return Date.now();\n };\n}\n\nmodule.exports = performanceNow;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n'use strict';\n\nvar ExecutionEnvironment = require(\"./ExecutionEnvironment\");\n\nvar performance;\n\nif (ExecutionEnvironment.canUseDOM) {\n performance = window.performance || window.msPerformance || window.webkitPerformance;\n}\n\nmodule.exports = performance || {};","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\n\nvar ExecutionEnvironment = {\n canUseDOM: canUseDOM,\n canUseWorkers: typeof Worker !== 'undefined',\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n canUseViewport: canUseDOM && !!window.screen,\n isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\nmodule.exports = ExecutionEnvironment;","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst {polyfillGlobal} = require('../Utilities/PolyfillFunctions');\n\n/**\n * Set up XMLHttpRequest. The native XMLHttpRequest in Chrome dev tools is CORS\n * aware and won't let you fetch anything from the internet.\n *\n * You can use this module directly, or just require InitializeCore.\n */\npolyfillGlobal('XMLHttpRequest', () => require('../Network/XMLHttpRequest'));\npolyfillGlobal('FormData', () => require('../Network/FormData'));\n\npolyfillGlobal('fetch', () => require('../Network/fetch').fetch); // flowlint-line untyped-import:off\npolyfillGlobal('Headers', () => require('../Network/fetch').Headers); // flowlint-line untyped-import:off\npolyfillGlobal('Request', () => require('../Network/fetch').Request); // flowlint-line untyped-import:off\npolyfillGlobal('Response', () => require('../Network/fetch').Response); // flowlint-line untyped-import:off\npolyfillGlobal('WebSocket', () => require('../WebSocket/WebSocket'));\npolyfillGlobal('Blob', () => require('../Blob/Blob'));\npolyfillGlobal('File', () => require('../Blob/File'));\npolyfillGlobal('FileReader', () => require('../Blob/FileReader'));\npolyfillGlobal('URL', () => require('../Blob/URL').URL); // flowlint-line untyped-import:off\npolyfillGlobal('URLSearchParams', () => require('../Blob/URL').URLSearchParams); // flowlint-line untyped-import:off\npolyfillGlobal(\n 'AbortController',\n () => require('abort-controller/dist/abort-controller').AbortController, // flowlint-line untyped-import:off\n);\npolyfillGlobal(\n 'AbortSignal',\n () => require('abort-controller/dist/abort-controller').AbortSignal, // flowlint-line untyped-import:off\n);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BlobManager = require('../Blob/BlobManager');\nconst EventTarget = require('event-target-shim');\nconst RCTNetworking = require('./RCTNetworking');\n\nconst base64 = require('base64-js');\nconst invariant = require('invariant');\nconst warning = require('fbjs/lib/warning');\n\nexport type NativeResponseType = 'base64' | 'blob' | 'text';\nexport type ResponseType =\n | ''\n | 'arraybuffer'\n | 'blob'\n | 'document'\n | 'json'\n | 'text';\nexport type Response = ?Object | string;\n\ntype XHRInterceptor = {\n requestSent(id: number, url: string, method: string, headers: Object): void,\n responseReceived(\n id: number,\n url: string,\n status: number,\n headers: Object,\n ): void,\n dataReceived(id: number, data: string): void,\n loadingFinished(id: number, encodedDataLength: number): void,\n loadingFailed(id: number, error: string): void,\n ...\n};\n\n// The native blob module is optional so inject it here if available.\nif (BlobManager.isAvailable) {\n BlobManager.addNetworkingHandler();\n}\n\nconst UNSENT = 0;\nconst OPENED = 1;\nconst HEADERS_RECEIVED = 2;\nconst LOADING = 3;\nconst DONE = 4;\n\nconst SUPPORTED_RESPONSE_TYPES = {\n arraybuffer: typeof global.ArrayBuffer === 'function',\n blob: typeof global.Blob === 'function',\n document: false,\n json: true,\n text: true,\n '': true,\n};\n\nconst REQUEST_EVENTS = [\n 'abort',\n 'error',\n 'load',\n 'loadstart',\n 'progress',\n 'timeout',\n 'loadend',\n];\n\nconst XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange');\n\nclass XMLHttpRequestEventTarget extends (EventTarget(...REQUEST_EVENTS): any) {\n onload: ?Function;\n onloadstart: ?Function;\n onprogress: ?Function;\n ontimeout: ?Function;\n onerror: ?Function;\n onabort: ?Function;\n onloadend: ?Function;\n}\n\n/**\n * Shared base for platform-specific XMLHttpRequest implementations.\n */\nclass XMLHttpRequest extends (EventTarget(...XHR_EVENTS): any) {\n static UNSENT: number = UNSENT;\n static OPENED: number = OPENED;\n static HEADERS_RECEIVED: number = HEADERS_RECEIVED;\n static LOADING: number = LOADING;\n static DONE: number = DONE;\n\n static _interceptor: ?XHRInterceptor = null;\n\n UNSENT: number = UNSENT;\n OPENED: number = OPENED;\n HEADERS_RECEIVED: number = HEADERS_RECEIVED;\n LOADING: number = LOADING;\n DONE: number = DONE;\n\n // EventTarget automatically initializes these to `null`.\n onload: ?Function;\n onloadstart: ?Function;\n onprogress: ?Function;\n ontimeout: ?Function;\n onerror: ?Function;\n onabort: ?Function;\n onloadend: ?Function;\n onreadystatechange: ?Function;\n\n readyState: number = UNSENT;\n responseHeaders: ?Object;\n status: number = 0;\n timeout: number = 0;\n responseURL: ?string;\n withCredentials: boolean = true;\n\n upload: XMLHttpRequestEventTarget = new XMLHttpRequestEventTarget();\n\n _requestId: ?number;\n _subscriptions: Array<*>;\n\n _aborted: boolean = false;\n _cachedResponse: Response;\n _hasError: boolean = false;\n _headers: Object;\n _lowerCaseResponseHeaders: Object;\n _method: ?string = null;\n _response: string | ?Object;\n _responseType: ResponseType;\n _response: string = '';\n _sent: boolean;\n _url: ?string = null;\n _timedOut: boolean = false;\n _trackingName: string = 'unknown';\n _incrementalEvents: boolean = false;\n\n static setInterceptor(interceptor: ?XHRInterceptor) {\n XMLHttpRequest._interceptor = interceptor;\n }\n\n constructor() {\n super();\n this._reset();\n }\n\n _reset(): void {\n this.readyState = this.UNSENT;\n this.responseHeaders = undefined;\n this.status = 0;\n delete this.responseURL;\n\n this._requestId = null;\n\n this._cachedResponse = undefined;\n this._hasError = false;\n this._headers = {};\n this._response = '';\n this._responseType = '';\n this._sent = false;\n this._lowerCaseResponseHeaders = {};\n\n this._clearSubscriptions();\n this._timedOut = false;\n }\n\n get responseType(): ResponseType {\n return this._responseType;\n }\n\n set responseType(responseType: ResponseType): void {\n if (this._sent) {\n throw new Error(\n \"Failed to set the 'responseType' property on 'XMLHttpRequest': The \" +\n 'response type cannot be set after the request has been sent.',\n );\n }\n if (!SUPPORTED_RESPONSE_TYPES.hasOwnProperty(responseType)) {\n warning(\n false,\n `The provided value '${responseType}' is not a valid 'responseType'.`,\n );\n return;\n }\n\n // redboxes early, e.g. for 'arraybuffer' on ios 7\n invariant(\n SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document',\n `The provided value '${responseType}' is unsupported in this environment.`,\n );\n\n if (responseType === 'blob') {\n invariant(\n BlobManager.isAvailable,\n 'Native module BlobModule is required for blob support',\n );\n }\n this._responseType = responseType;\n }\n\n get responseText(): string {\n if (this._responseType !== '' && this._responseType !== 'text') {\n throw new Error(\n \"The 'responseText' property is only available if 'responseType' \" +\n `is set to '' or 'text', but it is '${this._responseType}'.`,\n );\n }\n if (this.readyState < LOADING) {\n return '';\n }\n return this._response;\n }\n\n get response(): Response {\n const {responseType} = this;\n if (responseType === '' || responseType === 'text') {\n return this.readyState < LOADING || this._hasError ? '' : this._response;\n }\n\n if (this.readyState !== DONE) {\n return null;\n }\n\n if (this._cachedResponse !== undefined) {\n return this._cachedResponse;\n }\n\n switch (responseType) {\n case 'document':\n this._cachedResponse = null;\n break;\n\n case 'arraybuffer':\n this._cachedResponse = base64.toByteArray(this._response).buffer;\n break;\n\n case 'blob':\n if (typeof this._response === 'object' && this._response) {\n this._cachedResponse = BlobManager.createFromOptions(this._response);\n } else if (this._response === '') {\n this._cachedResponse = null;\n } else {\n throw new Error(`Invalid response for blob: ${this._response}`);\n }\n break;\n\n case 'json':\n try {\n this._cachedResponse = JSON.parse(this._response);\n } catch (_) {\n this._cachedResponse = null;\n }\n break;\n\n default:\n this._cachedResponse = null;\n }\n\n return this._cachedResponse;\n }\n\n // exposed for testing\n __didCreateRequest(requestId: number): void {\n this._requestId = requestId;\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.requestSent(\n requestId,\n this._url || '',\n this._method || 'GET',\n this._headers,\n );\n }\n\n // exposed for testing\n __didUploadProgress(\n requestId: number,\n progress: number,\n total: number,\n ): void {\n if (requestId === this._requestId) {\n this.upload.dispatchEvent({\n type: 'progress',\n lengthComputable: true,\n loaded: progress,\n total,\n });\n }\n }\n\n __didReceiveResponse(\n requestId: number,\n status: number,\n responseHeaders: ?Object,\n responseURL: ?string,\n ): void {\n if (requestId === this._requestId) {\n this.status = status;\n this.setResponseHeaders(responseHeaders);\n this.setReadyState(this.HEADERS_RECEIVED);\n if (responseURL || responseURL === '') {\n this.responseURL = responseURL;\n } else {\n delete this.responseURL;\n }\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.responseReceived(\n requestId,\n responseURL || this._url || '',\n status,\n responseHeaders || {},\n );\n }\n }\n\n __didReceiveData(requestId: number, response: string): void {\n if (requestId !== this._requestId) {\n return;\n }\n this._response = response;\n this._cachedResponse = undefined; // force lazy recomputation\n this.setReadyState(this.LOADING);\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.dataReceived(requestId, response);\n }\n\n __didReceiveIncrementalData(\n requestId: number,\n responseText: string,\n progress: number,\n total: number,\n ) {\n if (requestId !== this._requestId) {\n return;\n }\n if (!this._response) {\n this._response = responseText;\n } else {\n this._response += responseText;\n }\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.dataReceived(requestId, responseText);\n\n this.setReadyState(this.LOADING);\n this.__didReceiveDataProgress(requestId, progress, total);\n }\n\n __didReceiveDataProgress(\n requestId: number,\n loaded: number,\n total: number,\n ): void {\n if (requestId !== this._requestId) {\n return;\n }\n this.dispatchEvent({\n type: 'progress',\n lengthComputable: total >= 0,\n loaded,\n total,\n });\n }\n\n // exposed for testing\n __didCompleteResponse(\n requestId: number,\n error: string,\n timeOutError: boolean,\n ): void {\n if (requestId === this._requestId) {\n if (error) {\n if (this._responseType === '' || this._responseType === 'text') {\n this._response = error;\n }\n this._hasError = true;\n if (timeOutError) {\n this._timedOut = true;\n }\n }\n this._clearSubscriptions();\n this._requestId = null;\n this.setReadyState(this.DONE);\n\n if (error) {\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.loadingFailed(requestId, error);\n } else {\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.loadingFinished(\n requestId,\n this._response.length,\n );\n }\n }\n }\n\n _clearSubscriptions(): void {\n (this._subscriptions || []).forEach(sub => {\n if (sub) {\n sub.remove();\n }\n });\n this._subscriptions = [];\n }\n\n getAllResponseHeaders(): ?string {\n if (!this.responseHeaders) {\n // according to the spec, return null if no response has been received\n return null;\n }\n const headers = this.responseHeaders || {};\n return Object.keys(headers)\n .map(headerName => {\n return headerName + ': ' + headers[headerName];\n })\n .join('\\r\\n');\n }\n\n getResponseHeader(header: string): ?string {\n const value = this._lowerCaseResponseHeaders[header.toLowerCase()];\n return value !== undefined ? value : null;\n }\n\n setRequestHeader(header: string, value: any): void {\n if (this.readyState !== this.OPENED) {\n throw new Error('Request has not been opened');\n }\n this._headers[header.toLowerCase()] = String(value);\n }\n\n /**\n * Custom extension for tracking origins of request.\n */\n setTrackingName(trackingName: string): XMLHttpRequest {\n this._trackingName = trackingName;\n return this;\n }\n\n open(method: string, url: string, async: ?boolean): void {\n /* Other optional arguments are not supported yet */\n if (this.readyState !== this.UNSENT) {\n throw new Error('Cannot open, already sending');\n }\n if (async !== undefined && !async) {\n // async is default\n throw new Error('Synchronous http requests are not supported');\n }\n if (!url) {\n throw new Error('Cannot load an empty url');\n }\n this._method = method.toUpperCase();\n this._url = url;\n this._aborted = false;\n this.setReadyState(this.OPENED);\n }\n\n send(data: any): void {\n if (this.readyState !== this.OPENED) {\n throw new Error('Request has not been opened');\n }\n if (this._sent) {\n throw new Error('Request has already been sent');\n }\n this._sent = true;\n const incrementalEvents =\n this._incrementalEvents || !!this.onreadystatechange || !!this.onprogress;\n\n this._subscriptions.push(\n RCTNetworking.addListener('didSendNetworkData', args =>\n this.__didUploadProgress(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkResponse', args =>\n this.__didReceiveResponse(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkData', args =>\n this.__didReceiveData(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkIncrementalData', args =>\n this.__didReceiveIncrementalData(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkDataProgress', args =>\n this.__didReceiveDataProgress(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didCompleteNetworkResponse', args =>\n this.__didCompleteResponse(...args),\n ),\n );\n\n let nativeResponseType: NativeResponseType = 'text';\n if (this._responseType === 'arraybuffer') {\n nativeResponseType = 'base64';\n }\n if (this._responseType === 'blob') {\n nativeResponseType = 'blob';\n }\n\n invariant(this._method, 'Request method needs to be defined.');\n invariant(this._url, 'Request URL needs to be defined.');\n RCTNetworking.sendRequest(\n this._method,\n this._trackingName,\n this._url,\n this._headers,\n data,\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n nativeResponseType,\n incrementalEvents,\n this.timeout,\n this.__didCreateRequest.bind(this),\n this.withCredentials,\n );\n }\n\n abort(): void {\n this._aborted = true;\n if (this._requestId) {\n RCTNetworking.abortRequest(this._requestId);\n }\n // only call onreadystatechange if there is something to abort,\n // below logic is per spec\n if (\n !(\n this.readyState === this.UNSENT ||\n (this.readyState === this.OPENED && !this._sent) ||\n this.readyState === this.DONE\n )\n ) {\n this._reset();\n this.setReadyState(this.DONE);\n }\n // Reset again after, in case modified in handler\n this._reset();\n }\n\n setResponseHeaders(responseHeaders: ?Object): void {\n this.responseHeaders = responseHeaders || null;\n const headers = responseHeaders || {};\n this._lowerCaseResponseHeaders = Object.keys(headers).reduce(\n (lcaseHeaders, headerName) => {\n lcaseHeaders[headerName.toLowerCase()] = headers[headerName];\n return lcaseHeaders;\n },\n {},\n );\n }\n\n setReadyState(newState: number): void {\n this.readyState = newState;\n this.dispatchEvent({type: 'readystatechange'});\n if (newState === this.DONE) {\n if (this._aborted) {\n this.dispatchEvent({type: 'abort'});\n } else if (this._hasError) {\n if (this._timedOut) {\n this.dispatchEvent({type: 'timeout'});\n } else {\n this.dispatchEvent({type: 'error'});\n }\n } else {\n this.dispatchEvent({type: 'load'});\n }\n this.dispatchEvent({type: 'loadend'});\n }\n }\n\n /* global EventListener */\n addEventListener(type: string, listener: EventListener): void {\n // If we dont' have a 'readystatechange' event handler, we don't\n // have to send repeated LOADING events with incremental updates\n // to responseText, which will avoid a bunch of native -> JS\n // bridge traffic.\n if (type === 'readystatechange' || type === 'progress') {\n this._incrementalEvents = true;\n }\n super.addEventListener(type, listener);\n }\n}\n\nmodule.exports = XMLHttpRequest;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst Blob = require('./Blob');\nconst BlobRegistry = require('./BlobRegistry');\n\nimport type {BlobData, BlobOptions, BlobCollector} from './BlobTypes';\nimport NativeBlobModule from './NativeBlobModule';\nimport invariant from 'invariant';\n\n/*eslint-disable no-bitwise */\n/*eslint-disable eqeqeq */\n\n/**\n * Based on the rfc4122-compliant solution posted at\n * http://stackoverflow.com/questions/105034\n */\nfunction uuidv4(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {\n const r = (Math.random() * 16) | 0,\n v = c == 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\n// **Temporary workaround**\n// TODO(#24654): Use turbomodules for the Blob module.\n// Blob collector is a jsi::HostObject that is used by native to know\n// when the a Blob instance is deallocated. This allows to free the\n// underlying native resources. This is a hack to workaround the fact\n// that the current bridge infra doesn't allow to track js objects\n// deallocation. Ideally the whole Blob object should be a jsi::HostObject.\nfunction createBlobCollector(blobId: string): BlobCollector | null {\n if (global.__blobCollectorProvider == null) {\n return null;\n } else {\n return global.__blobCollectorProvider(blobId);\n }\n}\n\n/**\n * Module to manage blobs. Wrapper around the native blob module.\n */\nclass BlobManager {\n /**\n * If the native blob module is available.\n */\n static isAvailable: boolean = !!NativeBlobModule;\n\n /**\n * Create blob from existing array of blobs.\n */\n static createFromParts(\n parts: Array,\n options?: BlobOptions,\n ): Blob {\n invariant(NativeBlobModule, 'NativeBlobModule is available.');\n\n const blobId = uuidv4();\n const items = parts.map(part => {\n if (\n part instanceof ArrayBuffer ||\n (global.ArrayBufferView && part instanceof global.ArrayBufferView)\n ) {\n throw new Error(\n \"Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported\",\n );\n }\n if (part instanceof Blob) {\n return {\n data: part.data,\n type: 'blob',\n };\n } else {\n return {\n data: String(part),\n type: 'string',\n };\n }\n });\n const size = items.reduce((acc, curr) => {\n if (curr.type === 'string') {\n return acc + global.unescape(encodeURI(curr.data)).length;\n } else {\n return acc + curr.data.size;\n }\n }, 0);\n\n NativeBlobModule.createFromParts(items, blobId);\n\n return BlobManager.createFromOptions({\n blobId,\n offset: 0,\n size,\n type: options ? options.type : '',\n lastModified: options ? options.lastModified : Date.now(),\n });\n }\n\n /**\n * Create blob instance from blob data from native.\n * Used internally by modules like XHR, WebSocket, etc.\n */\n static createFromOptions(options: BlobData): Blob {\n BlobRegistry.register(options.blobId);\n return Object.assign(Object.create(Blob.prototype), {\n data:\n // Reuse the collector instance when creating from an existing blob.\n // This will make sure that the underlying resource is only deallocated\n // when all blobs that refer to it are deallocated.\n options.__collector == null\n ? {\n ...options,\n __collector: createBlobCollector(options.blobId),\n }\n : options,\n });\n }\n\n /**\n * Deallocate resources for a blob.\n */\n static release(blobId: string): void {\n invariant(NativeBlobModule, 'NativeBlobModule is available.');\n\n BlobRegistry.unregister(blobId);\n if (BlobRegistry.has(blobId)) {\n return;\n }\n NativeBlobModule.release(blobId);\n }\n\n /**\n * Inject the blob content handler in the networking module to support blob\n * requests and responses.\n */\n static addNetworkingHandler(): void {\n invariant(NativeBlobModule, 'NativeBlobModule is available.');\n\n NativeBlobModule.addNetworkingHandler();\n }\n\n /**\n * Indicate the websocket should return a blob for incoming binary\n * messages.\n */\n static addWebSocketHandler(socketId: number): void {\n invariant(NativeBlobModule, 'NativeBlobModule is available.');\n\n NativeBlobModule.addWebSocketHandler(socketId);\n }\n\n /**\n * Indicate the websocket should no longer return a blob for incoming\n * binary messages.\n */\n static removeWebSocketHandler(socketId: number): void {\n invariant(NativeBlobModule, 'NativeBlobModule is available.');\n\n NativeBlobModule.removeWebSocketHandler(socketId);\n }\n\n /**\n * Send a blob message to a websocket.\n */\n static sendOverSocket(blob: Blob, socketId: number): void {\n invariant(NativeBlobModule, 'NativeBlobModule is available.');\n\n NativeBlobModule.sendOverSocket(blob.data, socketId);\n }\n}\n\nmodule.exports = BlobManager;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|BLOB_URI_SCHEME: string, BLOB_URI_HOST: ?string|};\n +addNetworkingHandler: () => void;\n +addWebSocketHandler: (id: number) => void;\n +removeWebSocketHandler: (id: number) => void;\n +sendOverSocket: (blob: Object, socketID: number) => void;\n +createFromParts: (parts: Array, withId: string) => void;\n +release: (blobId: string) => void;\n}\n\nexport default (TurboModuleRegistry.get('BlobModule'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {BlobData, BlobOptions} from './BlobTypes';\n\n/**\n * Opaque JS representation of some binary data in native.\n *\n * The API is modeled after the W3C Blob API, with one caveat\n * regarding explicit deallocation. Refer to the `close()`\n * method for further details.\n *\n * Example usage in a React component:\n *\n * class WebSocketImage extends React.Component {\n * state = {blob: null};\n * componentDidMount() {\n * let ws = this.ws = new WebSocket(...);\n * ws.binaryType = 'blob';\n * ws.onmessage = (event) => {\n * if (this.state.blob) {\n * this.state.blob.close();\n * }\n * this.setState({blob: event.data});\n * };\n * }\n * componentUnmount() {\n * if (this.state.blob) {\n * this.state.blob.close();\n * }\n * this.ws.close();\n * }\n * render() {\n * if (!this.state.blob) {\n * return ;\n * }\n * return ;\n * }\n * }\n *\n * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob\n */\nclass Blob {\n _data: ?BlobData;\n\n /**\n * Constructor for JS consumers.\n * Currently we only support creating Blobs from other Blobs.\n * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob\n */\n constructor(parts: Array = [], options?: BlobOptions) {\n const BlobManager = require('./BlobManager');\n this.data = BlobManager.createFromParts(parts, options).data;\n }\n\n /*\n * This method is used to create a new Blob object containing\n * the data in the specified range of bytes of the source Blob.\n * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice\n */\n set data(data: ?BlobData) {\n this._data = data;\n }\n\n get data(): BlobData {\n if (!this._data) {\n throw new Error('Blob has been closed and is no longer available');\n }\n\n return this._data;\n }\n\n slice(start?: number, end?: number): Blob {\n const BlobManager = require('./BlobManager');\n let {offset, size} = this.data;\n\n if (typeof start === 'number') {\n if (start > size) {\n start = size;\n }\n offset += start;\n size -= start;\n\n if (typeof end === 'number') {\n if (end < 0) {\n end = this.size + end;\n }\n size = end - start;\n }\n }\n return BlobManager.createFromOptions({\n blobId: this.data.blobId,\n offset,\n size,\n });\n }\n\n /**\n * This method is in the standard, but not actually implemented by\n * any browsers at this point. It's important for how Blobs work in\n * React Native, however, since we cannot de-allocate resources automatically,\n * so consumers need to explicitly de-allocate them.\n *\n * Note that the semantics around Blobs created via `blob.slice()`\n * and `new Blob([blob])` are different. `blob.slice()` creates a\n * new *view* onto the same binary data, so calling `close()` on any\n * of those views is enough to deallocate the data, whereas\n * `new Blob([blob, ...])` actually copies the data in memory.\n */\n close() {\n const BlobManager = require('./BlobManager');\n BlobManager.release(this.data.blobId);\n this.data = null;\n }\n\n /**\n * Size of the data contained in the Blob object, in bytes.\n */\n get size(): number {\n return this.data.size;\n }\n\n /*\n * String indicating the MIME type of the data contained in the Blob.\n * If the type is unknown, this string is empty.\n */\n get type(): string {\n return this.data.type || '';\n }\n}\n\nmodule.exports = Blob;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nconst registry: {[key: string]: number, ...} = {};\n\nconst register = (id: string) => {\n if (registry[id]) {\n registry[id]++;\n } else {\n registry[id] = 1;\n }\n};\n\nconst unregister = (id: string) => {\n if (registry[id]) {\n registry[id]--;\n if (registry[id] <= 0) {\n delete registry[id];\n }\n }\n};\n\nconst has = (id: string): number | boolean => {\n return registry[id] && registry[id] > 0;\n};\n\nmodule.exports = {\n register,\n unregister,\n has,\n};\n","/**\n * @author Toru Nagashima \n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * @typedef {object} PrivateData\n * @property {EventTarget} eventTarget The event target.\n * @property {{type:string}} event The original event object.\n * @property {number} eventPhase The current event phase.\n * @property {EventTarget|null} currentTarget The current event target.\n * @property {boolean} canceled The flag to prevent default.\n * @property {boolean} stopped The flag to stop propagation.\n * @property {boolean} immediateStopped The flag to stop propagation immediately.\n * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null.\n * @property {number} timeStamp The unix time.\n * @private\n */\n\n/**\n * Private data for event wrappers.\n * @type {WeakMap}\n * @private\n */\nconst privateData = new WeakMap();\n\n/**\n * Cache for wrapper classes.\n * @type {WeakMap}\n * @private\n */\nconst wrappers = new WeakMap();\n\n/**\n * Get private data.\n * @param {Event} event The event object to get private data.\n * @returns {PrivateData} The private data of the event.\n * @private\n */\nfunction pd(event) {\n const retv = privateData.get(event);\n console.assert(\n retv != null,\n \"'this' is expected an Event object, but got\",\n event\n );\n return retv\n}\n\n/**\n * https://dom.spec.whatwg.org/#set-the-canceled-flag\n * @param data {PrivateData} private data.\n */\nfunction setCancelFlag(data) {\n if (data.passiveListener != null) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(\n \"Unable to preventDefault inside passive event listener invocation.\",\n data.passiveListener\n );\n }\n return\n }\n if (!data.event.cancelable) {\n return\n }\n\n data.canceled = true;\n if (typeof data.event.preventDefault === \"function\") {\n data.event.preventDefault();\n }\n}\n\n/**\n * @see https://dom.spec.whatwg.org/#interface-event\n * @private\n */\n/**\n * The event wrapper.\n * @constructor\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Event|{type:string}} event The original event to wrap.\n */\nfunction Event(eventTarget, event) {\n privateData.set(this, {\n eventTarget,\n event,\n eventPhase: 2,\n currentTarget: eventTarget,\n canceled: false,\n stopped: false,\n immediateStopped: false,\n passiveListener: null,\n timeStamp: event.timeStamp || Date.now(),\n });\n\n // https://heycam.github.io/webidl/#Unforgeable\n Object.defineProperty(this, \"isTrusted\", { value: false, enumerable: true });\n\n // Define accessors\n const keys = Object.keys(event);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in this)) {\n Object.defineProperty(this, key, defineRedirectDescriptor(key));\n }\n }\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEvent.prototype = {\n /**\n * The type of this event.\n * @type {string}\n */\n get type() {\n return pd(this).event.type\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get target() {\n return pd(this).eventTarget\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get currentTarget() {\n return pd(this).currentTarget\n },\n\n /**\n * @returns {EventTarget[]} The composed path of this event.\n */\n composedPath() {\n const currentTarget = pd(this).currentTarget;\n if (currentTarget == null) {\n return []\n }\n return [currentTarget]\n },\n\n /**\n * Constant of NONE.\n * @type {number}\n */\n get NONE() {\n return 0\n },\n\n /**\n * Constant of CAPTURING_PHASE.\n * @type {number}\n */\n get CAPTURING_PHASE() {\n return 1\n },\n\n /**\n * Constant of AT_TARGET.\n * @type {number}\n */\n get AT_TARGET() {\n return 2\n },\n\n /**\n * Constant of BUBBLING_PHASE.\n * @type {number}\n */\n get BUBBLING_PHASE() {\n return 3\n },\n\n /**\n * The target of this event.\n * @type {number}\n */\n get eventPhase() {\n return pd(this).eventPhase\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopPropagation() {\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.stopPropagation === \"function\") {\n data.event.stopPropagation();\n }\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopImmediatePropagation() {\n const data = pd(this);\n\n data.stopped = true;\n data.immediateStopped = true;\n if (typeof data.event.stopImmediatePropagation === \"function\") {\n data.event.stopImmediatePropagation();\n }\n },\n\n /**\n * The flag to be bubbling.\n * @type {boolean}\n */\n get bubbles() {\n return Boolean(pd(this).event.bubbles)\n },\n\n /**\n * The flag to be cancelable.\n * @type {boolean}\n */\n get cancelable() {\n return Boolean(pd(this).event.cancelable)\n },\n\n /**\n * Cancel this event.\n * @returns {void}\n */\n preventDefault() {\n setCancelFlag(pd(this));\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n */\n get defaultPrevented() {\n return pd(this).canceled\n },\n\n /**\n * The flag to be composed.\n * @type {boolean}\n */\n get composed() {\n return Boolean(pd(this).event.composed)\n },\n\n /**\n * The unix time of this event.\n * @type {number}\n */\n get timeStamp() {\n return pd(this).timeStamp\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n * @deprecated\n */\n get srcElement() {\n return pd(this).eventTarget\n },\n\n /**\n * The flag to stop event bubbling.\n * @type {boolean}\n * @deprecated\n */\n get cancelBubble() {\n return pd(this).stopped\n },\n set cancelBubble(value) {\n if (!value) {\n return\n }\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.cancelBubble === \"boolean\") {\n data.event.cancelBubble = true;\n }\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n * @deprecated\n */\n get returnValue() {\n return !pd(this).canceled\n },\n set returnValue(value) {\n if (!value) {\n setCancelFlag(pd(this));\n }\n },\n\n /**\n * Initialize this event object. But do nothing under event dispatching.\n * @param {string} type The event type.\n * @param {boolean} [bubbles=false] The flag to be possible to bubble up.\n * @param {boolean} [cancelable=false] The flag to be possible to cancel.\n * @deprecated\n */\n initEvent() {\n // Do nothing.\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(Event.prototype, \"constructor\", {\n value: Event,\n configurable: true,\n writable: true,\n});\n\n// Ensure `event instanceof window.Event` is `true`.\nif (typeof window !== \"undefined\" && typeof window.Event !== \"undefined\") {\n Object.setPrototypeOf(Event.prototype, window.Event.prototype);\n\n // Make association for wrappers.\n wrappers.set(window.Event.prototype, Event);\n}\n\n/**\n * Get the property descriptor to redirect a given property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to redirect the property.\n * @private\n */\nfunction defineRedirectDescriptor(key) {\n return {\n get() {\n return pd(this).event[key]\n },\n set(value) {\n pd(this).event[key] = value;\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Get the property descriptor to call a given method property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to call the method property.\n * @private\n */\nfunction defineCallDescriptor(key) {\n return {\n value() {\n const event = pd(this).event;\n return event[key].apply(event, arguments)\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define new wrapper class.\n * @param {Function} BaseEvent The base wrapper class.\n * @param {Object} proto The prototype of the original event.\n * @returns {Function} The defined wrapper class.\n * @private\n */\nfunction defineWrapper(BaseEvent, proto) {\n const keys = Object.keys(proto);\n if (keys.length === 0) {\n return BaseEvent\n }\n\n /** CustomEvent */\n function CustomEvent(eventTarget, event) {\n BaseEvent.call(this, eventTarget, event);\n }\n\n CustomEvent.prototype = Object.create(BaseEvent.prototype, {\n constructor: { value: CustomEvent, configurable: true, writable: true },\n });\n\n // Define accessors.\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in BaseEvent.prototype)) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, key);\n const isFunc = typeof descriptor.value === \"function\";\n Object.defineProperty(\n CustomEvent.prototype,\n key,\n isFunc\n ? defineCallDescriptor(key)\n : defineRedirectDescriptor(key)\n );\n }\n }\n\n return CustomEvent\n}\n\n/**\n * Get the wrapper class of a given prototype.\n * @param {Object} proto The prototype of the original event to get its wrapper.\n * @returns {Function} The wrapper class.\n * @private\n */\nfunction getWrapper(proto) {\n if (proto == null || proto === Object.prototype) {\n return Event\n }\n\n let wrapper = wrappers.get(proto);\n if (wrapper == null) {\n wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto);\n wrappers.set(proto, wrapper);\n }\n return wrapper\n}\n\n/**\n * Wrap a given event to management a dispatching.\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Object} event The event to wrap.\n * @returns {Event} The wrapper instance.\n * @private\n */\nfunction wrapEvent(eventTarget, event) {\n const Wrapper = getWrapper(Object.getPrototypeOf(event));\n return new Wrapper(eventTarget, event)\n}\n\n/**\n * Get the immediateStopped flag of a given event.\n * @param {Event} event The event to get.\n * @returns {boolean} The flag to stop propagation immediately.\n * @private\n */\nfunction isStopped(event) {\n return pd(event).immediateStopped\n}\n\n/**\n * Set the current event phase of a given event.\n * @param {Event} event The event to set current target.\n * @param {number} eventPhase New event phase.\n * @returns {void}\n * @private\n */\nfunction setEventPhase(event, eventPhase) {\n pd(event).eventPhase = eventPhase;\n}\n\n/**\n * Set the current target of a given event.\n * @param {Event} event The event to set current target.\n * @param {EventTarget|null} currentTarget New current target.\n * @returns {void}\n * @private\n */\nfunction setCurrentTarget(event, currentTarget) {\n pd(event).currentTarget = currentTarget;\n}\n\n/**\n * Set a passive listener of a given event.\n * @param {Event} event The event to set current target.\n * @param {Function|null} passiveListener New passive listener.\n * @returns {void}\n * @private\n */\nfunction setPassiveListener(event, passiveListener) {\n pd(event).passiveListener = passiveListener;\n}\n\n/**\n * @typedef {object} ListenerNode\n * @property {Function} listener\n * @property {1|2|3} listenerType\n * @property {boolean} passive\n * @property {boolean} once\n * @property {ListenerNode|null} next\n * @private\n */\n\n/**\n * @type {WeakMap>}\n * @private\n */\nconst listenersMap = new WeakMap();\n\n// Listener types\nconst CAPTURE = 1;\nconst BUBBLE = 2;\nconst ATTRIBUTE = 3;\n\n/**\n * Check whether a given value is an object or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an object.\n */\nfunction isObject(x) {\n return x !== null && typeof x === \"object\" //eslint-disable-line no-restricted-syntax\n}\n\n/**\n * Get listeners.\n * @param {EventTarget} eventTarget The event target to get.\n * @returns {Map} The listeners.\n * @private\n */\nfunction getListeners(eventTarget) {\n const listeners = listenersMap.get(eventTarget);\n if (listeners == null) {\n throw new TypeError(\n \"'this' is expected an EventTarget object, but got another value.\"\n )\n }\n return listeners\n}\n\n/**\n * Get the property descriptor for the event attribute of a given event.\n * @param {string} eventName The event name to get property descriptor.\n * @returns {PropertyDescriptor} The property descriptor.\n * @private\n */\nfunction defineEventAttributeDescriptor(eventName) {\n return {\n get() {\n const listeners = getListeners(this);\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n return node.listener\n }\n node = node.next;\n }\n return null\n },\n\n set(listener) {\n if (typeof listener !== \"function\" && !isObject(listener)) {\n listener = null; // eslint-disable-line no-param-reassign\n }\n const listeners = getListeners(this);\n\n // Traverse to the tail while removing old value.\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n // Remove old value.\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n node = node.next;\n }\n\n // Add new value.\n if (listener !== null) {\n const newNode = {\n listener,\n listenerType: ATTRIBUTE,\n passive: false,\n once: false,\n next: null,\n };\n if (prev === null) {\n listeners.set(eventName, newNode);\n } else {\n prev.next = newNode;\n }\n }\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define an event attribute (e.g. `eventTarget.onclick`).\n * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite.\n * @param {string} eventName The event name to define.\n * @returns {void}\n */\nfunction defineEventAttribute(eventTargetPrototype, eventName) {\n Object.defineProperty(\n eventTargetPrototype,\n `on${eventName}`,\n defineEventAttributeDescriptor(eventName)\n );\n}\n\n/**\n * Define a custom EventTarget with event attributes.\n * @param {string[]} eventNames Event names for event attributes.\n * @returns {EventTarget} The custom EventTarget.\n * @private\n */\nfunction defineCustomEventTarget(eventNames) {\n /** CustomEventTarget */\n function CustomEventTarget() {\n EventTarget.call(this);\n }\n\n CustomEventTarget.prototype = Object.create(EventTarget.prototype, {\n constructor: {\n value: CustomEventTarget,\n configurable: true,\n writable: true,\n },\n });\n\n for (let i = 0; i < eventNames.length; ++i) {\n defineEventAttribute(CustomEventTarget.prototype, eventNames[i]);\n }\n\n return CustomEventTarget\n}\n\n/**\n * EventTarget.\n *\n * - This is constructor if no arguments.\n * - This is a function which returns a CustomEventTarget constructor if there are arguments.\n *\n * For example:\n *\n * class A extends EventTarget {}\n * class B extends EventTarget(\"message\") {}\n * class C extends EventTarget(\"message\", \"error\") {}\n * class D extends EventTarget([\"message\", \"error\"]) {}\n */\nfunction EventTarget() {\n /*eslint-disable consistent-return */\n if (this instanceof EventTarget) {\n listenersMap.set(this, new Map());\n return\n }\n if (arguments.length === 1 && Array.isArray(arguments[0])) {\n return defineCustomEventTarget(arguments[0])\n }\n if (arguments.length > 0) {\n const types = new Array(arguments.length);\n for (let i = 0; i < arguments.length; ++i) {\n types[i] = arguments[i];\n }\n return defineCustomEventTarget(types)\n }\n throw new TypeError(\"Cannot call a class as a function\")\n /*eslint-enable consistent-return */\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEventTarget.prototype = {\n /**\n * Add a given listener to this event target.\n * @param {string} eventName The event name to add.\n * @param {Function} listener The listener to add.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n addEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n if (typeof listener !== \"function\" && !isObject(listener)) {\n throw new TypeError(\"'listener' should be a function or an object.\")\n }\n\n const listeners = getListeners(this);\n const optionsIsObj = isObject(options);\n const capture = optionsIsObj\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n const newNode = {\n listener,\n listenerType,\n passive: optionsIsObj && Boolean(options.passive),\n once: optionsIsObj && Boolean(options.once),\n next: null,\n };\n\n // Set it as the first node if the first node is null.\n let node = listeners.get(eventName);\n if (node === undefined) {\n listeners.set(eventName, newNode);\n return\n }\n\n // Traverse to the tail while checking duplication..\n let prev = null;\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n // Should ignore duplication.\n return\n }\n prev = node;\n node = node.next;\n }\n\n // Add it.\n prev.next = newNode;\n },\n\n /**\n * Remove a given listener from this event target.\n * @param {string} eventName The event name to remove.\n * @param {Function} listener The listener to remove.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n removeEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n\n const listeners = getListeners(this);\n const capture = isObject(options)\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n return\n }\n\n prev = node;\n node = node.next;\n }\n },\n\n /**\n * Dispatch a given event.\n * @param {Event|{type:string}} event The event to dispatch.\n * @returns {boolean} `false` if canceled.\n */\n dispatchEvent(event) {\n if (event == null || typeof event.type !== \"string\") {\n throw new TypeError('\"event.type\" should be a string.')\n }\n\n // If listeners aren't registered, terminate.\n const listeners = getListeners(this);\n const eventName = event.type;\n let node = listeners.get(eventName);\n if (node == null) {\n return true\n }\n\n // Since we cannot rewrite several properties, so wrap object.\n const wrappedEvent = wrapEvent(this, event);\n\n // This doesn't process capturing phase and bubbling phase.\n // This isn't participating in a tree.\n let prev = null;\n while (node != null) {\n // Remove this listener if it's once\n if (node.once) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n // Call this listener\n setPassiveListener(\n wrappedEvent,\n node.passive ? node.listener : null\n );\n if (typeof node.listener === \"function\") {\n try {\n node.listener.call(this, wrappedEvent);\n } catch (err) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(err);\n }\n }\n } else if (\n node.listenerType !== ATTRIBUTE &&\n typeof node.listener.handleEvent === \"function\"\n ) {\n node.listener.handleEvent(wrappedEvent);\n }\n\n // Break if `event.stopImmediatePropagation` was called.\n if (isStopped(wrappedEvent)) {\n break\n }\n\n node = node.next;\n }\n setPassiveListener(wrappedEvent, null);\n setEventPhase(wrappedEvent, 0);\n setCurrentTarget(wrappedEvent, null);\n\n return !wrappedEvent.defaultPrevented\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(EventTarget.prototype, \"constructor\", {\n value: EventTarget,\n configurable: true,\n writable: true,\n});\n\n// Ensure `eventTarget instanceof window.EventTarget` is `true`.\nif (\n typeof window !== \"undefined\" &&\n typeof window.EventTarget !== \"undefined\"\n) {\n Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);\n}\n\nexports.defineEventAttribute = defineEventAttribute;\nexports.EventTarget = EventTarget;\nexports.default = EventTarget;\n\nmodule.exports = EventTarget\nmodule.exports.EventTarget = module.exports[\"default\"] = EventTarget\nmodule.exports.defineEventAttribute = defineEventAttribute\n//# sourceMappingURL=event-target-shim.js.map\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n// Do not require the native RCTNetworking module directly! Use this wrapper module instead.\n// It will add the necessary requestId, so that you don't have to generate it yourself.\nconst NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');\n\nconst convertRequestBody = require('./convertRequestBody');\n\nimport NativeNetworkingAndroid from './NativeNetworkingAndroid';\nimport type {RequestBody} from './convertRequestBody';\n\ntype Header = [string, string];\n\n// Convert FormData headers to arrays, which are easier to consume in\n// native on Android.\nfunction convertHeadersMapToArray(headers: Object): Array
{\n const headerArray = [];\n for (const name in headers) {\n headerArray.push([name, headers[name]]);\n }\n return headerArray;\n}\n\nlet _requestId = 1;\nfunction generateRequestId(): number {\n return _requestId++;\n}\n\n/**\n * This class is a wrapper around the native RCTNetworking module. It adds a necessary unique\n * requestId to each network request that can be used to abort that request later on.\n */\nclass RCTNetworking extends NativeEventEmitter {\n constructor() {\n super(NativeNetworkingAndroid);\n }\n\n sendRequest(\n method: string,\n trackingName: string,\n url: string,\n headers: Object,\n data: RequestBody,\n responseType: 'text' | 'base64',\n incrementalUpdates: boolean,\n timeout: number,\n callback: (requestId: number) => mixed,\n withCredentials: boolean,\n ) {\n const body = convertRequestBody(data);\n if (body && body.formData) {\n body.formData = body.formData.map(part => ({\n ...part,\n headers: convertHeadersMapToArray(part.headers),\n }));\n }\n const requestId = generateRequestId();\n NativeNetworkingAndroid.sendRequest(\n method,\n url,\n requestId,\n convertHeadersMapToArray(headers),\n {...body, trackingName},\n responseType,\n incrementalUpdates,\n timeout,\n withCredentials,\n );\n callback(requestId);\n }\n\n abortRequest(requestId: number) {\n NativeNetworkingAndroid.abortRequest(requestId);\n }\n\n clearCookies(callback: (result: boolean) => any) {\n NativeNetworkingAndroid.clearCookies(callback);\n }\n}\n\nmodule.exports = (new RCTNetworking(): RCTNetworking);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\ntype Header = [string, string];\n\nexport interface Spec extends TurboModule {\n +sendRequest: (\n method: string,\n url: string,\n requestId: number,\n headers: Array
,\n data: Object,\n responseType: string,\n useIncrementalUpdates: boolean,\n timeout: number,\n withCredentials: boolean,\n ) => void;\n +abortRequest: (requestId: number) => void;\n +clearCookies: (callback: (result: boolean) => void) => void;\n\n // RCTEventEmitter\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('Networking'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('../vendor/emitter/EventEmitter');\nconst Platform = require('../Utilities/Platform');\nconst RCTDeviceEventEmitter = require('./RCTDeviceEventEmitter');\n\nconst invariant = require('invariant');\n\nimport type EmitterSubscription from '../vendor/emitter/EmitterSubscription';\n\ntype NativeModule = {\n +addListener: (eventType: string) => void,\n +removeListeners: (count: number) => void,\n ...\n};\n\n/**\n * Abstract base class for implementing event-emitting modules. This implements\n * a subset of the standard EventEmitter node module API.\n */\nclass NativeEventEmitter extends EventEmitter {\n _nativeModule: ?NativeModule;\n\n constructor(nativeModule: ?NativeModule) {\n super(RCTDeviceEventEmitter.sharedSubscriber);\n if (Platform.OS === 'ios') {\n invariant(nativeModule, 'Native module cannot be null.');\n this._nativeModule = nativeModule;\n }\n }\n\n addListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n if (this._nativeModule != null) {\n this._nativeModule.addListener(eventType);\n }\n return super.addListener(eventType, listener, context);\n }\n\n removeAllListeners(eventType: string) {\n invariant(eventType, 'eventType argument is required.');\n const count = this.listeners(eventType).length;\n if (this._nativeModule != null) {\n this._nativeModule.removeListeners(count);\n }\n super.removeAllListeners(eventType);\n }\n\n removeSubscription(subscription: EmitterSubscription) {\n if (this._nativeModule != null) {\n this._nativeModule.removeListeners(1);\n }\n super.removeSubscription(subscription);\n }\n}\n\nmodule.exports = NativeEventEmitter;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst binaryToBase64 = require('../Utilities/binaryToBase64');\n\nconst Blob = require('../Blob/Blob');\nconst FormData = require('./FormData');\n\nexport type RequestBody =\n | string\n | Blob\n | FormData\n | {uri: string, ...}\n | ArrayBuffer\n | $ArrayBufferView;\n\nfunction convertRequestBody(body: RequestBody): Object {\n if (typeof body === 'string') {\n return {string: body};\n }\n if (body instanceof Blob) {\n return {blob: body.data};\n }\n if (body instanceof FormData) {\n return {formData: body.getParts()};\n }\n if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) {\n // $FlowFixMe: no way to assert that 'body' is indeed an ArrayBufferView\n return {base64: binaryToBase64(body)};\n }\n return body;\n}\n\nmodule.exports = convertRequestBody;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst base64 = require('base64-js');\n\nfunction binaryToBase64(data: ArrayBuffer | $ArrayBufferView): any {\n if (data instanceof ArrayBuffer) {\n data = new Uint8Array(data);\n }\n if (data instanceof Uint8Array) {\n return base64.fromByteArray(data);\n }\n if (!ArrayBuffer.isView(data)) {\n throw new Error('data must be ArrayBuffer or typed array');\n }\n const {buffer, byteOffset, byteLength} = data;\n return base64.fromByteArray(new Uint8Array(buffer, byteOffset, byteLength));\n}\n\nmodule.exports = binaryToBase64;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\ntype FormDataValue = any;\ntype FormDataNameValuePair = [string, FormDataValue];\n\ntype Headers = {[name: string]: string, ...};\ntype FormDataPart =\n | {\n string: string,\n headers: Headers,\n ...\n }\n | {\n uri: string,\n headers: Headers,\n name?: string,\n type?: string,\n ...\n };\n\n/**\n * Polyfill for XMLHttpRequest2 FormData API, allowing multipart POST requests\n * with mixed data (string, native files) to be submitted via XMLHttpRequest.\n *\n * Example:\n *\n * var photo = {\n * uri: uriFromCameraRoll,\n * type: 'image/jpeg',\n * name: 'photo.jpg',\n * };\n *\n * var body = new FormData();\n * body.append('authToken', 'secret');\n * body.append('photo', photo);\n * body.append('title', 'A beautiful photo!');\n *\n * xhr.open('POST', serverURL);\n * xhr.send(body);\n */\nclass FormData {\n _parts: Array;\n\n constructor() {\n this._parts = [];\n }\n\n append(key: string, value: FormDataValue) {\n // The XMLHttpRequest spec doesn't specify if duplicate keys are allowed.\n // MDN says that any new values should be appended to existing values.\n // In any case, major browsers allow duplicate keys, so that's what we'll do\n // too. They'll simply get appended as additional form data parts in the\n // request body, leaving the server to deal with them.\n this._parts.push([key, value]);\n }\n\n getParts(): Array {\n return this._parts.map(([name, value]) => {\n const contentDisposition = 'form-data; name=\"' + name + '\"';\n\n const headers: Headers = {'content-disposition': contentDisposition};\n\n // The body part is a \"blob\", which in React Native just means\n // an object with a `uri` attribute. Optionally, it can also\n // have a `name` and `type` attribute to specify filename and\n // content type (cf. web Blob interface.)\n if (typeof value === 'object' && value) {\n if (typeof value.name === 'string') {\n headers['content-disposition'] += '; filename=\"' + value.name + '\"';\n }\n if (typeof value.type === 'string') {\n headers['content-type'] = value.type;\n }\n return {...value, headers, fieldName: name};\n }\n // Convert non-object values to strings as per FormData.append() spec\n return {string: String(value), headers, fieldName: name};\n });\n }\n}\n\nmodule.exports = FormData;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Blob = require('../Blob/Blob');\nconst BlobManager = require('../Blob/BlobManager');\nconst EventTarget = require('event-target-shim');\nconst NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');\nconst Platform = require('../Utilities/Platform');\nconst WebSocketEvent = require('./WebSocketEvent');\n\nconst base64 = require('base64-js');\nconst binaryToBase64 = require('../Utilities/binaryToBase64');\nconst invariant = require('invariant');\n\nimport type EventSubscription from '../vendor/emitter/EventSubscription';\nimport NativeWebSocketModule from './NativeWebSocketModule';\n\ntype ArrayBufferView =\n | Int8Array\n | Uint8Array\n | Uint8ClampedArray\n | Int16Array\n | Uint16Array\n | Int32Array\n | Uint32Array\n | Float32Array\n | Float64Array\n | DataView;\n\ntype BinaryType = 'blob' | 'arraybuffer';\n\nconst CONNECTING = 0;\nconst OPEN = 1;\nconst CLOSING = 2;\nconst CLOSED = 3;\n\nconst CLOSE_NORMAL = 1000;\n\nconst WEBSOCKET_EVENTS = ['close', 'error', 'message', 'open'];\n\nlet nextWebSocketId = 0;\n\n/**\n * Browser-compatible WebSockets implementation.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket\n * See https://github.com/websockets/ws\n */\nclass WebSocket extends (EventTarget(...WEBSOCKET_EVENTS): any) {\n static CONNECTING: number = CONNECTING;\n static OPEN: number = OPEN;\n static CLOSING: number = CLOSING;\n static CLOSED: number = CLOSED;\n\n CONNECTING: number = CONNECTING;\n OPEN: number = OPEN;\n CLOSING: number = CLOSING;\n CLOSED: number = CLOSED;\n\n _socketId: number;\n _eventEmitter: NativeEventEmitter;\n _subscriptions: Array;\n _binaryType: ?BinaryType;\n\n onclose: ?Function;\n onerror: ?Function;\n onmessage: ?Function;\n onopen: ?Function;\n\n bufferedAmount: number;\n extension: ?string;\n protocol: ?string;\n readyState: number = CONNECTING;\n url: ?string;\n\n constructor(\n url: string,\n protocols: ?string | ?Array,\n options: ?{headers?: {origin?: string, ...}, ...},\n ) {\n super();\n if (typeof protocols === 'string') {\n protocols = [protocols];\n }\n\n const {headers = {}, ...unrecognized} = options || {};\n\n // Preserve deprecated backwards compatibility for the 'origin' option\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n if (unrecognized && typeof unrecognized.origin === 'string') {\n console.warn(\n 'Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.',\n );\n /* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error found when Flow v0.54 was deployed. To see\n * the error delete this comment and run Flow. */\n headers.origin = unrecognized.origin;\n /* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error found when Flow v0.54 was deployed. To see\n * the error delete this comment and run Flow. */\n delete unrecognized.origin;\n }\n\n // Warn about and discard anything else\n if (Object.keys(unrecognized).length > 0) {\n console.warn(\n 'Unrecognized WebSocket connection option(s) `' +\n Object.keys(unrecognized).join('`, `') +\n '`. ' +\n 'Did you mean to put these under `headers`?',\n );\n }\n\n if (!Array.isArray(protocols)) {\n protocols = null;\n }\n\n this._eventEmitter = new NativeEventEmitter(NativeWebSocketModule);\n this._socketId = nextWebSocketId++;\n this._registerEvents();\n NativeWebSocketModule.connect(url, protocols, {headers}, this._socketId);\n }\n\n get binaryType(): ?BinaryType {\n return this._binaryType;\n }\n\n set binaryType(binaryType: BinaryType): void {\n if (binaryType !== 'blob' && binaryType !== 'arraybuffer') {\n throw new Error(\"binaryType must be either 'blob' or 'arraybuffer'\");\n }\n if (this._binaryType === 'blob' || binaryType === 'blob') {\n invariant(\n BlobManager.isAvailable,\n 'Native module BlobModule is required for blob support',\n );\n if (binaryType === 'blob') {\n BlobManager.addWebSocketHandler(this._socketId);\n } else {\n BlobManager.removeWebSocketHandler(this._socketId);\n }\n }\n this._binaryType = binaryType;\n }\n\n close(code?: number, reason?: string): void {\n if (this.readyState === this.CLOSING || this.readyState === this.CLOSED) {\n return;\n }\n\n this.readyState = this.CLOSING;\n this._close(code, reason);\n }\n\n send(data: string | ArrayBuffer | ArrayBufferView | Blob): void {\n if (this.readyState === this.CONNECTING) {\n throw new Error('INVALID_STATE_ERR');\n }\n\n if (data instanceof Blob) {\n invariant(\n BlobManager.isAvailable,\n 'Native module BlobModule is required for blob support',\n );\n BlobManager.sendOverSocket(data, this._socketId);\n return;\n }\n\n if (typeof data === 'string') {\n NativeWebSocketModule.send(data, this._socketId);\n return;\n }\n\n if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {\n NativeWebSocketModule.sendBinary(binaryToBase64(data), this._socketId);\n return;\n }\n\n throw new Error('Unsupported data type');\n }\n\n ping(): void {\n if (this.readyState === this.CONNECTING) {\n throw new Error('INVALID_STATE_ERR');\n }\n\n NativeWebSocketModule.ping(this._socketId);\n }\n\n _close(code?: number, reason?: string): void {\n // See https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent\n const statusCode = typeof code === 'number' ? code : CLOSE_NORMAL;\n const closeReason = typeof reason === 'string' ? reason : '';\n NativeWebSocketModule.close(statusCode, closeReason, this._socketId);\n\n if (BlobManager.isAvailable && this._binaryType === 'blob') {\n BlobManager.removeWebSocketHandler(this._socketId);\n }\n }\n\n _unregisterEvents(): void {\n this._subscriptions.forEach(e => e.remove());\n this._subscriptions = [];\n }\n\n _registerEvents(): void {\n this._subscriptions = [\n this._eventEmitter.addListener('websocketMessage', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n let data = ev.data;\n switch (ev.type) {\n case 'binary':\n data = base64.toByteArray(ev.data).buffer;\n break;\n case 'blob':\n data = BlobManager.createFromOptions(ev.data);\n break;\n }\n this.dispatchEvent(new WebSocketEvent('message', {data}));\n }),\n this._eventEmitter.addListener('websocketOpen', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n this.readyState = this.OPEN;\n this.protocol = ev.protocol;\n this.dispatchEvent(new WebSocketEvent('open'));\n }),\n this._eventEmitter.addListener('websocketClosed', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n this.readyState = this.CLOSED;\n this.dispatchEvent(\n new WebSocketEvent('close', {\n code: ev.code,\n reason: ev.reason,\n }),\n );\n this._unregisterEvents();\n this.close();\n }),\n this._eventEmitter.addListener('websocketFailed', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n this.readyState = this.CLOSED;\n this.dispatchEvent(\n new WebSocketEvent('error', {\n message: ev.message,\n }),\n );\n this.dispatchEvent(\n new WebSocketEvent('close', {\n message: ev.message,\n }),\n );\n this._unregisterEvents();\n this.close();\n }),\n ];\n }\n}\n\nmodule.exports = WebSocket;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +connect: (\n url: string,\n protocols: ?Array,\n options: {|headers?: Object|},\n socketID: number,\n ) => void;\n +send: (message: string, forSocketID: number) => void;\n +sendBinary: (base64String: string, forSocketID: number) => void;\n +ping: (socketID: number) => void;\n +close: (code: number, reason: string, socketID: number) => void;\n\n // RCTEventEmitter\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing(\n 'WebSocketModule',\n): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Event object passed to the `onopen`, `onclose`, `onmessage`, `onerror`\n * callbacks of `WebSocket`.\n *\n * The `type` property is \"open\", \"close\", \"message\", \"error\" respectively.\n *\n * In case of \"message\", the `data` property contains the incoming data.\n */\nclass WebSocketEvent {\n constructor(type, eventInitDict) {\n this.type = type.toString();\n Object.assign(this, eventInitDict);\n }\n}\n\nmodule.exports = WebSocketEvent;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Blob = require('./Blob');\n\nconst invariant = require('invariant');\n\nimport type {BlobOptions} from './BlobTypes';\n\n/**\n * The File interface provides information about files.\n */\nclass File extends Blob {\n /**\n * Constructor for JS consumers.\n */\n constructor(\n parts: Array,\n name: string,\n options?: BlobOptions,\n ) {\n invariant(\n parts != null && name != null,\n 'Failed to construct `File`: Must pass both `parts` and `name` arguments.',\n );\n\n super(parts, options);\n this.data.name = name;\n }\n\n /**\n * Name of the file.\n */\n get name(): string {\n invariant(this.data.name != null, 'Files must have a name set.');\n return this.data.name;\n }\n\n /*\n * Last modified time of the file.\n */\n get lastModified(): number {\n return this.data.lastModified || 0;\n }\n}\n\nmodule.exports = File;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Blob = require('./Blob');\nconst EventTarget = require('event-target-shim');\n\nimport NativeFileReaderModule from './NativeFileReaderModule';\n\ntype ReadyState =\n | 0 // EMPTY\n | 1 // LOADING\n | 2; // DONE\n\ntype ReaderResult = string | ArrayBuffer;\n\nconst READER_EVENTS = [\n 'abort',\n 'error',\n 'load',\n 'loadstart',\n 'loadend',\n 'progress',\n];\n\nconst EMPTY = 0;\nconst LOADING = 1;\nconst DONE = 2;\n\nclass FileReader extends (EventTarget(...READER_EVENTS): any) {\n static EMPTY: number = EMPTY;\n static LOADING: number = LOADING;\n static DONE: number = DONE;\n\n EMPTY: number = EMPTY;\n LOADING: number = LOADING;\n DONE: number = DONE;\n\n _readyState: ReadyState;\n _error: ?Error;\n _result: ?ReaderResult;\n _aborted: boolean = false;\n _subscriptions: Array<*> = [];\n\n constructor() {\n super();\n this._reset();\n }\n\n _reset(): void {\n this._readyState = EMPTY;\n this._error = null;\n this._result = null;\n }\n\n _clearSubscriptions(): void {\n this._subscriptions.forEach(sub => sub.remove());\n this._subscriptions = [];\n }\n\n _setReadyState(newState: ReadyState) {\n this._readyState = newState;\n this.dispatchEvent({type: 'readystatechange'});\n if (newState === DONE) {\n if (this._aborted) {\n this.dispatchEvent({type: 'abort'});\n } else if (this._error) {\n this.dispatchEvent({type: 'error'});\n } else {\n this.dispatchEvent({type: 'load'});\n }\n this.dispatchEvent({type: 'loadend'});\n }\n }\n\n readAsArrayBuffer() {\n throw new Error('FileReader.readAsArrayBuffer is not implemented');\n }\n\n readAsDataURL(blob: Blob) {\n this._aborted = false;\n\n NativeFileReaderModule.readAsDataURL(blob.data).then(\n (text: string) => {\n if (this._aborted) {\n return;\n }\n this._result = text;\n this._setReadyState(DONE);\n },\n error => {\n if (this._aborted) {\n return;\n }\n this._error = error;\n this._setReadyState(DONE);\n },\n );\n }\n\n readAsText(blob: Blob, encoding: string = 'UTF-8') {\n this._aborted = false;\n\n NativeFileReaderModule.readAsText(blob.data, encoding).then(\n (text: string) => {\n if (this._aborted) {\n return;\n }\n this._result = text;\n this._setReadyState(DONE);\n },\n error => {\n if (this._aborted) {\n return;\n }\n this._error = error;\n this._setReadyState(DONE);\n },\n );\n }\n\n abort() {\n this._aborted = true;\n // only call onreadystatechange if there is something to abort, as per spec\n if (this._readyState !== EMPTY && this._readyState !== DONE) {\n this._reset();\n this._setReadyState(DONE);\n }\n // Reset again after, in case modified in handler\n this._reset();\n }\n\n get readyState(): ReadyState {\n return this._readyState;\n }\n\n get error(): ?Error {\n return this._error;\n }\n\n get result(): ?ReaderResult {\n return this._result;\n }\n}\n\nmodule.exports = FileReader;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +readAsDataURL: (data: Object) => Promise;\n +readAsText: (data: Object, encoding: string) => Promise;\n}\n\nexport default (TurboModuleRegistry.getEnforcing(\n 'FileReaderModule',\n): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst Blob = require('./Blob');\n\nimport NativeBlobModule from './NativeBlobModule';\n\nlet BLOB_URL_PREFIX = null;\n\nif (\n NativeBlobModule &&\n typeof NativeBlobModule.getConstants().BLOB_URI_SCHEME === 'string'\n) {\n const constants = NativeBlobModule.getConstants();\n BLOB_URL_PREFIX = constants.BLOB_URI_SCHEME + ':';\n if (typeof constants.BLOB_URI_HOST === 'string') {\n BLOB_URL_PREFIX += `//${constants.BLOB_URI_HOST}/`;\n }\n}\n\n/**\n * To allow Blobs be accessed via `content://` URIs,\n * you need to register `BlobProvider` as a ContentProvider in your app's `AndroidManifest.xml`:\n *\n * ```xml\n * \n * \n * \n * \n * \n * ```\n * And then define the `blob_provider_authority` string in `res/values/strings.xml`.\n * Use a dotted name that's entirely unique to your app:\n *\n * ```xml\n * \n * your.app.package.blobs\n * \n * ```\n */\n\n// Small subset from whatwg-url: https://github.com/jsdom/whatwg-url/tree/master/lib\n// The reference code bloat comes from Unicode issues with URLs, so those won't work here.\nexport class URLSearchParams {\n _searchParams = [];\n\n constructor(params: any) {\n if (typeof params === 'object') {\n Object.keys(params).forEach(key => this.append(key, params[key]));\n }\n }\n\n append(key: string, value: string) {\n this._searchParams.push([key, value]);\n }\n\n delete(name) {\n throw new Error('not implemented');\n }\n\n get(name) {\n throw new Error('not implemented');\n }\n\n getAll(name) {\n throw new Error('not implemented');\n }\n\n has(name) {\n throw new Error('not implemented');\n }\n\n set(name, value) {\n throw new Error('not implemented');\n }\n\n sort() {\n throw new Error('not implemented');\n }\n\n [Symbol.iterator]() {\n return this._searchParams[Symbol.iterator]();\n }\n\n toString() {\n if (this._searchParams.length === 0) {\n return '';\n }\n const last = this._searchParams.length - 1;\n return this._searchParams.reduce((acc, curr, index) => {\n return acc + curr.join('=') + (index === last ? '' : '&');\n }, '');\n }\n}\n\nfunction validateBaseUrl(url: string) {\n // from this MIT-licensed gist: https://gist.github.com/dperini/729294\n return /^(?:(?:(?:https?|ftp):)?\\/\\/)(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))?)(?::\\d{2,5})?(?:[/?#]\\S*)?$/i.test(\n url,\n );\n}\n\nexport class URL {\n _searchParamsInstance = null;\n\n static createObjectURL(blob: Blob) {\n if (BLOB_URL_PREFIX === null) {\n throw new Error('Cannot create URL for blob!');\n }\n return `${BLOB_URL_PREFIX}${blob.data.blobId}?offset=${\n blob.data.offset\n }&size=${blob.size}`;\n }\n\n static revokeObjectURL(url: string) {\n // Do nothing.\n }\n\n constructor(url: string, base: string) {\n let baseUrl = null;\n if (!base || validateBaseUrl(url)) {\n this._url = url;\n if (!this._url.endsWith('/')) {\n this._url += '/';\n }\n } else {\n if (typeof base === 'string') {\n baseUrl = base;\n if (!validateBaseUrl(baseUrl)) {\n throw new TypeError(`Invalid base URL: ${baseUrl}`);\n }\n } else if (typeof base === 'object') {\n baseUrl = base.toString();\n }\n if (baseUrl.endsWith('/')) {\n baseUrl = baseUrl.slice(0, baseUrl.length - 1);\n }\n if (!url.startsWith('/')) {\n url = `/${url}`;\n }\n if (baseUrl.endsWith(url)) {\n url = '';\n }\n this._url = `${baseUrl}${url}`;\n }\n }\n\n get hash() {\n throw new Error('not implemented');\n }\n\n get host() {\n throw new Error('not implemented');\n }\n\n get hostname() {\n throw new Error('not implemented');\n }\n\n get href(): string {\n return this.toString();\n }\n\n get origin() {\n throw new Error('not implemented');\n }\n\n get password() {\n throw new Error('not implemented');\n }\n\n get pathname() {\n throw new Error('not implemented');\n }\n\n get port() {\n throw new Error('not implemented');\n }\n\n get protocol() {\n throw new Error('not implemented');\n }\n\n get search() {\n throw new Error('not implemented');\n }\n\n get searchParams(): URLSearchParams {\n if (this._searchParamsInstance == null) {\n this._searchParamsInstance = new URLSearchParams();\n }\n return this._searchParamsInstance;\n }\n\n toJSON(): string {\n return this.toString();\n }\n\n toString(): string {\n if (this._searchParamsInstance === null) {\n return this._url;\n }\n const separator = this._url.indexOf('?') > -1 ? '&' : '?';\n return this._url + separator + this._searchParamsInstance.toString();\n }\n\n get username() {\n throw new Error('not implemented');\n }\n}\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar eventTargetShim = require('event-target-shim');\n\n/**\n * The signal class.\n * @see https://dom.spec.whatwg.org/#abortsignal\n */\nclass AbortSignal extends eventTargetShim.EventTarget {\n /**\n * AbortSignal cannot be constructed directly.\n */\n constructor() {\n super();\n throw new TypeError(\"AbortSignal cannot be constructed directly\");\n }\n /**\n * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.\n */\n get aborted() {\n const aborted = abortedFlags.get(this);\n if (typeof aborted !== \"boolean\") {\n throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? \"null\" : typeof this}`);\n }\n return aborted;\n }\n}\neventTargetShim.defineEventAttribute(AbortSignal.prototype, \"abort\");\n/**\n * Create an AbortSignal object.\n */\nfunction createAbortSignal() {\n const signal = Object.create(AbortSignal.prototype);\n eventTargetShim.EventTarget.call(signal);\n abortedFlags.set(signal, false);\n return signal;\n}\n/**\n * Abort a given signal.\n */\nfunction abortSignal(signal) {\n if (abortedFlags.get(signal) !== false) {\n return;\n }\n abortedFlags.set(signal, true);\n signal.dispatchEvent({ type: \"abort\" });\n}\n/**\n * Aborted flag for each instances.\n */\nconst abortedFlags = new WeakMap();\n// Properties should be enumerable.\nObject.defineProperties(AbortSignal.prototype, {\n aborted: { enumerable: true },\n});\n// `toString()` should return `\"[object AbortSignal]\"`\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortSignal\",\n });\n}\n\n/**\n * The AbortController.\n * @see https://dom.spec.whatwg.org/#abortcontroller\n */\nclass AbortController {\n /**\n * Initialize this controller.\n */\n constructor() {\n signals.set(this, createAbortSignal());\n }\n /**\n * Returns the `AbortSignal` object associated with this object.\n */\n get signal() {\n return getSignal(this);\n }\n /**\n * Abort and signal to any observers that the associated activity is to be aborted.\n */\n abort() {\n abortSignal(getSignal(this));\n }\n}\n/**\n * Associated signals.\n */\nconst signals = new WeakMap();\n/**\n * Get the associated signal of a given controller.\n */\nfunction getSignal(controller) {\n const signal = signals.get(controller);\n if (signal == null) {\n throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? \"null\" : typeof controller}`);\n }\n return signal;\n}\n// Properties should be enumerable.\nObject.defineProperties(AbortController.prototype, {\n signal: { enumerable: true },\n abort: { enumerable: true },\n});\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortController\",\n });\n}\n\nexports.AbortController = AbortController;\nexports.AbortSignal = AbortSignal;\nexports.default = AbortController;\n\nmodule.exports = AbortController\nmodule.exports.AbortController = module.exports[\"default\"] = AbortController\nmodule.exports.AbortSignal = AbortSignal\n//# sourceMappingURL=abort-controller.js.map\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n/**\n * Set up alert().\n * You can use this module directly, or just require InitializeCore.\n */\nif (!global.alert) {\n global.alert = function(text) {\n // Require Alert on demand. Requiring it too early can lead to issues\n // with things like Platform not being fully initialized.\n require('../Alert/Alert').alert('Alert', '' + text);\n };\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport Platform from '../Utilities/Platform';\nimport NativeDialogManagerAndroid, {\n type DialogOptions,\n} from '../NativeModules/specs/NativeDialogManagerAndroid';\nimport RCTAlertManager from './RCTAlertManager';\n\nexport type AlertType =\n | 'default'\n | 'plain-text'\n | 'secure-text'\n | 'login-password';\nexport type AlertButtonStyle = 'default' | 'cancel' | 'destructive';\nexport type Buttons = Array<{\n text?: string,\n onPress?: ?Function,\n style?: AlertButtonStyle,\n ...\n}>;\n\ntype Options = {\n cancelable?: ?boolean,\n onDismiss?: ?() => void,\n ...\n};\n\n/**\n * Launches an alert dialog with the specified title and message.\n *\n * See http://facebook.github.io/react-native/docs/alert.html\n */\nclass Alert {\n static alert(\n title: ?string,\n message?: ?string,\n buttons?: Buttons,\n options?: Options,\n ): void {\n if (Platform.OS === 'ios') {\n Alert.prompt(title, message, buttons, 'default');\n } else if (Platform.OS === 'android') {\n if (!NativeDialogManagerAndroid) {\n return;\n }\n const constants = NativeDialogManagerAndroid.getConstants();\n\n const config: DialogOptions = {\n title: title || '',\n message: message || '',\n cancelable: false,\n };\n\n if (options && options.cancelable) {\n config.cancelable = options.cancelable;\n }\n // At most three buttons (neutral, negative, positive). Ignore rest.\n // The text 'OK' should be probably localized. iOS Alert does that in native.\n const defaultPositiveText = 'OK';\n const validButtons: Buttons = buttons\n ? buttons.slice(0, 3)\n : [{text: defaultPositiveText}];\n const buttonPositive = validButtons.pop();\n const buttonNegative = validButtons.pop();\n const buttonNeutral = validButtons.pop();\n\n if (buttonNeutral) {\n config.buttonNeutral = buttonNeutral.text || '';\n }\n if (buttonNegative) {\n config.buttonNegative = buttonNegative.text || '';\n }\n if (buttonPositive) {\n config.buttonPositive = buttonPositive.text || defaultPositiveText;\n }\n\n const onAction = (action, buttonKey) => {\n if (action === constants.buttonClicked) {\n if (buttonKey === constants.buttonNeutral) {\n buttonNeutral.onPress && buttonNeutral.onPress();\n } else if (buttonKey === constants.buttonNegative) {\n buttonNegative.onPress && buttonNegative.onPress();\n } else if (buttonKey === constants.buttonPositive) {\n buttonPositive.onPress && buttonPositive.onPress();\n }\n } else if (action === constants.dismissed) {\n options && options.onDismiss && options.onDismiss();\n }\n };\n const onError = errorMessage => console.warn(errorMessage);\n NativeDialogManagerAndroid.showAlert(config, onError, onAction);\n }\n }\n\n static prompt(\n title: ?string,\n message?: ?string,\n callbackOrButtons?: ?(((text: string) => void) | Buttons),\n type?: ?AlertType = 'plain-text',\n defaultValue?: string,\n keyboardType?: string,\n ): void {\n if (Platform.OS === 'ios') {\n if (typeof type === 'function') {\n console.warn(\n 'You passed a callback function as the \"type\" argument to Alert.prompt(). React Native is ' +\n 'assuming you want to use the deprecated Alert.prompt(title, defaultValue, buttons, callback) ' +\n 'signature. The current signature is Alert.prompt(title, message, callbackOrButtons, type, defaultValue, ' +\n 'keyboardType) and the old syntax will be removed in a future version.',\n );\n\n const callback = type;\n RCTAlertManager.alertWithArgs(\n {\n title: title || '',\n type: 'plain-text',\n defaultValue: message || '',\n },\n (id, value) => {\n callback(value);\n },\n );\n return;\n }\n\n let callbacks = [];\n const buttons = [];\n let cancelButtonKey;\n let destructiveButtonKey;\n if (typeof callbackOrButtons === 'function') {\n callbacks = [callbackOrButtons];\n } else if (Array.isArray(callbackOrButtons)) {\n callbackOrButtons.forEach((btn, index) => {\n callbacks[index] = btn.onPress;\n if (btn.style === 'cancel') {\n cancelButtonKey = String(index);\n } else if (btn.style === 'destructive') {\n destructiveButtonKey = String(index);\n }\n if (btn.text || index < (callbackOrButtons || []).length - 1) {\n const btnDef = {};\n btnDef[index] = btn.text || '';\n buttons.push(btnDef);\n }\n });\n }\n\n RCTAlertManager.alertWithArgs(\n {\n title: title || '',\n message: message || undefined,\n buttons,\n type: type || undefined,\n defaultValue,\n cancelButtonKey,\n destructiveButtonKey,\n keyboardType,\n },\n (id, value) => {\n const cb = callbacks[id];\n cb && cb(value);\n },\n );\n }\n }\n}\n\nmodule.exports = Alert;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\n/* 'buttonClicked' | 'dismissed' */\ntype DialogAction = string;\n/*\n buttonPositive = -1,\n buttonNegative = -2,\n buttonNeutral = -3\n*/\ntype DialogButtonKey = number;\nexport type DialogOptions = {|\n title?: string,\n message?: string,\n buttonPositive?: string,\n buttonNegative?: string,\n buttonNeutral?: string,\n items?: Array,\n cancelable?: boolean,\n|};\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n +buttonClicked: DialogAction,\n +dismissed: DialogAction,\n +buttonPositive: DialogButtonKey,\n +buttonNegative: DialogButtonKey,\n +buttonNeutral: DialogButtonKey,\n |};\n +showAlert: (\n config: DialogOptions,\n onError: (error: string) => void,\n onAction: (action: DialogAction, buttonKey?: DialogButtonKey) => void,\n ) => void;\n}\n\nexport default (TurboModuleRegistry.get('DialogManagerAndroid'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nimport NativeDialogManagerAndroid from '../NativeModules/specs/NativeDialogManagerAndroid';\n\nfunction emptyCallback() {}\n\nmodule.exports = {\n alertWithArgs: function(args, callback) {\n // TODO(5998984): Polyfill it correctly with DialogManagerAndroid\n if (!NativeDialogManagerAndroid) {\n return;\n }\n\n NativeDialogManagerAndroid.showAlert(\n args,\n emptyCallback,\n callback || emptyCallback,\n );\n },\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst {polyfillObjectProperty} = require('../Utilities/PolyfillFunctions');\n\nlet navigator = global.navigator;\nif (navigator === undefined) {\n global.navigator = navigator = {};\n}\n\n// see https://github.com/facebook/react-native/issues/10881\npolyfillObjectProperty(navigator, 'product', () => 'ReactNative');\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\n/**\n * We don't set up the batched bridge in bridgeless mode. Once we've migrated\n * everything over to bridgeless we can just delete this file.\n */\nif (!global.RN$Bridgeless) {\n /**\n * Set up the BatchedBridge. This must be done after the other steps in\n * InitializeCore to ensure that the JS environment has been initialized.\n * You can use this module directly, or just require InitializeCore.\n */\n const BatchedBridge = require('../BatchedBridge/BatchedBridge');\n BatchedBridge.registerLazyCallableModule('Systrace', () =>\n require('../Performance/Systrace'),\n );\n BatchedBridge.registerLazyCallableModule('JSTimers', () =>\n require('./Timers/JSTimers'),\n );\n BatchedBridge.registerLazyCallableModule('HeapCapture', () =>\n require('../HeapCapture/HeapCapture'),\n );\n BatchedBridge.registerLazyCallableModule('SamplingProfiler', () =>\n require('../Performance/SamplingProfiler'),\n );\n BatchedBridge.registerLazyCallableModule('RCTLog', () =>\n require('../Utilities/RCTLog'),\n );\n BatchedBridge.registerLazyCallableModule('RCTDeviceEventEmitter', () =>\n require('../EventEmitter/RCTDeviceEventEmitter'),\n );\n BatchedBridge.registerLazyCallableModule('RCTNativeAppEventEmitter', () =>\n require('../EventEmitter/RCTNativeAppEventEmitter'),\n );\n BatchedBridge.registerLazyCallableModule('GlobalPerformanceLogger', () =>\n require('../Utilities/GlobalPerformanceLogger'),\n );\n BatchedBridge.registerLazyCallableModule('JSDevSupportModule', () =>\n require('../Utilities/JSDevSupportModule'),\n );\n\n if (__DEV__ && !global.__RCTProfileIsProfiling) {\n BatchedBridge.registerLazyCallableModule('HMRClient', () =>\n require('../Utilities/HMRClient'),\n );\n } else {\n BatchedBridge.registerLazyCallableModule('HMRClient', () =>\n require('../Utilities/HMRClientProdShim'),\n );\n }\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport NativeHeapCapture from './NativeHeapCapture';\n\nconst HeapCapture = {\n captureHeap: function(path: string) {\n let error = null;\n try {\n global.nativeCaptureHeap(path);\n console.log('HeapCapture.captureHeap succeeded: ' + path);\n } catch (e) {\n console.log('HeapCapture.captureHeap error: ' + e.toString());\n error = e.toString();\n }\n if (NativeHeapCapture) {\n NativeHeapCapture.captureComplete(path, error);\n }\n },\n};\n\nmodule.exports = HeapCapture;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n // Common interface\n +captureHeap: (path: string) => void;\n\n // Android only\n +captureComplete: (path: string, error: ?string) => void;\n}\n\nexport default (TurboModuleRegistry.get('HeapCapture'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst SamplingProfiler = {\n poke: function(token: number): void {\n let error = null;\n let result = null;\n try {\n result = global.pokeSamplingProfiler();\n if (result === null) {\n console.log('The JSC Sampling Profiler has started');\n } else {\n console.log('The JSC Sampling Profiler has stopped');\n }\n } catch (e) {\n console.log(\n 'Error occurred when restarting Sampling Profiler: ' + e.toString(),\n );\n error = e.toString();\n }\n\n const NativeJSCSamplingProfiler = require('./NativeJSCSamplingProfiler')\n .default;\n if (NativeJSCSamplingProfiler) {\n NativeJSCSamplingProfiler.operationComplete(token, result, error);\n }\n },\n};\n\nmodule.exports = SamplingProfiler;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +operationComplete: (token: number, result: ?string, error: ?string) => void;\n}\n\nexport default (TurboModuleRegistry.get('JSCSamplingProfiler'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\nconst levelsMap = {\n log: 'log',\n info: 'info',\n warn: 'warn',\n error: 'error',\n fatal: 'error',\n};\n\nlet warningHandler: ?(Array) => void = null;\n\nconst RCTLog = {\n // level one of log, info, warn, error, mustfix\n logIfNoNativeHook(level: string, ...args: Array): void {\n // We already printed in the native console, so only log here if using a js debugger\n if (typeof global.nativeLoggingHook === 'undefined') {\n RCTLog.logToConsole(level, ...args);\n } else {\n // Report native warnings to YellowBox\n if (warningHandler && level === 'warn') {\n warningHandler(...args);\n }\n }\n },\n\n // Log to console regardless of nativeLoggingHook\n logToConsole(level: string, ...args: Array): void {\n const logFn = levelsMap[level];\n invariant(\n logFn,\n 'Level \"' + level + '\" not one of ' + Object.keys(levelsMap).toString(),\n );\n\n console[logFn](...args);\n },\n\n setWarningHandler(handler: typeof warningHandler): void {\n warningHandler = handler;\n },\n};\n\nmodule.exports = RCTLog;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst RCTDeviceEventEmitter = require('./RCTDeviceEventEmitter');\n\n/**\n * Deprecated - subclass NativeEventEmitter to create granular event modules instead of\n * adding all event listeners directly to RCTNativeAppEventEmitter.\n */\nconst RCTNativeAppEventEmitter = RCTDeviceEventEmitter;\nmodule.exports = RCTNativeAppEventEmitter;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\nconst createPerformanceLogger = require('./createPerformanceLogger');\n\nimport type {IPerformanceLogger} from './createPerformanceLogger';\n\n/**\n * This is a global shared instance of IPerformanceLogger that is created with\n * createPerformanceLogger().\n * This logger should be used only for global performance metrics like the ones\n * that are logged during loading bundle. If you want to log something from your\n * React component you should use PerformanceLoggerContext instead.\n */\nconst GlobalPerformanceLogger: IPerformanceLogger = createPerformanceLogger();\n\nmodule.exports = GlobalPerformanceLogger;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Systrace = require('../Performance/Systrace');\n\nconst infoLog = require('./infoLog');\nconst performanceNow =\n global.nativeQPLTimestamp ||\n global.nativePerformanceNow ||\n require('fbjs/lib/performanceNow');\n\ntype Timespan = {\n description?: string,\n totalTime?: number,\n startTime?: number,\n endTime?: number,\n ...\n};\n\nexport type IPerformanceLogger = {\n addTimespan(string, number, string | void): void,\n startTimespan(string, string | void): void,\n stopTimespan(string): void,\n clear(): void,\n clearCompleted(): void,\n clearExceptTimespans(Array): void,\n currentTimestamp(): number,\n getTimespans(): {[key: string]: Timespan, ...},\n hasTimespan(string): boolean,\n logTimespans(): void,\n addTimespans(Array, Array): void,\n setExtra(string, any): void,\n getExtras(): {[key: string]: any, ...},\n removeExtra(string): ?any,\n logExtras(): void,\n markPoint(string, number | void): void,\n getPoints(): {[key: string]: number, ...},\n logPoints(): void,\n logEverything(): void,\n ...\n};\n\nconst _cookies: {[key: string]: number, ...} = {};\n\nconst PRINT_TO_CONSOLE: false = false; // Type as false to prevent accidentally committing `true`;\n\n/**\n * This function creates performance loggers that can be used to collect and log\n * various performance data such as timespans, points and extras.\n * The loggers need to have minimal overhead since they're used in production.\n */\nfunction createPerformanceLogger(): IPerformanceLogger {\n const result: IPerformanceLogger & {\n _timespans: {[key: string]: Timespan, ...},\n _extras: {[key: string]: any, ...},\n _points: {[key: string]: number, ...},\n ...\n } = {\n _timespans: {},\n _extras: {},\n _points: {},\n\n addTimespan(key: string, lengthInMs: number, description?: string) {\n if (this._timespans[key]) {\n if (PRINT_TO_CONSOLE && __DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to add a timespan that already exists ',\n key,\n );\n }\n return;\n }\n\n this._timespans[key] = {\n description: description,\n totalTime: lengthInMs,\n };\n },\n\n startTimespan(key: string, description?: string) {\n if (this._timespans[key]) {\n if (PRINT_TO_CONSOLE && __DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to start a timespan that already exists ',\n key,\n );\n }\n return;\n }\n\n this._timespans[key] = {\n description: description,\n startTime: performanceNow(),\n };\n _cookies[key] = Systrace.beginAsyncEvent(key);\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'start: ' + key);\n }\n },\n\n stopTimespan(key: string) {\n const timespan = this._timespans[key];\n if (!timespan || !timespan.startTime) {\n if (PRINT_TO_CONSOLE && __DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to end a timespan that has not started ',\n key,\n );\n }\n return;\n }\n if (timespan.endTime) {\n if (PRINT_TO_CONSOLE && __DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to end a timespan that has already ended ',\n key,\n );\n }\n return;\n }\n\n timespan.endTime = performanceNow();\n timespan.totalTime = timespan.endTime - (timespan.startTime || 0);\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'end: ' + key);\n }\n\n Systrace.endAsyncEvent(key, _cookies[key]);\n delete _cookies[key];\n },\n\n clear() {\n this._timespans = {};\n this._extras = {};\n this._points = {};\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'clear');\n }\n },\n\n clearCompleted() {\n for (const key in this._timespans) {\n if (this._timespans[key].totalTime) {\n delete this._timespans[key];\n }\n }\n this._extras = {};\n this._points = {};\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'clearCompleted');\n }\n },\n\n clearExceptTimespans(keys: Array) {\n this._timespans = Object.keys(this._timespans).reduce(function(\n previous,\n key,\n ) {\n if (keys.indexOf(key) !== -1) {\n previous[key] = this._timespans[key];\n }\n return previous;\n },\n {});\n this._extras = {};\n this._points = {};\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'clearExceptTimespans', keys);\n }\n },\n\n currentTimestamp() {\n return performanceNow();\n },\n\n getTimespans() {\n return this._timespans;\n },\n\n hasTimespan(key: string) {\n return !!this._timespans[key];\n },\n\n logTimespans() {\n if (PRINT_TO_CONSOLE) {\n for (const key in this._timespans) {\n if (this._timespans[key].totalTime) {\n infoLog(key + ': ' + this._timespans[key].totalTime + 'ms');\n }\n }\n }\n },\n\n addTimespans(newTimespans: Array, labels: Array) {\n for (let ii = 0, l = newTimespans.length; ii < l; ii += 2) {\n const label = labels[ii / 2];\n this.addTimespan(label, newTimespans[ii + 1] - newTimespans[ii], label);\n }\n },\n\n setExtra(key: string, value: any) {\n if (this._extras[key]) {\n if (PRINT_TO_CONSOLE && __DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to set an extra that already exists ',\n {key, currentValue: this._extras[key], attemptedValue: value},\n );\n }\n return;\n }\n this._extras[key] = value;\n },\n\n getExtras() {\n return this._extras;\n },\n\n removeExtra(key: string): ?any {\n const value = this._extras[key];\n delete this._extras[key];\n return value;\n },\n\n logExtras() {\n if (PRINT_TO_CONSOLE) {\n infoLog(this._extras);\n }\n },\n\n markPoint(key: string, timestamp?: number) {\n if (this._points[key]) {\n if (PRINT_TO_CONSOLE && __DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to mark a point that has been already logged ',\n key,\n );\n }\n return;\n }\n this._points[key] = timestamp ?? performanceNow();\n },\n\n getPoints() {\n return this._points;\n },\n\n logPoints() {\n if (PRINT_TO_CONSOLE) {\n for (const key in this._points) {\n infoLog(key + ': ' + this._points[key] + 'ms');\n }\n }\n },\n\n logEverything() {\n this.logTimespans();\n this.logExtras();\n this.logPoints();\n },\n };\n return result;\n}\n\nmodule.exports = createPerformanceLogger;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Intentional info-level logging for clear separation from ad-hoc console debug logging.\n */\nfunction infoLog(...args) {\n return console.log(...args);\n}\n\nmodule.exports = infoLog;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport NativeJSDevSupport from './NativeJSDevSupport';\nconst ReactNative = require('../Renderer/shims/ReactNative');\n\nconst JSDevSupportModule = {\n getJSHierarchy: function(tag: number) {\n if (NativeJSDevSupport) {\n const constants = NativeJSDevSupport.getConstants();\n try {\n const {\n computeComponentStackForErrorReporting,\n } = ReactNative.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n const componentStack = computeComponentStackForErrorReporting(tag);\n if (!componentStack) {\n NativeJSDevSupport.onFailure(\n constants.ERROR_CODE_VIEW_NOT_FOUND,\n \"Component stack doesn't exist for tag \" + tag,\n );\n } else {\n NativeJSDevSupport.onSuccess(componentStack);\n }\n } catch (e) {\n NativeJSDevSupport.onFailure(constants.ERROR_CODE_EXCEPTION, e.message);\n }\n }\n },\n};\n\nmodule.exports = JSDevSupportModule;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n ERROR_CODE_EXCEPTION: number,\n ERROR_CODE_VIEW_NOT_FOUND: number,\n |};\n +onSuccess: (data: Object) => void;\n +onFailure: (errorCode: number, error: string) => void;\n}\n\nexport default (TurboModuleRegistry.get('JSDevSupport'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {HMRClientNativeInterface} from './HMRClient';\n\n// This shim ensures DEV binary builds don't crash in JS\n// when they're combined with a PROD JavaScript build.\nconst HMRClientProdShim: HMRClientNativeInterface = {\n setup() {},\n enable() {\n console.error(\n 'Fast Refresh is disabled in JavaScript bundles built in production mode. ' +\n 'Did you forget to run Metro?',\n );\n },\n disable() {},\n registerBundle() {},\n log() {},\n};\n\nmodule.exports = HMRClientProdShim;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nexport type FetchSegmentFunction = typeof __fetchSegment;\nexport type GetSegmentFunction = typeof __getSegment;\n\n/**\n * Set up SegmentFetcher.\n * You can use this module directly, or just require InitializeCore.\n */\n\nfunction __fetchSegment(\n segmentId: number,\n options: {|\n +otaBuildNumber: ?string,\n +requestedModuleName?: ?string,\n |},\n callback: (?Error) => void,\n) {\n const SegmentFetcher = require('./SegmentFetcher/NativeSegmentFetcher')\n .default;\n SegmentFetcher.fetchSegment(\n segmentId,\n options,\n (\n errorObject: ?{\n message: string,\n code: string,\n ...\n },\n ) => {\n if (errorObject) {\n const error = new Error(errorObject.message);\n (error: any).code = errorObject.code; // flowlint-line unclear-type: off\n callback(error);\n }\n\n callback(null);\n },\n );\n}\n\nglobal.__fetchSegment = __fetchSegment;\n\nfunction __getSegment(\n segmentId: number,\n options: {|\n +otaBuildNumber: ?string,\n +requestedModuleName?: ?string,\n |},\n callback: (?Error, ?string) => void,\n) {\n const SegmentFetcher = require('./SegmentFetcher/NativeSegmentFetcher')\n .default;\n\n if (!SegmentFetcher.getSegment) {\n throw new Error('SegmentFetcher.getSegment must be defined');\n }\n\n SegmentFetcher.getSegment(\n segmentId,\n options,\n (\n errorObject: ?{\n message: string,\n code: string,\n ...\n },\n path: ?string,\n ) => {\n if (errorObject) {\n const error = new Error(errorObject.message);\n (error: any).code = errorObject.code; // flowlint-line unclear-type: off\n callback(error);\n }\n\n callback(null, path);\n },\n );\n}\n\nglobal.__getSegment = __getSegment;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +fetchSegment: (\n segmentId: number,\n options: Object, // flowlint-line unclear-type: off\n callback: (error: ?Object) => void, // flowlint-line unclear-type: off\n ) => void;\n +getSegment?: (\n segmentId: number,\n options: Object, // flowlint-line unclear-type: off\n callback: (error: ?Object, path: ?string) => void, // flowlint-line unclear-type: off\n ) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('SegmentFetcher'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport typeof BatchedBridge from '../BatchedBridge/BatchedBridge.js';\nimport typeof ExceptionsManager from '../Core/ExceptionsManager';\nimport typeof Platform from '../Utilities/Platform';\nimport typeof RCTEventEmitter from '../EventEmitter/RCTEventEmitter';\nimport typeof ReactNativeViewConfigRegistry from '../Renderer/shims/ReactNativeViewConfigRegistry';\nimport typeof TextInputState from '../Components/TextInput/TextInputState';\nimport typeof UIManager from '../ReactNative/UIManager';\nimport typeof deepDiffer from '../Utilities/differ/deepDiffer';\nimport typeof deepFreezeAndThrowOnMutationInDev from '../Utilities/deepFreezeAndThrowOnMutationInDev';\nimport typeof flattenStyle from '../StyleSheet/flattenStyle';\nimport typeof ReactFiberErrorDialog from '../Core/ReactFiberErrorDialog';\n\n// flowlint unsafe-getters-setters:off\nmodule.exports = {\n get BatchedBridge(): BatchedBridge {\n return require('../BatchedBridge/BatchedBridge.js');\n },\n get ExceptionsManager(): ExceptionsManager {\n return require('../Core/ExceptionsManager');\n },\n get Platform(): Platform {\n return require('../Utilities/Platform');\n },\n get RCTEventEmitter(): RCTEventEmitter {\n return require('../EventEmitter/RCTEventEmitter');\n },\n get ReactNativeViewConfigRegistry(): ReactNativeViewConfigRegistry {\n return require('../Renderer/shims/ReactNativeViewConfigRegistry');\n },\n get TextInputState(): TextInputState {\n return require('../Components/TextInput/TextInputState');\n },\n get UIManager(): UIManager {\n return require('../ReactNative/UIManager');\n },\n get deepDiffer(): deepDiffer {\n return require('../Utilities/differ/deepDiffer');\n },\n get deepFreezeAndThrowOnMutationInDev(): deepFreezeAndThrowOnMutationInDev<\n // $FlowFixMe - can't properly parameterize the getter's type\n *,\n > {\n return require('../Utilities/deepFreezeAndThrowOnMutationInDev');\n },\n get flattenStyle(): flattenStyle {\n return require('../StyleSheet/flattenStyle');\n },\n get ReactFiberErrorDialog(): ReactFiberErrorDialog {\n return require('../Core/ReactFiberErrorDialog');\n },\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('../BatchedBridge/BatchedBridge');\n\nconst RCTEventEmitter = {\n register(eventEmitter: any) {\n BatchedBridge.registerCallableModule('RCTEventEmitter', eventEmitter);\n },\n};\n\nmodule.exports = RCTEventEmitter;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n/* eslint-disable react-internal/warning-and-invariant-args */\n\n'use strict';\n\nimport type {\n ReactNativeBaseComponentViewConfig,\n ViewConfigGetter,\n} from './ReactNativeTypes';\n\nconst invariant = require('invariant');\n\n// Event configs\nconst customBubblingEventTypes: {\n [eventName: string]: $ReadOnly<{|\n phasedRegistrationNames: $ReadOnly<{|\n captured: string,\n bubbled: string,\n |}>,\n |}>,\n ...,\n} = {};\nconst customDirectEventTypes: {\n [eventName: string]: $ReadOnly<{|\n registrationName: string,\n |}>,\n ...,\n} = {};\n\nexports.customBubblingEventTypes = customBubblingEventTypes;\nexports.customDirectEventTypes = customDirectEventTypes;\n\nconst viewConfigCallbacks = new Map();\nconst viewConfigs = new Map();\n\nfunction processEventTypes(\n viewConfig: ReactNativeBaseComponentViewConfig<>,\n): void {\n const {bubblingEventTypes, directEventTypes} = viewConfig;\n\n if (__DEV__) {\n if (bubblingEventTypes != null && directEventTypes != null) {\n for (const topLevelType in directEventTypes) {\n invariant(\n bubblingEventTypes[topLevelType] == null,\n 'Event cannot be both direct and bubbling: %s',\n topLevelType,\n );\n }\n }\n }\n\n if (bubblingEventTypes != null) {\n for (const topLevelType in bubblingEventTypes) {\n if (customBubblingEventTypes[topLevelType] == null) {\n customBubblingEventTypes[topLevelType] =\n bubblingEventTypes[topLevelType];\n }\n }\n }\n\n if (directEventTypes != null) {\n for (const topLevelType in directEventTypes) {\n if (customDirectEventTypes[topLevelType] == null) {\n customDirectEventTypes[topLevelType] = directEventTypes[topLevelType];\n }\n }\n }\n}\n\n/**\n * Registers a native view/component by name.\n * A callback is provided to load the view config from UIManager.\n * The callback is deferred until the view is actually rendered.\n */\nexports.register = function(name: string, callback: ViewConfigGetter): string {\n invariant(\n !viewConfigCallbacks.has(name),\n 'Tried to register two views with the same name %s',\n name,\n );\n invariant(\n typeof callback === 'function',\n 'View config getter callback for component `%s` must be a function (received `%s`)',\n name,\n callback === null ? 'null' : typeof callback,\n );\n viewConfigCallbacks.set(name, callback);\n return name;\n};\n\n/**\n * Retrieves a config for the specified view.\n * If this is the first time the view has been used,\n * This configuration will be lazy-loaded from UIManager.\n */\nexports.get = function(name: string): ReactNativeBaseComponentViewConfig<> {\n let viewConfig;\n if (!viewConfigs.has(name)) {\n const callback = viewConfigCallbacks.get(name);\n if (typeof callback !== 'function') {\n invariant(\n false,\n 'View config getter callback for component `%s` must be a function (received `%s`).%s',\n name,\n callback === null ? 'null' : typeof callback,\n typeof name[0] === 'string' && /[a-z]/.test(name[0])\n ? ' Make sure to start component names with a capital letter.'\n : '',\n );\n }\n viewConfig = callback();\n processEventTypes(viewConfig);\n viewConfigs.set(name, viewConfig);\n\n // Clear the callback after the config is set so that\n // we don't mask any errors during registration.\n viewConfigCallbacks.set(name, null);\n } else {\n viewConfig = viewConfigs.get(name);\n }\n invariant(viewConfig, 'View config not found for name %s', name);\n return viewConfig;\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n// This class is responsible for coordinating the \"focused\" state for\n// TextInputs. All calls relating to the keyboard should be funneled\n// through here.\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst UIManager = require('../../ReactNative/UIManager');\n\nlet currentlyFocusedID: ?number = null;\nconst inputs = new Set();\n\n/**\n * Returns the ID of the currently focused text field, if one exists\n * If no text field is focused it returns null\n */\nfunction currentlyFocusedField(): ?number {\n return currentlyFocusedID;\n}\n\nfunction focusField(textFieldID: ?number): void {\n if (currentlyFocusedID !== textFieldID && textFieldID != null) {\n currentlyFocusedID = textFieldID;\n }\n}\n\nfunction blurField(textFieldID: ?number) {\n if (currentlyFocusedID === textFieldID && textFieldID != null) {\n currentlyFocusedID = null;\n }\n}\n\n/**\n * @param {number} TextInputID id of the text field to focus\n * Focuses the specified text field\n * noop if the text field was already focused\n */\nfunction focusTextInput(textFieldID: ?number) {\n if (currentlyFocusedID !== textFieldID && textFieldID != null) {\n focusField(textFieldID);\n if (Platform.OS === 'ios') {\n UIManager.focus(textFieldID);\n } else if (Platform.OS === 'android') {\n UIManager.dispatchViewManagerCommand(\n textFieldID,\n UIManager.getViewManagerConfig('AndroidTextInput').Commands\n .focusTextInput,\n null,\n );\n }\n }\n}\n\n/**\n * @param {number} textFieldID id of the text field to unfocus\n * Unfocuses the specified text field\n * noop if it wasn't focused\n */\nfunction blurTextInput(textFieldID: ?number) {\n if (currentlyFocusedID === textFieldID && textFieldID != null) {\n blurField(textFieldID);\n if (Platform.OS === 'ios') {\n UIManager.blur(textFieldID);\n } else if (Platform.OS === 'android') {\n UIManager.dispatchViewManagerCommand(\n textFieldID,\n UIManager.getViewManagerConfig('AndroidTextInput').Commands\n .blurTextInput,\n null,\n );\n }\n }\n}\n\nfunction registerInput(textFieldID: number) {\n inputs.add(textFieldID);\n}\n\nfunction unregisterInput(textFieldID: number) {\n inputs.delete(textFieldID);\n}\n\nfunction isTextInput(textFieldID: number): boolean {\n return inputs.has(textFieldID);\n}\n\nmodule.exports = {\n currentlyFocusedField,\n focusField,\n blurField,\n focusTextInput,\n blurTextInput,\n registerInput,\n unregisterInput,\n isTextInput,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nlet logListeners;\n\ntype LogListeners = {|\n +onDifferentFunctionsIgnored: (nameOne: ?string, nameTwo: ?string) => void,\n|};\n\ntype Options = {|+unsafelyIgnoreFunctions?: boolean|};\n\nfunction unstable_setLogListeners(listeners: ?LogListeners) {\n logListeners = listeners;\n}\n\n/*\n * @returns {bool} true if different, false if equal\n */\nconst deepDiffer = function(\n one: any,\n two: any,\n maxDepthOrOptions: Options | number = -1,\n maybeOptions?: Options,\n): boolean {\n const options =\n typeof maxDepthOrOptions === 'number' ? maybeOptions : maxDepthOrOptions;\n const maxDepth =\n typeof maxDepthOrOptions === 'number' ? maxDepthOrOptions : -1;\n if (maxDepth === 0) {\n return true;\n }\n if (one === two) {\n // Short circuit on identical object references instead of traversing them.\n return false;\n }\n if (typeof one === 'function' && typeof two === 'function') {\n // We consider all functions equal unless explicitly configured otherwise\n let unsafelyIgnoreFunctions = options?.unsafelyIgnoreFunctions;\n if (unsafelyIgnoreFunctions == null) {\n if (\n logListeners &&\n logListeners.onDifferentFunctionsIgnored &&\n (!options || !('unsafelyIgnoreFunctions' in options))\n ) {\n logListeners.onDifferentFunctionsIgnored(one.name, two.name);\n }\n unsafelyIgnoreFunctions = true;\n }\n return !unsafelyIgnoreFunctions;\n }\n if (typeof one !== 'object' || one === null) {\n // Primitives can be directly compared\n return one !== two;\n }\n if (typeof two !== 'object' || two === null) {\n // We know they are different because the previous case would have triggered\n // otherwise.\n return true;\n }\n if (one.constructor !== two.constructor) {\n return true;\n }\n if (Array.isArray(one)) {\n // We know two is also an array because the constructors are equal\n const len = one.length;\n if (two.length !== len) {\n return true;\n }\n for (let ii = 0; ii < len; ii++) {\n if (deepDiffer(one[ii], two[ii], maxDepth - 1, options)) {\n return true;\n }\n }\n } else {\n for (const key in one) {\n if (deepDiffer(one[key], two[key], maxDepth - 1, options)) {\n return true;\n }\n }\n for (const twoKey in two) {\n // The only case we haven't checked yet is keys that are in two but aren't\n // in one, which means they are different.\n if (one[twoKey] === undefined && two[twoKey] !== undefined) {\n return true;\n }\n }\n }\n return false;\n};\n\nmodule.exports = deepDiffer;\nmodule.exports.unstable_setLogListeners = unstable_setLogListeners;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport type CapturedError = {\n +componentName: ?string,\n +componentStack: string,\n +error: mixed,\n +errorBoundary: ?{...},\n +errorBoundaryFound: boolean,\n +errorBoundaryName: string | null,\n +willRetry: boolean,\n ...\n};\n\nimport type {ExtendedError} from './Devtools/parseErrorStack';\n\nimport {handleException, SyntheticError} from './ExceptionsManager';\n\n/**\n * Intercept lifecycle errors and ensure they are shown with the correct stack\n * trace within the native redbox component.\n */\nfunction showErrorDialog(capturedError: CapturedError): boolean {\n const {componentStack, error} = capturedError;\n\n let errorToHandle;\n\n // Typically Errors are thrown but eg strings or null can be thrown as well.\n if (error instanceof Error) {\n errorToHandle = (error: ExtendedError);\n } else if (typeof error === 'string') {\n errorToHandle = (new SyntheticError(error): ExtendedError);\n } else {\n errorToHandle = (new SyntheticError('Unspecified error'): ExtendedError);\n }\n try {\n errorToHandle.componentStack = componentStack;\n errorToHandle.isComponentError = true;\n } catch (e) {}\n handleException(errorToHandle, false);\n\n // Return false here to prevent ReactFiberErrorLogger default behavior of\n // logging error details to console.error. Calls to console.error are\n // automatically routed to the native redbox controller, which we've already\n // done above by calling ExceptionsManager.\n return false;\n}\n\nmodule.exports = {showErrorDialog};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/** @license React v0.17.0\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});var f,g,h,k,l;\nif(\"undefined\"===typeof window||\"function\"!==typeof MessageChannel){var p=null,q=null,t=function(){if(null!==p)try{var a=exports.unstable_now();p(!0,a);p=null}catch(b){throw setTimeout(t,0),b;}},u=Date.now();exports.unstable_now=function(){return Date.now()-u};f=function(a){null!==p?setTimeout(f,0,a):(p=a,setTimeout(t,0))};g=function(a,b){q=setTimeout(a,b)};h=function(){clearTimeout(q)};k=function(){return!1};l=exports.unstable_forceFrameRate=function(){}}else{var w=window.performance,x=window.Date,\ny=window.setTimeout,z=window.clearTimeout,A=window.requestAnimationFrame,B=window.cancelAnimationFrame;\"undefined\"!==typeof console&&(\"function\"!==typeof A&&console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"),\"function\"!==typeof B&&console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"));if(\"object\"===typeof w&&\n\"function\"===typeof w.now)exports.unstable_now=function(){return w.now()};else{var C=x.now();exports.unstable_now=function(){return x.now()-C}}var D=!1,E=null,F=-1,G=5,H=0;k=function(){return exports.unstable_now()>=H};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125L(n,c))void 0!==r&&0>L(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>L(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function L(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var O=[],P=[],Q=1,R=null,S=3,T=!1,U=!1,V=!1;\nfunction W(a){for(var b=M(P);null!==b;){if(null===b.callback)N(P);else if(b.startTime<=a)N(P),b.sortIndex=b.expirationTime,K(O,b);else break;b=M(P)}}function X(a){V=!1;W(a);if(!U)if(null!==M(O))U=!0,f(Y);else{var b=M(P);null!==b&&g(X,b.startTime-a)}}\nfunction Y(a,b){U=!1;V&&(V=!1,h());T=!0;var c=S;try{W(b);for(R=M(O);null!==R&&(!(R.expirationTime>b)||a&&!k());){var d=R.callback;if(null!==d){R.callback=null;S=R.priorityLevel;var e=d(R.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?R.callback=e:R===M(O)&&N(O);W(b)}else N(O);R=M(O)}if(null!==R)var m=!0;else{var n=M(P);null!==n&&g(X,n.startTime-b);m=!1}return m}finally{R=null,S=c,T=!1}}\nfunction Z(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var aa=l;exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=S;S=a;try{return b()}finally{S=c}};\nexports.unstable_next=function(a){switch(S){case 1:case 2:case 3:var b=3;break;default:b=S}var c=S;S=b;try{return a()}finally{S=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if(\"object\"===typeof c&&null!==c){var e=c.delay;e=\"number\"===typeof e&&0d?(a.sortIndex=e,K(P,a),null===M(O)&&a===M(P)&&(V?h():V=!0,g(X,e-d))):(a.sortIndex=c,K(O,a),U||T||(U=!0,f(Y)));return a};exports.unstable_cancelCallback=function(a){a.callback=null};\nexports.unstable_wrapCallback=function(a){var b=S;return function(){var c=S;S=b;try{return a.apply(this,arguments)}finally{S=c}}};exports.unstable_getCurrentPriorityLevel=function(){return S};exports.unstable_shouldYield=function(){var a=exports.unstable_now();W(a);var b=M(O);return b!==R&&null!==R&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime,\n |}>,\n ...,\n }>,\n directEventTypes?: $ReadOnly<{\n [eventName: string]: $ReadOnly<{|\n registrationName: string,\n |}>,\n ...,\n }>,\n validAttributes?: {\n [propName: string]:\n | true\n | $ReadOnly<{|\n diff?: (arg1: any, arg2: any) => boolean,\n process?: (arg1: any) => any,\n |}>,\n ...,\n },\n ...\n};\n\nfunction registerGeneratedViewConfig(\n componentName: string,\n viewConfig: GeneratedViewConfig,\n) {\n const mergedViewConfig = {\n uiViewClassName: componentName,\n Commands: {},\n bubblingEventTypes: {\n ...ReactNativeViewViewConfig.bubblingEventTypes,\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.111 was deployed. To see the error, delete\n * this comment and run Flow. */\n ...(viewConfig.bubblingEventTypes || {}),\n },\n directEventTypes: {\n ...ReactNativeViewViewConfig.directEventTypes,\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.111 was deployed. To see the error, delete\n * this comment and run Flow. */\n ...(viewConfig.directEventTypes || {}),\n },\n validAttributes: {\n ...ReactNativeViewViewConfig.validAttributes,\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.111 was deployed. To see the error, delete\n * this comment and run Flow. */\n ...(viewConfig.validAttributes || {}),\n },\n };\n\n ReactNativeViewConfigRegistry.register(componentName, () => {\n verifyComponentAttributeEquivalence(componentName, mergedViewConfig);\n\n return mergedViewConfig;\n });\n}\n\nmodule.exports = registerGeneratedViewConfig;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst getNativeComponentAttributes = require('../ReactNative/getNativeComponentAttributes');\n\nimport ReactNativeViewViewConfig from '../Components/View/ReactNativeViewViewConfig';\nimport type {ReactNativeBaseComponentViewConfig} from '../Renderer/shims/ReactNativeTypes';\n\nconst IGNORED_KEYS = ['transform', 'hitSlop'];\n/**\n * The purpose of this function is to validate that the view config that\n * native exposes for a given view manager is the same as the view config\n * that is specified for that view manager in JS.\n *\n * In order to improve perf, we want to avoid calling into native to get\n * the view config when each view manager is used. To do this, we are moving\n * the configs to JS. In the future we will use these JS based view configs\n * to codegen the view manager on native to ensure they stay in sync without\n * this runtime check.\n *\n * If this function fails, that likely means a change was made to the native\n * view manager without updating the JS config as well. Ideally you can make\n * that direct change to the JS config. If you don't know what the differences\n * are, the best approach I've found is to create a view that prints\n * the return value of getNativeComponentAttributes, and then copying that\n * text and pasting it back into JS:\n * {JSON.stringify(getNativeComponentAttributes('RCTView'))}\n *\n * This is meant to be a stopgap until the time comes when we only have a\n * single source of truth. I wonder if this message will still be here two\n * years from now...\n */\nfunction verifyComponentAttributeEquivalence(\n componentName: string,\n config: ReactNativeBaseComponentViewConfig<>,\n) {\n if (!global.RN$Bridgeless) {\n const nativeAttributes = getNativeComponentAttributes(componentName);\n\n ['validAttributes', 'bubblingEventTypes', 'directEventTypes'].forEach(\n prop => {\n const diffKeys = Object.keys(\n lefthandObjectDiff(nativeAttributes[prop], config[prop]),\n );\n\n if (diffKeys.length) {\n console.error(\n `${componentName} generated view config for ${prop} does not match native, missing: ${diffKeys.join(\n ' ',\n )}`,\n );\n }\n },\n );\n }\n}\n\nexport function lefthandObjectDiff(leftObj: Object, rightObj: Object): Object {\n const differentKeys = {};\n\n function compare(leftItem, rightItem, key) {\n if (typeof leftItem !== typeof rightItem && leftItem != null) {\n differentKeys[key] = rightItem;\n return;\n }\n\n if (typeof leftItem === 'object') {\n const objDiff = lefthandObjectDiff(leftItem, rightItem);\n if (Object.keys(objDiff).length > 1) {\n differentKeys[key] = objDiff;\n }\n return;\n }\n\n if (leftItem !== rightItem) {\n differentKeys[key] = rightItem;\n return;\n }\n }\n\n for (const key in leftObj) {\n if (IGNORED_KEYS.includes(key)) {\n continue;\n }\n\n if (!rightObj) {\n differentKeys[key] = {};\n } else if (leftObj.hasOwnProperty(key)) {\n compare(leftObj[key], rightObj[key], key);\n }\n }\n\n return differentKeys;\n}\n\nexport function getConfigWithoutViewProps(\n viewConfig: ReactNativeBaseComponentViewConfig<>,\n propName: string,\n): {...} {\n if (!viewConfig[propName]) {\n return {};\n }\n\n return Object.keys(viewConfig[propName])\n .filter(prop => !ReactNativeViewViewConfig[propName][prop])\n .reduce((obj, prop) => {\n obj[prop] = viewConfig[propName][prop];\n return obj;\n }, {});\n}\n\nexport function stringifyViewConfig(viewConfig: any): string {\n return JSON.stringify(\n viewConfig,\n (key, val) => {\n if (typeof val === 'function') {\n return `ƒ ${val.name}`;\n }\n return val;\n },\n 2,\n );\n}\n\nexport default verifyComponentAttributeEquivalence;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\nimport ReactNativeViewViewConfigAndroid from './ReactNativeViewViewConfigAndroid';\n\nconst ReactNativeViewConfig = {\n uiViewClassName: 'RCTView',\n baseModuleName: null,\n Manager: 'ViewManager',\n Commands: ({}: {...}),\n Constants: ({}: {...}),\n bubblingEventTypes: {\n ...ReactNativeViewViewConfigAndroid.bubblingEventTypes,\n topBlur: {\n phasedRegistrationNames: {\n bubbled: 'onBlur',\n captured: 'onBlurCapture',\n },\n },\n topChange: {\n phasedRegistrationNames: {\n bubbled: 'onChange',\n captured: 'onChangeCapture',\n },\n },\n topEndEditing: {\n phasedRegistrationNames: {\n bubbled: 'onEndEditing',\n captured: 'onEndEditingCapture',\n },\n },\n topFocus: {\n phasedRegistrationNames: {\n bubbled: 'onFocus',\n captured: 'onFocusCapture',\n },\n },\n topKeyPress: {\n phasedRegistrationNames: {\n bubbled: 'onKeyPress',\n captured: 'onKeyPressCapture',\n },\n },\n topPress: {\n phasedRegistrationNames: {\n bubbled: 'onPress',\n captured: 'onPressCapture',\n },\n },\n topSubmitEditing: {\n phasedRegistrationNames: {\n bubbled: 'onSubmitEditing',\n captured: 'onSubmitEditingCapture',\n },\n },\n topTouchCancel: {\n phasedRegistrationNames: {\n bubbled: 'onTouchCancel',\n captured: 'onTouchCancelCapture',\n },\n },\n topTouchEnd: {\n phasedRegistrationNames: {\n bubbled: 'onTouchEnd',\n captured: 'onTouchEndCapture',\n },\n },\n topTouchMove: {\n phasedRegistrationNames: {\n bubbled: 'onTouchMove',\n captured: 'onTouchMoveCapture',\n },\n },\n topTouchStart: {\n phasedRegistrationNames: {\n bubbled: 'onTouchStart',\n captured: 'onTouchStartCapture',\n },\n },\n },\n directEventTypes: {\n ...ReactNativeViewViewConfigAndroid.directEventTypes,\n topAccessibilityAction: {\n registrationName: 'onAccessibilityAction',\n },\n topAccessibilityEscape: {\n registrationName: 'onAccessibilityEscape',\n },\n topAccessibilityTap: {\n registrationName: 'onAccessibilityTap',\n },\n topLayout: {\n registrationName: 'onLayout',\n },\n topMagicTap: {\n registrationName: 'onMagicTap',\n },\n // Events for react-native-gesture-handler (T45765076)\n // Remove once this library can handle JS View Configs\n onGestureHandlerEvent: {\n registrationName: 'onGestureHandlerEvent',\n },\n onGestureHandlerStateChange: {\n registrationName: 'onGestureHandlerStateChange',\n },\n },\n validAttributes: {\n ...ReactNativeViewViewConfigAndroid.validAttributes,\n accessibilityActions: true,\n accessibilityElementsHidden: true,\n accessibilityHint: true,\n accessibilityIgnoresInvertColors: true,\n accessibilityLabel: true,\n accessibilityLiveRegion: true,\n accessibilityRole: true,\n accessibilityStates: true, // TODO: Can be removed after next release\n accessibilityState: true,\n accessibilityValue: true,\n accessibilityViewIsModal: true,\n accessible: true,\n alignContent: true,\n alignItems: true,\n alignSelf: true,\n aspectRatio: true,\n backfaceVisibility: true,\n backgroundColor: {process: require('../../StyleSheet/processColor')},\n borderBottomColor: {process: require('../../StyleSheet/processColor')},\n borderBottomEndRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderBottomStartRadius: true,\n borderBottomWidth: true,\n borderColor: {process: require('../../StyleSheet/processColor')},\n borderEndColor: {process: require('../../StyleSheet/processColor')},\n borderEndWidth: true,\n borderLeftColor: {process: require('../../StyleSheet/processColor')},\n borderLeftWidth: true,\n borderRadius: true,\n borderRightColor: {process: require('../../StyleSheet/processColor')},\n borderRightWidth: true,\n borderStartColor: {process: require('../../StyleSheet/processColor')},\n borderStartWidth: true,\n borderStyle: true,\n borderTopColor: {process: require('../../StyleSheet/processColor')},\n borderTopEndRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderTopStartRadius: true,\n borderTopWidth: true,\n borderWidth: true,\n bottom: true,\n clickable: true,\n collapsable: true,\n direction: true,\n display: true,\n elevation: true,\n end: true,\n flex: true,\n flexBasis: true,\n flexDirection: true,\n flexGrow: true,\n flexShrink: true,\n flexWrap: true,\n height: true,\n hitSlop: {diff: (require('../../Utilities/differ/insetsDiffer'): any)},\n importantForAccessibility: true,\n justifyContent: true,\n left: true,\n margin: true,\n marginBottom: true,\n marginEnd: true,\n marginHorizontal: true,\n marginLeft: true,\n marginRight: true,\n marginStart: true,\n marginTop: true,\n marginVertical: true,\n maxHeight: true,\n maxWidth: true,\n minHeight: true,\n minWidth: true,\n nativeID: true,\n needsOffscreenAlphaCompositing: true,\n onAccessibilityAction: true,\n onAccessibilityEscape: true,\n onAccessibilityTap: true,\n onLayout: true,\n onMagicTap: true,\n opacity: true,\n overflow: true,\n padding: true,\n paddingBottom: true,\n paddingEnd: true,\n paddingHorizontal: true,\n paddingLeft: true,\n paddingRight: true,\n paddingStart: true,\n paddingTop: true,\n paddingVertical: true,\n pointerEvents: true,\n position: true,\n removeClippedSubviews: true,\n renderToHardwareTextureAndroid: true,\n right: true,\n rotation: true,\n scaleX: true,\n scaleY: true,\n shadowColor: {process: require('../../StyleSheet/processColor')},\n shadowOffset: {diff: require('../../Utilities/differ/sizesDiffer')},\n shadowOpacity: true,\n shadowRadius: true,\n shouldRasterizeIOS: true,\n start: true,\n style: {\n alignContent: true,\n alignItems: true,\n alignSelf: true,\n aspectRatio: true,\n backfaceVisibility: true,\n backgroundColor: {process: require('../../StyleSheet/processColor')},\n borderBottomColor: {process: require('../../StyleSheet/processColor')},\n borderBottomEndRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderBottomStartRadius: true,\n borderBottomWidth: true,\n borderColor: {process: require('../../StyleSheet/processColor')},\n borderEndColor: {process: require('../../StyleSheet/processColor')},\n borderEndWidth: true,\n borderLeftColor: {process: require('../../StyleSheet/processColor')},\n borderLeftWidth: true,\n borderRadius: true,\n borderRightColor: {process: require('../../StyleSheet/processColor')},\n borderRightWidth: true,\n borderStartColor: {process: require('../../StyleSheet/processColor')},\n borderStartWidth: true,\n borderStyle: true,\n borderTopColor: {process: require('../../StyleSheet/processColor')},\n borderTopEndRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderTopStartRadius: true,\n borderTopWidth: true,\n borderWidth: true,\n bottom: true,\n color: {process: require('../../StyleSheet/processColor')},\n decomposedMatrix: true,\n direction: true,\n display: true,\n elevation: true,\n end: true,\n flex: true,\n flexBasis: true,\n flexDirection: true,\n flexGrow: true,\n flexShrink: true,\n flexWrap: true,\n fontFamily: true,\n fontSize: true,\n fontStyle: true,\n fontVariant: true,\n fontWeight: true,\n height: true,\n includeFontPadding: true,\n justifyContent: true,\n left: true,\n letterSpacing: true,\n lineHeight: true,\n margin: true,\n marginBottom: true,\n marginEnd: true,\n marginHorizontal: true,\n marginLeft: true,\n marginRight: true,\n marginStart: true,\n marginTop: true,\n marginVertical: true,\n maxHeight: true,\n maxWidth: true,\n minHeight: true,\n minWidth: true,\n opacity: true,\n overflow: true,\n overlayColor: {process: require('../../StyleSheet/processColor')},\n padding: true,\n paddingBottom: true,\n paddingEnd: true,\n paddingHorizontal: true,\n paddingLeft: true,\n paddingRight: true,\n paddingStart: true,\n paddingTop: true,\n paddingVertical: true,\n position: true,\n resizeMode: true,\n right: true,\n rotation: true,\n scaleX: true,\n scaleY: true,\n shadowColor: {process: require('../../StyleSheet/processColor')},\n shadowOffset: {diff: require('../../Utilities/differ/sizesDiffer')},\n shadowOpacity: true,\n shadowRadius: true,\n start: true,\n textAlign: true,\n textAlignVertical: true,\n textDecorationColor: {process: require('../../StyleSheet/processColor')},\n textDecorationLine: true,\n textDecorationStyle: true,\n textShadowColor: {process: require('../../StyleSheet/processColor')},\n textShadowOffset: true,\n textShadowRadius: true,\n textTransform: true,\n tintColor: {process: require('../../StyleSheet/processColor')},\n top: true,\n transform: {diff: require('../../Utilities/differ/matricesDiffer')},\n transformMatrix: true,\n translateX: true,\n translateY: true,\n width: true,\n writingDirection: true,\n zIndex: true,\n },\n testID: true,\n top: true,\n transform: {diff: require('../../Utilities/differ/matricesDiffer')},\n translateX: true,\n translateY: true,\n width: true,\n zIndex: true,\n },\n};\n\nmodule.exports = ReactNativeViewConfig;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\ntype Inset = {\n top: ?number,\n left: ?number,\n right: ?number,\n bottom: ?number,\n ...\n};\n\nconst dummyInsets = {\n top: undefined,\n left: undefined,\n right: undefined,\n bottom: undefined,\n};\n\nconst insetsDiffer = function(one: Inset, two: Inset): boolean {\n one = one || dummyInsets;\n two = two || dummyInsets;\n return (\n one !== two &&\n (one.top !== two.top ||\n one.left !== two.left ||\n one.right !== two.right ||\n one.bottom !== two.bottom)\n );\n};\n\nmodule.exports = insetsDiffer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Unrolls an array comparison specially for matrices. Prioritizes\n * checking of indices that are most likely to change so that the comparison\n * bails as early as possible.\n *\n * @param {MatrixMath.Matrix} one First matrix.\n * @param {MatrixMath.Matrix} two Second matrix.\n * @return {boolean} Whether or not the two matrices differ.\n */\nconst matricesDiffer = function(one, two) {\n if (one === two) {\n return false;\n }\n return (\n !one ||\n !two ||\n one[12] !== two[12] ||\n one[13] !== two[13] ||\n one[14] !== two[14] ||\n one[5] !== two[5] ||\n one[10] !== two[10] ||\n one[1] !== two[1] ||\n one[2] !== two[2] ||\n one[3] !== two[3] ||\n one[4] !== two[4] ||\n one[6] !== two[6] ||\n one[7] !== two[7] ||\n one[8] !== two[8] ||\n one[9] !== two[9] ||\n one[11] !== two[11] ||\n one[15] !== two[15]\n );\n};\n\nmodule.exports = matricesDiffer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes');\nconst UIManager = require('./UIManager');\n\nconst insetsDiffer = require('../Utilities/differ/insetsDiffer');\nconst invariant = require('invariant');\nconst matricesDiffer = require('../Utilities/differ/matricesDiffer');\nconst pointsDiffer = require('../Utilities/differ/pointsDiffer');\nconst processColor = require('../StyleSheet/processColor');\nconst processColorArray = require('../StyleSheet/processColorArray');\nconst resolveAssetSource = require('../Image/resolveAssetSource');\nconst sizesDiffer = require('../Utilities/differ/sizesDiffer');\nconst warning = require('fbjs/lib/warning');\n\nfunction getNativeComponentAttributes(uiViewClassName: string): any {\n const viewConfig = UIManager.getViewManagerConfig(uiViewClassName);\n\n invariant(\n viewConfig != null && viewConfig.NativeProps != null,\n 'requireNativeComponent: \"%s\" was not found in the UIManager.',\n uiViewClassName,\n );\n\n // TODO: This seems like a whole lot of runtime initialization for every\n // native component that can be either avoided or simplified.\n let {baseModuleName, bubblingEventTypes, directEventTypes} = viewConfig;\n let nativeProps = viewConfig.NativeProps;\n while (baseModuleName) {\n const baseModule = UIManager.getViewManagerConfig(baseModuleName);\n if (!baseModule) {\n warning(false, 'Base module \"%s\" does not exist', baseModuleName);\n baseModuleName = null;\n } else {\n bubblingEventTypes = {\n ...baseModule.bubblingEventTypes,\n ...bubblingEventTypes,\n };\n directEventTypes = {\n ...baseModule.directEventTypes,\n ...directEventTypes,\n };\n nativeProps = {\n ...baseModule.NativeProps,\n ...nativeProps,\n };\n baseModuleName = baseModule.baseModuleName;\n }\n }\n\n const validAttributes = {};\n\n for (const key in nativeProps) {\n const typeName = nativeProps[key];\n const diff = getDifferForType(typeName);\n const process = getProcessorForType(typeName);\n\n validAttributes[key] =\n diff == null && process == null ? true : {diff, process};\n }\n\n // Unfortunately, the current setup declares style properties as top-level\n // props. This makes it so we allow style properties in the `style` prop.\n // TODO: Move style properties into a `style` prop and disallow them as\n // top-level props on the native side.\n validAttributes.style = ReactNativeStyleAttributes;\n\n Object.assign(viewConfig, {\n uiViewClassName,\n validAttributes,\n bubblingEventTypes,\n directEventTypes,\n });\n\n if (!hasAttachedDefaultEventTypes) {\n attachDefaultEventTypes(viewConfig);\n hasAttachedDefaultEventTypes = true;\n }\n\n return viewConfig;\n}\n\n// TODO: Figure out how this makes sense. We're using a global boolean to only\n// initialize this on the first eagerly initialized native component.\nlet hasAttachedDefaultEventTypes = false;\nfunction attachDefaultEventTypes(viewConfig: any) {\n // This is supported on UIManager platforms (ex: Android),\n // as lazy view managers are not implemented for all platforms.\n // See [UIManager] for details on constants and implementations.\n const constants = UIManager.getConstants();\n if (constants.ViewManagerNames || constants.LazyViewManagersEnabled) {\n // Lazy view managers enabled.\n viewConfig = merge(viewConfig, UIManager.getDefaultEventTypes());\n } else {\n viewConfig.bubblingEventTypes = merge(\n viewConfig.bubblingEventTypes,\n constants.genericBubblingEventTypes,\n );\n viewConfig.directEventTypes = merge(\n viewConfig.directEventTypes,\n constants.genericDirectEventTypes,\n );\n }\n}\n\n// TODO: Figure out how to avoid all this runtime initialization cost.\nfunction merge(destination: ?Object, source: ?Object): ?Object {\n if (!source) {\n return destination;\n }\n if (!destination) {\n return source;\n }\n\n for (const key in source) {\n if (!source.hasOwnProperty(key)) {\n continue;\n }\n\n let sourceValue = source[key];\n if (destination.hasOwnProperty(key)) {\n const destinationValue = destination[key];\n if (\n typeof sourceValue === 'object' &&\n typeof destinationValue === 'object'\n ) {\n sourceValue = merge(destinationValue, sourceValue);\n }\n }\n destination[key] = sourceValue;\n }\n return destination;\n}\n\nfunction getDifferForType(\n typeName: string,\n): ?(prevProp: any, nextProp: any) => boolean {\n switch (typeName) {\n // iOS Types\n case 'CATransform3D':\n return matricesDiffer;\n case 'CGPoint':\n return pointsDiffer;\n case 'CGSize':\n return sizesDiffer;\n case 'UIEdgeInsets':\n return insetsDiffer;\n // Android Types\n // (not yet implemented)\n }\n return null;\n}\n\nfunction getProcessorForType(typeName: string): ?(nextProp: any) => any {\n switch (typeName) {\n // iOS Types\n case 'CGColor':\n case 'UIColor':\n return processColor;\n case 'CGColorArray':\n case 'UIColorArray':\n return processColorArray;\n case 'CGImage':\n case 'UIImage':\n case 'RCTImageSource':\n return resolveAssetSource;\n // Android Types\n case 'Color':\n return processColor;\n case 'ColorArray':\n return processColorArray;\n }\n return null;\n}\n\nmodule.exports = getNativeComponentAttributes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\ntype Point = {\n x: ?number,\n y: ?number,\n ...\n};\n\nconst dummyPoint = {x: undefined, y: undefined};\n\nconst pointsDiffer = function(one: ?Point, two: ?Point): boolean {\n one = one || dummyPoint;\n two = two || dummyPoint;\n return one !== two && (one.x !== two.x || one.y !== two.y);\n};\n\nmodule.exports = pointsDiffer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst processColor = require('./processColor');\n\nfunction processColorArray(colors: ?Array): ?Array {\n return colors == null ? null : colors.map(processColor);\n}\n\nmodule.exports = processColorArray;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n// Resolves an asset into a `source` for `Image`.\n\n'use strict';\n\nconst AssetRegistry = require('./AssetRegistry');\nconst AssetSourceResolver = require('./AssetSourceResolver');\n\nimport type {ResolvedAssetSource} from './AssetSourceResolver';\n\nlet _customSourceTransformer, _serverURL, _scriptURL;\n\nlet _sourceCodeScriptURL: ?string;\nfunction getSourceCodeScriptURL(): ?string {\n if (_sourceCodeScriptURL) {\n return _sourceCodeScriptURL;\n }\n\n let sourceCode =\n global.nativeExtensions && global.nativeExtensions.SourceCode;\n if (!sourceCode) {\n sourceCode = require('../NativeModules/specs/NativeSourceCode').default;\n }\n _sourceCodeScriptURL = sourceCode.getConstants().scriptURL;\n return _sourceCodeScriptURL;\n}\n\nfunction getDevServerURL(): ?string {\n if (_serverURL === undefined) {\n const sourceCodeScriptURL = getSourceCodeScriptURL();\n const match =\n sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\\/\\/.*?\\//);\n if (match) {\n // jsBundle was loaded from network\n _serverURL = match[0];\n } else {\n // jsBundle was loaded from file\n _serverURL = null;\n }\n }\n return _serverURL;\n}\n\nfunction _coerceLocalScriptURL(scriptURL: ?string): ?string {\n if (scriptURL) {\n if (scriptURL.startsWith('assets://')) {\n // android: running from within assets, no offline path to use\n return null;\n }\n scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1);\n if (!scriptURL.includes('://')) {\n // Add file protocol in case we have an absolute file path and not a URL.\n // This shouldn't really be necessary. scriptURL should be a URL.\n scriptURL = 'file://' + scriptURL;\n }\n }\n return scriptURL;\n}\n\nfunction getScriptURL(): ?string {\n if (_scriptURL === undefined) {\n _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL());\n }\n return _scriptURL;\n}\n\nfunction setCustomSourceTransformer(\n transformer: (resolver: AssetSourceResolver) => ResolvedAssetSource,\n): void {\n _customSourceTransformer = transformer;\n}\n\n/**\n * `source` is either a number (opaque type returned by require('./foo.png'))\n * or an `ImageSource` like { uri: '' }\n */\nfunction resolveAssetSource(source: any): ?ResolvedAssetSource {\n if (typeof source === 'object') {\n return source;\n }\n\n const asset = AssetRegistry.getAssetByID(source);\n if (!asset) {\n return null;\n }\n\n const resolver = new AssetSourceResolver(\n getDevServerURL(),\n getScriptURL(),\n asset,\n );\n if (_customSourceTransformer) {\n return _customSourceTransformer(resolver);\n }\n return resolver.defaultAsset();\n}\n\nmodule.exports = resolveAssetSource;\nmodule.exports.pickScale = AssetSourceResolver.pickScale;\nmodule.exports.setCustomSourceTransformer = setCustomSourceTransformer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n'use strict';\n\nexport type PackagerAsset = {\n +__packager_asset: boolean,\n +fileSystemLocation: string,\n +httpServerLocation: string,\n +width: ?number,\n +height: ?number,\n +scales: Array,\n +hash: string,\n +name: string,\n +type: string,\n ...\n};\n\nconst assets: Array = [];\n\nfunction registerAsset(asset: PackagerAsset): number {\n // `push` returns new array length, so the first asset will\n // get id 1 (not 0) to make the value truthy\n return assets.push(asset);\n}\n\nfunction getAssetByID(assetId: number): PackagerAsset {\n return assets[assetId - 1];\n}\n\nmodule.exports = {registerAsset, getAssetByID};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nexport type ResolvedAssetSource = {|\n +__packager_asset: boolean,\n +width: ?number,\n +height: ?number,\n +uri: string,\n +scale: number,\n|};\n\nimport type {PackagerAsset} from './AssetRegistry';\n\nconst PixelRatio = require('../Utilities/PixelRatio');\nconst Platform = require('../Utilities/Platform');\n\nconst assetPathUtils = require('./assetPathUtils');\nconst invariant = require('invariant');\n\n/**\n * Returns a path like 'assets/AwesomeModule/icon@2x.png'\n */\nfunction getScaledAssetPath(asset): string {\n const scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());\n const scaleSuffix = scale === 1 ? '' : '@' + scale + 'x';\n const assetDir = assetPathUtils.getBasePath(asset);\n return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type;\n}\n\n/**\n * Returns a path like 'drawable-mdpi/icon.png'\n */\nfunction getAssetPathInDrawableFolder(asset): string {\n const scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());\n const drawbleFolder = assetPathUtils.getAndroidResourceFolderName(\n asset,\n scale,\n );\n const fileName = assetPathUtils.getAndroidResourceIdentifier(asset);\n return drawbleFolder + '/' + fileName + '.' + asset.type;\n}\n\nclass AssetSourceResolver {\n serverUrl: ?string;\n // where the jsbundle is being run from\n jsbundleUrl: ?string;\n // the asset to resolve\n asset: PackagerAsset;\n\n constructor(serverUrl: ?string, jsbundleUrl: ?string, asset: PackagerAsset) {\n this.serverUrl = serverUrl;\n this.jsbundleUrl = jsbundleUrl;\n this.asset = asset;\n }\n\n isLoadedFromServer(): boolean {\n return !!this.serverUrl;\n }\n\n isLoadedFromFileSystem(): boolean {\n return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://'));\n }\n\n defaultAsset(): ResolvedAssetSource {\n if (this.isLoadedFromServer()) {\n return this.assetServerURL();\n }\n\n if (Platform.OS === 'android') {\n return this.isLoadedFromFileSystem()\n ? this.drawableFolderInBundle()\n : this.resourceIdentifierWithoutScale();\n } else {\n return this.scaledAssetURLNearBundle();\n }\n }\n\n /**\n * Returns an absolute URL which can be used to fetch the asset\n * from the devserver\n */\n assetServerURL(): ResolvedAssetSource {\n invariant(!!this.serverUrl, 'need server to load from');\n return this.fromSource(\n this.serverUrl +\n getScaledAssetPath(this.asset) +\n '?platform=' +\n Platform.OS +\n '&hash=' +\n this.asset.hash,\n );\n }\n\n /**\n * Resolves to just the scaled asset filename\n * E.g. 'assets/AwesomeModule/icon@2x.png'\n */\n scaledAssetPath(): ResolvedAssetSource {\n return this.fromSource(getScaledAssetPath(this.asset));\n }\n\n /**\n * Resolves to where the bundle is running from, with a scaled asset filename\n * E.g. 'file:///sdcard/bundle/assets/AwesomeModule/icon@2x.png'\n */\n scaledAssetURLNearBundle(): ResolvedAssetSource {\n const path = this.jsbundleUrl || 'file://';\n return this.fromSource(path + getScaledAssetPath(this.asset));\n }\n\n /**\n * The default location of assets bundled with the app, located by\n * resource identifier\n * The Android resource system picks the correct scale.\n * E.g. 'assets_awesomemodule_icon'\n */\n resourceIdentifierWithoutScale(): ResolvedAssetSource {\n invariant(\n Platform.OS === 'android',\n 'resource identifiers work on Android',\n );\n return this.fromSource(\n assetPathUtils.getAndroidResourceIdentifier(this.asset),\n );\n }\n\n /**\n * If the jsbundle is running from a sideload location, this resolves assets\n * relative to its location\n * E.g. 'file:///sdcard/AwesomeModule/drawable-mdpi/icon.png'\n */\n drawableFolderInBundle(): ResolvedAssetSource {\n const path = this.jsbundleUrl || 'file://';\n return this.fromSource(path + getAssetPathInDrawableFolder(this.asset));\n }\n\n fromSource(source: string): ResolvedAssetSource {\n return {\n __packager_asset: true,\n width: this.asset.width,\n height: this.asset.height,\n uri: source,\n scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get()),\n };\n }\n\n static pickScale(scales: Array, deviceScale: number): number {\n // Packager guarantees that `scales` array is sorted\n for (let i = 0; i < scales.length; i++) {\n if (scales[i] >= deviceScale) {\n return scales[i];\n }\n }\n\n // If nothing matches, device scale is larger than any available\n // scales, so we return the biggest one. Unless the array is empty,\n // in which case we default to 1\n return scales[scales.length - 1] || 1;\n }\n}\n\nmodule.exports = AssetSourceResolver;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nimport type {PackagerAsset} from './AssetRegistry';\n\nconst androidScaleSuffix = {\n '0.75': 'ldpi',\n '1': 'mdpi',\n '1.5': 'hdpi',\n '2': 'xhdpi',\n '3': 'xxhdpi',\n '4': 'xxxhdpi',\n};\n\n/**\n * FIXME: using number to represent discrete scale numbers is fragile in essence because of\n * floating point numbers imprecision.\n */\nfunction getAndroidAssetSuffix(scale: number): string {\n if (scale.toString() in androidScaleSuffix) {\n return androidScaleSuffix[scale.toString()];\n }\n\n throw new Error('no such scale ' + scale.toString());\n}\n\n// See https://developer.android.com/guide/topics/resources/drawable-resource.html\nconst drawableFileTypes = new Set([\n 'gif',\n 'jpeg',\n 'jpg',\n 'png',\n 'svg',\n 'webp',\n 'xml',\n]);\n\nfunction getAndroidResourceFolderName(\n asset: PackagerAsset,\n scale: number,\n): string | $TEMPORARY$string<'raw'> {\n if (!drawableFileTypes.has(asset.type)) {\n return 'raw';\n }\n var suffix = getAndroidAssetSuffix(scale);\n if (!suffix) {\n throw new Error(\n \"Don't know which android drawable suffix to use for scale: \" +\n scale +\n '\\nAsset: ' +\n JSON.stringify(asset, null, '\\t') +\n '\\nPossible scales are:' +\n JSON.stringify(androidScaleSuffix, null, '\\t'),\n );\n }\n const androidFolder = 'drawable-' + suffix;\n return androidFolder;\n}\n\nfunction getAndroidResourceIdentifier(asset: PackagerAsset): string {\n var folderPath = getBasePath(asset);\n return (folderPath + '/' + asset.name)\n .toLowerCase()\n .replace(/\\//g, '_') // Encode folder structure in file name\n .replace(/([^a-z0-9_])/g, '') // Remove illegal chars\n .replace(/^assets_/, ''); // Remove \"assets_\" prefix\n}\n\nfunction getBasePath(asset: PackagerAsset): string {\n var basePath = asset.httpServerLocation;\n if (basePath[0] === '/') {\n basePath = basePath.substr(1);\n }\n return basePath;\n}\n\nmodule.exports = {\n getAndroidAssetSuffix: getAndroidAssetSuffix,\n getAndroidResourceFolderName: getAndroidResourceFolderName,\n getAndroidResourceIdentifier: getAndroidResourceIdentifier,\n getBasePath: getBasePath,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst createReactNativeComponentClass = require('../Renderer/shims/createReactNativeComponentClass');\nconst getNativeComponentAttributes = require('./getNativeComponentAttributes');\n\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\n\n/**\n * Creates values that can be used like React components which represent native\n * view managers. You should create JavaScript modules that wrap these values so\n * that the results are memoized. Example:\n *\n * const View = requireNativeComponent('RCTView');\n *\n */\n\nconst requireNativeComponent = (uiViewClassName: string): HostComponent =>\n ((createReactNativeComponentClass(uiViewClassName, () =>\n getNativeComponentAttributes(uiViewClassName),\n ): any): HostComponent);\n\nmodule.exports = requireNativeComponent;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport {ReactNativeViewConfigRegistry} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';\n\nimport type {ViewConfigGetter} from './ReactNativeTypes';\n\nconst {register} = ReactNativeViewConfigRegistry;\n\n/**\n * Creates a renderable ReactNative host component.\n * Use this method for view configs that are loaded from UIManager.\n * Use createReactNativeComponentClass() for view configs defined within JavaScript.\n *\n * @param {string} config iOS View configuration.\n * @private\n */\nconst createReactNativeComponentClass = function(\n name: string,\n callback: ViewConfigGetter,\n): string {\n return register(name, callback);\n};\n\nmodule.exports = createReactNativeComponentClass;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\n\nimport ProgressBarAndroidNativeComponent from './ProgressBarAndroidNativeComponent';\n\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nexport type ProgressBarAndroidProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Style of the ProgressBar and whether it shows indeterminate progress (e.g. spinner).\n *\n * `indeterminate` can only be false if `styleAttr` is Horizontal, and requires a\n * `progress` value.\n */\n ...\n | {|\n styleAttr: 'Horizontal',\n indeterminate: false,\n progress: number,\n |}\n | {|\n typeAttr:\n | 'Horizontal'\n | 'Normal'\n | 'Small'\n | 'Large'\n | 'Inverse'\n | 'SmallInverse'\n | 'LargeInverse',\n indeterminate: true,\n |},\n /**\n * Whether to show the ProgressBar (true, the default) or hide it (false).\n */\n animating?: ?boolean,\n /**\n * Color of the progress bar.\n */\n color?: ?string,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID?: ?string,\n|}>;\n\n/**\n * React component that wraps the Android-only `ProgressBar`. This component is\n * used to indicate that the app is loading or there is activity in the app.\n *\n * Example:\n *\n * ```\n * render: function() {\n * var progressBar =\n * \n * \n * ;\n\n * return (\n * \n * );\n * },\n * ```\n */\nconst ProgressBarAndroid = (\n props: ProgressBarAndroidProps,\n forwardedRef: ?React.Ref,\n) => {\n return ;\n};\n\nconst ProgressBarAndroidToExport = React.forwardRef(ProgressBarAndroid);\n\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nProgressBarAndroidToExport.defaultProps = {\n styleAttr: 'Normal',\n indeterminate: true,\n animating: true,\n};\n\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nmodule.exports = (ProgressBarAndroidToExport: typeof ProgressBarAndroidNativeComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {Double, WithDefault} from '../../Types/CodegenTypes';\n\nimport codegenNativeComponent from '../../Utilities/codegenNativeComponent';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n //Props\n styleAttr?: string,\n typeAttr?: string,\n indeterminate: boolean,\n progress?: WithDefault,\n animating?: WithDefault,\n color?: ?ColorValue,\n testID?: WithDefault,\n|}>;\n\nexport default (codegenNativeComponent(\n 'AndroidProgressBar',\n): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n// TODO: move this file to shims/ReactNative (requires React update and sync)\n\n'use strict';\n\nimport requireNativeComponent from '../../Libraries/ReactNative/requireNativeComponent';\nimport type {HostComponent} from '../../Libraries/Renderer/shims/ReactNativeTypes';\nimport UIManager from '../ReactNative/UIManager';\n\n// TODO: import from CodegenSchema once workspaces are enabled\ntype Options = $ReadOnly<{|\n interfaceOnly?: boolean,\n paperComponentName?: string,\n paperComponentNameDeprecated?: string,\n excludedPlatform?: 'iOS' | 'android',\n|}>;\n\nexport type NativeComponentType = HostComponent;\n\nfunction codegenNativeComponent(\n componentName: string,\n options?: Options,\n): NativeComponentType {\n let componentNameInUse =\n options && options.paperComponentName\n ? options.paperComponentName\n : componentName;\n\n if (options != null && options.paperComponentNameDeprecated != null) {\n if (UIManager.getViewManagerConfig(componentName)) {\n componentNameInUse = componentName;\n } else if (\n options.paperComponentNameDeprecated != null &&\n UIManager.getViewManagerConfig(options.paperComponentNameDeprecated)\n ) {\n componentNameInUse = options.paperComponentNameDeprecated;\n } else {\n throw new Error(\n `Failed to find native component for either ${componentName} or ${options.paperComponentNameDeprecated ||\n '(unknown)'}`,\n );\n }\n }\n\n // If this function is run at runtime then that means the view configs were not\n // generated with the view config babel plugin, so we need to require the native component.\n //\n // This will be useful during migration, but eventually this will error.\n return (requireNativeComponent(\n componentNameInUse,\n ): HostComponent);\n}\n\nexport default codegenNativeComponent;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../Utilities/Platform');\nconst React = require('react');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst Text = require('../Text/Text');\nconst TouchableNativeFeedback = require('./Touchable/TouchableNativeFeedback');\nconst TouchableOpacity = require('./Touchable/TouchableOpacity');\nconst View = require('./View/View');\n\nconst invariant = require('invariant');\n\nimport type {PressEvent} from '../Types/CoreEventTypes';\n\ntype ButtonProps = $ReadOnly<{|\n /**\n * Text to display inside the button\n */\n title: string,\n\n /**\n * Handler to be called when the user taps the button\n */\n onPress: (event?: PressEvent) => mixed,\n\n /**\n * If true, doesn't play system sound on touch (Android Only)\n **/\n touchSoundDisabled?: ?boolean,\n\n /**\n * Color of the text (iOS), or background color of the button (Android)\n */\n color?: ?string,\n\n /**\n * TV preferred focus (see documentation for the View component).\n */\n hasTVPreferredFocus?: ?boolean,\n\n /**\n * TV next focus down (see documentation for the View component).\n *\n * @platform android\n */\n nextFocusDown?: ?number,\n\n /**\n * TV next focus forward (see documentation for the View component).\n *\n * @platform android\n */\n nextFocusForward?: ?number,\n\n /**\n * TV next focus left (see documentation for the View component).\n *\n * @platform android\n */\n nextFocusLeft?: ?number,\n\n /**\n * TV next focus right (see documentation for the View component).\n *\n * @platform android\n */\n nextFocusRight?: ?number,\n\n /**\n * TV next focus up (see documentation for the View component).\n *\n * @platform android\n */\n nextFocusUp?: ?number,\n\n /**\n * Text to display for blindness accessibility features\n */\n accessibilityLabel?: ?string,\n\n /**\n * If true, disable all interactions for this component.\n */\n disabled?: ?boolean,\n\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID?: ?string,\n|}>;\n\n/**\n * A basic button component that should render nicely on any platform. Supports\n * a minimal level of customization.\n *\n *
\n *\n * If this button doesn't look right for your app, you can build your own\n * button using [TouchableOpacity](docs/touchableopacity.html)\n * or [TouchableNativeFeedback](docs/touchablenativefeedback.html).\n * For inspiration, look at the [source code for this button component](https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js).\n * Or, take a look at the [wide variety of button components built by the community](https://js.coach/react-native?search=button).\n *\n * Example usage:\n *\n * ```\n * import { Button } from 'react-native';\n * ...\n *\n * \n * ```\n *\n */\n\nclass Button extends React.Component {\n render(): React.Node {\n const {\n accessibilityLabel,\n color,\n onPress,\n touchSoundDisabled,\n title,\n hasTVPreferredFocus,\n nextFocusDown,\n nextFocusForward,\n nextFocusLeft,\n nextFocusRight,\n nextFocusUp,\n disabled,\n testID,\n } = this.props;\n const buttonStyles = [styles.button];\n const textStyles = [styles.text];\n if (color) {\n if (Platform.OS === 'ios') {\n textStyles.push({color: color});\n } else {\n buttonStyles.push({backgroundColor: color});\n }\n }\n const accessibilityState = {};\n if (disabled) {\n buttonStyles.push(styles.buttonDisabled);\n textStyles.push(styles.textDisabled);\n accessibilityState.disabled = true;\n }\n invariant(\n typeof title === 'string',\n 'The title prop of a Button must be a string',\n );\n const formattedTitle =\n Platform.OS === 'android' ? title.toUpperCase() : title;\n const Touchable =\n Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity;\n return (\n \n \n \n {formattedTitle}\n \n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n button: Platform.select({\n ios: {},\n android: {\n elevation: 4,\n // Material design blue from https://material.google.com/style/color.html#color-color-palette\n backgroundColor: '#2196F3',\n borderRadius: 2,\n },\n }),\n text: {\n textAlign: 'center',\n margin: 8,\n ...Platform.select({\n ios: {\n // iOS blue from https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/\n color: '#007AFF',\n fontSize: 18,\n },\n android: {\n color: 'white',\n fontWeight: '500',\n },\n }),\n },\n buttonDisabled: Platform.select({\n ios: {},\n android: {\n elevation: 0,\n backgroundColor: '#dfdfdf',\n },\n }),\n textDisabled: Platform.select({\n ios: {\n color: '#cdcdcd',\n },\n android: {\n color: '#a1a1a1',\n },\n }),\n});\n\nmodule.exports = Button;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedTextPropTypes = require('../DeprecatedPropTypes/DeprecatedTextPropTypes');\nconst React = require('react');\nconst ReactNativeViewAttributes = require('../Components/View/ReactNativeViewAttributes');\nconst TextAncestor = require('./TextAncestor');\nconst Touchable = require('../Components/Touchable/Touchable');\nconst UIManager = require('../ReactNative/UIManager');\n\nconst createReactNativeComponentClass = require('../Renderer/shims/createReactNativeComponentClass');\nconst nullthrows = require('nullthrows');\nconst processColor = require('../StyleSheet/processColor');\n\nimport type {PressEvent} from '../Types/CoreEventTypes';\nimport type {NativeComponent} from '../Renderer/shims/ReactNative';\nimport type {PressRetentionOffset, TextProps} from './TextProps';\n\ntype ResponseHandlers = $ReadOnly<{|\n onStartShouldSetResponder: () => boolean,\n onResponderGrant: (event: PressEvent, dispatchID: string) => void,\n onResponderMove: (event: PressEvent) => void,\n onResponderRelease: (event: PressEvent) => void,\n onResponderTerminate: (event: PressEvent) => void,\n onResponderTerminationRequest: () => boolean,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...TextProps,\n forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtualText'>,\n|}>;\n\ntype State = {|\n touchable: {|\n touchState: ?string,\n responderID: ?number,\n |},\n isHighlighted: boolean,\n createResponderHandlers: () => ResponseHandlers,\n responseHandlers: ?ResponseHandlers,\n|};\n\nconst PRESS_RECT_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};\n\nconst viewConfig = {\n validAttributes: {\n ...ReactNativeViewAttributes.UIView,\n isHighlighted: true,\n numberOfLines: true,\n ellipsizeMode: true,\n allowFontScaling: true,\n maxFontSizeMultiplier: true,\n disabled: true,\n selectable: true,\n selectionColor: true,\n adjustsFontSizeToFit: true,\n minimumFontScale: true,\n textBreakStrategy: true,\n onTextLayout: true,\n onInlineViewLayout: true,\n dataDetectorType: true,\n },\n directEventTypes: {\n topTextLayout: {\n registrationName: 'onTextLayout',\n },\n topInlineViewLayout: {\n registrationName: 'onInlineViewLayout',\n },\n },\n uiViewClassName: 'RCTText',\n};\n\n/**\n * A React component for displaying text.\n *\n * See https://facebook.github.io/react-native/docs/text.html\n */\nclass TouchableText extends React.Component {\n static defaultProps = {\n accessible: true,\n allowFontScaling: true,\n ellipsizeMode: 'tail',\n };\n\n touchableGetPressRectOffset: ?() => PressRetentionOffset;\n touchableHandleActivePressIn: ?() => void;\n touchableHandleActivePressOut: ?() => void;\n touchableHandleLongPress: ?(event: PressEvent) => void;\n touchableHandlePress: ?(event: PressEvent) => void;\n touchableHandleResponderGrant: ?(\n event: PressEvent,\n dispatchID: string,\n ) => void;\n touchableHandleResponderMove: ?(event: PressEvent) => void;\n touchableHandleResponderRelease: ?(event: PressEvent) => void;\n touchableHandleResponderTerminate: ?(event: PressEvent) => void;\n touchableHandleResponderTerminationRequest: ?() => boolean;\n\n state = {\n ...Touchable.Mixin.touchableGetInitialState(),\n isHighlighted: false,\n createResponderHandlers: this._createResponseHandlers.bind(this),\n responseHandlers: null,\n };\n\n static getDerivedStateFromProps(\n nextProps: Props,\n prevState: State,\n ): $Shape | null {\n return prevState.responseHandlers == null && isTouchable(nextProps)\n ? {\n responseHandlers: prevState.createResponderHandlers(),\n }\n : null;\n }\n\n static viewConfig = viewConfig;\n\n render(): React.Node {\n let props = this.props;\n if (isTouchable(props)) {\n props = {\n ...props,\n ...this.state.responseHandlers,\n isHighlighted: this.state.isHighlighted,\n };\n }\n if (props.selectionColor != null) {\n props = {\n ...props,\n selectionColor: processColor(props.selectionColor),\n };\n }\n if (__DEV__) {\n if (Touchable.TOUCH_TARGET_DEBUG && props.onPress != null) {\n props = {\n ...props,\n style: [props.style, {color: 'magenta'}],\n };\n }\n }\n return (\n \n {hasTextAncestor =>\n hasTextAncestor ? (\n \n ) : (\n \n \n \n )\n }\n \n );\n }\n\n _createResponseHandlers(): ResponseHandlers {\n return {\n onStartShouldSetResponder: (): boolean => {\n const {onStartShouldSetResponder} = this.props;\n const shouldSetResponder =\n (onStartShouldSetResponder == null\n ? false\n : onStartShouldSetResponder()) || isTouchable(this.props);\n\n if (shouldSetResponder) {\n this._attachTouchHandlers();\n }\n return shouldSetResponder;\n },\n onResponderGrant: (event: PressEvent, dispatchID: string): void => {\n nullthrows(this.touchableHandleResponderGrant)(event, dispatchID);\n if (this.props.onResponderGrant != null) {\n this.props.onResponderGrant.call(this, event, dispatchID);\n }\n },\n onResponderMove: (event: PressEvent): void => {\n nullthrows(this.touchableHandleResponderMove)(event);\n if (this.props.onResponderMove != null) {\n this.props.onResponderMove.call(this, event);\n }\n },\n onResponderRelease: (event: PressEvent): void => {\n nullthrows(this.touchableHandleResponderRelease)(event);\n if (this.props.onResponderRelease != null) {\n this.props.onResponderRelease.call(this, event);\n }\n },\n onResponderTerminate: (event: PressEvent): void => {\n nullthrows(this.touchableHandleResponderTerminate)(event);\n if (this.props.onResponderTerminate != null) {\n this.props.onResponderTerminate.call(this, event);\n }\n },\n onResponderTerminationRequest: (): boolean => {\n const {onResponderTerminationRequest} = this.props;\n if (!nullthrows(this.touchableHandleResponderTerminationRequest)()) {\n return false;\n }\n if (onResponderTerminationRequest == null) {\n return true;\n }\n return onResponderTerminationRequest();\n },\n };\n }\n\n /**\n * Lazily attaches Touchable.Mixin handlers.\n */\n _attachTouchHandlers(): void {\n if (this.touchableGetPressRectOffset != null) {\n return;\n }\n for (const key in Touchable.Mixin) {\n if (typeof Touchable.Mixin[key] === 'function') {\n (this: any)[key] = Touchable.Mixin[key].bind(this);\n }\n }\n this.touchableHandleActivePressIn = (): void => {\n if (!this.props.suppressHighlighting && isTouchable(this.props)) {\n this.setState({isHighlighted: true});\n }\n };\n this.touchableHandleActivePressOut = (): void => {\n if (!this.props.suppressHighlighting && isTouchable(this.props)) {\n this.setState({isHighlighted: false});\n }\n };\n this.touchableHandlePress = (event: PressEvent): void => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n };\n this.touchableHandleLongPress = (event: PressEvent): void => {\n if (this.props.onLongPress != null) {\n this.props.onLongPress(event);\n }\n };\n this.touchableGetPressRectOffset = (): PressRetentionOffset =>\n this.props.pressRetentionOffset == null\n ? PRESS_RECT_OFFSET\n : this.props.pressRetentionOffset;\n }\n}\n\nconst isTouchable = (props: Props): boolean =>\n props.onPress != null ||\n props.onLongPress != null ||\n props.onStartShouldSetResponder != null;\n\nconst RCTText = createReactNativeComponentClass(\n viewConfig.uiViewClassName,\n () => viewConfig,\n);\n\nconst RCTVirtualText =\n UIManager.getViewManagerConfig('RCTVirtualText') == null\n ? RCTText\n : createReactNativeComponentClass('RCTVirtualText', () => ({\n validAttributes: {\n ...ReactNativeViewAttributes.UIView,\n isHighlighted: true,\n maxFontSizeMultiplier: true,\n },\n uiViewClassName: 'RCTVirtualText',\n }));\n\nconst Text = (\n props: TextProps,\n forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtualText'>,\n) => {\n return ;\n};\nconst TextToExport = React.forwardRef(Text);\nTextToExport.displayName = 'Text';\n\n// TODO: Deprecate this.\n/* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an error\n * found when Flow v0.89 was deployed. To see the error, delete this comment\n * and run Flow. */\nTextToExport.propTypes = DeprecatedTextPropTypes;\n\nmodule.exports = ((TextToExport: $FlowFixMe): Class<\n NativeComponent,\n>);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('./DeprecatedColorPropType');\nconst DeprecatedEdgeInsetsPropType = require('./DeprecatedEdgeInsetsPropType');\nconst DeprecatedStyleSheetPropType = require('./DeprecatedStyleSheetPropType');\nconst PropTypes = require('prop-types');\nconst DeprecatedTextStylePropTypes = require('./DeprecatedTextStylePropTypes');\n\nconst stylePropType: ReactPropsCheckType = DeprecatedStyleSheetPropType(\n DeprecatedTextStylePropTypes,\n);\n\nconst DataDetectorTypes = ['phoneNumber', 'link', 'email', 'none', 'all'];\n\nmodule.exports = {\n /**\n * When `numberOfLines` is set, this prop defines how text will be\n * truncated.\n *\n * See https://facebook.github.io/react-native/docs/text.html#ellipsizemode\n */\n ellipsizeMode: (PropTypes.oneOf([\n 'head',\n 'middle',\n 'tail',\n 'clip',\n ]): React$PropType$Primitive<'head' | 'middle' | 'tail' | 'clip'>),\n /**\n * Used to truncate the text with an ellipsis.\n *\n * See https://facebook.github.io/react-native/docs/text.html#numberoflines\n */\n numberOfLines: PropTypes.number,\n /**\n * Set text break strategy on Android.\n *\n * See https://facebook.github.io/react-native/docs/text.html#textbreakstrategy\n */\n textBreakStrategy: (PropTypes.oneOf([\n 'simple',\n 'highQuality',\n 'balanced',\n ]): React$PropType$Primitive<'simple' | 'highQuality' | 'balanced'>),\n /**\n * Invoked on mount and layout changes.\n *\n * See https://facebook.github.io/react-native/docs/text.html#onlayout\n */\n onLayout: PropTypes.func,\n /**\n * This function is called on press.\n *\n * See https://facebook.github.io/react-native/docs/text.html#onpress\n */\n onPress: PropTypes.func,\n /**\n * This function is called on long press.\n *\n * See https://facebook.github.io/react-native/docs/text.html#onlongpress\n */\n onLongPress: PropTypes.func,\n /**\n * Defines how far your touch may move off of the button, before\n * deactivating the button.\n *\n * See https://facebook.github.io/react-native/docs/text.html#pressretentionoffset\n */\n pressRetentionOffset: DeprecatedEdgeInsetsPropType,\n /**\n * Lets the user select text.\n *\n * See https://facebook.github.io/react-native/docs/text.html#selectable\n */\n selectable: PropTypes.bool,\n /**\n * The highlight color of the text.\n *\n * See https://facebook.github.io/react-native/docs/text.html#selectioncolor\n */\n selectionColor: DeprecatedColorPropType,\n /**\n * When `true`, no visual change is made when text is pressed down.\n *\n * See https://facebook.github.io/react-native/docs/text.html#supperhighlighting\n */\n suppressHighlighting: PropTypes.bool,\n style: stylePropType,\n /**\n * Used to locate this view in end-to-end tests.\n *\n * See https://facebook.github.io/react-native/docs/text.html#testid\n */\n testID: PropTypes.string,\n /**\n * Used to locate this view from native code.\n *\n * See https://facebook.github.io/react-native/docs/text.html#nativeid\n */\n nativeID: PropTypes.string,\n /**\n * Whether fonts should scale to respect Text Size accessibility settings.\n *\n * See https://facebook.github.io/react-native/docs/text.html#allowfontscaling\n */\n allowFontScaling: PropTypes.bool,\n /**\n * Specifies largest possible scale a font can reach when `allowFontScaling` is enabled.\n * Possible values:\n * `null/undefined` (default): inherit from the parent node or the global default (0)\n * `0`: no max, ignore parent/global default\n * `>= 1`: sets the maxFontSizeMultiplier of this node to this value\n */\n maxFontSizeMultiplier: PropTypes.number,\n /**\n * Indicates whether the view is an accessibility element.\n *\n * See https://facebook.github.io/react-native/docs/text.html#accessible\n */\n accessible: PropTypes.bool,\n /**\n * Whether font should be scaled down automatically.\n *\n * See https://facebook.github.io/react-native/docs/text.html#adjustsfontsizetofit\n */\n adjustsFontSizeToFit: PropTypes.bool,\n /**\n * Smallest possible scale a font can reach.\n *\n * See https://facebook.github.io/react-native/docs/text.html#minimumfontscale\n */\n minimumFontScale: PropTypes.number,\n /**\n * Specifies the disabled state of the text view for testing purposes.\n *\n * See https://facebook.github.io/react-native/docs/text.html#disabled\n */\n disabled: PropTypes.bool,\n /**\n * Determines the types of data converted to clickable URLs in text.\n *\n * See https://facebook.github.io/react-native/docs/text.html#dataDetectorType\n */\n dataDetectorType: (PropTypes.oneOf(\n DataDetectorTypes,\n ): React$PropType$Primitive<\n 'phoneNumber' | 'link' | 'email' | 'none' | 'all',\n >),\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst PropTypes = require('prop-types');\n\nconst DeprecatedEdgeInsetsPropType: React$PropType$Primitive<{\n bottom?: number,\n left?: number,\n right?: number,\n top?: number,\n ...\n}> = PropTypes.shape({\n top: PropTypes.number,\n left: PropTypes.number,\n bottom: PropTypes.number,\n right: PropTypes.number,\n});\n\nmodule.exports = DeprecatedEdgeInsetsPropType;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst deprecatedCreateStrictShapeTypeChecker = require('./deprecatedCreateStrictShapeTypeChecker');\nconst flattenStyle = require('../StyleSheet/flattenStyle');\n\nfunction DeprecatedStyleSheetPropType(shape: {\n [key: string]: ReactPropsCheckType,\n ...,\n}): ReactPropsCheckType {\n const shapePropType = deprecatedCreateStrictShapeTypeChecker(shape);\n return function(props, propName, componentName, location?, ...rest) {\n let newProps = props;\n if (props[propName]) {\n // Just make a dummy prop object with only the flattened style\n newProps = {};\n newProps[propName] = flattenStyle(props[propName]);\n }\n return shapePropType(newProps, propName, componentName, location, ...rest);\n };\n}\n\nmodule.exports = DeprecatedStyleSheetPropType;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\nfunction deprecatedCreateStrictShapeTypeChecker(shapeTypes: {\n [key: string]: ReactPropsCheckType,\n ...,\n}): ReactPropsChainableTypeChecker {\n function checkType(\n isRequired,\n props,\n propName,\n componentName,\n location?,\n ...rest\n ) {\n if (!props[propName]) {\n if (isRequired) {\n invariant(\n false,\n `Required object \\`${propName}\\` was not specified in ` +\n `\\`${componentName}\\`.`,\n );\n }\n return;\n }\n const propValue = props[propName];\n const propType = typeof propValue;\n const locationName = location || '(unknown)';\n if (propType !== 'object') {\n invariant(\n false,\n `Invalid ${locationName} \\`${propName}\\` of type \\`${propType}\\` ` +\n `supplied to \\`${componentName}\\`, expected \\`object\\`.`,\n );\n }\n // We need to check all keys in case some are required but missing from\n // props.\n const allKeys = {...props[propName], ...shapeTypes};\n for (const key in allKeys) {\n const checker = shapeTypes[key];\n if (!checker) {\n invariant(\n false,\n `Invalid props.${propName} key \\`${key}\\` supplied to \\`${componentName}\\`.` +\n '\\nBad object: ' +\n JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' +\n JSON.stringify(Object.keys(shapeTypes), null, ' '),\n );\n }\n const error = checker(propValue, key, componentName, location, ...rest);\n if (error) {\n invariant(\n false,\n error.message +\n '\\nBad object: ' +\n JSON.stringify(props[propName], null, ' '),\n );\n }\n }\n }\n function chainedCheckType(\n props: {[key: string]: any, ...},\n propName: string,\n componentName: string,\n location?: string,\n ...rest\n ): ?Error {\n return checkType(false, props, propName, componentName, location, ...rest);\n }\n chainedCheckType.isRequired = checkType.bind(null, true);\n return chainedCheckType;\n}\n\nmodule.exports = deprecatedCreateStrictShapeTypeChecker;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst ReactNativeStyleAttributes = require('./ReactNativeStyleAttributes');\n\nconst UIView = {\n pointerEvents: true,\n accessible: true,\n accessibilityActions: true,\n accessibilityLabel: true,\n accessibilityLiveRegion: true,\n accessibilityRole: true,\n accessibilityState: true,\n accessibilityValue: true,\n accessibilityHint: true,\n importantForAccessibility: true,\n nativeID: true,\n testID: true,\n renderToHardwareTextureAndroid: true,\n shouldRasterizeIOS: true,\n onLayout: true,\n onAccessibilityAction: true,\n onAccessibilityTap: true,\n onMagicTap: true,\n onAccessibilityEscape: true,\n collapsable: true,\n needsOffscreenAlphaCompositing: true,\n style: ReactNativeStyleAttributes,\n};\n\nconst RCTView = {\n ...UIView,\n\n // This is a special performance property exposed by RCTView and useful for\n // scrolling content when there are many subviews, most of which are offscreen.\n // For this property to be effective, it must be applied to a view that contains\n // many subviews that extend outside its bound. The subviews must also have\n // overflow: hidden, as should the containing view (or one of its superviews).\n removeClippedSubviews: true,\n};\n\nconst ReactNativeViewAttributes = {\n UIView: UIView,\n RCTView: RCTView,\n};\n\nmodule.exports = ReactNativeViewAttributes;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\n\n/**\n * Whether the current element is the descendant of a element.\n */\nmodule.exports = (React.createContext(false): React$Context<$FlowFixMe>);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst BoundingDimensions = require('./BoundingDimensions');\nconst Platform = require('../../Utilities/Platform');\nconst Position = require('./Position');\nconst React = require('react');\nconst ReactNative = require('../../Renderer/shims/ReactNative');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst TVEventHandler = require('../AppleTV/TVEventHandler');\nconst UIManager = require('../../ReactNative/UIManager');\nconst View = require('../View/View');\nconst SoundManager = require('../Sound/SoundManager');\n\nconst keyMirror = require('fbjs/lib/keyMirror');\nconst normalizeColor = require('../../StyleSheet/normalizeColor');\n\nimport type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType';\nimport type {PressEvent} from '../../Types/CoreEventTypes';\n\nconst extractSingleTouch = nativeEvent => {\n const touches = nativeEvent.touches;\n const changedTouches = nativeEvent.changedTouches;\n const hasTouches = touches && touches.length > 0;\n const hasChangedTouches = changedTouches && changedTouches.length > 0;\n\n return !hasTouches && hasChangedTouches\n ? changedTouches[0]\n : hasTouches\n ? touches[0]\n : nativeEvent;\n};\n\n/**\n * `Touchable`: Taps done right.\n *\n * You hook your `ResponderEventPlugin` events into `Touchable`. `Touchable`\n * will measure time/geometry and tells you when to give feedback to the user.\n *\n * ====================== Touchable Tutorial ===============================\n * The `Touchable` mixin helps you handle the \"press\" interaction. It analyzes\n * the geometry of elements, and observes when another responder (scroll view\n * etc) has stolen the touch lock. It notifies your component when it should\n * give feedback to the user. (bouncing/highlighting/unhighlighting).\n *\n * - When a touch was activated (typically you highlight)\n * - When a touch was deactivated (typically you unhighlight)\n * - When a touch was \"pressed\" - a touch ended while still within the geometry\n * of the element, and no other element (like scroller) has \"stolen\" touch\n * lock (\"responder\") (Typically you bounce the element).\n *\n * A good tap interaction isn't as simple as you might think. There should be a\n * slight delay before showing a highlight when starting a touch. If a\n * subsequent touch move exceeds the boundary of the element, it should\n * unhighlight, but if that same touch is brought back within the boundary, it\n * should rehighlight again. A touch can move in and out of that boundary\n * several times, each time toggling highlighting, but a \"press\" is only\n * triggered if that touch ends while within the element's boundary and no\n * scroller (or anything else) has stolen the lock on touches.\n *\n * To create a new type of component that handles interaction using the\n * `Touchable` mixin, do the following:\n *\n * - Initialize the `Touchable` state.\n *\n * getInitialState: function() {\n * return merge(this.touchableGetInitialState(), yourComponentState);\n * }\n *\n * - Choose the rendered component who's touches should start the interactive\n * sequence. On that rendered node, forward all `Touchable` responder\n * handlers. You can choose any rendered node you like. Choose a node whose\n * hit target you'd like to instigate the interaction sequence:\n *\n * // In render function:\n * return (\n * \n * \n * Even though the hit detection/interactions are triggered by the\n * wrapping (typically larger) node, we usually end up implementing\n * custom logic that highlights this inner one.\n * \n * \n * );\n *\n * - You may set up your own handlers for each of these events, so long as you\n * also invoke the `touchable*` handlers inside of your custom handler.\n *\n * - Implement the handlers on your component class in order to provide\n * feedback to the user. See documentation for each of these class methods\n * that you should implement.\n *\n * touchableHandlePress: function() {\n * this.performBounceAnimation(); // or whatever you want to do.\n * },\n * touchableHandleActivePressIn: function() {\n * this.beginHighlighting(...); // Whatever you like to convey activation\n * },\n * touchableHandleActivePressOut: function() {\n * this.endHighlighting(...); // Whatever you like to convey deactivation\n * },\n *\n * - There are more advanced methods you can implement (see documentation below):\n * touchableGetHighlightDelayMS: function() {\n * return 20;\n * }\n * // In practice, *always* use a predeclared constant (conserve memory).\n * touchableGetPressRectOffset: function() {\n * return {top: 20, left: 20, right: 20, bottom: 100};\n * }\n */\n\n/**\n * Touchable states.\n */\n\nconst States = keyMirror({\n NOT_RESPONDER: null, // Not the responder\n RESPONDER_INACTIVE_PRESS_IN: null, // Responder, inactive, in the `PressRect`\n RESPONDER_INACTIVE_PRESS_OUT: null, // Responder, inactive, out of `PressRect`\n RESPONDER_ACTIVE_PRESS_IN: null, // Responder, active, in the `PressRect`\n RESPONDER_ACTIVE_PRESS_OUT: null, // Responder, active, out of `PressRect`\n RESPONDER_ACTIVE_LONG_PRESS_IN: null, // Responder, active, in the `PressRect`, after long press threshold\n RESPONDER_ACTIVE_LONG_PRESS_OUT: null, // Responder, active, out of `PressRect`, after long press threshold\n ERROR: null,\n});\n\ntype State =\n | typeof States.NOT_RESPONDER\n | typeof States.RESPONDER_INACTIVE_PRESS_IN\n | typeof States.RESPONDER_INACTIVE_PRESS_OUT\n | typeof States.RESPONDER_ACTIVE_PRESS_IN\n | typeof States.RESPONDER_ACTIVE_PRESS_OUT\n | typeof States.RESPONDER_ACTIVE_LONG_PRESS_IN\n | typeof States.RESPONDER_ACTIVE_LONG_PRESS_OUT\n | typeof States.ERROR;\n\n/*\n * Quick lookup map for states that are considered to be \"active\"\n */\n\nconst baseStatesConditions = {\n NOT_RESPONDER: false,\n RESPONDER_INACTIVE_PRESS_IN: false,\n RESPONDER_INACTIVE_PRESS_OUT: false,\n RESPONDER_ACTIVE_PRESS_IN: false,\n RESPONDER_ACTIVE_PRESS_OUT: false,\n RESPONDER_ACTIVE_LONG_PRESS_IN: false,\n RESPONDER_ACTIVE_LONG_PRESS_OUT: false,\n ERROR: false,\n};\n\nconst IsActive = {\n ...baseStatesConditions,\n RESPONDER_ACTIVE_PRESS_OUT: true,\n RESPONDER_ACTIVE_PRESS_IN: true,\n};\n\n/**\n * Quick lookup for states that are considered to be \"pressing\" and are\n * therefore eligible to result in a \"selection\" if the press stops.\n */\nconst IsPressingIn = {\n ...baseStatesConditions,\n RESPONDER_INACTIVE_PRESS_IN: true,\n RESPONDER_ACTIVE_PRESS_IN: true,\n RESPONDER_ACTIVE_LONG_PRESS_IN: true,\n};\n\nconst IsLongPressingIn = {\n ...baseStatesConditions,\n RESPONDER_ACTIVE_LONG_PRESS_IN: true,\n};\n\n/**\n * Inputs to the state machine.\n */\nconst Signals = keyMirror({\n DELAY: null,\n RESPONDER_GRANT: null,\n RESPONDER_RELEASE: null,\n RESPONDER_TERMINATED: null,\n ENTER_PRESS_RECT: null,\n LEAVE_PRESS_RECT: null,\n LONG_PRESS_DETECTED: null,\n});\n\ntype Signal =\n | typeof Signals.DELAY\n | typeof Signals.RESPONDER_GRANT\n | typeof Signals.RESPONDER_RELEASE\n | typeof Signals.RESPONDER_TERMINATED\n | typeof Signals.ENTER_PRESS_RECT\n | typeof Signals.LEAVE_PRESS_RECT\n | typeof Signals.LONG_PRESS_DETECTED;\n\n/**\n * Mapping from States x Signals => States\n */\nconst Transitions = {\n NOT_RESPONDER: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN,\n RESPONDER_RELEASE: States.ERROR,\n RESPONDER_TERMINATED: States.ERROR,\n ENTER_PRESS_RECT: States.ERROR,\n LEAVE_PRESS_RECT: States.ERROR,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_INACTIVE_PRESS_IN: {\n DELAY: States.RESPONDER_ACTIVE_PRESS_IN,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_INACTIVE_PRESS_OUT: {\n DELAY: States.RESPONDER_ACTIVE_PRESS_OUT,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_ACTIVE_PRESS_IN: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n },\n RESPONDER_ACTIVE_PRESS_OUT: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_ACTIVE_LONG_PRESS_IN: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT,\n LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n },\n RESPONDER_ACTIVE_LONG_PRESS_OUT: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n error: {\n DELAY: States.NOT_RESPONDER,\n RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.NOT_RESPONDER,\n LEAVE_PRESS_RECT: States.NOT_RESPONDER,\n LONG_PRESS_DETECTED: States.NOT_RESPONDER,\n },\n};\n\n// ==== Typical Constants for integrating into UI components ====\n// var HIT_EXPAND_PX = 20;\n// var HIT_VERT_OFFSET_PX = 10;\nconst HIGHLIGHT_DELAY_MS = 130;\n\nconst PRESS_EXPAND_PX = 20;\n\nconst LONG_PRESS_THRESHOLD = 500;\n\nconst LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS;\n\nconst LONG_PRESS_ALLOWED_MOVEMENT = 10;\n\n// Default amount \"active\" region protrudes beyond box\n\n/**\n * By convention, methods prefixed with underscores are meant to be @private,\n * and not @protected. Mixers shouldn't access them - not even to provide them\n * as callback handlers.\n *\n *\n * ========== Geometry =========\n * `Touchable` only assumes that there exists a `HitRect` node. The `PressRect`\n * is an abstract box that is extended beyond the `HitRect`.\n *\n * +--------------------------+\n * | | - \"Start\" events in `HitRect` cause `HitRect`\n * | +--------------------+ | to become the responder.\n * | | +--------------+ | | - `HitRect` is typically expanded around\n * | | | | | | the `VisualRect`, but shifted downward.\n * | | | VisualRect | | | - After pressing down, after some delay,\n * | | | | | | and before letting up, the Visual React\n * | | +--------------+ | | will become \"active\". This makes it eligible\n * | | HitRect | | for being highlighted (so long as the\n * | +--------------------+ | press remains in the `PressRect`).\n * | PressRect o |\n * +----------------------|---+\n * Out Region |\n * +-----+ This gap between the `HitRect` and\n * `PressRect` allows a touch to move far away\n * from the original hit rect, and remain\n * highlighted, and eligible for a \"Press\".\n * Customize this via\n * `touchableGetPressRectOffset()`.\n *\n *\n *\n * ======= State Machine =======\n *\n * +-------------+ <---+ RESPONDER_RELEASE\n * |NOT_RESPONDER|\n * +-------------+ <---+ RESPONDER_TERMINATED\n * +\n * | RESPONDER_GRANT (HitRect)\n * v\n * +---------------------------+ DELAY +-------------------------+ T + DELAY +------------------------------+\n * |RESPONDER_INACTIVE_PRESS_IN|+-------->|RESPONDER_ACTIVE_PRESS_IN| +------------> |RESPONDER_ACTIVE_LONG_PRESS_IN|\n * +---------------------------+ +-------------------------+ +------------------------------+\n * + ^ + ^ + ^\n * |LEAVE_ |ENTER_ |LEAVE_ |ENTER_ |LEAVE_ |ENTER_\n * |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT\n * | | | | | |\n * v + v + v +\n * +----------------------------+ DELAY +--------------------------+ +-------------------------------+\n * |RESPONDER_INACTIVE_PRESS_OUT|+------->|RESPONDER_ACTIVE_PRESS_OUT| |RESPONDER_ACTIVE_LONG_PRESS_OUT|\n * +----------------------------+ +--------------------------+ +-------------------------------+\n *\n * T + DELAY => LONG_PRESS_DELAY_MS + DELAY\n *\n * Not drawn are the side effects of each transition. The most important side\n * effect is the `touchableHandlePress` abstract method invocation that occurs\n * when a responder is released while in either of the \"Press\" states.\n *\n * The other important side effects are the highlight abstract method\n * invocations (internal callbacks) to be implemented by the mixer.\n *\n *\n * @lends Touchable.prototype\n */\nconst TouchableMixin = {\n componentDidMount: function() {\n if (!Platform.isTV) {\n return;\n }\n\n this._tvEventHandler = new TVEventHandler();\n this._tvEventHandler.enable(this, function(cmp, evt) {\n const myTag = ReactNative.findNodeHandle(cmp);\n evt.dispatchConfig = {};\n if (myTag === evt.tag) {\n if (evt.eventType === 'focus') {\n cmp.touchableHandleFocus(evt);\n } else if (evt.eventType === 'blur') {\n cmp.touchableHandleBlur(evt);\n } else if (evt.eventType === 'select' && Platform.OS !== 'android') {\n cmp.touchableHandlePress &&\n !cmp.props.disabled &&\n cmp.touchableHandlePress(evt);\n }\n }\n });\n },\n\n /**\n * Clear all timeouts on unmount\n */\n componentWillUnmount: function() {\n if (this._tvEventHandler) {\n this._tvEventHandler.disable();\n delete this._tvEventHandler;\n }\n this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout);\n this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout);\n this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout);\n },\n\n /**\n * It's prefer that mixins determine state in this way, having the class\n * explicitly mix the state in the one and only `getInitialState` method.\n *\n * @return {object} State object to be placed inside of\n * `this.state.touchable`.\n */\n touchableGetInitialState: function(): $TEMPORARY$object<{|\n touchable: $TEMPORARY$object<{|responderID: null, touchState: void|}>,\n |}> {\n return {\n touchable: {touchState: undefined, responderID: null},\n };\n },\n\n // ==== Hooks to Gesture Responder system ====\n /**\n * Must return true if embedded in a native platform scroll view.\n */\n touchableHandleResponderTerminationRequest: function(): any {\n return !this.props.rejectResponderTermination;\n },\n\n /**\n * Must return true to start the process of `Touchable`.\n */\n touchableHandleStartShouldSetResponder: function(): any {\n return !this.props.disabled;\n },\n\n /**\n * Return true to cancel press on long press.\n */\n touchableLongPressCancelsPress: function(): boolean {\n return true;\n },\n\n /**\n * Place as callback for a DOM element's `onResponderGrant` event.\n * @param {SyntheticEvent} e Synthetic event from event system.\n *\n */\n touchableHandleResponderGrant: function(e: PressEvent) {\n const dispatchID = e.currentTarget;\n // Since e is used in a callback invoked on another event loop\n // (as in setTimeout etc), we need to call e.persist() on the\n // event to make sure it doesn't get reused in the event object pool.\n e.persist();\n\n this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout);\n this.pressOutDelayTimeout = null;\n\n this.state.touchable.touchState = States.NOT_RESPONDER;\n this.state.touchable.responderID = dispatchID;\n this._receiveSignal(Signals.RESPONDER_GRANT, e);\n let delayMS =\n this.touchableGetHighlightDelayMS !== undefined\n ? Math.max(this.touchableGetHighlightDelayMS(), 0)\n : HIGHLIGHT_DELAY_MS;\n delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS;\n if (delayMS !== 0) {\n this.touchableDelayTimeout = setTimeout(\n this._handleDelay.bind(this, e),\n delayMS,\n );\n } else {\n this._handleDelay(e);\n }\n\n let longDelayMS =\n this.touchableGetLongPressDelayMS !== undefined\n ? Math.max(this.touchableGetLongPressDelayMS(), 10)\n : LONG_PRESS_DELAY_MS;\n longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS;\n this.longPressDelayTimeout = setTimeout(\n this._handleLongDelay.bind(this, e),\n longDelayMS + delayMS,\n );\n },\n\n /**\n * Place as callback for a DOM element's `onResponderRelease` event.\n */\n touchableHandleResponderRelease: function(e: PressEvent) {\n this.pressInLocation = null;\n this._receiveSignal(Signals.RESPONDER_RELEASE, e);\n },\n\n /**\n * Place as callback for a DOM element's `onResponderTerminate` event.\n */\n touchableHandleResponderTerminate: function(e: PressEvent) {\n this.pressInLocation = null;\n this._receiveSignal(Signals.RESPONDER_TERMINATED, e);\n },\n\n /**\n * Place as callback for a DOM element's `onResponderMove` event.\n */\n touchableHandleResponderMove: function(e: PressEvent) {\n // Measurement may not have returned yet.\n if (!this.state.touchable.positionOnActivate) {\n return;\n }\n\n const positionOnActivate = this.state.touchable.positionOnActivate;\n const dimensionsOnActivate = this.state.touchable.dimensionsOnActivate;\n const pressRectOffset = this.touchableGetPressRectOffset\n ? this.touchableGetPressRectOffset()\n : {\n left: PRESS_EXPAND_PX,\n right: PRESS_EXPAND_PX,\n top: PRESS_EXPAND_PX,\n bottom: PRESS_EXPAND_PX,\n };\n\n let pressExpandLeft = pressRectOffset.left;\n let pressExpandTop = pressRectOffset.top;\n let pressExpandRight = pressRectOffset.right;\n let pressExpandBottom = pressRectOffset.bottom;\n\n const hitSlop = this.touchableGetHitSlop\n ? this.touchableGetHitSlop()\n : null;\n\n if (hitSlop) {\n pressExpandLeft += hitSlop.left || 0;\n pressExpandTop += hitSlop.top || 0;\n pressExpandRight += hitSlop.right || 0;\n pressExpandBottom += hitSlop.bottom || 0;\n }\n\n const touch = extractSingleTouch(e.nativeEvent);\n const pageX = touch && touch.pageX;\n const pageY = touch && touch.pageY;\n\n if (this.pressInLocation) {\n const movedDistance = this._getDistanceBetweenPoints(\n pageX,\n pageY,\n this.pressInLocation.pageX,\n this.pressInLocation.pageY,\n );\n if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) {\n this._cancelLongPressDelayTimeout();\n }\n }\n\n const isTouchWithinActive =\n pageX > positionOnActivate.left - pressExpandLeft &&\n pageY > positionOnActivate.top - pressExpandTop &&\n pageX <\n positionOnActivate.left +\n dimensionsOnActivate.width +\n pressExpandRight &&\n pageY <\n positionOnActivate.top +\n dimensionsOnActivate.height +\n pressExpandBottom;\n if (isTouchWithinActive) {\n const prevState = this.state.touchable.touchState;\n this._receiveSignal(Signals.ENTER_PRESS_RECT, e);\n const curState = this.state.touchable.touchState;\n if (\n curState === States.RESPONDER_INACTIVE_PRESS_IN &&\n prevState !== States.RESPONDER_INACTIVE_PRESS_IN\n ) {\n // fix for t7967420\n this._cancelLongPressDelayTimeout();\n }\n } else {\n this._cancelLongPressDelayTimeout();\n this._receiveSignal(Signals.LEAVE_PRESS_RECT, e);\n }\n },\n\n /**\n * Invoked when the item receives focus. Mixers might override this to\n * visually distinguish the `VisualRect` so that the user knows that it\n * currently has the focus. Most platforms only support a single element being\n * focused at a time, in which case there may have been a previously focused\n * element that was blurred just prior to this. This can be overridden when\n * using `Touchable.Mixin.withoutDefaultFocusAndBlur`.\n */\n touchableHandleFocus: function(e: Event) {\n this.props.onFocus && this.props.onFocus(e);\n },\n\n /**\n * Invoked when the item loses focus. Mixers might override this to\n * visually distinguish the `VisualRect` so that the user knows that it\n * no longer has focus. Most platforms only support a single element being\n * focused at a time, in which case the focus may have moved to another.\n * This can be overridden when using\n * `Touchable.Mixin.withoutDefaultFocusAndBlur`.\n */\n touchableHandleBlur: function(e: Event) {\n this.props.onBlur && this.props.onBlur(e);\n },\n\n // ==== Abstract Application Callbacks ====\n\n /**\n * Invoked when the item should be highlighted. Mixers should implement this\n * to visually distinguish the `VisualRect` so that the user knows that\n * releasing a touch will result in a \"selection\" (analog to click).\n *\n * @abstract\n * touchableHandleActivePressIn: function,\n */\n\n /**\n * Invoked when the item is \"active\" (in that it is still eligible to become\n * a \"select\") but the touch has left the `PressRect`. Usually the mixer will\n * want to unhighlight the `VisualRect`. If the user (while pressing) moves\n * back into the `PressRect` `touchableHandleActivePressIn` will be invoked\n * again and the mixer should probably highlight the `VisualRect` again. This\n * event will not fire on an `touchEnd/mouseUp` event, only move events while\n * the user is depressing the mouse/touch.\n *\n * @abstract\n * touchableHandleActivePressOut: function\n */\n\n /**\n * Invoked when the item is \"selected\" - meaning the interaction ended by\n * letting up while the item was either in the state\n * `RESPONDER_ACTIVE_PRESS_IN` or `RESPONDER_INACTIVE_PRESS_IN`.\n *\n * @abstract\n * touchableHandlePress: function\n */\n\n /**\n * Invoked when the item is long pressed - meaning the interaction ended by\n * letting up while the item was in `RESPONDER_ACTIVE_LONG_PRESS_IN`. If\n * `touchableHandleLongPress` is *not* provided, `touchableHandlePress` will\n * be called as it normally is. If `touchableHandleLongPress` is provided, by\n * default any `touchableHandlePress` callback will not be invoked. To\n * override this default behavior, override `touchableLongPressCancelsPress`\n * to return false. As a result, `touchableHandlePress` will be called when\n * lifting up, even if `touchableHandleLongPress` has also been called.\n *\n * @abstract\n * touchableHandleLongPress: function\n */\n\n /**\n * Returns the number of millis to wait before triggering a highlight.\n *\n * @abstract\n * touchableGetHighlightDelayMS: function\n */\n\n /**\n * Returns the amount to extend the `HitRect` into the `PressRect`. Positive\n * numbers mean the size expands outwards.\n *\n * @abstract\n * touchableGetPressRectOffset: function\n */\n\n // ==== Internal Logic ====\n\n /**\n * Measures the `HitRect` node on activation. The Bounding rectangle is with\n * respect to viewport - not page, so adding the `pageXOffset/pageYOffset`\n * should result in points that are in the same coordinate system as an\n * event's `globalX/globalY` data values.\n *\n * - Consider caching this for the lifetime of the component, or possibly\n * being able to share this cache between any `ScrollMap` view.\n *\n * @sideeffects\n * @private\n */\n _remeasureMetricsOnActivation: function() {\n const responderID = this.state.touchable.responderID;\n if (responderID == null) {\n return;\n }\n\n if (typeof responderID === 'number') {\n UIManager.measure(responderID, this._handleQueryLayout);\n } else {\n responderID.measure(this._handleQueryLayout);\n }\n },\n\n _handleQueryLayout: function(\n l: number,\n t: number,\n w: number,\n h: number,\n globalX: number,\n globalY: number,\n ) {\n //don't do anything UIManager failed to measure node\n if (!l && !t && !w && !h && !globalX && !globalY) {\n return;\n }\n this.state.touchable.positionOnActivate &&\n Position.release(this.state.touchable.positionOnActivate);\n this.state.touchable.dimensionsOnActivate &&\n BoundingDimensions.release(this.state.touchable.dimensionsOnActivate);\n this.state.touchable.positionOnActivate = Position.getPooled(\n globalX,\n globalY,\n );\n this.state.touchable.dimensionsOnActivate = BoundingDimensions.getPooled(\n w,\n h,\n );\n },\n\n _handleDelay: function(e: PressEvent) {\n this.touchableDelayTimeout = null;\n this._receiveSignal(Signals.DELAY, e);\n },\n\n _handleLongDelay: function(e: PressEvent) {\n this.longPressDelayTimeout = null;\n const curState = this.state.touchable.touchState;\n if (\n curState === States.RESPONDER_ACTIVE_PRESS_IN ||\n curState === States.RESPONDER_ACTIVE_LONG_PRESS_IN\n ) {\n this._receiveSignal(Signals.LONG_PRESS_DETECTED, e);\n }\n },\n\n /**\n * Receives a state machine signal, performs side effects of the transition\n * and stores the new state. Validates the transition as well.\n *\n * @param {Signals} signal State machine signal.\n * @throws Error if invalid state transition or unrecognized signal.\n * @sideeffects\n */\n _receiveSignal: function(signal: Signal, e: PressEvent) {\n const responderID = this.state.touchable.responderID;\n const curState = this.state.touchable.touchState;\n const nextState = Transitions[curState] && Transitions[curState][signal];\n if (!responderID && signal === Signals.RESPONDER_RELEASE) {\n return;\n }\n if (!nextState) {\n throw new Error(\n 'Unrecognized signal `' +\n signal +\n '` or state `' +\n curState +\n '` for Touchable responder `' +\n typeof this.state.touchable.responderID ===\n 'number'\n ? this.state.touchable.responderID\n : 'host component' + '`',\n );\n }\n if (nextState === States.ERROR) {\n throw new Error(\n 'Touchable cannot transition from `' +\n curState +\n '` to `' +\n signal +\n '` for responder `' +\n typeof this.state.touchable.responderID ===\n 'number'\n ? this.state.touchable.responderID\n : '<>' + '`',\n );\n }\n if (curState !== nextState) {\n this._performSideEffectsForTransition(curState, nextState, signal, e);\n this.state.touchable.touchState = nextState;\n }\n },\n\n _cancelLongPressDelayTimeout: function() {\n this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout);\n this.longPressDelayTimeout = null;\n },\n\n _isHighlight: function(state: State): boolean {\n return (\n state === States.RESPONDER_ACTIVE_PRESS_IN ||\n state === States.RESPONDER_ACTIVE_LONG_PRESS_IN\n );\n },\n\n _savePressInLocation: function(e: PressEvent) {\n const touch = extractSingleTouch(e.nativeEvent);\n const pageX = touch && touch.pageX;\n const pageY = touch && touch.pageY;\n const locationX = touch && touch.locationX;\n const locationY = touch && touch.locationY;\n this.pressInLocation = {pageX, pageY, locationX, locationY};\n },\n\n _getDistanceBetweenPoints: function(\n aX: number,\n aY: number,\n bX: number,\n bY: number,\n ): number {\n const deltaX = aX - bX;\n const deltaY = aY - bY;\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n },\n\n /**\n * Will perform a transition between touchable states, and identify any\n * highlighting or unhighlighting that must be performed for this particular\n * transition.\n *\n * @param {States} curState Current Touchable state.\n * @param {States} nextState Next Touchable state.\n * @param {Signal} signal Signal that triggered the transition.\n * @param {Event} e Native event.\n * @sideeffects\n */\n _performSideEffectsForTransition: function(\n curState: State,\n nextState: State,\n signal: Signal,\n e: PressEvent,\n ) {\n const curIsHighlight = this._isHighlight(curState);\n const newIsHighlight = this._isHighlight(nextState);\n\n const isFinalSignal =\n signal === Signals.RESPONDER_TERMINATED ||\n signal === Signals.RESPONDER_RELEASE;\n\n if (isFinalSignal) {\n this._cancelLongPressDelayTimeout();\n }\n\n const isInitialTransition =\n curState === States.NOT_RESPONDER &&\n nextState === States.RESPONDER_INACTIVE_PRESS_IN;\n\n const isActiveTransition = !IsActive[curState] && IsActive[nextState];\n if (isInitialTransition || isActiveTransition) {\n this._remeasureMetricsOnActivation();\n }\n\n if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) {\n this.touchableHandleLongPress && this.touchableHandleLongPress(e);\n }\n\n if (newIsHighlight && !curIsHighlight) {\n this._startHighlight(e);\n } else if (!newIsHighlight && curIsHighlight) {\n this._endHighlight(e);\n }\n\n if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {\n const hasLongPressHandler = !!this.props.onLongPress;\n const pressIsLongButStillCallOnPress =\n IsLongPressingIn[curState] && // We *are* long pressing.. // But either has no long handler\n (!hasLongPressHandler || !this.touchableLongPressCancelsPress()); // or we're told to ignore it.\n\n const shouldInvokePress =\n !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress;\n if (shouldInvokePress && this.touchableHandlePress) {\n if (!newIsHighlight && !curIsHighlight) {\n // we never highlighted because of delay, but we should highlight now\n this._startHighlight(e);\n this._endHighlight(e);\n }\n if (Platform.OS === 'android' && !this.props.touchSoundDisabled) {\n SoundManager.playTouchSound();\n }\n this.touchableHandlePress(e);\n }\n }\n\n this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout);\n this.touchableDelayTimeout = null;\n },\n\n _startHighlight: function(e: PressEvent) {\n this._savePressInLocation(e);\n this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e);\n },\n\n _endHighlight: function(e: PressEvent) {\n if (this.touchableHandleActivePressOut) {\n if (\n this.touchableGetPressOutDelayMS &&\n this.touchableGetPressOutDelayMS()\n ) {\n this.pressOutDelayTimeout = setTimeout(() => {\n this.touchableHandleActivePressOut(e);\n }, this.touchableGetPressOutDelayMS());\n } else {\n this.touchableHandleActivePressOut(e);\n }\n }\n },\n\n withoutDefaultFocusAndBlur: ({}: $TEMPORARY$object<{||}>),\n};\n\n/**\n * Provide an optional version of the mixin where `touchableHandleFocus` and\n * `touchableHandleBlur` can be overridden. This allows appropriate defaults to\n * be set on TV platforms, without breaking existing implementations of\n * `Touchable`.\n */\nconst {\n touchableHandleFocus,\n touchableHandleBlur,\n ...TouchableMixinWithoutDefaultFocusAndBlur\n} = TouchableMixin;\nTouchableMixin.withoutDefaultFocusAndBlur = TouchableMixinWithoutDefaultFocusAndBlur;\n\nconst Touchable = {\n Mixin: TouchableMixin,\n TOUCH_TARGET_DEBUG: false, // Highlights all touchable targets. Toggle with Inspector.\n /**\n * Renders a debugging overlay to visualize touch target with hitSlop (might not work on Android).\n */\n renderDebugView: ({\n color,\n hitSlop,\n }: {\n color: string | number,\n hitSlop: EdgeInsetsProp,\n ...\n }): null | React.Node => {\n if (!Touchable.TOUCH_TARGET_DEBUG) {\n return null;\n }\n if (!__DEV__) {\n throw Error(\n 'Touchable.TOUCH_TARGET_DEBUG should not be enabled in prod!',\n );\n }\n const debugHitSlopStyle = {};\n hitSlop = hitSlop || {top: 0, bottom: 0, left: 0, right: 0};\n for (const key in hitSlop) {\n debugHitSlopStyle[key] = -hitSlop[key];\n }\n const normalizedColor = normalizeColor(color);\n if (typeof normalizedColor !== 'number') {\n return null;\n }\n const hexColor =\n '#' + ('00000000' + normalizedColor.toString(16)).substr(-8);\n return (\n =0.111.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.111 was deployed. To see the error,\n * delete this comment and run Flow. */\n {\n borderColor: hexColor.slice(0, -2) + '55', // More opaque\n backgroundColor: hexColor.slice(0, -2) + '0F', // Less opaque\n ...debugHitSlopStyle,\n },\n ]}\n />\n );\n },\n};\n\nconst styles = StyleSheet.create({\n debug: {\n position: 'absolute',\n borderWidth: 1,\n borderStyle: 'dashed',\n },\n});\n\nmodule.exports = Touchable;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst PooledClass = require('./PooledClass');\n\nconst twoArgumentPooler = PooledClass.twoArgumentPooler;\n\n/**\n * PooledClass representing the bounding rectangle of a region.\n *\n * @param {number} width Width of bounding rectangle.\n * @param {number} height Height of bounding rectangle.\n * @constructor BoundingDimensions\n */\nfunction BoundingDimensions(width, height) {\n this.width = width;\n this.height = height;\n}\n\nBoundingDimensions.prototype.destructor = function() {\n this.width = null;\n this.height = null;\n};\n\n/**\n * @param {HTMLElement} element Element to return `BoundingDimensions` for.\n * @return {BoundingDimensions} Bounding dimensions of `element`.\n */\nBoundingDimensions.getPooledFromElement = function(element) {\n return BoundingDimensions.getPooled(\n element.offsetWidth,\n element.offsetHeight,\n );\n};\n\nPooledClass.addPoolingTo(BoundingDimensions, twoArgumentPooler);\n\nmodule.exports = BoundingDimensions;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\nconst oneArgumentPooler = function(copyFieldsFrom) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, copyFieldsFrom);\n return instance;\n } else {\n return new Klass(copyFieldsFrom);\n }\n};\n\nconst twoArgumentPooler = function(a1, a2) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2);\n return instance;\n } else {\n return new Klass(a1, a2);\n }\n};\n\nconst threeArgumentPooler = function(a1, a2, a3) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3);\n return instance;\n } else {\n return new Klass(a1, a2, a3);\n }\n};\n\nconst fourArgumentPooler = function(a1, a2, a3, a4) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3, a4);\n return instance;\n } else {\n return new Klass(a1, a2, a3, a4);\n }\n};\n\nconst standardReleaser = function(instance) {\n const Klass = this;\n invariant(\n instance instanceof Klass,\n 'Trying to release an instance into a pool of a different type.',\n );\n instance.destructor();\n if (Klass.instancePool.length < Klass.poolSize) {\n Klass.instancePool.push(instance);\n }\n};\n\nconst DEFAULT_POOL_SIZE = 10;\nconst DEFAULT_POOLER = oneArgumentPooler;\n\ntype Pooler = any;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nconst addPoolingTo = function(\n CopyConstructor: Class,\n pooler: Pooler,\n): Class & {\n getPooled(\n ...args: $ReadOnlyArray\n ): /* arguments of the constructor */ T,\n release(instance: mixed): void,\n ...\n} {\n // Casting as any so that flow ignores the actual implementation and trusts\n // it to match the type we declared\n const NewKlass = (CopyConstructor: any);\n NewKlass.instancePool = [];\n NewKlass.getPooled = pooler || DEFAULT_POOLER;\n if (!NewKlass.poolSize) {\n NewKlass.poolSize = DEFAULT_POOL_SIZE;\n }\n NewKlass.release = standardReleaser;\n return NewKlass;\n};\n\nconst PooledClass = {\n addPoolingTo: addPoolingTo,\n oneArgumentPooler: (oneArgumentPooler: Pooler),\n twoArgumentPooler: (twoArgumentPooler: Pooler),\n threeArgumentPooler: (threeArgumentPooler: Pooler),\n fourArgumentPooler: (fourArgumentPooler: Pooler),\n};\n\nmodule.exports = PooledClass;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst PooledClass = require('./PooledClass');\n\nconst twoArgumentPooler = PooledClass.twoArgumentPooler;\n\n/**\n * Position does not expose methods for construction via an `HTMLDOMElement`,\n * because it isn't meaningful to construct such a thing without first defining\n * a frame of reference.\n *\n * @param {number} windowStartKey Key that window starts at.\n * @param {number} windowEndKey Key that window ends at.\n */\nfunction Position(left, top) {\n this.left = left;\n this.top = top;\n}\n\nPosition.prototype.destructor = function() {\n this.left = null;\n this.top = null;\n};\n\nPooledClass.addPoolingTo(Position, twoArgumentPooler);\n\nmodule.exports = Position;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst NativeEventEmitter = require('../../EventEmitter/NativeEventEmitter');\n\nimport NativeTVNavigationEventEmitter from './NativeTVNavigationEventEmitter';\nimport type EmitterSubscription from '../../vendor/emitter/EmitterSubscription';\n\nclass TVEventHandler {\n __nativeTVNavigationEventListener: ?EmitterSubscription = null;\n __nativeTVNavigationEventEmitter: ?NativeEventEmitter = null;\n\n enable(component: ?any, callback: Function): void {\n if (Platform.OS === 'ios' && !NativeTVNavigationEventEmitter) {\n return;\n }\n\n this.__nativeTVNavigationEventEmitter = new NativeEventEmitter(\n NativeTVNavigationEventEmitter,\n );\n this.__nativeTVNavigationEventListener = this.__nativeTVNavigationEventEmitter.addListener(\n 'onHWKeyEvent',\n data => {\n if (callback) {\n callback(component, data);\n }\n },\n );\n }\n\n disable(): void {\n if (this.__nativeTVNavigationEventListener) {\n this.__nativeTVNavigationEventListener.remove();\n delete this.__nativeTVNavigationEventListener;\n }\n if (this.__nativeTVNavigationEventEmitter) {\n delete this.__nativeTVNavigationEventEmitter;\n }\n }\n}\n\nmodule.exports = TVEventHandler;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get(\n 'TVNavigationEventEmitter',\n): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\nimport NativeSoundManager from './NativeSoundManager';\n\nconst SoundManager = {\n playTouchSound: function(): void {\n if (NativeSoundManager) {\n NativeSoundManager.playTouchSound();\n }\n },\n};\n\nmodule.exports = SoundManager;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\n/**\n * Native Module used for playing sounds in native platform.\n */\nexport interface Spec extends TurboModule {\n +playTouchSound: () => void;\n}\n\nexport default (TurboModuleRegistry.get('SoundManager'): ?Spec);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks static-only\n * \n */\n'use strict';\n\nvar invariant = require(\"./invariant\");\n/**\n * Constructs an enumeration with keys equal to their value.\n *\n * For example:\n *\n * var COLORS = keyMirror({blue: null, red: null});\n * var myColor = COLORS.blue;\n * var isColorValid = !!COLORS[myColor];\n *\n * The last line could not be performed if the values of the generated enum were\n * not equal to their keys.\n *\n * Input: {key1: val1, key2: val2}\n * Output: {key1: key1, key2: key2}\n *\n * @param {object} obj\n * @return {object}\n */\n\n\nvar keyMirror = function keyMirror(obj) {\n var ret = {};\n var key;\n !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;\n\n for (key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n\n ret[key] = key;\n }\n\n return ret;\n};\n\nmodule.exports = keyMirror;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict';\n\nvar validateFormat = process.env.NODE_ENV !== \"production\" ? function (format) {} : function (format) {\n if (format === undefined) {\n throw new Error('invariant(...): Second argument must be a string.');\n }\n};\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments to provide\n * information about what broke and what you were expecting.\n *\n * The invariant message will be stripped in production, but the invariant will\n * remain to ensure logic does not differ in production.\n */\n\nfunction invariant(condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n validateFormat(format);\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return String(args[argIndex++]);\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // Skip invariant's own stack frame.\n\n throw error;\n }\n}\n\nmodule.exports = invariant;","'use strict';\n\nfunction nullthrows(x, message) {\n if (x != null) {\n return x;\n }\n var error = new Error(message !== undefined ? message : 'Got unexpected ' + x);\n error.framesToPop = 1; // Skip nullthrows's own stack frame.\n throw error;\n}\n\nmodule.exports = nullthrows;\nmodule.exports.default = nullthrows;\n\nObject.defineProperty(module.exports, '__esModule', {value: true});\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport Pressability from '../../Pressability/Pressability.js';\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';\nimport TVTouchable from './TVTouchable.js';\nimport typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';\nimport {Commands} from 'react-native/Libraries/Components/View/ViewNativeComponent';\nimport ReactNative from 'react-native/Libraries/Renderer/shims/ReactNative';\nimport type {PressEvent} from 'react-native/Libraries/Types/CoreEventTypes';\nimport Platform from '../../Utilities/Platform';\nimport View from '../../Components/View/View';\nimport processColor from '../../StyleSheet/processColor';\nimport * as React from 'react';\n\ntype Props = $ReadOnly<{|\n ...React.ElementConfig,\n\n /**\n * Determines the type of background drawable that's going to be used to\n * display feedback. It takes an object with `type` property and extra data\n * depending on the `type`. It's recommended to use one of the static\n * methods to generate that dictionary.\n */\n background?: ?(\n | $ReadOnly<{|\n type: 'ThemeAttrAndroid',\n attribute:\n | 'selectableItemBackground'\n | 'selectableItemBackgroundBorderless',\n |}>\n | $ReadOnly<{|\n type: 'RippleAndroid',\n color: ?number,\n borderless: boolean,\n |}>\n ),\n\n /**\n * TV preferred focus (see documentation for the View component).\n */\n hasTVPreferredFocus?: ?boolean,\n\n /**\n * TV next focus down (see documentation for the View component).\n */\n nextFocusDown?: ?number,\n\n /**\n * TV next focus forward (see documentation for the View component).\n */\n nextFocusForward?: ?number,\n\n /**\n * TV next focus left (see documentation for the View component).\n */\n nextFocusLeft?: ?number,\n\n /**\n * TV next focus right (see documentation for the View component).\n */\n nextFocusRight?: ?number,\n\n /**\n * TV next focus up (see documentation for the View component).\n */\n nextFocusUp?: ?number,\n\n /**\n * Set to true to add the ripple effect to the foreground of the view, instead\n * of the background. This is useful if one of your child views has a\n * background of its own, or you're e.g. displaying images, and you don't want\n * the ripple to be covered by them.\n *\n * Check TouchableNativeFeedback.canUseNativeForeground() first, as this is\n * only available on Android 6.0 and above. If you try to use this on older\n * versions, this will fallback to background.\n */\n useForeground?: ?boolean,\n|}>;\n\ntype State = $ReadOnly<{|\n pressability: Pressability,\n|}>;\n\nclass TouchableNativeFeedback extends React.Component {\n /**\n * Creates a value for the `background` prop that uses the Android theme's\n * default background for selectable elements.\n */\n static SelectableBackground: () => $ReadOnly<{|\n attribute: 'selectableItemBackground',\n type: 'ThemeAttrAndroid',\n |}> = () => ({\n type: 'ThemeAttrAndroid',\n attribute: 'selectableItemBackground',\n });\n\n /**\n * Creates a value for the `background` prop that uses the Android theme's\n * default background for borderless selectable elements. Requires API 21+.\n */\n static SelectableBackgroundBorderless: () => $ReadOnly<{|\n attribute: 'selectableItemBackgroundBorderless',\n type: 'ThemeAttrAndroid',\n |}> = () => ({\n type: 'ThemeAttrAndroid',\n attribute: 'selectableItemBackgroundBorderless',\n });\n\n /**\n * Creates a value for the `background` prop that uses the Android ripple with\n * the supplied color. If `borderless` is true, the ripple will render outside\n * of the view bounds. Requires API 21+.\n */\n static Ripple: (\n color: string,\n borderless: boolean,\n ) => $ReadOnly<{|\n borderless: boolean,\n color: ?number,\n type: 'RippleAndroid',\n |}> = (color: string, borderless: boolean) => ({\n type: 'RippleAndroid',\n color: processColor(color),\n borderless,\n });\n\n /**\n * Whether `useForeground` is supported.\n */\n static canUseNativeForeground: () => boolean = () =>\n Platform.OS === 'android' && Platform.Version >= 23;\n\n _tvTouchable: ?TVTouchable;\n\n state: State = {\n pressability: new Pressability({\n getHitSlop: () => this.props.hitSlop,\n getLongPressDelayMS: () => {\n if (this.props.delayLongPress != null) {\n const maybeNumber = this.props.delayLongPress;\n if (typeof maybeNumber === 'number') {\n return maybeNumber;\n }\n }\n return 500;\n },\n getPressDelayMS: () => this.props.delayPressIn,\n getPressOutDelayMS: () => this.props.delayPressOut,\n getPressRectOffset: () => this.props.pressRetentionOffset,\n getTouchSoundDisabled: () => this.props.touchSoundDisabled,\n onLongPress: event => {\n if (this.props.onLongPress != null) {\n this.props.onLongPress(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n onPressIn: event => {\n if (Platform.OS === 'android') {\n this._dispatchPressedStateChange(true);\n this._dispatchHotspotUpdate(event);\n }\n if (this.props.onPressIn != null) {\n this.props.onPressIn(event);\n }\n },\n onPressMove: event => {\n if (Platform.OS === 'android') {\n this._dispatchHotspotUpdate(event);\n }\n },\n onPressOut: event => {\n if (Platform.OS === 'android') {\n this._dispatchPressedStateChange(false);\n }\n if (this.props.onPressOut != null) {\n this.props.onPressOut(event);\n }\n },\n onResponderTerminationRequest: () =>\n !this.props.rejectResponderTermination,\n onStartShouldSetResponder: () => !this.props.disabled,\n }),\n };\n\n _dispatchPressedStateChange(pressed: boolean): void {\n if (Platform.OS === 'android') {\n const hostComponentRef = ReactNative.findHostInstance_DEPRECATED(this);\n if (hostComponentRef == null) {\n console.warn(\n 'Touchable: Unable to find HostComponent instance. ' +\n 'Has your Touchable component been unmounted?',\n );\n } else {\n Commands.setPressed(hostComponentRef, pressed);\n }\n }\n }\n\n _dispatchHotspotUpdate(event: PressEvent): void {\n if (Platform.OS === 'android') {\n const {locationX, locationY} = event.nativeEvent;\n const hostComponentRef = ReactNative.findHostInstance_DEPRECATED(this);\n if (hostComponentRef == null) {\n console.warn(\n 'Touchable: Unable to find HostComponent instance. ' +\n 'Has your Touchable component been unmounted?',\n );\n } else {\n Commands.hotspotUpdate(\n hostComponentRef,\n locationX ?? 0,\n locationY ?? 0,\n );\n }\n }\n }\n\n render(): React.Node {\n const element = React.Children.only(this.props.children);\n const children = [element.props.children];\n if (__DEV__) {\n if (element.type === View) {\n children.push(\n ,\n );\n }\n }\n\n // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before\n // adopting `Pressability`, so preserve that behavior.\n const {\n onBlur,\n onFocus,\n ...eventHandlersWithoutBlurAndFocus\n } = this.state.pressability.getEventHandlers();\n\n return React.cloneElement(\n element,\n {\n ...eventHandlersWithoutBlurAndFocus,\n ...getBackgroundProp(\n this.props.background === undefined\n ? TouchableNativeFeedback.SelectableBackground()\n : this.props.background,\n this.props.useForeground === true,\n ),\n accessible: this.props.accessible !== false,\n accessibilityLabel: this.props.accessibilityLabel,\n accessibilityRole: this.props.accessibilityRole,\n accessibilityState: this.props.accessibilityState,\n accessibilityActions: this.props.accessibilityActions,\n onAccessibilityAction: this.props.onAccessibilityAction,\n accessibilityValue: this.props.accessibilityValue,\n importantForAccessibility: this.props.importantForAccessibility,\n accessibilityLiveRegion: this.props.accessibilityLiveRegion,\n accessibilityViewIsModal: this.props.accessibilityViewIsModal,\n accessibilityElementsHidden: this.props.accessibilityElementsHidden,\n hasTVPreferredFocus: this.props.hasTVPreferredFocus,\n hitSlop: this.props.hitSlop,\n focusable:\n this.props.focusable !== false &&\n this.props.onPress !== undefined &&\n !this.props.disabled,\n nativeID: this.props.nativeID,\n nextFocusDown: this.props.nextFocusDown,\n nextFocusForward: this.props.nextFocusForward,\n nextFocusLeft: this.props.nextFocusLeft,\n nextFocusRight: this.props.nextFocusRight,\n nextFocusUp: this.props.nextFocusUp,\n onLayout: this.props.onLayout,\n testID: this.props.testID,\n },\n ...children,\n );\n }\n\n componentDidMount(): void {\n if (Platform.isTV) {\n this._tvTouchable = new TVTouchable(this, {\n getDisabled: () => this.props.disabled === true,\n onBlur: event => {\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n });\n }\n }\n\n componentWillUnmount(): void {\n if (Platform.isTV) {\n if (this._tvTouchable != null) {\n this._tvTouchable.destroy();\n }\n }\n this.state.pressability.reset();\n }\n}\n\nconst getBackgroundProp =\n Platform.OS === 'android'\n ? (background, useForeground) =>\n useForeground && TouchableNativeFeedback.canUseNativeForeground()\n ? {nativeForegroundAndroid: background}\n : {nativeBackgroundAndroid: background}\n : (background, useForeground) => null;\n\nmodule.exports = TouchableNativeFeedback;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport {isHoverEnabled} from './HoverState.js';\nimport invariant from 'invariant';\nimport SoundManager from '../Components/Sound/SoundManager.js';\nimport type {EdgeInsetsProp} from '../StyleSheet/EdgeInsetsPropType.js';\nimport type {\n BlurEvent,\n FocusEvent,\n PressEvent,\n MouseEvent,\n} from '../Types/CoreEventTypes.js';\nimport Platform from '../Utilities/Platform';\nimport UIManager from '../ReactNative/UIManager';\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\nimport * as React from 'react';\n\nexport type PressabilityConfig = $ReadOnly<{|\n /**\n * Returns the amount to extend the `VisualRect` by to create `HitRect`.\n */\n getHitSlop?: ?() => ?EdgeInsetsProp,\n\n /**\n * Returns the duration to wait after hover in before activation.\n */\n getHoverInDelayMS?: ?() => ?number,\n\n /**\n * Returns the duration to wait after hover out before deactivation.\n */\n getHoverOutDelayMS?: ?() => ?number,\n\n /**\n * Returns the duration (in addition to the value from `getPressDelayMS`)\n * after which a press gesture becomes a long press gesture.\n */\n getLongPressDelayMS?: ?() => ?number,\n\n /**\n * Returns the duration to wait after press down before activation.\n */\n getPressDelayMS?: ?() => ?number,\n\n /**\n * Returns the duration to wait after letting up before deactivation.\n */\n getPressOutDelayMS?: ?() => ?number,\n\n /**\n * Returns the amount to extend the `HitRect` by to create `PressRect`.\n */\n getPressRectOffset?: ?() => ?EdgeInsetsProp,\n\n /**\n * Returns true to disable playing system sound on touch (Android Only)\n **/\n getTouchSoundDisabled?: ?() => ?boolean,\n\n /**\n * Called after the element loses focus.\n */\n onBlur?: ?(event: BlurEvent) => void,\n\n /**\n * Called after the element is focused.\n */\n onFocus?: ?(event: FocusEvent) => void,\n\n /**\n * Called when the hover is activated to provide visual feedback.\n */\n onHoverIn?: ?(event: MouseEvent) => void,\n\n /**\n * Called when the hover is deactivated to undo visual feedback.\n */\n onHoverOut?: ?(event: MouseEvent) => void,\n\n /**\n * Called when a long press gesture has been triggered.\n */\n onLongPress?: ?(event: PressEvent) => void,\n\n /**\n * Returns whether a long press gesture should cancel the press gesture.\n * Defaults to true.\n */\n onLongPressShouldCancelPress?: ?() => boolean,\n\n /**\n * Called when a press gestute has been triggered.\n */\n onPress?: ?(event: PressEvent) => void,\n\n /**\n * Called when the press is activated to provide visual feedback.\n */\n onPressIn?: ?(event: PressEvent) => void,\n\n /**\n * Called when the press location moves. (This should rarely be used.)\n */\n onPressMove?: ?(event: PressEvent) => void,\n\n /**\n * Called when the press is deactivated to undo visual feedback.\n */\n onPressOut?: ?(event: PressEvent) => void,\n\n /**\n * Returns whether to yield to a lock termination request (e.g. if a native\n * scroll gesture attempts to steal the responder lock).\n */\n onResponderTerminationRequest?: ?() => boolean,\n\n /**\n * Returns whether to start a press gesture.\n */\n onStartShouldSetResponder?: ?() => boolean,\n|}>;\n\ntype EventHandlers = $ReadOnly<{|\n onBlur: (event: BlurEvent) => void,\n onClick: (event: PressEvent) => void,\n onFocus: (event: FocusEvent) => void,\n onMouseEnter?: (event: MouseEvent) => void,\n onMouseLeave?: (event: MouseEvent) => void,\n onResponderGrant: (event: PressEvent) => void,\n onResponderMove: (event: PressEvent) => void,\n onResponderRelease: (event: PressEvent) => void,\n onResponderTerminate: (event: PressEvent) => void,\n onResponderTerminationRequest: () => boolean,\n onStartShouldSetResponder: () => boolean,\n|}>;\n\ntype TouchState =\n | 'NOT_RESPONDER'\n | 'RESPONDER_INACTIVE_PRESS_IN'\n | 'RESPONDER_INACTIVE_PRESS_OUT'\n | 'RESPONDER_ACTIVE_PRESS_IN'\n | 'RESPONDER_ACTIVE_PRESS_OUT'\n | 'RESPONDER_ACTIVE_LONG_PRESS_IN'\n | 'RESPONDER_ACTIVE_LONG_PRESS_OUT'\n | 'ERROR';\n\ntype TouchSignal =\n | 'DELAY'\n | 'RESPONDER_GRANT'\n | 'RESPONDER_RELEASE'\n | 'RESPONDER_TERMINATED'\n | 'ENTER_PRESS_RECT'\n | 'LEAVE_PRESS_RECT'\n | 'LONG_PRESS_DETECTED';\n\nconst Transitions = Object.freeze({\n NOT_RESPONDER: {\n DELAY: 'ERROR',\n RESPONDER_GRANT: 'RESPONDER_INACTIVE_PRESS_IN',\n RESPONDER_RELEASE: 'ERROR',\n RESPONDER_TERMINATED: 'ERROR',\n ENTER_PRESS_RECT: 'ERROR',\n LEAVE_PRESS_RECT: 'ERROR',\n LONG_PRESS_DETECTED: 'ERROR',\n },\n RESPONDER_INACTIVE_PRESS_IN: {\n DELAY: 'RESPONDER_ACTIVE_PRESS_IN',\n RESPONDER_GRANT: 'ERROR',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'RESPONDER_INACTIVE_PRESS_IN',\n LEAVE_PRESS_RECT: 'RESPONDER_INACTIVE_PRESS_OUT',\n LONG_PRESS_DETECTED: 'ERROR',\n },\n RESPONDER_INACTIVE_PRESS_OUT: {\n DELAY: 'RESPONDER_ACTIVE_PRESS_OUT',\n RESPONDER_GRANT: 'ERROR',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'RESPONDER_INACTIVE_PRESS_IN',\n LEAVE_PRESS_RECT: 'RESPONDER_INACTIVE_PRESS_OUT',\n LONG_PRESS_DETECTED: 'ERROR',\n },\n RESPONDER_ACTIVE_PRESS_IN: {\n DELAY: 'ERROR',\n RESPONDER_GRANT: 'ERROR',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'RESPONDER_ACTIVE_PRESS_IN',\n LEAVE_PRESS_RECT: 'RESPONDER_ACTIVE_PRESS_OUT',\n LONG_PRESS_DETECTED: 'RESPONDER_ACTIVE_LONG_PRESS_IN',\n },\n RESPONDER_ACTIVE_PRESS_OUT: {\n DELAY: 'ERROR',\n RESPONDER_GRANT: 'ERROR',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'RESPONDER_ACTIVE_PRESS_IN',\n LEAVE_PRESS_RECT: 'RESPONDER_ACTIVE_PRESS_OUT',\n LONG_PRESS_DETECTED: 'ERROR',\n },\n RESPONDER_ACTIVE_LONG_PRESS_IN: {\n DELAY: 'ERROR',\n RESPONDER_GRANT: 'ERROR',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'RESPONDER_ACTIVE_LONG_PRESS_IN',\n LEAVE_PRESS_RECT: 'RESPONDER_ACTIVE_LONG_PRESS_OUT',\n LONG_PRESS_DETECTED: 'RESPONDER_ACTIVE_LONG_PRESS_IN',\n },\n RESPONDER_ACTIVE_LONG_PRESS_OUT: {\n DELAY: 'ERROR',\n RESPONDER_GRANT: 'ERROR',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'RESPONDER_ACTIVE_LONG_PRESS_IN',\n LEAVE_PRESS_RECT: 'RESPONDER_ACTIVE_LONG_PRESS_OUT',\n LONG_PRESS_DETECTED: 'ERROR',\n },\n ERROR: {\n DELAY: 'NOT_RESPONDER',\n RESPONDER_GRANT: 'RESPONDER_INACTIVE_PRESS_IN',\n RESPONDER_RELEASE: 'NOT_RESPONDER',\n RESPONDER_TERMINATED: 'NOT_RESPONDER',\n ENTER_PRESS_RECT: 'NOT_RESPONDER',\n LEAVE_PRESS_RECT: 'NOT_RESPONDER',\n LONG_PRESS_DETECTED: 'NOT_RESPONDER',\n },\n});\n\nconst isActiveSignal = signal =>\n signal === 'RESPONDER_ACTIVE_PRESS_IN' ||\n signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN';\n\nconst isActivationSignal = signal =>\n signal === 'RESPONDER_ACTIVE_PRESS_OUT' ||\n signal === 'RESPONDER_ACTIVE_PRESS_IN';\n\nconst isPressInSignal = signal =>\n signal === 'RESPONDER_INACTIVE_PRESS_IN' ||\n signal === 'RESPONDER_ACTIVE_PRESS_IN' ||\n signal === 'RESPONDER_ACTIVE_LONG_PRESS_IN';\n\nconst isTerminalSignal = signal =>\n signal === 'RESPONDER_TERMINATED' || signal === 'RESPONDER_RELEASE';\n\nconst DEFAULT_LONG_PRESS_DELAY_MS = 500;\nconst DEFAULT_PRESS_DELAY_MS = 0;\nconst DEFAULT_PRESS_RECT_OFFSETS = {\n bottom: 30,\n left: 20,\n right: 20,\n top: 20,\n};\n\n/**\n * Pressability implements press handling capabilities.\n *\n * =========================== Pressability Tutorial ===========================\n *\n * The `Pressability` class helps you create press interactions by analyzing the\n * geometry of elements and observing when another responder (e.g. ScrollView)\n * has stolen the touch lock. It offers hooks for your component to provide\n * interaction feedback to the user:\n *\n * - When a press has activated (e.g. highlight an element)\n * - When a press has deactivated (e.g. un-highlight an element)\n * - When a press sould trigger an action, meaning it activated and deactivated\n * while within the geometry of the element without the lock being stolen.\n *\n * A high quality interaction isn't as simple as you might think. There should\n * be a slight delay before activation. Moving your finger beyond an element's\n * bounds should trigger deactivation, but moving the same finger back within an\n * element's bounds should trigger reactivation.\n *\n * In order to use `Pressability`, do the following:\n *\n * 1. Instantiate `Pressability` and store it on your component's state.\n *\n * state = {\n * pressability: new Pressability({\n * // ...\n * }),\n * };\n *\n * 2. Choose the rendered component who should collect the press events. On that\n * element, spread `pressability.getEventHandlers()` into its props.\n *\n * return (\n * \n * );\n *\n * 3. Reset `Pressability` when your component unmounts.\n *\n * componentWillUnmount() {\n * this.state.pressability.reset();\n * }\n *\n * ==================== Pressability Implementation Details ====================\n *\n * `Pressability` only assumes that there exists a `HitRect` node. The `PressRect`\n * is an abstract box that is extended beyond the `HitRect`.\n *\n * # Geometry\n *\n * ┌────────────────────────┐\n * │ ┌──────────────────┐ │ - Presses start anywhere within `HitRect`, which\n * │ │ ┌────────────┐ │ │ is expanded via the prop `getHitSlop`.\n * │ │ │ VisualRect │ │ │\n * │ │ └────────────┘ │ │ - When pressed down for sufficient amount of time\n * │ │ HitRect │ │ before letting up, `VisualRect` activates for\n * │ └──────────────────┘ │ as long as the press stays within `PressRect`.\n * │ PressRect o │\n * └────────────────────│───┘\n * Out Region └────── `PressRect`, which is expanded via the prop\n * `getPressRectOffset`, allows presses to move\n * beyond `HitRect` while maintaining activation\n * and being eligible for a \"press\".\n *\n * # State Machine\n *\n * ┌───────────────┐ ◀──── RESPONDER_RELEASE\n * │ NOT_RESPONDER │\n * └───┬───────────┘ ◀──── RESPONDER_TERMINATED\n * │\n * │ RESPONDER_GRANT (HitRect)\n * │\n * ▼\n * ┌─────────────────────┐ ┌───────────────────┐ ┌───────────────────┐\n * │ RESPONDER_INACTIVE_ │ DELAY │ RESPONDER_ACTIVE_ │ T + DELAY │ RESPONDER_ACTIVE_ │\n * │ PRESS_IN ├────────▶ │ PRESS_IN ├────────────▶ │ LONG_PRESS_IN │\n * └─┬───────────────────┘ └─┬─────────────────┘ └─┬─────────────────┘\n * │ ▲ │ ▲ │ ▲\n * │LEAVE_ │ │LEAVE_ │ │LEAVE_ │\n * │PRESS_RECT │ENTER_ │PRESS_RECT │ENTER_ │PRESS_RECT │ENTER_\n * │ │PRESS_RECT │ │PRESS_RECT │ │PRESS_RECT\n * ▼ │ ▼ │ ▼ │\n * ┌─────────────┴───────┐ ┌─────────────┴─────┐ ┌─────────────┴─────┐\n * │ RESPONDER_INACTIVE_ │ DELAY │ RESPONDER_ACTIVE_ │ │ RESPONDER_ACTIVE_ │\n * │ PRESS_OUT ├────────▶ │ PRESS_OUT │ │ LONG_PRESS_OUT │\n * └─────────────────────┘ └───────────────────┘ └───────────────────┘\n *\n * T + DELAY => LONG_PRESS_DELAY + DELAY\n *\n * Not drawn are the side effects of each transition. The most important side\n * effect is the invocation of `onPress` and `onLongPress` that occur when a\n * responder is release while in the \"press in\" states.\n */\nexport default class Pressability {\n _config: PressabilityConfig;\n _eventHandlers: ?EventHandlers = null;\n _hoverInDelayTimeout: ?TimeoutID = null;\n _hoverOutDelayTimeout: ?TimeoutID = null;\n _isHovered: boolean = false;\n _longPressDelayTimeout: ?TimeoutID = null;\n _pressDelayTimeout: ?TimeoutID = null;\n _pressOutDelayTimeout: ?TimeoutID = null;\n _responderID: ?number | React.ElementRef> = null;\n _responderRegion: ?$ReadOnly<{|\n bottom: number,\n left: number,\n right: number,\n top: number,\n |}> = null;\n _touchActivatePosition: ?$ReadOnly<{|\n pageX: number,\n pageY: number,\n |}>;\n _touchState: TouchState = 'NOT_RESPONDER';\n\n constructor(config: PressabilityConfig) {\n this._config = config;\n }\n\n /**\n * Resets any pending timers. This should be called on unmount.\n */\n reset(): void {\n this._cancelHoverInDelayTimeout();\n this._cancelHoverOutDelayTimeout();\n this._cancelLongPressDelayTimeout();\n this._cancelPressDelayTimeout();\n this._cancelPressOutDelayTimeout();\n }\n\n /**\n * Returns a set of props to spread into the interactive element.\n */\n getEventHandlers(): EventHandlers {\n if (this._eventHandlers == null) {\n this._eventHandlers = this._createEventHandlers();\n }\n return this._eventHandlers;\n }\n\n _createEventHandlers(): EventHandlers {\n const focusEventHandlers = {\n onBlur: (event: BlurEvent): void => {\n const {onBlur} = this._config;\n if (onBlur != null) {\n onBlur(event);\n }\n },\n onFocus: (event: FocusEvent): void => {\n const {onFocus} = this._config;\n if (onFocus != null) {\n onFocus(event);\n }\n },\n };\n\n const responderEventHandlers = {\n onStartShouldSetResponder: () => {\n const {onStartShouldSetResponder} = this._config;\n return onStartShouldSetResponder == null\n ? true\n : onStartShouldSetResponder();\n },\n\n onResponderGrant: (event: PressEvent): void => {\n event.persist();\n\n this._cancelPressOutDelayTimeout();\n\n this._responderID = event.currentTarget;\n this._touchState = 'NOT_RESPONDER';\n this._receiveSignal('RESPONDER_GRANT', event);\n\n const {getLongPressDelayMS, getPressDelayMS} = this._config;\n\n const pressDelay = getDelayMS(\n getPressDelayMS,\n 0,\n DEFAULT_PRESS_DELAY_MS,\n );\n if (pressDelay > 0) {\n this._pressDelayTimeout = setTimeout(() => {\n this._receiveSignal('DELAY', event);\n }, pressDelay);\n } else {\n this._receiveSignal('DELAY', event);\n }\n\n const longPressDelay = getDelayMS(\n getLongPressDelayMS,\n 10,\n DEFAULT_LONG_PRESS_DELAY_MS,\n );\n this._longPressDelayTimeout = setTimeout(() => {\n this._handleLongPress(event);\n }, longPressDelay + pressDelay);\n },\n\n onResponderMove: (event: PressEvent): void => {\n if (this._config.onPressMove != null) {\n this._config.onPressMove(event);\n }\n\n // Region may not have finished being measured, yet.\n const responderRegion = this._responderRegion;\n if (responderRegion == null) {\n return;\n }\n\n const touch = getTouchFromPressEvent(event);\n if (touch == null) {\n this._cancelLongPressDelayTimeout();\n this._receiveSignal('LEAVE_PRESS_RECT', event);\n return;\n }\n\n if (this._touchActivatePosition != null) {\n const deltaX = this._touchActivatePosition.pageX - touch.pageX;\n const deltaY = this._touchActivatePosition.pageY - touch.pageY;\n if (Math.hypot(deltaX, deltaY) > 10) {\n this._cancelLongPressDelayTimeout();\n }\n }\n\n if (this._isTouchWithinResponderRegion(touch, responderRegion)) {\n this._receiveSignal('ENTER_PRESS_RECT', event);\n } else {\n this._cancelLongPressDelayTimeout();\n this._receiveSignal('LEAVE_PRESS_RECT', event);\n }\n },\n\n onResponderRelease: (event: PressEvent): void => {\n this._receiveSignal('RESPONDER_RELEASE', event);\n },\n\n onResponderTerminate: (event: PressEvent): void => {\n this._receiveSignal('RESPONDER_TERMINATED', event);\n },\n\n onResponderTerminationRequest: (): boolean => {\n const {onResponderTerminationRequest} = this._config;\n return onResponderTerminationRequest == null\n ? true\n : onResponderTerminationRequest();\n },\n\n onClick: (event: PressEvent) => {\n const {onPress} = this._config;\n if (onPress != null) {\n onPress(event);\n }\n },\n };\n\n const mouseEventHandlers =\n Platform.OS === 'ios' || Platform.OS === 'android'\n ? null\n : {\n onMouseEnter: (event: MouseEvent): void => {\n if (isHoverEnabled()) {\n this._isHovered = true;\n this._cancelHoverOutDelayTimeout();\n const {onHoverIn, getHoverInDelayMS} = this._config;\n if (onHoverIn != null) {\n const delay = getDelayMS(getHoverInDelayMS);\n if (delay > 0) {\n this._hoverInDelayTimeout = setTimeout(() => {\n onHoverIn(event);\n }, delay);\n } else {\n onHoverIn(event);\n }\n }\n }\n },\n\n onMouseLeave: (event: MouseEvent): void => {\n if (this._isHovered) {\n this._isHovered = false;\n this._cancelHoverInDelayTimeout();\n const {onHoverOut, getHoverOutDelayMS} = this._config;\n if (onHoverOut != null) {\n const delay = getDelayMS(getHoverOutDelayMS);\n if (delay > 0) {\n this._hoverInDelayTimeout = setTimeout(() => {\n onHoverOut(event);\n }, delay);\n } else {\n onHoverOut(event);\n }\n }\n }\n },\n };\n\n return {\n ...focusEventHandlers,\n ...responderEventHandlers,\n ...mouseEventHandlers,\n };\n }\n\n /**\n * Receives a state machine signal, performs side effects of the transition\n * and stores the new state. Validates the transition as well.\n */\n _receiveSignal(signal: TouchSignal, event: PressEvent): void {\n const prevState = this._touchState;\n const nextState = Transitions[prevState]?.[signal];\n if (this._responderID == null && signal === 'RESPONDER_RELEASE') {\n return;\n }\n invariant(\n nextState != null && nextState !== 'ERROR',\n 'Pressability: Invalid signal `%s` for state `%s` on responder: %s',\n signal,\n prevState,\n typeof this._responderID === 'number'\n ? this._responderID\n : '<>',\n );\n if (prevState !== nextState) {\n this._performTransitionSideEffects(prevState, nextState, signal, event);\n this._touchState = nextState;\n }\n }\n\n /**\n * Performs a transition between touchable states and identify any activations\n * or deactivations (and callback invocations).\n */\n _performTransitionSideEffects(\n prevState: TouchState,\n nextState: TouchState,\n signal: TouchSignal,\n event: PressEvent,\n ): void {\n if (isTerminalSignal(signal)) {\n this._touchActivatePosition = null;\n this._cancelLongPressDelayTimeout();\n }\n\n const isInitialTransition =\n prevState === 'NOT_RESPONDER' &&\n nextState === 'RESPONDER_INACTIVE_PRESS_IN';\n\n const isActivationTransiton =\n !isActivationSignal(prevState) && isActivationSignal(nextState);\n\n if (isInitialTransition || isActivationTransiton) {\n this._measureResponderRegion();\n }\n\n if (isPressInSignal(prevState) && signal === 'LONG_PRESS_DETECTED') {\n const {onLongPress} = this._config;\n if (onLongPress != null) {\n onLongPress(event);\n }\n }\n\n const isPrevActive = isActiveSignal(prevState);\n const isNextActive = isActiveSignal(nextState);\n\n if (!isPrevActive && isNextActive) {\n this._activate(event);\n } else if (isPrevActive && !isNextActive) {\n this._deactivate(event);\n }\n\n if (isPressInSignal(prevState) && signal === 'RESPONDER_RELEASE') {\n const {onLongPress, onPress, getTouchSoundDisabled} = this._config;\n if (onPress != null) {\n const isPressCanceledByLongPress =\n onLongPress != null &&\n prevState === 'RESPONDER_ACTIVE_LONG_PRESS_IN' &&\n this._shouldLongPressCancelPress();\n if (!isPressCanceledByLongPress) {\n // If we never activated (due to delays), activate and deactivate now.\n if (!isNextActive && !isPrevActive) {\n this._activate(event);\n this._deactivate(event);\n }\n const isTouchSoundDisabled =\n (getTouchSoundDisabled == null ? null : getTouchSoundDisabled()) ??\n false;\n if (Platform.OS === 'android' && !isTouchSoundDisabled) {\n SoundManager.playTouchSound();\n }\n onPress(event);\n }\n }\n }\n\n this._cancelPressDelayTimeout();\n }\n\n _activate(event: PressEvent): void {\n const {onPressIn} = this._config;\n const touch = getTouchFromPressEvent(event);\n this._touchActivatePosition = {\n pageX: touch.pageX,\n pageY: touch.pageY,\n };\n if (onPressIn != null) {\n onPressIn(event);\n }\n }\n\n _deactivate(event: PressEvent): void {\n const {onPressOut, getPressOutDelayMS} = this._config;\n if (onPressOut != null) {\n const delay = getDelayMS(getPressOutDelayMS);\n if (delay > 0) {\n this._pressOutDelayTimeout = setTimeout(() => {\n onPressOut(event);\n }, delay);\n } else {\n onPressOut(event);\n }\n }\n }\n\n _measureResponderRegion(): void {\n if (this._responderID == null) {\n return;\n }\n\n if (typeof this._responderID === 'number') {\n UIManager.measure(this._responderID, this._measureCallback);\n } else {\n this._responderID.measure(this._measureCallback);\n }\n }\n\n _measureCallback = (left, top, width, height, pageX, pageY) => {\n if (!left && !top && !width && !height && !pageX && !pageY) {\n return;\n }\n this._responderRegion = {\n bottom: pageY + height,\n left: pageX,\n right: pageX + width,\n top: pageY,\n };\n };\n\n _isTouchWithinResponderRegion(\n touch: $PropertyType,\n responderRegion: $ReadOnly<{|\n bottom: number,\n left: number,\n right: number,\n top: number,\n |}>,\n ): boolean {\n const {getHitSlop, getPressRectOffset} = this._config;\n\n let regionBottom = responderRegion.bottom;\n let regionLeft = responderRegion.left;\n let regionRight = responderRegion.right;\n let regionTop = responderRegion.top;\n\n const hitSlop = getHitSlop == null ? null : getHitSlop();\n if (hitSlop != null) {\n if (hitSlop.bottom != null) {\n regionBottom += hitSlop.bottom;\n }\n if (hitSlop.left != null) {\n regionLeft -= hitSlop.left;\n }\n if (hitSlop.right != null) {\n regionRight += hitSlop.right;\n }\n if (hitSlop.top != null) {\n regionTop -= hitSlop.top;\n }\n }\n\n const rectOffset = getPressRectOffset == null ? null : getPressRectOffset();\n regionBottom +=\n rectOffset == null || rectOffset.bottom == null\n ? DEFAULT_PRESS_RECT_OFFSETS.bottom\n : rectOffset.bottom;\n regionLeft -=\n rectOffset == null || rectOffset.left == null\n ? DEFAULT_PRESS_RECT_OFFSETS.left\n : rectOffset.left;\n regionRight +=\n rectOffset == null || rectOffset.right == null\n ? DEFAULT_PRESS_RECT_OFFSETS.right\n : rectOffset.right;\n regionTop -=\n rectOffset == null || rectOffset.top == null\n ? DEFAULT_PRESS_RECT_OFFSETS.top\n : rectOffset.top;\n\n return (\n touch.pageX > regionLeft &&\n touch.pageX < regionRight &&\n touch.pageY > regionTop &&\n touch.pageY < regionBottom\n );\n }\n\n _handleLongPress(event: PressEvent): void {\n if (\n this._touchState === 'RESPONDER_ACTIVE_PRESS_IN' ||\n this._touchState === 'RESPONDER_ACTIVE_LONG_PRESS_IN'\n ) {\n this._receiveSignal('LONG_PRESS_DETECTED', event);\n }\n }\n\n _shouldLongPressCancelPress(): boolean {\n return (\n this._config.onLongPressShouldCancelPress == null ||\n this._config.onLongPressShouldCancelPress()\n );\n }\n\n _cancelHoverInDelayTimeout(): void {\n if (this._hoverInDelayTimeout != null) {\n clearTimeout(this._hoverInDelayTimeout);\n this._hoverInDelayTimeout = null;\n }\n }\n\n _cancelHoverOutDelayTimeout(): void {\n if (this._hoverOutDelayTimeout != null) {\n clearTimeout(this._hoverOutDelayTimeout);\n this._hoverOutDelayTimeout = null;\n }\n }\n\n _cancelLongPressDelayTimeout(): void {\n if (this._longPressDelayTimeout != null) {\n clearTimeout(this._longPressDelayTimeout);\n this._longPressDelayTimeout = null;\n }\n }\n\n _cancelPressDelayTimeout(): void {\n if (this._pressDelayTimeout != null) {\n clearTimeout(this._pressDelayTimeout);\n this._pressDelayTimeout = null;\n }\n }\n\n _cancelPressOutDelayTimeout(): void {\n if (this._pressOutDelayTimeout != null) {\n clearTimeout(this._pressOutDelayTimeout);\n this._pressOutDelayTimeout = null;\n }\n }\n}\n\nconst getDelayMS = (getDelay: ?() => ?number, min = 0, fallback = 0) => {\n return Math.max(min, (getDelay == null ? null : getDelay()) ?? fallback);\n};\n\nconst getTouchFromPressEvent = (event: PressEvent) => {\n const {changedTouches, touches} = event.nativeEvent;\n\n if (touches != null && touches.length > 0) {\n return touches[0];\n }\n if (changedTouches != null && changedTouches.length > 0) {\n return changedTouches[0];\n }\n return event.nativeEvent;\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport Platform from '../Utilities/Platform';\n\nlet isEnabled = false;\n\nif (Platform.OS === 'web') {\n const canUseDOM = Boolean(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.createElement,\n );\n\n if (canUseDOM) {\n /**\n * Web browsers emulate mouse events (and hover states) after touch events.\n * This code infers when the currently-in-use modality supports hover\n * (including for multi-modality devices) and considers \"hover\" to be enabled\n * if a mouse movement occurs more than 1 second after the last touch event.\n * This threshold is long enough to account for longer delays between the\n * browser firing touch and mouse events on low-powered devices.\n */\n const HOVER_THRESHOLD_MS = 1000;\n let lastTouchTimestamp = 0;\n\n const enableHover = () => {\n if (isEnabled || Date.now() - lastTouchTimestamp < HOVER_THRESHOLD_MS) {\n return;\n }\n isEnabled = true;\n };\n\n const disableHover = () => {\n lastTouchTimestamp = Date.now();\n if (isEnabled) {\n isEnabled = false;\n }\n };\n\n document.addEventListener('touchstart', disableHover, true);\n document.addEventListener('touchmove', disableHover, true);\n document.addEventListener('mousemove', enableHover, true);\n }\n}\n\nexport function isHoverEnabled(): boolean {\n return isEnabled;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport normalizeColor from '../StyleSheet/normalizeColor.js';\nimport Touchable from '../Components/Touchable/Touchable';\nimport View from '../Components/View/View';\nimport * as React from 'react';\n\ntype Props = $ReadOnly<{|\n color: string,\n hitSlop: ?$ReadOnly<{|\n bottom?: ?number,\n left?: ?number,\n right?: ?number,\n top?: ?number,\n |}>,\n|}>;\n\n/**\n * Displays a debug overlay to visualize press targets when enabled via the\n * React Native Inspector. Calls to this module should be guarded by `__DEV__`,\n * for example:\n *\n * return (\n * \n * {children}\n * {__DEV__ ? (\n * \n * ) : null}\n * \n * );\n *\n */\nexport function PressabilityDebugView({color, hitSlop}: Props): React.Node {\n if (__DEV__) {\n if (isEnabled()) {\n const baseColor =\n '#' + (normalizeColor(color) ?? 0).toString(16).padStart(8, '0');\n\n return (\n \n );\n }\n }\n return null;\n}\n\nexport function isEnabled(): boolean {\n if (__DEV__) {\n return Touchable.TOUCH_TARGET_DEBUG;\n }\n return false;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport invariant from 'invariant';\nimport ReactNative from '../../Renderer/shims/ReactNative.js';\nimport type {\n BlurEvent,\n FocusEvent,\n PressEvent,\n} from '../../Types/CoreEventTypes';\nimport Platform from '../../Utilities/Platform';\nimport TVEventHandler from '../../Components/AppleTV/TVEventHandler';\n\ntype TVTouchableConfig = $ReadOnly<{|\n getDisabled: () => boolean,\n onBlur: (event: BlurEvent) => mixed,\n onFocus: (event: FocusEvent) => mixed,\n onPress: (event: PressEvent) => mixed,\n|}>;\n\nexport default class TVTouchable {\n _tvEventHandler: TVEventHandler;\n\n constructor(component: any, config: TVTouchableConfig) {\n invariant(Platform.isTV, 'TVTouchable: Requires `Platform.isTV`.');\n this._tvEventHandler = new TVEventHandler();\n this._tvEventHandler.enable(component, (_, tvData) => {\n tvData.dispatchConfig = {};\n if (ReactNative.findNodeHandle(component) === tvData.tag) {\n if (tvData.eventType === 'focus') {\n config.onFocus(tvData);\n } else if (tvData.eventType === 'blur') {\n config.onBlur(tvData);\n } else if (tvData.eventType === 'select') {\n if (!config.getDisabled()) {\n config.onPress(tvData);\n }\n }\n }\n });\n }\n\n destroy(): void {\n this._tvEventHandler.disable();\n }\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport Pressability from '../../Pressability/Pressability.js';\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';\nimport TVTouchable from './TVTouchable.js';\nimport typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';\nimport Animated from 'react-native/Libraries/Animated/src/Animated';\nimport Easing from 'react-native/Libraries/Animated/src/Easing';\nimport type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';\nimport flattenStyle from 'react-native/Libraries/StyleSheet/flattenStyle';\nimport Platform from '../../Utilities/Platform';\nimport * as React from 'react';\n\ntype TVProps = $ReadOnly<{|\n hasTVPreferredFocus?: ?boolean,\n nextFocusDown?: ?number,\n nextFocusForward?: ?number,\n nextFocusLeft?: ?number,\n nextFocusRight?: ?number,\n nextFocusUp?: ?number,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...React.ElementConfig,\n ...TVProps,\n\n activeOpacity?: ?number,\n style?: ?ViewStyleProp,\n\n hostRef: React.Ref,\n|}>;\n\ntype State = $ReadOnly<{|\n anim: Animated.Value,\n pressability: Pressability,\n|}>;\n\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, dimming it.\n *\n * Opacity is controlled by wrapping the children in an Animated.View, which is\n * added to the view hierarchy. Be aware that this can affect layout.\n *\n * Example:\n *\n * ```\n * renderButton: function() {\n * return (\n * \n * \n * \n * );\n * },\n * ```\n * ### Example\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react'\n * import {\n * AppRegistry,\n * StyleSheet,\n * TouchableOpacity,\n * Text,\n * View,\n * } from 'react-native'\n *\n * class App extends Component {\n * state = { count: 0 }\n *\n * onPress = () => {\n * this.setState(state => ({\n * count: state.count + 1\n * }));\n * };\n *\n * render() {\n * return (\n * \n * \n * Touch Here \n * \n * \n * \n * { this.state.count !== 0 ? this.state.count: null}\n * \n * \n * \n * )\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * justifyContent: 'center',\n * paddingHorizontal: 10\n * },\n * button: {\n * alignItems: 'center',\n * backgroundColor: '#DDDDDD',\n * padding: 10\n * },\n * countContainer: {\n * alignItems: 'center',\n * padding: 10\n * },\n * countText: {\n * color: '#FF00FF'\n * }\n * })\n *\n * AppRegistry.registerComponent('App', () => App)\n * ```\n *\n */\nclass TouchableOpacity extends React.Component {\n _tvTouchable: ?TVTouchable;\n\n state: State = {\n anim: new Animated.Value(this._getChildStyleOpacityWithDefault()),\n pressability: new Pressability({\n getHitSlop: () => this.props.hitSlop,\n getLongPressDelayMS: () => {\n if (this.props.delayLongPress != null) {\n const maybeNumber = this.props.delayLongPress;\n if (typeof maybeNumber === 'number') {\n return maybeNumber;\n }\n }\n return 500;\n },\n getPressDelayMS: () => this.props.delayPressIn,\n getPressOutDelayMS: () => this.props.delayPressOut,\n getPressRectOffset: () => this.props.pressRetentionOffset,\n onBlur: event => {\n if (Platform.isTV) {\n this._opacityInactive(250);\n }\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (Platform.isTV) {\n this._opacityActive(150);\n }\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onLongPress: event => {\n if (this.props.onLongPress != null) {\n this.props.onLongPress(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n onPressIn: event => {\n this._opacityActive(\n event.dispatchConfig.registrationName === 'onResponderGrant'\n ? 0\n : 150,\n );\n if (this.props.onPressIn != null) {\n this.props.onPressIn(event);\n }\n },\n onPressOut: event => {\n this._opacityInactive(250);\n if (this.props.onPressOut != null) {\n this.props.onPressOut(event);\n }\n },\n onResponderTerminationRequest: () =>\n !this.props.rejectResponderTermination,\n onStartShouldSetResponder: () => !this.props.disabled,\n }),\n };\n\n /**\n * Animate the touchable to a new opacity.\n */\n _setOpacityTo(toValue: number, duration: number): void {\n Animated.timing(this.state.anim, {\n toValue,\n duration,\n easing: Easing.inOut(Easing.quad),\n useNativeDriver: true,\n }).start();\n }\n\n _opacityActive(duration: number): void {\n this._setOpacityTo(this.props.activeOpacity ?? 0.2, duration);\n }\n\n _opacityInactive(duration: number): void {\n this._setOpacityTo(this._getChildStyleOpacityWithDefault(), duration);\n }\n\n _getChildStyleOpacityWithDefault(): number {\n const opacity = flattenStyle(this.props.style)?.opacity;\n return typeof opacity === 'number' ? opacity : 1;\n }\n\n render(): React.Node {\n // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before\n // adopting `Pressability`, so preserve that behavior.\n const {\n onBlur,\n onFocus,\n ...eventHandlersWithoutBlurAndFocus\n } = this.state.pressability.getEventHandlers();\n\n return (\n \n {this.props.children}\n {__DEV__ ? (\n \n ) : null}\n \n );\n }\n\n componentDidMount(): void {\n if (Platform.isTV) {\n this._tvTouchable = new TVTouchable(this, {\n getDisabled: () => this.props.disabled === true,\n onBlur: event => {\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n });\n }\n }\n\n componentDidUpdate(prevProps: Props, prevState: State) {\n if (this.props.disabled !== prevProps.disabled) {\n this._opacityInactive(250);\n }\n }\n\n componentWillUnmount(): void {\n if (Platform.isTV) {\n if (this._tvTouchable != null) {\n this._tvTouchable.destroy();\n }\n }\n this.state.pressability.reset();\n }\n}\n\nmodule.exports = (React.forwardRef((props, hostRef) => (\n \n)): React.ComponentType<$ReadOnly<$Diff>>);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport Platform from '../../Utilities/Platform';\nconst View = require('../../Components/View/View');\nconst React = require('react');\nimport type {AnimatedComponentType} from './createAnimatedComponent';\n\nconst AnimatedMock = require('./AnimatedMock');\nconst AnimatedImplementation = require('./AnimatedImplementation');\n\nconst Animated = ((Platform.isTesting\n ? AnimatedMock\n : AnimatedImplementation): typeof AnimatedMock);\n\nmodule.exports = {\n get FlatList(): any {\n return require('./components/AnimatedFlatList');\n },\n get Image(): any {\n return require('./components/AnimatedImage');\n },\n get ScrollView(): any {\n return require('./components/AnimatedScrollView');\n },\n get SectionList(): any {\n return require('./components/AnimatedSectionList');\n },\n get Text(): any {\n return require('./components/AnimatedText');\n },\n get View(): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n > {\n return require('./components/AnimatedView');\n },\n ...Animated,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst {AnimatedEvent, attachNativeEvent} = require('./AnimatedEvent');\nconst AnimatedImplementation = require('./AnimatedImplementation');\nconst AnimatedInterpolation = require('./nodes/AnimatedInterpolation');\nconst AnimatedNode = require('./nodes/AnimatedNode');\nconst AnimatedProps = require('./nodes/AnimatedProps');\nconst AnimatedValue = require('./nodes/AnimatedValue');\nconst AnimatedValueXY = require('./nodes/AnimatedValueXY');\n\nconst createAnimatedComponent = require('./createAnimatedComponent');\n\nimport type {EndCallback} from './animations/Animation';\nimport type {TimingAnimationConfig} from './animations/TimingAnimation';\nimport type {DecayAnimationConfig} from './animations/DecayAnimation';\nimport type {SpringAnimationConfig} from './animations/SpringAnimation';\nimport type {Mapping, EventConfig} from './AnimatedEvent';\n\n/**\n * Animations are a source of flakiness in snapshot testing. This mock replaces\n * animation functions from AnimatedImplementation with empty animations for\n * predictability in tests.\n */\nexport type CompositeAnimation = {\n start: (callback?: ?EndCallback) => void,\n stop: () => void,\n reset: () => void,\n _startNativeLoop: (iterations?: number) => void,\n _isUsingNativeDriver: () => boolean,\n ...\n};\n\nconst emptyAnimation = {\n start: () => {},\n stop: () => {},\n reset: () => {},\n _startNativeLoop: () => {},\n _isUsingNativeDriver: () => {\n return false;\n },\n};\n\nconst spring = function(\n value: AnimatedValue | AnimatedValueXY,\n config: SpringAnimationConfig,\n): CompositeAnimation {\n const anyValue: any = value;\n return {\n ...emptyAnimation,\n start: (callback?: ?EndCallback): void => {\n anyValue.setValue(config.toValue);\n callback && callback({finished: true});\n },\n };\n};\n\nconst timing = function(\n value: AnimatedValue | AnimatedValueXY,\n config: TimingAnimationConfig,\n): CompositeAnimation {\n const anyValue: any = value;\n return {\n ...emptyAnimation,\n start: (callback?: ?EndCallback): void => {\n anyValue.setValue(config.toValue);\n callback && callback({finished: true});\n },\n };\n};\n\nconst decay = function(\n value: AnimatedValue | AnimatedValueXY,\n config: DecayAnimationConfig,\n): CompositeAnimation {\n return emptyAnimation;\n};\n\nconst sequence = function(\n animations: Array,\n): CompositeAnimation {\n return emptyAnimation;\n};\n\ntype ParallelConfig = {stopTogether?: boolean, ...};\nconst parallel = function(\n animations: Array,\n config?: ?ParallelConfig,\n): CompositeAnimation {\n return emptyAnimation;\n};\n\nconst delay = function(time: number): CompositeAnimation {\n return emptyAnimation;\n};\n\nconst stagger = function(\n time: number,\n animations: Array,\n): CompositeAnimation {\n return emptyAnimation;\n};\n\ntype LoopAnimationConfig = {\n iterations: number,\n resetBeforeIteration?: boolean,\n ...\n};\n\nconst loop = function(\n animation: CompositeAnimation,\n {iterations = -1}: LoopAnimationConfig = {},\n): CompositeAnimation {\n return emptyAnimation;\n};\n\nconst event = function(argMapping: Array, config: EventConfig): any {\n return null;\n};\n\nmodule.exports = {\n Value: AnimatedValue,\n ValueXY: AnimatedValueXY,\n Interpolation: AnimatedInterpolation,\n Node: AnimatedNode,\n decay,\n timing,\n spring,\n add: AnimatedImplementation.add,\n subtract: AnimatedImplementation.subtract,\n divide: AnimatedImplementation.divide,\n multiply: AnimatedImplementation.multiply,\n modulo: AnimatedImplementation.modulo,\n diffClamp: AnimatedImplementation.diffClamp,\n delay,\n sequence,\n parallel,\n stagger,\n loop,\n event,\n createAnimatedComponent,\n attachNativeEvent,\n forkEvent: AnimatedImplementation.forkEvent,\n unforkEvent: AnimatedImplementation.unforkEvent,\n Event: AnimatedEvent,\n __PropsOnlyForTests: AnimatedProps,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedValue = require('./nodes/AnimatedValue');\nconst NativeAnimatedHelper = require('./NativeAnimatedHelper');\nconst ReactNative = require('../../Renderer/shims/ReactNative');\n\nconst invariant = require('invariant');\n\nconst {shouldUseNativeDriver} = require('./NativeAnimatedHelper');\n\nexport type Mapping = {[key: string]: Mapping, ...} | AnimatedValue;\nexport type EventConfig = {\n listener?: ?Function,\n useNativeDriver: boolean,\n ...\n};\n\nfunction attachNativeEvent(\n viewRef: any,\n eventName: string,\n argMapping: Array,\n): {|detach: () => void|} {\n // Find animated values in `argMapping` and create an array representing their\n // key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x'].\n const eventMappings = [];\n\n const traverse = (value, path) => {\n if (value instanceof AnimatedValue) {\n value.__makeNative();\n\n eventMappings.push({\n nativeEventPath: path,\n animatedValueTag: value.__getNativeTag(),\n });\n } else if (typeof value === 'object') {\n for (const key in value) {\n traverse(value[key], path.concat(key));\n }\n }\n };\n\n invariant(\n argMapping[0] && argMapping[0].nativeEvent,\n 'Native driven events only support animated values contained inside `nativeEvent`.',\n );\n\n // Assume that the event containing `nativeEvent` is always the first argument.\n traverse(argMapping[0].nativeEvent, []);\n\n const viewTag = ReactNative.findNodeHandle(viewRef);\n\n if (viewTag != null) {\n eventMappings.forEach(mapping => {\n NativeAnimatedHelper.API.addAnimatedEventToView(\n viewTag,\n eventName,\n mapping,\n );\n });\n }\n\n return {\n detach() {\n if (viewTag != null) {\n eventMappings.forEach(mapping => {\n NativeAnimatedHelper.API.removeAnimatedEventFromView(\n viewTag,\n eventName,\n mapping.animatedValueTag,\n );\n });\n }\n },\n };\n}\n\nclass AnimatedEvent {\n _argMapping: Array;\n _listeners: Array = [];\n _callListeners: Function;\n _attachedEvent: ?{detach: () => void, ...};\n __isNative: boolean;\n\n constructor(argMapping: Array, config: EventConfig) {\n this._argMapping = argMapping;\n\n if (config == null) {\n console.warn('Animated.event now requires a second argument for options');\n config = {};\n }\n\n if (config.listener) {\n this.__addListener(config.listener);\n }\n this._callListeners = this._callListeners.bind(this);\n this._attachedEvent = null;\n this.__isNative = shouldUseNativeDriver(config);\n\n if (__DEV__) {\n this._validateMapping();\n }\n }\n\n __addListener(callback: Function): void {\n this._listeners.push(callback);\n }\n\n __removeListener(callback: Function): void {\n this._listeners = this._listeners.filter(listener => listener !== callback);\n }\n\n __attach(viewRef: any, eventName: string) {\n invariant(\n this.__isNative,\n 'Only native driven events need to be attached.',\n );\n\n this._attachedEvent = attachNativeEvent(\n viewRef,\n eventName,\n this._argMapping,\n );\n }\n\n __detach(viewTag: any, eventName: string) {\n invariant(\n this.__isNative,\n 'Only native driven events need to be detached.',\n );\n\n this._attachedEvent && this._attachedEvent.detach();\n }\n\n __getHandler(): any | ((...args: any) => void) {\n if (this.__isNative) {\n return this._callListeners;\n }\n\n return (...args: any) => {\n const traverse = (recMapping, recEvt, key) => {\n if (typeof recEvt === 'number' && recMapping instanceof AnimatedValue) {\n recMapping.setValue(recEvt);\n } else if (typeof recMapping === 'object') {\n for (const mappingKey in recMapping) {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error when upgrading Flow's support for\n * React. To see the error delete this comment and run Flow. */\n traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);\n }\n }\n };\n\n if (!this.__isNative) {\n this._argMapping.forEach((mapping, idx) => {\n traverse(mapping, args[idx], 'arg' + idx);\n });\n }\n this._callListeners(...args);\n };\n }\n\n _callListeners(...args: any) {\n this._listeners.forEach(listener => listener(...args));\n }\n\n _validateMapping() {\n const traverse = (recMapping, recEvt, key) => {\n if (typeof recEvt === 'number') {\n invariant(\n recMapping instanceof AnimatedValue,\n 'Bad mapping of type ' +\n typeof recMapping +\n ' for key ' +\n key +\n ', event value must map to AnimatedValue',\n );\n return;\n }\n invariant(\n typeof recMapping === 'object',\n 'Bad mapping of type ' + typeof recMapping + ' for key ' + key,\n );\n invariant(\n typeof recEvt === 'object',\n 'Bad event of type ' + typeof recEvt + ' for key ' + key,\n );\n for (const mappingKey in recMapping) {\n traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);\n }\n };\n }\n}\n\nmodule.exports = {AnimatedEvent, attachNativeEvent};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst InteractionManager = require('../../../Interaction/InteractionManager');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nimport type Animation, {EndCallback} from '../animations/Animation';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedTracking from './AnimatedTracking';\n\nconst NativeAnimatedAPI = NativeAnimatedHelper.API;\n\n/**\n * Animated works by building a directed acyclic graph of dependencies\n * transparently when you render your Animated components.\n *\n * new Animated.Value(0)\n * .interpolate() .interpolate() new Animated.Value(1)\n * opacity translateY scale\n * style transform\n * View#234 style\n * View#123\n *\n * A) Top Down phase\n * When an Animated.Value is updated, we recursively go down through this\n * graph in order to find leaf nodes: the views that we flag as needing\n * an update.\n *\n * B) Bottom Up phase\n * When a view is flagged as needing an update, we recursively go back up\n * in order to build the new value that it needs. The reason why we need\n * this two-phases process is to deal with composite props such as\n * transform which can receive values from multiple parents.\n */\nfunction _flush(rootNode: AnimatedValue): void {\n const animatedStyles = new Set();\n function findAnimatedStyles(node) {\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n if (typeof node.update === 'function') {\n animatedStyles.add(node);\n } else {\n node.__getChildren().forEach(findAnimatedStyles);\n }\n }\n findAnimatedStyles(rootNode);\n /* $FlowFixMe */\n animatedStyles.forEach(animatedStyle => animatedStyle.update());\n}\n\n/**\n * Standard value for driving animations. One `Animated.Value` can drive\n * multiple properties in a synchronized fashion, but can only be driven by one\n * mechanism at a time. Using a new mechanism (e.g. starting a new animation,\n * or calling `setValue`) will stop any previous ones.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html\n */\nclass AnimatedValue extends AnimatedWithChildren {\n _value: number;\n _startingValue: number;\n _offset: number;\n _animation: ?Animation;\n _tracking: ?AnimatedTracking;\n\n constructor(value: number) {\n super();\n this._startingValue = this._value = value;\n this._offset = 0;\n this._animation = null;\n }\n\n __detach() {\n this.stopAnimation();\n super.__detach();\n }\n\n __getValue(): number {\n return this._value + this._offset;\n }\n\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#setvalue\n */\n setValue(value: number): void {\n if (this._animation) {\n this._animation.stop();\n this._animation = null;\n }\n this._updateValue(\n value,\n !this.__isNative /* don't perform a flush for natively driven values */,\n );\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), value);\n }\n }\n\n /**\n * Sets an offset that is applied on top of whatever value is set, whether via\n * `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#setoffset\n */\n setOffset(offset: number): void {\n this._offset = offset;\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset);\n }\n }\n\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#flattenoffset\n */\n flattenOffset(): void {\n this._value += this._offset;\n this._offset = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n\n /**\n * Sets the offset value to the base value, and resets the base value to zero.\n * The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#extractoffset\n */\n extractOffset(): void {\n this._offset += this._value;\n this._value = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#stopanimation\n */\n stopAnimation(callback?: ?(value: number) => void): void {\n this.stopTracking();\n this._animation && this._animation.stop();\n this._animation = null;\n callback && callback(this.__getValue());\n }\n\n /**\n * Stops any animation and resets the value to its original.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#resetanimation\n */\n resetAnimation(callback?: ?(value: number) => void): void {\n this.stopAnimation(callback);\n this._value = this._startingValue;\n }\n\n _onAnimatedValueUpdateReceived(value: number): void {\n this._updateValue(value, false /*flush*/);\n }\n\n /**\n * Interpolates the value before updating the property, e.g. mapping 0-1 to\n * 0-10.\n */\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n /**\n * Typically only used internally, but could be used by a custom Animation\n * class.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#animate\n */\n animate(animation: Animation, callback: ?EndCallback): void {\n let handle = null;\n if (animation.__isInteraction) {\n handle = InteractionManager.createInteractionHandle();\n }\n const previousAnimation = this._animation;\n this._animation && this._animation.stop();\n this._animation = animation;\n animation.start(\n this._value,\n value => {\n // Natively driven animations will never call into that callback, therefore we can always\n // pass flush = true to allow the updated value to propagate to native with setNativeProps\n this._updateValue(value, true /* flush */);\n },\n result => {\n this._animation = null;\n if (handle !== null) {\n InteractionManager.clearInteractionHandle(handle);\n }\n callback && callback(result);\n },\n previousAnimation,\n this,\n );\n }\n\n /**\n * Typically only used internally.\n */\n stopTracking(): void {\n this._tracking && this._tracking.__detach();\n this._tracking = null;\n }\n\n /**\n * Typically only used internally.\n */\n track(tracking: AnimatedTracking): void {\n this.stopTracking();\n this._tracking = tracking;\n }\n\n _updateValue(value: number, flush: boolean): void {\n this._value = value;\n if (flush) {\n _flush(this);\n }\n super.__callListeners(this.__getValue());\n }\n\n __getNativeConfig(): Object {\n return {\n type: 'value',\n value: this._value,\n offset: this._offset,\n };\n }\n}\n\nmodule.exports = AnimatedValue;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n/* eslint no-bitwise: 0 */\n\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nconst invariant = require('invariant');\nconst normalizeColor = require('../../../StyleSheet/normalizeColor');\n\ntype ExtrapolateType = 'extend' | 'identity' | 'clamp';\n\nexport type InterpolationConfigType = {\n inputRange: Array,\n /* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error\n * detected during the deployment of v0.38.0. To see the error, remove this\n * comment and run flow\n */\n outputRange: Array | Array,\n easing?: (input: number) => number,\n extrapolate?: ExtrapolateType,\n extrapolateLeft?: ExtrapolateType,\n extrapolateRight?: ExtrapolateType,\n ...\n};\n\nconst linear = t => t;\n\n/**\n * Very handy helper to map input ranges to output ranges with an easing\n * function and custom behavior outside of the ranges.\n */\nfunction createInterpolation(\n config: InterpolationConfigType,\n): (input: number) => number | string {\n if (config.outputRange && typeof config.outputRange[0] === 'string') {\n return createInterpolationFromStringOutputRange(config);\n }\n\n const outputRange: Array = (config.outputRange: any);\n checkInfiniteRange('outputRange', outputRange);\n\n const inputRange = config.inputRange;\n checkInfiniteRange('inputRange', inputRange);\n checkValidInputRange(inputRange);\n\n invariant(\n inputRange.length === outputRange.length,\n 'inputRange (' +\n inputRange.length +\n ') and outputRange (' +\n outputRange.length +\n ') must have the same length',\n );\n\n const easing = config.easing || linear;\n\n let extrapolateLeft: ExtrapolateType = 'extend';\n if (config.extrapolateLeft !== undefined) {\n extrapolateLeft = config.extrapolateLeft;\n } else if (config.extrapolate !== undefined) {\n extrapolateLeft = config.extrapolate;\n }\n\n let extrapolateRight: ExtrapolateType = 'extend';\n if (config.extrapolateRight !== undefined) {\n extrapolateRight = config.extrapolateRight;\n } else if (config.extrapolate !== undefined) {\n extrapolateRight = config.extrapolate;\n }\n\n return input => {\n invariant(\n typeof input === 'number',\n 'Cannot interpolation an input which is not a number',\n );\n\n const range = findRange(input, inputRange);\n return interpolate(\n input,\n inputRange[range],\n inputRange[range + 1],\n outputRange[range],\n outputRange[range + 1],\n easing,\n extrapolateLeft,\n extrapolateRight,\n );\n };\n}\n\nfunction interpolate(\n input: number,\n inputMin: number,\n inputMax: number,\n outputMin: number,\n outputMax: number,\n easing: (input: number) => number,\n extrapolateLeft: ExtrapolateType,\n extrapolateRight: ExtrapolateType,\n) {\n let result = input;\n\n // Extrapolate\n if (result < inputMin) {\n if (extrapolateLeft === 'identity') {\n return result;\n } else if (extrapolateLeft === 'clamp') {\n result = inputMin;\n } else if (extrapolateLeft === 'extend') {\n // noop\n }\n }\n\n if (result > inputMax) {\n if (extrapolateRight === 'identity') {\n return result;\n } else if (extrapolateRight === 'clamp') {\n result = inputMax;\n } else if (extrapolateRight === 'extend') {\n // noop\n }\n }\n\n if (outputMin === outputMax) {\n return outputMin;\n }\n\n if (inputMin === inputMax) {\n if (input <= inputMin) {\n return outputMin;\n }\n return outputMax;\n }\n\n // Input Range\n if (inputMin === -Infinity) {\n result = -result;\n } else if (inputMax === Infinity) {\n result = result - inputMin;\n } else {\n result = (result - inputMin) / (inputMax - inputMin);\n }\n\n // Easing\n result = easing(result);\n\n // Output Range\n if (outputMin === -Infinity) {\n result = -result;\n } else if (outputMax === Infinity) {\n result = result + outputMin;\n } else {\n result = result * (outputMax - outputMin) + outputMin;\n }\n\n return result;\n}\n\nfunction colorToRgba(input: string): string {\n let int32Color = normalizeColor(input);\n if (int32Color === null) {\n return input;\n }\n\n int32Color = int32Color || 0;\n\n const r = (int32Color & 0xff000000) >>> 24;\n const g = (int32Color & 0x00ff0000) >>> 16;\n const b = (int32Color & 0x0000ff00) >>> 8;\n const a = (int32Color & 0x000000ff) / 255;\n\n return `rgba(${r}, ${g}, ${b}, ${a})`;\n}\n\nconst stringShapeRegex = /[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?/g;\n\n/**\n * Supports string shapes by extracting numbers so new values can be computed,\n * and recombines those values into new strings of the same shape. Supports\n * things like:\n *\n * rgba(123, 42, 99, 0.36) // colors\n * -45deg // values with units\n */\nfunction createInterpolationFromStringOutputRange(\n config: InterpolationConfigType,\n): (input: number) => string {\n let outputRange: Array = (config.outputRange: any);\n invariant(outputRange.length >= 2, 'Bad output range');\n outputRange = outputRange.map(colorToRgba);\n checkPattern(outputRange);\n\n // ['rgba(0, 100, 200, 0)', 'rgba(50, 150, 250, 0.5)']\n // ->\n // [\n // [0, 50],\n // [100, 150],\n // [200, 250],\n // [0, 0.5],\n // ]\n /* $FlowFixMe(>=0.18.0): `outputRange[0].match()` can return `null`. Need to\n * guard against this possibility.\n */\n const outputRanges = outputRange[0].match(stringShapeRegex).map(() => []);\n outputRange.forEach(value => {\n /* $FlowFixMe(>=0.18.0): `value.match()` can return `null`. Need to guard\n * against this possibility.\n */\n value.match(stringShapeRegex).forEach((number, i) => {\n outputRanges[i].push(+number);\n });\n });\n\n /* $FlowFixMe(>=0.18.0): `outputRange[0].match()` can return `null`. Need to\n * guard against this possibility.\n */\n const interpolations = outputRange[0]\n .match(stringShapeRegex)\n .map((value, i) => {\n return createInterpolation({\n ...config,\n outputRange: outputRanges[i],\n });\n });\n\n // rgba requires that the r,g,b are integers.... so we want to round them, but we *dont* want to\n // round the opacity (4th column).\n const shouldRound = isRgbOrRgba(outputRange[0]);\n\n return input => {\n let i = 0;\n // 'rgba(0, 100, 200, 0)'\n // ->\n // 'rgba(${interpolations[0](input)}, ${interpolations[1](input)}, ...'\n return outputRange[0].replace(stringShapeRegex, () => {\n let val = +interpolations[i++](input);\n if (shouldRound) {\n val = i < 4 ? Math.round(val) : Math.round(val * 1000) / 1000;\n }\n return String(val);\n });\n };\n}\n\nfunction isRgbOrRgba(range) {\n return typeof range === 'string' && range.startsWith('rgb');\n}\n\nfunction checkPattern(arr: Array) {\n const pattern = arr[0].replace(stringShapeRegex, '');\n for (let i = 1; i < arr.length; ++i) {\n invariant(\n pattern === arr[i].replace(stringShapeRegex, ''),\n 'invalid pattern ' + arr[0] + ' and ' + arr[i],\n );\n }\n}\n\nfunction findRange(input: number, inputRange: Array) {\n let i;\n for (i = 1; i < inputRange.length - 1; ++i) {\n if (inputRange[i] >= input) {\n break;\n }\n }\n return i - 1;\n}\n\nfunction checkValidInputRange(arr: Array) {\n invariant(arr.length >= 2, 'inputRange must have at least 2 elements');\n for (let i = 1; i < arr.length; ++i) {\n invariant(\n arr[i] >= arr[i - 1],\n /* $FlowFixMe(>=0.13.0) - In the addition expression below this comment,\n * one or both of the operands may be something that doesn't cleanly\n * convert to a string, like undefined, null, and object, etc. If you really\n * mean this implicit string conversion, you can do something like\n * String(myThing)\n */\n 'inputRange must be monotonically non-decreasing ' + arr,\n );\n }\n}\n\nfunction checkInfiniteRange(name: string, arr: Array) {\n invariant(arr.length >= 2, name + ' must have at least 2 elements');\n invariant(\n arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity,\n /* $FlowFixMe(>=0.13.0) - In the addition expression below this comment,\n * one or both of the operands may be something that doesn't cleanly convert\n * to a string, like undefined, null, and object, etc. If you really mean\n * this implicit string conversion, you can do something like\n * String(myThing)\n */\n name + 'cannot be ]-infinity;+infinity[ ' + arr,\n );\n}\n\nclass AnimatedInterpolation extends AnimatedWithChildren {\n // Export for testing.\n static __createInterpolation: (\n config: InterpolationConfigType,\n ) => (input: number) => number | string = createInterpolation;\n\n _parent: AnimatedNode;\n _config: InterpolationConfigType;\n _interpolation: (input: number) => number | string;\n\n constructor(parent: AnimatedNode, config: InterpolationConfigType) {\n super();\n this._parent = parent;\n this._config = config;\n this._interpolation = createInterpolation(config);\n }\n\n __makeNative() {\n this._parent.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number | string {\n const parentValue: number = this._parent.__getValue();\n invariant(\n typeof parentValue === 'number',\n 'Cannot interpolate an input which is not a number.',\n );\n return this._interpolation(parentValue);\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._parent.__addChild(this);\n }\n\n __detach(): void {\n this._parent.__removeChild(this);\n super.__detach();\n }\n\n __transformDataType(range: Array): Array {\n return range.map(NativeAnimatedHelper.transformDataType);\n }\n\n __getNativeConfig(): any {\n if (__DEV__) {\n NativeAnimatedHelper.validateInterpolation(this._config);\n }\n\n return {\n inputRange: this._config.inputRange,\n // Only the `outputRange` can contain strings so we don't need to transform `inputRange` here\n outputRange: this.__transformDataType(this._config.outputRange),\n extrapolateLeft:\n this._config.extrapolateLeft || this._config.extrapolate || 'extend',\n extrapolateRight:\n this._config.extrapolateRight || this._config.extrapolate || 'extend',\n type: 'interpolation',\n };\n }\n}\n\nmodule.exports = AnimatedInterpolation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nconst NativeAnimatedAPI = NativeAnimatedHelper.API;\nconst invariant = require('invariant');\n\ntype ValueListenerCallback = (state: {value: number, ...}) => mixed;\n\nlet _uniqueId = 1;\n\n// Note(vjeux): this would be better as an interface but flow doesn't\n// support them yet\nclass AnimatedNode {\n _listeners: {[key: string]: ValueListenerCallback, ...};\n __nativeAnimatedValueListener: ?any;\n __attach(): void {}\n __detach(): void {\n if (this.__isNative && this.__nativeTag != null) {\n NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);\n this.__nativeTag = undefined;\n }\n }\n __getValue(): any {}\n __getAnimatedValue(): any {\n return this.__getValue();\n }\n __addChild(child: AnimatedNode) {}\n __removeChild(child: AnimatedNode) {}\n __getChildren(): Array {\n return [];\n }\n\n /* Methods and props used by native Animated impl */\n __isNative: boolean;\n __nativeTag: ?number;\n __shouldUpdateListenersForNewNativeTag: boolean;\n\n constructor() {\n this._listeners = {};\n }\n\n __makeNative() {\n if (!this.__isNative) {\n throw new Error('This node cannot be made a \"native\" animated node');\n }\n\n if (this.hasListeners()) {\n this._startListeningToNativeValueUpdates();\n }\n }\n\n /**\n * Adds an asynchronous listener to the value so you can observe updates from\n * animations. This is useful because there is no way to\n * synchronously read the value because it might be driven natively.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#addlistener\n */\n addListener(callback: (value: any) => mixed): string {\n const id = String(_uniqueId++);\n this._listeners[id] = callback;\n if (this.__isNative) {\n this._startListeningToNativeValueUpdates();\n }\n return id;\n }\n\n /**\n * Unregister a listener. The `id` param shall match the identifier\n * previously returned by `addListener()`.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#removelistener\n */\n removeListener(id: string): void {\n delete this._listeners[id];\n if (this.__isNative && !this.hasListeners()) {\n this._stopListeningForNativeValueUpdates();\n }\n }\n\n /**\n * Remove all registered listeners.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#removealllisteners\n */\n removeAllListeners(): void {\n this._listeners = {};\n if (this.__isNative) {\n this._stopListeningForNativeValueUpdates();\n }\n }\n\n hasListeners(): boolean {\n return !!Object.keys(this._listeners).length;\n }\n\n _startListeningToNativeValueUpdates() {\n if (\n this.__nativeAnimatedValueListener &&\n !this.__shouldUpdateListenersForNewNativeTag\n ) {\n return;\n }\n\n if (this.__shouldUpdateListenersForNewNativeTag) {\n this.__shouldUpdateListenersForNewNativeTag = false;\n this._stopListeningForNativeValueUpdates();\n }\n\n NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag());\n this.__nativeAnimatedValueListener = NativeAnimatedHelper.nativeEventEmitter.addListener(\n 'onAnimatedValueUpdate',\n data => {\n if (data.tag !== this.__getNativeTag()) {\n return;\n }\n this._onAnimatedValueUpdateReceived(data.value);\n },\n );\n }\n\n _onAnimatedValueUpdateReceived(value: number) {\n this.__callListeners(value);\n }\n\n __callListeners(value: number): void {\n for (const key in this._listeners) {\n this._listeners[key]({value});\n }\n }\n\n _stopListeningForNativeValueUpdates() {\n if (!this.__nativeAnimatedValueListener) {\n return;\n }\n\n this.__nativeAnimatedValueListener.remove();\n this.__nativeAnimatedValueListener = null;\n NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag());\n }\n\n __getNativeTag(): number {\n NativeAnimatedHelper.assertNativeAnimatedModule();\n invariant(\n this.__isNative,\n 'Attempt to get native tag from node not marked as \"native\"',\n );\n\n const nativeTag =\n this.__nativeTag ?? NativeAnimatedHelper.generateNewNodeTag();\n\n if (this.__nativeTag == null) {\n this.__nativeTag = nativeTag;\n NativeAnimatedHelper.API.createAnimatedNode(\n nativeTag,\n this.__getNativeConfig(),\n );\n this.__shouldUpdateListenersForNewNativeTag = true;\n }\n\n return nativeTag;\n }\n __getNativeConfig(): Object {\n throw new Error(\n 'This JS animated node type cannot be used as native animated node',\n );\n }\n toJSON(): any {\n return this.__getValue();\n }\n}\n\nmodule.exports = AnimatedNode;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport NativeEventEmitter from '../../EventEmitter/NativeEventEmitter';\nimport type {EventConfig} from './AnimatedEvent';\nimport NativeAnimatedModule from './NativeAnimatedModule';\nimport type {\n EventMapping,\n AnimatedNodeConfig,\n AnimatingNodeConfig,\n} from './NativeAnimatedModule';\nimport type {AnimationConfig, EndCallback} from './animations/Animation';\nimport type {InterpolationConfigType} from './nodes/AnimatedInterpolation';\nimport invariant from 'invariant';\n\nlet __nativeAnimatedNodeTagCount = 1; /* used for animated nodes */\nlet __nativeAnimationIdCount = 1; /* used for started animations */\n\nlet nativeEventEmitter;\n\nlet queueConnections = false;\nlet queue = [];\n\n/**\n * Simple wrappers around NativeAnimatedModule to provide flow and autocomplete support for\n * the native module methods\n */\nconst API = {\n enableQueue: function(): void {\n queueConnections = true;\n },\n disableQueue: function(): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n queueConnections = false;\n for (let q = 0, l = queue.length; q < l; q++) {\n const args = queue[q];\n NativeAnimatedModule.connectAnimatedNodes(args[0], args[1]);\n }\n queue.length = 0;\n },\n createAnimatedNode: function(tag: number, config: AnimatedNodeConfig): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.createAnimatedNode(tag, config);\n },\n startListeningToAnimatedNodeValue: function(tag: number) {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.startListeningToAnimatedNodeValue(tag);\n },\n stopListeningToAnimatedNodeValue: function(tag: number) {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.stopListeningToAnimatedNodeValue(tag);\n },\n connectAnimatedNodes: function(parentTag: number, childTag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n if (queueConnections) {\n queue.push([parentTag, childTag]);\n return;\n }\n NativeAnimatedModule.connectAnimatedNodes(parentTag, childTag);\n },\n disconnectAnimatedNodes: function(parentTag: number, childTag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.disconnectAnimatedNodes(parentTag, childTag);\n },\n startAnimatingNode: function(\n animationId: number,\n nodeTag: number,\n config: AnimatingNodeConfig,\n endCallback: EndCallback,\n ): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.startAnimatingNode(\n animationId,\n nodeTag,\n config,\n endCallback,\n );\n },\n stopAnimation: function(animationId: number) {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.stopAnimation(animationId);\n },\n setAnimatedNodeValue: function(nodeTag: number, value: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.setAnimatedNodeValue(nodeTag, value);\n },\n setAnimatedNodeOffset: function(nodeTag: number, offset: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.setAnimatedNodeOffset(nodeTag, offset);\n },\n flattenAnimatedNodeOffset: function(nodeTag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.flattenAnimatedNodeOffset(nodeTag);\n },\n extractAnimatedNodeOffset: function(nodeTag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.extractAnimatedNodeOffset(nodeTag);\n },\n connectAnimatedNodeToView: function(nodeTag: number, viewTag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.connectAnimatedNodeToView(nodeTag, viewTag);\n },\n disconnectAnimatedNodeFromView: function(\n nodeTag: number,\n viewTag: number,\n ): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.disconnectAnimatedNodeFromView(nodeTag, viewTag);\n },\n restoreDefaultValues: function(nodeTag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n // Backwards compat with older native runtimes, can be removed later.\n if (NativeAnimatedModule.restoreDefaultValues != null) {\n NativeAnimatedModule.restoreDefaultValues(nodeTag);\n }\n },\n dropAnimatedNode: function(tag: number): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.dropAnimatedNode(tag);\n },\n addAnimatedEventToView: function(\n viewTag: number,\n eventName: string,\n eventMapping: EventMapping,\n ) {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.addAnimatedEventToView(\n viewTag,\n eventName,\n eventMapping,\n );\n },\n removeAnimatedEventFromView(\n viewTag: number,\n eventName: string,\n animatedNodeTag: number,\n ) {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n NativeAnimatedModule.removeAnimatedEventFromView(\n viewTag,\n eventName,\n animatedNodeTag,\n );\n },\n};\n\n/**\n * Styles allowed by the native animated implementation.\n *\n * In general native animated implementation should support any numeric property that doesn't need\n * to be updated through the shadow view hierarchy (all non-layout properties).\n */\nconst STYLES_WHITELIST = {\n opacity: true,\n transform: true,\n borderRadius: true,\n borderBottomEndRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderBottomStartRadius: true,\n borderTopEndRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderTopStartRadius: true,\n elevation: true,\n /* ios styles */\n shadowOpacity: true,\n shadowRadius: true,\n /* legacy android transform properties */\n scaleX: true,\n scaleY: true,\n translateX: true,\n translateY: true,\n};\n\nconst TRANSFORM_WHITELIST = {\n translateX: true,\n translateY: true,\n scale: true,\n scaleX: true,\n scaleY: true,\n rotate: true,\n rotateX: true,\n rotateY: true,\n rotateZ: true,\n perspective: true,\n};\n\nconst SUPPORTED_INTERPOLATION_PARAMS = {\n inputRange: true,\n outputRange: true,\n extrapolate: true,\n extrapolateRight: true,\n extrapolateLeft: true,\n};\n\nfunction addWhitelistedStyleProp(prop: string): void {\n STYLES_WHITELIST[prop] = true;\n}\n\nfunction addWhitelistedTransformProp(prop: string): void {\n TRANSFORM_WHITELIST[prop] = true;\n}\n\nfunction addWhitelistedInterpolationParam(param: string): void {\n SUPPORTED_INTERPOLATION_PARAMS[param] = true;\n}\n\nfunction validateTransform(\n configs: Array<\n | {\n type: 'animated',\n property: string,\n nodeTag: ?number,\n ...\n }\n | {\n type: 'static',\n property: string,\n value: number | string,\n ...\n },\n >,\n): void {\n configs.forEach(config => {\n if (!TRANSFORM_WHITELIST.hasOwnProperty(config.property)) {\n throw new Error(\n `Property '${\n config.property\n }' is not supported by native animated module`,\n );\n }\n });\n}\n\nfunction validateStyles(styles: {[key: string]: ?number, ...}): void {\n for (const key in styles) {\n if (!STYLES_WHITELIST.hasOwnProperty(key)) {\n throw new Error(\n `Style property '${key}' is not supported by native animated module`,\n );\n }\n }\n}\n\nfunction validateInterpolation(config: InterpolationConfigType): void {\n for (const key in config) {\n if (!SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(key)) {\n throw new Error(\n `Interpolation property '${key}' is not supported by native animated module`,\n );\n }\n }\n}\n\nfunction generateNewNodeTag(): number {\n return __nativeAnimatedNodeTagCount++;\n}\n\nfunction generateNewAnimationId(): number {\n return __nativeAnimationIdCount++;\n}\n\nfunction assertNativeAnimatedModule(): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n}\n\nlet _warnedMissingNativeAnimated = false;\n\nfunction shouldUseNativeDriver(config: AnimationConfig | EventConfig): boolean {\n if (config.useNativeDriver == null) {\n console.warn(\n 'Animated: `useNativeDriver` was not specified. This is a required ' +\n 'option and must be explicitly set to `true` or `false`',\n );\n }\n\n if (config.useNativeDriver === true && !NativeAnimatedModule) {\n if (!_warnedMissingNativeAnimated) {\n console.warn(\n 'Animated: `useNativeDriver` is not supported because the native ' +\n 'animated module is missing. Falling back to JS-based animation. To ' +\n 'resolve this, add `RCTAnimation` module to this app, or remove ' +\n '`useNativeDriver`. ' +\n 'More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420',\n );\n _warnedMissingNativeAnimated = true;\n }\n return false;\n }\n\n return config.useNativeDriver || false;\n}\n\nfunction transformDataType(value: number | string): number | string {\n // Change the string type to number type so we can reuse the same logic in\n // iOS and Android platform\n if (typeof value !== 'string') {\n return value;\n }\n if (/deg$/.test(value)) {\n const degrees = parseFloat(value) || 0;\n const radians = (degrees * Math.PI) / 180.0;\n return radians;\n } else {\n return value;\n }\n}\n\nmodule.exports = {\n API,\n addWhitelistedStyleProp,\n addWhitelistedTransformProp,\n addWhitelistedInterpolationParam,\n validateStyles,\n validateTransform,\n validateInterpolation,\n generateNewNodeTag,\n generateNewAnimationId,\n assertNativeAnimatedModule,\n shouldUseNativeDriver,\n transformDataType,\n // $FlowExpectedError - unsafe getter lint suppresion\n get nativeEventEmitter(): NativeEventEmitter {\n if (!nativeEventEmitter) {\n nativeEventEmitter = new NativeEventEmitter(NativeAnimatedModule);\n }\n return nativeEventEmitter;\n },\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\ntype EndResult = {finished: boolean, ...};\ntype EndCallback = (result: EndResult) => void;\n\nexport type EventMapping = {|\n nativeEventPath: Array,\n animatedValueTag: ?number,\n|};\n\n// The config has different keys depending on the type of the Node\n// TODO(T54896888): Make these types strict\nexport type AnimatedNodeConfig = Object;\nexport type AnimatingNodeConfig = Object;\n\nexport interface Spec extends TurboModule {\n +createAnimatedNode: (tag: number, config: AnimatedNodeConfig) => void;\n +startListeningToAnimatedNodeValue: (tag: number) => void;\n +stopListeningToAnimatedNodeValue: (tag: number) => void;\n +connectAnimatedNodes: (parentTag: number, childTag: number) => void;\n +disconnectAnimatedNodes: (parentTag: number, childTag: number) => void;\n +startAnimatingNode: (\n animationId: number,\n nodeTag: number,\n config: AnimatingNodeConfig,\n endCallback: EndCallback,\n ) => void;\n +stopAnimation: (animationId: number) => void;\n +setAnimatedNodeValue: (nodeTag: number, value: number) => void;\n +setAnimatedNodeOffset: (nodeTag: number, offset: number) => void;\n +flattenAnimatedNodeOffset: (nodeTag: number) => void;\n +extractAnimatedNodeOffset: (nodeTag: number) => void;\n +connectAnimatedNodeToView: (nodeTag: number, viewTag: number) => void;\n +disconnectAnimatedNodeFromView: (nodeTag: number, viewTag: number) => void;\n +restoreDefaultValues: (nodeTag: number) => void;\n +dropAnimatedNode: (tag: number) => void;\n +addAnimatedEventToView: (\n viewTag: number,\n eventName: string,\n eventMapping: EventMapping,\n ) => void;\n +removeAnimatedEventFromView: (\n viewTag: number,\n eventName: string,\n animatedNodeTag: number,\n ) => void;\n\n // Events\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('NativeAnimatedModule'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nclass AnimatedWithChildren extends AnimatedNode {\n _children: Array;\n\n constructor() {\n super();\n this._children = [];\n }\n\n __makeNative() {\n if (!this.__isNative) {\n this.__isNative = true;\n for (const child of this._children) {\n child.__makeNative();\n NativeAnimatedHelper.API.connectAnimatedNodes(\n this.__getNativeTag(),\n child.__getNativeTag(),\n );\n }\n }\n super.__makeNative();\n }\n\n __addChild(child: AnimatedNode): void {\n if (this._children.length === 0) {\n this.__attach();\n }\n this._children.push(child);\n if (this.__isNative) {\n // Only accept \"native\" animated nodes as children\n child.__makeNative();\n NativeAnimatedHelper.API.connectAnimatedNodes(\n this.__getNativeTag(),\n child.__getNativeTag(),\n );\n }\n }\n\n __removeChild(child: AnimatedNode): void {\n const index = this._children.indexOf(child);\n if (index === -1) {\n console.warn(\"Trying to remove a child that doesn't exist\");\n return;\n }\n if (this.__isNative && child.__isNative) {\n NativeAnimatedHelper.API.disconnectAnimatedNodes(\n this.__getNativeTag(),\n child.__getNativeTag(),\n );\n }\n this._children.splice(index, 1);\n if (this._children.length === 0) {\n this.__detach();\n }\n }\n\n __getChildren(): Array {\n return this._children;\n }\n\n __callListeners(value: number): void {\n super.__callListeners(value);\n if (!this.__isNative) {\n for (const child of this._children) {\n if (child.__getValue) {\n child.__callListeners(child.__getValue());\n }\n }\n }\n }\n}\n\nmodule.exports = AnimatedWithChildren;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('../BatchedBridge/BatchedBridge');\nconst EventEmitter = require('../vendor/emitter/EventEmitter');\nconst TaskQueue = require('./TaskQueue');\n\nconst infoLog = require('../Utilities/infoLog');\nconst invariant = require('invariant');\nconst keyMirror = require('fbjs/lib/keyMirror');\n\nexport type Handle = number;\nimport type {Task} from './TaskQueue';\n\nconst _emitter = new EventEmitter();\n\nconst DEBUG_DELAY: 0 = 0;\nconst DEBUG: false = false;\n\n/**\n * InteractionManager allows long-running work to be scheduled after any\n * interactions/animations have completed. In particular, this allows JavaScript\n * animations to run smoothly.\n *\n * Applications can schedule tasks to run after interactions with the following:\n *\n * ```\n * InteractionManager.runAfterInteractions(() => {\n * // ...long-running synchronous task...\n * });\n * ```\n *\n * Compare this to other scheduling alternatives:\n *\n * - requestAnimationFrame(): for code that animates a view over time.\n * - setImmediate/setTimeout(): run code later, note this may delay animations.\n * - runAfterInteractions(): run code later, without delaying active animations.\n *\n * The touch handling system considers one or more active touches to be an\n * 'interaction' and will delay `runAfterInteractions()` callbacks until all\n * touches have ended or been cancelled.\n *\n * InteractionManager also allows applications to register animations by\n * creating an interaction 'handle' on animation start, and clearing it upon\n * completion:\n *\n * ```\n * var handle = InteractionManager.createInteractionHandle();\n * // run animation... (`runAfterInteractions` tasks are queued)\n * // later, on animation completion:\n * InteractionManager.clearInteractionHandle(handle);\n * // queued tasks run if all handles were cleared\n * ```\n *\n * `runAfterInteractions` takes either a plain callback function, or a\n * `PromiseTask` object with a `gen` method that returns a `Promise`. If a\n * `PromiseTask` is supplied, then it is fully resolved (including asynchronous\n * dependencies that also schedule more tasks via `runAfterInteractions`) before\n * starting on the next task that might have been queued up synchronously\n * earlier.\n *\n * By default, queued tasks are executed together in a loop in one\n * `setImmediate` batch. If `setDeadline` is called with a positive number, then\n * tasks will only be executed until the deadline (in terms of js event loop run\n * time) approaches, at which point execution will yield via setTimeout,\n * allowing events such as touches to start interactions and block queued tasks\n * from executing, making apps more responsive.\n */\nconst InteractionManager = {\n Events: keyMirror({\n interactionStart: true,\n interactionComplete: true,\n }),\n\n /**\n * Schedule a function to run after all interactions have completed. Returns a cancellable\n * \"promise\".\n */\n runAfterInteractions(\n task: ?Task,\n ): {\n then: Function,\n done: Function,\n cancel: Function,\n ...\n } {\n const tasks = [];\n const promise = new Promise(resolve => {\n _scheduleUpdate();\n if (task) {\n tasks.push(task);\n }\n tasks.push({\n run: resolve,\n name: 'resolve ' + ((task && task.name) || '?'),\n });\n _taskQueue.enqueueTasks(tasks);\n });\n return {\n then: promise.then.bind(promise),\n done: (...args) => {\n if (promise.done) {\n return promise.done(...args);\n } else {\n console.warn(\n 'Tried to call done when not supported by current Promise implementation.',\n );\n }\n },\n cancel: function() {\n _taskQueue.cancelTasks(tasks);\n },\n };\n },\n\n /**\n * Notify manager that an interaction has started.\n */\n createInteractionHandle(): Handle {\n DEBUG && infoLog('InteractionManager: create interaction handle');\n _scheduleUpdate();\n const handle = ++_inc;\n _addInteractionSet.add(handle);\n return handle;\n },\n\n /**\n * Notify manager that an interaction has completed.\n */\n clearInteractionHandle(handle: Handle) {\n DEBUG && infoLog('InteractionManager: clear interaction handle');\n invariant(!!handle, 'InteractionManager: Must provide a handle to clear.');\n _scheduleUpdate();\n _addInteractionSet.delete(handle);\n _deleteInteractionSet.add(handle);\n },\n\n addListener: (_emitter.addListener.bind(_emitter): $FlowFixMe),\n\n /**\n * A positive number will use setTimeout to schedule any tasks after the\n * eventLoopRunningTime hits the deadline value, otherwise all tasks will be\n * executed in one setImmediate batch (default).\n */\n setDeadline(deadline: number) {\n _deadline = deadline;\n },\n};\n\nconst _interactionSet = new Set();\nconst _addInteractionSet = new Set();\nconst _deleteInteractionSet = new Set();\nconst _taskQueue = new TaskQueue({onMoreTasks: _scheduleUpdate});\nlet _nextUpdateHandle = 0;\nlet _inc = 0;\nlet _deadline = -1;\n\ndeclare function setImmediate(callback: any, ...args: Array): number;\n\n/**\n * Schedule an asynchronous update to the interaction state.\n */\nfunction _scheduleUpdate() {\n if (!_nextUpdateHandle) {\n if (_deadline > 0) {\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY);\n } else {\n _nextUpdateHandle = setImmediate(_processUpdate);\n }\n }\n}\n\n/**\n * Notify listeners, process queue, etc\n */\nfunction _processUpdate() {\n _nextUpdateHandle = 0;\n\n const interactionCount = _interactionSet.size;\n _addInteractionSet.forEach(handle => _interactionSet.add(handle));\n _deleteInteractionSet.forEach(handle => _interactionSet.delete(handle));\n const nextInteractionCount = _interactionSet.size;\n\n if (interactionCount !== 0 && nextInteractionCount === 0) {\n // transition from 1+ --> 0 interactions\n _emitter.emit(InteractionManager.Events.interactionComplete);\n } else if (interactionCount === 0 && nextInteractionCount !== 0) {\n // transition from 0 --> 1+ interactions\n _emitter.emit(InteractionManager.Events.interactionStart);\n }\n\n // process the queue regardless of a transition\n if (nextInteractionCount === 0) {\n while (_taskQueue.hasTasksToProcess()) {\n _taskQueue.processNext();\n if (\n _deadline > 0 &&\n BatchedBridge.getEventLoopRunningTime() >= _deadline\n ) {\n // Hit deadline before processing all tasks, so process more later.\n _scheduleUpdate();\n break;\n }\n }\n }\n _addInteractionSet.clear();\n _deleteInteractionSet.clear();\n}\n\nmodule.exports = InteractionManager;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst infoLog = require('../Utilities/infoLog');\nconst invariant = require('invariant');\n\ntype SimpleTask = {\n name: string,\n run: () => void,\n ...\n};\ntype PromiseTask = {\n name: string,\n gen: () => Promise,\n ...\n};\nexport type Task = Function | SimpleTask | PromiseTask;\n\nconst DEBUG: false = false;\n\n/**\n * TaskQueue - A system for queueing and executing a mix of simple callbacks and\n * trees of dependent tasks based on Promises. No tasks are executed unless\n * `processNext` is called.\n *\n * `enqueue` takes a Task object with either a simple `run` callback, or a\n * `gen` function that returns a `Promise` and puts it in the queue. If a gen\n * function is supplied, then the promise it returns will block execution of\n * tasks already in the queue until it resolves. This can be used to make sure\n * the first task is fully resolved (including asynchronous dependencies that\n * also schedule more tasks via `enqueue`) before starting on the next task.\n * The `onMoreTasks` constructor argument is used to inform the owner that an\n * async task has resolved and that the queue should be processed again.\n *\n * Note: Tasks are only actually executed with explicit calls to `processNext`.\n */\nclass TaskQueue {\n /**\n * TaskQueue instances are self contained and independent, so multiple tasks\n * of varying semantics and priority can operate together.\n *\n * `onMoreTasks` is invoked when `PromiseTask`s resolve if there are more\n * tasks to process.\n */\n constructor({onMoreTasks}: {onMoreTasks: () => void, ...}) {\n this._onMoreTasks = onMoreTasks;\n this._queueStack = [{tasks: [], popable: false}];\n }\n\n /**\n * Add a task to the queue. It is recommended to name your tasks for easier\n * async debugging. Tasks will not be executed until `processNext` is called\n * explicitly.\n */\n enqueue(task: Task): void {\n this._getCurrentQueue().push(task);\n }\n\n enqueueTasks(tasks: Array): void {\n tasks.forEach(task => this.enqueue(task));\n }\n\n cancelTasks(tasksToCancel: Array): void {\n // search through all tasks and remove them.\n this._queueStack = this._queueStack\n .map(queue => ({\n ...queue,\n tasks: queue.tasks.filter(task => tasksToCancel.indexOf(task) === -1),\n }))\n .filter((queue, idx) => queue.tasks.length > 0 || idx === 0);\n }\n\n /**\n * Check to see if `processNext` should be called.\n *\n * @returns {boolean} Returns true if there are tasks that are ready to be\n * processed with `processNext`, or returns false if there are no more tasks\n * to be processed right now, although there may be tasks in the queue that\n * are blocked by earlier `PromiseTask`s that haven't resolved yet.\n * `onMoreTasks` will be called after each `PromiseTask` resolves if there are\n * tasks ready to run at that point.\n */\n hasTasksToProcess(): boolean {\n return this._getCurrentQueue().length > 0;\n }\n\n /**\n * Executes the next task in the queue.\n */\n processNext(): void {\n const queue = this._getCurrentQueue();\n if (queue.length) {\n const task = queue.shift();\n try {\n if (task.gen) {\n DEBUG && infoLog('TaskQueue: genPromise for task ' + task.name);\n this._genPromise((task: any)); // Rather than annoying tagged union\n } else if (task.run) {\n DEBUG && infoLog('TaskQueue: run task ' + task.name);\n task.run();\n } else {\n invariant(\n typeof task === 'function',\n 'Expected Function, SimpleTask, or PromiseTask, but got:\\n' +\n JSON.stringify(task, null, 2),\n );\n DEBUG && infoLog('TaskQueue: run anonymous task');\n task();\n }\n } catch (e) {\n e.message =\n 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message;\n throw e;\n }\n }\n }\n\n _queueStack: Array<{\n tasks: Array,\n popable: boolean,\n ...\n }>;\n _onMoreTasks: () => void;\n\n _getCurrentQueue(): Array {\n const stackIdx = this._queueStack.length - 1;\n const queue = this._queueStack[stackIdx];\n if (\n queue.popable &&\n queue.tasks.length === 0 &&\n this._queueStack.length > 1\n ) {\n this._queueStack.pop();\n DEBUG &&\n infoLog('TaskQueue: popped queue: ', {\n stackIdx,\n queueStackSize: this._queueStack.length,\n });\n return this._getCurrentQueue();\n } else {\n return queue.tasks;\n }\n }\n\n _genPromise(task: PromiseTask) {\n // Each async task pushes it's own queue onto the queue stack. This\n // effectively defers execution of previously queued tasks until the promise\n // resolves, at which point we allow the new queue to be popped, which\n // happens once it is fully processed.\n this._queueStack.push({tasks: [], popable: false});\n const stackIdx = this._queueStack.length - 1;\n DEBUG && infoLog('TaskQueue: push new queue: ', {stackIdx});\n DEBUG && infoLog('TaskQueue: exec gen task ' + task.name);\n task\n .gen()\n .then(() => {\n DEBUG &&\n infoLog('TaskQueue: onThen for gen task ' + task.name, {\n stackIdx,\n queueStackSize: this._queueStack.length,\n });\n this._queueStack[stackIdx].popable = true;\n this.hasTasksToProcess() && this._onMoreTasks();\n })\n .catch(ex => {\n ex.message = `TaskQueue: Error resolving Promise in task ${\n task.name\n }: ${ex.message}`;\n throw ex;\n })\n .done();\n }\n}\n\nmodule.exports = TaskQueue;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n * @preventMunge\n */\n\n'use strict';\n\nconst {AnimatedEvent, attachNativeEvent} = require('./AnimatedEvent');\nconst AnimatedAddition = require('./nodes/AnimatedAddition');\nconst AnimatedDiffClamp = require('./nodes/AnimatedDiffClamp');\nconst AnimatedDivision = require('./nodes/AnimatedDivision');\nconst AnimatedInterpolation = require('./nodes/AnimatedInterpolation');\nconst AnimatedModulo = require('./nodes/AnimatedModulo');\nconst AnimatedMultiplication = require('./nodes/AnimatedMultiplication');\nconst AnimatedNode = require('./nodes/AnimatedNode');\nconst AnimatedProps = require('./nodes/AnimatedProps');\nconst AnimatedSubtraction = require('./nodes/AnimatedSubtraction');\nconst AnimatedTracking = require('./nodes/AnimatedTracking');\nconst AnimatedValue = require('./nodes/AnimatedValue');\nconst AnimatedValueXY = require('./nodes/AnimatedValueXY');\nconst DecayAnimation = require('./animations/DecayAnimation');\nconst SpringAnimation = require('./animations/SpringAnimation');\nconst TimingAnimation = require('./animations/TimingAnimation');\n\nconst createAnimatedComponent = require('./createAnimatedComponent');\n\nimport type {\n AnimationConfig,\n EndCallback,\n EndResult,\n} from './animations/Animation';\nimport type {TimingAnimationConfig} from './animations/TimingAnimation';\nimport type {DecayAnimationConfig} from './animations/DecayAnimation';\nimport type {SpringAnimationConfig} from './animations/SpringAnimation';\nimport type {Mapping, EventConfig} from './AnimatedEvent';\n\nexport type CompositeAnimation = {\n start: (callback?: ?EndCallback) => void,\n stop: () => void,\n reset: () => void,\n _startNativeLoop: (iterations?: number) => void,\n _isUsingNativeDriver: () => boolean,\n ...\n};\n\nconst add = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedAddition {\n return new AnimatedAddition(a, b);\n};\n\nconst subtract = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedSubtraction {\n return new AnimatedSubtraction(a, b);\n};\n\nconst divide = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedDivision {\n return new AnimatedDivision(a, b);\n};\n\nconst multiply = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedMultiplication {\n return new AnimatedMultiplication(a, b);\n};\n\nconst modulo = function(a: AnimatedNode, modulus: number): AnimatedModulo {\n return new AnimatedModulo(a, modulus);\n};\n\nconst diffClamp = function(\n a: AnimatedNode,\n min: number,\n max: number,\n): AnimatedDiffClamp {\n return new AnimatedDiffClamp(a, min, max);\n};\n\nconst _combineCallbacks = function(\n callback: ?EndCallback,\n config: AnimationConfig,\n) {\n if (callback && config.onComplete) {\n return (...args) => {\n config.onComplete && config.onComplete(...args);\n callback && callback(...args);\n };\n } else {\n return callback || config.onComplete;\n }\n};\n\nconst maybeVectorAnim = function(\n value: AnimatedValue | AnimatedValueXY,\n config: Object,\n anim: (value: AnimatedValue, config: Object) => CompositeAnimation,\n): ?CompositeAnimation {\n if (value instanceof AnimatedValueXY) {\n const configX = {...config};\n const configY = {...config};\n for (const key in config) {\n const {x, y} = config[key];\n if (x !== undefined && y !== undefined) {\n configX[key] = x;\n configY[key] = y;\n }\n }\n const aX = anim((value: AnimatedValueXY).x, configX);\n const aY = anim((value: AnimatedValueXY).y, configY);\n // We use `stopTogether: false` here because otherwise tracking will break\n // because the second animation will get stopped before it can update.\n return parallel([aX, aY], {stopTogether: false});\n }\n return null;\n};\n\nconst spring = function(\n value: AnimatedValue | AnimatedValueXY,\n config: SpringAnimationConfig,\n): CompositeAnimation {\n const start = function(\n animatedValue: AnimatedValue | AnimatedValueXY,\n configuration: SpringAnimationConfig,\n callback?: ?EndCallback,\n ): void {\n callback = _combineCallbacks(callback, configuration);\n const singleValue: any = animatedValue;\n const singleConfig: any = configuration;\n singleValue.stopTracking();\n if (configuration.toValue instanceof AnimatedNode) {\n singleValue.track(\n new AnimatedTracking(\n singleValue,\n configuration.toValue,\n SpringAnimation,\n singleConfig,\n callback,\n ),\n );\n } else {\n singleValue.animate(new SpringAnimation(singleConfig), callback);\n }\n };\n return (\n maybeVectorAnim(value, config, spring) || {\n start: function(callback?: ?EndCallback): void {\n start(value, config, callback);\n },\n\n stop: function(): void {\n value.stopAnimation();\n },\n\n reset: function(): void {\n value.resetAnimation();\n },\n\n _startNativeLoop: function(iterations?: number): void {\n const singleConfig = {...config, iterations};\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.111 was deployed. To see the error,\n * delete this comment and run Flow. */\n start(value, singleConfig);\n },\n\n _isUsingNativeDriver: function(): boolean {\n return config.useNativeDriver || false;\n },\n }\n );\n};\n\nconst timing = function(\n value: AnimatedValue | AnimatedValueXY,\n config: TimingAnimationConfig,\n): CompositeAnimation {\n const start = function(\n animatedValue: AnimatedValue | AnimatedValueXY,\n configuration: TimingAnimationConfig,\n callback?: ?EndCallback,\n ): void {\n callback = _combineCallbacks(callback, configuration);\n const singleValue: any = animatedValue;\n const singleConfig: any = configuration;\n singleValue.stopTracking();\n if (configuration.toValue instanceof AnimatedNode) {\n singleValue.track(\n new AnimatedTracking(\n singleValue,\n configuration.toValue,\n TimingAnimation,\n singleConfig,\n callback,\n ),\n );\n } else {\n singleValue.animate(new TimingAnimation(singleConfig), callback);\n }\n };\n\n return (\n maybeVectorAnim(value, config, timing) || {\n start: function(callback?: ?EndCallback): void {\n start(value, config, callback);\n },\n\n stop: function(): void {\n value.stopAnimation();\n },\n\n reset: function(): void {\n value.resetAnimation();\n },\n\n _startNativeLoop: function(iterations?: number): void {\n const singleConfig = {...config, iterations};\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.111 was deployed. To see the error,\n * delete this comment and run Flow. */\n start(value, singleConfig);\n },\n\n _isUsingNativeDriver: function(): boolean {\n return config.useNativeDriver || false;\n },\n }\n );\n};\n\nconst decay = function(\n value: AnimatedValue | AnimatedValueXY,\n config: DecayAnimationConfig,\n): CompositeAnimation {\n const start = function(\n animatedValue: AnimatedValue | AnimatedValueXY,\n configuration: DecayAnimationConfig,\n callback?: ?EndCallback,\n ): void {\n callback = _combineCallbacks(callback, configuration);\n const singleValue: any = animatedValue;\n const singleConfig: any = configuration;\n singleValue.stopTracking();\n singleValue.animate(new DecayAnimation(singleConfig), callback);\n };\n\n return (\n maybeVectorAnim(value, config, decay) || {\n start: function(callback?: ?EndCallback): void {\n start(value, config, callback);\n },\n\n stop: function(): void {\n value.stopAnimation();\n },\n\n reset: function(): void {\n value.resetAnimation();\n },\n\n _startNativeLoop: function(iterations?: number): void {\n const singleConfig = {...config, iterations};\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.111 was deployed. To see the error,\n * delete this comment and run Flow. */\n start(value, singleConfig);\n },\n\n _isUsingNativeDriver: function(): boolean {\n return config.useNativeDriver || false;\n },\n }\n );\n};\n\nconst sequence = function(\n animations: Array,\n): CompositeAnimation {\n let current = 0;\n return {\n start: function(callback?: ?EndCallback) {\n const onComplete = function(result) {\n if (!result.finished) {\n callback && callback(result);\n return;\n }\n\n current++;\n\n if (current === animations.length) {\n callback && callback(result);\n return;\n }\n\n animations[current].start(onComplete);\n };\n\n if (animations.length === 0) {\n callback && callback({finished: true});\n } else {\n animations[current].start(onComplete);\n }\n },\n\n stop: function() {\n if (current < animations.length) {\n animations[current].stop();\n }\n },\n\n reset: function() {\n animations.forEach((animation, idx) => {\n if (idx <= current) {\n animation.reset();\n }\n });\n current = 0;\n },\n\n _startNativeLoop: function() {\n throw new Error(\n 'Loops run using the native driver cannot contain Animated.sequence animations',\n );\n },\n\n _isUsingNativeDriver: function(): boolean {\n return false;\n },\n };\n};\n\ntype ParallelConfig = {\n // If one is stopped, stop all. default: true\n stopTogether?: boolean,\n ...\n};\nconst parallel = function(\n animations: Array,\n config?: ?ParallelConfig,\n): CompositeAnimation {\n let doneCount = 0;\n // Make sure we only call stop() at most once for each animation\n const hasEnded = {};\n const stopTogether = !(config && config.stopTogether === false);\n\n const result = {\n start: function(callback?: ?EndCallback) {\n if (doneCount === animations.length) {\n callback && callback({finished: true});\n return;\n }\n\n animations.forEach((animation, idx) => {\n const cb = function(endResult) {\n hasEnded[idx] = true;\n doneCount++;\n if (doneCount === animations.length) {\n doneCount = 0;\n callback && callback(endResult);\n return;\n }\n\n if (!endResult.finished && stopTogether) {\n result.stop();\n }\n };\n\n if (!animation) {\n cb({finished: true});\n } else {\n animation.start(cb);\n }\n });\n },\n\n stop: function(): void {\n animations.forEach((animation, idx) => {\n !hasEnded[idx] && animation.stop();\n hasEnded[idx] = true;\n });\n },\n\n reset: function(): void {\n animations.forEach((animation, idx) => {\n animation.reset();\n hasEnded[idx] = false;\n doneCount = 0;\n });\n },\n\n _startNativeLoop: function() {\n throw new Error(\n 'Loops run using the native driver cannot contain Animated.parallel animations',\n );\n },\n\n _isUsingNativeDriver: function(): boolean {\n return false;\n },\n };\n\n return result;\n};\n\nconst delay = function(time: number): CompositeAnimation {\n // Would be nice to make a specialized implementation\n return timing(new AnimatedValue(0), {\n toValue: 0,\n delay: time,\n duration: 0,\n useNativeDriver: false,\n });\n};\n\nconst stagger = function(\n time: number,\n animations: Array,\n): CompositeAnimation {\n return parallel(\n animations.map((animation, i) => {\n return sequence([delay(time * i), animation]);\n }),\n );\n};\n\ntype LoopAnimationConfig = {\n iterations: number,\n resetBeforeIteration?: boolean,\n ...\n};\n\nconst loop = function(\n animation: CompositeAnimation,\n {iterations = -1, resetBeforeIteration = true}: LoopAnimationConfig = {},\n): CompositeAnimation {\n let isFinished = false;\n let iterationsSoFar = 0;\n return {\n start: function(callback?: ?EndCallback) {\n const restart = function(result: EndResult = {finished: true}): void {\n if (\n isFinished ||\n iterationsSoFar === iterations ||\n result.finished === false\n ) {\n callback && callback(result);\n } else {\n iterationsSoFar++;\n resetBeforeIteration && animation.reset();\n animation.start(restart);\n }\n };\n if (!animation || iterations === 0) {\n callback && callback({finished: true});\n } else {\n if (animation._isUsingNativeDriver()) {\n animation._startNativeLoop(iterations);\n } else {\n restart(); // Start looping recursively on the js thread\n }\n }\n },\n\n stop: function(): void {\n isFinished = true;\n animation.stop();\n },\n\n reset: function(): void {\n iterationsSoFar = 0;\n isFinished = false;\n animation.reset();\n },\n\n _startNativeLoop: function() {\n throw new Error(\n 'Loops run using the native driver cannot contain Animated.loop animations',\n );\n },\n\n _isUsingNativeDriver: function(): boolean {\n return animation._isUsingNativeDriver();\n },\n };\n};\n\nfunction forkEvent(\n event: ?AnimatedEvent | ?Function,\n listener: Function,\n): AnimatedEvent | Function {\n if (!event) {\n return listener;\n } else if (event instanceof AnimatedEvent) {\n event.__addListener(listener);\n return event;\n } else {\n return (...args) => {\n typeof event === 'function' && event(...args);\n listener(...args);\n };\n }\n}\n\nfunction unforkEvent(\n event: ?AnimatedEvent | ?Function,\n listener: Function,\n): void {\n if (event && event instanceof AnimatedEvent) {\n event.__removeListener(listener);\n }\n}\n\nconst event = function(argMapping: Array, config: EventConfig): any {\n const animatedEvent = new AnimatedEvent(argMapping, config);\n if (animatedEvent.__isNative) {\n return animatedEvent;\n } else {\n return animatedEvent.__getHandler();\n }\n};\n\n/**\n * The `Animated` library is designed to make animations fluid, powerful, and\n * easy to build and maintain. `Animated` focuses on declarative relationships\n * between inputs and outputs, with configurable transforms in between, and\n * simple `start`/`stop` methods to control time-based animation execution.\n * If additional transforms are added, be sure to include them in\n * AnimatedMock.js as well.\n *\n * See http://facebook.github.io/react-native/docs/animated.html\n */\nmodule.exports = {\n /**\n * Standard value class for driving animations. Typically initialized with\n * `new Animated.Value(0);`\n *\n * See http://facebook.github.io/react-native/docs/animated.html#value\n */\n Value: AnimatedValue,\n /**\n * 2D value class for driving 2D animations, such as pan gestures.\n *\n * See https://facebook.github.io/react-native/docs/animatedvaluexy.html\n */\n ValueXY: AnimatedValueXY,\n /**\n * Exported to use the Interpolation type in flow.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#interpolation\n */\n Interpolation: AnimatedInterpolation,\n /**\n * Exported for ease of type checking. All animated values derive from this\n * class.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#node\n */\n Node: AnimatedNode,\n\n /**\n * Animates a value from an initial velocity to zero based on a decay\n * coefficient.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#decay\n */\n decay,\n /**\n * Animates a value along a timed easing curve. The Easing module has tons of\n * predefined curves, or you can use your own function.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#timing\n */\n timing,\n /**\n * Animates a value according to an analytical spring model based on\n * damped harmonic oscillation.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#spring\n */\n spring,\n\n /**\n * Creates a new Animated value composed from two Animated values added\n * together.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#add\n */\n add,\n\n /**\n * Creates a new Animated value composed by subtracting the second Animated\n * value from the first Animated value.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#subtract\n */\n subtract,\n\n /**\n * Creates a new Animated value composed by dividing the first Animated value\n * by the second Animated value.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#divide\n */\n divide,\n\n /**\n * Creates a new Animated value composed from two Animated values multiplied\n * together.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#multiply\n */\n multiply,\n\n /**\n * Creates a new Animated value that is the (non-negative) modulo of the\n * provided Animated value.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#modulo\n */\n modulo,\n\n /**\n * Create a new Animated value that is limited between 2 values. It uses the\n * difference between the last value so even if the value is far from the\n * bounds it will start changing when the value starts getting closer again.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#diffclamp\n */\n diffClamp,\n\n /**\n * Starts an animation after the given delay.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#delay\n */\n delay,\n /**\n * Starts an array of animations in order, waiting for each to complete\n * before starting the next. If the current running animation is stopped, no\n * following animations will be started.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#sequence\n */\n sequence,\n /**\n * Starts an array of animations all at the same time. By default, if one\n * of the animations is stopped, they will all be stopped. You can override\n * this with the `stopTogether` flag.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#parallel\n */\n parallel,\n /**\n * Array of animations may run in parallel (overlap), but are started in\n * sequence with successive delays. Nice for doing trailing effects.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#stagger\n */\n stagger,\n /**\n * Loops a given animation continuously, so that each time it reaches the\n * end, it resets and begins again from the start.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#loop\n */\n loop,\n\n /**\n * Takes an array of mappings and extracts values from each arg accordingly,\n * then calls `setValue` on the mapped outputs.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#event\n */\n event,\n\n /**\n * Make any React component Animatable. Used to create `Animated.View`, etc.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#createanimatedcomponent\n */\n createAnimatedComponent,\n\n /**\n * Imperative API to attach an animated value to an event on a view. Prefer\n * using `Animated.event` with `useNativeDrive: true` if possible.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#attachnativeevent\n */\n attachNativeEvent,\n\n /**\n * Advanced imperative API for snooping on animated events that are passed in\n * through props. Use values directly where possible.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#forkevent\n */\n forkEvent,\n unforkEvent,\n\n /**\n * Expose Event class, so it can be used as a type for type checkers.\n */\n Event: AnimatedEvent,\n\n __PropsOnlyForTests: AnimatedProps,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedAddition extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return this._a.__getValue() + this._b.__getValue();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'addition',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedAddition;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedDiffClamp extends AnimatedWithChildren {\n _a: AnimatedNode;\n _min: number;\n _max: number;\n _value: number;\n _lastValue: number;\n\n constructor(a: AnimatedNode, min: number, max: number) {\n super();\n\n this._a = a;\n this._min = min;\n this._max = max;\n this._value = this._lastValue = this._a.__getValue();\n }\n\n __makeNative() {\n this._a.__makeNative();\n super.__makeNative();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __getValue(): number {\n const value = this._a.__getValue();\n const diff = value - this._lastValue;\n this._lastValue = value;\n this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n return this._value;\n }\n\n __attach(): void {\n this._a.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max,\n };\n }\n}\n\nmodule.exports = AnimatedDiffClamp;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedDivision extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n const a = this._a.__getValue();\n const b = this._b.__getValue();\n if (b === 0) {\n console.error('Detected division by zero in AnimatedDivision');\n }\n return a / b;\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'division',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedDivision;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedModulo extends AnimatedWithChildren {\n _a: AnimatedNode;\n _modulus: number;\n\n constructor(a: AnimatedNode, modulus: number) {\n super();\n this._a = a;\n this._modulus = modulus;\n }\n\n __makeNative() {\n this._a.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return (\n ((this._a.__getValue() % this._modulus) + this._modulus) % this._modulus\n );\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'modulus',\n input: this._a.__getNativeTag(),\n modulus: this._modulus,\n };\n }\n}\n\nmodule.exports = AnimatedModulo;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedMultiplication extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return this._a.__getValue() * this._b.__getValue();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'multiplication',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedMultiplication;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst {AnimatedEvent} = require('../AnimatedEvent');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedStyle = require('./AnimatedStyle');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\nconst ReactNative = require('../../../Renderer/shims/ReactNative');\n\nconst invariant = require('invariant');\n\nclass AnimatedProps extends AnimatedNode {\n _props: Object;\n _animatedView: any;\n _callback: () => void;\n\n constructor(props: Object, callback: () => void) {\n super();\n if (props.style) {\n props = {\n ...props,\n style: new AnimatedStyle(props.style),\n };\n }\n this._props = props;\n this._callback = callback;\n this.__attach();\n }\n\n __getValue(): Object {\n const props = {};\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n if (!value.__isNative || value instanceof AnimatedStyle) {\n // We cannot use value of natively driven nodes this way as the value we have access from\n // JS may not be up to date.\n props[key] = value.__getValue();\n }\n } else if (value instanceof AnimatedEvent) {\n props[key] = value.__getHandler();\n } else {\n props[key] = value;\n }\n }\n return props;\n }\n\n __getAnimatedValue(): Object {\n const props = {};\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n props[key] = value.__getAnimatedValue();\n }\n }\n return props;\n }\n\n __attach(): void {\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n value.__addChild(this);\n }\n }\n }\n\n __detach(): void {\n if (this.__isNative && this._animatedView) {\n this.__disconnectAnimatedView();\n }\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n value.__removeChild(this);\n }\n }\n super.__detach();\n }\n\n update(): void {\n this._callback();\n }\n\n __makeNative(): void {\n if (!this.__isNative) {\n this.__isNative = true;\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n if (this._animatedView) {\n this.__connectAnimatedView();\n }\n }\n }\n\n setNativeView(animatedView: any): void {\n if (this._animatedView === animatedView) {\n return;\n }\n this._animatedView = animatedView;\n if (this.__isNative) {\n this.__connectAnimatedView();\n }\n }\n\n __connectAnimatedView(): void {\n invariant(this.__isNative, 'Expected node to be marked as \"native\"');\n const nativeViewTag: ?number = ReactNative.findNodeHandle(\n this._animatedView,\n );\n invariant(\n nativeViewTag != null,\n 'Unable to locate attached view in the native tree',\n );\n NativeAnimatedHelper.API.connectAnimatedNodeToView(\n this.__getNativeTag(),\n nativeViewTag,\n );\n }\n\n __disconnectAnimatedView(): void {\n invariant(this.__isNative, 'Expected node to be marked as \"native\"');\n const nativeViewTag: ?number = ReactNative.findNodeHandle(\n this._animatedView,\n );\n invariant(\n nativeViewTag != null,\n 'Unable to locate attached view in the native tree',\n );\n NativeAnimatedHelper.API.disconnectAnimatedNodeFromView(\n this.__getNativeTag(),\n nativeViewTag,\n );\n }\n\n __restoreDefaultValues(): void {\n // When using the native driver, view properties need to be restored to\n // their default values manually since react no longer tracks them. This\n // is needed to handle cases where a prop driven by native animated is removed\n // after having been changed natively by an animation.\n if (this.__isNative) {\n NativeAnimatedHelper.API.restoreDefaultValues(this.__getNativeTag());\n }\n }\n\n __getNativeConfig(): Object {\n const propsConfig = {};\n for (const propKey in this._props) {\n const value = this._props[propKey];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n propsConfig[propKey] = value.__getNativeTag();\n }\n }\n return {\n type: 'props',\n props: propsConfig,\n };\n }\n}\n\nmodule.exports = AnimatedProps;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedTransform = require('./AnimatedTransform');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nconst flattenStyle = require('../../../StyleSheet/flattenStyle');\n\nclass AnimatedStyle extends AnimatedWithChildren {\n _style: Object;\n\n constructor(style: any) {\n super();\n style = flattenStyle(style) || {};\n if (style.transform) {\n style = {\n ...style,\n transform: new AnimatedTransform(style.transform),\n };\n }\n this._style = style;\n }\n\n // Recursively get values for nested styles (like iOS's shadowOffset)\n _walkStyleAndGetValues(style) {\n const updatedStyle = {};\n for (const key in style) {\n const value = style[key];\n if (value instanceof AnimatedNode) {\n if (!value.__isNative) {\n // We cannot use value of natively driven nodes this way as the value we have access from\n // JS may not be up to date.\n updatedStyle[key] = value.__getValue();\n }\n } else if (value && !Array.isArray(value) && typeof value === 'object') {\n // Support animating nested values (for example: shadowOffset.height)\n updatedStyle[key] = this._walkStyleAndGetValues(value);\n } else {\n updatedStyle[key] = value;\n }\n }\n return updatedStyle;\n }\n\n __getValue(): Object {\n return this._walkStyleAndGetValues(this._style);\n }\n\n // Recursively get animated values for nested styles (like iOS's shadowOffset)\n _walkStyleAndGetAnimatedValues(style) {\n const updatedStyle = {};\n for (const key in style) {\n const value = style[key];\n if (value instanceof AnimatedNode) {\n updatedStyle[key] = value.__getAnimatedValue();\n } else if (value && !Array.isArray(value) && typeof value === 'object') {\n // Support animating nested values (for example: shadowOffset.height)\n updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value);\n }\n }\n return updatedStyle;\n }\n\n __getAnimatedValue(): Object {\n return this._walkStyleAndGetAnimatedValues(this._style);\n }\n\n __attach(): void {\n for (const key in this._style) {\n const value = this._style[key];\n if (value instanceof AnimatedNode) {\n value.__addChild(this);\n }\n }\n }\n\n __detach(): void {\n for (const key in this._style) {\n const value = this._style[key];\n if (value instanceof AnimatedNode) {\n value.__removeChild(this);\n }\n }\n super.__detach();\n }\n\n __makeNative() {\n for (const key in this._style) {\n const value = this._style[key];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n super.__makeNative();\n }\n\n __getNativeConfig(): Object {\n const styleConfig = {};\n for (const styleKey in this._style) {\n if (this._style[styleKey] instanceof AnimatedNode) {\n const style = this._style[styleKey];\n style.__makeNative();\n styleConfig[styleKey] = style.__getNativeTag();\n }\n // Non-animated styles are set using `setNativeProps`, no need\n // to pass those as a part of the node config\n }\n NativeAnimatedHelper.validateStyles(styleConfig);\n return {\n type: 'style',\n style: styleConfig,\n };\n }\n}\n\nmodule.exports = AnimatedStyle;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nclass AnimatedTransform extends AnimatedWithChildren {\n _transforms: $ReadOnlyArray;\n\n constructor(transforms: $ReadOnlyArray) {\n super();\n this._transforms = transforms;\n }\n\n __makeNative() {\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n });\n super.__makeNative();\n }\n\n __getValue(): $ReadOnlyArray {\n return this._transforms.map(transform => {\n const result = {};\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n result[key] = value.__getValue();\n } else {\n result[key] = value;\n }\n }\n return result;\n });\n }\n\n __getAnimatedValue(): $ReadOnlyArray {\n return this._transforms.map(transform => {\n const result = {};\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n result[key] = value.__getAnimatedValue();\n } else {\n // All transform components needed to recompose matrix\n result[key] = value;\n }\n }\n return result;\n });\n }\n\n __attach(): void {\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n value.__addChild(this);\n }\n }\n });\n }\n\n __detach(): void {\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n value.__removeChild(this);\n }\n }\n });\n super.__detach();\n }\n\n __getNativeConfig(): any {\n const transConfigs = [];\n\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n transConfigs.push({\n type: 'animated',\n property: key,\n nodeTag: value.__getNativeTag(),\n });\n } else {\n transConfigs.push({\n type: 'static',\n property: key,\n value: NativeAnimatedHelper.transformDataType(value),\n });\n }\n }\n });\n\n NativeAnimatedHelper.validateTransform(transConfigs);\n return {\n type: 'transform',\n transforms: transConfigs,\n };\n }\n}\n\nmodule.exports = AnimatedTransform;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedSubtraction extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return this._a.__getValue() - this._b.__getValue();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'subtraction',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedSubtraction;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedNode = require('./AnimatedNode');\nconst {\n generateNewAnimationId,\n shouldUseNativeDriver,\n} = require('../NativeAnimatedHelper');\n\nimport type {EndCallback} from '../animations/Animation';\n\nclass AnimatedTracking extends AnimatedNode {\n _value: AnimatedValue;\n _parent: AnimatedNode;\n _callback: ?EndCallback;\n _animationConfig: Object;\n _animationClass: any;\n _useNativeDriver: boolean;\n\n constructor(\n value: AnimatedValue,\n parent: AnimatedNode,\n animationClass: any,\n animationConfig: Object,\n callback?: ?EndCallback,\n ) {\n super();\n this._value = value;\n this._parent = parent;\n this._animationClass = animationClass;\n this._animationConfig = animationConfig;\n this._useNativeDriver = shouldUseNativeDriver(animationConfig);\n this._callback = callback;\n this.__attach();\n }\n\n __makeNative() {\n this.__isNative = true;\n this._parent.__makeNative();\n super.__makeNative();\n this._value.__makeNative();\n }\n\n __getValue(): Object {\n return this._parent.__getValue();\n }\n\n __attach(): void {\n this._parent.__addChild(this);\n if (this._useNativeDriver) {\n // when the tracking starts we need to convert this node to a \"native node\"\n // so that the parent node will be made \"native\" too. This is necessary as\n // if we don't do this `update` method will get called. At that point it\n // may be too late as it would mean the JS driver has already started\n // updating node values\n this.__makeNative();\n }\n }\n\n __detach(): void {\n this._parent.__removeChild(this);\n super.__detach();\n }\n\n update(): void {\n this._value.animate(\n new this._animationClass({\n ...this._animationConfig,\n toValue: (this._animationConfig.toValue: any).__getValue(),\n }),\n this._callback,\n );\n }\n\n __getNativeConfig(): any {\n const animation = new this._animationClass({\n ...this._animationConfig,\n // remove toValue from the config as it's a ref to Animated.Value\n toValue: undefined,\n });\n const animationConfig = animation.__getNativeAnimationConfig();\n return {\n type: 'tracking',\n animationId: generateNewAnimationId(),\n animationConfig,\n toValue: this._parent.__getNativeTag(),\n value: this._value.__getNativeTag(),\n };\n }\n}\n\nmodule.exports = AnimatedTracking;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nconst invariant = require('invariant');\n\ntype ValueXYListenerCallback = (value: {\n x: number,\n y: number,\n ...\n}) => mixed;\n\nlet _uniqueId = 1;\n\n/**\n * 2D Value for driving 2D animations, such as pan gestures. Almost identical\n * API to normal `Animated.Value`, but multiplexed.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html\n */\nclass AnimatedValueXY extends AnimatedWithChildren {\n x: AnimatedValue;\n y: AnimatedValue;\n _listeners: {\n [key: string]: {\n x: string,\n y: string,\n ...\n },\n ...,\n };\n\n constructor(\n valueIn?: ?{\n +x: number | AnimatedValue,\n +y: number | AnimatedValue,\n ...\n },\n ) {\n super();\n const value: any = valueIn || {x: 0, y: 0}; // @flowfixme: shouldn't need `: any`\n if (typeof value.x === 'number' && typeof value.y === 'number') {\n this.x = new AnimatedValue(value.x);\n this.y = new AnimatedValue(value.y);\n } else {\n invariant(\n value.x instanceof AnimatedValue && value.y instanceof AnimatedValue,\n 'AnimatedValueXY must be initialized with an object of numbers or ' +\n 'AnimatedValues.',\n );\n this.x = value.x;\n this.y = value.y;\n }\n this._listeners = {};\n }\n\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#setvalue\n */\n setValue(value: {x: number, y: number, ...}) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n\n /**\n * Sets an offset that is applied on top of whatever value is set, whether\n * via `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#setoffset\n */\n setOffset(offset: {x: number, y: number, ...}) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#flattenoffset\n */\n flattenOffset(): void {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n\n /**\n * Sets the offset value to the base value, and resets the base value to\n * zero. The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#extractoffset\n */\n extractOffset(): void {\n this.x.extractOffset();\n this.y.extractOffset();\n }\n\n __getValue(): {\n x: number,\n y: number,\n ...\n } {\n return {\n x: this.x.__getValue(),\n y: this.y.__getValue(),\n };\n }\n\n /**\n * Stops any animation and resets the value to its original.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#resetanimation\n */\n resetAnimation(\n callback?: (value: {\n x: number,\n y: number,\n ...\n }) => void,\n ): void {\n this.x.resetAnimation();\n this.y.resetAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#stopanimation\n */\n stopAnimation(\n callback?: (value: {\n x: number,\n y: number,\n ...\n }) => void,\n ): void {\n this.x.stopAnimation();\n this.y.stopAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Adds an asynchronous listener to the value so you can observe updates from\n * animations. This is useful because there is no way to synchronously read\n * the value because it might be driven natively.\n *\n * Returns a string that serves as an identifier for the listener.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#addlistener\n */\n addListener(callback: ValueXYListenerCallback): string {\n const id = String(_uniqueId++);\n const jointCallback = ({value: number}) => {\n callback(this.__getValue());\n };\n this._listeners[id] = {\n x: this.x.addListener(jointCallback),\n y: this.y.addListener(jointCallback),\n };\n return id;\n }\n\n /**\n * Unregister a listener. The `id` param shall match the identifier\n * previously returned by `addListener()`.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#removelistener\n */\n removeListener(id: string): void {\n this.x.removeListener(this._listeners[id].x);\n this.y.removeListener(this._listeners[id].y);\n delete this._listeners[id];\n }\n\n /**\n * Remove all registered listeners.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#removealllisteners\n */\n removeAllListeners(): void {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n this._listeners = {};\n }\n\n /**\n * Converts `{x, y}` into `{left, top}` for use in style.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#getlayout\n */\n getLayout(): {[key: string]: AnimatedValue, ...} {\n return {\n left: this.x,\n top: this.y,\n };\n }\n\n /**\n * Converts `{x, y}` into a useable translation transform.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#gettranslatetransform\n */\n getTranslateTransform(): Array<{[key: string]: AnimatedValue, ...}> {\n return [{translateX: this.x}, {translateY: this.y}];\n }\n}\n\nmodule.exports = AnimatedValueXY;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Animation = require('./Animation');\n\nconst {shouldUseNativeDriver} = require('../NativeAnimatedHelper');\n\nimport type AnimatedValue from '../nodes/AnimatedValue';\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nexport type DecayAnimationConfig = AnimationConfig & {\n velocity:\n | number\n | {\n x: number,\n y: number,\n ...\n },\n deceleration?: number,\n ...\n};\n\nexport type DecayAnimationConfigSingle = AnimationConfig & {\n velocity: number,\n deceleration?: number,\n ...\n};\n\nclass DecayAnimation extends Animation {\n _startTime: number;\n _lastValue: number;\n _fromValue: number;\n _deceleration: number;\n _velocity: number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _useNativeDriver: boolean;\n\n constructor(config: DecayAnimationConfigSingle) {\n super();\n this._deceleration = config.deceleration ?? 0.998;\n this._velocity = config.velocity;\n this._useNativeDriver = shouldUseNativeDriver(config);\n this.__isInteraction = config.isInteraction ?? !this._useNativeDriver;\n this.__iterations = config.iterations ?? 1;\n }\n\n __getNativeAnimationConfig(): {|\n deceleration: number,\n iterations: number,\n type: $TEMPORARY$string<'decay'>,\n velocity: number,\n |} {\n return {\n type: 'decay',\n deceleration: this._deceleration,\n velocity: this._velocity,\n iterations: this.__iterations,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._lastValue = fromValue;\n this._fromValue = fromValue;\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n this._startTime = Date.now();\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n onUpdate(): void {\n const now = Date.now();\n\n const value =\n this._fromValue +\n (this._velocity / (1 - this._deceleration)) *\n (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime)));\n\n this._onUpdate(value);\n\n if (Math.abs(this._lastValue - value) < 0.1) {\n this.__debouncedOnEnd({finished: true});\n return;\n }\n\n this._lastValue = value;\n if (this.__active) {\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n\nmodule.exports = DecayAnimation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nimport type AnimatedValue from '../nodes/AnimatedValue';\n\nexport type EndResult = {finished: boolean, ...};\nexport type EndCallback = (result: EndResult) => void;\n\nexport type AnimationConfig = {\n isInteraction?: boolean,\n useNativeDriver: boolean,\n onComplete?: ?EndCallback,\n iterations?: number,\n ...\n};\n\n// Important note: start() and stop() will only be called at most once.\n// Once an animation has been stopped or finished its course, it will\n// not be reused.\nclass Animation {\n __active: boolean;\n __isInteraction: boolean;\n __nativeId: number;\n __onEnd: ?EndCallback;\n __iterations: number;\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {}\n stop(): void {\n if (this.__nativeId) {\n NativeAnimatedHelper.API.stopAnimation(this.__nativeId);\n }\n }\n __getNativeAnimationConfig(): any {\n // Subclasses that have corresponding animation implementation done in native\n // should override this method\n throw new Error('This animation type cannot be offloaded to native');\n }\n // Helper function for subclasses to make sure onEnd is only called once.\n __debouncedOnEnd(result: EndResult): void {\n const onEnd = this.__onEnd;\n this.__onEnd = null;\n onEnd && onEnd(result);\n }\n __startNativeAnimation(animatedValue: AnimatedValue): void {\n NativeAnimatedHelper.API.enableQueue();\n animatedValue.__makeNative();\n NativeAnimatedHelper.API.disableQueue();\n this.__nativeId = NativeAnimatedHelper.generateNewAnimationId();\n NativeAnimatedHelper.API.startAnimatingNode(\n this.__nativeId,\n animatedValue.__getNativeTag(),\n this.__getNativeAnimationConfig(),\n this.__debouncedOnEnd.bind(this),\n );\n }\n}\n\nmodule.exports = Animation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedValue = require('../nodes/AnimatedValue');\nconst AnimatedValueXY = require('../nodes/AnimatedValueXY');\nconst Animation = require('./Animation');\nconst SpringConfig = require('../SpringConfig');\n\nconst invariant = require('invariant');\n\nconst {shouldUseNativeDriver} = require('../NativeAnimatedHelper');\n\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nexport type SpringAnimationConfig = AnimationConfig & {\n toValue:\n | number\n | AnimatedValue\n | {\n x: number,\n y: number,\n ...\n }\n | AnimatedValueXY,\n overshootClamping?: boolean,\n restDisplacementThreshold?: number,\n restSpeedThreshold?: number,\n velocity?:\n | number\n | {\n x: number,\n y: number,\n ...\n },\n bounciness?: number,\n speed?: number,\n tension?: number,\n friction?: number,\n stiffness?: number,\n damping?: number,\n mass?: number,\n delay?: number,\n ...\n};\n\nexport type SpringAnimationConfigSingle = AnimationConfig & {\n toValue: number | AnimatedValue,\n overshootClamping?: boolean,\n restDisplacementThreshold?: number,\n restSpeedThreshold?: number,\n velocity?: number,\n bounciness?: number,\n speed?: number,\n tension?: number,\n friction?: number,\n stiffness?: number,\n damping?: number,\n mass?: number,\n delay?: number,\n ...\n};\n\nclass SpringAnimation extends Animation {\n _overshootClamping: boolean;\n _restDisplacementThreshold: number;\n _restSpeedThreshold: number;\n _lastVelocity: number;\n _startPosition: number;\n _lastPosition: number;\n _fromValue: number;\n _toValue: any;\n _stiffness: number;\n _damping: number;\n _mass: number;\n _initialVelocity: number;\n _delay: number;\n _timeout: any;\n _startTime: number;\n _lastTime: number;\n _frameTime: number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _useNativeDriver: boolean;\n\n constructor(config: SpringAnimationConfigSingle) {\n super();\n\n this._overshootClamping = config.overshootClamping ?? false;\n this._restDisplacementThreshold = config.restDisplacementThreshold ?? 0.001;\n this._restSpeedThreshold = config.restSpeedThreshold ?? 0.001;\n this._initialVelocity = config.velocity ?? 0;\n this._lastVelocity = config.velocity ?? 0;\n this._toValue = config.toValue;\n this._delay = config.delay ?? 0;\n this._useNativeDriver = shouldUseNativeDriver(config);\n this.__isInteraction = config.isInteraction ?? !this._useNativeDriver;\n this.__iterations = config.iterations ?? 1;\n\n if (\n config.stiffness !== undefined ||\n config.damping !== undefined ||\n config.mass !== undefined\n ) {\n invariant(\n config.bounciness === undefined &&\n config.speed === undefined &&\n config.tension === undefined &&\n config.friction === undefined,\n 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one',\n );\n this._stiffness = config.stiffness ?? 100;\n this._damping = config.damping ?? 10;\n this._mass = config.mass ?? 1;\n } else if (config.bounciness !== undefined || config.speed !== undefined) {\n // Convert the origami bounciness/speed values to stiffness/damping\n // We assume mass is 1.\n invariant(\n config.tension === undefined &&\n config.friction === undefined &&\n config.stiffness === undefined &&\n config.damping === undefined &&\n config.mass === undefined,\n 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one',\n );\n const springConfig = SpringConfig.fromBouncinessAndSpeed(\n config.bounciness ?? 8,\n config.speed ?? 12,\n );\n this._stiffness = springConfig.stiffness;\n this._damping = springConfig.damping;\n this._mass = 1;\n } else {\n // Convert the origami tension/friction values to stiffness/damping\n // We assume mass is 1.\n const springConfig = SpringConfig.fromOrigamiTensionAndFriction(\n config.tension ?? 40,\n config.friction ?? 7,\n );\n this._stiffness = springConfig.stiffness;\n this._damping = springConfig.damping;\n this._mass = 1;\n }\n\n invariant(this._stiffness > 0, 'Stiffness value must be greater than 0');\n invariant(this._damping > 0, 'Damping value must be greater than 0');\n invariant(this._mass > 0, 'Mass value must be greater than 0');\n }\n\n __getNativeAnimationConfig(): {|\n damping: number,\n initialVelocity: number,\n iterations: number,\n mass: number,\n overshootClamping: boolean,\n restDisplacementThreshold: number,\n restSpeedThreshold: number,\n stiffness: number,\n toValue: any,\n type: $TEMPORARY$string<'spring'>,\n |} {\n return {\n type: 'spring',\n overshootClamping: this._overshootClamping,\n restDisplacementThreshold: this._restDisplacementThreshold,\n restSpeedThreshold: this._restSpeedThreshold,\n stiffness: this._stiffness,\n damping: this._damping,\n mass: this._mass,\n initialVelocity: this._initialVelocity ?? this._lastVelocity,\n toValue: this._toValue,\n iterations: this.__iterations,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._startPosition = fromValue;\n this._lastPosition = this._startPosition;\n\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n this._lastTime = Date.now();\n this._frameTime = 0.0;\n\n if (previousAnimation instanceof SpringAnimation) {\n const internalState = previousAnimation.getInternalState();\n this._lastPosition = internalState.lastPosition;\n this._lastVelocity = internalState.lastVelocity;\n // Set the initial velocity to the last velocity\n this._initialVelocity = this._lastVelocity;\n this._lastTime = internalState.lastTime;\n }\n\n const start = () => {\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this.onUpdate();\n }\n };\n\n // If this._delay is more than 0, we start after the timeout.\n if (this._delay) {\n this._timeout = setTimeout(start, this._delay);\n } else {\n start();\n }\n }\n\n getInternalState(): Object {\n return {\n lastPosition: this._lastPosition,\n lastVelocity: this._lastVelocity,\n lastTime: this._lastTime,\n };\n }\n\n /**\n * This spring model is based off of a damped harmonic oscillator\n * (https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator).\n *\n * We use the closed form of the second order differential equation:\n *\n * x'' + (2ζ⍵_0)x' + ⍵^2x = 0\n *\n * where\n * ⍵_0 = √(k / m) (undamped angular frequency of the oscillator),\n * ζ = c / 2√mk (damping ratio),\n * c = damping constant\n * k = stiffness\n * m = mass\n *\n * The derivation of the closed form is described in detail here:\n * http://planetmath.org/sites/default/files/texpdf/39745.pdf\n *\n * This algorithm happens to match the algorithm used by CASpringAnimation,\n * a QuartzCore (iOS) API that creates spring animations.\n */\n onUpdate(): void {\n // If for some reason we lost a lot of frames (e.g. process large payload or\n // stopped in the debugger), we only advance by 4 frames worth of\n // computation and will continue on the next frame. It's better to have it\n // running at faster speed than jumping to the end.\n const MAX_STEPS = 64;\n let now = Date.now();\n if (now > this._lastTime + MAX_STEPS) {\n now = this._lastTime + MAX_STEPS;\n }\n\n const deltaTime = (now - this._lastTime) / 1000;\n this._frameTime += deltaTime;\n\n const c: number = this._damping;\n const m: number = this._mass;\n const k: number = this._stiffness;\n const v0: number = -this._initialVelocity;\n\n const zeta = c / (2 * Math.sqrt(k * m)); // damping ratio\n const omega0 = Math.sqrt(k / m); // undamped angular frequency of the oscillator (rad/ms)\n const omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); // exponential decay\n const x0 = this._toValue - this._startPosition; // calculate the oscillation from x0 = 1 to x = 0\n\n let position = 0.0;\n let velocity = 0.0;\n const t = this._frameTime;\n if (zeta < 1) {\n // Under damped\n const envelope = Math.exp(-zeta * omega0 * t);\n position =\n this._toValue -\n envelope *\n (((v0 + zeta * omega0 * x0) / omega1) * Math.sin(omega1 * t) +\n x0 * Math.cos(omega1 * t));\n // This looks crazy -- it's actually just the derivative of the\n // oscillation function\n velocity =\n zeta *\n omega0 *\n envelope *\n ((Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0)) / omega1 +\n x0 * Math.cos(omega1 * t)) -\n envelope *\n (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) -\n omega1 * x0 * Math.sin(omega1 * t));\n } else {\n // Critically damped\n const envelope = Math.exp(-omega0 * t);\n position = this._toValue - envelope * (x0 + (v0 + omega0 * x0) * t);\n velocity =\n envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0));\n }\n\n this._lastTime = now;\n this._lastPosition = position;\n this._lastVelocity = velocity;\n\n this._onUpdate(position);\n if (!this.__active) {\n // a listener might have stopped us in _onUpdate\n return;\n }\n\n // Conditions for stopping the spring animation\n let isOvershooting = false;\n if (this._overshootClamping && this._stiffness !== 0) {\n if (this._startPosition < this._toValue) {\n isOvershooting = position > this._toValue;\n } else {\n isOvershooting = position < this._toValue;\n }\n }\n const isVelocity = Math.abs(velocity) <= this._restSpeedThreshold;\n let isDisplacement = true;\n if (this._stiffness !== 0) {\n isDisplacement =\n Math.abs(this._toValue - position) <= this._restDisplacementThreshold;\n }\n\n if (isOvershooting || (isVelocity && isDisplacement)) {\n if (this._stiffness !== 0) {\n // Ensure that we end up with a round value\n this._lastPosition = this._toValue;\n this._lastVelocity = 0;\n this._onUpdate(this._toValue);\n }\n\n this.__debouncedOnEnd({finished: true});\n return;\n }\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n clearTimeout(this._timeout);\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n\nmodule.exports = SpringAnimation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\ntype SpringConfigType = {\n stiffness: number,\n damping: number,\n ...\n};\n\nfunction stiffnessFromOrigamiValue(oValue) {\n return (oValue - 30) * 3.62 + 194;\n}\n\nfunction dampingFromOrigamiValue(oValue) {\n return (oValue - 8) * 3 + 25;\n}\n\nfunction fromOrigamiTensionAndFriction(\n tension: number,\n friction: number,\n): SpringConfigType {\n return {\n stiffness: stiffnessFromOrigamiValue(tension),\n damping: dampingFromOrigamiValue(friction),\n };\n}\n\nfunction fromBouncinessAndSpeed(\n bounciness: number,\n speed: number,\n): SpringConfigType {\n function normalize(value, startValue, endValue) {\n return (value - startValue) / (endValue - startValue);\n }\n\n function projectNormal(n, start, end) {\n return start + n * (end - start);\n }\n\n function linearInterpolation(t, start, end) {\n return t * end + (1 - t) * start;\n }\n\n function quadraticOutInterpolation(t, start, end) {\n return linearInterpolation(2 * t - t * t, start, end);\n }\n\n function b3Friction1(x) {\n return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28;\n }\n\n function b3Friction2(x) {\n return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2;\n }\n\n function b3Friction3(x) {\n return (\n 0.00000045 * Math.pow(x, 3) -\n 0.000332 * Math.pow(x, 2) +\n 0.1078 * x +\n 5.84\n );\n }\n\n function b3Nobounce(tension) {\n if (tension <= 18) {\n return b3Friction1(tension);\n } else if (tension > 18 && tension <= 44) {\n return b3Friction2(tension);\n } else {\n return b3Friction3(tension);\n }\n }\n\n let b = normalize(bounciness / 1.7, 0, 20);\n b = projectNormal(b, 0, 0.8);\n const s = normalize(speed / 1.7, 0, 20);\n const bouncyTension = projectNormal(s, 0.5, 200);\n const bouncyFriction = quadraticOutInterpolation(\n b,\n b3Nobounce(bouncyTension),\n 0.01,\n );\n\n return {\n stiffness: stiffnessFromOrigamiValue(bouncyTension),\n damping: dampingFromOrigamiValue(bouncyFriction),\n };\n}\n\nmodule.exports = {\n fromOrigamiTensionAndFriction,\n fromBouncinessAndSpeed,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedValue = require('../nodes/AnimatedValue');\nconst AnimatedValueXY = require('../nodes/AnimatedValueXY');\nconst Animation = require('./Animation');\n\nconst {shouldUseNativeDriver} = require('../NativeAnimatedHelper');\n\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nexport type TimingAnimationConfig = AnimationConfig & {\n toValue:\n | number\n | AnimatedValue\n | {\n x: number,\n y: number,\n ...\n }\n | AnimatedValueXY,\n easing?: (value: number) => number,\n duration?: number,\n delay?: number,\n ...\n};\n\nexport type TimingAnimationConfigSingle = AnimationConfig & {\n toValue: number | AnimatedValue,\n easing?: (value: number) => number,\n duration?: number,\n delay?: number,\n ...\n};\n\nlet _easeInOut;\nfunction easeInOut() {\n if (!_easeInOut) {\n const Easing = require('../Easing');\n _easeInOut = Easing.inOut(Easing.ease);\n }\n return _easeInOut;\n}\n\nclass TimingAnimation extends Animation {\n _startTime: number;\n _fromValue: number;\n _toValue: any;\n _duration: number;\n _delay: number;\n _easing: (value: number) => number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _timeout: any;\n _useNativeDriver: boolean;\n\n constructor(config: TimingAnimationConfigSingle) {\n super();\n this._toValue = config.toValue;\n this._easing = config.easing ?? easeInOut();\n this._duration = config.duration ?? 500;\n this._delay = config.delay ?? 0;\n this.__iterations = config.iterations ?? 1;\n this._useNativeDriver = shouldUseNativeDriver(config);\n this.__isInteraction = config.isInteraction ?? !this._useNativeDriver;\n }\n\n __getNativeAnimationConfig(): any {\n const frameDuration = 1000.0 / 60.0;\n const frames = [];\n const numFrames = Math.round(this._duration / frameDuration);\n for (let frame = 0; frame < numFrames; frame++) {\n frames.push(this._easing(frame / numFrames));\n }\n frames.push(this._easing(1));\n return {\n type: 'frames',\n frames,\n toValue: this._toValue,\n iterations: this.__iterations,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._fromValue = fromValue;\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n\n const start = () => {\n // Animations that sometimes have 0 duration and sometimes do not\n // still need to use the native driver when duration is 0 so as to\n // not cause intermixed JS and native animations.\n if (this._duration === 0 && !this._useNativeDriver) {\n this._onUpdate(this._toValue);\n this.__debouncedOnEnd({finished: true});\n } else {\n this._startTime = Date.now();\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this._animationFrame = requestAnimationFrame(\n this.onUpdate.bind(this),\n );\n }\n }\n };\n if (this._delay) {\n this._timeout = setTimeout(start, this._delay);\n } else {\n start();\n }\n }\n\n onUpdate(): void {\n const now = Date.now();\n if (now >= this._startTime + this._duration) {\n if (this._duration === 0) {\n this._onUpdate(this._toValue);\n } else {\n this._onUpdate(\n this._fromValue + this._easing(1) * (this._toValue - this._fromValue),\n );\n }\n this.__debouncedOnEnd({finished: true});\n return;\n }\n\n this._onUpdate(\n this._fromValue +\n this._easing((now - this._startTime) / this._duration) *\n (this._toValue - this._fromValue),\n );\n if (this.__active) {\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n clearTimeout(this._timeout);\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n\nmodule.exports = TimingAnimation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nlet ease;\n\n/**\n * The `Easing` module implements common easing functions. This module is used\n * by [Animate.timing()](docs/animate.html#timing) to convey physically\n * believable motion in animations.\n *\n * You can find a visualization of some common easing functions at\n * http://easings.net/\n *\n * ### Predefined animations\n *\n * The `Easing` module provides several predefined animations through the\n * following methods:\n *\n * - [`back`](docs/easing.html#back) provides a simple animation where the\n * object goes slightly back before moving forward\n * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation\n * - [`ease`](docs/easing.html#ease) provides a simple inertial animation\n * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction\n *\n * ### Standard functions\n *\n * Three standard easing functions are provided:\n *\n * - [`linear`](docs/easing.html#linear)\n * - [`quad`](docs/easing.html#quad)\n * - [`cubic`](docs/easing.html#cubic)\n *\n * The [`poly`](docs/easing.html#poly) function can be used to implement\n * quartic, quintic, and other higher power functions.\n *\n * ### Additional functions\n *\n * Additional mathematical functions are provided by the following methods:\n *\n * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve\n * - [`circle`](docs/easing.html#circle) provides a circular function\n * - [`sin`](docs/easing.html#sin) provides a sinusoidal function\n * - [`exp`](docs/easing.html#exp) provides an exponential function\n *\n * The following helpers are used to modify other easing functions.\n *\n * - [`in`](docs/easing.html#in) runs an easing function forwards\n * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical\n * - [`out`](docs/easing.html#out) runs an easing function backwards\n */\nclass Easing {\n /**\n * A stepping function, returns 1 for any positive value of `n`.\n */\n static step0(n: number): number {\n return n > 0 ? 1 : 0;\n }\n\n /**\n * A stepping function, returns 1 if `n` is greater than or equal to 1.\n */\n static step1(n: number): number {\n return n >= 1 ? 1 : 0;\n }\n\n /**\n * A linear function, `f(t) = t`. Position correlates to elapsed time one to\n * one.\n *\n * http://cubic-bezier.com/#0,0,1,1\n */\n static linear(t: number): number {\n return t;\n }\n\n /**\n * A simple inertial interaction, similar to an object slowly accelerating to\n * speed.\n *\n * http://cubic-bezier.com/#.42,0,1,1\n */\n static ease(t: number): number {\n if (!ease) {\n ease = Easing.bezier(0.42, 0, 1, 1);\n }\n return ease(t);\n }\n\n /**\n * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed\n * time.\n *\n * http://easings.net/#easeInQuad\n */\n static quad(t: number): number {\n return t * t;\n }\n\n /**\n * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed\n * time.\n *\n * http://easings.net/#easeInCubic\n */\n static cubic(t: number): number {\n return t * t * t;\n }\n\n /**\n * A power function. Position is equal to the Nth power of elapsed time.\n *\n * n = 4: http://easings.net/#easeInQuart\n * n = 5: http://easings.net/#easeInQuint\n */\n static poly(n: number): (t: number) => number {\n return (t: number) => Math.pow(t, n);\n }\n\n /**\n * A sinusoidal function.\n *\n * http://easings.net/#easeInSine\n */\n static sin(t: number): number {\n return 1 - Math.cos((t * Math.PI) / 2);\n }\n\n /**\n * A circular function.\n *\n * http://easings.net/#easeInCirc\n */\n static circle(t: number): number {\n return 1 - Math.sqrt(1 - t * t);\n }\n\n /**\n * An exponential function.\n *\n * http://easings.net/#easeInExpo\n */\n static exp(t: number): number {\n return Math.pow(2, 10 * (t - 1));\n }\n\n /**\n * A simple elastic interaction, similar to a spring oscillating back and\n * forth.\n *\n * Default bounciness is 1, which overshoots a little bit once. 0 bounciness\n * doesn't overshoot at all, and bounciness of N > 1 will overshoot about N\n * times.\n *\n * http://easings.net/#easeInElastic\n */\n static elastic(bounciness: number = 1): (t: number) => number {\n const p = bounciness * Math.PI;\n return t => 1 - Math.pow(Math.cos((t * Math.PI) / 2), 3) * Math.cos(t * p);\n }\n\n /**\n * Use with `Animated.parallel()` to create a simple effect where the object\n * animates back slightly as the animation starts.\n *\n * Wolfram Plot:\n *\n * - http://tiny.cc/back_default (s = 1.70158, default)\n */\n static back(s: number = 1.70158): (t: number) => number {\n return t => t * t * ((s + 1) * t - s);\n }\n\n /**\n * Provides a simple bouncing effect.\n *\n * http://easings.net/#easeInBounce\n */\n static bounce(t: number): number {\n if (t < 1 / 2.75) {\n return 7.5625 * t * t;\n }\n\n if (t < 2 / 2.75) {\n const t2 = t - 1.5 / 2.75;\n return 7.5625 * t2 * t2 + 0.75;\n }\n\n if (t < 2.5 / 2.75) {\n const t2 = t - 2.25 / 2.75;\n return 7.5625 * t2 * t2 + 0.9375;\n }\n\n const t2 = t - 2.625 / 2.75;\n return 7.5625 * t2 * t2 + 0.984375;\n }\n\n /**\n * Provides a cubic bezier curve, equivalent to CSS Transitions'\n * `transition-timing-function`.\n *\n * A useful tool to visualize cubic bezier curves can be found at\n * http://cubic-bezier.com/\n */\n static bezier(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n ): (t: number) => number {\n const _bezier = require('./bezier');\n return _bezier(x1, y1, x2, y2);\n }\n\n /**\n * Runs an easing function forwards.\n */\n static in(easing: (t: number) => number): (t: number) => number {\n return easing;\n }\n\n /**\n * Runs an easing function backwards.\n */\n static out(easing: (t: number) => number): (t: number) => number {\n return t => 1 - easing(1 - t);\n }\n\n /**\n * Makes any easing function symmetrical. The easing function will run\n * forwards for half of the duration, then backwards for the rest of the\n * duration.\n */\n static inOut(easing: (t: number) => number): (t: number) => number {\n return t => {\n if (t < 0.5) {\n return easing(t * 2) / 2;\n }\n return 1 - easing((1 - t) * 2) / 2;\n };\n }\n}\n\nmodule.exports = Easing;\n","/**\n * Portions Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n/**\n * BezierEasing - use bezier curve for transition easing function\n * https://github.com/gre/bezier-easing\n * @copyright 2014-2015 Gaëtan Renaudeau. MIT License.\n */\n\n'use strict';\n\n// These values are established by empiricism with tests (tradeoff: performance VS precision)\nconst NEWTON_ITERATIONS = 4;\nconst NEWTON_MIN_SLOPE = 0.001;\nconst SUBDIVISION_PRECISION = 0.0000001;\nconst SUBDIVISION_MAX_ITERATIONS = 10;\n\nconst kSplineTableSize = 11;\nconst kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\nconst float32ArraySupported = typeof Float32Array === 'function';\n\nfunction A(aA1, aA2) {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n}\nfunction B(aA1, aA2) {\n return 3.0 * aA2 - 6.0 * aA1;\n}\nfunction C(aA1) {\n return 3.0 * aA1;\n}\n\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nfunction calcBezier(aT, aA1, aA2) {\n return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;\n}\n\n// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.\nfunction getSlope(aT, aA1, aA2) {\n return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n}\n\nfunction binarySubdivide(aX, _aA, _aB, mX1, mX2) {\n let currentX,\n currentT,\n i = 0,\n aA = _aA,\n aB = _aB;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) {\n aB = currentT;\n } else {\n aA = currentT;\n }\n } while (\n Math.abs(currentX) > SUBDIVISION_PRECISION &&\n ++i < SUBDIVISION_MAX_ITERATIONS\n );\n return currentT;\n}\n\nfunction newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) {\n let aGuessT = _aGuessT;\n for (let i = 0; i < NEWTON_ITERATIONS; ++i) {\n const currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) {\n return aGuessT;\n }\n const currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n}\n\nmodule.exports = function bezier(\n mX1: number,\n mY1: number,\n mX2: number,\n mY2: number,\n): (x: number) => number {\n if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) {\n throw new Error('bezier x values must be in [0, 1] range');\n }\n\n // Precompute samples table\n const sampleValues = float32ArraySupported\n ? new Float32Array(kSplineTableSize)\n : new Array(kSplineTableSize);\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (let i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n let intervalStart = 0.0;\n let currentSample = 1;\n const lastSample = kSplineTableSize - 1;\n\n for (\n ;\n currentSample !== lastSample && sampleValues[currentSample] <= aX;\n ++currentSample\n ) {\n intervalStart += kSampleStepSize;\n }\n --currentSample;\n\n // Interpolate to provide an initial guess for t\n const dist =\n (aX - sampleValues[currentSample]) /\n (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n const guessForT = intervalStart + dist * kSampleStepSize;\n\n const initialSlope = getSlope(guessForT, mX1, mX2);\n if (initialSlope >= NEWTON_MIN_SLOPE) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(\n aX,\n intervalStart,\n intervalStart + kSampleStepSize,\n mX1,\n mX2,\n );\n }\n }\n\n return function BezierEasing(x: number): number {\n if (mX1 === mY1 && mX2 === mY2) {\n return x; // linear\n }\n // Because JavaScript number are imprecise, we should guarantee the extremes are right.\n if (x === 0) {\n return 0;\n }\n if (x === 1) {\n return 1;\n }\n return calcBezier(getTForX(x), mY1, mY2);\n };\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst {AnimatedEvent} = require('./AnimatedEvent');\nconst AnimatedProps = require('./nodes/AnimatedProps');\nconst React = require('react');\n\nconst invariant = require('invariant');\nconst setAndForwardRef = require('../../Utilities/setAndForwardRef');\n\nexport type AnimatedComponentType<\n Props: {+[string]: mixed, ...},\n Instance,\n> = React.AbstractComponent<$ObjMap any>, Instance>;\n\nfunction createAnimatedComponent(\n Component: React.AbstractComponent,\n): AnimatedComponentType {\n invariant(\n typeof Component !== 'function' ||\n (Component.prototype && Component.prototype.isReactComponent),\n '`createAnimatedComponent` does not support stateless functional components; ' +\n 'use a class component instead.',\n );\n\n class AnimatedComponent extends React.Component {\n _component: any; // TODO T53738161: flow type this, and the whole file\n _invokeAnimatedPropsCallbackOnMount: boolean = false;\n _prevComponent: any;\n _propsAnimated: AnimatedProps;\n _eventDetachers: Array = [];\n\n _attachNativeEvents() {\n // Make sure to get the scrollable node for components that implement\n // `ScrollResponder.Mixin`.\n const scrollableNode = this._component?.getScrollableNode\n ? this._component.getScrollableNode()\n : this._component;\n\n for (const key in this.props) {\n const prop = this.props[key];\n if (prop instanceof AnimatedEvent && prop.__isNative) {\n prop.__attach(scrollableNode, key);\n this._eventDetachers.push(() => prop.__detach(scrollableNode, key));\n }\n }\n }\n\n _detachNativeEvents() {\n this._eventDetachers.forEach(remove => remove());\n this._eventDetachers = [];\n }\n\n // The system is best designed when setNativeProps is implemented. It is\n // able to avoid re-rendering and directly set the attributes that changed.\n // However, setNativeProps can only be implemented on leaf native\n // components. If you want to animate a composite component, you need to\n // re-render it. In this case, we have a fallback that uses forceUpdate.\n _animatedPropsCallback = () => {\n if (this._component == null) {\n // AnimatedProps is created in will-mount because it's used in render.\n // But this callback may be invoked before mount in async mode,\n // In which case we should defer the setNativeProps() call.\n // React may throw away uncommitted work in async mode,\n // So a deferred call won't always be invoked.\n this._invokeAnimatedPropsCallbackOnMount = true;\n } else if (\n process.env.NODE_ENV === 'test' ||\n // For animating properties of non-leaf/non-native components\n typeof this._component.setNativeProps !== 'function' ||\n // In Fabric, force animations to go through forceUpdate and skip setNativeProps\n // eslint-disable-next-line dot-notation\n this._component['_internalInstanceHandle']?.stateNode?.canonical != null\n ) {\n this.forceUpdate();\n } else if (!this._propsAnimated.__isNative) {\n this._component.setNativeProps(\n this._propsAnimated.__getAnimatedValue(),\n );\n } else {\n throw new Error(\n 'Attempting to run JS driven animation on animated ' +\n 'node that has been moved to \"native\" earlier by starting an ' +\n 'animation with `useNativeDriver: true`',\n );\n }\n };\n\n _attachProps(nextProps) {\n const oldPropsAnimated = this._propsAnimated;\n\n this._propsAnimated = new AnimatedProps(\n nextProps,\n this._animatedPropsCallback,\n );\n\n // When you call detach, it removes the element from the parent list\n // of children. If it goes to 0, then the parent also detaches itself\n // and so on.\n // An optimization is to attach the new elements and THEN detach the old\n // ones instead of detaching and THEN attaching.\n // This way the intermediate state isn't to go to 0 and trigger\n // this expensive recursive detaching to then re-attach everything on\n // the very next operation.\n if (oldPropsAnimated) {\n oldPropsAnimated.__restoreDefaultValues();\n oldPropsAnimated.__detach();\n }\n }\n\n _setComponentRef = setAndForwardRef({\n getForwardedRef: () => this.props.forwardedRef,\n setLocalRef: ref => {\n this._prevComponent = this._component;\n this._component = ref;\n\n // TODO: Delete this in a future release.\n if (ref != null && ref.getNode == null) {\n ref.getNode = () => {\n console.warn(\n '%s: Calling `getNode()` on the ref of an Animated component ' +\n 'is no longer necessary. You can now directly use the ref ' +\n 'instead. This method will be removed in a future release.',\n ref.constructor.name ?? '<>',\n );\n return ref;\n };\n }\n },\n });\n\n render() {\n const props = this._propsAnimated.__getValue();\n return (\n \n );\n }\n\n UNSAFE_componentWillMount() {\n this._attachProps(this.props);\n }\n\n componentDidMount() {\n if (this._invokeAnimatedPropsCallbackOnMount) {\n this._invokeAnimatedPropsCallbackOnMount = false;\n this._animatedPropsCallback();\n }\n\n this._propsAnimated.setNativeView(this._component);\n this._attachNativeEvents();\n }\n\n UNSAFE_componentWillReceiveProps(newProps) {\n this._attachProps(newProps);\n }\n\n componentDidUpdate(prevProps) {\n if (this._component !== this._prevComponent) {\n this._propsAnimated.setNativeView(this._component);\n }\n if (this._component !== this._prevComponent || prevProps !== this.props) {\n this._detachNativeEvents();\n this._attachNativeEvents();\n }\n }\n\n componentWillUnmount() {\n this._propsAnimated && this._propsAnimated.__detach();\n this._detachNativeEvents();\n }\n }\n\n return React.forwardRef(function AnimatedComponentWrapper(props, ref) {\n return (\n \n );\n });\n}\n\nmodule.exports = createAnimatedComponent;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type {ElementRef, Ref} from 'react';\n\ntype Args = $ReadOnly<{|\n getForwardedRef: () => ?Ref,\n setLocalRef: (ref: ElementRef) => mixed,\n|}>;\n\n/**\n * This is a helper function for when a component needs to be able to forward a ref\n * to a child component, but still needs to have access to that component as part of\n * its implementation.\n *\n * Its main use case is in wrappers for native components.\n *\n * Usage:\n *\n * class MyView extends React.Component {\n * _nativeRef = null;\n *\n * _setNativeRef = setAndForwardRef({\n * getForwardedRef: () => this.props.forwardedRef,\n * setLocalRef: ref => {\n * this._nativeRef = ref;\n * },\n * });\n *\n * render() {\n * return ;\n * }\n * }\n *\n * const MyViewWithRef = React.forwardRef((props, ref) => (\n * \n * ));\n *\n * module.exports = MyViewWithRef;\n */\n\nfunction setAndForwardRef({\n getForwardedRef,\n setLocalRef,\n}: Args): (ref: ElementRef) => void {\n return function forwardRef(ref: ElementRef) {\n const forwardedRef = getForwardedRef();\n\n setLocalRef(ref);\n\n // Forward to user ref prop (if one has been specified)\n if (typeof forwardedRef === 'function') {\n // Handle function-based refs. String-based refs are handled as functions.\n forwardedRef(ref);\n } else if (typeof forwardedRef === 'object' && forwardedRef != null) {\n // Handle createRef-based refs\n forwardedRef.current = ref;\n }\n };\n}\n\nmodule.exports = setAndForwardRef;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nconst FlatList = require('../../../Lists/FlatList');\n\nconst createAnimatedComponent = require('../createAnimatedComponent');\n\n/**\n * @see https://github.com/facebook/react-native/commit/b8c8562\n */\nconst FlatListWithEventThrottle = React.forwardRef((props, ref) => (\n \n));\n\nmodule.exports = (createAnimatedComponent(\n FlatListWithEventThrottle,\n): $FlowFixMe);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Platform = require('../Utilities/Platform');\nconst deepDiffer = require('../Utilities/differ/deepDiffer');\nconst React = require('react');\nconst View = require('../Components/View/View');\nconst VirtualizedList = require('./VirtualizedList');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\n\nconst invariant = require('invariant');\n\nimport ScrollView, {\n type ScrollResponderType,\n} from '../Components/ScrollView/ScrollView';\nimport type {ScrollViewNativeComponentType} from '../Components/ScrollView/ScrollViewNativeComponentType.js';\nimport type {ViewStyleProp} from '../StyleSheet/StyleSheet';\nimport type {\n ViewToken,\n ViewabilityConfigCallbackPair,\n} from './ViewabilityHelper';\nimport type {RenderItemType, RenderItemProps} from './VirtualizedList';\n\ntype RequiredProps = {|\n /**\n * For simplicity, data is just a plain array. If you want to use something else, like an\n * immutable list, use the underlying `VirtualizedList` directly.\n */\n data: ?$ReadOnlyArray,\n|};\ntype OptionalProps = {|\n /**\n * Takes an item from `data` and renders it into the list. Example usage:\n *\n * (\n * \n * )}\n * data={[{title: 'Title Text', key: 'item1'}]}\n * renderItem={({item, separators}) => (\n * this._onPress(item)}\n * onShowUnderlay={separators.highlight}\n * onHideUnderlay={separators.unhighlight}>\n * \n * {item.title}\n * \n * \n * )}\n * />\n *\n * Provides additional metadata like `index` if you need it, as well as a more generic\n * `separators.updateProps` function which let's you set whatever props you want to change the\n * rendering of either the leading separator or trailing separator in case the more common\n * `highlight` and `unhighlight` (which set the `highlighted: boolean` prop) are insufficient for\n * your use-case.\n */\n renderItem?: ?RenderItemType,\n\n /**\n * Optional custom style for multi-item rows generated when numColumns > 1.\n */\n columnWrapperStyle?: ViewStyleProp,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n /**\n * `getItemLayout` is an optional optimizations that let us skip measurement of dynamic content if\n * you know the height of items a priori. `getItemLayout` is the most efficient, and is easy to\n * use if you have fixed height items, for example:\n *\n * getItemLayout={(data, index) => (\n * {length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index}\n * )}\n *\n * Adding `getItemLayout` can be a great performance boost for lists of several hundred items.\n * Remember to include separator length (height or width) in your offset calculation if you\n * specify `ItemSeparatorComponent`.\n */\n getItemLayout?: (\n data: ?Array,\n index: number,\n ) => {\n length: number,\n offset: number,\n index: number,\n ...\n },\n /**\n * If true, renders items next to each other horizontally instead of stacked vertically.\n */\n horizontal?: ?boolean,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender: number,\n /**\n * Instead of starting at the top with the first item, start at `initialScrollIndex`. This\n * disables the \"scroll to top\" optimization that keeps the first `initialNumToRender` items\n * always rendered and immediately renders the items starting at this initial index. Requires\n * `getItemLayout` to be implemented.\n */\n initialScrollIndex?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n /**\n * Used to extract a unique key for a given item at the specified index. Key is used for caching\n * and as the react key to track item re-ordering. The default extractor checks `item.key`, then\n * falls back to using the index, like React does.\n */\n keyExtractor: (item: ItemT, index: number) => string,\n /**\n * Multiple columns can only be rendered with `horizontal={false}` and will zig-zag like a\n * `flexWrap` layout. Items should all be the same height - masonry layouts are not supported.\n */\n numColumns: number,\n /**\n * See `ScrollView` for flow type and further documentation.\n */\n fadingEdgeLength?: ?number,\n|};\n\ntype FlatListProps = {|\n ...RequiredProps,\n ...OptionalProps,\n|};\n\ntype VirtualizedListProps = React.ElementConfig;\n\nexport type Props = {\n ...$Diff<\n VirtualizedListProps,\n {\n getItem: $PropertyType,\n getItemCount: $PropertyType,\n getItemLayout: $PropertyType,\n renderItem: $PropertyType,\n keyExtractor: $PropertyType,\n ...\n },\n >,\n ...FlatListProps,\n ...\n};\n\nconst defaultProps = {\n ...VirtualizedList.defaultProps,\n numColumns: 1,\n /**\n * Enabling this prop on Android greatly improves scrolling performance with no known issues.\n * The alternative is that scrolling on Android is unusably bad. Enabling it on iOS has a few\n * known issues.\n */\n removeClippedSubviews: Platform.OS === 'android',\n};\nexport type DefaultProps = typeof defaultProps;\n\n/**\n * A performant interface for rendering simple, flat lists, supporting the most handy features:\n *\n * - Fully cross-platform.\n * - Optional horizontal mode.\n * - Configurable viewability callbacks.\n * - Header support.\n * - Footer support.\n * - Separator support.\n * - Pull to Refresh.\n * - Scroll loading.\n * - ScrollToIndex support.\n *\n * If you need section support, use [``](docs/sectionlist.html).\n *\n * Minimal Example:\n *\n * {item.key}}\n * />\n *\n * More complex, multi-select example demonstrating `PureComponent` usage for perf optimization and avoiding bugs.\n *\n * - By binding the `onPressItem` handler, the props will remain `===` and `PureComponent` will\n * prevent wasteful re-renders unless the actual `id`, `selected`, or `title` props change, even\n * if the components rendered in `MyListItem` did not have such optimizations.\n * - By passing `extraData={this.state}` to `FlatList` we make sure `FlatList` itself will re-render\n * when the `state.selected` changes. Without setting this prop, `FlatList` would not know it\n * needs to re-render any items because it is also a `PureComponent` and the prop comparison will\n * not show any changes.\n * - `keyExtractor` tells the list to use the `id`s for the react keys instead of the default `key` property.\n *\n *\n * class MyListItem extends React.PureComponent {\n * _onPress = () => {\n * this.props.onPressItem(this.props.id);\n * };\n *\n * render() {\n * const textColor = this.props.selected ? \"red\" : \"black\";\n * return (\n * \n * \n * \n * {this.props.title}\n * \n * \n * \n * );\n * }\n * }\n *\n * class MultiSelectList extends React.PureComponent {\n * state = {selected: (new Map(): Map)};\n *\n * _keyExtractor = (item, index) => item.id;\n *\n * _onPressItem = (id: string) => {\n * // updater functions are preferred for transactional updates\n * this.setState((state) => {\n * // copy the map rather than modifying state.\n * const selected = new Map(state.selected);\n * selected.set(id, !selected.get(id)); // toggle\n * return {selected};\n * });\n * };\n *\n * _renderItem = ({item}) => (\n * \n * );\n *\n * render() {\n * return (\n * \n * );\n * }\n * }\n *\n * This is a convenience wrapper around [``](docs/virtualizedlist.html),\n * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed\n * here, along with the following caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n * Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.\n */\nclass FlatList extends React.PureComponent, void> {\n static defaultProps: DefaultProps = defaultProps;\n props: Props;\n /**\n * Scrolls to the end of the content. May be janky without `getItemLayout` prop.\n */\n scrollToEnd(params?: ?{animated?: ?boolean, ...}) {\n if (this._listRef) {\n this._listRef.scrollToEnd(params);\n }\n }\n\n /**\n * Scrolls to the item at the specified index such that it is positioned in the viewable area\n * such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the\n * middle. `viewOffset` is a fixed number of pixels to offset the final target position.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewOffset?: number,\n viewPosition?: number,\n ...\n }) {\n if (this._listRef) {\n this._listRef.scrollToIndex(params);\n }\n }\n\n /**\n * Requires linear scan through data - use `scrollToIndex` instead if possible.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToItem(params: {\n animated?: ?boolean,\n item: ItemT,\n viewPosition?: number,\n ...\n }) {\n if (this._listRef) {\n this._listRef.scrollToItem(params);\n }\n }\n\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList\n */\n scrollToOffset(params: {animated?: ?boolean, offset: number, ...}) {\n if (this._listRef) {\n this._listRef.scrollToOffset(params);\n }\n }\n\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n if (this._listRef) {\n this._listRef.recordInteraction();\n }\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n if (this._listRef) {\n this._listRef.flashScrollIndicators();\n }\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder(): ?ScrollResponderType {\n if (this._listRef) {\n return this._listRef.getScrollResponder();\n }\n }\n\n /**\n * Provides a reference to the underlying host component\n */\n getNativeScrollRef():\n | ?React.ElementRef\n | ?React.ElementRef {\n if (this._listRef) {\n const scrollRef = this._listRef.getScrollRef();\n if (scrollRef != null) {\n if (scrollRef instanceof ScrollView) {\n return scrollRef.getNativeScrollRef();\n } else {\n return scrollRef;\n }\n }\n }\n }\n\n getScrollableNode(): any {\n if (this._listRef) {\n return this._listRef.getScrollableNode();\n }\n }\n\n setNativeProps(props: {[string]: mixed, ...}) {\n if (this._listRef) {\n this._listRef.setNativeProps(props);\n }\n }\n\n constructor(props: Props) {\n super(props);\n this._checkProps(this.props);\n if (this.props.viewabilityConfigCallbackPairs) {\n this._virtualizedListPairs = this.props.viewabilityConfigCallbackPairs.map(\n pair => ({\n viewabilityConfig: pair.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n pair.onViewableItemsChanged,\n ),\n }),\n );\n } else if (this.props.onViewableItemsChanged) {\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n this._virtualizedListPairs.push({\n viewabilityConfig: this.props.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n this.props.onViewableItemsChanged,\n ),\n });\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n invariant(\n prevProps.numColumns === this.props.numColumns,\n 'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' +\n 'changing the number of columns to force a fresh render of the component.',\n );\n invariant(\n prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged,\n 'Changing onViewableItemsChanged on the fly is not supported',\n );\n invariant(\n !deepDiffer(prevProps.viewabilityConfig, this.props.viewabilityConfig),\n 'Changing viewabilityConfig on the fly is not supported',\n );\n invariant(\n prevProps.viewabilityConfigCallbackPairs ===\n this.props.viewabilityConfigCallbackPairs,\n 'Changing viewabilityConfigCallbackPairs on the fly is not supported',\n );\n\n this._checkProps(this.props);\n }\n\n _listRef: ?React.ElementRef;\n _virtualizedListPairs: Array = [];\n\n _captureRef = ref => {\n this._listRef = ref;\n };\n\n _checkProps(props: Props) {\n const {\n // $FlowFixMe this prop doesn't exist, is only used for an invariant\n getItem,\n // $FlowFixMe this prop doesn't exist, is only used for an invariant\n getItemCount,\n horizontal,\n numColumns,\n columnWrapperStyle,\n onViewableItemsChanged,\n viewabilityConfigCallbackPairs,\n } = props;\n invariant(\n !getItem && !getItemCount,\n 'FlatList does not support custom data formats.',\n );\n if (numColumns > 1) {\n invariant(!horizontal, 'numColumns does not support horizontal.');\n } else {\n invariant(\n !columnWrapperStyle,\n 'columnWrapperStyle not supported for single column lists',\n );\n }\n invariant(\n !(onViewableItemsChanged && viewabilityConfigCallbackPairs),\n 'FlatList does not support setting both onViewableItemsChanged and ' +\n 'viewabilityConfigCallbackPairs.',\n );\n }\n\n _getItem = (data: Array, index: number) => {\n const {numColumns} = this.props;\n if (numColumns > 1) {\n const ret = [];\n for (let kk = 0; kk < numColumns; kk++) {\n const item = data[index * numColumns + kk];\n if (item != null) {\n ret.push(item);\n }\n }\n return ret;\n } else {\n return data[index];\n }\n };\n\n _getItemCount = (data: ?Array): number => {\n if (data) {\n const {numColumns} = this.props;\n return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length;\n } else {\n return 0;\n }\n };\n\n _keyExtractor = (items: ItemT | Array, index: number) => {\n const {keyExtractor, numColumns} = this.props;\n if (numColumns > 1) {\n invariant(\n Array.isArray(items),\n 'FlatList: Encountered internal consistency error, expected each item to consist of an ' +\n 'array with 1-%s columns; instead, received a single item.',\n numColumns,\n );\n return items\n .map((it, kk) => keyExtractor(it, index * numColumns + kk))\n .join(':');\n } else {\n // $FlowFixMe Can't call keyExtractor with an array\n return keyExtractor(items, index);\n }\n };\n\n _pushMultiColumnViewable(arr: Array, v: ViewToken): void {\n const {numColumns, keyExtractor} = this.props;\n v.item.forEach((item, ii) => {\n invariant(v.index != null, 'Missing index!');\n const index = v.index * numColumns + ii;\n arr.push({...v, item, key: keyExtractor(item, index), index});\n });\n }\n\n _createOnViewableItemsChanged(\n onViewableItemsChanged: ?(info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n ) {\n return (info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => {\n const {numColumns} = this.props;\n if (onViewableItemsChanged) {\n if (numColumns > 1) {\n const changed = [];\n const viewableItems = [];\n info.viewableItems.forEach(v =>\n this._pushMultiColumnViewable(viewableItems, v),\n );\n info.changed.forEach(v => this._pushMultiColumnViewable(changed, v));\n onViewableItemsChanged({viewableItems, changed});\n } else {\n onViewableItemsChanged(info);\n }\n }\n };\n }\n\n _renderer = () => {\n const {\n ListItemComponent,\n renderItem,\n numColumns,\n columnWrapperStyle,\n } = this.props;\n\n let virtualizedListRenderKey = ListItemComponent\n ? 'ListItemComponent'\n : 'renderItem';\n\n const renderer = (props): React.Node => {\n if (ListItemComponent) {\n // $FlowFixMe Component isn't valid\n return ;\n } else if (renderItem) {\n return renderItem(props);\n } else {\n return null;\n }\n };\n\n return {\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.111 was deployed. To see the error, delete\n * this comment and run Flow. */\n [virtualizedListRenderKey]: (info: RenderItemProps) => {\n if (numColumns > 1) {\n const {item, index} = info;\n invariant(\n Array.isArray(item),\n 'Expected array of items with numColumns > 1',\n );\n return (\n \n {item.map((it, kk) => {\n const element = renderer({\n item: it,\n index: index * numColumns + kk,\n separators: info.separators,\n });\n return element != null ? (\n {element}\n ) : null;\n })}\n \n );\n } else {\n return renderer(info);\n }\n },\n };\n };\n\n render(): React.Node {\n const {numColumns, columnWrapperStyle, ...restProps} = this.props;\n\n return (\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n row: {flexDirection: 'row'},\n});\n\nmodule.exports = FlatList;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst AnimatedImplementation = require('../../Animated/src/AnimatedImplementation');\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst ReactNative = require('../../Renderer/shims/ReactNative');\nrequire('../../Renderer/shims/ReactNative'); // Force side effects to prevent T55744311\nconst ScrollResponder = require('../ScrollResponder');\nconst ScrollViewStickyHeader = require('./ScrollViewStickyHeader');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst View = require('../View/View');\n\nconst dismissKeyboard = require('../../Utilities/dismissKeyboard');\nconst flattenStyle = require('../../StyleSheet/flattenStyle');\nconst invariant = require('invariant');\nconst processDecelerationRate = require('./processDecelerationRate');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\nconst resolveAssetSource = require('../../Image/resolveAssetSource');\nconst splitLayoutProps = require('../../StyleSheet/splitLayoutProps');\n\nimport type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType';\nimport type {PointProp} from '../../StyleSheet/PointPropType';\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {\n PressEvent,\n ScrollEvent,\n LayoutEvent,\n} from '../../Types/CoreEventTypes';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {State as ScrollResponderState} from '../ScrollResponder';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {Props as ScrollViewStickyHeaderProps} from './ScrollViewStickyHeader';\n\nimport ScrollViewNativeComponent from './ScrollViewNativeComponent';\nimport ScrollContentViewNativeComponent from './ScrollContentViewNativeComponent';\nimport AndroidHorizontalScrollViewNativeComponent from './AndroidHorizontalScrollViewNativeComponent';\nimport AndroidHorizontalScrollContentViewNativeComponent from './AndroidHorizontalScrollContentViewNativeComponent';\n\nlet AndroidScrollView;\nlet AndroidHorizontalScrollContentView;\nlet AndroidHorizontalScrollView;\nlet RCTScrollView;\nlet RCTScrollContentView;\n\nif (Platform.OS === 'android') {\n AndroidScrollView = ScrollViewNativeComponent;\n AndroidHorizontalScrollView = AndroidHorizontalScrollViewNativeComponent;\n AndroidHorizontalScrollContentView = AndroidHorizontalScrollContentViewNativeComponent;\n} else if (Platform.OS === 'ios') {\n RCTScrollView = ScrollViewNativeComponent;\n RCTScrollContentView = ScrollContentViewNativeComponent;\n} else {\n RCTScrollView = requireNativeComponent('RCTScrollView');\n RCTScrollContentView = requireNativeComponent('RCTScrollContentView');\n}\n\nexport type ScrollResponderType = {\n // We'd like to do ...ScrollView here, however Flow doesn't seem\n // to see the imperative methods of ScrollView that way. Workaround the\n // issue by specifying them manually.\n getScrollableNode: $PropertyType,\n getInnerViewNode: $PropertyType,\n getInnerViewRef: $PropertyType,\n getNativeScrollRef: $PropertyType,\n setNativeProps: $PropertyType,\n scrollTo: $PropertyType,\n flashScrollIndicators: $PropertyType,\n ...typeof ScrollResponder.Mixin,\n ...\n};\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Controls whether iOS should automatically adjust the content inset\n * for scroll views that are placed behind a navigation bar or\n * tab bar/ toolbar. The default value is true.\n * @platform ios\n */\n automaticallyAdjustContentInsets?: ?boolean,\n /**\n * The amount by which the scroll view content is inset from the edges\n * of the scroll view. Defaults to `{top: 0, left: 0, bottom: 0, right: 0}`.\n * @platform ios\n */\n contentInset?: ?EdgeInsetsProp,\n /**\n * Used to manually set the starting scroll offset.\n * The default value is `{x: 0, y: 0}`.\n * @platform ios\n */\n contentOffset?: ?PointProp,\n /**\n * When true, the scroll view bounces when it reaches the end of the\n * content if the content is larger then the scroll view along the axis of\n * the scroll direction. When false, it disables all bouncing even if\n * the `alwaysBounce*` props are true. The default value is true.\n * @platform ios\n */\n bounces?: ?boolean,\n /**\n * By default, ScrollView has an active pan responder that hijacks panresponders\n * deeper in the render tree in order to prevent accidental touches while scrolling.\n * However, in certain occasions (such as when using snapToInterval) in a vertical scrollview\n * You may want to disable this behavior in order to prevent the ScrollView from blocking touches\n */\n disableScrollViewPanResponder?: ?boolean,\n /**\n * When true, gestures can drive zoom past min/max and the zoom will animate\n * to the min/max value at gesture end, otherwise the zoom will not exceed\n * the limits.\n * @platform ios\n */\n bouncesZoom?: ?boolean,\n /**\n * When true, the scroll view bounces horizontally when it reaches the end\n * even if the content is smaller than the scroll view itself. The default\n * value is true when `horizontal={true}` and false otherwise.\n * @platform ios\n */\n alwaysBounceHorizontal?: ?boolean,\n /**\n * When true, the scroll view bounces vertically when it reaches the end\n * even if the content is smaller than the scroll view itself. The default\n * value is false when `horizontal={true}` and true otherwise.\n * @platform ios\n */\n alwaysBounceVertical?: ?boolean,\n /**\n * When true, the scroll view automatically centers the content when the\n * content is smaller than the scroll view bounds; when the content is\n * larger than the scroll view, this property has no effect. The default\n * value is false.\n * @platform ios\n */\n centerContent?: ?boolean,\n /**\n * The style of the scroll indicators.\n *\n * - `'default'` (the default), same as `black`.\n * - `'black'`, scroll indicator is black. This style is good against a light background.\n * - `'white'`, scroll indicator is white. This style is good against a dark background.\n *\n * @platform ios\n */\n indicatorStyle?: ?('default' | 'black' | 'white'),\n /**\n * When true, the ScrollView will try to lock to only vertical or horizontal\n * scrolling while dragging. The default value is false.\n * @platform ios\n */\n directionalLockEnabled?: ?boolean,\n /**\n * When false, once tracking starts, won't try to drag if the touch moves.\n * The default value is true.\n * @platform ios\n */\n canCancelContentTouches?: ?boolean,\n /**\n * When set, the scroll view will adjust the scroll position so that the first child that is\n * currently visible and at or beyond `minIndexForVisible` will not change position. This is\n * useful for lists that are loading content in both directions, e.g. a chat thread, where new\n * messages coming in might otherwise cause the scroll position to jump. A value of 0 is common,\n * but other values such as 1 can be used to skip loading spinners or other content that should\n * not maintain position.\n *\n * The optional `autoscrollToTopThreshold` can be used to make the content automatically scroll\n * to the top after making the adjustment if the user was within the threshold of the top before\n * the adjustment was made. This is also useful for chat-like applications where you want to see\n * new messages scroll into place, but not if the user has scrolled up a ways and it would be\n * disruptive to scroll a bunch.\n *\n * Caveat 1: Reordering elements in the scrollview with this enabled will probably cause\n * jumpiness and jank. It can be fixed, but there are currently no plans to do so. For now,\n * don't re-order the content of any ScrollViews or Lists that use this feature.\n *\n * Caveat 2: This simply uses `contentOffset` and `frame.origin` in native code to compute\n * visibility. Occlusion, transforms, and other complexity won't be taken into account as to\n * whether content is \"visible\" or not.\n *\n * @platform ios\n */\n maintainVisibleContentPosition?: ?$ReadOnly<{|\n minIndexForVisible: number,\n autoscrollToTopThreshold?: ?number,\n |}>,\n /**\n * The maximum allowed zoom scale. The default value is 1.0.\n * @platform ios\n */\n maximumZoomScale?: ?number,\n /**\n * The minimum allowed zoom scale. The default value is 1.0.\n * @platform ios\n */\n minimumZoomScale?: ?number,\n /**\n * When true, ScrollView allows use of pinch gestures to zoom in and out.\n * The default value is true.\n * @platform ios\n */\n pinchGestureEnabled?: ?boolean,\n /**\n * This controls how often the scroll event will be fired while scrolling\n * (as a time interval in ms). A lower number yields better accuracy for code\n * that is tracking the scroll position, but can lead to scroll performance\n * problems due to the volume of information being send over the bridge.\n *\n * Values between 0 and 17ms indicate 60fps updates are needed and throttling\n * will be disabled.\n *\n * If you do not need precise scroll position tracking, set this value higher\n * to limit the information being sent across the bridge.\n *\n * The default value is zero, which results in the scroll event being sent only\n * once each time the view is scrolled.\n *\n * @platform ios\n */\n scrollEventThrottle?: ?number,\n /**\n * The amount by which the scroll view indicators are inset from the edges\n * of the scroll view. This should normally be set to the same value as\n * the `contentInset`. Defaults to `{0, 0, 0, 0}`.\n * @platform ios\n */\n scrollIndicatorInsets?: ?EdgeInsetsProp,\n /**\n * When true, the scroll view can be programmatically scrolled beyond its\n * content size. The default value is false.\n * @platform ios\n */\n scrollToOverflowEnabled?: ?boolean,\n /**\n * When true, the scroll view scrolls to top when the status bar is tapped.\n * The default value is true.\n * @platform ios\n */\n scrollsToTop?: ?boolean,\n /**\n * Fires when the scroll view scrolls to top after the status bar has been tapped\n * @platform ios\n */\n onScrollToTop?: (event: ScrollEvent) => void,\n /**\n * When true, shows a horizontal scroll indicator.\n * The default value is true.\n */\n showsHorizontalScrollIndicator?: ?boolean,\n /**\n * When `snapToInterval` is set, `snapToAlignment` will define the relationship\n * of the snapping to the scroll view.\n *\n * - `'start'` (the default) will align the snap at the left (horizontal) or top (vertical)\n * - `'center'` will align the snap in the center\n * - `'end'` will align the snap at the right (horizontal) or bottom (vertical)\n *\n * @platform ios\n */\n snapToAlignment?: ?('start' | 'center' | 'end'),\n /**\n * The current scale of the scroll view content. The default value is 1.0.\n * @platform ios\n */\n zoomScale?: ?number,\n /**\n * This property specifies how the safe area insets are used to modify the\n * content area of the scroll view. The default value of this property is\n * \"never\". Available on iOS 11 and later.\n * @platform ios\n */\n contentInsetAdjustmentBehavior?: ?(\n | 'automatic'\n | 'scrollableAxes'\n | 'never'\n | 'always'\n ),\n /**\n * When true, ScrollView will emit updateChildFrames data in scroll events,\n * otherwise will not compute or emit child frame data. This only exists\n * to support legacy issues, `onLayout` should be used instead to retrieve\n * frame data.\n * The default value is false.\n * @platform ios\n */\n DEPRECATED_sendUpdatedChildFrames?: ?boolean,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Enables nested scrolling for Android API level 21+.\n * Nested scrolling is supported by default on iOS\n * @platform android\n */\n nestedScrollEnabled?: ?boolean,\n /**\n * Sometimes a scrollview takes up more space than its content fills. When this is\n * the case, this prop will fill the rest of the scrollview with a color to avoid setting\n * a background and creating unnecessary overdraw. This is an advanced optimization\n * that is not needed in the general case.\n * @platform android\n */\n endFillColor?: ?ColorValue,\n /**\n * Tag used to log scroll performance on this scroll view. Will force\n * momentum events to be turned on (see sendMomentumEvents). This doesn't do\n * anything out of the box and you need to implement a custom native\n * FpsListener for it to be useful.\n * @platform android\n */\n scrollPerfTag?: ?string,\n /**\n * Used to override default value of overScroll mode.\n *\n * Possible values:\n *\n * - `'auto'` - Default value, allow a user to over-scroll\n * this view only if the content is large enough to meaningfully scroll.\n * - `'always'` - Always allow a user to over-scroll this view.\n * - `'never'` - Never allow a user to over-scroll this view.\n *\n * @platform android\n */\n overScrollMode?: ?('auto' | 'always' | 'never'),\n /**\n * Causes the scrollbars not to turn transparent when they are not in use.\n * The default value is false.\n *\n * @platform android\n */\n persistentScrollbar?: ?boolean,\n /**\n * Fades out the edges of the the scroll content.\n *\n * If the value is greater than 0, the fading edges will be set accordingly\n * to the current scroll direction and position,\n * indicating if there is more content to show.\n *\n * The default value is 0.\n *\n * @platform android\n */\n fadingEdgeLength?: ?number,\n|}>;\n\ntype VRProps = $ReadOnly<{|\n /**\n * Optionally an image can be used for the scroll bar thumb. This will\n * override the color. While the image is loading or the image fails to\n * load the color will be used instead. Use an alpha of 0 in the color\n * to avoid seeing it while the image is loading.\n *\n * - `uri` - a string representing the resource identifier for the image, which\n * should be either a local file path or the name of a static image resource\n * - `number` - Opaque type returned by something like\n * `import IMAGE from './image.jpg'`.\n * @platform vr\n */\n scrollBarThumbImage?: ?($ReadOnly<{||}> | number), // Opaque type returned by import IMAGE from './image.jpg'\n|}>;\n\ntype StickyHeaderComponentType = React.AbstractComponent<\n ScrollViewStickyHeaderProps,\n $ReadOnly<{setNextHeaderY: number => void, ...}>,\n>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n ...VRProps,\n\n /**\n * These styles will be applied to the scroll view content container which\n * wraps all of the child views. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ...\n * const styles = StyleSheet.create({\n * contentContainer: {\n * paddingVertical: 20\n * }\n * });\n * ```\n */\n contentContainerStyle?: ?ViewStyleProp,\n /**\n * When true, the scroll view stops on the next index (in relation to scroll\n * position at release) regardless of how fast the gesture is. This can be\n * used for horizontal pagination when the page is less than the width of\n * the ScrollView. The default value is false.\n */\n disableIntervalMomentum?: ?boolean,\n /**\n * A floating-point number that determines how quickly the scroll view\n * decelerates after the user lifts their finger. You may also use string\n * shortcuts `\"normal\"` and `\"fast\"` which match the underlying iOS settings\n * for `UIScrollViewDecelerationRateNormal` and\n * `UIScrollViewDecelerationRateFast` respectively.\n *\n * - `'normal'`: 0.998 on iOS, 0.985 on Android (the default)\n * - `'fast'`: 0.99 on iOS, 0.9 on Android\n */\n decelerationRate?: ?('fast' | 'normal' | number),\n /**\n * When true, the scroll view's children are arranged horizontally in a row\n * instead of vertically in a column. The default value is false.\n */\n horizontal?: ?boolean,\n /**\n * If sticky headers should stick at the bottom instead of the top of the\n * ScrollView. This is usually used with inverted ScrollViews.\n */\n invertStickyHeaders?: ?boolean,\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n *\n * *Cross platform*\n *\n * - `'none'` (the default), drags do not dismiss the keyboard.\n * - `'on-drag'`, the keyboard is dismissed when a drag begins.\n *\n * *iOS Only*\n *\n * - `'interactive'`, the keyboard is dismissed interactively with the drag and moves in\n * synchrony with the touch; dragging upwards cancels the dismissal.\n * On android this is not supported and it will have the same behavior as 'none'.\n */\n keyboardDismissMode?: ?// default\n (| 'none' // cross-platform\n | 'on-drag'\n | 'interactive'\n ), // ios only\n /**\n * Determines when the keyboard should stay visible after a tap.\n *\n * - `'never'` (the default), tapping outside of the focused text input when the keyboard\n * is up dismisses the keyboard. When this happens, children won't receive the tap.\n * - `'always'`, the keyboard will not dismiss automatically, and the scroll view will not\n * catch taps, but children of the scroll view can catch taps.\n * - `'handled'`, the keyboard will not dismiss automatically when the tap was handled by\n * a children, (or captured by an ancestor).\n * - `false`, deprecated, use 'never' instead\n * - `true`, deprecated, use 'always' instead\n */\n keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | true | false),\n /**\n * Called when the momentum scroll starts (scroll which occurs as the ScrollView glides to a stop).\n */\n onMomentumScrollBegin?: ?(event: ScrollEvent) => void,\n /**\n * Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).\n */\n onMomentumScrollEnd?: ?(event: ScrollEvent) => void,\n\n /**\n * Fires at most once per frame during scrolling. The frequency of the\n * events can be controlled using the `scrollEventThrottle` prop.\n */\n onScroll?: ?(event: ScrollEvent) => void,\n /**\n * Called when the user begins to drag the scroll view.\n */\n onScrollBeginDrag?: ?(event: ScrollEvent) => void,\n /**\n * Called when the user stops dragging the scroll view and it either stops\n * or begins to glide.\n */\n onScrollEndDrag?: ?(event: ScrollEvent) => void,\n /**\n * Called when scrollable content view of the ScrollView changes.\n *\n * Handler function is passed the content width and content height as parameters:\n * `(contentWidth, contentHeight)`\n *\n * It's implemented using onLayout handler attached to the content container\n * which this ScrollView renders.\n */\n onContentSizeChange?: (contentWidth: number, contentHeight: number) => void,\n onKeyboardDidShow?: (event: PressEvent) => void,\n /**\n * When true, the scroll view stops on multiples of the scroll view's size\n * when scrolling. This can be used for horizontal pagination. The default\n * value is false.\n *\n * Note: Vertical pagination is not supported on Android.\n */\n pagingEnabled?: ?boolean,\n\n /**\n * When false, the view cannot be scrolled via touch interaction.\n * The default value is true.\n *\n * Note that the view can always be scrolled by calling `scrollTo`.\n */\n scrollEnabled?: ?boolean,\n /**\n * When true, shows a vertical scroll indicator.\n * The default value is true.\n */\n showsVerticalScrollIndicator?: ?boolean,\n /**\n * An array of child indices determining which children get docked to the\n * top of the screen when scrolling. For example, passing\n * `stickyHeaderIndices={[0]}` will cause the first child to be fixed to the\n * top of the scroll view. This property is not supported in conjunction\n * with `horizontal={true}`.\n */\n stickyHeaderIndices?: ?$ReadOnlyArray,\n /**\n * A React Component that will be used to render sticky headers.\n * To be used together with `stickyHeaderIndices` or with `SectionList`, defaults to `ScrollViewStickyHeader`.\n * You may need to set this if your sticky header uses custom transforms (eg. translation),\n * for example when you want your list to have an animated hidable header.\n */\n StickyHeaderComponent?: StickyHeaderComponentType,\n /**\n * When set, causes the scroll view to stop at multiples of the value of\n * `snapToInterval`. This can be used for paginating through children\n * that have lengths smaller than the scroll view. Typically used in\n * combination with `snapToAlignment` and `decelerationRate=\"fast\"`.\n *\n * Overrides less configurable `pagingEnabled` prop.\n */\n snapToInterval?: ?number,\n /**\n * When set, causes the scroll view to stop at the defined offsets.\n * This can be used for paginating through variously sized children\n * that have lengths smaller than the scroll view. Typically used in\n * combination with `decelerationRate=\"fast\"`.\n *\n * Overrides less configurable `pagingEnabled` and `snapToInterval` props.\n */\n snapToOffsets?: ?$ReadOnlyArray,\n /**\n * Use in conjunction with `snapToOffsets`. By default, the beginning\n * of the list counts as a snap offset. Set `snapToStart` to false to disable\n * this behavior and allow the list to scroll freely between its start and\n * the first `snapToOffsets` offset.\n * The default value is true.\n */\n snapToStart?: ?boolean,\n /**\n * Use in conjunction with `snapToOffsets`. By default, the end\n * of the list counts as a snap offset. Set `snapToEnd` to false to disable\n * this behavior and allow the list to scroll freely between its end and\n * the last `snapToOffsets` offset.\n * The default value is true.\n */\n snapToEnd?: ?boolean,\n /**\n * Experimental: When true, offscreen child views (whose `overflow` value is\n * `hidden`) are removed from their native backing superview when offscreen.\n * This can improve scrolling performance on long lists. The default value is\n * true.\n */\n removeClippedSubviews?: ?boolean,\n /**\n * A RefreshControl component, used to provide pull-to-refresh\n * functionality for the ScrollView. Only works for vertical ScrollViews\n * (`horizontal` prop must be `false`).\n *\n * See [RefreshControl](docs/refreshcontrol.html).\n */\n // $FlowFixMe - how to handle generic type without existential operator?\n refreshControl?: ?React.Element,\n children?: React.Node,\n|}>;\n\ntype State = {|\n layoutHeight: ?number,\n ...ScrollResponderState,\n|};\n\nfunction createScrollResponder(\n node: React.ElementRef,\n): typeof ScrollResponder.Mixin {\n const scrollResponder = {...ScrollResponder.Mixin};\n\n for (const key in scrollResponder) {\n if (typeof scrollResponder[key] === 'function') {\n scrollResponder[key] = scrollResponder[key].bind(node);\n }\n }\n\n return scrollResponder;\n}\n\ntype ContextType = {|horizontal: boolean|} | null;\nconst Context = React.createContext(null);\nconst standardHorizontalContext: ContextType = Object.freeze({\n horizontal: true,\n});\nconst standardVerticalContext: ContextType = Object.freeze({horizontal: false});\n\n/**\n * Component that wraps platform ScrollView while providing\n * integration with touch locking \"responder\" system.\n *\n * Keep in mind that ScrollViews must have a bounded height in order to work,\n * since they contain unbounded-height children into a bounded container (via\n * a scroll interaction). In order to bound the height of a ScrollView, either\n * set the height of the view directly (discouraged) or make sure all parent\n * views have bounded height. Forgetting to transfer `{flex: 1}` down the\n * view stack can lead to errors here, which the element inspector makes\n * easy to debug.\n *\n * Doesn't yet support other contained responders from blocking this scroll\n * view from becoming the responder.\n *\n *\n * `` vs [``](/react-native/docs/flatlist.html) - which one to use?\n *\n * `ScrollView` simply renders all its react child components at once. That\n * makes it very easy to understand and use.\n *\n * On the other hand, this has a performance downside. Imagine you have a very\n * long list of items you want to display, maybe several screens worth of\n * content. Creating JS components and native views for everything all at once,\n * much of which may not even be shown, will contribute to slow rendering and\n * increased memory usage.\n *\n * This is where `FlatList` comes into play. `FlatList` renders items lazily,\n * just when they are about to appear, and removes items that scroll way off\n * screen to save memory and processing time.\n *\n * `FlatList` is also handy if you want to render separators between your items,\n * multiple columns, infinite scroll loading, or any number of other features it\n * supports out of the box.\n */\nclass ScrollView extends React.Component {\n static Context: React$Context = Context;\n /**\n * Part 1: Removing ScrollResponder.Mixin:\n *\n * 1. Mixin methods should be flow typed. That's why we create a\n * copy of ScrollResponder.Mixin and attach it to this._scrollResponder.\n * Otherwise, we'd have to manually declare each method on the component\n * class and assign it a flow type.\n * 2. Mixin methods can call component methods, and access the component's\n * props and state. So, we need to bind all mixin methods to the\n * component instance.\n * 3. Continued...\n */\n _scrollResponder: typeof ScrollResponder.Mixin = createScrollResponder(this);\n\n constructor(props: Props) {\n super(props);\n\n /**\n * Part 2: Removing ScrollResponder.Mixin\n *\n * 3. Mixin methods access other mixin methods via dynamic dispatch using\n * this. Since mixin methods are bound to the component instance, we need\n * to copy all mixin methods to the component instance. This is also\n * necessary because getScrollResponder() is a public method that returns\n * an object that can be used to execute all scrollResponder methods.\n * Since the object returned from that method is the ScrollView instance,\n * we need to bind all mixin methods to the ScrollView instance.\n */\n for (const key in ScrollResponder.Mixin) {\n if (\n typeof ScrollResponder.Mixin[key] === 'function' &&\n key.startsWith('scrollResponder')\n ) {\n // $FlowFixMe - dynamically adding properties to a class\n (this: any)[key] = ScrollResponder.Mixin[key].bind(this);\n }\n }\n\n /**\n * Part 3: Removing ScrollResponder.Mixin\n *\n * 4. Mixins can initialize properties and use properties on the component\n * instance.\n */\n Object.keys(ScrollResponder.Mixin)\n .filter(key => typeof ScrollResponder.Mixin[key] !== 'function')\n .forEach(key => {\n // $FlowFixMe - dynamically adding properties to a class\n (this: any)[key] = ScrollResponder.Mixin[key];\n });\n }\n\n _scrollAnimatedValue: AnimatedImplementation.Value = new AnimatedImplementation.Value(\n 0,\n );\n _scrollAnimatedValueAttachment: ?{detach: () => void, ...} = null;\n _stickyHeaderRefs: Map<\n string,\n React.ElementRef,\n > = new Map();\n _headerLayoutYs: Map = new Map();\n\n state: State = {\n layoutHeight: null,\n ...ScrollResponder.Mixin.scrollResponderMixinGetInitialState(),\n };\n\n UNSAFE_componentWillMount() {\n this._scrollResponder.UNSAFE_componentWillMount();\n this._scrollAnimatedValue = new AnimatedImplementation.Value(\n this.props.contentOffset ? this.props.contentOffset.y : 0,\n );\n this._scrollAnimatedValue.setOffset(\n this.props.contentInset ? this.props.contentInset.top || 0 : 0,\n );\n this._stickyHeaderRefs = new Map();\n this._headerLayoutYs = new Map();\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: Props) {\n const currentContentInsetTop = this.props.contentInset\n ? this.props.contentInset.top\n : 0;\n const nextContentInsetTop = nextProps.contentInset\n ? nextProps.contentInset.top\n : 0;\n if (currentContentInsetTop !== nextContentInsetTop) {\n this._scrollAnimatedValue.setOffset(nextContentInsetTop || 0);\n }\n }\n\n componentDidMount() {\n this._updateAnimatedNodeAttachment();\n }\n\n componentDidUpdate() {\n this._updateAnimatedNodeAttachment();\n }\n\n componentWillUnmount() {\n this._scrollResponder.componentWillUnmount();\n if (this._scrollAnimatedValueAttachment) {\n this._scrollAnimatedValueAttachment.detach();\n }\n }\n\n setNativeProps(props: {[key: string]: mixed, ...}) {\n this._scrollViewRef && this._scrollViewRef.setNativeProps(props);\n }\n\n /**\n * Returns a reference to the underlying scroll responder, which supports\n * operations like `scrollTo`. All ScrollView-like components should\n * implement this method so that they can be composed while providing access\n * to the underlying scroll responder's methods.\n */\n getScrollResponder(): ScrollResponderType {\n // $FlowFixMe - overriding type to include ScrollResponder.Mixin\n return ((this: any): ScrollResponderType);\n }\n\n getScrollableNode(): ?number {\n return ReactNative.findNodeHandle(this._scrollViewRef);\n }\n\n getInnerViewNode(): ?number {\n return ReactNative.findNodeHandle(this._innerViewRef);\n }\n\n getInnerViewRef(): ?React.ElementRef> {\n return this._innerViewRef;\n }\n\n getNativeScrollRef(): ?React.ElementRef> {\n return this._scrollViewRef;\n }\n\n /**\n * Scrolls to a given x, y offset, either immediately or with a smooth animation.\n *\n * Example:\n *\n * `scrollTo({x: 0, y: 0, animated: true})`\n *\n * Note: The weird function signature is due to the fact that, for historical reasons,\n * the function also accepts separate arguments as an alternative to the options object.\n * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.\n */\n scrollTo(\n options?:\n | {\n x?: number,\n y?: number,\n animated?: boolean,\n ...\n }\n | number,\n deprecatedX?: number,\n deprecatedAnimated?: boolean,\n ) {\n let x, y, animated;\n if (typeof options === 'number') {\n console.warn(\n '`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' +\n 'animated: true})` instead.',\n );\n y = options;\n x = deprecatedX;\n animated = deprecatedAnimated;\n } else if (options) {\n y = options.y;\n x = options.x;\n animated = options.animated;\n }\n this._scrollResponder.scrollResponderScrollTo({\n x: x || 0,\n y: y || 0,\n animated: animated !== false,\n });\n }\n\n /**\n * If this is a vertical ScrollView scrolls to the bottom.\n * If this is a horizontal ScrollView scrolls to the right.\n *\n * Use `scrollToEnd({animated: true})` for smooth animated scrolling,\n * `scrollToEnd({animated: false})` for immediate scrolling.\n * If no options are passed, `animated` defaults to true.\n */\n scrollToEnd(options?: ?{animated?: boolean, ...}) {\n // Default to true\n const animated = (options && options.animated) !== false;\n this._scrollResponder.scrollResponderScrollToEnd({\n animated: animated,\n });\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n this._scrollResponder.scrollResponderFlashScrollIndicators();\n }\n\n _getKeyForIndex(index, childArray) {\n const child = childArray[index];\n return child && child.key;\n }\n\n _updateAnimatedNodeAttachment() {\n if (this._scrollAnimatedValueAttachment) {\n this._scrollAnimatedValueAttachment.detach();\n }\n if (\n this.props.stickyHeaderIndices &&\n this.props.stickyHeaderIndices.length > 0\n ) {\n this._scrollAnimatedValueAttachment = AnimatedImplementation.attachNativeEvent(\n this._scrollViewRef,\n 'onScroll',\n [{nativeEvent: {contentOffset: {y: this._scrollAnimatedValue}}}],\n );\n }\n }\n\n _setStickyHeaderRef(\n key: string,\n ref: ?React.ElementRef,\n ) {\n if (ref) {\n this._stickyHeaderRefs.set(key, ref);\n } else {\n this._stickyHeaderRefs.delete(key);\n }\n }\n\n _onStickyHeaderLayout(index, event, key) {\n const {stickyHeaderIndices} = this.props;\n if (!stickyHeaderIndices) {\n return;\n }\n const childArray = React.Children.toArray(this.props.children);\n if (key !== this._getKeyForIndex(index, childArray)) {\n // ignore stale layout update\n return;\n }\n\n const layoutY = event.nativeEvent.layout.y;\n this._headerLayoutYs.set(key, layoutY);\n\n const indexOfIndex = stickyHeaderIndices.indexOf(index);\n const previousHeaderIndex = stickyHeaderIndices[indexOfIndex - 1];\n if (previousHeaderIndex != null) {\n const previousHeader = this._stickyHeaderRefs.get(\n this._getKeyForIndex(previousHeaderIndex, childArray),\n );\n previousHeader &&\n previousHeader.setNextHeaderY &&\n previousHeader.setNextHeaderY(layoutY);\n }\n }\n\n _handleScroll = (e: ScrollEvent) => {\n if (__DEV__) {\n if (\n this.props.onScroll &&\n this.props.scrollEventThrottle == null &&\n Platform.OS === 'ios'\n ) {\n console.log(\n 'You specified `onScroll` on a but not ' +\n '`scrollEventThrottle`. You will only receive one event. ' +\n 'Using `16` you get all the events but be aware that it may ' +\n \"cause frame drops, use a bigger number if you don't need as \" +\n 'much precision.',\n );\n }\n }\n if (Platform.OS === 'android') {\n if (\n this.props.keyboardDismissMode === 'on-drag' &&\n this.state.isTouching\n ) {\n dismissKeyboard();\n }\n }\n this._scrollResponder.scrollResponderHandleScroll(e);\n };\n\n _handleLayout = (e: LayoutEvent) => {\n if (this.props.invertStickyHeaders === true) {\n this.setState({layoutHeight: e.nativeEvent.layout.height});\n }\n if (this.props.onLayout) {\n this.props.onLayout(e);\n }\n };\n\n _handleContentOnLayout = (e: LayoutEvent) => {\n const {width, height} = e.nativeEvent.layout;\n this.props.onContentSizeChange &&\n this.props.onContentSizeChange(width, height);\n };\n\n _scrollViewRef: ?React.ElementRef> = null;\n _setScrollViewRef = (ref: ?React.ElementRef>) => {\n this._scrollViewRef = ref;\n };\n\n _innerViewRef: ?React.ElementRef> = null;\n _setInnerViewRef = (ref: ?React.ElementRef>) => {\n this._innerViewRef = ref;\n };\n\n render(): React.Node | React.Element {\n let ScrollViewClass;\n let ScrollContentContainerViewClass;\n if (Platform.OS === 'android') {\n if (this.props.horizontal === true) {\n ScrollViewClass = AndroidHorizontalScrollView;\n ScrollContentContainerViewClass = AndroidHorizontalScrollContentView;\n } else {\n ScrollViewClass = AndroidScrollView;\n ScrollContentContainerViewClass = View;\n }\n } else {\n ScrollViewClass = RCTScrollView;\n ScrollContentContainerViewClass = RCTScrollContentView;\n }\n\n invariant(\n ScrollViewClass !== undefined,\n 'ScrollViewClass must not be undefined',\n );\n\n invariant(\n ScrollContentContainerViewClass !== undefined,\n 'ScrollContentContainerViewClass must not be undefined',\n );\n\n const contentContainerStyle = [\n this.props.horizontal === true && styles.contentContainerHorizontal,\n this.props.contentContainerStyle,\n ];\n if (__DEV__ && this.props.style !== undefined) {\n const style = flattenStyle(this.props.style);\n const childLayoutProps = ['alignItems', 'justifyContent'].filter(\n prop => style && style[prop] !== undefined,\n );\n invariant(\n childLayoutProps.length === 0,\n 'ScrollView child layout (' +\n JSON.stringify(childLayoutProps) +\n ') must be applied through the contentContainerStyle prop.',\n );\n }\n\n let contentSizeChangeProps = {};\n if (this.props.onContentSizeChange) {\n contentSizeChangeProps = {\n onLayout: this._handleContentOnLayout,\n };\n }\n\n const {stickyHeaderIndices} = this.props;\n let children = this.props.children;\n\n if (stickyHeaderIndices != null && stickyHeaderIndices.length > 0) {\n const childArray = React.Children.toArray(this.props.children);\n\n children = childArray.map((child, index) => {\n const indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1;\n if (indexOfIndex > -1) {\n const key = child.key;\n const nextIndex = stickyHeaderIndices[indexOfIndex + 1];\n const StickyHeaderComponent =\n this.props.StickyHeaderComponent || ScrollViewStickyHeader;\n return (\n this._setStickyHeaderRef(key, ref)}\n nextHeaderLayoutY={this._headerLayoutYs.get(\n this._getKeyForIndex(nextIndex, childArray),\n )}\n onLayout={event => this._onStickyHeaderLayout(index, event, key)}\n scrollAnimatedValue={this._scrollAnimatedValue}\n inverted={this.props.invertStickyHeaders}\n scrollViewHeight={this.state.layoutHeight}>\n {child}\n \n );\n } else {\n return child;\n }\n });\n }\n children = (\n \n {children}\n \n );\n\n const hasStickyHeaders =\n Array.isArray(stickyHeaderIndices) && stickyHeaderIndices.length > 0;\n\n const contentContainer = (\n /* $FlowFixMe(>=0.112.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.112 was deployed. To see the error, delete\n * this comment and run Flow. */\n \n {children}\n \n );\n\n const alwaysBounceHorizontal =\n this.props.alwaysBounceHorizontal !== undefined\n ? this.props.alwaysBounceHorizontal\n : this.props.horizontal;\n\n const alwaysBounceVertical =\n this.props.alwaysBounceVertical !== undefined\n ? this.props.alwaysBounceVertical\n : !this.props.horizontal;\n\n const DEPRECATED_sendUpdatedChildFrames = !!this.props\n .DEPRECATED_sendUpdatedChildFrames;\n\n const baseStyle =\n this.props.horizontal === true\n ? styles.baseHorizontal\n : styles.baseVertical;\n const props = {\n ...this.props,\n alwaysBounceHorizontal,\n alwaysBounceVertical,\n style: [baseStyle, this.props.style],\n // Override the onContentSizeChange from props, since this event can\n // bubble up from TextInputs\n onContentSizeChange: null,\n onLayout: this._handleLayout,\n onMomentumScrollBegin: this._scrollResponder\n .scrollResponderHandleMomentumScrollBegin,\n onMomentumScrollEnd: this._scrollResponder\n .scrollResponderHandleMomentumScrollEnd,\n onResponderGrant: this._scrollResponder\n .scrollResponderHandleResponderGrant,\n onResponderReject: this._scrollResponder\n .scrollResponderHandleResponderReject,\n onResponderRelease: this._scrollResponder\n .scrollResponderHandleResponderRelease,\n onResponderTerminationRequest: this._scrollResponder\n .scrollResponderHandleTerminationRequest,\n onScrollBeginDrag: this._scrollResponder\n .scrollResponderHandleScrollBeginDrag,\n onScrollEndDrag: this._scrollResponder.scrollResponderHandleScrollEndDrag,\n onScrollShouldSetResponder: this._scrollResponder\n .scrollResponderHandleScrollShouldSetResponder,\n onStartShouldSetResponder: this._scrollResponder\n .scrollResponderHandleStartShouldSetResponder,\n onStartShouldSetResponderCapture: this._scrollResponder\n .scrollResponderHandleStartShouldSetResponderCapture,\n onTouchEnd: this._scrollResponder.scrollResponderHandleTouchEnd,\n onTouchMove: this._scrollResponder.scrollResponderHandleTouchMove,\n onTouchStart: this._scrollResponder.scrollResponderHandleTouchStart,\n onTouchCancel: this._scrollResponder.scrollResponderHandleTouchCancel,\n onScroll: this._handleScroll,\n scrollBarThumbImage: resolveAssetSource(this.props.scrollBarThumbImage),\n scrollEventThrottle: hasStickyHeaders\n ? 1\n : this.props.scrollEventThrottle,\n sendMomentumEvents:\n this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd\n ? true\n : false,\n DEPRECATED_sendUpdatedChildFrames,\n // default to true\n snapToStart: this.props.snapToStart !== false,\n // default to true\n snapToEnd: this.props.snapToEnd !== false,\n // pagingEnabled is overridden by snapToInterval / snapToOffsets\n pagingEnabled: Platform.select({\n // on iOS, pagingEnabled must be set to false to have snapToInterval / snapToOffsets work\n ios:\n this.props.pagingEnabled === true &&\n this.props.snapToInterval == null &&\n this.props.snapToOffsets == null,\n // on Android, pagingEnabled must be set to true to have snapToInterval / snapToOffsets work\n android:\n this.props.pagingEnabled === true ||\n this.props.snapToInterval != null ||\n this.props.snapToOffsets != null,\n }),\n };\n\n const {decelerationRate} = this.props;\n if (decelerationRate != null) {\n props.decelerationRate = processDecelerationRate(decelerationRate);\n }\n\n const refreshControl = this.props.refreshControl;\n\n if (refreshControl) {\n if (Platform.OS === 'ios') {\n // On iOS the RefreshControl is a child of the ScrollView.\n // tvOS lacks native support for RefreshControl, so don't include it in that case\n return (\n \n {Platform.isTV ? null : refreshControl}\n {contentContainer}\n \n );\n } else if (Platform.OS === 'android') {\n // On Android wrap the ScrollView with a AndroidSwipeRefreshLayout.\n // Since the ScrollView is wrapped add the style props to the\n // AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView.\n // Note: we should split props.style on the inner and outer props\n // however, the ScrollView still needs the baseStyle to be scrollable\n const {outer, inner} = splitLayoutProps(flattenStyle(props.style));\n return React.cloneElement(\n refreshControl,\n {style: [baseStyle, outer]},\n \n {contentContainer}\n ,\n );\n }\n }\n return (\n \n {contentContainer}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n baseVertical: {\n flexGrow: 1,\n flexShrink: 1,\n flexDirection: 'column',\n overflow: 'scroll',\n },\n baseHorizontal: {\n flexGrow: 1,\n flexShrink: 1,\n flexDirection: 'row',\n overflow: 'scroll',\n },\n contentContainerHorizontal: {\n flexDirection: 'row',\n },\n});\n\nmodule.exports = ScrollView;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\nimport ScrollViewViewConfig from './ScrollViewViewConfig';\n\nimport type {\n ScrollViewNativeProps,\n ScrollViewNativeComponentType,\n} from './ScrollViewNativeComponentType';\n\nlet ScrollViewNativeComponent;\nif (global.RN$Bridgeless) {\n registerGeneratedViewConfig('RCTScrollView', ScrollViewViewConfig);\n ScrollViewNativeComponent = 'RCTScrollView';\n} else {\n ScrollViewNativeComponent = requireNativeComponent(\n 'RCTScrollView',\n );\n}\n\nexport default ((ScrollViewNativeComponent: any): ScrollViewNativeComponentType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {GeneratedViewConfig} from '../../Utilities/registerGeneratedViewConfig';\n\nconst ScrollViewViewConfig = {\n uiViewClassName: 'RCTScrollView',\n bubblingEventTypes: {},\n directEventTypes: {\n topScrollToTop: {\n registrationName: 'onScrollToTop',\n },\n },\n validAttributes: {\n alwaysBounceHorizontal: true,\n alwaysBounceVertical: true,\n automaticallyAdjustContentInsets: true,\n bounces: true,\n bouncesZoom: true,\n canCancelContentTouches: true,\n centerContent: true,\n contentInset: {diff: require('../../Utilities/differ/pointsDiffer')},\n contentOffset: {diff: require('../../Utilities/differ/pointsDiffer')},\n contentInsetAdjustmentBehavior: true,\n decelerationRate: true,\n directionalLockEnabled: true,\n disableIntervalMomentum: true,\n endFillColor: {process: require('../../StyleSheet/processColor')},\n fadingEdgeLength: true,\n indicatorStyle: true,\n keyboardDismissMode: true,\n maintainVisibleContentPosition: true,\n maximumZoomScale: true,\n minimumZoomScale: true,\n nestedScrollEnabled: true,\n onMomentumScrollBegin: true,\n onMomentumScrollEnd: true,\n onScroll: true,\n onScrollBeginDrag: true,\n onScrollEndDrag: true,\n onScrollToTop: true,\n overScrollMode: true,\n pagingEnabled: true,\n persistentScrollbar: true,\n pinchGestureEnabled: true,\n scrollEnabled: true,\n scrollEventThrottle: true,\n scrollIndicatorInsets: {\n diff: require('../../Utilities/differ/pointsDiffer'),\n },\n scrollPerfTag: true,\n scrollToOverflowEnabled: true,\n scrollsToTop: true,\n sendMomentumEvents: true,\n showsHorizontalScrollIndicator: true,\n showsVerticalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToOffsets: true,\n snapToStart: true,\n zoomScale: true,\n\n DEPRECATED_sendUpdatedChildFrames: true,\n },\n};\n\nmodule.exports = (ScrollViewViewConfig: GeneratedViewConfig);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nconst ScrollContentViewViewConfig = {\n uiViewClassName: 'RCTScrollContentView',\n bubblingEventTypes: {},\n directEventTypes: {},\n validAttributes: {},\n};\n\nlet ScrollContentViewNativeComponent;\nif (global.RN$Bridgeless) {\n registerGeneratedViewConfig(\n 'RCTScrollContentView',\n ScrollContentViewViewConfig,\n );\n ScrollContentViewNativeComponent = 'RCTScrollContentView';\n} else {\n ScrollContentViewNativeComponent = requireNativeComponent(\n 'RCTScrollContentView',\n );\n}\n\nexport default ((ScrollContentViewNativeComponent: any): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ScrollViewNativeProps} from './ScrollViewNativeComponentType';\n\nconst AndroidHorizontalScrollViewViewConfig = {\n uiViewClassName: 'AndroidHorizontalScrollView',\n bubblingEventTypes: {},\n directEventTypes: {},\n validAttributes: {\n decelerationRate: true,\n disableIntervalMomentum: true,\n endFillColor: {process: require('../../StyleSheet/processColor')},\n fadingEdgeLength: true,\n nestedScrollEnabled: true,\n overScrollMode: true,\n pagingEnabled: true,\n persistentScrollbar: true,\n scrollEnabled: true,\n scrollPerfTag: true,\n sendMomentumEvents: true,\n showsHorizontalScrollIndicator: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToStart: true,\n snapToOffsets: true,\n },\n};\n\nlet AndroidHorizontalScrollViewNativeComponent;\nif (global.RN$Bridgeless) {\n registerGeneratedViewConfig(\n 'AndroidHorizontalScrollView',\n AndroidHorizontalScrollViewViewConfig,\n );\n AndroidHorizontalScrollViewNativeComponent = 'AndroidHorizontalScrollView';\n} else {\n AndroidHorizontalScrollViewNativeComponent = requireNativeComponent(\n 'AndroidHorizontalScrollView',\n );\n}\n\nexport default ((AndroidHorizontalScrollViewNativeComponent: any): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nconst AndroidHorizontalScrollContentViewViewConfig = {\n uiViewClassName: 'AndroidHorizontalScrollContentView',\n bubblingEventTypes: {},\n directEventTypes: {},\n validAttributes: {},\n};\n\nlet AndroidHorizontalScrollContentViewNativeComponent;\nif (global.RN$Bridgeless) {\n registerGeneratedViewConfig(\n 'AndroidHorizontalScrollContentView',\n AndroidHorizontalScrollContentViewViewConfig,\n );\n AndroidHorizontalScrollContentViewNativeComponent =\n 'AndroidHorizontalScrollContentView';\n} else {\n AndroidHorizontalScrollContentViewNativeComponent = requireNativeComponent(\n 'AndroidHorizontalScrollContentView',\n );\n}\n\nexport default ((AndroidHorizontalScrollContentViewNativeComponent: any): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('react');\nconst Dimensions = require('../Utilities/Dimensions');\nconst FrameRateLogger = require('../Interaction/FrameRateLogger');\nconst Keyboard = require('./Keyboard/Keyboard');\nconst ReactNative = require('../Renderer/shims/ReactNative');\nconst TextInputState = require('./TextInput/TextInputState');\nconst UIManager = require('../ReactNative/UIManager');\nconst Platform = require('../Utilities/Platform');\nimport Commands from './ScrollView/ScrollViewCommands';\n\nconst invariant = require('invariant');\nconst performanceNow = require('fbjs/lib/performanceNow');\n\nimport type {PressEvent, ScrollEvent} from '../Types/CoreEventTypes';\nimport typeof ScrollView from './ScrollView/ScrollView';\nimport type {Props as ScrollViewProps} from './ScrollView/ScrollView';\nimport type {KeyboardEvent} from './Keyboard/Keyboard';\nimport type EmitterSubscription from '../vendor/emitter/EmitterSubscription';\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\n\n/**\n * Mixin that can be integrated in order to handle scrolling that plays well\n * with `ResponderEventPlugin`. Integrate with your platform specific scroll\n * views, or even your custom built (every-frame animating) scroll views so that\n * all of these systems play well with the `ResponderEventPlugin`.\n *\n * iOS scroll event timing nuances:\n * ===============================\n *\n *\n * Scrolling without bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... physical touch starts ...\n * 2. `onTouchStartCapture` (when you press down to stop the scroll)\n * 3. `onTouchStart` (same, but bubble phase)\n * 4. `onResponderRelease` (when lifting up - you could pause forever before * lifting)\n * 5. `onMomentumScrollEnd`\n *\n *\n * Scrolling with bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... bounce begins ...\n * ... some time elapses ...\n * ... physical touch during bounce ...\n * 2. `onMomentumScrollEnd` (Makes no sense why this occurs first during bounce)\n * 3. `onTouchStartCapture` (immediately after `onMomentumScrollEnd`)\n * 4. `onTouchStart` (same, but bubble phase)\n * 5. `onTouchEnd` (You could hold the touch start for a long time)\n * 6. `onMomentumScrollBegin` (When releasing the view starts bouncing back)\n *\n * So when we receive an `onTouchStart`, how can we tell if we are touching\n * *during* an animation (which then causes the animation to stop)? The only way\n * to tell is if the `touchStart` occurred immediately after the\n * `onMomentumScrollEnd`.\n *\n * This is abstracted out for you, so you can just call this.scrollResponderIsAnimating() if\n * necessary\n *\n * `ScrollResponder` also includes logic for blurring a currently focused input\n * if one is focused while scrolling. The `ScrollResponder` is a natural place\n * to put this logic since it can support not dismissing the keyboard while\n * scrolling, unless a recognized \"tap\"-like gesture has occurred.\n *\n * The public lifecycle API includes events for keyboard interaction, responder\n * interaction, and scrolling (among others). The keyboard callbacks\n * `onKeyboardWill/Did/*` are *global* events, but are invoked on scroll\n * responder's props so that you can guarantee that the scroll responder's\n * internal state has been updated accordingly (and deterministically) by\n * the time the props callbacks are invoke. Otherwise, you would always wonder\n * if the scroll responder is currently in a state where it recognizes new\n * keyboard positions etc. If coordinating scrolling with keyboard movement,\n * *always* use these hooks instead of listening to your own global keyboard\n * events.\n *\n * Public keyboard lifecycle API: (props callbacks)\n *\n * Standard Keyboard Appearance Sequence:\n *\n * this.props.onKeyboardWillShow\n * this.props.onKeyboardDidShow\n *\n * `onScrollResponderKeyboardDismissed` will be invoked if an appropriate\n * tap inside the scroll responder's scrollable region was responsible\n * for the dismissal of the keyboard. There are other reasons why the\n * keyboard could be dismissed.\n *\n * this.props.onScrollResponderKeyboardDismissed\n *\n * Standard Keyboard Hide Sequence:\n *\n * this.props.onKeyboardWillHide\n * this.props.onKeyboardDidHide\n */\n\nconst IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;\n\nexport type State = {|\n isTouching: boolean,\n lastMomentumScrollBeginTime: number,\n lastMomentumScrollEndTime: number,\n observedScrollSinceBecomingResponder: boolean,\n becameResponderWhileAnimating: boolean,\n|};\n\nconst ScrollResponderMixin = {\n _subscriptionKeyboardWillShow: (null: ?EmitterSubscription),\n _subscriptionKeyboardWillHide: (null: ?EmitterSubscription),\n _subscriptionKeyboardDidShow: (null: ?EmitterSubscription),\n _subscriptionKeyboardDidHide: (null: ?EmitterSubscription),\n scrollResponderMixinGetInitialState: function(): State {\n return {\n isTouching: false,\n lastMomentumScrollBeginTime: 0,\n lastMomentumScrollEndTime: 0,\n\n // Reset to false every time becomes responder. This is used to:\n // - Determine if the scroll view has been scrolled and therefore should\n // refuse to give up its responder lock.\n // - Determine if releasing should dismiss the keyboard when we are in\n // tap-to-dismiss mode (this.props.keyboardShouldPersistTaps !== 'always').\n observedScrollSinceBecomingResponder: false,\n becameResponderWhileAnimating: false,\n };\n },\n\n /**\n * Invoke this from an `onScroll` event.\n */\n scrollResponderHandleScrollShouldSetResponder: function(): boolean {\n // Allow any event touch pass through if the default pan responder is disabled\n if (this.props.disableScrollViewPanResponder === true) {\n return false;\n }\n return this.state.isTouching;\n },\n\n /**\n * Merely touch starting is not sufficient for a scroll view to become the\n * responder. Being the \"responder\" means that the very next touch move/end\n * event will result in an action/movement.\n *\n * Invoke this from an `onStartShouldSetResponder` event.\n *\n * `onStartShouldSetResponder` is used when the next move/end will trigger\n * some UI movement/action, but when you want to yield priority to views\n * nested inside of the view.\n *\n * There may be some cases where scroll views actually should return `true`\n * from `onStartShouldSetResponder`: Any time we are detecting a standard tap\n * that gives priority to nested views.\n *\n * - If a single tap on the scroll view triggers an action such as\n * recentering a map style view yet wants to give priority to interaction\n * views inside (such as dropped pins or labels), then we would return true\n * from this method when there is a single touch.\n *\n * - Similar to the previous case, if a two finger \"tap\" should trigger a\n * zoom, we would check the `touches` count, and if `>= 2`, we would return\n * true.\n *\n */\n scrollResponderHandleStartShouldSetResponder: function(\n e: PressEvent,\n ): boolean {\n // Allow any event touch pass through if the default pan responder is disabled\n if (this.props.disableScrollViewPanResponder === true) {\n return false;\n }\n\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n\n if (\n this.props.keyboardShouldPersistTaps === 'handled' &&\n currentlyFocusedTextInput != null &&\n ReactNative.findNodeHandle(e.target) !== currentlyFocusedTextInput\n ) {\n return true;\n }\n return false;\n },\n\n /**\n * There are times when the scroll view wants to become the responder\n * (meaning respond to the next immediate `touchStart/touchEnd`), in a way\n * that *doesn't* give priority to nested views (hence the capture phase):\n *\n * - Currently animating.\n * - Tapping anywhere that is not a text input, while the keyboard is\n * up (which should dismiss the keyboard).\n *\n * Invoke this from an `onStartShouldSetResponderCapture` event.\n */\n scrollResponderHandleStartShouldSetResponderCapture: function(\n e: PressEvent,\n ): boolean {\n // The scroll view should receive taps instead of its descendants if:\n // * it is already animating/decelerating\n if (this.scrollResponderIsAnimating()) {\n return true;\n }\n\n // Allow any event touch pass through if the default pan responder is disabled\n if (this.props.disableScrollViewPanResponder === true) {\n return false;\n }\n\n // * the keyboard is up, keyboardShouldPersistTaps is 'never' (the default),\n // and a new touch starts with a non-textinput target (in which case the\n // first tap should be sent to the scroll view and dismiss the keyboard,\n // then the second tap goes to the actual interior view)\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n const {keyboardShouldPersistTaps} = this.props;\n const keyboardNeverPersistTaps =\n !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never';\n\n const reactTag = ReactNative.findNodeHandle(e.target);\n if (\n keyboardNeverPersistTaps &&\n currentlyFocusedTextInput != null &&\n reactTag &&\n !TextInputState.isTextInput(reactTag)\n ) {\n return true;\n }\n\n return false;\n },\n\n /**\n * Invoke this from an `onResponderReject` event.\n *\n * Some other element is not yielding its role as responder. Normally, we'd\n * just disable the `UIScrollView`, but a touch has already began on it, the\n * `UIScrollView` will not accept being disabled after that. The easiest\n * solution for now is to accept the limitation of disallowing this\n * altogether. To improve this, find a way to disable the `UIScrollView` after\n * a touch has already started.\n */\n scrollResponderHandleResponderReject: function() {},\n\n /**\n * We will allow the scroll view to give up its lock iff it acquired the lock\n * during an animation. This is a very useful default that happens to satisfy\n * many common user experiences.\n *\n * - Stop a scroll on the left edge, then turn that into an outer view's\n * backswipe.\n * - Stop a scroll mid-bounce at the top, continue pulling to have the outer\n * view dismiss.\n * - However, without catching the scroll view mid-bounce (while it is\n * motionless), if you drag far enough for the scroll view to become\n * responder (and therefore drag the scroll view a bit), any backswipe\n * navigation of a swipe gesture higher in the view hierarchy, should be\n * rejected.\n */\n scrollResponderHandleTerminationRequest: function(): boolean {\n return !this.state.observedScrollSinceBecomingResponder;\n },\n\n /**\n * Invoke this from an `onTouchEnd` event.\n *\n * @param {PressEvent} e Event.\n */\n scrollResponderHandleTouchEnd: function(e: PressEvent) {\n const nativeEvent = e.nativeEvent;\n this.state.isTouching = nativeEvent.touches.length !== 0;\n this.props.onTouchEnd && this.props.onTouchEnd(e);\n },\n\n /**\n * Invoke this from an `onTouchCancel` event.\n *\n * @param {PressEvent} e Event.\n */\n scrollResponderHandleTouchCancel: function(e: PressEvent) {\n this.state.isTouching = false;\n this.props.onTouchCancel && this.props.onTouchCancel(e);\n },\n\n /**\n * Invoke this from an `onResponderRelease` event.\n */\n scrollResponderHandleResponderRelease: function(e: PressEvent) {\n this.props.onResponderRelease && this.props.onResponderRelease(e);\n\n // By default scroll views will unfocus a textField\n // if another touch occurs outside of it\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n if (\n this.props.keyboardShouldPersistTaps !== true &&\n this.props.keyboardShouldPersistTaps !== 'always' &&\n currentlyFocusedTextInput != null &&\n ReactNative.findNodeHandle(e.target) !== currentlyFocusedTextInput &&\n !this.state.observedScrollSinceBecomingResponder &&\n !this.state.becameResponderWhileAnimating\n ) {\n this.props.onScrollResponderKeyboardDismissed &&\n this.props.onScrollResponderKeyboardDismissed(e);\n TextInputState.blurTextInput(currentlyFocusedTextInput);\n }\n },\n\n scrollResponderHandleScroll: function(e: ScrollEvent) {\n (this: any).state.observedScrollSinceBecomingResponder = true;\n (this: any).props.onScroll && (this: any).props.onScroll(e);\n },\n\n /**\n * Invoke this from an `onResponderGrant` event.\n */\n scrollResponderHandleResponderGrant: function(e: ScrollEvent) {\n this.state.observedScrollSinceBecomingResponder = false;\n this.props.onResponderGrant && this.props.onResponderGrant(e);\n this.state.becameResponderWhileAnimating = this.scrollResponderIsAnimating();\n },\n\n /**\n * Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll\n * animation, and there's not an easy way to distinguish a drag vs. stopping\n * momentum.\n *\n * Invoke this from an `onScrollBeginDrag` event.\n */\n scrollResponderHandleScrollBeginDrag: function(e: ScrollEvent) {\n FrameRateLogger.beginScroll(); // TODO: track all scrolls after implementing onScrollEndAnimation\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n },\n\n /**\n * Invoke this from an `onScrollEndDrag` event.\n */\n scrollResponderHandleScrollEndDrag: function(e: ScrollEvent) {\n const {velocity} = e.nativeEvent;\n // - If we are animating, then this is a \"drag\" that is stopping the scrollview and momentum end\n // will fire.\n // - If velocity is non-zero, then the interaction will stop when momentum scroll ends or\n // another drag starts and ends.\n // - If we don't get velocity, better to stop the interaction twice than not stop it.\n if (\n !this.scrollResponderIsAnimating() &&\n (!velocity || (velocity.x === 0 && velocity.y === 0))\n ) {\n FrameRateLogger.endScroll();\n }\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n },\n\n /**\n * Invoke this from an `onMomentumScrollBegin` event.\n */\n scrollResponderHandleMomentumScrollBegin: function(e: ScrollEvent) {\n this.state.lastMomentumScrollBeginTime = performanceNow();\n this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);\n },\n\n /**\n * Invoke this from an `onMomentumScrollEnd` event.\n */\n scrollResponderHandleMomentumScrollEnd: function(e: ScrollEvent) {\n FrameRateLogger.endScroll();\n this.state.lastMomentumScrollEndTime = performanceNow();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n },\n\n /**\n * Invoke this from an `onTouchStart` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {PressEvent} e Touch Start event.\n */\n scrollResponderHandleTouchStart: function(e: PressEvent) {\n this.state.isTouching = true;\n this.props.onTouchStart && this.props.onTouchStart(e);\n },\n\n /**\n * Invoke this from an `onTouchMove` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {PressEvent} e Touch Start event.\n */\n scrollResponderHandleTouchMove: function(e: PressEvent) {\n this.props.onTouchMove && this.props.onTouchMove(e);\n },\n\n /**\n * A helper function for this class that lets us quickly determine if the\n * view is currently animating. This is particularly useful to know when\n * a touch has just started or ended.\n */\n scrollResponderIsAnimating: function(): boolean {\n const now = performanceNow();\n const timeSinceLastMomentumScrollEnd =\n now - this.state.lastMomentumScrollEndTime;\n const isAnimating =\n timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS ||\n this.state.lastMomentumScrollEndTime <\n this.state.lastMomentumScrollBeginTime;\n return isAnimating;\n },\n\n /**\n * Returns the node that represents native view that can be scrolled.\n * Components can pass what node to use by defining a `getScrollableNode`\n * function otherwise `this` is used.\n */\n scrollResponderGetScrollableNode: function(): ?number {\n return this.getScrollableNode\n ? this.getScrollableNode()\n : ReactNative.findNodeHandle(this);\n },\n\n /**\n * A helper function to scroll to a specific point in the ScrollView.\n * This is currently used to help focus child TextViews, but can also\n * be used to quickly scroll to any element we want to focus. Syntax:\n *\n * `scrollResponderScrollTo(options: {x: number = 0; y: number = 0; animated: boolean = true})`\n *\n * Note: The weird argument signature is due to the fact that, for historical reasons,\n * the function also accepts separate arguments as as alternative to the options object.\n * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.\n */\n scrollResponderScrollTo: function(\n x?:\n | number\n | {\n x?: number,\n y?: number,\n animated?: boolean,\n ...\n },\n y?: number,\n animated?: boolean,\n ) {\n if (typeof x === 'number') {\n console.warn(\n '`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.',\n );\n } else {\n ({x, y, animated} = x || {});\n }\n\n const that: React.ElementRef = (this: any);\n invariant(\n that.getNativeScrollRef != null,\n 'Expected scrollTo to be called on a scrollViewRef. If this exception occurs it is likely a bug in React Native',\n );\n const nativeScrollRef = that.getNativeScrollRef();\n if (nativeScrollRef == null) {\n return;\n }\n Commands.scrollTo(nativeScrollRef, x || 0, y || 0, animated !== false);\n },\n\n /**\n * Scrolls to the end of the ScrollView, either immediately or with a smooth\n * animation.\n *\n * Example:\n *\n * `scrollResponderScrollToEnd({animated: true})`\n */\n scrollResponderScrollToEnd: function(options?: {animated?: boolean, ...}) {\n // Default to true\n const animated = (options && options.animated) !== false;\n\n const that: React.ElementRef = (this: any);\n invariant(\n that.getNativeScrollRef != null,\n 'Expected scrollToEnd to be called on a scrollViewRef. If this exception occurs it is likely a bug in React Native',\n );\n const nativeScrollRef = that.getNativeScrollRef();\n if (nativeScrollRef == null) {\n return;\n }\n\n Commands.scrollToEnd(nativeScrollRef, animated);\n },\n\n /**\n * A helper function to zoom to a specific rect in the scrollview. The argument has the shape\n * {x: number; y: number; width: number; height: number; animated: boolean = true}\n *\n * @platform ios\n */\n scrollResponderZoomTo: function(\n rect: {|\n x: number,\n y: number,\n width: number,\n height: number,\n animated?: boolean,\n |},\n animated?: boolean, // deprecated, put this inside the rect argument instead\n ) {\n invariant(Platform.OS === 'ios', 'zoomToRect is not implemented');\n if ('animated' in rect) {\n animated = rect.animated;\n delete rect.animated;\n } else if (typeof animated !== 'undefined') {\n console.warn(\n '`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead',\n );\n }\n\n const that: React.ElementRef = this;\n invariant(\n that.getNativeScrollRef != null,\n 'Expected zoomToRect to be called on a scrollViewRef. If this exception occurs it is likely a bug in React Native',\n );\n const nativeScrollRef = that.getNativeScrollRef();\n if (nativeScrollRef == null) {\n return;\n }\n Commands.zoomToRect(nativeScrollRef, rect, animated !== false);\n },\n\n /**\n * Displays the scroll indicators momentarily.\n */\n scrollResponderFlashScrollIndicators: function() {\n const that: React.ElementRef = (this: any);\n invariant(\n that.getNativeScrollRef != null,\n 'Expected flashScrollIndicators to be called on a scrollViewRef. If this exception occurs it is likely a bug in React Native',\n );\n const nativeScrollRef = that.getNativeScrollRef();\n if (nativeScrollRef == null) {\n return;\n }\n Commands.flashScrollIndicators(nativeScrollRef);\n },\n\n /**\n * This method should be used as the callback to onFocus in a TextInputs'\n * parent view. Note that any module using this mixin needs to return\n * the parent view's ref in getScrollViewRef() in order to use this method.\n * @param {number} nodeHandle The TextInput node handle\n * @param {number} additionalOffset The scroll view's bottom \"contentInset\".\n * Default is 0.\n * @param {bool} preventNegativeScrolling Whether to allow pulling the content\n * down to make it meet the keyboard's top. Default is false.\n */\n scrollResponderScrollNativeHandleToKeyboard: function(\n nodeHandle:\n | number\n | React.ElementRef>\n | React.ElementRef>>,\n additionalOffset?: number,\n preventNegativeScrollOffset?: boolean,\n ) {\n this.additionalScrollOffset = additionalOffset || 0;\n this.preventNegativeScrollOffset = !!preventNegativeScrollOffset;\n\n if (typeof nodeHandle === 'number') {\n UIManager.measureLayout(\n nodeHandle,\n ReactNative.findNodeHandle(this.getInnerViewNode()),\n this.scrollResponderTextInputFocusError,\n this.scrollResponderInputMeasureAndScrollToKeyboard,\n );\n } else {\n const innerRef = this.getInnerViewRef();\n\n if (innerRef == null) {\n return;\n }\n\n nodeHandle.measureLayout(\n innerRef,\n this.scrollResponderInputMeasureAndScrollToKeyboard,\n this.scrollResponderTextInputFocusError,\n );\n }\n },\n\n /**\n * The calculations performed here assume the scroll view takes up the entire\n * screen - even if has some content inset. We then measure the offsets of the\n * keyboard, and compensate both for the scroll view's \"contentInset\".\n *\n * @param {number} left Position of input w.r.t. table view.\n * @param {number} top Position of input w.r.t. table view.\n * @param {number} width Width of the text input.\n * @param {number} height Height of the text input.\n */\n scrollResponderInputMeasureAndScrollToKeyboard: function(\n left: number,\n top: number,\n width: number,\n height: number,\n ) {\n let keyboardScreenY = Dimensions.get('window').height;\n if (this.keyboardWillOpenTo) {\n keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY;\n }\n let scrollOffsetY =\n top - keyboardScreenY + height + this.additionalScrollOffset;\n\n // By default, this can scroll with negative offset, pulling the content\n // down so that the target component's bottom meets the keyboard's top.\n // If requested otherwise, cap the offset at 0 minimum to avoid content\n // shifting down.\n if (this.preventNegativeScrollOffset) {\n scrollOffsetY = Math.max(0, scrollOffsetY);\n }\n this.scrollResponderScrollTo({x: 0, y: scrollOffsetY, animated: true});\n\n this.additionalOffset = 0;\n this.preventNegativeScrollOffset = false;\n },\n\n scrollResponderTextInputFocusError: function(msg: string) {\n console.error('Error measuring text field: ', msg);\n },\n\n /**\n * `componentWillMount` is the closest thing to a standard \"constructor\" for\n * React components.\n *\n * The `keyboardWillShow` is called before input focus.\n */\n UNSAFE_componentWillMount: function() {\n const {keyboardShouldPersistTaps} = ((this: any).props: ScrollViewProps);\n if (typeof keyboardShouldPersistTaps === 'boolean') {\n console.warn(\n `'keyboardShouldPersistTaps={${\n keyboardShouldPersistTaps === true ? 'true' : 'false'\n }}' is deprecated. ` +\n `Use 'keyboardShouldPersistTaps=\"${\n keyboardShouldPersistTaps ? 'always' : 'never'\n }\"' instead`,\n );\n }\n\n (this: any).keyboardWillOpenTo = null;\n (this: any).additionalScrollOffset = 0;\n this._subscriptionKeyboardWillShow = Keyboard.addListener(\n 'keyboardWillShow',\n this.scrollResponderKeyboardWillShow,\n );\n\n this._subscriptionKeyboardWillHide = Keyboard.addListener(\n 'keyboardWillHide',\n this.scrollResponderKeyboardWillHide,\n );\n this._subscriptionKeyboardDidShow = Keyboard.addListener(\n 'keyboardDidShow',\n this.scrollResponderKeyboardDidShow,\n );\n this._subscriptionKeyboardDidHide = Keyboard.addListener(\n 'keyboardDidHide',\n this.scrollResponderKeyboardDidHide,\n );\n },\n\n componentWillUnmount: function() {\n if (this._subscriptionKeyboardWillShow != null) {\n this._subscriptionKeyboardWillShow.remove();\n }\n if (this._subscriptionKeyboardWillHide != null) {\n this._subscriptionKeyboardWillHide.remove();\n }\n if (this._subscriptionKeyboardDidShow != null) {\n this._subscriptionKeyboardDidShow.remove();\n }\n if (this._subscriptionKeyboardDidHide != null) {\n this._subscriptionKeyboardDidHide.remove();\n }\n },\n\n /**\n * Warning, this may be called several times for a single keyboard opening.\n * It's best to store the information in this method and then take any action\n * at a later point (either in `keyboardDidShow` or other).\n *\n * Here's the order that events occur in:\n * - focus\n * - willShow {startCoordinates, endCoordinates} several times\n * - didShow several times\n * - blur\n * - willHide {startCoordinates, endCoordinates} several times\n * - didHide several times\n *\n * The `ScrollResponder` module callbacks for each of these events.\n * Even though any user could have easily listened to keyboard events\n * themselves, using these `props` callbacks ensures that ordering of events\n * is consistent - and not dependent on the order that the keyboard events are\n * subscribed to. This matters when telling the scroll view to scroll to where\n * the keyboard is headed - the scroll responder better have been notified of\n * the keyboard destination before being instructed to scroll to where the\n * keyboard will be. Stick to the `ScrollResponder` callbacks, and everything\n * will work.\n *\n * WARNING: These callbacks will fire even if a keyboard is displayed in a\n * different navigation pane. Filter out the events to determine if they are\n * relevant to you. (For example, only if you receive these callbacks after\n * you had explicitly focused a node etc).\n */\n scrollResponderKeyboardWillShow: function(e: KeyboardEvent) {\n this.keyboardWillOpenTo = e;\n this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);\n },\n\n scrollResponderKeyboardWillHide: function(e: KeyboardEvent) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);\n },\n\n scrollResponderKeyboardDidShow: function(e: KeyboardEvent) {\n // TODO(7693961): The event for DidShow is not available on iOS yet.\n // Use the one from WillShow and do not assign.\n if (e) {\n this.keyboardWillOpenTo = e;\n }\n this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);\n },\n\n scrollResponderKeyboardDidHide: function(e: KeyboardEvent) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);\n },\n};\n\nconst ScrollResponder = {\n Mixin: ScrollResponderMixin,\n};\n\nmodule.exports = ScrollResponder;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport * as React from 'react';\nimport type {Double} from 'react-native/Libraries/Types/CodegenTypes';\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\ntype ScrollViewNativeComponentType = HostComponent;\ninterface NativeCommands {\n +flashScrollIndicators: (\n viewRef: React.ElementRef,\n ) => void;\n +scrollTo: (\n viewRef: React.ElementRef,\n x: Double,\n y: Double,\n animated: boolean,\n ) => void;\n +scrollToEnd: (\n viewRef: React.ElementRef,\n animated: boolean,\n ) => void;\n +zoomToRect: (\n viewRef: React.ElementRef,\n rect: {|\n x: Double,\n y: Double,\n width: Double,\n height: Double,\n animated?: boolean,\n |},\n animated?: boolean,\n ) => void;\n}\n\nexport default (codegenNativeCommands({\n supportedCommands: [\n 'flashScrollIndicators',\n 'scrollTo',\n 'scrollToEnd',\n 'zoomToRect',\n ],\n}): NativeCommands);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport NativeFrameRateLogger from './NativeFrameRateLogger';\n\nconst invariant = require('invariant');\n\n/**\n * Flow API for native FrameRateLogger module. If the native module is not installed, function calls\n * are just no-ops.\n *\n * Typical behavior is that `setContext` is called when a new screen is loaded (e.g. via a\n * navigation integration), and then `beginScroll` is called by `ScrollResponder` at which point the\n * native module then begins tracking frame drops. When `ScrollResponder` calls `endScroll`, the\n * native module gathers up all it's frame drop data and reports it via an analytics pipeline for\n * analysis.\n *\n * Note that `beginScroll` may be called multiple times by `ScrollResponder` - unclear if that's a\n * bug, but the native module should be robust to that.\n *\n * In the future we may add support for tracking frame drops in other types of interactions beyond\n * scrolling.\n */\nconst FrameRateLogger = {\n /**\n * Enable `debug` to see local logs of what's going on. `reportStackTraces` will grab stack traces\n * during UI thread stalls and upload them if the native module supports it.\n */\n setGlobalOptions: function(options: {\n debug?: boolean,\n reportStackTraces?: boolean,\n ...\n }) {\n if (options.debug !== undefined) {\n invariant(\n NativeFrameRateLogger,\n 'Trying to debug FrameRateLogger without the native module!',\n );\n }\n if (NativeFrameRateLogger) {\n // Needs to clone the object first to avoid modifying the argument.\n const optionsClone = {\n debug: !!options.debug,\n reportStackTraces: !!options.reportStackTraces,\n };\n NativeFrameRateLogger.setGlobalOptions(optionsClone);\n }\n },\n\n /**\n * Must call `setContext` before any events can be properly tracked, which is done automatically\n * in `AppRegistry`, but navigation is also a common place to hook in.\n */\n setContext: function(context: string) {\n NativeFrameRateLogger && NativeFrameRateLogger.setContext(context);\n },\n\n /**\n * Called in `ScrollResponder` so any component that uses that module will handle this\n * automatically.\n */\n beginScroll() {\n NativeFrameRateLogger && NativeFrameRateLogger.beginScroll();\n },\n\n /**\n * Called in `ScrollResponder` so any component that uses that module will handle this\n * automatically.\n */\n endScroll() {\n NativeFrameRateLogger && NativeFrameRateLogger.endScroll();\n },\n};\n\nmodule.exports = FrameRateLogger;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +setGlobalOptions: (options: {|\n +debug?: ?boolean,\n +reportStackTraces?: ?boolean,\n |}) => void;\n +setContext: (context: string) => void;\n +beginScroll: () => void;\n +endScroll: () => void;\n}\n\nexport default (TurboModuleRegistry.get('FrameRateLogger'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst LayoutAnimation = require('../../LayoutAnimation/LayoutAnimation');\nconst NativeEventEmitter = require('../../EventEmitter/NativeEventEmitter');\n\nconst dismissKeyboard = require('../../Utilities/dismissKeyboard');\nconst invariant = require('invariant');\n\nimport NativeKeyboardObserver from './NativeKeyboardObserver';\nconst KeyboardEventEmitter: NativeEventEmitter = new NativeEventEmitter(\n NativeKeyboardObserver,\n);\n\nexport type KeyboardEventName =\n | 'keyboardWillShow'\n | 'keyboardDidShow'\n | 'keyboardWillHide'\n | 'keyboardDidHide'\n | 'keyboardWillChangeFrame'\n | 'keyboardDidChangeFrame';\n\nexport type KeyboardEventEasing =\n | 'easeIn'\n | 'easeInEaseOut'\n | 'easeOut'\n | 'linear'\n | 'keyboard';\n\nexport type KeyboardEventCoordinates = $ReadOnly<{|\n screenX: number,\n screenY: number,\n width: number,\n height: number,\n|}>;\n\nexport type KeyboardEvent = AndroidKeyboardEvent | IOSKeyboardEvent;\n\ntype BaseKeyboardEvent = {|\n duration: number,\n easing: KeyboardEventEasing,\n endCoordinates: KeyboardEventCoordinates,\n|};\n\nexport type AndroidKeyboardEvent = $ReadOnly<{|\n ...BaseKeyboardEvent,\n duration: 0,\n easing: 'keyboard',\n|}>;\n\nexport type IOSKeyboardEvent = $ReadOnly<{|\n ...BaseKeyboardEvent,\n startCoordinates: KeyboardEventCoordinates,\n isEventFromThisApp: boolean,\n|}>;\n\ntype KeyboardEventListener = (e: KeyboardEvent) => void;\n\n// The following object exists for documentation purposes\n// Actual work happens in\n// https://github.com/facebook/react-native/blob/master/Libraries/EventEmitter/NativeEventEmitter.js\n\n/**\n * `Keyboard` module to control keyboard events.\n *\n * ### Usage\n *\n * The Keyboard module allows you to listen for native events and react to them, as\n * well as make changes to the keyboard, like dismissing it.\n *\n *```\n * import React, { Component } from 'react';\n * import { Keyboard, TextInput } from 'react-native';\n *\n * class Example extends Component {\n * componentWillMount () {\n * this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow);\n * this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide);\n * }\n *\n * componentWillUnmount () {\n * this.keyboardDidShowListener.remove();\n * this.keyboardDidHideListener.remove();\n * }\n *\n * _keyboardDidShow () {\n * alert('Keyboard Shown');\n * }\n *\n * _keyboardDidHide () {\n * alert('Keyboard Hidden');\n * }\n *\n * render() {\n * return (\n * \n * );\n * }\n * }\n *```\n */\n\nconst Keyboard = {\n /**\n * The `addListener` function connects a JavaScript function to an identified native\n * keyboard notification event.\n *\n * This function then returns the reference to the listener.\n *\n * @param {string} eventName The `nativeEvent` is the string that identifies the event you're listening for. This\n *can be any of the following:\n *\n * - `keyboardWillShow`\n * - `keyboardDidShow`\n * - `keyboardWillHide`\n * - `keyboardDidHide`\n * - `keyboardWillChangeFrame`\n * - `keyboardDidChangeFrame`\n *\n * Note that if you set `android:windowSoftInputMode` to `adjustResize` or `adjustNothing`,\n * only `keyboardDidShow` and `keyboardDidHide` events will be available on Android.\n * `keyboardWillShow` as well as `keyboardWillHide` are generally not available on Android\n * since there is no native corresponding event.\n *\n * @param {function} callback function to be called when the event fires.\n */\n addListener(eventName: KeyboardEventName, callback: KeyboardEventListener) {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Removes a specific listener.\n *\n * @param {string} eventName The `nativeEvent` is the string that identifies the event you're listening for.\n * @param {function} callback function to be called when the event fires.\n */\n removeListener(\n eventName: KeyboardEventName,\n callback: KeyboardEventListener,\n ) {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Removes all listeners for a specific event type.\n *\n * @param {string} eventType The native event string listeners are watching which will be removed.\n */\n removeAllListeners(eventName: KeyboardEventName) {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Dismisses the active keyboard and removes focus.\n */\n dismiss() {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Useful for syncing TextInput (or other keyboard accessory view) size of\n * position changes with keyboard movements.\n */\n scheduleLayoutAnimation(event: KeyboardEvent) {\n invariant(false, 'Dummy method used for documentation');\n },\n};\n\n// Throw away the dummy object and reassign it to original module\nKeyboardEventEmitter.dismiss = dismissKeyboard;\nKeyboardEventEmitter.scheduleLayoutAnimation = function(event: KeyboardEvent) {\n const {duration, easing} = event;\n if (duration != null && duration !== 0) {\n LayoutAnimation.configureNext({\n duration: duration,\n update: {\n duration: duration,\n type: (easing != null && LayoutAnimation.Types[easing]) || 'keyboard',\n },\n });\n }\n};\n\nmodule.exports = KeyboardEventEmitter;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('KeyboardObserver'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst UIManager = require('../ReactNative/UIManager');\n\nimport Platform from '../Utilities/Platform';\n\ntype Type =\n | 'spring'\n | 'linear'\n | 'easeInEaseOut'\n | 'easeIn'\n | 'easeOut'\n | 'keyboard';\n\ntype Property = 'opacity' | 'scaleX' | 'scaleY' | 'scaleXY';\n\ntype AnimationConfig = $ReadOnly<{|\n duration?: number,\n delay?: number,\n springDamping?: number,\n initialVelocity?: number,\n type?: Type,\n property?: Property,\n|}>;\n\ntype LayoutAnimationConfig = $ReadOnly<{|\n duration: number,\n create?: AnimationConfig,\n update?: AnimationConfig,\n delete?: AnimationConfig,\n|}>;\n\nfunction configureNext(\n config: LayoutAnimationConfig,\n onAnimationDidEnd?: Function,\n) {\n if (!Platform.isTesting) {\n UIManager.configureNextLayoutAnimation(\n config,\n onAnimationDidEnd ?? function() {},\n function() {} /* unused onError */,\n );\n }\n}\n\nfunction create(\n duration: number,\n type: Type,\n property: Property,\n): LayoutAnimationConfig {\n return {\n duration,\n create: {type, property},\n update: {type},\n delete: {type, property},\n };\n}\n\nconst Presets = {\n easeInEaseOut: (create(\n 300,\n 'easeInEaseOut',\n 'opacity',\n ): LayoutAnimationConfig),\n linear: (create(500, 'linear', 'opacity'): LayoutAnimationConfig),\n spring: {\n duration: 700,\n create: {\n type: 'linear',\n property: 'opacity',\n },\n update: {\n type: 'spring',\n springDamping: 0.4,\n },\n delete: {\n type: 'linear',\n property: 'opacity',\n },\n },\n};\n\n/**\n * Automatically animates views to their new positions when the\n * next layout happens.\n *\n * A common way to use this API is to call it before calling `setState`.\n *\n * Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:\n *\n * UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);\n */\nconst LayoutAnimation = {\n /**\n * Schedules an animation to happen on the next layout.\n *\n * @param config Specifies animation properties:\n *\n * - `duration` in milliseconds\n * - `create`, `AnimationConfig` for animating in new views\n * - `update`, `AnimationConfig` for animating views that have been updated\n *\n * @param onAnimationDidEnd Called when the animation finished.\n * Only supported on iOS.\n * @param onError Called on error. Only supported on iOS.\n */\n configureNext,\n /**\n * Helper for creating a config for `configureNext`.\n */\n create,\n Types: Object.freeze({\n spring: 'spring',\n linear: 'linear',\n easeInEaseOut: 'easeInEaseOut',\n easeIn: 'easeIn',\n easeOut: 'easeOut',\n keyboard: 'keyboard',\n }),\n Properties: Object.freeze({\n opacity: 'opacity',\n scaleX: 'scaleX',\n scaleY: 'scaleY',\n scaleXY: 'scaleXY',\n }),\n checkConfig(...args: Array) {\n console.error('LayoutAnimation.checkConfig(...) has been disabled.');\n },\n Presets,\n easeInEaseOut: (configureNext.bind(null, Presets.easeInEaseOut): (\n onAnimationDidEnd?: any,\n ) => void),\n linear: (configureNext.bind(null, Presets.linear): (\n onAnimationDidEnd?: any,\n ) => void),\n spring: (configureNext.bind(null, Presets.spring): (\n onAnimationDidEnd?: any,\n ) => void),\n};\n\nmodule.exports = LayoutAnimation;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n// This function dismisses the currently-open keyboard, if any.\n\n'use strict';\n\nconst TextInputState = require('../Components/TextInput/TextInputState');\n\nfunction dismissKeyboard() {\n TextInputState.blurTextInput(TextInputState.currentlyFocusedField());\n}\n\nmodule.exports = dismissKeyboard;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst AnimatedImplementation = require('../../Animated/src/AnimatedImplementation');\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst View = require('../View/View');\n\nimport type {LayoutEvent} from '../../Types/CoreEventTypes';\n\nconst AnimatedView = AnimatedImplementation.createAnimatedComponent(View);\n\nexport type Props = {\n children?: React.Element,\n nextHeaderLayoutY: ?number,\n onLayout: (event: LayoutEvent) => void,\n scrollAnimatedValue: AnimatedImplementation.Value,\n // Will cause sticky headers to stick at the bottom of the ScrollView instead\n // of the top.\n inverted: ?boolean,\n // The height of the parent ScrollView. Currently only set when inverted.\n scrollViewHeight: ?number,\n ...\n};\n\ntype State = {\n measured: boolean,\n layoutY: number,\n layoutHeight: number,\n nextHeaderLayoutY: ?number,\n ...\n};\n\nclass ScrollViewStickyHeader extends React.Component {\n state: State = {\n measured: false,\n layoutY: 0,\n layoutHeight: 0,\n nextHeaderLayoutY: this.props.nextHeaderLayoutY,\n };\n\n setNextHeaderY(y: number) {\n this.setState({nextHeaderLayoutY: y});\n }\n\n _onLayout = event => {\n this.setState({\n measured: true,\n layoutY: event.nativeEvent.layout.y,\n layoutHeight: event.nativeEvent.layout.height,\n });\n\n this.props.onLayout(event);\n const child = React.Children.only(this.props.children);\n if (child.props.onLayout) {\n child.props.onLayout(event);\n }\n };\n\n render(): React.Node {\n const {inverted, scrollViewHeight} = this.props;\n const {measured, layoutHeight, layoutY, nextHeaderLayoutY} = this.state;\n const inputRange: Array = [-1, 0];\n const outputRange: Array = [0, 0];\n\n if (measured) {\n if (inverted) {\n // The interpolation looks like:\n // - Negative scroll: no translation\n // - `stickStartPoint` is the point at which the header will start sticking.\n // It is calculated using the ScrollView viewport height so it is a the bottom.\n // - Headers that are in the initial viewport will never stick, `stickStartPoint`\n // will be negative.\n // - From 0 to `stickStartPoint` no translation. This will cause the header\n // to scroll normally until it reaches the top of the scroll view.\n // - From `stickStartPoint` to when the next header y hits the bottom edge of the header: translate\n // equally to scroll. This will cause the header to stay at the top of the scroll view.\n // - Past the collision with the next header y: no more translation. This will cause the\n // header to continue scrolling up and make room for the next sticky header.\n // In the case that there is no next header just translate equally to\n // scroll indefinitely.\n if (scrollViewHeight != null) {\n const stickStartPoint = layoutY + layoutHeight - scrollViewHeight;\n if (stickStartPoint > 0) {\n inputRange.push(stickStartPoint);\n outputRange.push(0);\n inputRange.push(stickStartPoint + 1);\n outputRange.push(1);\n // If the next sticky header has not loaded yet (probably windowing) or is the last\n // we can just keep it sticked forever.\n const collisionPoint =\n (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight;\n if (collisionPoint > stickStartPoint) {\n inputRange.push(collisionPoint, collisionPoint + 1);\n outputRange.push(\n collisionPoint - stickStartPoint,\n collisionPoint - stickStartPoint,\n );\n }\n }\n }\n } else {\n // The interpolation looks like:\n // - Negative scroll: no translation\n // - From 0 to the y of the header: no translation. This will cause the header\n // to scroll normally until it reaches the top of the scroll view.\n // - From header y to when the next header y hits the bottom edge of the header: translate\n // equally to scroll. This will cause the header to stay at the top of the scroll view.\n // - Past the collision with the next header y: no more translation. This will cause the\n // header to continue scrolling up and make room for the next sticky header.\n // In the case that there is no next header just translate equally to\n // scroll indefinitely.\n inputRange.push(layoutY);\n outputRange.push(0);\n // If the next sticky header has not loaded yet (probably windowing) or is the last\n // we can just keep it sticked forever.\n const collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight;\n if (collisionPoint >= layoutY) {\n inputRange.push(collisionPoint, collisionPoint + 1);\n outputRange.push(collisionPoint - layoutY, collisionPoint - layoutY);\n } else {\n inputRange.push(layoutY + 1);\n outputRange.push(1);\n }\n }\n }\n\n const translateY = this.props.scrollAnimatedValue.interpolate({\n inputRange,\n outputRange,\n });\n const child = React.Children.only(this.props.children);\n\n return (\n \n {React.cloneElement(child, {\n style: styles.fill, // We transfer the child style to the wrapper.\n onLayout: undefined, // we call this manually through our this._onLayout\n })}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n header: {\n zIndex: 10,\n },\n fill: {\n flex: 1,\n },\n});\n\nmodule.exports = ScrollViewStickyHeader;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\n\nfunction processDecelerationRate(\n decelerationRate: number | 'normal' | 'fast',\n): number {\n if (decelerationRate === 'normal') {\n return Platform.select({\n ios: 0.998,\n android: 0.985,\n });\n } else if (decelerationRate === 'fast') {\n return Platform.select({\n ios: 0.99,\n android: 0.9,\n });\n }\n return decelerationRate;\n}\n\nmodule.exports = processDecelerationRate;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {DangerouslyImpreciseStyle} from './StyleSheet';\n\nconst OUTER_PROPS = Object.assign(Object.create(null), {\n margin: true,\n marginHorizontal: true,\n marginVertical: true,\n marginBottom: true,\n marginTop: true,\n marginLeft: true,\n marginRight: true,\n flex: true,\n flexGrow: true,\n flexShrink: true,\n flexBasis: true,\n alignSelf: true,\n height: true,\n minHeight: true,\n maxHeight: true,\n width: true,\n minWidth: true,\n maxWidth: true,\n position: true,\n left: true,\n right: true,\n bottom: true,\n top: true,\n transform: true,\n});\n\nfunction splitLayoutProps(\n props: ?DangerouslyImpreciseStyle,\n): {\n outer: DangerouslyImpreciseStyle,\n inner: DangerouslyImpreciseStyle,\n ...\n} {\n const inner = {};\n const outer = {};\n if (props) {\n Object.keys(props).forEach(k => {\n const value: $ElementType = props[k];\n if (OUTER_PROPS[k]) {\n outer[k] = value;\n } else {\n inner[k] = value;\n }\n });\n }\n return {outer, inner};\n}\n\nmodule.exports = splitLayoutProps;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Batchinator = require('../Interaction/Batchinator');\nconst FillRateHelper = require('./FillRateHelper');\nconst PropTypes = require('prop-types');\nconst React = require('react');\nconst ReactNative = require('../Renderer/shims/ReactNative');\nconst RefreshControl = require('../Components/RefreshControl/RefreshControl');\nconst ScrollView = require('../Components/ScrollView/ScrollView');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst View = require('../Components/View/View');\nconst ViewabilityHelper = require('./ViewabilityHelper');\n\nconst flattenStyle = require('../StyleSheet/flattenStyle');\nconst infoLog = require('../Utilities/infoLog');\nconst invariant = require('invariant');\nconst warning = require('fbjs/lib/warning');\n\nconst {computeWindowedRenderLimits} = require('./VirtualizeUtils');\n\nimport type {ScrollResponderType} from '../Components/ScrollView/ScrollView';\nimport type {ViewStyleProp} from '../StyleSheet/StyleSheet';\nimport type {\n ViewabilityConfig,\n ViewToken,\n ViewabilityConfigCallbackPair,\n} from './ViewabilityHelper';\n\ntype Item = any;\n\nexport type Separators = {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n};\n\nexport type RenderItemProps = {\n item: ItemT,\n index: number,\n separators: Separators,\n ...\n};\n\nexport type RenderItemType = (\n info: RenderItemProps,\n) => React.Node;\n\ntype ViewabilityHelperCallbackTuple = {\n viewabilityHelper: ViewabilityHelper,\n onViewableItemsChanged: (info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n ...\n};\n\ntype RequiredProps = {|\n /**\n * The default accessor functions assume this is an Array<{key: string} | {id: string}> but you can override\n * getItem, getItemCount, and keyExtractor to handle any type of index-based data.\n */\n data?: any,\n /**\n * A generic accessor for extracting an item from any sort of data blob.\n */\n getItem: (data: any, index: number) => ?Item,\n /**\n * Determines how many items are in the data blob.\n */\n getItemCount: (data: any) => number,\n|};\ntype OptionalProps = {|\n renderItem?: ?RenderItemType,\n /**\n * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and\n * implementation, but with a significant perf hit.\n */\n debug?: ?boolean,\n /**\n * DEPRECATED: Virtualization provides significant performance and memory optimizations, but fully\n * unmounts react instances that are outside of the render window. You should only need to disable\n * this for debugging purposes.\n */\n disableVirtualization?: ?boolean,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n // e.g. height, y\n getItemLayout?: (\n data: any,\n index: number,\n ) => {\n length: number,\n offset: number,\n index: number,\n ...\n },\n horizontal?: ?boolean,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender: number,\n /**\n * Instead of starting at the top with the first item, start at `initialScrollIndex`. This\n * disables the \"scroll to top\" optimization that keeps the first `initialNumToRender` items\n * always rendered and immediately renders the items starting at this initial index. Requires\n * `getItemLayout` to be implemented.\n */\n initialScrollIndex?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n keyExtractor: (item: Item, index: number) => string,\n /**\n * Each cell is rendered using this element. Can be a React Component Class,\n * or a render function. Defaults to using View.\n */\n CellRendererComponent?: ?React.ComponentType,\n /**\n * Rendered in between each item, but not at the top or bottom. By default, `highlighted` and\n * `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight`\n * which will update the `highlighted` prop, but you can also add custom props with\n * `separators.updateProps`.\n */\n ItemSeparatorComponent?: ?React.ComponentType,\n /**\n * Takes an item from `data` and renders it into the list. Example usage:\n *\n * (\n * \n * )}\n * data={[{title: 'Title Text', key: 'item1'}]}\n * ListItemComponent={({item, separators}) => (\n * this._onPress(item)}\n * onShowUnderlay={separators.highlight}\n * onHideUnderlay={separators.unhighlight}>\n * \n * {item.title}\n * \n * \n * )}\n * />\n *\n * Provides additional metadata like `index` if you need it, as well as a more generic\n * `separators.updateProps` function which let's you set whatever props you want to change the\n * rendering of either the leading separator or trailing separator in case the more common\n * `highlight` and `unhighlight` (which set the `highlighted: boolean` prop) are insufficient for\n * your use-case.\n */\n ListItemComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered when the list is empty. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListEmptyComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the bottom of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListFooterComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListFooterComponent\n */\n ListFooterComponentStyle?: ViewStyleProp,\n /**\n * Rendered at the top of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListHeaderComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListHeaderComponent\n */\n ListHeaderComponentStyle?: ViewStyleProp,\n /**\n * A unique identifier for this list. If there are multiple VirtualizedLists at the same level of\n * nesting within another VirtualizedList, this key is necessary for virtualization to\n * work properly.\n */\n listKey?: string,\n /**\n * The maximum number of items to render in each incremental render batch. The more rendered at\n * once, the better the fill rate, but responsiveness may suffer because rendering content may\n * interfere with responding to button taps or other interactions.\n */\n maxToRenderPerBatch: number,\n /**\n * Called once when the scroll position gets within `onEndReachedThreshold` of the rendered\n * content.\n */\n onEndReached?: ?(info: {distanceFromEnd: number, ...}) => void,\n /**\n * How far from the end (in units of visible length of the list) the bottom edge of the\n * list must be from the end of the content to trigger the `onEndReached` callback.\n * Thus a value of 0.5 will trigger `onEndReached` when the end of the content is\n * within half the visible length of the list.\n */\n onEndReachedThreshold?: ?number,\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?() => void,\n /**\n * Used to handle failures when scrolling to an index that has not been measured yet. Recommended\n * action is to either compute your own offset and `scrollTo` it, or scroll as far as possible and\n * then try again after more items have been rendered.\n */\n onScrollToIndexFailed?: ?(info: {\n index: number,\n highestMeasuredFrameIndex: number,\n averageItemLength: number,\n ...\n }) => void,\n /**\n * Called when the viewability of rows changes, as defined by the\n * `viewabilityConfig` prop.\n */\n onViewableItemsChanged?: ?(info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n persistentScrollbar?: ?boolean,\n /**\n * Set this when offset is needed for the loading indicator to show correctly.\n * @platform android\n */\n progressViewOffset?: number,\n /**\n * A custom refresh control element. When set, it overrides the default\n * component built internally. The onRefresh and refreshing\n * props are also ignored. Only works for vertical VirtualizedList.\n */\n refreshControl?: ?React.Element,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: ?boolean,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n /**\n * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.\n */\n renderScrollComponent?: (props: Object) => React.Element,\n /**\n * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off\n * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`.\n */\n updateCellsBatchingPeriod: number,\n /**\n * See `ViewabilityHelper` for flow type and further documentation.\n */\n viewabilityConfig?: ViewabilityConfig,\n /**\n * List of ViewabilityConfig/onViewableItemsChanged pairs. A specific onViewableItemsChanged\n * will be called when its corresponding ViewabilityConfig's conditions are met.\n */\n viewabilityConfigCallbackPairs?: Array,\n /**\n * Determines the maximum number of items rendered outside of the visible area, in units of\n * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will\n * render the visible screen area plus up to 10 screens above and 10 below the viewport. Reducing\n * this number will reduce memory consumption and may improve performance, but will increase the\n * chance that fast scrolling may reveal momentary blank areas of unrendered content.\n */\n windowSize: number,\n /**\n * The legacy implementation is no longer supported.\n */\n legacyImplementation?: empty,\n|};\n\ntype Props = {|\n ...React.ElementConfig,\n ...RequiredProps,\n ...OptionalProps,\n|};\n\ntype DefaultProps = {|\n disableVirtualization: boolean,\n horizontal: boolean,\n initialNumToRender: number,\n keyExtractor: (item: Item, index: number) => string,\n maxToRenderPerBatch: number,\n onEndReachedThreshold: number,\n scrollEventThrottle: number,\n updateCellsBatchingPeriod: number,\n windowSize: number,\n|};\n\nlet _usedIndexForKey = false;\nlet _keylessItemComponentName: string = '';\n\ntype Frame = {\n offset: number,\n length: number,\n index: number,\n inLayout: boolean,\n ...\n};\n\ntype ChildListState = {\n first: number,\n last: number,\n frames: {[key: number]: Frame, ...},\n ...\n};\n\ntype State = {\n first: number,\n last: number,\n ...\n};\n\n/**\n * Base implementation for the more convenient [``](/react-native/docs/flatlist.html)\n * and [``](/react-native/docs/sectionlist.html) components, which are also better\n * documented. In general, this should only really be used if you need more flexibility than\n * `FlatList` provides, e.g. for use with immutable data instead of plain arrays.\n *\n * Virtualization massively improves memory consumption and performance of large lists by\n * maintaining a finite render window of active items and replacing all items outside of the render\n * window with appropriately sized blank space. The window adapts to scrolling behavior, and items\n * are rendered incrementally with low-pri (after any running interactions) if they are far from the\n * visible area, or with hi-pri otherwise to minimize the potential of seeing blank space.\n *\n * Some caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` or `id` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n */\nclass VirtualizedList extends React.PureComponent {\n props: Props;\n\n // scrollToEnd may be janky without getItemLayout prop\n scrollToEnd(params?: ?{animated?: ?boolean, ...}) {\n const animated = params ? params.animated : true;\n const veryLast = this.props.getItemCount(this.props.data) - 1;\n const frame = this._getFrameMetricsApprox(veryLast);\n const offset = Math.max(\n 0,\n frame.offset +\n frame.length +\n this._footerLength -\n this._scrollMetrics.visibleLength,\n );\n\n if (this._scrollRef == null) {\n return;\n }\n\n this._scrollRef.scrollTo(\n this.props.horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n\n // scrollToIndex may be janky without getItemLayout prop\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewOffset?: number,\n viewPosition?: number,\n ...\n }) {\n const {\n data,\n horizontal,\n getItemCount,\n getItemLayout,\n onScrollToIndexFailed,\n } = this.props;\n const {animated, index, viewOffset, viewPosition} = params;\n invariant(\n index >= 0 && index < getItemCount(data),\n `scrollToIndex out of range: requested index ${index} but maximum is ${getItemCount(\n data,\n ) - 1}`,\n );\n if (!getItemLayout && index > this._highestMeasuredFrameIndex) {\n invariant(\n !!onScrollToIndexFailed,\n 'scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, ' +\n 'otherwise there is no way to know the location of offscreen indices or handle failures.',\n );\n onScrollToIndexFailed({\n averageItemLength: this._averageCellLength,\n highestMeasuredFrameIndex: this._highestMeasuredFrameIndex,\n index,\n });\n return;\n }\n const frame = this._getFrameMetricsApprox(index);\n const offset =\n Math.max(\n 0,\n frame.offset -\n (viewPosition || 0) *\n (this._scrollMetrics.visibleLength - frame.length),\n ) - (viewOffset || 0);\n\n if (this._scrollRef == null) {\n return;\n }\n\n this._scrollRef.scrollTo(\n horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n\n // scrollToItem may be janky without getItemLayout prop. Required linear scan through items -\n // use scrollToIndex instead if possible.\n scrollToItem(params: {\n animated?: ?boolean,\n item: Item,\n viewPosition?: number,\n ...\n }) {\n const {item} = params;\n const {data, getItem, getItemCount} = this.props;\n const itemCount = getItemCount(data);\n for (let index = 0; index < itemCount; index++) {\n if (getItem(data, index) === item) {\n this.scrollToIndex({...params, index});\n break;\n }\n }\n }\n\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Param `offset` expects the offset to scroll to.\n * In case of `horizontal` is true, the offset is the x-value,\n * in any other case the offset is the y-value.\n *\n * Param `animated` (`true` by default) defines whether the list\n * should do an animation while scrolling.\n */\n scrollToOffset(params: {animated?: ?boolean, offset: number, ...}) {\n const {animated, offset} = params;\n\n if (this._scrollRef == null) {\n return;\n }\n\n this._scrollRef.scrollTo(\n this.props.horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n\n recordInteraction() {\n this._nestedChildLists.forEach(childList => {\n childList.ref && childList.ref.recordInteraction();\n });\n this._viewabilityTuples.forEach(t => {\n t.viewabilityHelper.recordInteraction();\n });\n this._updateViewableItems(this.props.data);\n }\n\n flashScrollIndicators() {\n if (this._scrollRef == null) {\n return;\n }\n\n this._scrollRef.flashScrollIndicators();\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n * Note that `this._scrollRef` might not be a `ScrollView`, so we\n * need to check that it responds to `getScrollResponder` before calling it.\n */\n getScrollResponder(): ?ScrollResponderType {\n if (this._scrollRef && this._scrollRef.getScrollResponder) {\n return this._scrollRef.getScrollResponder();\n }\n }\n\n getScrollableNode(): ?number {\n if (this._scrollRef && this._scrollRef.getScrollableNode) {\n return this._scrollRef.getScrollableNode();\n } else {\n return ReactNative.findNodeHandle(this._scrollRef);\n }\n }\n\n getScrollRef():\n | ?React.ElementRef\n | ?React.ElementRef {\n if (this._scrollRef && this._scrollRef.getScrollRef) {\n return this._scrollRef.getScrollRef();\n } else {\n return this._scrollRef;\n }\n }\n\n setNativeProps(props: Object) {\n if (this._scrollRef) {\n this._scrollRef.setNativeProps(props);\n }\n }\n\n static defaultProps: DefaultProps = {\n disableVirtualization: false,\n horizontal: false,\n initialNumToRender: 10,\n keyExtractor: (item: Item, index: number) => {\n if (item.key != null) {\n return item.key;\n }\n if (item.id != null) {\n return item.id;\n }\n _usedIndexForKey = true;\n if (item.type && item.type.displayName) {\n _keylessItemComponentName = item.type.displayName;\n }\n return String(index);\n },\n maxToRenderPerBatch: 10,\n onEndReachedThreshold: 2, // multiples of length\n scrollEventThrottle: 50,\n updateCellsBatchingPeriod: 50,\n windowSize: 21, // multiples of length\n };\n\n static contextTypes:\n | any\n | {|\n virtualizedCell: {|\n cellKey: React$PropType$Primitive,\n |},\n virtualizedList: {|\n getScrollMetrics: React$PropType$Primitive,\n horizontal: React$PropType$Primitive,\n getOutermostParentListRef: React$PropType$Primitive,\n getNestedChildState: React$PropType$Primitive,\n registerAsNestedChild: React$PropType$Primitive,\n unregisterAsNestedChild: React$PropType$Primitive,\n |},\n |} = {\n virtualizedCell: PropTypes.shape({\n cellKey: PropTypes.string,\n }),\n virtualizedList: PropTypes.shape({\n getScrollMetrics: PropTypes.func,\n horizontal: PropTypes.bool,\n getOutermostParentListRef: PropTypes.func,\n getNestedChildState: PropTypes.func,\n registerAsNestedChild: PropTypes.func,\n unregisterAsNestedChild: PropTypes.func,\n }),\n };\n\n static childContextTypes:\n | any\n | {|\n getScrollMetrics: React$PropType$Primitive,\n horizontal: React$PropType$Primitive,\n getOutermostParentListRef: React$PropType$Primitive,\n getNestedChildState: React$PropType$Primitive,\n registerAsNestedChild: React$PropType$Primitive,\n unregisterAsNestedChild: React$PropType$Primitive,\n |} = {\n virtualizedList: PropTypes.shape({\n getScrollMetrics: PropTypes.func,\n horizontal: PropTypes.bool,\n getOutermostParentListRef: PropTypes.func,\n getNestedChildState: PropTypes.func,\n registerAsNestedChild: PropTypes.func,\n unregisterAsNestedChild: PropTypes.func,\n }),\n };\n\n getChildContext(): {|\n virtualizedList: {\n getScrollMetrics: () => {\n contentLength: number,\n dOffset: number,\n dt: number,\n offset: number,\n timestamp: number,\n velocity: number,\n visibleLength: number,\n ...\n },\n horizontal: ?boolean,\n getOutermostParentListRef: Function,\n getNestedChildState: string => ?ChildListState,\n registerAsNestedChild: ({\n cellKey: string,\n key: string,\n ref: VirtualizedList,\n ...\n }) => ?ChildListState,\n unregisterAsNestedChild: ({\n key: string,\n state: ChildListState,\n ...\n }) => void,\n ...\n },\n |} {\n return {\n virtualizedList: {\n getScrollMetrics: this._getScrollMetrics,\n horizontal: this.props.horizontal,\n getOutermostParentListRef: this._getOutermostParentListRef,\n getNestedChildState: this._getNestedChildState,\n registerAsNestedChild: this._registerAsNestedChild,\n unregisterAsNestedChild: this._unregisterAsNestedChild,\n },\n };\n }\n\n _getCellKey(): string {\n return (\n (this.context.virtualizedCell && this.context.virtualizedCell.cellKey) ||\n 'rootList'\n );\n }\n\n _getScrollMetrics = () => {\n return this._scrollMetrics;\n };\n\n hasMore(): boolean {\n return this._hasMore;\n }\n\n _getOutermostParentListRef = () => {\n if (this._isNestedWithSameOrientation()) {\n return this.context.virtualizedList.getOutermostParentListRef();\n } else {\n return this;\n }\n };\n\n _getNestedChildState = (key: string): ?ChildListState => {\n const existingChildData = this._nestedChildLists.get(key);\n return existingChildData && existingChildData.state;\n };\n\n _registerAsNestedChild = (childList: {\n cellKey: string,\n key: string,\n ref: VirtualizedList,\n ...\n }): ?ChildListState => {\n // Register the mapping between this child key and the cellKey for its cell\n const childListsInCell =\n this._cellKeysToChildListKeys.get(childList.cellKey) || new Set();\n childListsInCell.add(childList.key);\n this._cellKeysToChildListKeys.set(childList.cellKey, childListsInCell);\n\n const existingChildData = this._nestedChildLists.get(childList.key);\n if (existingChildData && existingChildData.ref !== null) {\n console.error(\n 'A VirtualizedList contains a cell which itself contains ' +\n 'more than one VirtualizedList of the same orientation as the parent ' +\n 'list. You must pass a unique listKey prop to each sibling list.',\n );\n }\n this._nestedChildLists.set(childList.key, {\n ref: childList.ref,\n state: null,\n });\n\n if (this._hasInteracted) {\n childList.ref.recordInteraction();\n }\n };\n\n _unregisterAsNestedChild = (childList: {\n key: string,\n state: ChildListState,\n ...\n }): void => {\n this._nestedChildLists.set(childList.key, {\n ref: null,\n state: childList.state,\n });\n };\n\n state: State;\n\n constructor(props: Props, context: Object) {\n super(props, context);\n invariant(\n // $FlowFixMe\n !props.onScroll || !props.onScroll.__isNative,\n 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' +\n 'to support native onScroll events with useNativeDriver',\n );\n\n invariant(\n props.windowSize > 0,\n 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.',\n );\n\n this._fillRateHelper = new FillRateHelper(this._getFrameMetrics);\n this._updateCellsToRenderBatcher = new Batchinator(\n this._updateCellsToRender,\n this.props.updateCellsBatchingPeriod,\n );\n\n if (this.props.viewabilityConfigCallbackPairs) {\n this._viewabilityTuples = this.props.viewabilityConfigCallbackPairs.map(\n pair => ({\n viewabilityHelper: new ViewabilityHelper(pair.viewabilityConfig),\n onViewableItemsChanged: pair.onViewableItemsChanged,\n }),\n );\n } else if (this.props.onViewableItemsChanged) {\n this._viewabilityTuples.push({\n viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),\n onViewableItemsChanged: this.props.onViewableItemsChanged,\n });\n }\n\n let initialState = {\n first: this.props.initialScrollIndex || 0,\n last:\n Math.min(\n this.props.getItemCount(this.props.data),\n (this.props.initialScrollIndex || 0) + this.props.initialNumToRender,\n ) - 1,\n };\n\n if (this._isNestedWithSameOrientation()) {\n const storedState = this.context.virtualizedList.getNestedChildState(\n this.props.listKey || this._getCellKey(),\n );\n if (storedState) {\n initialState = storedState;\n this.state = storedState;\n this._frames = storedState.frames;\n }\n }\n\n this.state = initialState;\n }\n\n componentDidMount() {\n if (this._isNestedWithSameOrientation()) {\n this.context.virtualizedList.registerAsNestedChild({\n cellKey: this._getCellKey(),\n key: this.props.listKey || this._getCellKey(),\n ref: this,\n });\n }\n }\n\n componentWillUnmount() {\n if (this._isNestedWithSameOrientation()) {\n this.context.virtualizedList.unregisterAsNestedChild({\n key: this.props.listKey || this._getCellKey(),\n state: {\n first: this.state.first,\n last: this.state.last,\n frames: this._frames,\n },\n });\n }\n this._updateViewableItems(null);\n this._updateCellsToRenderBatcher.dispose({abort: true});\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.dispose();\n });\n this._fillRateHelper.deactivateAndFlush();\n }\n\n static getDerivedStateFromProps(newProps: Props, prevState: State): State {\n const {data, getItemCount, maxToRenderPerBatch} = newProps;\n // first and last could be stale (e.g. if a new, shorter items props is passed in), so we make\n // sure we're rendering a reasonable range here.\n return {\n first: Math.max(\n 0,\n Math.min(prevState.first, getItemCount(data) - 1 - maxToRenderPerBatch),\n ),\n last: Math.max(0, Math.min(prevState.last, getItemCount(data) - 1)),\n };\n }\n\n _pushCells(\n cells: Array,\n stickyHeaderIndices: Array,\n stickyIndicesFromProps: Set,\n first: number,\n last: number,\n inversionStyle: ViewStyleProp,\n ) {\n const {\n CellRendererComponent,\n ItemSeparatorComponent,\n data,\n getItem,\n getItemCount,\n horizontal,\n keyExtractor,\n } = this.props;\n const stickyOffset = this.props.ListHeaderComponent ? 1 : 0;\n const end = getItemCount(data) - 1;\n let prevCellKey;\n last = Math.min(end, last);\n for (let ii = first; ii <= last; ii++) {\n const item = getItem(data, ii);\n const key = keyExtractor(item, ii);\n this._indicesToKeys.set(ii, key);\n if (stickyIndicesFromProps.has(ii + stickyOffset)) {\n stickyHeaderIndices.push(cells.length);\n }\n cells.push(\n this._onCellLayout(e, key, ii)}\n onUnmount={this._onCellUnmount}\n parentProps={this.props}\n ref={ref => {\n this._cellRefs[key] = ref;\n }}\n />,\n );\n prevCellKey = key;\n }\n }\n\n _onUpdateSeparators = (keys: Array, newProps: Object) => {\n keys.forEach(key => {\n const ref = key != null && this._cellRefs[key];\n ref && ref.updateSeparatorProps(newProps);\n });\n };\n\n _isVirtualizationDisabled(): boolean {\n return this.props.disableVirtualization || false;\n }\n\n _isNestedWithSameOrientation(): boolean {\n const nestedContext = this.context.virtualizedList;\n return !!(\n nestedContext && !!nestedContext.horizontal === !!this.props.horizontal\n );\n }\n\n render(): React.Node {\n if (__DEV__) {\n const flatStyles = flattenStyle(this.props.contentContainerStyle);\n warning(\n flatStyles == null || flatStyles.flexWrap !== 'wrap',\n '`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' +\n 'Consider using `numColumns` with `FlatList` instead.',\n );\n }\n const {\n ListEmptyComponent,\n ListFooterComponent,\n ListHeaderComponent,\n } = this.props;\n const {data, horizontal} = this.props;\n const isVirtualizationDisabled = this._isVirtualizationDisabled();\n const inversionStyle = this.props.inverted\n ? this.props.horizontal\n ? styles.horizontallyInverted\n : styles.verticallyInverted\n : null;\n const cells = [];\n const stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);\n const stickyHeaderIndices = [];\n if (ListHeaderComponent) {\n if (stickyIndicesFromProps.has(0)) {\n stickyHeaderIndices.push(0);\n }\n const element = React.isValidElement(ListHeaderComponent) ? (\n ListHeaderComponent\n ) : (\n // $FlowFixMe\n \n );\n cells.push(\n \n \n {\n // $FlowFixMe - Typing ReactNativeComponent revealed errors\n element\n }\n \n ,\n );\n }\n const itemCount = this.props.getItemCount(data);\n if (itemCount > 0) {\n _usedIndexForKey = false;\n _keylessItemComponentName = '';\n const spacerKey = !horizontal ? 'height' : 'width';\n const lastInitialIndex = this.props.initialScrollIndex\n ? -1\n : this.props.initialNumToRender - 1;\n const {first, last} = this.state;\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n 0,\n lastInitialIndex,\n inversionStyle,\n );\n const firstAfterInitial = Math.max(lastInitialIndex + 1, first);\n if (!isVirtualizationDisabled && first > lastInitialIndex + 1) {\n let insertedStickySpacer = false;\n if (stickyIndicesFromProps.size > 0) {\n const stickyOffset = ListHeaderComponent ? 1 : 0;\n // See if there are any sticky headers in the virtualized space that we need to render.\n for (let ii = firstAfterInitial - 1; ii > lastInitialIndex; ii--) {\n if (stickyIndicesFromProps.has(ii + stickyOffset)) {\n const initBlock = this._getFrameMetricsApprox(lastInitialIndex);\n const stickyBlock = this._getFrameMetricsApprox(ii);\n const leadSpace =\n stickyBlock.offset -\n initBlock.offset -\n (this.props.initialScrollIndex ? 0 : initBlock.length);\n cells.push(\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment\n * suppresses an error found when Flow v0.111 was deployed. To\n * see the error, delete this comment and run Flow. */\n ,\n );\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n ii,\n ii,\n inversionStyle,\n );\n const trailSpace =\n this._getFrameMetricsApprox(first).offset -\n (stickyBlock.offset + stickyBlock.length);\n cells.push(\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment\n * suppresses an error found when Flow v0.111 was deployed. To\n * see the error, delete this comment and run Flow. */\n ,\n );\n insertedStickySpacer = true;\n break;\n }\n }\n }\n if (!insertedStickySpacer) {\n const initBlock = this._getFrameMetricsApprox(lastInitialIndex);\n const firstSpace =\n this._getFrameMetricsApprox(first).offset -\n (initBlock.offset + initBlock.length);\n cells.push(\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment\n * suppresses an error found when Flow v0.111 was deployed. To see\n * the error, delete this comment and run Flow. */\n ,\n );\n }\n }\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n firstAfterInitial,\n last,\n inversionStyle,\n );\n if (!this._hasWarned.keys && _usedIndexForKey) {\n console.warn(\n 'VirtualizedList: missing keys for items, make sure to specify a key or id property on each ' +\n 'item or provide a custom keyExtractor.',\n _keylessItemComponentName,\n );\n this._hasWarned.keys = true;\n }\n if (!isVirtualizationDisabled && last < itemCount - 1) {\n const lastFrame = this._getFrameMetricsApprox(last);\n // Without getItemLayout, we limit our tail spacer to the _highestMeasuredFrameIndex to\n // prevent the user for hyperscrolling into un-measured area because otherwise content will\n // likely jump around as it renders in above the viewport.\n const end = this.props.getItemLayout\n ? itemCount - 1\n : Math.min(itemCount - 1, this._highestMeasuredFrameIndex);\n const endFrame = this._getFrameMetricsApprox(end);\n const tailSpacerLength =\n endFrame.offset +\n endFrame.length -\n (lastFrame.offset + lastFrame.length);\n cells.push(\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.111 was deployed. To see the error,\n * delete this comment and run Flow. */\n ,\n );\n }\n } else if (ListEmptyComponent) {\n const element: React.Element = ((React.isValidElement(\n ListEmptyComponent,\n ) ? (\n ListEmptyComponent\n ) : (\n // $FlowFixMe\n \n )): any);\n cells.push(\n React.cloneElement(element, {\n key: '$empty',\n onLayout: event => {\n this._onLayoutEmpty(event);\n if (element.props.onLayout) {\n element.props.onLayout(event);\n }\n },\n style: StyleSheet.compose(\n inversionStyle,\n element.props.style,\n ),\n }),\n );\n }\n if (ListFooterComponent) {\n const element = React.isValidElement(ListFooterComponent) ? (\n ListFooterComponent\n ) : (\n // $FlowFixMe\n \n );\n cells.push(\n \n \n {\n // $FlowFixMe - Typing ReactNativeComponent revealed errors\n element\n }\n \n ,\n );\n }\n const scrollProps = {\n ...this.props,\n onContentSizeChange: this._onContentSizeChange,\n onLayout: this._onLayout,\n onScroll: this._onScroll,\n onScrollBeginDrag: this._onScrollBeginDrag,\n onScrollEndDrag: this._onScrollEndDrag,\n onMomentumScrollEnd: this._onMomentumScrollEnd,\n scrollEventThrottle: this.props.scrollEventThrottle, // TODO: Android support\n invertStickyHeaders:\n this.props.invertStickyHeaders !== undefined\n ? this.props.invertStickyHeaders\n : this.props.inverted,\n stickyHeaderIndices,\n style: inversionStyle\n ? [inversionStyle, this.props.style]\n : this.props.style,\n };\n\n this._hasMore =\n this.state.last < this.props.getItemCount(this.props.data) - 1;\n\n const innerRet = React.cloneElement(\n (this.props.renderScrollComponent || this._defaultRenderScrollComponent)(\n scrollProps,\n ),\n {\n ref: this._captureScrollRef,\n },\n cells,\n );\n let ret = innerRet;\n if (__DEV__) {\n ret = (\n \n {scrollContext => {\n if (\n scrollContext != null &&\n !scrollContext.horizontal === !this.props.horizontal &&\n !this._hasWarned.nesting &&\n this.context.virtualizedList == null\n ) {\n // TODO (T46547044): use React.warn once 16.9 is sync'd: https://github.com/facebook/react/pull/15170\n console.warn(\n 'VirtualizedLists should never be nested inside plain ScrollViews with the same ' +\n 'orientation - use another VirtualizedList-backed container instead.',\n );\n this._hasWarned.nesting = true;\n }\n return innerRet;\n }}\n \n );\n }\n if (this.props.debug) {\n return (\n \n {ret}\n {this._renderDebugOverlay()}\n \n );\n } else {\n return ret;\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n const {data, extraData} = this.props;\n if (data !== prevProps.data || extraData !== prevProps.extraData) {\n // clear the viewableIndices cache to also trigger\n // the onViewableItemsChanged callback with the new data\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.resetViewableIndices();\n });\n }\n // The `this._hiPriInProgress` is guaranteeing a hiPri cell update will only happen\n // once per fiber update. The `_scheduleCellsToRenderUpdate` will set it to true\n // if a hiPri update needs to perform. If `componentDidUpdate` is triggered with\n // `this._hiPriInProgress=true`, means it's triggered by the hiPri update. The\n // `_scheduleCellsToRenderUpdate` will check this condition and not perform\n // another hiPri update.\n const hiPriInProgress = this._hiPriInProgress;\n this._scheduleCellsToRenderUpdate();\n // Make sure setting `this._hiPriInProgress` back to false after `componentDidUpdate`\n // is triggered with `this._hiPriInProgress = true`\n if (hiPriInProgress) {\n this._hiPriInProgress = false;\n }\n }\n\n _averageCellLength = 0;\n // Maps a cell key to the set of keys for all outermost child lists within that cell\n _cellKeysToChildListKeys: Map> = new Map();\n _cellRefs = {};\n _fillRateHelper: FillRateHelper;\n _frames = {};\n _footerLength = 0;\n _hasDoneInitialScroll = false;\n _hasInteracted = false;\n _hasMore = false;\n _hasWarned = {};\n _headerLength = 0;\n _hiPriInProgress: boolean = false; // flag to prevent infinite hiPri cell limit update\n _highestMeasuredFrameIndex = 0;\n _indicesToKeys: Map = new Map();\n _nestedChildLists: Map<\n string,\n {\n ref: ?VirtualizedList,\n state: ?ChildListState,\n ...\n },\n > = new Map();\n _offsetFromParentVirtualizedList: number = 0;\n _prevParentOffset: number = 0;\n _scrollMetrics = {\n contentLength: 0,\n dOffset: 0,\n dt: 10,\n offset: 0,\n timestamp: 0,\n velocity: 0,\n visibleLength: 0,\n };\n _scrollRef: ?React.ElementRef = null;\n _sentEndForContentLength = 0;\n _totalCellLength = 0;\n _totalCellsMeasured = 0;\n _updateCellsToRenderBatcher: Batchinator;\n _viewabilityTuples: Array = [];\n\n _captureScrollRef = ref => {\n this._scrollRef = ref;\n };\n\n _computeBlankness() {\n this._fillRateHelper.computeBlankness(\n this.props,\n this.state,\n this._scrollMetrics,\n );\n }\n\n _defaultRenderScrollComponent = props => {\n const onRefresh = props.onRefresh;\n if (this._isNestedWithSameOrientation()) {\n // $FlowFixMe - Typing ReactNativeComponent revealed errors\n return ;\n } else if (onRefresh) {\n invariant(\n typeof props.refreshing === 'boolean',\n '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' +\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.111 was deployed. To see the error,\n * delete this comment and run Flow. */\n JSON.stringify(props.refreshing) +\n '`',\n );\n return (\n // $FlowFixMe Invalid prop usage\n \n ) : (\n props.refreshControl\n )\n }\n />\n );\n } else {\n // $FlowFixMe Invalid prop usage\n return ;\n }\n };\n\n _onCellLayout(e, cellKey, index) {\n const layout = e.nativeEvent.layout;\n const next = {\n offset: this._selectOffset(layout),\n length: this._selectLength(layout),\n index,\n inLayout: true,\n };\n const curr = this._frames[cellKey];\n if (\n !curr ||\n next.offset !== curr.offset ||\n next.length !== curr.length ||\n index !== curr.index\n ) {\n this._totalCellLength += next.length - (curr ? curr.length : 0);\n this._totalCellsMeasured += curr ? 0 : 1;\n this._averageCellLength =\n this._totalCellLength / this._totalCellsMeasured;\n this._frames[cellKey] = next;\n this._highestMeasuredFrameIndex = Math.max(\n this._highestMeasuredFrameIndex,\n index,\n );\n this._scheduleCellsToRenderUpdate();\n } else {\n this._frames[cellKey].inLayout = true;\n }\n\n const childListKeys = this._cellKeysToChildListKeys.get(cellKey);\n if (childListKeys) {\n for (let childKey of childListKeys) {\n const childList = this._nestedChildLists.get(childKey);\n childList &&\n childList.ref &&\n childList.ref.measureLayoutRelativeToContainingList();\n }\n }\n\n this._computeBlankness();\n this._updateViewableItems(this.props.data);\n }\n\n _onCellUnmount = (cellKey: string) => {\n const curr = this._frames[cellKey];\n if (curr) {\n this._frames[cellKey] = {...curr, inLayout: false};\n }\n };\n\n measureLayoutRelativeToContainingList(): void {\n // TODO (T35574538): findNodeHandle sometimes crashes with \"Unable to find\n // node on an unmounted component\" during scrolling\n try {\n if (!this._scrollRef) {\n return;\n }\n // We are assuming that getOutermostParentListRef().getScrollRef()\n // is a non-null reference to a ScrollView\n this._scrollRef.measureLayout(\n this.context.virtualizedList\n .getOutermostParentListRef()\n .getScrollRef()\n .getNativeScrollRef(),\n (x, y, width, height) => {\n this._offsetFromParentVirtualizedList = this._selectOffset({x, y});\n this._scrollMetrics.contentLength = this._selectLength({\n width,\n height,\n });\n const scrollMetrics = this._convertParentScrollMetrics(\n this.context.virtualizedList.getScrollMetrics(),\n );\n this._scrollMetrics.visibleLength = scrollMetrics.visibleLength;\n this._scrollMetrics.offset = scrollMetrics.offset;\n },\n error => {\n console.warn(\n \"VirtualizedList: Encountered an error while measuring a list's\" +\n ' offset from its containing VirtualizedList.',\n );\n },\n );\n } catch (error) {\n console.warn(\n 'measureLayoutRelativeToContainingList threw an error',\n error.stack,\n );\n }\n }\n\n _onLayout = (e: Object) => {\n if (this._isNestedWithSameOrientation()) {\n // Need to adjust our scroll metrics to be relative to our containing\n // VirtualizedList before we can make claims about list item viewability\n this.measureLayoutRelativeToContainingList();\n } else {\n this._scrollMetrics.visibleLength = this._selectLength(\n e.nativeEvent.layout,\n );\n }\n this.props.onLayout && this.props.onLayout(e);\n this._scheduleCellsToRenderUpdate();\n this._maybeCallOnEndReached();\n };\n\n _onLayoutEmpty = e => {\n this.props.onLayout && this.props.onLayout(e);\n };\n\n _onLayoutFooter = e => {\n this._footerLength = this._selectLength(e.nativeEvent.layout);\n };\n\n _onLayoutHeader = e => {\n this._headerLength = this._selectLength(e.nativeEvent.layout);\n };\n\n _renderDebugOverlay() {\n const normalize =\n this._scrollMetrics.visibleLength /\n (this._scrollMetrics.contentLength || 1);\n const framesInLayout = [];\n const itemCount = this.props.getItemCount(this.props.data);\n for (let ii = 0; ii < itemCount; ii++) {\n const frame = this._getFrameMetricsApprox(ii);\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n if (frame.inLayout) {\n framesInLayout.push(frame);\n }\n }\n const windowTop = this._getFrameMetricsApprox(this.state.first).offset;\n const frameLast = this._getFrameMetricsApprox(this.state.last);\n const windowLen = frameLast.offset + frameLast.length - windowTop;\n const visTop = this._scrollMetrics.offset;\n const visLen = this._scrollMetrics.visibleLength;\n\n return (\n \n {framesInLayout.map((f, ii) => (\n \n ))}\n \n \n \n );\n }\n\n _selectLength(\n metrics: $ReadOnly<{\n height: number,\n width: number,\n ...\n }>,\n ): number {\n return !this.props.horizontal ? metrics.height : metrics.width;\n }\n\n _selectOffset(\n metrics: $ReadOnly<{\n x: number,\n y: number,\n ...\n }>,\n ): number {\n return !this.props.horizontal ? metrics.y : metrics.x;\n }\n\n _maybeCallOnEndReached() {\n const {\n data,\n getItemCount,\n onEndReached,\n onEndReachedThreshold,\n } = this.props;\n const {contentLength, visibleLength, offset} = this._scrollMetrics;\n const distanceFromEnd = contentLength - visibleLength - offset;\n const threshold = onEndReachedThreshold\n ? onEndReachedThreshold * visibleLength\n : 0;\n if (\n onEndReached &&\n this.state.last === getItemCount(data) - 1 &&\n distanceFromEnd < threshold &&\n this._scrollMetrics.contentLength !== this._sentEndForContentLength\n ) {\n // Only call onEndReached once for a given content length\n this._sentEndForContentLength = this._scrollMetrics.contentLength;\n onEndReached({distanceFromEnd});\n } else if (distanceFromEnd > threshold) {\n // If the user scrolls away from the end and back again cause\n // an onEndReached to be triggered again\n this._sentEndForContentLength = 0;\n }\n }\n\n _onContentSizeChange = (width: number, height: number) => {\n if (\n width > 0 &&\n height > 0 &&\n this.props.initialScrollIndex != null &&\n this.props.initialScrollIndex > 0 &&\n !this._hasDoneInitialScroll\n ) {\n this.scrollToIndex({\n animated: false,\n index: this.props.initialScrollIndex,\n });\n this._hasDoneInitialScroll = true;\n }\n if (this.props.onContentSizeChange) {\n this.props.onContentSizeChange(width, height);\n }\n this._scrollMetrics.contentLength = this._selectLength({height, width});\n this._scheduleCellsToRenderUpdate();\n this._maybeCallOnEndReached();\n };\n\n /* Translates metrics from a scroll event in a parent VirtualizedList into\n * coordinates relative to the child list.\n */\n _convertParentScrollMetrics = (metrics: {\n visibleLength: number,\n offset: number,\n ...\n }) => {\n // Offset of the top of the nested list relative to the top of its parent's viewport\n const offset = metrics.offset - this._offsetFromParentVirtualizedList;\n // Child's visible length is the same as its parent's\n const visibleLength = metrics.visibleLength;\n const dOffset = offset - this._scrollMetrics.offset;\n const contentLength = this._scrollMetrics.contentLength;\n\n return {\n visibleLength,\n contentLength,\n offset,\n dOffset,\n };\n };\n\n _onScroll = (e: Object) => {\n this._nestedChildLists.forEach(childList => {\n childList.ref && childList.ref._onScroll(e);\n });\n if (this.props.onScroll) {\n this.props.onScroll(e);\n }\n const timestamp = e.timeStamp;\n let visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement);\n let contentLength = this._selectLength(e.nativeEvent.contentSize);\n let offset = this._selectOffset(e.nativeEvent.contentOffset);\n let dOffset = offset - this._scrollMetrics.offset;\n\n if (this._isNestedWithSameOrientation()) {\n if (this._scrollMetrics.contentLength === 0) {\n // Ignore scroll events until onLayout has been called and we\n // know our offset from our offset from our parent\n return;\n }\n ({\n visibleLength,\n contentLength,\n offset,\n dOffset,\n } = this._convertParentScrollMetrics({\n visibleLength,\n offset,\n }));\n }\n\n const dt = this._scrollMetrics.timestamp\n ? Math.max(1, timestamp - this._scrollMetrics.timestamp)\n : 1;\n const velocity = dOffset / dt;\n\n if (\n dt > 500 &&\n this._scrollMetrics.dt > 500 &&\n contentLength > 5 * visibleLength &&\n !this._hasWarned.perf\n ) {\n infoLog(\n 'VirtualizedList: You have a large list that is slow to update - make sure your ' +\n 'renderItem function renders components that follow React performance best practices ' +\n 'like PureComponent, shouldComponentUpdate, etc.',\n {dt, prevDt: this._scrollMetrics.dt, contentLength},\n );\n this._hasWarned.perf = true;\n }\n this._scrollMetrics = {\n contentLength,\n dt,\n dOffset,\n offset,\n timestamp,\n velocity,\n visibleLength,\n };\n this._updateViewableItems(this.props.data);\n if (!this.props) {\n return;\n }\n this._maybeCallOnEndReached();\n if (velocity !== 0) {\n this._fillRateHelper.activate();\n }\n this._computeBlankness();\n this._scheduleCellsToRenderUpdate();\n };\n\n _scheduleCellsToRenderUpdate() {\n const {first, last} = this.state;\n const {offset, visibleLength, velocity} = this._scrollMetrics;\n const itemCount = this.props.getItemCount(this.props.data);\n let hiPri = false;\n const scrollingThreshold =\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete\n * this comment and run Flow. */\n (this.props.onEndReachedThreshold * visibleLength) / 2;\n // Mark as high priority if we're close to the start of the first item\n // But only if there are items before the first rendered item\n if (first > 0) {\n const distTop = offset - this._getFrameMetricsApprox(first).offset;\n hiPri =\n hiPri || distTop < 0 || (velocity < -2 && distTop < scrollingThreshold);\n }\n // Mark as high priority if we're close to the end of the last item\n // But only if there are items after the last rendered item\n if (last < itemCount - 1) {\n const distBottom =\n this._getFrameMetricsApprox(last).offset - (offset + visibleLength);\n hiPri =\n hiPri ||\n distBottom < 0 ||\n (velocity > 2 && distBottom < scrollingThreshold);\n }\n // Only trigger high-priority updates if we've actually rendered cells,\n // and with that size estimate, accurately compute how many cells we should render.\n // Otherwise, it would just render as many cells as it can (of zero dimension),\n // each time through attempting to render more (limited by maxToRenderPerBatch),\n // starving the renderer from actually laying out the objects and computing _averageCellLength.\n // If this is triggered in an `componentDidUpdate` followed by a hiPri cellToRenderUpdate\n // We shouldn't do another hipri cellToRenderUpdate\n if (\n hiPri &&\n (this._averageCellLength || this.props.getItemLayout) &&\n !this._hiPriInProgress\n ) {\n this._hiPriInProgress = true;\n // Don't worry about interactions when scrolling quickly; focus on filling content as fast\n // as possible.\n this._updateCellsToRenderBatcher.dispose({abort: true});\n this._updateCellsToRender();\n return;\n } else {\n this._updateCellsToRenderBatcher.schedule();\n }\n }\n\n _onScrollBeginDrag = (e): void => {\n this._nestedChildLists.forEach(childList => {\n childList.ref && childList.ref._onScrollBeginDrag(e);\n });\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.recordInteraction();\n });\n this._hasInteracted = true;\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n };\n\n _onScrollEndDrag = (e): void => {\n const {velocity} = e.nativeEvent;\n if (velocity) {\n this._scrollMetrics.velocity = this._selectOffset(velocity);\n }\n this._computeBlankness();\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n };\n\n _onMomentumScrollEnd = (e): void => {\n this._scrollMetrics.velocity = 0;\n this._computeBlankness();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n };\n\n _updateCellsToRender = () => {\n const {data, getItemCount, onEndReachedThreshold} = this.props;\n const isVirtualizationDisabled = this._isVirtualizationDisabled();\n this._updateViewableItems(data);\n if (!data) {\n return;\n }\n this.setState(state => {\n let newState;\n if (!isVirtualizationDisabled) {\n // If we run this with bogus data, we'll force-render window {first: 0, last: 0},\n // and wipe out the initialNumToRender rendered elements.\n // So let's wait until the scroll view metrics have been set up. And until then,\n // we will trust the initialNumToRender suggestion\n if (this._scrollMetrics.visibleLength) {\n // If we have a non-zero initialScrollIndex and run this before we've scrolled,\n // we'll wipe out the initialNumToRender rendered elements starting at initialScrollIndex.\n // So let's wait until we've scrolled the view to the right place. And until then,\n // we will trust the initialScrollIndex suggestion.\n if (!this.props.initialScrollIndex || this._scrollMetrics.offset) {\n newState = computeWindowedRenderLimits(\n this.props,\n state,\n this._getFrameMetricsApprox,\n this._scrollMetrics,\n );\n }\n }\n } else {\n const {contentLength, offset, visibleLength} = this._scrollMetrics;\n const distanceFromEnd = contentLength - visibleLength - offset;\n const renderAhead =\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.63 was deployed. To see the error\n * delete this comment and run Flow. */\n distanceFromEnd < onEndReachedThreshold * visibleLength\n ? this.props.maxToRenderPerBatch\n : 0;\n newState = {\n first: 0,\n last: Math.min(state.last + renderAhead, getItemCount(data) - 1),\n };\n }\n if (newState && this._nestedChildLists.size > 0) {\n const newFirst = newState.first;\n const newLast = newState.last;\n // If some cell in the new state has a child list in it, we should only render\n // up through that item, so that we give that list a chance to render.\n // Otherwise there's churn from multiple child lists mounting and un-mounting\n // their items.\n for (let ii = newFirst; ii <= newLast; ii++) {\n const cellKeyForIndex = this._indicesToKeys.get(ii);\n const childListKeys =\n cellKeyForIndex &&\n this._cellKeysToChildListKeys.get(cellKeyForIndex);\n if (!childListKeys) {\n continue;\n }\n let someChildHasMore = false;\n // For each cell, need to check whether any child list in it has more elements to render\n for (let childKey of childListKeys) {\n const childList = this._nestedChildLists.get(childKey);\n if (childList && childList.ref && childList.ref.hasMore()) {\n someChildHasMore = true;\n break;\n }\n }\n if (someChildHasMore) {\n newState.last = ii;\n break;\n }\n }\n }\n return newState;\n });\n };\n\n _createViewToken = (index: number, isViewable: boolean) => {\n const {data, getItem, keyExtractor} = this.props;\n const item = getItem(data, index);\n return {index, item, key: keyExtractor(item, index), isViewable};\n };\n\n _getFrameMetricsApprox = (\n index: number,\n ): {\n length: number,\n offset: number,\n ...\n } => {\n const frame = this._getFrameMetrics(index);\n if (frame && frame.index === index) {\n // check for invalid frames due to row re-ordering\n return frame;\n } else {\n const {getItemLayout} = this.props;\n invariant(\n !getItemLayout,\n 'Should not have to estimate frames when a measurement metrics function is provided',\n );\n return {\n length: this._averageCellLength,\n offset: this._averageCellLength * index,\n };\n }\n };\n\n _getFrameMetrics = (\n index: number,\n ): ?{\n length: number,\n offset: number,\n index: number,\n inLayout?: boolean,\n ...\n } => {\n const {\n data,\n getItem,\n getItemCount,\n getItemLayout,\n keyExtractor,\n } = this.props;\n invariant(\n getItemCount(data) > index,\n 'Tried to get frame for out of range index ' + index,\n );\n const item = getItem(data, index);\n let frame = item && this._frames[keyExtractor(item, index)];\n if (!frame || frame.index !== index) {\n if (getItemLayout) {\n frame = getItemLayout(data, index);\n if (__DEV__) {\n const frameType = PropTypes.shape({\n length: PropTypes.number.isRequired,\n offset: PropTypes.number.isRequired,\n index: PropTypes.number.isRequired,\n }).isRequired;\n PropTypes.checkPropTypes(\n {frame: frameType},\n {frame},\n 'frame',\n 'VirtualizedList.getItemLayout',\n );\n }\n }\n }\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n return frame;\n };\n\n _updateViewableItems(data: any) {\n const {getItemCount} = this.props;\n\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.onUpdate(\n getItemCount(data),\n this._scrollMetrics.offset,\n this._scrollMetrics.visibleLength,\n this._getFrameMetrics,\n this._createViewToken,\n tuple.onViewableItemsChanged,\n this.state,\n );\n });\n }\n}\n\ntype CellRendererProps = {\n CellRendererComponent?: ?React.ComponentType,\n ItemSeparatorComponent: ?React.ComponentType<*>,\n cellKey: string,\n fillRateHelper: FillRateHelper,\n horizontal: ?boolean,\n index: number,\n inversionStyle: ViewStyleProp,\n item: Item,\n // This is extracted by ScrollViewStickyHeader\n onLayout: (event: Object) => void,\n onUnmount: (cellKey: string) => void,\n onUpdateSeparators: (cellKeys: Array, props: Object) => void,\n parentProps: {\n // e.g. height, y,\n getItemLayout?: (\n data: any,\n index: number,\n ) => {\n length: number,\n offset: number,\n index: number,\n ...\n },\n renderItem?: ?RenderItemType,\n ListItemComponent?: ?(React.ComponentType | React.Element),\n ...\n },\n prevCellKey: ?string,\n ...\n};\n\ntype CellRendererState = {\n separatorProps: $ReadOnly<{|\n highlighted: boolean,\n leadingItem: ?Item,\n |}>,\n ...\n};\n\nclass CellRenderer extends React.Component<\n CellRendererProps,\n CellRendererState,\n> {\n state = {\n separatorProps: {\n highlighted: false,\n leadingItem: this.props.item,\n },\n };\n\n static childContextTypes = {\n virtualizedCell: PropTypes.shape({\n cellKey: PropTypes.string,\n }),\n };\n\n static getDerivedStateFromProps(\n props: CellRendererProps,\n prevState: CellRendererState,\n ): ?CellRendererState {\n return {\n separatorProps: {\n ...prevState.separatorProps,\n leadingItem: props.item,\n },\n };\n }\n\n getChildContext() {\n return {\n virtualizedCell: {\n cellKey: this.props.cellKey,\n },\n };\n }\n\n // TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not\n // reused by SectionList and we can keep VirtualizedList simpler.\n _separators = {\n highlight: () => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators([cellKey, prevCellKey], {\n highlighted: true,\n });\n },\n unhighlight: () => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators([cellKey, prevCellKey], {\n highlighted: false,\n });\n },\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators(\n [select === 'leading' ? prevCellKey : cellKey],\n newProps,\n );\n },\n };\n\n updateSeparatorProps(newProps: Object) {\n this.setState(state => ({\n separatorProps: {...state.separatorProps, ...newProps},\n }));\n }\n\n componentWillUnmount() {\n this.props.onUnmount(this.props.cellKey);\n }\n\n _renderElement(renderItem, ListItemComponent, item, index) {\n if (renderItem && ListItemComponent) {\n console.warn(\n 'VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take' +\n ' precedence over renderItem.',\n );\n }\n\n if (ListItemComponent) {\n /* $FlowFixMe(>=0.108.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.108 was deployed. To see the error, delete\n * this comment and run Flow. */\n return React.createElement(ListItemComponent, {\n item,\n index,\n separators: this._separators,\n });\n }\n\n if (renderItem) {\n return renderItem({\n item,\n index,\n separators: this._separators,\n });\n }\n\n invariant(\n false,\n 'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.',\n );\n }\n\n render() {\n const {\n CellRendererComponent,\n ItemSeparatorComponent,\n fillRateHelper,\n horizontal,\n item,\n index,\n inversionStyle,\n parentProps,\n } = this.props;\n const {renderItem, getItemLayout, ListItemComponent} = parentProps;\n const element = this._renderElement(\n renderItem,\n ListItemComponent,\n item,\n index,\n );\n\n const onLayout =\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n getItemLayout && !parentProps.debug && !fillRateHelper.enabled()\n ? undefined\n : this.props.onLayout;\n // NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and\n // called explicitly by `ScrollViewStickyHeader`.\n const itemSeparator = ItemSeparatorComponent && (\n \n );\n const cellStyle = inversionStyle\n ? horizontal\n ? [styles.rowReverse, inversionStyle]\n : [styles.columnReverse, inversionStyle]\n : horizontal\n ? [styles.row, inversionStyle]\n : inversionStyle;\n if (!CellRendererComponent) {\n return (\n /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete\n * this comment and run Flow. */\n \n {element}\n {itemSeparator}\n \n );\n }\n return (\n \n {element}\n {itemSeparator}\n \n );\n }\n}\n\nclass VirtualizedCellWrapper extends React.Component<{\n cellKey: string,\n children: React.Node,\n ...\n}> {\n static childContextTypes = {\n virtualizedCell: PropTypes.shape({\n cellKey: PropTypes.string,\n }),\n };\n\n getChildContext() {\n return {\n virtualizedCell: {\n cellKey: this.props.cellKey,\n },\n };\n }\n\n render() {\n return this.props.children;\n }\n}\n\nconst styles = StyleSheet.create({\n verticallyInverted: {\n transform: [{scaleY: -1}],\n },\n horizontallyInverted: {\n transform: [{scaleX: -1}],\n },\n row: {\n flexDirection: 'row',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n debug: {\n flex: 1,\n },\n debugOverlayBase: {\n position: 'absolute',\n top: 0,\n right: 0,\n },\n debugOverlay: {\n bottom: 0,\n width: 20,\n borderColor: 'blue',\n borderWidth: 1,\n },\n debugOverlayFrame: {\n left: 0,\n backgroundColor: 'orange',\n },\n debugOverlayFrameLast: {\n left: 0,\n borderColor: 'green',\n borderWidth: 2,\n },\n debugOverlayFrameVis: {\n left: 0,\n borderColor: 'red',\n borderWidth: 2,\n },\n});\n\nmodule.exports = VirtualizedList;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst InteractionManager = require('./InteractionManager');\n\n/**\n * A simple class for batching up invocations of a low-pri callback. A timeout is set to run the\n * callback once after a delay, no matter how many times it's scheduled. Once the delay is reached,\n * InteractionManager.runAfterInteractions is used to invoke the callback after any hi-pri\n * interactions are done running.\n *\n * Make sure to cleanup with dispose(). Example:\n *\n * class Widget extends React.Component {\n * _batchedSave: new Batchinator(() => this._saveState, 1000);\n * _saveSate() {\n * // save this.state to disk\n * }\n * componentDidUpdate() {\n * this._batchedSave.schedule();\n * }\n * componentWillUnmount() {\n * this._batchedSave.dispose();\n * }\n * ...\n * }\n */\nclass Batchinator {\n _callback: () => void;\n _delay: number;\n _taskHandle: ?{cancel: () => void, ...};\n constructor(callback: () => void, delayMS: number) {\n this._delay = delayMS;\n this._callback = callback;\n }\n /*\n * Cleanup any pending tasks.\n *\n * By default, if there is a pending task the callback is run immediately. Set the option abort to\n * true to not call the callback if it was pending.\n */\n dispose(options: {abort: boolean, ...} = {abort: false}) {\n if (this._taskHandle) {\n this._taskHandle.cancel();\n if (!options.abort) {\n this._callback();\n }\n this._taskHandle = null;\n }\n }\n schedule() {\n if (this._taskHandle) {\n return;\n }\n const timeoutHandle = setTimeout(() => {\n this._taskHandle = InteractionManager.runAfterInteractions(() => {\n // Note that we clear the handle before invoking the callback so that if the callback calls\n // schedule again, it will actually schedule another task.\n this._taskHandle = null;\n this._callback();\n });\n }, this._delay);\n this._taskHandle = {cancel: () => clearTimeout(timeoutHandle)};\n }\n}\n\nmodule.exports = Batchinator;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst performanceNow = require('fbjs/lib/performanceNow');\nconst warning = require('fbjs/lib/warning');\n\nexport type FillRateInfo = Info;\n\nclass Info {\n any_blank_count: number = 0;\n any_blank_ms: number = 0;\n any_blank_speed_sum: number = 0;\n mostly_blank_count: number = 0;\n mostly_blank_ms: number = 0;\n pixels_blank: number = 0;\n pixels_sampled: number = 0;\n pixels_scrolled: number = 0;\n total_time_spent: number = 0;\n sample_count: number = 0;\n}\n\ntype FrameMetrics = {\n inLayout?: boolean,\n length: number,\n offset: number,\n ...\n};\n\nconst DEBUG = false;\n\nlet _listeners: Array<(Info) => void> = [];\nlet _minSampleCount = 10;\nlet _sampleRate = DEBUG ? 1 : null;\n\n/**\n * A helper class for detecting when the maximem fill rate of `VirtualizedList` is exceeded.\n * By default the sampling rate is set to zero and this will do nothing. If you want to collect\n * samples (e.g. to log them), make sure to call `FillRateHelper.setSampleRate(0.0-1.0)`.\n *\n * Listeners and sample rate are global for all `VirtualizedList`s - typical usage will combine with\n * `SceneTracker.getActiveScene` to determine the context of the events.\n */\nclass FillRateHelper {\n _anyBlankStartTime = (null: ?number);\n _enabled = false;\n _getFrameMetrics: (index: number) => ?FrameMetrics;\n _info = new Info();\n _mostlyBlankStartTime = (null: ?number);\n _samplesStartTime = (null: ?number);\n\n static addListener(\n callback: FillRateInfo => void,\n ): {remove: () => void, ...} {\n warning(\n _sampleRate !== null,\n 'Call `FillRateHelper.setSampleRate` before `addListener`.',\n );\n _listeners.push(callback);\n return {\n remove: () => {\n _listeners = _listeners.filter(listener => callback !== listener);\n },\n };\n }\n\n static setSampleRate(sampleRate: number) {\n _sampleRate = sampleRate;\n }\n\n static setMinSampleCount(minSampleCount: number) {\n _minSampleCount = minSampleCount;\n }\n\n constructor(getFrameMetrics: (index: number) => ?FrameMetrics) {\n this._getFrameMetrics = getFrameMetrics;\n this._enabled = (_sampleRate || 0) > Math.random();\n this._resetData();\n }\n\n activate() {\n if (this._enabled && this._samplesStartTime == null) {\n DEBUG && console.debug('FillRateHelper: activate');\n this._samplesStartTime = performanceNow();\n }\n }\n\n deactivateAndFlush() {\n if (!this._enabled) {\n return;\n }\n const start = this._samplesStartTime; // const for flow\n if (start == null) {\n DEBUG &&\n console.debug('FillRateHelper: bail on deactivate with no start time');\n return;\n }\n if (this._info.sample_count < _minSampleCount) {\n // Don't bother with under-sampled events.\n this._resetData();\n return;\n }\n const total_time_spent = performanceNow() - start;\n const info: any = {\n ...this._info,\n total_time_spent,\n };\n if (DEBUG) {\n const derived = {\n avg_blankness: this._info.pixels_blank / this._info.pixels_sampled,\n avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000),\n avg_speed_when_any_blank:\n this._info.any_blank_speed_sum / this._info.any_blank_count,\n any_blank_per_min:\n this._info.any_blank_count / (total_time_spent / 1000 / 60),\n any_blank_time_frac: this._info.any_blank_ms / total_time_spent,\n mostly_blank_per_min:\n this._info.mostly_blank_count / (total_time_spent / 1000 / 60),\n mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent,\n };\n for (const key in derived) {\n derived[key] = Math.round(1000 * derived[key]) / 1000;\n }\n console.debug('FillRateHelper deactivateAndFlush: ', {derived, info});\n }\n _listeners.forEach(listener => listener(info));\n this._resetData();\n }\n\n computeBlankness(\n props: {\n data: any,\n getItemCount: (data: any) => number,\n initialNumToRender: number,\n ...\n },\n state: {\n first: number,\n last: number,\n ...\n },\n scrollMetrics: {\n dOffset: number,\n offset: number,\n velocity: number,\n visibleLength: number,\n ...\n },\n ): number {\n if (\n !this._enabled ||\n props.getItemCount(props.data) === 0 ||\n this._samplesStartTime == null\n ) {\n return 0;\n }\n const {dOffset, offset, velocity, visibleLength} = scrollMetrics;\n\n // Denominator metrics that we track for all events - most of the time there is no blankness and\n // we want to capture that.\n this._info.sample_count++;\n this._info.pixels_sampled += Math.round(visibleLength);\n this._info.pixels_scrolled += Math.round(Math.abs(dOffset));\n const scrollSpeed = Math.round(Math.abs(velocity) * 1000); // px / sec\n\n // Whether blank now or not, record the elapsed time blank if we were blank last time.\n const now = performanceNow();\n if (this._anyBlankStartTime != null) {\n this._info.any_blank_ms += now - this._anyBlankStartTime;\n }\n this._anyBlankStartTime = null;\n if (this._mostlyBlankStartTime != null) {\n this._info.mostly_blank_ms += now - this._mostlyBlankStartTime;\n }\n this._mostlyBlankStartTime = null;\n\n let blankTop = 0;\n let first = state.first;\n let firstFrame = this._getFrameMetrics(first);\n while (first <= state.last && (!firstFrame || !firstFrame.inLayout)) {\n firstFrame = this._getFrameMetrics(first);\n first++;\n }\n // Only count blankTop if we aren't rendering the first item, otherwise we will count the header\n // as blank.\n if (firstFrame && first > 0) {\n blankTop = Math.min(\n visibleLength,\n Math.max(0, firstFrame.offset - offset),\n );\n }\n let blankBottom = 0;\n let last = state.last;\n let lastFrame = this._getFrameMetrics(last);\n while (last >= state.first && (!lastFrame || !lastFrame.inLayout)) {\n lastFrame = this._getFrameMetrics(last);\n last--;\n }\n // Only count blankBottom if we aren't rendering the last item, otherwise we will count the\n // footer as blank.\n if (lastFrame && last < props.getItemCount(props.data) - 1) {\n const bottomEdge = lastFrame.offset + lastFrame.length;\n blankBottom = Math.min(\n visibleLength,\n Math.max(0, offset + visibleLength - bottomEdge),\n );\n }\n const pixels_blank = Math.round(blankTop + blankBottom);\n const blankness = pixels_blank / visibleLength;\n if (blankness > 0) {\n this._anyBlankStartTime = now;\n this._info.any_blank_speed_sum += scrollSpeed;\n this._info.any_blank_count++;\n this._info.pixels_blank += pixels_blank;\n if (blankness > 0.5) {\n this._mostlyBlankStartTime = now;\n this._info.mostly_blank_count++;\n }\n } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) {\n this.deactivateAndFlush();\n }\n return blankness;\n }\n\n enabled(): boolean {\n return this._enabled;\n }\n\n _resetData() {\n this._anyBlankStartTime = null;\n this._info = new Info();\n this._mostlyBlankStartTime = null;\n this._samplesStartTime = null;\n }\n}\n\nmodule.exports = FillRateHelper;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport AndroidSwipeRefreshLayoutNativeComponent from './AndroidSwipeRefreshLayoutNativeComponent';\nimport PullToRefreshViewNativeComponent from './PullToRefreshViewNativeComponent';\n\nlet RefreshLayoutConsts: any;\nif (Platform.OS === 'android') {\n const AndroidSwipeRefreshLayout = require('../../ReactNative/UIManager').getViewManagerConfig(\n 'AndroidSwipeRefreshLayout',\n );\n RefreshLayoutConsts = AndroidSwipeRefreshLayout\n ? AndroidSwipeRefreshLayout.Constants\n : {SIZE: {}};\n} else {\n RefreshLayoutConsts = {SIZE: {}};\n}\n\ntype IOSProps = $ReadOnly<{|\n /**\n * The color of the refresh indicator.\n */\n tintColor?: ?ColorValue,\n /**\n * Title color.\n */\n titleColor?: ?ColorValue,\n /**\n * The title displayed under the refresh indicator.\n */\n title?: ?string,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Whether the pull to refresh functionality is enabled.\n */\n enabled?: ?boolean,\n /**\n * The colors (at least one) that will be used to draw the refresh indicator.\n */\n colors?: ?$ReadOnlyArray,\n /**\n * The background color of the refresh indicator.\n */\n progressBackgroundColor?: ?ColorValue,\n /**\n * Size of the refresh indicator, see RefreshControl.SIZE.\n */\n size?: ?(\n | typeof RefreshLayoutConsts.SIZE.DEFAULT\n | typeof RefreshLayoutConsts.SIZE.LARGE\n ),\n /**\n * Progress view top offset\n */\n progressViewOffset?: ?number,\n|}>;\n\nexport type RefreshControlProps = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?() => void,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n|}>;\n\n/**\n * This component is used inside a ScrollView or ListView to add pull to refresh\n * functionality. When the ScrollView is at `scrollY: 0`, swiping down\n * triggers an `onRefresh` event.\n *\n * ### Usage example\n *\n * ``` js\n * class RefreshableList extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * refreshing: false,\n * };\n * }\n *\n * _onRefresh() {\n * this.setState({refreshing: true});\n * fetchData().then(() => {\n * this.setState({refreshing: false});\n * });\n * }\n *\n * render() {\n * return (\n * \n * }\n * ...\n * >\n * ...\n * \n * );\n * }\n * ...\n * }\n * ```\n *\n * __Note:__ `refreshing` is a controlled prop, this is why it needs to be set to true\n * in the `onRefresh` function otherwise the refresh indicator will stop immediately.\n */\nclass RefreshControl extends React.Component {\n static SIZE: any = RefreshLayoutConsts.SIZE;\n\n _setNativePropsOnRef: ?({refreshing: boolean, ...}) => void;\n _lastNativeRefreshing = false;\n\n componentDidMount() {\n this._lastNativeRefreshing = this.props.refreshing;\n }\n\n componentDidUpdate(prevProps: RefreshControlProps) {\n // RefreshControl is a controlled component so if the native refreshing\n // value doesn't match the current js refreshing prop update it to\n // the js value.\n if (this.props.refreshing !== prevProps.refreshing) {\n this._lastNativeRefreshing = this.props.refreshing;\n } else if (\n this.props.refreshing !== this._lastNativeRefreshing &&\n this._setNativePropsOnRef\n ) {\n this._setNativePropsOnRef({\n refreshing: this.props.refreshing,\n });\n this._lastNativeRefreshing = this.props.refreshing;\n }\n }\n\n render(): React.Node {\n const setRef = ref =>\n (this._setNativePropsOnRef = ref ? ref.setNativeProps.bind(ref) : null);\n if (Platform.OS === 'ios') {\n const {\n enabled,\n colors,\n progressBackgroundColor,\n size,\n progressViewOffset,\n ...props\n } = this.props;\n return (\n \n );\n } else {\n const {tintColor, titleColor, title, ...props} = this.props;\n return (\n \n );\n }\n }\n\n _onRefresh = () => {\n this._lastNativeRefreshing = true;\n\n this.props.onRefresh && this.props.onRefresh();\n\n // The native component will start refreshing so force an update to\n // make sure it stays in sync with the js component.\n this.forceUpdate();\n };\n}\n\nmodule.exports = RefreshControl;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from '../../Utilities/codegenNativeComponent';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\nimport type {\n DirectEventHandler,\n Float,\n Int32,\n WithDefault,\n} from '../../Types/CodegenTypes';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Whether the pull to refresh functionality is enabled.\n */\n enabled?: WithDefault,\n /**\n * The colors (at least one) that will be used to draw the refresh indicator.\n */\n colors?: ?$ReadOnlyArray,\n /**\n * The background color of the refresh indicator.\n */\n progressBackgroundColor?: ?ColorValue,\n /**\n * Size of the refresh indicator, see RefreshControl.SIZE.\n *\n * This type isn't currently accurate. It really is specific numbers\n * hard coded in the Android platform.\n *\n * Also, 1 isn't actually a safe default. We are able to set this here\n * because native code isn't currently consuming the generated artifact.\n * This will end up being\n * size?: WithDefault<'default' | 'large', 'default'>,\n */\n size?: WithDefault,\n /**\n * Progress view top offset\n */\n progressViewOffset?: WithDefault,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?DirectEventHandler,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeRefreshing: (\n viewRef: React.ElementRef,\n value: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeRefreshing'],\n});\n\nexport default (codegenNativeComponent(\n 'AndroidSwipeRefreshLayout',\n): NativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {DirectEventHandler, WithDefault} from '../../Types/CodegenTypes';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport * as React from 'react';\n\nimport codegenNativeComponent from '../../Utilities/codegenNativeComponent';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * The color of the refresh indicator.\n */\n tintColor?: ?ColorValue,\n /**\n * Title color.\n */\n titleColor?: ?ColorValue,\n /**\n * The title displayed under the refresh indicator.\n */\n title?: WithDefault,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?DirectEventHandler,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n|}>;\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n +setNativeRefreshing: (\n viewRef: React.ElementRef,\n refreshing: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeRefreshing'],\n});\n\nexport default (codegenNativeComponent('PullToRefreshView', {\n paperComponentName: 'RCTRefreshControl',\n}): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\nexport type ViewToken = {\n item: any,\n key: string,\n index: ?number,\n isViewable: boolean,\n section?: any,\n ...\n};\n\nexport type ViewabilityConfigCallbackPair = {\n viewabilityConfig: ViewabilityConfig,\n onViewableItemsChanged: (info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n ...\n};\n\nexport type ViewabilityConfig = {|\n /**\n * Minimum amount of time (in milliseconds) that an item must be physically viewable before the\n * viewability callback will be fired. A high number means that scrolling through content without\n * stopping will not mark the content as viewable.\n */\n minimumViewTime?: number,\n\n /**\n * Percent of viewport that must be covered for a partially occluded item to count as\n * \"viewable\", 0-100. Fully visible items are always considered viewable. A value of 0 means\n * that a single pixel in the viewport makes the item viewable, and a value of 100 means that\n * an item must be either entirely visible or cover the entire viewport to count as viewable.\n */\n viewAreaCoveragePercentThreshold?: number,\n\n /**\n * Similar to `viewAreaPercentThreshold`, but considers the percent of the item that is visible,\n * rather than the fraction of the viewable area it covers.\n */\n itemVisiblePercentThreshold?: number,\n\n /**\n * Nothing is considered viewable until the user scrolls or `recordInteraction` is called after\n * render.\n */\n waitForInteraction?: boolean,\n|};\n\n/**\n * A Utility class for calculating viewable items based on current metrics like scroll position and\n * layout.\n *\n * An item is said to be in a \"viewable\" state when any of the following\n * is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`\n * is true):\n *\n * - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item\n * visible in the view area >= `itemVisiblePercentThreshold`.\n * - Entirely visible on screen\n */\nclass ViewabilityHelper {\n _config: ViewabilityConfig;\n _hasInteracted: boolean = false;\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an error\n * found when Flow v0.63 was deployed. To see the error delete this comment\n * and run Flow. */\n _timers: Set = new Set();\n _viewableIndices: Array = [];\n _viewableItems: Map = new Map();\n\n constructor(\n config: ViewabilityConfig = {viewAreaCoveragePercentThreshold: 0},\n ) {\n this._config = config;\n }\n\n /**\n * Cleanup, e.g. on unmount. Clears any pending timers.\n */\n dispose() {\n this._timers.forEach(clearTimeout);\n }\n\n /**\n * Determines which items are viewable based on the current metrics and config.\n */\n computeViewableItems(\n itemCount: number,\n scrollOffset: number,\n viewportHeight: number,\n getFrameMetrics: (\n index: number,\n ) => ?{\n length: number,\n offset: number,\n ...\n },\n // Optional optimization to reduce the scan size\n renderRange?: {\n first: number,\n last: number,\n ...\n },\n ): Array {\n const {\n itemVisiblePercentThreshold,\n viewAreaCoveragePercentThreshold,\n } = this._config;\n const viewAreaMode = viewAreaCoveragePercentThreshold != null;\n const viewablePercentThreshold = viewAreaMode\n ? viewAreaCoveragePercentThreshold\n : itemVisiblePercentThreshold;\n invariant(\n viewablePercentThreshold != null &&\n (itemVisiblePercentThreshold != null) !==\n (viewAreaCoveragePercentThreshold != null),\n 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold',\n );\n const viewableIndices = [];\n if (itemCount === 0) {\n return viewableIndices;\n }\n let firstVisible = -1;\n const {first, last} = renderRange || {first: 0, last: itemCount - 1};\n if (last >= itemCount) {\n console.warn(\n 'Invalid render range computing viewability ' +\n JSON.stringify({renderRange, itemCount}),\n );\n return [];\n }\n for (let idx = first; idx <= last; idx++) {\n const metrics = getFrameMetrics(idx);\n if (!metrics) {\n continue;\n }\n const top = metrics.offset - scrollOffset;\n const bottom = top + metrics.length;\n if (top < viewportHeight && bottom > 0) {\n firstVisible = idx;\n if (\n _isViewable(\n viewAreaMode,\n viewablePercentThreshold,\n top,\n bottom,\n viewportHeight,\n metrics.length,\n )\n ) {\n viewableIndices.push(idx);\n }\n } else if (firstVisible >= 0) {\n break;\n }\n }\n return viewableIndices;\n }\n\n /**\n * Figures out which items are viewable and how that has changed from before and calls\n * `onViewableItemsChanged` as appropriate.\n */\n onUpdate(\n itemCount: number,\n scrollOffset: number,\n viewportHeight: number,\n getFrameMetrics: (\n index: number,\n ) => ?{\n length: number,\n offset: number,\n ...\n },\n createViewToken: (index: number, isViewable: boolean) => ViewToken,\n onViewableItemsChanged: ({\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n // Optional optimization to reduce the scan size\n renderRange?: {\n first: number,\n last: number,\n ...\n },\n ): void {\n if (\n (this._config.waitForInteraction && !this._hasInteracted) ||\n itemCount === 0 ||\n !getFrameMetrics(0)\n ) {\n return;\n }\n let viewableIndices = [];\n if (itemCount) {\n viewableIndices = this.computeViewableItems(\n itemCount,\n scrollOffset,\n viewportHeight,\n getFrameMetrics,\n renderRange,\n );\n }\n if (\n this._viewableIndices.length === viewableIndices.length &&\n this._viewableIndices.every((v, ii) => v === viewableIndices[ii])\n ) {\n // We might get a lot of scroll events where visibility doesn't change and we don't want to do\n // extra work in those cases.\n return;\n }\n this._viewableIndices = viewableIndices;\n if (this._config.minimumViewTime) {\n const handle = setTimeout(() => {\n this._timers.delete(handle);\n this._onUpdateSync(\n viewableIndices,\n onViewableItemsChanged,\n createViewToken,\n );\n }, this._config.minimumViewTime);\n this._timers.add(handle);\n } else {\n this._onUpdateSync(\n viewableIndices,\n onViewableItemsChanged,\n createViewToken,\n );\n }\n }\n\n /**\n * clean-up cached _viewableIndices to evaluate changed items on next update\n */\n resetViewableIndices() {\n this._viewableIndices = [];\n }\n\n /**\n * Records that an interaction has happened even if there has been no scroll.\n */\n recordInteraction() {\n this._hasInteracted = true;\n }\n\n _onUpdateSync(\n viewableIndicesToCheck,\n onViewableItemsChanged,\n createViewToken,\n ) {\n // Filter out indices that have gone out of view since this call was scheduled.\n viewableIndicesToCheck = viewableIndicesToCheck.filter(ii =>\n this._viewableIndices.includes(ii),\n );\n const prevItems = this._viewableItems;\n const nextItems = new Map(\n viewableIndicesToCheck.map(ii => {\n const viewable = createViewToken(ii, true);\n return [viewable.key, viewable];\n }),\n );\n\n const changed = [];\n for (const [key, viewable] of nextItems) {\n if (!prevItems.has(key)) {\n changed.push(viewable);\n }\n }\n for (const [key, viewable] of prevItems) {\n if (!nextItems.has(key)) {\n changed.push({...viewable, isViewable: false});\n }\n }\n if (changed.length > 0) {\n this._viewableItems = nextItems;\n onViewableItemsChanged({\n viewableItems: Array.from(nextItems.values()),\n changed,\n viewabilityConfig: this._config,\n });\n }\n }\n}\n\nfunction _isViewable(\n viewAreaMode: boolean,\n viewablePercentThreshold: number,\n top: number,\n bottom: number,\n viewportHeight: number,\n itemLength: number,\n): boolean {\n if (_isEntirelyVisible(top, bottom, viewportHeight)) {\n return true;\n } else {\n const pixels = _getPixelsVisible(top, bottom, viewportHeight);\n const percent =\n 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength);\n return percent >= viewablePercentThreshold;\n }\n}\n\nfunction _getPixelsVisible(\n top: number,\n bottom: number,\n viewportHeight: number,\n): number {\n const visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0);\n return Math.max(0, visibleHeight);\n}\n\nfunction _isEntirelyVisible(\n top: number,\n bottom: number,\n viewportHeight: number,\n): boolean {\n return top >= 0 && bottom <= viewportHeight && bottom > top;\n}\n\nmodule.exports = ViewabilityHelper;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst invariant = require('invariant');\n\n/**\n * Used to find the indices of the frames that overlap the given offsets. Useful for finding the\n * items that bound different windows of content, such as the visible area or the buffered overscan\n * area.\n */\nfunction elementsThatOverlapOffsets(\n offsets: Array,\n itemCount: number,\n getFrameMetrics: (\n index: number,\n ) => {\n length: number,\n offset: number,\n ...\n },\n): Array {\n const out = [];\n let outLength = 0;\n for (let ii = 0; ii < itemCount; ii++) {\n const frame = getFrameMetrics(ii);\n const trailingOffset = frame.offset + frame.length;\n for (let kk = 0; kk < offsets.length; kk++) {\n if (out[kk] == null && trailingOffset >= offsets[kk]) {\n out[kk] = ii;\n outLength++;\n if (kk === offsets.length - 1) {\n invariant(\n outLength === offsets.length,\n 'bad offsets input, should be in increasing order: %s',\n JSON.stringify(offsets),\n );\n return out;\n }\n }\n }\n }\n return out;\n}\n\n/**\n * Computes the number of elements in the `next` range that are new compared to the `prev` range.\n * Handy for calculating how many new items will be rendered when the render window changes so we\n * can restrict the number of new items render at once so that content can appear on the screen\n * faster.\n */\nfunction newRangeCount(\n prev: {\n first: number,\n last: number,\n ...\n },\n next: {\n first: number,\n last: number,\n ...\n },\n): number {\n return (\n next.last -\n next.first +\n 1 -\n Math.max(\n 0,\n 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first),\n )\n );\n}\n\n/**\n * Custom logic for determining which items should be rendered given the current frame and scroll\n * metrics, as well as the previous render state. The algorithm may evolve over time, but generally\n * prioritizes the visible area first, then expands that with overscan regions ahead and behind,\n * biased in the direction of scroll.\n */\nfunction computeWindowedRenderLimits(\n props: {\n data: any,\n getItemCount: (data: any) => number,\n maxToRenderPerBatch: number,\n windowSize: number,\n ...\n },\n prev: {\n first: number,\n last: number,\n ...\n },\n getFrameMetricsApprox: (\n index: number,\n ) => {\n length: number,\n offset: number,\n ...\n },\n scrollMetrics: {\n dt: number,\n offset: number,\n velocity: number,\n visibleLength: number,\n ...\n },\n): {\n first: number,\n last: number,\n ...\n} {\n const {data, getItemCount, maxToRenderPerBatch, windowSize} = props;\n const itemCount = getItemCount(data);\n if (itemCount === 0) {\n return prev;\n }\n const {offset, velocity, visibleLength} = scrollMetrics;\n\n // Start with visible area, then compute maximum overscan region by expanding from there, biased\n // in the direction of scroll. Total overscan area is capped, which should cap memory consumption\n // too.\n const visibleBegin = Math.max(0, offset);\n const visibleEnd = visibleBegin + visibleLength;\n const overscanLength = (windowSize - 1) * visibleLength;\n\n // Considering velocity seems to introduce more churn than it's worth.\n const leadFactor = 0.5; // Math.max(0, Math.min(1, velocity / 25 + 0.5));\n\n const fillPreference =\n velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none';\n\n const overscanBegin = Math.max(\n 0,\n visibleBegin - (1 - leadFactor) * overscanLength,\n );\n const overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);\n\n const lastItemOffset = getFrameMetricsApprox(itemCount - 1).offset;\n if (lastItemOffset < overscanBegin) {\n // Entire list is before our overscan window\n return {\n first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),\n last: itemCount - 1,\n };\n }\n\n // Find the indices that correspond to the items at the render boundaries we're targeting.\n let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(\n [overscanBegin, visibleBegin, visibleEnd, overscanEnd],\n props.getItemCount(props.data),\n getFrameMetricsApprox,\n );\n overscanFirst = overscanFirst == null ? 0 : overscanFirst;\n first = first == null ? Math.max(0, overscanFirst) : first;\n overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;\n last =\n last == null\n ? Math.min(overscanLast, first + maxToRenderPerBatch - 1)\n : last;\n const visible = {first, last};\n\n // We want to limit the number of new cells we're rendering per batch so that we can fill the\n // content on the screen quickly. If we rendered the entire overscan window at once, the user\n // could be staring at white space for a long time waiting for a bunch of offscreen content to\n // render.\n let newCellCount = newRangeCount(prev, visible);\n\n while (true) {\n if (first <= overscanFirst && last >= overscanLast) {\n // If we fill the entire overscan range, we're done.\n break;\n }\n const maxNewCells = newCellCount >= maxToRenderPerBatch;\n const firstWillAddMore = first <= prev.first || first > prev.last;\n const firstShouldIncrement =\n first > overscanFirst && (!maxNewCells || !firstWillAddMore);\n const lastWillAddMore = last >= prev.last || last < prev.first;\n const lastShouldIncrement =\n last < overscanLast && (!maxNewCells || !lastWillAddMore);\n if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {\n // We only want to stop if we've hit maxNewCells AND we cannot increment first or last\n // without rendering new items. This let's us preserve as many already rendered items as\n // possible, reducing render churn and keeping the rendered overscan range as large as\n // possible.\n break;\n }\n if (\n firstShouldIncrement &&\n !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)\n ) {\n if (firstWillAddMore) {\n newCellCount++;\n }\n first--;\n }\n if (\n lastShouldIncrement &&\n !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)\n ) {\n if (lastWillAddMore) {\n newCellCount++;\n }\n last++;\n }\n }\n if (\n !(\n last >= first &&\n first >= 0 &&\n last < itemCount &&\n first >= overscanFirst &&\n last <= overscanLast &&\n first <= visible.first &&\n last >= visible.last\n )\n ) {\n throw new Error(\n 'Bad window calculation ' +\n JSON.stringify({\n first,\n last,\n itemCount,\n overscanFirst,\n overscanLast,\n visible,\n }),\n );\n }\n return {first, last};\n}\n\nconst VirtualizeUtils = {\n computeWindowedRenderLimits,\n elementsThatOverlapOffsets,\n newRangeCount,\n};\n\nmodule.exports = VirtualizeUtils;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst Image = require('../../../Image/Image');\n\nconst createAnimatedComponent = require('../createAnimatedComponent');\n\nmodule.exports = (createAnimatedComponent(Image): $FlowFixMe);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedImageStylePropTypes = require('../DeprecatedPropTypes/DeprecatedImageStylePropTypes');\nconst DeprecatedStyleSheetPropType = require('../DeprecatedPropTypes/DeprecatedStyleSheetPropType');\nconst DeprecatedViewPropTypes = require('../DeprecatedPropTypes/DeprecatedViewPropTypes');\nconst ImageViewNativeComponent = require('./ImageViewNativeComponent');\nconst PropTypes = require('prop-types');\nconst React = require('react');\nconst ReactNative = require('../Renderer/shims/ReactNative'); // eslint-disable-line no-unused-vars\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst TextAncestor = require('../Text/TextAncestor');\n\nconst flattenStyle = require('../StyleSheet/flattenStyle');\nconst resolveAssetSource = require('./resolveAssetSource');\n\nimport NativeImageLoaderAndroid from './NativeImageLoaderAndroid';\n\nconst TextInlineImageNativeComponent = require('./TextInlineImageNativeComponent');\n\nimport type {ImageProps as ImagePropsType} from './ImageProps';\n\nlet _requestId = 1;\nfunction generateRequestId() {\n return _requestId++;\n}\n\nconst ImageProps = {\n ...DeprecatedViewPropTypes,\n style: (DeprecatedStyleSheetPropType(\n DeprecatedImageStylePropTypes,\n ): ReactPropsCheckType),\n /**\n * See https://facebook.github.io/react-native/docs/image.html#source\n */\n source: (PropTypes.oneOfType([\n PropTypes.shape({\n uri: PropTypes.string,\n headers: PropTypes.objectOf(PropTypes.string),\n }),\n // Opaque type returned by require('./image.jpg')\n PropTypes.number,\n // Multiple sources\n PropTypes.arrayOf(\n PropTypes.shape({\n uri: PropTypes.string,\n width: PropTypes.number,\n height: PropTypes.number,\n headers: PropTypes.objectOf(PropTypes.string),\n }),\n ),\n ]): React$PropType$Primitive<\n | {\n headers?: {[string]: string, ...},\n uri?: string,\n ...\n }\n | number\n | Array<{\n headers?: {[string]: string, ...},\n height?: number,\n uri?: string,\n width?: number,\n ...\n }>,\n >),\n /**\n * blurRadius: the blur radius of the blur filter added to the image\n *\n * See https://facebook.github.io/react-native/docs/image.html#blurradius\n */\n blurRadius: PropTypes.number,\n /**\n * See https://facebook.github.io/react-native/docs/image.html#defaultsource\n */\n defaultSource: PropTypes.number,\n /**\n * See https://facebook.github.io/react-native/docs/image.html#loadingindicatorsource\n */\n loadingIndicatorSource: (PropTypes.oneOfType([\n PropTypes.shape({\n uri: PropTypes.string,\n }),\n // Opaque type returned by require('./image.jpg')\n PropTypes.number,\n ]): React$PropType$Primitive<{uri?: string, ...} | number>),\n progressiveRenderingEnabled: PropTypes.bool,\n fadeDuration: PropTypes.number,\n /**\n * Invoked on load start\n */\n onLoadStart: PropTypes.func,\n /**\n * Invoked on load error\n */\n onError: PropTypes.func,\n /**\n * Invoked when load completes successfully\n */\n onLoad: PropTypes.func,\n /**\n * Invoked when load either succeeds or fails\n */\n onLoadEnd: PropTypes.func,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n /**\n * The mechanism that should be used to resize the image when the image's dimensions\n * differ from the image view's dimensions. Defaults to `auto`.\n *\n * See https://facebook.github.io/react-native/docs/image.html#resizemethod\n */\n resizeMethod: (PropTypes.oneOf([\n 'auto',\n 'resize',\n 'scale',\n ]): React$PropType$Primitive<'auto' | 'resize' | 'scale'>),\n /**\n * Determines how to resize the image when the frame doesn't match the raw\n * image dimensions.\n *\n * See https://facebook.github.io/react-native/docs/image.html#resizemode\n */\n resizeMode: (PropTypes.oneOf([\n 'cover',\n 'contain',\n 'stretch',\n 'repeat',\n 'center',\n ]): React$PropType$Primitive<\n 'cover' | 'contain' | 'stretch' | 'repeat' | 'center',\n >),\n};\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n *\n * See https://facebook.github.io/react-native/docs/image.html#getsize\n */\nfunction getSize(\n url: string,\n success: (width: number, height: number) => void,\n failure?: (error: any) => void,\n): any {\n return NativeImageLoaderAndroid.getSize(url)\n .then(function(sizes) {\n success(sizes.width, sizes.height);\n })\n .catch(\n failure ||\n function() {\n console.warn('Failed to get size for image: ' + url);\n },\n );\n}\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n * with the ability to provide the headers for the request\n *\n * See https://facebook.github.io/react-native/docs/image.html#getsizewithheaders\n */\nfunction getSizeWithHeaders(\n url: string,\n headers: {[string]: string, ...},\n success: (width: number, height: number) => void,\n failure?: (error: any) => void,\n): any {\n return NativeImageLoaderAndroid.getSizeWithHeaders(url, headers)\n .then(function(sizes) {\n success(sizes.width, sizes.height);\n })\n .catch(\n failure ||\n function() {\n console.warn('Failed to get size for image: ' + url);\n },\n );\n}\n\nfunction prefetch(url: string, callback: ?Function): any {\n const requestId = generateRequestId();\n callback && callback(requestId);\n return NativeImageLoaderAndroid.prefetchImage(url, requestId);\n}\n\nfunction abortPrefetch(requestId: number) {\n NativeImageLoaderAndroid.abortRequest(requestId);\n}\n\n/**\n * Perform cache interrogation.\n *\n * See https://facebook.github.io/react-native/docs/image.html#querycache\n */\nasync function queryCache(\n urls: Array,\n): Promise<{[string]: 'memory' | 'disk' | 'disk/memory', ...}> {\n return await NativeImageLoaderAndroid.queryCache(urls);\n}\n\ntype ImageComponentStatics = $ReadOnly<{|\n getSize: typeof getSize,\n getSizeWithHeaders: typeof getSizeWithHeaders,\n prefetch: typeof prefetch,\n abortPrefetch: typeof abortPrefetch,\n queryCache: typeof queryCache,\n resolveAssetSource: typeof resolveAssetSource,\n propTypes: typeof ImageProps,\n|}>;\n\n/**\n * A React component for displaying different types of images,\n * including network images, static resources, temporary local images, and\n * images from local disk, such as the camera roll.\n *\n * See https://facebook.github.io/react-native/docs/image.html\n */\nlet Image = (props: ImagePropsType, forwardedRef) => {\n let source = resolveAssetSource(props.source);\n const defaultSource = resolveAssetSource(props.defaultSource);\n const loadingIndicatorSource = resolveAssetSource(\n props.loadingIndicatorSource,\n );\n\n if (source && source.uri === '') {\n console.warn('source.uri should not be an empty string');\n }\n\n if (props.src) {\n console.warn(\n 'The component requires a `source` property rather than `src`.',\n );\n }\n\n if (props.children) {\n throw new Error(\n 'The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.',\n );\n }\n\n if (props.defaultSource && props.loadingIndicatorSource) {\n throw new Error(\n 'The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.',\n );\n }\n\n if (source && !source.uri && !Array.isArray(source)) {\n source = null;\n }\n\n let style;\n let sources;\n if (source?.uri != null) {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n const {width, height} = source;\n style = flattenStyle([{width, height}, styles.base, props.style]);\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n sources = [{uri: source.uri}];\n } else {\n style = flattenStyle([styles.base, props.style]);\n sources = source;\n }\n\n const {onLoadStart, onLoad, onLoadEnd, onError} = props;\n const nativeProps = {\n ...props,\n style,\n shouldNotifyLoadEvents: !!(onLoadStart || onLoad || onLoadEnd || onError),\n src: sources,\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n headers: source?.headers,\n defaultSrc: defaultSource ? defaultSource.uri : null,\n loadingIndicatorSrc: loadingIndicatorSource\n ? loadingIndicatorSource.uri\n : null,\n ref: forwardedRef,\n };\n\n return (\n \n {hasTextAncestor =>\n hasTextAncestor ? (\n \n ) : (\n \n )\n }\n \n );\n};\n\nImage = React.forwardRef<\n ImagePropsType,\n | React.ElementRef\n | React.ElementRef,\n>(Image);\n\nImage.displayName = 'Image';\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n *\n * See https://facebook.github.io/react-native/docs/image.html#getsize\n */\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.getSize = getSize;\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n * with the ability to provide the headers for the request\n *\n * See https://facebook.github.io/react-native/docs/image.html#getsizewithheaders\n */\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.getSizeWithHeaders = getSizeWithHeaders;\n\n/**\n * Prefetches a remote image for later use by downloading it to the disk\n * cache\n *\n * See https://facebook.github.io/react-native/docs/image.html#prefetch\n */\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.prefetch = prefetch;\n\n/**\n * Abort prefetch request.\n *\n * See https://facebook.github.io/react-native/docs/image.html#abortprefetch\n */\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.abortPrefetch = abortPrefetch;\n\n/**\n * Perform cache interrogation.\n *\n * See https://facebook.github.io/react-native/docs/image.html#querycache\n */\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.queryCache = queryCache;\n\n/**\n * Resolves an asset reference into an object.\n *\n * See https://facebook.github.io/react-native/docs/image.html#resolveassetsource\n */\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.resolveAssetSource = resolveAssetSource;\n\n/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete this\n * comment and run Flow. */\nImage.propTypes = ImageProps;\n\nconst styles = StyleSheet.create({\n base: {\n overflow: 'hidden',\n },\n});\n\nmodule.exports = ((Image: any): React.AbstractComponent<\n ImagePropsType,\n | React.ElementRef\n | React.ElementRef,\n> &\n ImageComponentStatics);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +abortRequest: (requestId: number) => void;\n +getConstants: () => {||};\n +getSize: (\n uri: string,\n ) => Promise<\n $ReadOnly<{\n width: number,\n height: number,\n ...\n }>,\n >;\n +getSizeWithHeaders: (\n uri: string,\n headers: Object,\n ) => Promise<{\n width: number,\n height: number,\n ...\n }>;\n +prefetchImage: (uri: string, requestId: number) => Promise;\n +queryCache: (uris: Array) => Promise;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('ImageLoader'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst DeprecatedEdgeInsetsPropType = require('./DeprecatedEdgeInsetsPropType');\nconst DeprecatedStyleSheetPropType = require('./DeprecatedStyleSheetPropType');\nconst DeprecatedViewStylePropTypes = require('./DeprecatedViewStylePropTypes');\nconst PropTypes = require('prop-types');\n\nconst {DeprecatedAccessibilityRoles} = require('./DeprecatedViewAccessibility');\n\nconst stylePropType: ReactPropsCheckType = DeprecatedStyleSheetPropType(\n DeprecatedViewStylePropTypes,\n);\n\nmodule.exports = {\n /**\n * When `true`, indicates that the view is an accessibility element.\n * By default, all the touchable elements are accessible.\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessible\n */\n accessible: PropTypes.bool,\n\n /**\n * Overrides the text that's read by the screen reader when the user interacts\n * with the element. By default, the label is constructed by traversing all\n * the children and accumulating all the `Text` nodes separated by space.\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilitylabel\n */\n accessibilityLabel: PropTypes.node,\n\n /**\n * An accessibility hint helps users understand what will happen when they perform\n * an action on the accessibility element when that result is not obvious from the\n * accessibility label.\n *\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityHint\n */\n accessibilityHint: PropTypes.string,\n\n /**\n * Provides an array of custom actions available for accessibility.\n *\n * @platform ios\n */\n accessibilityActions: (PropTypes.arrayOf(\n PropTypes.string,\n ): React$PropType$Primitive>),\n\n /**\n * Prevents view from being inverted if set to true and color inversion is turned on.\n *\n * @platform ios\n */\n accessibilityIgnoresInvertColors: PropTypes.bool,\n\n /**\n * Indicates to accessibility services to treat UI component like a specific role.\n */\n accessibilityRole: (PropTypes.oneOf(\n DeprecatedAccessibilityRoles,\n ): React$PropType$Primitive<\n | 'none'\n | 'button'\n | 'link'\n | 'search'\n | 'image'\n | 'keyboardkey'\n | 'text'\n | 'adjustable'\n | 'imagebutton'\n | 'header'\n | 'summary'\n | 'alert'\n | 'checkbox'\n | 'combobox'\n | 'menu'\n | 'menubar'\n | 'menuitem'\n | 'progressbar'\n | 'radio'\n | 'radiogroup'\n | 'scrollbar'\n | 'spinbutton'\n | 'switch'\n | 'tab'\n | 'tablist'\n | 'timer'\n | 'toolbar',\n >),\n\n accessibilityState: PropTypes.object,\n accessibilityValue: PropTypes.object,\n /**\n * Indicates to accessibility services whether the user should be notified\n * when this view changes. Works for Android API >= 19 only.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityliveregion\n */\n accessibilityLiveRegion: (PropTypes.oneOf([\n 'none',\n 'polite',\n 'assertive',\n ]): React$PropType$Primitive<'none' | 'polite' | 'assertive'>),\n\n /**\n * Controls how view is important for accessibility which is if it\n * fires accessibility events and if it is reported to accessibility services\n * that query the screen. Works for Android only.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#importantforaccessibility\n */\n importantForAccessibility: (PropTypes.oneOf([\n 'auto',\n 'yes',\n 'no',\n 'no-hide-descendants',\n ]): React$PropType$Primitive<'auto' | 'yes' | 'no' | 'no-hide-descendants'>),\n\n /**\n * A value indicating whether VoiceOver should ignore the elements\n * within views that are siblings of the receiver.\n * Default is `false`.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityviewismodal\n */\n accessibilityViewIsModal: PropTypes.bool,\n\n /**\n * A value indicating whether the accessibility elements contained within\n * this accessibility element are hidden.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityElementsHidden\n */\n accessibilityElementsHidden: PropTypes.bool,\n\n /**\n * When `accessible` is true, the system will try to invoke this function\n * when the user performs an accessibility custom action.\n *\n * @platform ios\n */\n onAccessibilityAction: PropTypes.func,\n\n /**\n * When `accessible` is true, the system will try to invoke this function\n * when the user performs accessibility tap gesture.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onaccessibilitytap\n */\n onAccessibilityTap: PropTypes.func,\n\n /**\n * When `accessible` is `true`, the system will invoke this function when the\n * user performs the magic tap gesture.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onmagictap\n */\n onMagicTap: PropTypes.func,\n\n /**\n * Used to locate this view in end-to-end tests.\n *\n * > This disables the 'layout-only view removal' optimization for this view!\n *\n * See http://facebook.github.io/react-native/docs/view.html#testid\n */\n testID: PropTypes.string,\n\n /**\n * Used to locate this view from native classes.\n *\n * > This disables the 'layout-only view removal' optimization for this view!\n *\n * See http://facebook.github.io/react-native/docs/view.html#nativeid\n */\n nativeID: PropTypes.string,\n\n /**\n * For most touch interactions, you'll simply want to wrap your component in\n * `TouchableHighlight` or `TouchableOpacity`. Check out `Touchable.js`,\n * `ScrollResponder.js` and `ResponderEventPlugin.js` for more discussion.\n */\n\n /**\n * The View is now responding for touch events. This is the time to highlight\n * and show the user what is happening.\n *\n * `View.props.onResponderGrant: (event) => {}`, where `event` is a synthetic\n * touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onrespondergrant\n */\n onResponderGrant: PropTypes.func,\n\n /**\n * The user is moving their finger.\n *\n * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic\n * touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onrespondermove\n */\n onResponderMove: PropTypes.func,\n\n /**\n * Another responder is already active and will not release it to that `View`\n * asking to be the responder.\n *\n * `View.props.onResponderReject: (event) => {}`, where `event` is a\n * synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderreject\n */\n onResponderReject: PropTypes.func,\n\n /**\n * Fired at the end of the touch.\n *\n * `View.props.onResponderRelease: (event) => {}`, where `event` is a\n * synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderrelease\n */\n onResponderRelease: PropTypes.func,\n\n /**\n * The responder has been taken from the `View`. Might be taken by other\n * views after a call to `onResponderTerminationRequest`, or might be taken\n * by the OS without asking (e.g., happens with control center/ notification\n * center on iOS)\n *\n * `View.props.onResponderTerminate: (event) => {}`, where `event` is a\n * synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderterminate\n */\n onResponderTerminate: PropTypes.func,\n\n /**\n * Some other `View` wants to become responder and is asking this `View` to\n * release its responder. Returning `true` allows its release.\n *\n * `View.props.onResponderTerminationRequest: (event) => {}`, where `event`\n * is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderterminationrequest\n */\n onResponderTerminationRequest: PropTypes.func,\n\n /**\n * Does this view want to become responder on the start of a touch?\n *\n * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where\n * `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onstartshouldsetresponder\n */\n onStartShouldSetResponder: PropTypes.func,\n\n /**\n * If a parent `View` wants to prevent a child `View` from becoming responder\n * on a touch start, it should have this handler which returns `true`.\n *\n * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`,\n * where `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onstartshouldsetrespondercapture\n */\n onStartShouldSetResponderCapture: PropTypes.func,\n\n /**\n * Does this view want to \"claim\" touch responsiveness? This is called for\n * every touch move on the `View` when it is not the responder.\n *\n * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where\n * `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onmoveshouldsetresponder\n */\n onMoveShouldSetResponder: PropTypes.func,\n\n /**\n * If a parent `View` wants to prevent a child `View` from becoming responder\n * on a move, it should have this handler which returns `true`.\n *\n * `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`,\n * where `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onMoveShouldsetrespondercapture\n */\n onMoveShouldSetResponderCapture: PropTypes.func,\n\n /**\n * This defines how far a touch event can start away from the view.\n * Typical interface guidelines recommend touch targets that are at least\n * 30 - 40 points/density-independent pixels.\n *\n * > The touch area never extends past the parent view bounds and the Z-index\n * > of sibling views always takes precedence if a touch hits two overlapping\n * > views.\n *\n * See http://facebook.github.io/react-native/docs/view.html#hitslop\n */\n hitSlop: DeprecatedEdgeInsetsPropType,\n\n /**\n * Invoked on mount and layout changes with:\n *\n * `{nativeEvent: { layout: {x, y, width, height}}}`\n *\n * This event is fired immediately once the layout has been calculated, but\n * the new layout may not yet be reflected on the screen at the time the\n * event is received, especially if a layout animation is in progress.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onlayout\n */\n onLayout: PropTypes.func,\n\n /**\n * Controls whether the `View` can be the target of touch events.\n *\n * See http://facebook.github.io/react-native/docs/view.html#pointerevents\n */\n pointerEvents: (PropTypes.oneOf([\n 'box-none',\n 'none',\n 'box-only',\n 'auto',\n ]): React$PropType$Primitive<'box-none' | 'none' | 'box-only' | 'auto'>),\n\n /**\n * See http://facebook.github.io/react-native/docs/style.html\n */\n style: stylePropType,\n\n /**\n * This is a special performance property exposed by `RCTView` and is useful\n * for scrolling content when there are many subviews, most of which are\n * offscreen. For this property to be effective, it must be applied to a\n * view that contains many subviews that extend outside its bound. The\n * subviews must also have `overflow: hidden`, as should the containing view\n * (or one of its superviews).\n *\n * See http://facebook.github.io/react-native/docs/view.html#removeclippedsubviews\n */\n removeClippedSubviews: PropTypes.bool,\n\n /**\n * Whether this `View` should render itself (and all of its children) into a\n * single hardware texture on the GPU.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#rendertohardwaretextureandroid\n */\n renderToHardwareTextureAndroid: PropTypes.bool,\n\n /**\n * Whether this `View` should be rendered as a bitmap before compositing.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#shouldrasterizeios\n */\n shouldRasterizeIOS: PropTypes.bool,\n\n /**\n * Views that are only used to layout their children or otherwise don't draw\n * anything may be automatically removed from the native hierarchy as an\n * optimization. Set this property to `false` to disable this optimization and\n * ensure that this `View` exists in the native view hierarchy.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#collapsable\n */\n collapsable: PropTypes.bool,\n\n /**\n * Whether this `View` needs to rendered offscreen and composited with an\n * alpha in order to preserve 100% correct colors and blending behavior.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#needsoffscreenalphacompositing\n */\n needsOffscreenAlphaCompositing: PropTypes.bool,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nmodule.exports = {\n // This must be kept in sync with the AccessibilityRolesMask in RCTViewManager.m\n DeprecatedAccessibilityRoles: [\n 'none',\n 'button',\n 'link',\n 'search',\n 'image',\n 'keyboardkey',\n 'text',\n 'adjustable',\n 'imagebutton',\n 'header',\n 'summary',\n 'alert',\n 'checkbox',\n 'combobox',\n 'menu',\n 'menubar',\n 'menuitem',\n 'progressbar',\n 'radio',\n 'radiogroup',\n 'scrollbar',\n 'spinbutton',\n 'switch',\n 'tab',\n 'tablist',\n 'timer',\n 'toolbar',\n ],\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst requireNativeComponent = require('../ReactNative/requireNativeComponent');\n\nimport codegenNativeComponent from '../Utilities/codegenNativeComponent';\n\nimport type {DangerouslyImpreciseStyle} from '../StyleSheet/StyleSheet';\nimport type {ResolvedAssetSource} from './AssetSourceResolver';\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\nimport type {ImageProps} from './ImageProps';\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\nimport type {ImageStyleProp} from '../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../StyleSheet/StyleSheetTypes';\n\ntype NativeProps = $ReadOnly<{|\n ...ImageProps,\n ...ViewProps,\n\n style?: ImageStyleProp | DangerouslyImpreciseStyle,\n\n // iOS native props\n tintColor?: ColorValue,\n\n // Android native props\n shouldNotifyLoadEvents?: boolean,\n src?: ?ResolvedAssetSource | $ReadOnlyArray<{uri: string, ...}>,\n headers?: ?string,\n defaultSrc?: ?string,\n loadingIndicatorSrc?: ?string,\n|}>;\n\nlet ImageViewNativeComponent;\n\nif (global.RN$Bridgeless) {\n ImageViewNativeComponent = codegenNativeComponent(\n 'RCTImageView',\n );\n} else {\n ImageViewNativeComponent = requireNativeComponent(\n 'RCTImageView',\n );\n}\n\nmodule.exports = (ImageViewNativeComponent: HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst requireNativeComponent = require('../ReactNative/requireNativeComponent');\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\n\nconst TextInlineImage: HostComponent = requireNativeComponent(\n 'RCTTextInlineImage',\n);\n\nmodule.exports = TextInlineImage;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nconst ScrollView = require('../../../Components/ScrollView/ScrollView');\n\nconst createAnimatedComponent = require('../createAnimatedComponent');\n\n/**\n * @see https://github.com/facebook/react-native/commit/b8c8562\n */\nconst ScrollViewWithEventThrottle = React.forwardRef((props, ref) => (\n \n));\n\nmodule.exports = (createAnimatedComponent(\n ScrollViewWithEventThrottle,\n): $FlowFixMe);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nconst SectionList = require('../../../Lists/SectionList');\n\nconst createAnimatedComponent = require('../createAnimatedComponent');\n\n/**\n * @see https://github.com/facebook/react-native/commit/b8c8562\n */\nconst SectionListWithEventThrottle = React.forwardRef((props, ref) => (\n \n));\n\nmodule.exports = (createAnimatedComponent(\n SectionListWithEventThrottle,\n): $FlowFixMe);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Platform = require('../Utilities/Platform');\nconst React = require('react');\nconst VirtualizedSectionList = require('./VirtualizedSectionList');\n\nimport type {ScrollResponderType} from '../Components/ScrollView/ScrollView';\nimport type {\n SectionBase as _SectionBase,\n Props as VirtualizedSectionListProps,\n ScrollToLocationParamsType,\n} from './VirtualizedSectionList';\n\ntype Item = any;\n\nexport type SectionBase = _SectionBase;\n\ntype RequiredProps> = {|\n /**\n * The actual data to render, akin to the `data` prop in [``](/react-native/docs/flatlist.html).\n *\n * General shape:\n *\n * sections: $ReadOnlyArray<{\n * data: $ReadOnlyArray,\n * renderItem?: ({item: SectionItem, ...}) => ?React.Element<*>,\n * ItemSeparatorComponent?: ?ReactClass<{highlighted: boolean, ...}>,\n * }>\n */\n sections: $ReadOnlyArray,\n|};\n\ntype OptionalProps> = {|\n /**\n * Default renderer for every item in every section. Can be over-ridden on a per-section basis.\n */\n renderItem?: (info: {\n item: Item,\n index: number,\n section: SectionT,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n },\n ...\n }) => null | React.Element,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender: number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n /**\n * Used to extract a unique key for a given item at the specified index. Key is used for caching\n * and as the react key to track item re-ordering. The default extractor checks item.key, then\n * falls back to using the index, like react does. Note that this sets keys for each item, but\n * each overall section still needs its own key.\n */\n keyExtractor: (item: Item, index: number) => string,\n /**\n * Called once when the scroll position gets within `onEndReachedThreshold` of the rendered\n * content.\n */\n onEndReached?: ?(info: {distanceFromEnd: number, ...}) => void,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n|};\n\nexport type Props = {|\n ...$Diff<\n VirtualizedSectionListProps,\n {\n getItem: $PropertyType, 'getItem'>,\n getItemCount: $PropertyType<\n VirtualizedSectionListProps,\n 'getItemCount',\n >,\n renderItem: $PropertyType<\n VirtualizedSectionListProps,\n 'renderItem',\n >,\n ...\n },\n >,\n ...RequiredProps,\n ...OptionalProps,\n|};\n\nconst defaultProps = {\n ...VirtualizedSectionList.defaultProps,\n stickySectionHeadersEnabled: Platform.OS === 'ios',\n};\n\ntype DefaultProps = typeof defaultProps;\n\n/**\n * A performant interface for rendering sectioned lists, supporting the most handy features:\n *\n * - Fully cross-platform.\n * - Configurable viewability callbacks.\n * - List header support.\n * - List footer support.\n * - Item separator support.\n * - Section header support.\n * - Section separator support.\n * - Heterogeneous data and item rendering support.\n * - Pull to Refresh.\n * - Scroll loading.\n *\n * If you don't need section support and want a simpler interface, use\n * [``](/react-native/docs/flatlist.html).\n *\n * Simple Examples:\n *\n * }\n * renderSectionHeader={({section}) =>
}\n * sections={[ // homogeneous rendering between sections\n * {data: [...], title: ...},\n * {data: [...], title: ...},\n * {data: [...], title: ...},\n * ]}\n * />\n *\n * \n *\n * This is a convenience wrapper around [``](docs/virtualizedlist.html),\n * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed\n * here, along with the following caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate and momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n */\nclass SectionList> extends React.PureComponent<\n Props,\n void,\n> {\n props: Props;\n static defaultProps: DefaultProps = defaultProps;\n\n /**\n * Scrolls to the item at the specified `sectionIndex` and `itemIndex` (within the section)\n * positioned in the viewable area such that `viewPosition` 0 places it at the top (and may be\n * covered by a sticky header), 1 at the bottom, and 0.5 centered in the middle. `viewOffset` is a\n * fixed number of pixels to offset the final target position, e.g. to compensate for sticky\n * headers.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToLocation(params: ScrollToLocationParamsType) {\n if (this._wrapperListRef != null) {\n this._wrapperListRef.scrollToLocation(params);\n }\n }\n\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n listRef && listRef.recordInteraction();\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n listRef && listRef.flashScrollIndicators();\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder(): ?ScrollResponderType {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n return listRef.getScrollResponder();\n }\n }\n\n getScrollableNode(): any {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n return listRef.getScrollableNode();\n }\n }\n\n setNativeProps(props: Object) {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n listRef.setNativeProps(props);\n }\n }\n\n render(): React.Node {\n return (\n items.length}\n getItem={(items, index) => items[index]}\n />\n );\n }\n\n _wrapperListRef: ?React.ElementRef;\n _captureRef = ref => {\n /* $FlowFixMe(>=0.99.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.99 was deployed. To see the error, delete this\n * comment and run Flow. */\n this._wrapperListRef = ref;\n };\n}\n\nmodule.exports = SectionList;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst View = require('../Components/View/View');\nconst VirtualizedList = require('./VirtualizedList');\n\nconst invariant = require('invariant');\n\nimport type {ViewToken} from './ViewabilityHelper';\n\ntype Item = any;\n\nexport type SectionBase = {\n /**\n * The data for rendering items in this section.\n */\n data: $ReadOnlyArray,\n /**\n * Optional key to keep track of section re-ordering. If you don't plan on re-ordering sections,\n * the array index will be used by default.\n */\n key?: string,\n // Optional props will override list-wide props just for this section.\n renderItem?: ?(info: {\n item: SectionItemT,\n index: number,\n section: SectionBase,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n },\n ...\n }) => null | React.Element,\n ItemSeparatorComponent?: ?React.ComponentType,\n keyExtractor?: (item: SectionItemT, index?: ?number) => string,\n ...\n};\n\ntype RequiredProps> = {|\n sections: $ReadOnlyArray,\n|};\n\ntype OptionalProps> = {|\n /**\n * Default renderer for every item in every section.\n */\n renderItem?: (info: {\n item: Item,\n index: number,\n section: SectionT,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n },\n ...\n }) => null | React.Element,\n /**\n * Rendered at the top of each section. These stick to the top of the `ScrollView` by default on\n * iOS. See `stickySectionHeadersEnabled`.\n */\n renderSectionHeader?: ?(info: {\n section: SectionT,\n ...\n }) => null | React.Element,\n /**\n * Rendered at the bottom of each section.\n */\n renderSectionFooter?: ?(info: {\n section: SectionT,\n ...\n }) => null | React.Element,\n /**\n * Rendered at the top and bottom of each section (note this is different from\n * `ItemSeparatorComponent` which is only rendered between items). These are intended to separate\n * sections from the headers above and below and typically have the same highlight response as\n * `ItemSeparatorComponent`. Also receives `highlighted`, `[leading/trailing][Item/Separator]`,\n * and any custom props from `separators.updateProps`.\n */\n SectionSeparatorComponent?: ?React.ComponentType,\n /**\n * Makes section headers stick to the top of the screen until the next one pushes it off. Only\n * enabled by default on iOS because that is the platform standard there.\n */\n stickySectionHeadersEnabled?: boolean,\n onEndReached?: ?({distanceFromEnd: number, ...}) => void,\n|};\n\ntype VirtualizedListProps = React.ElementProps;\n\nexport type Props = {|\n ...RequiredProps,\n ...OptionalProps,\n ...$Diff<\n VirtualizedListProps,\n {renderItem: $PropertyType, ...},\n >,\n|};\nexport type ScrollToLocationParamsType = {|\n animated?: ?boolean,\n itemIndex: number,\n sectionIndex: number,\n viewOffset?: number,\n viewPosition?: number,\n|};\n\ntype DefaultProps = {|\n ...typeof VirtualizedList.defaultProps,\n data: $ReadOnlyArray,\n|};\n\ntype State = {childProps: VirtualizedListProps, ...};\n\n/**\n * Right now this just flattens everything into one list and uses VirtualizedList under the\n * hood. The only operation that might not scale well is concatting the data arrays of all the\n * sections when new props are received, which should be plenty fast for up to ~10,000 items.\n */\nclass VirtualizedSectionList<\n SectionT: SectionBase,\n> extends React.PureComponent, State> {\n static defaultProps: DefaultProps = {\n ...VirtualizedList.defaultProps,\n data: [],\n };\n\n scrollToLocation(params: ScrollToLocationParamsType) {\n let index = params.itemIndex;\n for (let i = 0; i < params.sectionIndex; i++) {\n index += this.props.getItemCount(this.props.sections[i].data) + 2;\n }\n let viewOffset = params.viewOffset || 0;\n if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) {\n // $FlowFixMe Cannot access private property\n const frame = this._listRef._getFrameMetricsApprox(\n index - params.itemIndex,\n );\n viewOffset += frame.length;\n }\n const toIndexParams = {\n ...params,\n viewOffset,\n index,\n };\n this._listRef.scrollToIndex(toIndexParams);\n }\n\n getListRef(): VirtualizedList {\n return this._listRef;\n }\n\n constructor(props: Props, context: Object) {\n super(props, context);\n this.state = this._computeState(props);\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: Props) {\n this.setState(this._computeState(nextProps));\n }\n\n _computeState(props: Props): State {\n const offset = props.ListHeaderComponent ? 1 : 0;\n const stickyHeaderIndices = [];\n const itemCount = props.sections\n ? props.sections.reduce((v, section) => {\n stickyHeaderIndices.push(v + offset);\n return v + props.getItemCount(section.data) + 2; // Add two for the section header and footer.\n }, 0)\n : 0;\n\n const {\n SectionSeparatorComponent,\n renderItem,\n renderSectionFooter,\n renderSectionHeader,\n sections: _sections,\n stickySectionHeadersEnabled,\n ...restProps\n } = props;\n\n return {\n childProps: {\n ...restProps,\n renderItem: this._renderItem,\n ItemSeparatorComponent: undefined, // Rendered with renderItem\n data: props.sections,\n getItemCount: () => itemCount,\n // $FlowFixMe\n getItem: (sections, index) => this._getItem(props, sections, index),\n keyExtractor: this._keyExtractor,\n onViewableItemsChanged: props.onViewableItemsChanged\n ? this._onViewableItemsChanged\n : undefined,\n stickyHeaderIndices: props.stickySectionHeadersEnabled\n ? stickyHeaderIndices\n : undefined,\n },\n };\n }\n\n render(): React.Node {\n return (\n \n );\n }\n\n _getItem = (\n props: Props,\n sections: ?$ReadOnlyArray,\n index: number,\n ): ?Item => {\n if (!sections) {\n return null;\n }\n let itemIdx = index - 1;\n for (let i = 0; i < sections.length; i++) {\n const section = sections[i];\n const sectionData = section.data;\n const itemCount = props.getItemCount(sectionData);\n if (itemIdx === -1 || itemIdx === itemCount) {\n // We intend for there to be overflow by one on both ends of the list.\n // This will be for headers and footers. When returning a header or footer\n // item the section itself is the item.\n return section;\n } else if (itemIdx < itemCount) {\n // If we are in the bounds of the list's data then return the item.\n return props.getItem(sectionData, itemIdx);\n } else {\n itemIdx -= itemCount + 2; // Add two for the header and footer\n }\n }\n return null;\n };\n\n _keyExtractor = (item: Item, index: number) => {\n const info = this._subExtractor(index);\n return (info && info.key) || String(index);\n };\n\n _subExtractor(\n index: number,\n ): ?{\n section: SectionT,\n // Key of the section or combined key for section + item\n key: string,\n // Relative index within the section\n index: ?number,\n // True if this is the section header\n header?: ?boolean,\n leadingItem?: ?Item,\n leadingSection?: ?SectionT,\n trailingItem?: ?Item,\n trailingSection?: ?SectionT,\n ...\n } {\n let itemIndex = index;\n const {getItem, getItemCount, keyExtractor, sections} = this.props;\n for (let i = 0; i < sections.length; i++) {\n const section = sections[i];\n const sectionData = section.data;\n const key = section.key || String(i);\n itemIndex -= 1; // The section adds an item for the header\n if (itemIndex >= getItemCount(sectionData) + 1) {\n itemIndex -= getItemCount(sectionData) + 1; // The section adds an item for the footer.\n } else if (itemIndex === -1) {\n return {\n section,\n key: key + ':header',\n index: null,\n header: true,\n trailingSection: sections[i + 1],\n };\n } else if (itemIndex === getItemCount(sectionData)) {\n return {\n section,\n key: key + ':footer',\n index: null,\n header: false,\n trailingSection: sections[i + 1],\n };\n } else {\n const extractor = section.keyExtractor || keyExtractor;\n return {\n section,\n key:\n key + ':' + extractor(getItem(sectionData, itemIndex), itemIndex),\n index: itemIndex,\n leadingItem: getItem(sectionData, itemIndex - 1),\n leadingSection: sections[i - 1],\n trailingItem: getItem(sectionData, itemIndex + 1),\n trailingSection: sections[i + 1],\n };\n }\n }\n }\n\n _convertViewable = (viewable: ViewToken): ?ViewToken => {\n invariant(viewable.index != null, 'Received a broken ViewToken');\n const info = this._subExtractor(viewable.index);\n if (!info) {\n return null;\n }\n const keyExtractor = info.section.keyExtractor || this.props.keyExtractor;\n return {\n ...viewable,\n index: info.index,\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n key: keyExtractor(viewable.item, info.index),\n section: info.section,\n };\n };\n\n _onViewableItemsChanged = ({\n viewableItems,\n changed,\n }: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => {\n const onViewableItemsChanged = this.props.onViewableItemsChanged;\n if (onViewableItemsChanged != null) {\n onViewableItemsChanged({\n viewableItems: viewableItems\n .map(this._convertViewable, this)\n .filter(Boolean),\n changed: changed.map(this._convertViewable, this).filter(Boolean),\n });\n }\n };\n\n _renderItem = ({item, index}: {item: Item, index: number, ...}) => {\n const info = this._subExtractor(index);\n if (!info) {\n return null;\n }\n const infoIndex = info.index;\n if (infoIndex == null) {\n const {section} = info;\n if (info.header === true) {\n const {renderSectionHeader} = this.props;\n return renderSectionHeader ? renderSectionHeader({section}) : null;\n } else {\n const {renderSectionFooter} = this.props;\n return renderSectionFooter ? renderSectionFooter({section}) : null;\n }\n } else {\n const renderItem = info.section.renderItem || this.props.renderItem;\n const SeparatorComponent = this._getSeparatorComponent(index, info);\n invariant(renderItem, 'no renderItem!');\n return (\n {\n this._cellRefs[info.key] = ref;\n }}\n renderItem={renderItem}\n section={info.section}\n trailingItem={info.trailingItem}\n trailingSection={info.trailingSection}\n inverted={!!this.props.inverted}\n />\n );\n }\n };\n\n _onUpdateSeparator = (key: string, newProps: Object) => {\n const ref = this._cellRefs[key];\n ref && ref.updateSeparatorProps(newProps);\n };\n\n _getSeparatorComponent(\n index: number,\n info?: ?Object,\n ): ?React.ComponentType {\n info = info || this._subExtractor(index);\n if (!info) {\n return null;\n }\n const ItemSeparatorComponent =\n info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent;\n const {SectionSeparatorComponent} = this.props;\n const isLastItemInList = index === this.state.childProps.getItemCount() - 1;\n const isLastItemInSection =\n info.index === this.props.getItemCount(info.section.data) - 1;\n if (SectionSeparatorComponent && isLastItemInSection) {\n return SectionSeparatorComponent;\n }\n if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) {\n return ItemSeparatorComponent;\n }\n return null;\n }\n\n _cellRefs = {};\n _listRef: VirtualizedList;\n _captureRef = ref => {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._listRef = ref;\n };\n}\n\ntype ItemWithSeparatorCommonProps = $ReadOnly<{|\n leadingItem: ?Item,\n leadingSection: ?Object,\n section: Object,\n trailingItem: ?Item,\n trailingSection: ?Object,\n|}>;\n\ntype ItemWithSeparatorProps = $ReadOnly<{|\n ...ItemWithSeparatorCommonProps,\n LeadingSeparatorComponent: ?React.ComponentType,\n SeparatorComponent: ?React.ComponentType,\n cellKey: string,\n index: number,\n item: Item,\n onUpdateSeparator: (cellKey: string, newProps: Object) => void,\n prevCellKey?: ?string,\n renderItem: Function,\n inverted: boolean,\n|}>;\n\ntype ItemWithSeparatorState = {\n separatorProps: $ReadOnly<{|\n highlighted: false,\n ...ItemWithSeparatorCommonProps,\n |}>,\n leadingSeparatorProps: $ReadOnly<{|\n highlighted: false,\n ...ItemWithSeparatorCommonProps,\n |}>,\n ...\n};\n\nclass ItemWithSeparator extends React.Component<\n ItemWithSeparatorProps,\n ItemWithSeparatorState,\n> {\n state = {\n separatorProps: {\n highlighted: false,\n leadingItem: this.props.item,\n leadingSection: this.props.leadingSection,\n section: this.props.section,\n trailingItem: this.props.trailingItem,\n trailingSection: this.props.trailingSection,\n },\n leadingSeparatorProps: {\n highlighted: false,\n leadingItem: this.props.leadingItem,\n leadingSection: this.props.leadingSection,\n section: this.props.section,\n trailingItem: this.props.item,\n trailingSection: this.props.trailingSection,\n },\n };\n\n _separators = {\n highlight: () => {\n ['leading', 'trailing'].forEach(s =>\n this._separators.updateProps(s, {highlighted: true}),\n );\n },\n unhighlight: () => {\n ['leading', 'trailing'].forEach(s =>\n this._separators.updateProps(s, {highlighted: false}),\n );\n },\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => {\n const {LeadingSeparatorComponent, cellKey, prevCellKey} = this.props;\n if (select === 'leading' && LeadingSeparatorComponent != null) {\n this.setState(state => ({\n leadingSeparatorProps: {...state.leadingSeparatorProps, ...newProps},\n }));\n } else {\n this.props.onUpdateSeparator(\n (select === 'leading' && prevCellKey) || cellKey,\n newProps,\n );\n }\n },\n };\n\n static getDerivedStateFromProps(\n props: ItemWithSeparatorProps,\n prevState: ItemWithSeparatorState,\n ): ?ItemWithSeparatorState {\n return {\n separatorProps: {\n ...prevState.separatorProps,\n leadingItem: props.item,\n leadingSection: props.leadingSection,\n section: props.section,\n trailingItem: props.trailingItem,\n trailingSection: props.trailingSection,\n },\n leadingSeparatorProps: {\n ...prevState.leadingSeparatorProps,\n leadingItem: props.leadingItem,\n leadingSection: props.leadingSection,\n section: props.section,\n trailingItem: props.item,\n trailingSection: props.trailingSection,\n },\n };\n }\n\n updateSeparatorProps(newProps: Object) {\n this.setState(state => ({\n separatorProps: {...state.separatorProps, ...newProps},\n }));\n }\n\n render() {\n const {\n LeadingSeparatorComponent,\n SeparatorComponent,\n item,\n index,\n section,\n inverted,\n } = this.props;\n const element = this.props.renderItem({\n item,\n index,\n section,\n separators: this._separators,\n });\n const leadingSeparator = LeadingSeparatorComponent && (\n \n );\n const separator = SeparatorComponent && (\n \n );\n return leadingSeparator || separator ? (\n /* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.89 was deployed. To see the error, delete\n * this comment and run Flow. */\n \n {!inverted ? leadingSeparator : separator}\n {element}\n {!inverted ? separator : leadingSeparator}\n \n ) : (\n element\n );\n }\n}\n\nmodule.exports = VirtualizedSectionList;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst Text = require('../../../Text/Text');\n\nconst createAnimatedComponent = require('../createAnimatedComponent');\n\nmodule.exports = (createAnimatedComponent(Text): $FlowFixMe);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst View = require('../../../Components/View/View');\n\nconst createAnimatedComponent = require('../createAnimatedComponent');\n\nconst React = require('react');\n\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nmodule.exports = (createAnimatedComponent(View): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst processColor = require('../../StyleSheet/processColor');\n\nconst nullthrows = require('nullthrows');\nconst setAndForwardRef = require('../../Utilities/setAndForwardRef');\n\nimport AndroidCheckBoxNativeComponent from './AndroidCheckBoxNativeComponent';\n\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {SyntheticEvent} from '../../Types/CoreEventTypes';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\n\ntype CheckBoxEvent = SyntheticEvent<\n $ReadOnly<{|\n target: number,\n value: boolean,\n |}>,\n>;\n\ntype CommonProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Used in case the props change removes the component.\n */\n onChange?: ?(event: CheckBoxEvent) => mixed,\n\n /**\n * Invoked with the new value when the value changes.\n */\n onValueChange?: ?(value: boolean) => mixed,\n\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID?: ?string,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...CommonProps,\n\n /**\n * The value of the checkbox. If true the checkbox will be turned on.\n * Default value is false.\n */\n value?: ?boolean,\n\n /**\n * If true the user won't be able to toggle the checkbox.\n * Default value is false.\n */\n disabled?: ?boolean,\n\n /**\n * Used to get the ref for the native checkbox\n */\n forwardedRef?: ?React.Ref,\n\n /**\n * Controls the colors the checkbox has in checked and unchecked states.\n */\n tintColors?: {|true?: ?ColorValue, false?: ?ColorValue|},\n|}>;\n\n/**\n * Renders a boolean input (Android only).\n *\n * This is a controlled component that requires an `onValueChange` callback that\n * updates the `value` prop in order for the component to reflect user actions.\n * If the `value` prop is not updated, the component will continue to render\n * the supplied `value` prop instead of the expected result of any user actions.\n *\n * ```\n * import React from 'react';\n * import { AppRegistry, StyleSheet, Text, View, CheckBox } from 'react-native';\n *\n * export default class App extends React.Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * checked: false\n * }\n * }\n *\n * toggle() {\n * this.setState(({checked}) => {\n * return {\n * checked: !checked\n * };\n * });\n * }\n *\n * render() {\n * const {checked} = this.state;\n * return (\n * \n * Checked\n * \n * \n * );\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * flexDirection: 'row',\n * alignItems: 'center',\n * justifyContent: 'center',\n * },\n * });\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('App', () => App);\n * ```\n *\n * @keyword checkbox\n * @keyword toggle\n */\nclass CheckBox extends React.Component {\n _nativeRef: ?React.ElementRef = null;\n _setNativeRef = setAndForwardRef({\n getForwardedRef: () => this.props.forwardedRef,\n setLocalRef: ref => {\n this._nativeRef = ref;\n },\n });\n\n _onChange = (event: CheckBoxEvent) => {\n const value = this.props.value ?? false;\n nullthrows(this._nativeRef).setNativeProps({value: value});\n // Change the props after the native props are set in case the props\n // change removes the component\n this.props.onChange && this.props.onChange(event);\n this.props.onValueChange &&\n this.props.onValueChange(event.nativeEvent.value);\n };\n\n _getTintColors(tintColors) {\n return tintColors\n ? {\n true: processColor(tintColors.true),\n false: processColor(tintColors.false),\n }\n : undefined;\n }\n\n render() {\n const {\n disabled: _,\n value: __,\n tintColors,\n style,\n forwardedRef,\n ...props\n } = this.props;\n const disabled = this.props.disabled ?? false;\n const value = this.props.value ?? false;\n\n const nativeProps = {\n ...props,\n onStartShouldSetResponder: () => true,\n onResponderTerminationRequest: () => false,\n enabled: !disabled,\n on: value,\n tintColors: this._getTintColors(tintColors),\n style: [styles.rctCheckBox, style],\n };\n return (\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n rctCheckBox: {\n height: 32,\n width: 32,\n },\n});\n\ntype CheckBoxType = React.AbstractComponent<\n Props,\n React.ElementRef,\n>;\n\nconst CheckBoxWithRef = React.forwardRef<\n Props,\n React.ElementRef,\n>(function CheckBoxWithRef(props, ref) {\n return ;\n});\n\nmodule.exports = (CheckBoxWithRef: CheckBoxType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\n\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {SyntheticEvent} from '../../Types/CoreEventTypes';\n\ntype CheckBoxEvent = SyntheticEvent<\n $ReadOnly<{|\n target: number,\n value: boolean,\n |}>,\n>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Used in case the props change removes the component.\n */\n onChange?: ?(event: CheckBoxEvent) => mixed,\n\n /**\n * Invoked with the new value when the value changes.\n */\n onValueChange?: ?(value: boolean) => mixed,\n\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID?: ?string,\n\n on?: ?boolean,\n enabled?: boolean,\n tintColors: {|true: ?number, false: ?number|} | typeof undefined,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeValue: (\n viewRef: React.ElementRef,\n value: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeValue'],\n});\n\nexport default (requireNativeComponent(\n 'AndroidCheckBox',\n): NativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst Text = require('../../Text/Text');\nconst View = require('../View/View');\n\nclass DummyDatePickerIOS extends React.Component {\n render() {\n return (\n \n \n DatePickerIOS is not supported on this platform!\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n dummyDatePickerIOS: {\n height: 100,\n width: 300,\n backgroundColor: '#ffbcbc',\n borderWidth: 1,\n borderColor: 'red',\n alignItems: 'center',\n justifyContent: 'center',\n margin: 10,\n },\n datePickerText: {\n color: '#333333',\n margin: 20,\n },\n});\n\nmodule.exports = DummyDatePickerIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst StatusBar = require('../StatusBar/StatusBar');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst View = require('../View/View');\n\nconst dismissKeyboard = require('../../Utilities/dismissKeyboard');\nconst nullthrows = require('nullthrows');\n\nimport AndroidDrawerLayoutNativeComponent, {\n Commands,\n} from './AndroidDrawerLayoutNativeComponent';\n\nconst DRAWER_STATES = ['Idle', 'Dragging', 'Settling'];\n\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {DirectEventHandler} from '../../Types/CodegenTypes';\nimport type {\n MeasureOnSuccessCallback,\n MeasureInWindowOnSuccessCallback,\n MeasureLayoutOnSuccessCallback,\n} from '../../Renderer/shims/ReactNativeTypes';\n\ntype DrawerStates = 'Idle' | 'Dragging' | 'Settling';\n\ntype DrawerSlideEvent = $ReadOnly<{|\n offset: number,\n|}>;\n\ntype Props = $ReadOnly<{|\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n * - 'none' (the default), drags do not dismiss the keyboard.\n * - 'on-drag', the keyboard is dismissed when a drag begins.\n */\n keyboardDismissMode?: ?('none' | 'on-drag'),\n\n /**\n * Specifies the background color of the drawer. The default value is white.\n * If you want to set the opacity of the drawer, use rgba. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ```\n */\n drawerBackgroundColor: ColorValue,\n\n /**\n * Specifies the side of the screen from which the drawer will slide in.\n */\n drawerPosition: ?('left' | 'right'),\n\n /**\n * Specifies the width of the drawer, more precisely the width of the view that be pulled in\n * from the edge of the window.\n */\n drawerWidth?: ?number,\n\n /**\n * Specifies the lock mode of the drawer. The drawer can be locked in 3 states:\n * - unlocked (default), meaning that the drawer will respond (open/close) to touch gestures.\n * - locked-closed, meaning that the drawer will stay closed and not respond to gestures.\n * - locked-open, meaning that the drawer will stay opened and not respond to gestures.\n * The drawer may still be opened and closed programmatically (`openDrawer`/`closeDrawer`).\n */\n drawerLockMode?: ?('unlocked' | 'locked-closed' | 'locked-open'),\n\n /**\n * Function called whenever there is an interaction with the navigation view.\n */\n onDrawerSlide?: ?DirectEventHandler,\n\n /**\n * Function called when the drawer state has changed. The drawer can be in 3 states:\n * - Idle, meaning there is no interaction with the navigation view happening at the time\n * - Dragging, meaning there is currently an interaction with the navigation view\n * - Settling, meaning that there was an interaction with the navigation view, and the\n * navigation view is now finishing its closing or opening animation\n */\n onDrawerStateChanged?: ?(state: DrawerStates) => mixed,\n\n /**\n * Function called whenever the navigation view has been opened.\n */\n onDrawerOpen?: ?() => mixed,\n\n /**\n * Function called whenever the navigation view has been closed.\n */\n onDrawerClose?: ?() => mixed,\n\n /**\n * The navigation view that will be rendered to the side of the screen and can be pulled in.\n */\n renderNavigationView: () => React.Element,\n\n /**\n * Make the drawer take the entire screen and draw the background of the\n * status bar to allow it to open over the status bar. It will only have an\n * effect on API 21+.\n */\n statusBarBackgroundColor?: ?ColorValue,\n\n children?: React.Node,\n style?: ?ViewStyleProp,\n|}>;\n\ntype State = {|\n statusBarBackgroundColor: ColorValue,\n|};\n\n/**\n * React component that wraps the platform `DrawerLayout` (Android only). The\n * Drawer (typically used for navigation) is rendered with `renderNavigationView`\n * and direct children are the main view (where your content goes). The navigation\n * view is initially not visible on the screen, but can be pulled in from the\n * side of the window specified by the `drawerPosition` prop and its width can\n * be set by the `drawerWidth` prop.\n *\n * Example:\n *\n * ```\n * render: function() {\n * var navigationView = (\n * \n * I'm in the Drawer!\n * \n * );\n * return (\n * navigationView}>\n * \n * Hello\n * World!\n * \n * \n * );\n * },\n * ```\n */\nclass DrawerLayoutAndroid extends React.Component {\n static get positions(): mixed {\n console.warn(\n 'Setting DrawerLayoutAndroid drawerPosition using `DrawerLayoutAndroid.positions` is deprecated. Instead pass the string value \"left\" or \"right\"',\n );\n\n return {Left: 'left', Right: 'right'};\n }\n static defaultProps: {|\n drawerBackgroundColor: 'white',\n |} = {\n drawerBackgroundColor: 'white',\n };\n\n _nativeRef = React.createRef<\n React.ElementRef,\n >();\n\n state: State = {statusBarBackgroundColor: null};\n\n render(): React.Node {\n const {\n onDrawerStateChanged,\n renderNavigationView,\n onDrawerOpen,\n onDrawerClose,\n ...props\n } = this.props;\n const drawStatusBar =\n Platform.Version >= 21 && this.props.statusBarBackgroundColor;\n const drawerViewWrapper = (\n \n {renderNavigationView()}\n {drawStatusBar && }\n \n );\n const childrenWrapper = (\n \n {drawStatusBar && (\n \n )}\n {drawStatusBar && (\n \n )}\n {this.props.children}\n \n );\n return (\n \n {childrenWrapper}\n {drawerViewWrapper}\n \n );\n }\n\n _onDrawerSlide = event => {\n if (this.props.onDrawerSlide) {\n this.props.onDrawerSlide(event);\n }\n if (this.props.keyboardDismissMode === 'on-drag') {\n dismissKeyboard();\n }\n };\n\n _onDrawerOpen = () => {\n if (this.props.onDrawerOpen) {\n this.props.onDrawerOpen();\n }\n };\n\n _onDrawerClose = () => {\n if (this.props.onDrawerClose) {\n this.props.onDrawerClose();\n }\n };\n\n _onDrawerStateChanged = event => {\n if (this.props.onDrawerStateChanged) {\n this.props.onDrawerStateChanged(\n DRAWER_STATES[event.nativeEvent.drawerState],\n );\n }\n };\n\n /**\n * Opens the drawer.\n */\n openDrawer() {\n Commands.openDrawer(nullthrows(this._nativeRef.current));\n }\n\n /**\n * Closes the drawer.\n */\n closeDrawer() {\n Commands.closeDrawer(nullthrows(this._nativeRef.current));\n }\n\n /**\n * Closing and opening example\n * Note: To access the drawer you have to give it a ref\n *\n * Class component:\n *\n * render () {\n * this.openDrawer = () => {\n * this.refs.DRAWER.openDrawer()\n * }\n * this.closeDrawer = () => {\n * this.refs.DRAWER.closeDrawer()\n * }\n * return (\n * \n * {children}\n * \n * )\n * }\n *\n * Function component:\n *\n * const drawerRef = useRef()\n * const openDrawer = () => {\n * drawerRef.current.openDrawer()\n * }\n * const closeDrawer = () => {\n * drawerRef.current.closeDrawer()\n * }\n * return (\n * \n * {children}\n * \n * )\n */\n\n /**\n * Native methods\n */\n blur() {\n nullthrows(this._nativeRef.current).blur();\n }\n\n focus() {\n nullthrows(this._nativeRef.current).focus();\n }\n\n measure(callback: MeasureOnSuccessCallback) {\n nullthrows(this._nativeRef.current).measure(callback);\n }\n\n measureInWindow(callback: MeasureInWindowOnSuccessCallback) {\n nullthrows(this._nativeRef.current).measureInWindow(callback);\n }\n\n measureLayout(\n relativeToNativeNode: number,\n onSuccess: MeasureLayoutOnSuccessCallback,\n onFail?: () => void,\n ) {\n nullthrows(this._nativeRef.current).measureLayout(\n relativeToNativeNode,\n onSuccess,\n onFail,\n );\n }\n\n setNativeProps(nativeProps: Object) {\n nullthrows(this._nativeRef.current).setNativeProps(nativeProps);\n }\n}\n\nconst styles = StyleSheet.create({\n base: {\n flex: 1,\n elevation: 16,\n },\n mainSubview: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n drawerSubview: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n },\n statusBar: {\n height: StatusBar.currentHeight,\n },\n drawerStatusBar: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n height: StatusBar.currentHeight,\n backgroundColor: 'rgba(0, 0, 0, 0.251)',\n },\n});\n\nmodule.exports = DrawerLayoutAndroid;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';\nimport type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';\nimport type {\n WithDefault,\n DirectEventHandler,\n Int32,\n Float,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';\nimport * as React from 'react';\n\ntype DrawerStateEvent = $ReadOnly<{|\n drawerState: Int32,\n|}>;\n\ntype DrawerSlideEvent = $ReadOnly<{|\n offset: Float,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n * - 'none' (the default), drags do not dismiss the keyboard.\n * - 'on-drag', the keyboard is dismissed when a drag begins.\n */\n keyboardDismissMode?: WithDefault<'none' | 'on-drag', 'none'>,\n\n /**\n * Specifies the background color of the drawer. The default value is white.\n * If you want to set the opacity of the drawer, use rgba. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ```\n */\n drawerBackgroundColor: ColorValue,\n\n /**\n * Specifies the side of the screen from which the drawer will slide in.\n */\n drawerPosition?: WithDefault<'left' | 'right', 'left'>,\n\n /**\n * Specifies the width of the drawer, more precisely the width of the view that be pulled in\n * from the edge of the window.\n */\n\n drawerWidth?: WithDefault,\n\n /**\n * Specifies the lock mode of the drawer. The drawer can be locked in 3 states:\n * - unlocked (default), meaning that the drawer will respond (open/close) to touch gestures.\n * - locked-closed, meaning that the drawer will stay closed and not respond to gestures.\n * - locked-open, meaning that the drawer will stay opened and not respond to gestures.\n * The drawer may still be opened and closed programmatically (`openDrawer`/`closeDrawer`).\n */\n drawerLockMode?: WithDefault<\n 'unlocked' | 'locked-closed' | 'locked-open',\n 'unlocked',\n >,\n\n /**\n * Function called whenever there is an interaction with the navigation view.\n */\n onDrawerSlide?: ?DirectEventHandler,\n\n /**\n * Function called when the drawer state has changed. The drawer can be in 3 states:\n * - Idle, meaning there is no interaction with the navigation view happening at the time\n * - Dragging, meaning there is currently an interaction with the navigation view\n * - Settling, meaning that there was an interaction with the navigation view, and the\n * navigation view is now finishing its closing or opening animation\n */\n onDrawerStateChanged?: ?DirectEventHandler,\n\n /**\n * Function called whenever the navigation view has been opened.\n */\n onDrawerOpen?: ?DirectEventHandler,\n\n /**\n * Function called whenever the navigation view has been closed.\n */\n onDrawerClose?: ?DirectEventHandler,\n\n /**\n * Make the drawer take the entire screen and draw the background of the\n * status bar to allow it to open over the status bar. It will only have an\n * effect on API 21+.\n */\n statusBarBackgroundColor?: ?ColorValue,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +openDrawer: (viewRef: React.ElementRef) => void;\n +closeDrawer: (viewRef: React.ElementRef) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['openDrawer', 'closeDrawer'],\n});\n\nexport default (codegenNativeComponent(\n 'AndroidDrawerLayout',\n): NativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\n\nconst processColor = require('../../StyleSheet/processColor');\n\nimport NativeStatusBarManagerAndroid from './NativeStatusBarManagerAndroid';\nimport NativeStatusBarManagerIOS from './NativeStatusBarManagerIOS';\n\n/**\n * Status bar style\n */\nexport type StatusBarStyle = $Keys<{\n /**\n * Default status bar style (dark for iOS, light for Android)\n */\n default: string,\n /**\n * Dark background, white texts and icons\n */\n 'light-content': string,\n /**\n * Light background, dark texts and icons\n */\n 'dark-content': string,\n ...\n}>;\n\n/**\n * Status bar animation\n */\nexport type StatusBarAnimation = $Keys<{\n /**\n * No animation\n */\n none: string,\n /**\n * Fade animation\n */\n fade: string,\n /**\n * Slide animation\n */\n slide: string,\n ...\n}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * The background color of the status bar.\n * @platform android\n */\n backgroundColor?: ?string,\n /**\n * If the status bar is translucent.\n * When translucent is set to true, the app will draw under the status bar.\n * This is useful when using a semi transparent status bar color.\n *\n * @platform android\n */\n translucent?: ?boolean,\n|}>;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * If the network activity indicator should be visible.\n *\n * @platform ios\n */\n networkActivityIndicatorVisible?: ?boolean,\n /**\n * The transition effect when showing and hiding the status bar using the `hidden`\n * prop. Defaults to 'fade'.\n *\n * @platform ios\n */\n showHideTransition?: ?('fade' | 'slide'),\n|}>;\n\ntype Props = $ReadOnly<{|\n ...AndroidProps,\n ...IOSProps,\n /**\n * If the status bar is hidden.\n */\n hidden?: ?boolean,\n /**\n * If the transition between status bar property changes should be animated.\n * Supported for backgroundColor, barStyle and hidden.\n */\n animated?: ?boolean,\n /**\n * Sets the color of the status bar text.\n */\n barStyle?: ?('default' | 'light-content' | 'dark-content'),\n|}>;\n\n/**\n * Merges the prop stack with the default values.\n */\nfunction mergePropsStack(\n propsStack: Array,\n defaultValues: Object,\n): Object {\n return propsStack.reduce((prev, cur) => {\n for (const prop in cur) {\n if (cur[prop] != null) {\n prev[prop] = cur[prop];\n }\n }\n return prev;\n }, Object.assign({}, defaultValues));\n}\n\n/**\n * Returns an object to insert in the props stack from the props\n * and the transition/animation info.\n */\nfunction createStackEntry(props: any): any {\n return {\n backgroundColor:\n props.backgroundColor != null\n ? {\n value: props.backgroundColor,\n animated: props.animated,\n }\n : null,\n barStyle:\n props.barStyle != null\n ? {\n value: props.barStyle,\n animated: props.animated,\n }\n : null,\n translucent: props.translucent,\n hidden:\n props.hidden != null\n ? {\n value: props.hidden,\n animated: props.animated,\n transition: props.showHideTransition,\n }\n : null,\n networkActivityIndicatorVisible: props.networkActivityIndicatorVisible,\n };\n}\n\n/**\n * Component to control the app status bar.\n *\n * ### Usage with Navigator\n *\n * It is possible to have multiple `StatusBar` components mounted at the same\n * time. The props will be merged in the order the `StatusBar` components were\n * mounted. One use case is to specify status bar styles per route using `Navigator`.\n *\n * ```\n * \n * \n * \n * \n * \n * }\n * />\n * \n * ```\n *\n * ### Imperative API\n *\n * For cases where using a component is not ideal, there are static methods\n * to manipulate the `StatusBar` display stack. These methods have the same\n * behavior as mounting and unmounting a `StatusBar` component.\n *\n * For example, you can call `StatusBar.pushStackEntry` to update the status bar\n * before launching a third-party native UI component, and then call\n * `StatusBar.popStackEntry` when completed.\n *\n * ```\n * const openThirdPartyBugReporter = async () => {\n * // The bug reporter has a dark background, so we push a new status bar style.\n * const stackEntry = StatusBar.pushStackEntry({barStyle: 'light-content'});\n *\n * // `open` returns a promise that resolves when the UI is dismissed.\n * await BugReporter.open();\n *\n * // Don't forget to call `popStackEntry` when you're done.\n * StatusBar.popStackEntry(stackEntry);\n * };\n * ```\n *\n * There is a legacy imperative API that enables you to manually update the\n * status bar styles. However, the legacy API does not update the internal\n * `StatusBar` display stack, which means that any changes will be overridden\n * whenever a `StatusBar` component is mounted or unmounted.\n *\n * It is strongly advised that you use `pushStackEntry`, `popStackEntry`, or\n * `replaceStackEntry` instead of the static methods beginning with `set`.\n *\n * ### Constants\n *\n * `currentHeight` (Android only) The height of the status bar.\n */\nclass StatusBar extends React.Component {\n static _propsStack = [];\n\n static _defaultProps = createStackEntry({\n animated: false,\n showHideTransition: 'fade',\n backgroundColor:\n Platform.OS === 'android'\n ? NativeStatusBarManagerAndroid.getConstants()\n .DEFAULT_BACKGROUND_COLOR ?? 'black'\n : 'black',\n barStyle: 'default',\n translucent: false,\n hidden: false,\n networkActivityIndicatorVisible: false,\n });\n\n // Timer for updating the native module values at the end of the frame.\n static _updateImmediate = null;\n\n // The current merged values from the props stack.\n static _currentValues = null;\n\n // TODO(janic): Provide a real API to deal with status bar height. See the\n // discussion in #6195.\n /**\n * The current height of the status bar on the device.\n *\n * @platform android\n */\n static currentHeight: ?number =\n Platform.OS === 'android'\n ? NativeStatusBarManagerAndroid.getConstants().HEIGHT\n : null;\n\n // Provide an imperative API as static functions of the component.\n // See the corresponding prop for more detail.\n\n /**\n * Show or hide the status bar\n * @param hidden Hide the status bar.\n * @param animation Optional animation when\n * changing the status bar hidden property.\n */\n static setHidden(hidden: boolean, animation?: StatusBarAnimation) {\n animation = animation || 'none';\n StatusBar._defaultProps.hidden.value = hidden;\n if (Platform.OS === 'ios') {\n NativeStatusBarManagerIOS.setHidden(hidden, animation);\n } else if (Platform.OS === 'android') {\n NativeStatusBarManagerAndroid.setHidden(hidden);\n }\n }\n\n /**\n * Set the status bar style\n * @param style Status bar style to set\n * @param animated Animate the style change.\n */\n static setBarStyle(style: StatusBarStyle, animated?: boolean) {\n animated = animated || false;\n StatusBar._defaultProps.barStyle.value = style;\n if (Platform.OS === 'ios') {\n NativeStatusBarManagerIOS.setStyle(style, animated);\n } else if (Platform.OS === 'android') {\n NativeStatusBarManagerAndroid.setStyle(style);\n }\n }\n\n /**\n * Control the visibility of the network activity indicator\n * @param visible Show the indicator.\n */\n static setNetworkActivityIndicatorVisible(visible: boolean) {\n if (Platform.OS !== 'ios') {\n console.warn(\n '`setNetworkActivityIndicatorVisible` is only available on iOS',\n );\n return;\n }\n StatusBar._defaultProps.networkActivityIndicatorVisible = visible;\n NativeStatusBarManagerIOS.setNetworkActivityIndicatorVisible(visible);\n }\n\n /**\n * Set the background color for the status bar\n * @param color Background color.\n * @param animated Animate the style change.\n */\n static setBackgroundColor(color: string, animated?: boolean) {\n if (Platform.OS !== 'android') {\n console.warn('`setBackgroundColor` is only available on Android');\n return;\n }\n animated = animated || false;\n StatusBar._defaultProps.backgroundColor.value = color;\n\n const processedColor = processColor(color);\n if (processedColor == null) {\n console.warn(\n `\\`StatusBar.setBackgroundColor\\`: Color ${color} parsed to null or undefined`,\n );\n return;\n }\n\n NativeStatusBarManagerAndroid.setColor(processedColor, animated);\n }\n\n /**\n * Control the translucency of the status bar\n * @param translucent Set as translucent.\n */\n static setTranslucent(translucent: boolean) {\n if (Platform.OS !== 'android') {\n console.warn('`setTranslucent` is only available on Android');\n return;\n }\n StatusBar._defaultProps.translucent = translucent;\n NativeStatusBarManagerAndroid.setTranslucent(translucent);\n }\n\n /**\n * Push a StatusBar entry onto the stack.\n * The return value should be passed to `popStackEntry` when complete.\n *\n * @param props Object containing the StatusBar props to use in the stack entry.\n */\n static pushStackEntry(props: any): any {\n const entry = createStackEntry(props);\n StatusBar._propsStack.push(entry);\n StatusBar._updatePropsStack();\n return entry;\n }\n\n /**\n * Pop a StatusBar entry from the stack.\n *\n * @param entry Entry returned from `pushStackEntry`.\n */\n static popStackEntry(entry: any) {\n const index = StatusBar._propsStack.indexOf(entry);\n if (index !== -1) {\n StatusBar._propsStack.splice(index, 1);\n }\n StatusBar._updatePropsStack();\n }\n\n /**\n * Replace an existing StatusBar stack entry with new props.\n *\n * @param entry Entry returned from `pushStackEntry` to replace.\n * @param props Object containing the StatusBar props to use in the replacement stack entry.\n */\n static replaceStackEntry(entry: any, props: any): any {\n const newEntry = createStackEntry(props);\n const index = StatusBar._propsStack.indexOf(entry);\n if (index !== -1) {\n StatusBar._propsStack[index] = newEntry;\n }\n StatusBar._updatePropsStack();\n return newEntry;\n }\n\n static defaultProps: {|\n animated: boolean,\n showHideTransition: $TEMPORARY$string<'fade'>,\n |} = {\n animated: false,\n showHideTransition: 'fade',\n };\n\n _stackEntry = null;\n\n componentDidMount() {\n // Every time a StatusBar component is mounted, we push it's prop to a stack\n // and always update the native status bar with the props from the top of then\n // stack. This allows having multiple StatusBar components and the one that is\n // added last or is deeper in the view hierarchy will have priority.\n this._stackEntry = StatusBar.pushStackEntry(this.props);\n }\n\n componentWillUnmount() {\n // When a StatusBar is unmounted, remove itself from the stack and update\n // the native bar with the next props.\n StatusBar.popStackEntry(this._stackEntry);\n }\n\n componentDidUpdate() {\n this._stackEntry = StatusBar.replaceStackEntry(\n this._stackEntry,\n this.props,\n );\n }\n\n /**\n * Updates the native status bar with the props from the stack.\n */\n static _updatePropsStack = () => {\n // Send the update to the native module only once at the end of the frame.\n clearImmediate(StatusBar._updateImmediate);\n StatusBar._updateImmediate = setImmediate(() => {\n const oldProps = StatusBar._currentValues;\n const mergedProps = mergePropsStack(\n StatusBar._propsStack,\n StatusBar._defaultProps,\n );\n\n // Update the props that have changed using the merged values from the props stack.\n if (Platform.OS === 'ios') {\n if (\n !oldProps ||\n oldProps.barStyle.value !== mergedProps.barStyle.value\n ) {\n NativeStatusBarManagerIOS.setStyle(\n mergedProps.barStyle.value,\n mergedProps.barStyle.animated || false,\n );\n }\n if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {\n NativeStatusBarManagerIOS.setHidden(\n mergedProps.hidden.value,\n mergedProps.hidden.animated\n ? mergedProps.hidden.transition\n : 'none',\n );\n }\n\n if (\n !oldProps ||\n oldProps.networkActivityIndicatorVisible !==\n mergedProps.networkActivityIndicatorVisible\n ) {\n NativeStatusBarManagerIOS.setNetworkActivityIndicatorVisible(\n mergedProps.networkActivityIndicatorVisible,\n );\n }\n } else if (Platform.OS === 'android') {\n if (\n !oldProps ||\n oldProps.barStyle.value !== mergedProps.barStyle.value\n ) {\n NativeStatusBarManagerAndroid.setStyle(mergedProps.barStyle.value);\n }\n if (\n !oldProps ||\n oldProps.backgroundColor.value !== mergedProps.backgroundColor.value\n ) {\n const processedColor = processColor(\n mergedProps.backgroundColor.value,\n );\n if (processedColor == null) {\n console.warn(\n `\\`StatusBar._updatePropsStack\\`: Color ${\n mergedProps.backgroundColor.value\n } parsed to null or undefined`,\n );\n } else {\n NativeStatusBarManagerAndroid.setColor(\n processedColor,\n mergedProps.backgroundColor.animated,\n );\n }\n }\n if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {\n NativeStatusBarManagerAndroid.setHidden(mergedProps.hidden.value);\n }\n if (!oldProps || oldProps.translucent !== mergedProps.translucent) {\n NativeStatusBarManagerAndroid.setTranslucent(mergedProps.translucent);\n }\n }\n // Update the current prop values.\n StatusBar._currentValues = mergedProps;\n });\n };\n\n render(): React.Node {\n return null;\n }\n}\n\nmodule.exports = StatusBar;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n +HEIGHT: number,\n +DEFAULT_BACKGROUND_COLOR: number,\n |};\n +setColor: (color: number, animated: boolean) => void;\n +setTranslucent: (translucent: boolean) => void;\n\n /**\n * - statusBarStyles can be:\n * - 'default'\n * - 'dark-content'\n */\n +setStyle: (statusBarStyle?: ?string) => void;\n +setHidden: (hidden: boolean) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing(\n 'StatusBarManager',\n): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n +HEIGHT: number,\n +DEFAULT_BACKGROUND_COLOR?: number,\n |};\n\n // TODO(T47754272) Can we remove this method?\n +getHeight: (callback: (result: {|height: number|}) => void) => void;\n +setNetworkActivityIndicatorVisible: (visible: boolean) => void;\n +addListener: (eventType: string) => void;\n +removeListeners: (count: number) => void;\n\n /**\n * - statusBarStyles can be:\n * - 'default'\n * - 'dark-content'\n * - 'light-content'\n */\n +setStyle: (statusBarStyle?: ?string, animated: boolean) => void;\n /**\n * - withAnimation can be: 'none' | 'fade' | 'slide'\n */\n +setHidden: (hidden: boolean, withAnimation: string) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing(\n 'StatusBarManager',\n): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Image = require('./Image');\nconst React = require('react');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst View = require('../Components/View/View');\n\n/**\n * Very simple drop-in replacement for which supports nesting views.\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, View, ImageBackground, Text } from 'react-native';\n *\n * class DisplayAnImageBackground extends Component {\n * render() {\n * return (\n * \n * React\n * \n * );\n * }\n * }\n *\n * // App registration and rendering\n * AppRegistry.registerComponent('DisplayAnImageBackground', () => DisplayAnImageBackground);\n * ```\n */\nclass ImageBackground extends React.Component<$FlowFixMeProps> {\n setNativeProps(props: Object) {\n // Work-around flow\n const viewRef = this._viewRef;\n if (viewRef) {\n viewRef.setNativeProps(props);\n }\n }\n\n _viewRef: ?React.ElementRef = null;\n\n _captureRef = ref => {\n this._viewRef = ref;\n };\n\n render(): React.Node {\n const {children, style, imageStyle, imageRef, ...props} = this.props;\n\n return (\n \n overwrites width and height styles\n // (which is not quite correct), and these styles conflict with explicitly set styles\n // of and with our internal layout model here.\n // So, we have to proxy/reapply these styles explicitly for actual component.\n // This workaround should be removed after implementing proper support of\n // intrinsic content size of the .\n width: style.width,\n height: style.height,\n },\n imageStyle,\n ]}\n ref={imageRef}\n />\n {children}\n \n );\n }\n}\n\nmodule.exports = ImageBackground;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('../../DeprecatedPropTypes/DeprecatedColorPropType');\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\n\nimport RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent';\n\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\n\n/**\n * Note: iOS only\n *\n * A component which enables customization of the keyboard input accessory view.\n * The input accessory view is displayed above the keyboard whenever a TextInput\n * has focus. This component can be used to create custom toolbars.\n *\n * To use this component wrap your custom toolbar with the\n * InputAccessoryView component, and set a nativeID. Then, pass that nativeID\n * as the inputAccessoryViewID of whatever TextInput you desire. A simple\n * example:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, TextInput, InputAccessoryView, Button } from 'react-native';\n *\n * export default class UselessTextInput extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {text: 'Placeholder Text'};\n * }\n *\n * render() {\n * const inputAccessoryViewID = \"uniqueID\";\n * return (\n * \n * \n * this.setState({text})}\n * value={this.state.text}\n * />\n * \n * \n * this.setState({text: 'Placeholder Text'})}\n * title=\"Reset Text\"\n * />\n * \n * \n * );\n * }\n * }\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);\n * ```\n *\n * This component can also be used to create sticky text inputs (text inputs\n * which are anchored to the top of the keyboard). To do this, wrap a\n * TextInput with the InputAccessoryView component, and don't set a nativeID.\n * For an example, look at InputAccessoryViewExample.js in RNTester.\n */\n\ntype Props = $ReadOnly<{|\n +children: React.Node,\n /**\n * An ID which is used to associate this `InputAccessoryView` to\n * specified TextInput(s).\n */\n nativeID?: ?string,\n style?: ?ViewStyleProp,\n backgroundColor?: ?DeprecatedColorPropType,\n|}>;\n\nclass InputAccessoryView extends React.Component {\n render(): React.Node {\n if (Platform.OS !== 'ios') {\n console.warn(' is only supported on iOS.');\n }\n\n if (React.Children.count(this.props.children) === 0) {\n return null;\n }\n\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n position: 'absolute',\n },\n});\n\nmodule.exports = InputAccessoryView;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nimport codegenNativeComponent from '../../Utilities/codegenNativeComponent';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n backgroundColor?: ?ColorValue,\n|}>;\n\nexport default (codegenNativeComponent(\n 'RCTInputAccessoryView',\n): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Keyboard = require('./Keyboard');\nconst LayoutAnimation = require('../../LayoutAnimation/LayoutAnimation');\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst View = require('../View/View');\n\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type EmitterSubscription from '../../vendor/emitter/EmitterSubscription';\nimport type {\n ViewProps,\n ViewLayout,\n ViewLayoutEvent,\n} from '../View/ViewPropTypes';\nimport type {KeyboardEvent} from './Keyboard';\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Specify how to react to the presence of the keyboard.\n */\n behavior?: ?('height' | 'position' | 'padding'),\n\n /**\n * Style of the content container when `behavior` is 'position'.\n */\n contentContainerStyle?: ?ViewStyleProp,\n\n /**\n * Controls whether this `KeyboardAvoidingView` instance should take effect.\n * This is useful when more than one is on the screen. Defaults to true.\n */\n enabled: ?boolean,\n\n /**\n * Distance between the top of the user screen and the React Native view. This\n * may be non-zero in some cases. Defaults to 0.\n */\n keyboardVerticalOffset: number,\n|}>;\n\ntype State = {|\n bottom: number,\n|};\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n */\nclass KeyboardAvoidingView extends React.Component {\n static defaultProps: {|enabled: boolean, keyboardVerticalOffset: number|} = {\n enabled: true,\n keyboardVerticalOffset: 0,\n };\n\n _frame: ?ViewLayout = null;\n _subscriptions: Array = [];\n viewRef: {current: React.ElementRef | null, ...};\n _initialFrameHeight: number = 0;\n\n constructor(props: Props) {\n super(props);\n this.state = {bottom: 0};\n this.viewRef = React.createRef();\n }\n\n _relativeKeyboardHeight(keyboardFrame): number {\n const frame = this._frame;\n if (!frame || !keyboardFrame) {\n return 0;\n }\n\n const keyboardY = keyboardFrame.screenY - this.props.keyboardVerticalOffset;\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(frame.y + frame.height - keyboardY, 0);\n }\n\n _onKeyboardChange = (event: ?KeyboardEvent) => {\n if (event == null) {\n this.setState({bottom: 0});\n return;\n }\n\n const {duration, easing, endCoordinates} = event;\n const height = this._relativeKeyboardHeight(endCoordinates);\n\n if (this.state.bottom === height) {\n return;\n }\n\n if (duration && easing) {\n LayoutAnimation.configureNext({\n // We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m\n duration: duration > 10 ? duration : 10,\n update: {\n duration: duration > 10 ? duration : 10,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n this.setState({bottom: height});\n };\n\n _onLayout = (event: ViewLayoutEvent) => {\n this._frame = event.nativeEvent.layout;\n if (!this._initialFrameHeight) {\n // save the initial frame height, before the keyboard is visible\n this._initialFrameHeight = this._frame.height;\n }\n };\n\n componentDidMount(): void {\n if (Platform.OS === 'ios') {\n this._subscriptions = [\n Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange),\n ];\n } else {\n this._subscriptions = [\n Keyboard.addListener('keyboardDidHide', this._onKeyboardChange),\n Keyboard.addListener('keyboardDidShow', this._onKeyboardChange),\n ];\n }\n }\n\n componentWillUnmount(): void {\n this._subscriptions.forEach(subscription => {\n subscription.remove();\n });\n }\n\n render(): React.Node {\n const {\n behavior,\n children,\n contentContainerStyle,\n enabled,\n keyboardVerticalOffset,\n style,\n ...props\n } = this.props;\n const bottomHeight = enabled ? this.state.bottom : 0;\n switch (behavior) {\n case 'height':\n let heightStyle;\n if (this._frame != null && this.state.bottom > 0) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n height: this._initialFrameHeight - bottomHeight,\n flex: 0,\n };\n }\n return (\n \n {children}\n \n );\n\n case 'position':\n return (\n \n \n {children}\n \n \n );\n\n case 'padding':\n return (\n \n {children}\n \n );\n\n default:\n return (\n \n {children}\n \n );\n }\n }\n}\n\nmodule.exports = KeyboardAvoidingView;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nmodule.exports = require('../UnimplementedViews/UnimplementedView');\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\n\n/**\n * Common implementation for a simple stubbed view. Simply applies the view's styles to the inner\n * View component and renders its children.\n */\nclass UnimplementedView extends React.Component<$FlowFixMeProps> {\n render(): React.Node {\n // Workaround require cycle from requireNativeComponent\n const View = require('../View/View');\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n unimplementedView: __DEV__\n ? {\n alignSelf: 'flex-start',\n borderColor: 'red',\n borderWidth: 1,\n }\n : {},\n});\n\nmodule.exports = UnimplementedView;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AppContainer = require('../ReactNative/AppContainer');\nconst I18nManager = require('../ReactNative/I18nManager');\nconst NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');\nimport NativeModalManager from './NativeModalManager';\nconst Platform = require('../Utilities/Platform');\nconst React = require('react');\nconst PropTypes = require('prop-types');\nconst ScrollView = require('../Components/ScrollView/ScrollView');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst View = require('../Components/View/View');\n\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\nimport type {DirectEventHandler} from '../Types/CodegenTypes';\nimport type EmitterSubscription from '../vendor/emitter/EmitterSubscription';\nimport RCTModalHostView from './RCTModalHostViewNativeComponent';\n\nconst ModalEventEmitter =\n Platform.OS === 'ios' && NativeModalManager != null\n ? new NativeEventEmitter(NativeModalManager)\n : null;\n\n/**\n * The Modal component is a simple way to present content above an enclosing view.\n *\n * See https://facebook.github.io/react-native/docs/modal.html\n */\n\n// In order to route onDismiss callbacks, we need to uniquely identifier each\n// on screen. There can be different ones, either nested or as siblings.\n// We cannot pass the onDismiss callback to native as the view will be\n// destroyed before the callback is fired.\nlet uniqueModalIdentifier = 0;\n\ntype OrientationChangeEvent = $ReadOnly<{|\n orientation: 'portrait' | 'landscape',\n|}>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * The `animationType` prop controls how the modal animates.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#animationtype\n */\n animationType?: ?('none' | 'slide' | 'fade'),\n\n /**\n * The `presentationStyle` prop controls how the modal appears.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#presentationstyle\n */\n presentationStyle?: ?(\n | 'fullScreen'\n | 'pageSheet'\n | 'formSheet'\n | 'overFullScreen'\n ),\n\n /**\n * The `transparent` prop determines whether your modal will fill the\n * entire view.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#transparent\n */\n transparent?: ?boolean,\n\n /**\n * The `statusBarTranslucent` prop determines whether your modal should go under\n * the system statusbar.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#transparent\n */\n statusBarTranslucent?: ?boolean,\n\n /**\n * The `hardwareAccelerated` prop controls whether to force hardware\n * acceleration for the underlying window.\n *\n * This prop works inly on Android.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#hardwareaccelerated\n */\n hardwareAccelerated?: ?boolean,\n\n /**\n * The `visible` prop determines whether your modal is visible.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#visible\n */\n visible?: ?boolean,\n\n /**\n * The `onRequestClose` callback is called when the user taps the hardware\n * back button on Android or the menu button on Apple TV.\n *\n * This is required on Apple TV and Android.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onrequestclose\n */\n onRequestClose?: ?DirectEventHandler,\n\n /**\n * The `onShow` prop allows passing a function that will be called once the\n * modal has been shown.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onshow\n */\n onShow?: ?DirectEventHandler,\n\n /**\n * The `onDismiss` prop allows passing a function that will be called once\n * the modal has been dismissed.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#ondismiss\n */\n onDismiss?: ?() => mixed,\n\n /**\n * Deprecated. Use the `animationType` prop instead.\n */\n animated?: ?boolean,\n\n /**\n * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#supportedorientations\n */\n supportedOrientations?: ?$ReadOnlyArray<\n | 'portrait'\n | 'portrait-upside-down'\n | 'landscape'\n | 'landscape-left'\n | 'landscape-right',\n >,\n\n /**\n * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onorientationchange\n */\n onOrientationChange?: ?DirectEventHandler,\n|}>;\n\nclass Modal extends React.Component {\n static defaultProps: {|hardwareAccelerated: boolean, visible: boolean|} = {\n visible: true,\n hardwareAccelerated: false,\n };\n\n static contextTypes: any | {|rootTag: React$PropType$Primitive|} = {\n rootTag: PropTypes.number,\n };\n\n _identifier: number;\n _eventSubscription: ?EmitterSubscription;\n\n constructor(props: Props) {\n super(props);\n Modal._confirmProps(props);\n this._identifier = uniqueModalIdentifier++;\n }\n\n static childContextTypes:\n | any\n | {|virtualizedList: React$PropType$Primitive|} = {\n virtualizedList: PropTypes.object,\n };\n\n getChildContext(): {|virtualizedList: null|} {\n // Reset the context so VirtualizedList doesn't get confused by nesting\n // in the React tree that doesn't reflect the native component hierarchy.\n return {\n virtualizedList: null,\n };\n }\n\n componentDidMount() {\n if (ModalEventEmitter) {\n this._eventSubscription = ModalEventEmitter.addListener(\n 'modalDismissed',\n event => {\n if (event.modalID === this._identifier && this.props.onDismiss) {\n this.props.onDismiss();\n }\n },\n );\n }\n }\n\n componentWillUnmount() {\n if (this._eventSubscription) {\n this._eventSubscription.remove();\n }\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: Props) {\n Modal._confirmProps(nextProps);\n }\n\n static _confirmProps(props: Props) {\n if (\n props.presentationStyle &&\n props.presentationStyle !== 'overFullScreen' &&\n props.transparent\n ) {\n console.warn(\n `Modal with '${\n props.presentationStyle\n }' presentation style and 'transparent' value is not supported.`,\n );\n }\n }\n\n render(): React.Node {\n if (this.props.visible !== true) {\n return null;\n }\n\n const containerStyles = {\n backgroundColor: this.props.transparent ? 'transparent' : 'white',\n };\n\n let animationType = this.props.animationType;\n if (!animationType) {\n // manually setting default prop here to keep support for the deprecated 'animated' prop\n animationType = 'none';\n if (this.props.animated) {\n animationType = 'slide';\n }\n }\n\n let presentationStyle = this.props.presentationStyle;\n if (!presentationStyle) {\n presentationStyle = 'fullScreen';\n if (this.props.transparent) {\n presentationStyle = 'overFullScreen';\n }\n }\n\n const innerChildren = __DEV__ ? (\n \n {this.props.children}\n \n ) : (\n this.props.children\n );\n\n return (\n \n \n \n {innerChildren}\n \n \n \n );\n }\n\n // We don't want any responder events bubbling out of the modal.\n _shouldSetResponder(): boolean {\n return true;\n }\n}\n\nconst side = I18nManager.getConstants().isRTL ? 'right' : 'left';\nconst styles = StyleSheet.create({\n modal: {\n position: 'absolute',\n },\n container: {\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.111 was deployed. To see the error, delete this\n * comment and run Flow. */\n [side]: 0,\n top: 0,\n flex: 1,\n },\n});\n\nmodule.exports = Modal;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n // RCTEventEmitter\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('ModalManager'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport codegenNativeComponent from '../Utilities/codegenNativeComponent';\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\nimport type {\n WithDefault,\n DirectEventHandler,\n BubblingEventHandler,\n Int32,\n} from '../Types/CodegenTypes';\n\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\n\ntype OrientationChangeEvent = $ReadOnly<{|\n orientation: 'portrait' | 'landscape',\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * The `animationType` prop controls how the modal animates.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#animationtype\n */\n animationType?: WithDefault<'none' | 'slide' | 'fade', 'none'>,\n\n /**\n * The `presentationStyle` prop controls how the modal appears.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#presentationstyle\n */\n presentationStyle?: WithDefault<\n 'fullScreen' | 'pageSheet' | 'formSheet' | 'overFullScreen',\n 'fullScreen',\n >,\n\n /**\n * The `transparent` prop determines whether your modal will fill the\n * entire view.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#transparent\n */\n transparent?: WithDefault,\n\n /**\n * The `statusBarTranslucent` prop determines whether your modal should go under\n * the system statusbar.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#statusBarTranslucent\n */\n statusBarTranslucent?: WithDefault,\n\n /**\n * The `hardwareAccelerated` prop controls whether to force hardware\n * acceleration for the underlying window.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#hardwareaccelerated\n */\n hardwareAccelerated?: WithDefault,\n\n /**\n * The `onRequestClose` callback is called when the user taps the hardware\n * back button on Android or the menu button on Apple TV.\n *\n * This is required on Apple TV and Android.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onrequestclose\n */\n onRequestClose?: ?DirectEventHandler,\n\n /**\n * The `onShow` prop allows passing a function that will be called once the\n * modal has been shown.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onshow\n */\n onShow?: ?DirectEventHandler,\n\n /**\n * The `onDismiss` prop allows passing a function that will be called once\n * the modal has been dismissed.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#ondismiss\n */\n onDismiss?: ?BubblingEventHandler,\n\n /**\n * Deprecated. Use the `animationType` prop instead.\n */\n animated?: WithDefault,\n\n /**\n * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#supportedorientations\n */\n supportedOrientations?: WithDefault<\n $ReadOnlyArray<\n | 'portrait'\n | 'portrait-upside-down'\n | 'landscape'\n | 'landscape-left'\n | 'landscape-right',\n >,\n 'portrait',\n >,\n\n /**\n * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onorientationchange\n */\n onOrientationChange?: ?DirectEventHandler,\n\n /**\n * The `identifier` is the unique number for identifying Modal components.\n */\n identifier?: WithDefault,\n|}>;\n\nexport default (codegenNativeComponent('ModalHostView', {\n interfaceOnly: true,\n paperComponentName: 'RCTModalHostView',\n}): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EmitterSubscription = require('../vendor/emitter/EmitterSubscription');\nconst PropTypes = require('prop-types');\nconst RCTDeviceEventEmitter = require('../EventEmitter/RCTDeviceEventEmitter');\nconst React = require('react');\nconst ReactNative = require('../Renderer/shims/ReactNative');\nconst RootTagContext = require('./RootTagContext');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst View = require('../Components/View/View');\n\ntype Context = {rootTag: number, ...};\n\ntype Props = $ReadOnly<{|\n children?: React.Node,\n fabric?: boolean,\n rootTag: number,\n showArchitectureIndicator?: boolean,\n WrapperComponent?: ?React.ComponentType,\n internal_excludeLogBox?: ?boolean,\n|}>;\n\ntype State = {|\n inspector: ?React.Node,\n mainKey: number,\n hasError: boolean,\n|};\n\nclass AppContainer extends React.Component {\n state: State = {\n inspector: null,\n mainKey: 1,\n hasError: false,\n };\n _mainRef: ?React.ElementRef;\n _subscription: ?EmitterSubscription = null;\n\n static getDerivedStateFromError: any = undefined;\n\n static childContextTypes:\n | any\n | {|rootTag: React$PropType$Primitive|} = {\n rootTag: PropTypes.number,\n };\n\n getChildContext(): Context {\n return {\n rootTag: this.props.rootTag,\n };\n }\n\n componentDidMount(): void {\n if (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n this._subscription = RCTDeviceEventEmitter.addListener(\n 'toggleElementInspector',\n () => {\n const Inspector = require('../Inspector/Inspector');\n const inspector = this.state.inspector ? null : (\n {\n this.setState(\n s => ({mainKey: s.mainKey + 1}),\n () =>\n updateInspectedViewTag(\n ReactNative.findNodeHandle(this._mainRef),\n ),\n );\n }}\n />\n );\n this.setState({inspector});\n },\n );\n }\n }\n }\n\n componentWillUnmount(): void {\n if (this._subscription != null) {\n this._subscription.remove();\n }\n }\n\n render(): React.Node {\n let yellowBox = null;\n if (__DEV__) {\n if (\n !global.__RCTProfileIsProfiling &&\n !this.props.internal_excludeLogBox\n ) {\n const YellowBox = require('../YellowBox/YellowBox');\n yellowBox = ;\n }\n }\n\n let innerView = (\n {\n this._mainRef = ref;\n }}>\n {this.props.children}\n \n );\n\n const Wrapper = this.props.WrapperComponent;\n if (Wrapper != null) {\n innerView = (\n \n {innerView}\n \n );\n }\n return (\n \n \n {!this.state.hasError && innerView}\n {this.state.inspector}\n {yellowBox}\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n appContainer: {\n flex: 1,\n },\n});\n\nif (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n const YellowBox = require('../YellowBox/YellowBox');\n YellowBox.install();\n }\n}\n\nmodule.exports = AppContainer;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\n\nmodule.exports = (React.createContext(0): React$Context);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport NativeI18nManager from './NativeI18nManager';\n\nconst i18nConstants: {|\n doLeftAndRightSwapInRTL: boolean,\n isRTL: boolean,\n|} = NativeI18nManager\n ? NativeI18nManager.getConstants()\n : {\n isRTL: false,\n doLeftAndRightSwapInRTL: true,\n };\n\nmodule.exports = {\n getConstants: (): {|doLeftAndRightSwapInRTL: boolean, isRTL: boolean|} => {\n return i18nConstants;\n },\n\n allowRTL: (shouldAllow: boolean) => {\n if (!NativeI18nManager) {\n return;\n }\n\n NativeI18nManager.allowRTL(shouldAllow);\n },\n\n forceRTL: (shouldForce: boolean) => {\n if (!NativeI18nManager) {\n return;\n }\n\n NativeI18nManager.forceRTL(shouldForce);\n },\n\n swapLeftAndRightInRTL: (flipStyles: boolean) => {\n if (!NativeI18nManager) {\n return;\n }\n\n NativeI18nManager.swapLeftAndRightInRTL(flipStyles);\n },\n\n isRTL: i18nConstants.isRTL,\n doLeftAndRightSwapInRTL: i18nConstants.doLeftAndRightSwapInRTL,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n isRTL: boolean,\n doLeftAndRightSwapInRTL: boolean,\n |};\n allowRTL: (allowRTL: boolean) => void;\n forceRTL: (forceRTL: boolean) => void;\n swapLeftAndRightInRTL: (flipStyles: boolean) => void;\n}\n\nexport default (TurboModuleRegistry.get('I18nManager'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst PickerAndroid = require('./PickerAndroid');\nconst PickerIOS = require('./PickerIOS');\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst UnimplementedView = require('../UnimplementedViews/UnimplementedView');\n\nimport type {TextStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\n\nconst MODE_DIALOG = 'dialog';\nconst MODE_DROPDOWN = 'dropdown';\n\ntype PickerItemProps = $ReadOnly<{|\n /**\n * Text to display for this item.\n */\n label: string,\n\n /**\n * The value to be passed to picker's `onValueChange` callback when\n * this item is selected. Can be a string or an integer.\n */\n value?: ?(number | string),\n\n /**\n * Color of this item's text.\n * @platform android\n */\n color?: ColorValue,\n\n /**\n * Used to locate the item in end-to-end tests.\n */\n testID?: string,\n|}>;\n\n/**\n * Individual selectable item in a Picker.\n */\nexport type {PickerItem};\nclass PickerItem extends React.Component {\n render() {\n // The items are not rendered directly\n throw null;\n }\n}\n\ntype PickerProps = $ReadOnly<{|\n children?: React.Node,\n style?: ?TextStyleProp,\n\n /**\n * Value matching value of one of the items. Can be a string or an integer.\n */\n selectedValue?: ?(number | string),\n\n /**\n * Callback for when an item is selected. This is called with the following parameters:\n * - `itemValue`: the `value` prop of the item that was selected\n * - `itemIndex`: the index of the selected item in this picker\n */\n onValueChange?: ?(itemValue: string | number, itemIndex: number) => mixed,\n\n /**\n * If set to false, the picker will be disabled, i.e. the user will not be able to make a\n * selection.\n * @platform android\n */\n enabled?: ?boolean,\n\n /**\n * On Android, specifies how to display the selection items when the user taps on the picker:\n *\n * - 'dialog': Show a modal dialog. This is the default.\n * - 'dropdown': Shows a dropdown anchored to the picker view\n *\n * @platform android\n */\n mode?: ?('dialog' | 'dropdown'),\n\n /**\n * Style to apply to each of the item labels.\n * @platform ios\n */\n itemStyle?: ?TextStyleProp,\n\n /**\n * Prompt string for this picker, used on Android in dialog mode as the title of the dialog.\n * @platform android\n */\n prompt?: ?string,\n\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID?: ?string,\n|}>;\n\n/**\n * Renders the native picker component on iOS and Android. Example:\n *\n * this.setState({language: itemValue})}>\n * \n * \n * \n */\nclass Picker extends React.Component {\n /**\n * On Android, display the options in a dialog.\n */\n static MODE_DIALOG: $TEMPORARY$string<'dialog'> = MODE_DIALOG;\n\n /**\n * On Android, display the options in a dropdown (this is the default).\n */\n static MODE_DROPDOWN: $TEMPORARY$string<'dropdown'> = MODE_DROPDOWN;\n\n static Item: typeof PickerItem = PickerItem;\n\n static defaultProps: {|mode: $TEMPORARY$string<'dialog'>|} = {\n mode: MODE_DIALOG,\n };\n\n render(): React.Node {\n if (Platform.OS === 'ios') {\n /* $FlowFixMe(>=0.81.0 site=react_native_ios_fb) This suppression was\n * added when renaming suppression sites. */\n return {this.props.children};\n } else if (Platform.OS === 'android') {\n return (\n /* $FlowFixMe(>=0.81.0 site=react_native_android_fb) This suppression\n * was added when renaming suppression sites. */\n {this.props.children}\n );\n } else {\n return ;\n }\n }\n}\n\nmodule.exports = Picker;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport AndroidDropdownPickerNativeComponent from './AndroidDropdownPickerNativeComponent';\nimport AndroidDialogPickerNativeComponent from './AndroidDialogPickerNativeComponent';\nimport * as React from 'react';\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport processColor from '../../StyleSheet/processColor';\n\nimport type {SyntheticEvent} from '../../Types/CoreEventTypes';\nimport type {TextStyleProp} from '../../StyleSheet/StyleSheet';\n\ntype PickerItemSelectSyntheticEvent = SyntheticEvent<\n $ReadOnly<{|\n position: number,\n |}>,\n>;\n\ntype PickerItemValue = number | string;\n\ntype Props = $ReadOnly<{|\n accessibilityLabel?: ?Stringish,\n children?: React.Node,\n style?: ?TextStyleProp,\n selectedValue?: ?PickerItemValue,\n enabled?: ?boolean,\n mode?: ?('dialog' | 'dropdown'),\n onValueChange?: ?(itemValue: ?PickerItemValue, itemIndex: number) => mixed,\n prompt?: ?string,\n testID?: string,\n|}>;\n\n/**\n * Not exposed as a public API - use instead.\n */\nfunction PickerAndroid(props: Props): React.Node {\n const pickerRef = React.useRef(null);\n\n const [items, selected] = React.useMemo(() => {\n // eslint-disable-next-line no-shadow\n let selected = 0;\n // eslint-disable-next-line no-shadow\n const items = React.Children.map(props.children, (child, index) => {\n if (child === null) {\n return null;\n }\n if (child.props.value === props.selectedValue) {\n selected = index;\n }\n const {color, label} = child.props;\n return {\n color: color == null ? null : processColor(color),\n label,\n };\n });\n return [items, selected];\n }, [props.children, props.selectedValue]);\n\n const onSelect = React.useCallback(\n ({nativeEvent}: PickerItemSelectSyntheticEvent) => {\n const {position} = nativeEvent;\n const onValueChange = props.onValueChange;\n\n if (onValueChange != null) {\n if (position >= 0) {\n const children = React.Children.toArray(props.children).filter(\n item => item != null,\n );\n const value = children[position].props.value;\n if (props.selectedValue !== value) {\n onValueChange(value, position);\n }\n } else {\n onValueChange(null, position);\n }\n }\n\n const {current} = pickerRef;\n if (current != null && position !== selected) {\n current.setNativeProps({selected});\n }\n },\n [props.children, props.onValueChange, props.selectedValue, selected],\n );\n\n const rootProps = {\n accessibilityLabel: props.accessibilityLabel,\n enabled: props.enabled,\n items,\n onSelect,\n prompt: props.prompt,\n ref: pickerRef,\n selected,\n style: StyleSheet.compose(\n styles.pickerAndroid,\n props.style,\n ),\n testID: props.testID,\n };\n return props.mode === 'dropdown' ? (\n \n ) : (\n \n );\n}\n\nconst styles = StyleSheet.create({\n pickerAndroid: {\n // The picker will conform to whatever width is given, but we do\n // have to set the component's height explicitly on the\n // surrounding view to ensure it gets rendered.\n // TODO would be better to export a native constant for this,\n // like in iOS the RCTDatePickerManager.m\n height: 50,\n },\n});\n\nmodule.exports = PickerAndroid;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport requireNativeComponent from '../../ReactNative/requireNativeComponent';\n\nimport type {\n DirectEventHandler,\n Int32,\n WithDefault,\n} from '../../Types/CodegenTypes';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {TextStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../../Components/View/ViewPropTypes';\n\ntype PickerItem = $ReadOnly<{|\n label: string,\n color?: ?Int32,\n|}>;\n\ntype PickerItemSelectEvent = $ReadOnly<{|\n position: Int32,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n style?: ?TextStyleProp,\n\n // Props\n color?: ?ColorValue,\n enabled?: WithDefault,\n items: $ReadOnlyArray,\n prompt?: WithDefault,\n selected: Int32,\n\n // Events\n onSelect?: DirectEventHandler,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeSelectedPosition: (\n viewRef: React.ElementRef,\n index: number,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeSelectedPosition'],\n});\n\nexport default (requireNativeComponent(\n 'AndroidDropdownPicker',\n): NativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport requireNativeComponent from '../../ReactNative/requireNativeComponent';\n\nimport type {\n DirectEventHandler,\n Int32,\n WithDefault,\n} from '../../Types/CodegenTypes';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {TextStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../../Components/View/ViewPropTypes';\n\ntype PickerItem = $ReadOnly<{|\n label: string,\n color?: ?Int32,\n|}>;\n\ntype PickerItemSelectEvent = $ReadOnly<{|\n position: Int32,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n style?: ?TextStyleProp,\n\n // Props\n color?: ?ColorValue,\n enabled?: WithDefault,\n items: $ReadOnlyArray,\n prompt?: WithDefault,\n selected: Int32,\n\n // Events\n onSelect?: DirectEventHandler,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeSelectedPosition: (\n viewRef: React.ElementRef,\n index: number,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeSelectedPosition'],\n});\n\nexport default (requireNativeComponent(\n 'AndroidDialogPicker',\n): NativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n// This is a controlled component version of RCTPickerIOS.\n\n'use strict';\n\nmodule.exports = require('../UnimplementedViews/UnimplementedView');\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst Text = require('../../Text/Text');\nconst View = require('../View/View');\n\nclass DummyProgressViewIOS extends React.Component {\n render() {\n return (\n \n \n ProgressViewIOS is not supported on this platform!\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n dummy: {\n width: 120,\n height: 20,\n backgroundColor: '#ffbcbc',\n borderWidth: 1,\n borderColor: 'red',\n alignItems: 'center',\n justifyContent: 'center',\n },\n text: {\n color: '#333333',\n margin: 5,\n fontSize: 10,\n },\n});\n\nmodule.exports = DummyProgressViewIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst View = require('../View/View');\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n emulateUnlessSupported?: boolean,\n|}>;\n\nlet exported: React.AbstractComponent<\n Props,\n React.ElementRef>,\n>;\n\n/**\n * Renders nested content and automatically applies paddings reflect the portion\n * of the view that is not covered by navigation bars, tab bars, toolbars, and\n * other ancestor views.\n *\n * Moreover, and most importantly, Safe Area's paddings reflect physical\n * limitation of the screen, such as rounded corners or camera notches (aka\n * sensor housing area on iPhone X).\n */\nif (Platform.OS === 'android') {\n exported = React.forwardRef>>(\n function SafeAreaView(props, forwardedRef) {\n const {emulateUnlessSupported, ...localProps} = props;\n return ;\n },\n );\n} else {\n const RCTSafeAreaViewNativeComponent = require('./RCTSafeAreaViewNativeComponent')\n .default;\n\n exported = React.forwardRef>>(\n function SafeAreaView(props, forwardedRef) {\n return (\n \n );\n },\n );\n}\n\nmodule.exports = exported;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst Text = require('../../Text/Text');\nconst View = require('../View/View');\n\nclass DummySegmentedControlIOS extends React.Component {\n render() {\n return (\n \n \n SegmentedControlIOS is not supported on this platform!\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n dummy: {\n width: 120,\n height: 50,\n backgroundColor: '#ffbcbc',\n borderWidth: 1,\n borderColor: 'red',\n alignItems: 'center',\n justifyContent: 'center',\n },\n text: {\n color: '#333333',\n margin: 5,\n fontSize: 10,\n },\n});\n\nmodule.exports = DummySegmentedControlIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nimport SliderNativeComponent from './SliderNativeComponent';\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\n\nimport type {ImageSource} from '../../Image/ImageSource';\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {SyntheticEvent} from '../../Types/CoreEventTypes';\n\ntype Event = SyntheticEvent<\n $ReadOnly<{|\n value: number,\n /**\n * Android Only.\n */\n fromUser?: boolean,\n |}>,\n>;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Assigns a single image for the track. Only static images are supported.\n * The center pixel of the image will be stretched to fill the track.\n */\n trackImage?: ?ImageSource,\n\n /**\n * Assigns a minimum track image. Only static images are supported. The\n * rightmost pixel of the image will be stretched to fill the track.\n */\n minimumTrackImage?: ?ImageSource,\n\n /**\n * Assigns a maximum track image. Only static images are supported. The\n * leftmost pixel of the image will be stretched to fill the track.\n */\n maximumTrackImage?: ?ImageSource,\n\n /**\n * Sets an image for the thumb. Only static images are supported.\n */\n thumbImage?: ?ImageSource,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n\n /**\n * Used to style and layout the `Slider`. See `StyleSheet.js` and\n * `DeprecatedViewStylePropTypes.js` for more info.\n */\n style?: ?ViewStyleProp,\n\n /**\n * Initial value of the slider. The value should be between minimumValue\n * and maximumValue, which default to 0 and 1 respectively.\n * Default value is 0.\n *\n * *This is not a controlled component*, you don't need to update the\n * value during dragging.\n */\n value?: ?number,\n\n /**\n * Step value of the slider. The value should be\n * between 0 and (maximumValue - minimumValue).\n * Default value is 0.\n */\n step?: ?number,\n\n /**\n * Initial minimum value of the slider. Default value is 0.\n */\n minimumValue?: ?number,\n\n /**\n * Initial maximum value of the slider. Default value is 1.\n */\n maximumValue?: ?number,\n\n /**\n * The color used for the track to the left of the button.\n * Overrides the default blue gradient image on iOS.\n */\n minimumTrackTintColor?: ?ColorValue,\n\n /**\n * The color used for the track to the right of the button.\n * Overrides the default blue gradient image on iOS.\n */\n maximumTrackTintColor?: ?ColorValue,\n /**\n * The color used to tint the default thumb images on iOS, or the\n * color of the foreground switch grip on Android.\n */\n thumbTintColor?: ?ColorValue,\n\n /**\n * If true the user won't be able to move the slider.\n * Default value is false.\n */\n disabled?: ?boolean,\n\n /**\n * Callback continuously called while the user is dragging the slider.\n */\n onValueChange?: ?(value: number) => void,\n\n /**\n * Callback that is called when the user releases the slider,\n * regardless if the value has changed. The current value is passed\n * as an argument to the callback handler.\n */\n onSlidingComplete?: ?(value: number) => void,\n\n /**\n * Used to locate this view in UI automation tests.\n */\n testID?: ?string,\n|}>;\n\n/**\n * A component used to select a single value from a range of values.\n *\n * ### Usage\n *\n * The example below shows how to use `Slider` to change\n * a value used by `Text`. The value is stored using\n * the state of the root component (`App`). The same component\n * subscribes to the `onValueChange` of `Slider` and changes\n * the value using `setState`.\n *\n *```\n * import React from 'react';\n * import { StyleSheet, Text, View, Slider } from 'react-native';\n *\n * export default class App extends React.Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * value: 50\n * }\n * }\n *\n * change(value) {\n * this.setState(() => {\n * return {\n * value: parseFloat(value)\n * };\n * });\n * }\n *\n * render() {\n * const {value} = this.state;\n * return (\n * \n * {String(value)}\n * \n * \n * );\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * flexDirection: 'column',\n * justifyContent: 'center'\n * },\n * text: {\n * fontSize: 50,\n * textAlign: 'center'\n * }\n * });\n *```\n *\n */\nconst Slider = (\n props: Props,\n forwardedRef?: ?React.Ref,\n) => {\n const style = StyleSheet.compose(\n styles.slider,\n props.style,\n );\n\n const {\n disabled = false,\n value = 0.5,\n minimumValue = 0,\n maximumValue = 1,\n step = 0,\n onValueChange,\n onSlidingComplete,\n ...localProps\n } = props;\n\n const onValueChangeEvent = onValueChange\n ? (event: Event) => {\n let userEvent = true;\n if (Platform.OS === 'android') {\n // On Android there's a special flag telling us the user is\n // dragging the slider.\n userEvent =\n event.nativeEvent.fromUser != null && event.nativeEvent.fromUser;\n }\n userEvent && onValueChange(event.nativeEvent.value);\n }\n : null;\n\n const onChangeEvent = onValueChangeEvent;\n const onSlidingCompleteEvent = onSlidingComplete\n ? (event: Event) => {\n onSlidingComplete(event.nativeEvent.value);\n }\n : null;\n\n return (\n false}\n onSlidingComplete={onSlidingCompleteEvent}\n onStartShouldSetResponder={() => true}\n onValueChange={onValueChangeEvent}\n ref={forwardedRef}\n step={step}\n style={style}\n value={value}\n />\n );\n};\n\nconst SliderWithRef: React.AbstractComponent<\n Props,\n React.ElementRef,\n> = React.forwardRef(Slider);\n\nlet styles;\nif (Platform.OS === 'ios') {\n styles = StyleSheet.create({\n slider: {\n height: 40,\n },\n });\n} else {\n styles = StyleSheet.create({\n slider: {},\n });\n}\n\nmodule.exports = SliderWithRef;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {\n BubblingEventHandler,\n DirectEventHandler,\n Double,\n WithDefault,\n} from '../../Types/CodegenTypes';\n\nimport codegenNativeComponent from '../../Utilities/codegenNativeComponent';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ImageSource} from '../../Image/ImageSource';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\ntype Event = $ReadOnly<{|\n value: Double,\n fromUser?: boolean,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n // Props\n disabled?: WithDefault,\n enabled?: WithDefault,\n maximumTrackImage?: ?ImageSource,\n maximumTrackTintColor?: ?ColorValue,\n maximumValue?: WithDefault,\n minimumTrackImage?: ?ImageSource,\n minimumTrackTintColor?: ?ColorValue,\n minimumValue?: WithDefault,\n step?: WithDefault,\n testID?: WithDefault,\n thumbImage?: ?ImageSource,\n thumbTintColor?: ?ColorValue,\n trackImage?: ?ImageSource,\n value?: WithDefault,\n\n // Events\n onChange?: ?BubblingEventHandler,\n onValueChange?: ?BubblingEventHandler,\n onSlidingComplete?: ?DirectEventHandler,\n|}>;\n\nexport default (codegenNativeComponent('Slider', {\n interfaceOnly: true,\n paperComponentName: 'RCTSlider',\n}): HostComponent);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n * @generate-docs\n */\n\n'use strict';\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\n\nimport AndroidSwitchNativeComponent, {\n Commands as AndroidSwitchCommands,\n} from './AndroidSwitchNativeComponent';\nimport SwitchNativeComponent, {\n Commands as SwitchCommands,\n} from './SwitchNativeComponent';\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {SyntheticEvent} from '../../Types/CoreEventTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\ntype SwitchChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n value: boolean,\n |}>,\n>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Whether the switch is disabled. Defaults to false.\n */\n disabled?: ?boolean,\n\n /**\n * Boolean value of the switch. Defaults to false.\n */\n value?: ?boolean,\n\n /**\n * Custom color for the switch thumb.\n */\n thumbColor?: ?ColorValue,\n\n /**\n * Custom colors for the switch track.\n *\n * NOTE: On iOS when the switch value is false, the track shrinks into the\n * border. If you want to change the color of the background exposed by the\n * shrunken track, use `ios_backgroundColor`.\n */\n trackColor?: ?$ReadOnly<{|\n false?: ?ColorValue,\n true?: ?ColorValue,\n |}>,\n\n /**\n * On iOS, custom color for the background. This background color can be seen\n * either when the switch value is false or when the switch is disabled (and\n * the switch is translucent).\n */\n ios_backgroundColor?: ?ColorValue,\n\n /**\n * Called when the user tries to change the value of the switch.\n *\n * Receives the change event as an argument. If you want to only receive the\n * new value, use `onValueChange` instead.\n */\n onChange?: ?(event: SwitchChangeEvent) => Promise | void,\n\n /**\n * Called when the user tries to change the value of the switch.\n *\n * Receives the new value as an argument. If you want to instead receive an\n * event, use `onChange`.\n */\n onValueChange?: ?(value: boolean) => Promise | void,\n|}>;\n\n/**\n * A visual toggle between two mutually exclusive states.\n *\n * This is a controlled component that requires an `onValueChange` callback that\n * updates the `value` prop in order for the component to reflect user actions.\n * If the `value` prop is not updated, the component will continue to render the\n * supplied `value` prop instead of the expected result of any user actions.\n */\nclass Switch extends React.Component {\n _nativeSwitchRef: ?React.ElementRef<\n typeof SwitchNativeComponent | typeof AndroidSwitchNativeComponent,\n >;\n _lastNativeValue: ?boolean;\n\n render(): React.Node {\n const {\n disabled,\n ios_backgroundColor,\n onChange,\n onValueChange,\n style,\n thumbColor,\n trackColor,\n value,\n ...props\n } = this.props;\n\n // Support deprecated color props.\n let _thumbColor = thumbColor;\n let _trackColorForFalse = trackColor?.false;\n let _trackColorForTrue = trackColor?.true;\n\n // TODO: Remove support for these props after a couple releases.\n const {thumbTintColor, tintColor, onTintColor} = (props: $FlowFixMe);\n if (thumbTintColor != null) {\n _thumbColor = thumbTintColor;\n if (__DEV__) {\n console.warn(\n 'Switch: `thumbTintColor` is deprecated, use `thumbColor` instead.',\n );\n }\n }\n if (tintColor != null) {\n _trackColorForFalse = tintColor;\n if (__DEV__) {\n console.warn(\n 'Switch: `tintColor` is deprecated, use `trackColor` instead.',\n );\n }\n }\n if (onTintColor != null) {\n _trackColorForTrue = onTintColor;\n if (__DEV__) {\n console.warn(\n 'Switch: `onTintColor` is deprecated, use `trackColor` instead.',\n );\n }\n }\n\n if (Platform.OS === 'android') {\n const platformProps = {\n enabled: disabled !== true,\n on: value === true,\n style,\n thumbTintColor: _thumbColor,\n trackColorForFalse: _trackColorForFalse,\n trackColorForTrue: _trackColorForTrue,\n trackTintColor:\n value === true ? _trackColorForTrue : _trackColorForFalse,\n };\n\n return (\n \n );\n }\n\n const platformProps = {\n disabled,\n onTintColor: _trackColorForTrue,\n style: StyleSheet.compose(\n {height: 31, width: 51},\n StyleSheet.compose(\n style,\n ios_backgroundColor == null\n ? null\n : {\n backgroundColor: ios_backgroundColor,\n borderRadius: 16,\n },\n ),\n ),\n thumbTintColor: _thumbColor,\n tintColor: _trackColorForFalse,\n value: value === true,\n };\n\n return (\n \n );\n }\n\n componentDidUpdate() {\n // This is necessary in case native updates the switch and JS decides\n // that the update should be ignored and we should stick with the value\n // that we have in JS.\n const nativeProps = {};\n const value = this.props.value === true;\n\n if (this._lastNativeValue !== value) {\n nativeProps.value = value;\n }\n\n if (\n Object.keys(nativeProps).length > 0 &&\n this._nativeSwitchRef &&\n this._nativeSwitchRef.setNativeProps\n ) {\n if (Platform.OS === 'android') {\n AndroidSwitchCommands.setNativeValue(\n this._nativeSwitchRef,\n nativeProps.value,\n );\n } else {\n SwitchCommands.setValue(this._nativeSwitchRef, nativeProps.value);\n }\n }\n }\n\n _handleChange = (event: SwitchChangeEvent) => {\n if (this.props.onChange != null) {\n this.props.onChange(event);\n }\n\n if (this.props.onValueChange != null) {\n this.props.onValueChange(event.nativeEvent.value);\n }\n\n this._lastNativeValue = event.nativeEvent.value;\n this.forceUpdate();\n };\n\n _handleSwitchNativeComponentRef = (\n ref: ?React.ElementRef<\n typeof SwitchNativeComponent | typeof AndroidSwitchNativeComponent,\n >,\n ) => {\n this._nativeSwitchRef = ref;\n };\n}\n\nconst returnsFalse = () => false;\nconst returnsTrue = () => true;\n\nmodule.exports = Switch;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as React from 'react';\n\nimport type {\n WithDefault,\n BubblingEventHandler,\n} from 'react-native/Libraries/Types/CodegenTypes';\n\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\ntype SwitchChangeEvent = $ReadOnly<{|\n value: boolean,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n // Props\n disabled?: WithDefault,\n enabled?: WithDefault,\n thumbColor?: ?ColorValue,\n trackColorForFalse?: ?ColorValue,\n trackColorForTrue?: ?ColorValue,\n value?: WithDefault,\n on?: WithDefault,\n thumbTintColor?: ?ColorValue,\n trackTintColor?: ?ColorValue,\n\n // Events\n onChange?: BubblingEventHandler,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeValue: (\n viewRef: React.ElementRef,\n value: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeValue'],\n});\n\nexport default (codegenNativeComponent('AndroidSwitch', {\n interfaceOnly: true,\n}): NativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {BubblingEventHandler, WithDefault} from '../../Types/CodegenTypes';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport * as React from 'react';\n\nimport codegenNativeComponent from '../../Utilities/codegenNativeComponent';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\ntype SwitchChangeEvent = $ReadOnly<{|\n value: boolean,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n // Props\n disabled?: WithDefault,\n value?: WithDefault,\n tintColor?: ?ColorValue,\n onTintColor?: ?ColorValue,\n thumbTintColor?: ?ColorValue,\n\n // Deprecated props\n thumbColor?: ?ColorValue,\n trackColorForFalse?: ?ColorValue,\n trackColorForTrue?: ?ColorValue,\n\n // Events\n onChange?: ?BubblingEventHandler,\n|}>;\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n +setValue: (viewRef: React.ElementRef, value: boolean) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setValue'],\n});\n\nexport default (codegenNativeComponent('Switch', {\n paperComponentName: 'RCTSwitch',\n excludedPlatform: 'android',\n}): ComponentType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedTextInputPropTypes = require('../../DeprecatedPropTypes/DeprecatedTextInputPropTypes');\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\nconst ReactNative = require('../../Renderer/shims/ReactNative');\nconst StyleSheet = require('../../StyleSheet/StyleSheet');\nconst Text = require('../../Text/Text');\nconst TextAncestor = require('../../Text/TextAncestor');\nconst TextInputState = require('./TextInputState');\nconst TouchableWithoutFeedback = require('../Touchable/TouchableWithoutFeedback');\n\nconst invariant = require('invariant');\nconst nullthrows = require('nullthrows');\nconst requireNativeComponent = require('../../ReactNative/requireNativeComponent');\nconst setAndForwardRef = require('../../Utilities/setAndForwardRef');\n\nimport type {TextStyleProp, ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {SyntheticEvent, ScrollEvent} from '../../Types/CoreEventTypes';\nimport type {PressEvent} from '../../Types/CoreEventTypes';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\n\nconst {useEffect, useRef, useState} = React;\n\ntype ReactRefSetter = {current: null | T, ...} | ((ref: null | T) => mixed);\n\nlet AndroidTextInput;\nlet RCTMultilineTextInputView;\nlet RCTSinglelineTextInputView;\n\nif (Platform.OS === 'android') {\n AndroidTextInput = require('./AndroidTextInputNativeComponent').default;\n} else if (Platform.OS === 'ios') {\n RCTMultilineTextInputView = requireNativeComponent(\n 'RCTMultilineTextInputView',\n );\n RCTSinglelineTextInputView = requireNativeComponent(\n 'RCTSinglelineTextInputView',\n );\n}\n\nexport type ChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n eventCount: number,\n target: number,\n text: string,\n |}>,\n>;\n\nexport type TextInputEvent = SyntheticEvent<\n $ReadOnly<{|\n eventCount: number,\n previousText: string,\n range: $ReadOnly<{|\n start: number,\n end: number,\n |}>,\n target: number,\n text: string,\n |}>,\n>;\n\nexport type ContentSizeChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n target: number,\n contentSize: $ReadOnly<{|\n width: number,\n height: number,\n |}>,\n |}>,\n>;\n\ntype TargetEvent = SyntheticEvent<\n $ReadOnly<{|\n target: number,\n |}>,\n>;\n\nexport type BlurEvent = TargetEvent;\nexport type FocusEvent = TargetEvent;\n\ntype Selection = $ReadOnly<{|\n start: number,\n end: number,\n|}>;\n\nexport type SelectionChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n selection: Selection,\n target: number,\n |}>,\n>;\n\nexport type KeyPressEvent = SyntheticEvent<\n $ReadOnly<{|\n key: string,\n target?: ?number,\n eventCount?: ?number,\n |}>,\n>;\n\nexport type EditingEvent = SyntheticEvent<\n $ReadOnly<{|\n eventCount: number,\n text: string,\n target: number,\n |}>,\n>;\n\ntype DataDetectorTypesType =\n | 'phoneNumber'\n | 'link'\n | 'address'\n | 'calendarEvent'\n | 'none'\n | 'all';\n\nexport type KeyboardType =\n // Cross Platform\n | 'default'\n | 'email-address'\n | 'numeric'\n | 'phone-pad'\n | 'number-pad'\n | 'decimal-pad'\n // iOS-only\n | 'ascii-capable'\n | 'numbers-and-punctuation'\n | 'url'\n | 'name-phone-pad'\n | 'twitter'\n | 'web-search'\n // iOS 10+ only\n | 'ascii-capable-number-pad'\n // Android-only\n | 'visible-password';\n\nexport type ReturnKeyType =\n // Cross Platform\n | 'done'\n | 'go'\n | 'next'\n | 'search'\n | 'send'\n // Android-only\n | 'none'\n | 'previous'\n // iOS-only\n | 'default'\n | 'emergency-call'\n | 'google'\n | 'join'\n | 'route'\n | 'yahoo';\n\nexport type AutoCapitalize = 'none' | 'sentences' | 'words' | 'characters';\n\nexport type TextContentType =\n | 'none'\n | 'URL'\n | 'addressCity'\n | 'addressCityAndState'\n | 'addressState'\n | 'countryName'\n | 'creditCardNumber'\n | 'emailAddress'\n | 'familyName'\n | 'fullStreetAddress'\n | 'givenName'\n | 'jobTitle'\n | 'location'\n | 'middleName'\n | 'name'\n | 'namePrefix'\n | 'nameSuffix'\n | 'nickname'\n | 'organizationName'\n | 'postalCode'\n | 'streetAddressLine1'\n | 'streetAddressLine2'\n | 'sublocality'\n | 'telephoneNumber'\n | 'username'\n | 'password'\n | 'newPassword'\n | 'oneTimeCode';\n\ntype PasswordRules = string;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * If `false`, disables spell-check style (i.e. red underlines).\n * The default value is inherited from `autoCorrect`.\n * @platform ios\n */\n spellCheck?: ?boolean,\n\n /**\n * Determines the color of the keyboard.\n * @platform ios\n */\n keyboardAppearance?: ?('default' | 'light' | 'dark'),\n\n /**\n * If `true`, the keyboard disables the return key when there is no text and\n * automatically enables it when there is text. The default value is `false`.\n * @platform ios\n */\n enablesReturnKeyAutomatically?: ?boolean,\n\n /**\n * When the clear button should appear on the right side of the text view.\n * This property is supported only for single-line TextInput component.\n * @platform ios\n */\n clearButtonMode?: ?('never' | 'while-editing' | 'unless-editing' | 'always'),\n\n /**\n * If `true`, clears the text field automatically when editing begins.\n * @platform ios\n */\n clearTextOnFocus?: ?boolean,\n\n /**\n * Determines the types of data converted to clickable URLs in the text input.\n * Only valid if `multiline={true}` and `editable={false}`.\n * By default no data types are detected.\n *\n * You can provide one type or an array of many types.\n *\n * Possible values for `dataDetectorTypes` are:\n *\n * - `'phoneNumber'`\n * - `'link'`\n * - `'address'`\n * - `'calendarEvent'`\n * - `'none'`\n * - `'all'`\n *\n * @platform ios\n */\n dataDetectorTypes?:\n | ?DataDetectorTypesType\n | $ReadOnlyArray,\n\n /**\n * An optional identifier which links a custom InputAccessoryView to\n * this text input. The InputAccessoryView is rendered above the\n * keyboard when this text input is focused.\n * @platform ios\n */\n inputAccessoryViewID?: ?string,\n\n /**\n * Give the keyboard and the system information about the\n * expected semantic meaning for the content that users enter.\n * @platform ios\n */\n textContentType?: ?TextContentType,\n\n PasswordRules?: ?PasswordRules,\n\n /*\n * @platform ios\n */\n rejectResponderTermination?: ?boolean,\n\n /**\n * If `false`, scrolling of the text view will be disabled.\n * The default value is `true`. Does only work with 'multiline={true}'.\n * @platform ios\n */\n scrollEnabled?: ?boolean,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Determines which content to suggest on auto complete, e.g.`username`.\n * To disable auto complete, use `off`.\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `username`\n * - `password`\n * - `email`\n * - `name`\n * - `tel`\n * - `street-address`\n * - `postal-code`\n * - `cc-number`\n * - `cc-csc`\n * - `cc-exp`\n * - `cc-exp-month`\n * - `cc-exp-year`\n * - `off`\n *\n * @platform android\n */\n autoCompleteType?: ?(\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-number'\n | 'email'\n | 'name'\n | 'password'\n | 'postal-code'\n | 'street-address'\n | 'tel'\n | 'username'\n | 'off'\n ),\n\n /**\n * Sets the return key to the label. Use it instead of `returnKeyType`.\n * @platform android\n */\n returnKeyLabel?: ?string,\n\n /**\n * Sets the number of lines for a `TextInput`. Use it with multiline set to\n * `true` to be able to fill the lines.\n * @platform android\n */\n numberOfLines?: ?number,\n\n /**\n * When `false`, if there is a small amount of space available around a text input\n * (e.g. landscape orientation on a phone), the OS may choose to have the user edit\n * the text inside of a full screen text input mode. When `true`, this feature is\n * disabled and users will always edit the text directly inside of the text input.\n * Defaults to `false`.\n * @platform android\n */\n disableFullscreenUI?: ?boolean,\n\n /**\n * Set text break strategy on Android API Level 23+, possible values are `simple`, `highQuality`, `balanced`\n * The default value is `simple`.\n * @platform android\n */\n textBreakStrategy?: ?('simple' | 'highQuality' | 'balanced'),\n\n /**\n * The color of the `TextInput` underline.\n * @platform android\n */\n underlineColorAndroid?: ?ColorValue,\n\n /**\n * If defined, the provided image resource will be rendered on the left.\n * The image resource must be inside `/android/app/src/main/res/drawable` and referenced\n * like\n * ```\n * \n * ```\n * @platform android\n */\n inlineImageLeft?: ?string,\n\n /**\n * Padding between the inline image, if any, and the text input itself.\n * @platform android\n */\n inlineImagePadding?: ?number,\n\n importantForAutofill?: ?(\n | 'auto'\n | 'no'\n | 'noExcludeDescendants'\n | 'yes'\n | 'yesExcludeDescendants'\n ),\n\n /**\n * When `false`, it will prevent the soft keyboard from showing when the field is focused.\n * Defaults to `true`.\n * @platform android\n */\n showSoftInputOnFocus?: ?boolean,\n|}>;\n\nexport type Props = $ReadOnly<{|\n ...$Diff>,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * Can tell `TextInput` to automatically capitalize certain characters.\n *\n * - `characters`: all characters.\n * - `words`: first letter of each word.\n * - `sentences`: first letter of each sentence (*default*).\n * - `none`: don't auto capitalize anything.\n */\n autoCapitalize?: ?AutoCapitalize,\n\n /**\n * If `false`, disables auto-correct. The default value is `true`.\n */\n autoCorrect?: ?boolean,\n\n /**\n * If `true`, focuses the input on `componentDidMount`.\n * The default value is `false`.\n */\n autoFocus?: ?boolean,\n\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings. The\n * default is `true`.\n */\n allowFontScaling?: ?boolean,\n\n /**\n * Specifies largest possible scale a font can reach when `allowFontScaling` is enabled.\n * Possible values:\n * `null/undefined` (default): inherit from the parent node or the global default (0)\n * `0`: no max, ignore parent/global default\n * `>= 1`: sets the maxFontSizeMultiplier of this node to this value\n */\n maxFontSizeMultiplier?: ?number,\n\n /**\n * If `false`, text is not editable. The default value is `true`.\n */\n editable?: ?boolean,\n\n /**\n * Determines which keyboard to open, e.g.`numeric`.\n *\n * The following values work across platforms:\n *\n * - `default`\n * - `numeric`\n * - `number-pad`\n * - `decimal-pad`\n * - `email-address`\n * - `phone-pad`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `ascii-capable`\n * - `numbers-and-punctuation`\n * - `url`\n * - `name-phone-pad`\n * - `twitter`\n * - `web-search`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `visible-password`\n */\n keyboardType?: ?KeyboardType,\n\n /**\n * Determines how the return key should look. On Android you can also use\n * `returnKeyLabel`.\n *\n * *Cross platform*\n *\n * The following values work across platforms:\n *\n * - `done`\n * - `go`\n * - `next`\n * - `search`\n * - `send`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `none`\n * - `previous`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `default`\n * - `emergency-call`\n * - `google`\n * - `join`\n * - `route`\n * - `yahoo`\n */\n returnKeyType?: ?ReturnKeyType,\n\n /**\n * Limits the maximum number of characters that can be entered. Use this\n * instead of implementing the logic in JS to avoid flicker.\n */\n maxLength?: ?number,\n\n /**\n * If `true`, the text input can be multiple lines.\n * The default value is `false`.\n */\n multiline?: ?boolean,\n\n /**\n * Callback that is called when the text input is blurred.\n */\n onBlur?: ?(e: BlurEvent) => mixed,\n\n /**\n * Callback that is called when the text input is focused.\n */\n onFocus?: ?(e: FocusEvent) => mixed,\n\n /**\n * Callback that is called when the text input's text changes.\n */\n onChange?: ?(e: ChangeEvent) => mixed,\n\n /**\n * Callback that is called when the text input's text changes.\n * Changed text is passed as an argument to the callback handler.\n */\n onChangeText?: ?(text: string) => mixed,\n\n /**\n * Callback that is called when the text input's content size changes.\n * This will be called with\n * `{ nativeEvent: { contentSize: { width, height } } }`.\n *\n * Only called for multiline text inputs.\n */\n onContentSizeChange?: ?(e: ContentSizeChangeEvent) => mixed,\n\n /**\n * Callback that is called when text input ends.\n */\n onEndEditing?: ?(e: EditingEvent) => mixed,\n\n /**\n * Callback that is called when the text input selection is changed.\n * This will be called with\n * `{ nativeEvent: { selection: { start, end } } }`.\n */\n onSelectionChange?: ?(e: SelectionChangeEvent) => mixed,\n\n /**\n * Callback that is called when the text input's submit button is pressed.\n * Invalid if `multiline={true}` is specified.\n */\n onSubmitEditing?: ?(e: EditingEvent) => mixed,\n\n /**\n * Callback that is called when a key is pressed.\n * This will be called with `{ nativeEvent: { key: keyValue } }`\n * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and\n * the typed-in character otherwise including `' '` for space.\n * Fires before `onChange` callbacks.\n */\n onKeyPress?: ?(e: KeyPressEvent) => mixed,\n\n /**\n * Invoked on content scroll with `{ nativeEvent: { contentOffset: { x, y } } }`.\n * May also contain other properties from ScrollEvent but on Android contentSize\n * is not provided for performance reasons.\n */\n onScroll?: ?(e: ScrollEvent) => mixed,\n\n /**\n * The string that will be rendered before text input has been entered.\n */\n placeholder?: ?Stringish,\n\n /**\n * The text color of the placeholder string.\n */\n placeholderTextColor?: ?ColorValue,\n\n /**\n * If `true`, the text input obscures the text entered so that sensitive text\n * like passwords stay secure. The default value is `false`. Does not work with 'multiline={true}'.\n */\n secureTextEntry?: ?boolean,\n\n /**\n * The highlight and cursor color of the text input.\n */\n selectionColor?: ?ColorValue,\n\n /**\n * The start and end of the text input's selection. Set start and end to\n * the same value to position the cursor.\n */\n selection?: ?$ReadOnly<{|\n start: number,\n end?: ?number,\n |}>,\n\n /**\n * The value to show for the text input. `TextInput` is a controlled\n * component, which means the native value will be forced to match this\n * value prop if provided. For most uses, this works great, but in some\n * cases this may cause flickering - one common cause is preventing edits\n * by keeping value the same. In addition to simply setting the same value,\n * either set `editable={false}`, or set/update `maxLength` to prevent\n * unwanted edits without flicker.\n */\n value?: ?Stringish,\n\n /**\n * Provides an initial value that will change when the user starts typing.\n * Useful for simple use-cases where you do not want to deal with listening\n * to events and updating the value prop to keep the controlled state in sync.\n */\n defaultValue?: ?Stringish,\n\n /**\n * If `true`, all text will automatically be selected on focus.\n */\n selectTextOnFocus?: ?boolean,\n\n /**\n * If `true`, the text field will blur when submitted.\n * The default value is true for single-line fields and false for\n * multiline fields. Note that for multiline fields, setting `blurOnSubmit`\n * to `true` means that pressing return will blur the field and trigger the\n * `onSubmitEditing` event instead of inserting a newline into the field.\n */\n blurOnSubmit?: ?boolean,\n\n /**\n * Note that not all Text styles are supported, an incomplete list of what is not supported includes:\n *\n * - `borderLeftWidth`\n * - `borderTopWidth`\n * - `borderRightWidth`\n * - `borderBottomWidth`\n * - `borderTopLeftRadius`\n * - `borderTopRightRadius`\n * - `borderBottomRightRadius`\n * - `borderBottomLeftRadius`\n *\n * see [Issue#7070](https://github.com/facebook/react-native/issues/7070)\n * for more detail.\n *\n * [Styles](docs/style.html)\n */\n style?: ?TextStyleProp,\n\n /**\n * If `true`, caret is hidden. The default value is `false`.\n * This property is supported only for single-line TextInput component on iOS.\n */\n caretHidden?: ?boolean,\n\n /*\n * If `true`, contextMenuHidden is hidden. The default value is `false`.\n */\n contextMenuHidden?: ?boolean,\n\n forwardedRef?: ?ReactRefSetter<\n React.ElementRef> & ImperativeMethods,\n >,\n|}>;\n\ntype ImperativeMethods = $ReadOnly<{|\n clear: () => void,\n isFocused: () => boolean,\n getNativeRef: () => ?React.ElementRef>,\n|}>;\n\nconst emptyFunctionThatReturnsTrue = () => true;\n\nfunction useFocusOnMount(\n initialAutoFocus: ?boolean,\n inputRef: {|\n current: null | React.ElementRef>,\n |},\n) {\n const initialAutoFocusValue = useRef(initialAutoFocus);\n\n useEffect(() => {\n // We only want to autofocus on initial mount.\n // Since initialAutoFocusValue and inputRef will never change\n // this should match the expected behavior\n if (initialAutoFocusValue.current) {\n const focus = () => {\n if (inputRef.current != null) {\n inputRef.current.focus();\n }\n };\n\n let rafId;\n if (Platform.OS === 'android') {\n // On Android this needs to be executed in a rAF callback\n // otherwise the keyboard opens then closes immediately.\n rafId = requestAnimationFrame(focus);\n } else {\n focus();\n }\n\n return () => {\n if (rafId != null) {\n cancelAnimationFrame(rafId);\n }\n };\n }\n }, [initialAutoFocusValue, inputRef]);\n}\n/**\n * A foundational component for inputting text into the app via a\n * keyboard. Props provide configurability for several features, such as\n * auto-correction, auto-capitalization, placeholder text, and different keyboard\n * types, such as a numeric keypad.\n *\n * The simplest use case is to plop down a `TextInput` and subscribe to the\n * `onChangeText` events to read the user input. There are also other events,\n * such as `onSubmitEditing` and `onFocus` that can be subscribed to. A simple\n * example:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, TextInput } from 'react-native';\n *\n * export default class UselessTextInput extends Component {\n * constructor(props) {\n * super(props);\n * this.state = { text: 'Useless Placeholder' };\n * }\n *\n * render() {\n * return (\n * this.setState({text})}\n * value={this.state.text}\n * />\n * );\n * }\n * }\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);\n * ```\n *\n * Two methods exposed via the native element are .focus() and .blur() that\n * will focus or blur the TextInput programmatically.\n *\n * Note that some props are only available with `multiline={true/false}`.\n * Additionally, border styles that apply to only one side of the element\n * (e.g., `borderBottomColor`, `borderLeftWidth`, etc.) will not be applied if\n * `multiline=false`. To achieve the same effect, you can wrap your `TextInput`\n * in a `View`:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, View, TextInput } from 'react-native';\n *\n * class UselessTextInput extends Component {\n * render() {\n * return (\n * \n * );\n * }\n * }\n *\n * export default class UselessTextInputMultiline extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * text: 'Useless Multiline Placeholder',\n * };\n * }\n *\n * // If you type something in the text box that is a color, the background will change to that\n * // color.\n * render() {\n * return (\n * \n * this.setState({text})}\n * value={this.state.text}\n * />\n * \n * );\n * }\n * }\n *\n * // skip these lines if using Create React Native App\n * AppRegistry.registerComponent(\n * 'AwesomeProject',\n * () => UselessTextInputMultiline\n * );\n * ```\n *\n * `TextInput` has by default a border at the bottom of its view. This border\n * has its padding set by the background image provided by the system, and it\n * cannot be changed. Solutions to avoid this is to either not set height\n * explicitly, case in which the system will take care of displaying the border\n * in the correct position, or to not display the border by setting\n * `underlineColorAndroid` to transparent.\n *\n * Note that on Android performing text selection in input can change\n * app's activity `windowSoftInputMode` param to `adjustResize`.\n * This may cause issues with components that have position: 'absolute'\n * while keyboard is active. To avoid this behavior either specify `windowSoftInputMode`\n * in AndroidManifest.xml ( https://developer.android.com/guide/topics/manifest/activity-element.html )\n * or control this param programmatically with native code.\n *\n */\nfunction InternalTextInput(props: Props): React.Node {\n const inputRef = useRef>>(null);\n\n const selection: ?Selection =\n props.selection == null\n ? null\n : {\n start: props.selection.start,\n end: props.selection.end ?? props.selection.start,\n };\n\n const [lastNativeText, setLastNativeText] = useState(props.value);\n const [lastNativeSelection, setLastNativeSelection] = useState(\n selection,\n );\n\n // This is necessary in case native updates the text and JS decides\n // that the update should be ignored and we should stick with the value\n // that we have in JS.\n useEffect(() => {\n const nativeUpdate = {};\n\n if (lastNativeText !== props.value && typeof props.value === 'string') {\n nativeUpdate.text = props.value;\n setLastNativeText(props.value);\n }\n\n if (\n selection &&\n lastNativeSelection &&\n (lastNativeSelection.start !== selection.start ||\n lastNativeSelection.end !== selection.end)\n ) {\n nativeUpdate.selection = selection;\n setLastNativeSelection(selection);\n }\n\n if (Object.keys(nativeUpdate).length > 0 && inputRef.current) {\n inputRef.current.setNativeProps(nativeUpdate);\n }\n }, [inputRef, props.value, lastNativeText, selection, lastNativeSelection]);\n\n useFocusOnMount(props.autoFocus, inputRef);\n\n useEffect(() => {\n const tag = ReactNative.findNodeHandle(inputRef.current);\n if (tag != null) {\n TextInputState.registerInput(tag);\n\n return () => {\n TextInputState.unregisterInput(tag);\n };\n }\n }, [inputRef]);\n\n useEffect(() => {\n // When unmounting we need to blur the input\n return () => {\n if (isFocused()) {\n nullthrows(inputRef.current).blur();\n }\n };\n }, [inputRef]);\n\n function clear(): void {\n if (inputRef.current != null) {\n inputRef.current.setNativeProps({text: ''});\n }\n }\n\n // TODO: Fix this returning true on null === null, when no input is focused\n function isFocused(): boolean {\n return (\n TextInputState.currentlyFocusedField() ===\n ReactNative.findNodeHandle(inputRef.current)\n );\n }\n\n function getNativeRef(): ?React.ElementRef> {\n return inputRef.current;\n }\n\n function _getText(): ?string {\n return typeof props.value === 'string'\n ? props.value\n : typeof props.defaultValue === 'string'\n ? props.defaultValue\n : '';\n }\n\n const _setNativeRef = setAndForwardRef({\n getForwardedRef: () => props.forwardedRef,\n setLocalRef: ref => {\n inputRef.current = ref;\n\n /*\n Hi reader from the future. I'm sorry for this.\n\n This is a hack. Ideally we would forwardRef to the underlying\n host component. However, since TextInput has it's own methods that can be\n called as well, if we used the standard forwardRef then these\n methods wouldn't be accessible and thus be a breaking change.\n\n We have a couple of options of how to handle this:\n - Return a new ref with everything we methods from both. This is problematic\n because we need React to also know it is a host component which requires\n internals of the class implementation of the ref.\n - Break the API and have some other way to call one set of the methods or\n the other. This is our long term approach as we want to eventually\n get the methods on host components off the ref. So instead of calling\n ref.measure() you might call ReactNative.measure(ref). This would hopefully\n let the ref for TextInput then have the methods like `.clear`. Or we do it\n the other way and make it TextInput.clear(textInputRef) which would be fine\n too. Either way though is a breaking change that is longer term.\n - Mutate this ref. :( Gross, but accomplishes what we need in the meantime\n before we can get to the long term breaking change.\n */\n if (ref) {\n ref.clear = clear;\n ref.isFocused = isFocused;\n ref.getNativeRef = getNativeRef;\n }\n },\n });\n\n const _onPress = (event: PressEvent) => {\n if (props.editable || props.editable === undefined) {\n nullthrows(inputRef.current).focus();\n }\n };\n\n const _onChange = (event: ChangeEvent) => {\n // Make sure to fire the mostRecentEventCount first so it is already set on\n // native when the text value is set.\n if (inputRef.current) {\n inputRef.current.setNativeProps({\n mostRecentEventCount: event.nativeEvent.eventCount,\n });\n }\n\n const text = event.nativeEvent.text;\n props.onChange && props.onChange(event);\n props.onChangeText && props.onChangeText(text);\n\n if (!inputRef.current) {\n // calling `props.onChange` or `props.onChangeText`\n // may clean up the input itself. Exits here.\n return;\n }\n\n setLastNativeText(text);\n };\n\n const _onSelectionChange = (event: SelectionChangeEvent) => {\n props.onSelectionChange && props.onSelectionChange(event);\n\n if (!inputRef.current) {\n // calling `props.onSelectionChange`\n // may clean up the input itself. Exits here.\n return;\n }\n\n setLastNativeSelection(event.nativeEvent.selection);\n };\n\n const _onFocus = (event: FocusEvent) => {\n TextInputState.focusField(ReactNative.findNodeHandle(inputRef.current));\n if (props.onFocus) {\n props.onFocus(event);\n }\n };\n\n const _onBlur = (event: BlurEvent) => {\n TextInputState.blurField(ReactNative.findNodeHandle(inputRef.current));\n if (props.onBlur) {\n props.onBlur(event);\n }\n };\n\n const _onScroll = (event: ScrollEvent) => {\n props.onScroll && props.onScroll(event);\n };\n\n let textInput = null;\n let additionalTouchableProps: {|\n rejectResponderTermination?: $PropertyType<\n Props,\n 'rejectResponderTermination',\n >,\n // This is a hack to let Flow know we want an exact object\n |} = {...null};\n\n if (Platform.OS === 'ios') {\n const RCTTextInputView = props.multiline\n ? RCTMultilineTextInputView\n : RCTSinglelineTextInputView;\n\n const style = props.multiline\n ? [styles.multilineInput, props.style]\n : props.style;\n\n additionalTouchableProps.rejectResponderTermination =\n props.rejectResponderTermination;\n\n textInput = (\n \n );\n } else if (Platform.OS === 'android') {\n const style = [props.style];\n const autoCapitalize = props.autoCapitalize || 'sentences';\n let children = props.children;\n let childCount = 0;\n React.Children.forEach(children, () => ++childCount);\n invariant(\n !(props.value && childCount),\n 'Cannot specify both value and children.',\n );\n if (childCount > 1) {\n children = {children};\n }\n\n textInput = (\n /* $FlowFixMe the types for AndroidTextInput don't match up exactly with\n the props for TextInput. This will need to get fixed */\n \n );\n }\n return (\n \n \n {textInput}\n \n \n );\n}\n\nconst ExportedForwardRef: React.AbstractComponent<\n React.ElementConfig,\n React.ElementRef> & ImperativeMethods,\n> = React.forwardRef(function TextInput(\n props,\n forwardedRef: ReactRefSetter<\n React.ElementRef> & ImperativeMethods,\n >,\n) {\n return ;\n});\n\n// $FlowFixMe\nExportedForwardRef.defaultProps = {\n allowFontScaling: true,\n rejectResponderTermination: true,\n underlineColorAndroid: 'transparent',\n};\n\n// TODO: Deprecate this\n// $FlowFixMe\nExportedForwardRef.propTypes = DeprecatedTextInputPropTypes;\n\n// $FlowFixMe\nExportedForwardRef.State = {\n currentlyFocusedField: TextInputState.currentlyFocusedField,\n focusTextInput: TextInputState.focusTextInput,\n blurTextInput: TextInputState.blurTextInput,\n};\n\ntype TextInputComponentStatics = $ReadOnly<{|\n State: $ReadOnly<{|\n currentlyFocusedField: typeof TextInputState.currentlyFocusedField,\n focusTextInput: typeof TextInputState.focusTextInput,\n blurTextInput: typeof TextInputState.blurTextInput,\n |}>,\n propTypes: typeof DeprecatedTextInputPropTypes,\n|}>;\n\nconst styles = StyleSheet.create({\n multilineInput: {\n // This default top inset makes RCTMultilineTextInputView seem as close as possible\n // to single-line RCTSinglelineTextInputView defaults, using the system defaults\n // of font size 17 and a height of 31 points.\n paddingTop: 5,\n },\n});\n\nmodule.exports = ((ExportedForwardRef: any): React.AbstractComponent<\n React.ElementConfig,\n $ReadOnly<{|\n ...React.ElementRef>,\n ...ImperativeMethods,\n |}>,\n> &\n TextInputComponentStatics);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst DeprecatedColorPropType = require('./DeprecatedColorPropType');\nconst DeprecatedViewPropTypes = require('./DeprecatedViewPropTypes');\nconst PropTypes = require('prop-types');\nconst Text = require('../Text/Text');\n\nconst DataDetectorTypes = [\n 'phoneNumber',\n 'link',\n 'address',\n 'calendarEvent',\n 'none',\n 'all',\n];\n\nmodule.exports = {\n ...DeprecatedViewPropTypes,\n /**\n * Can tell `TextInput` to automatically capitalize certain characters.\n *\n * - `characters`: all characters.\n * - `words`: first letter of each word.\n * - `sentences`: first letter of each sentence (*default*).\n * - `none`: don't auto capitalize anything.\n */\n autoCapitalize: (PropTypes.oneOf([\n 'none',\n 'sentences',\n 'words',\n 'characters',\n ]): React$PropType$Primitive<'none' | 'sentences' | 'words' | 'characters'>),\n /**\n * Determines which content to suggest on auto complete, e.g.`username`.\n * To disable auto complete, use `off`.\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `username`\n * - `password`\n * - `email`\n * - `name`\n * - `tel`\n * - `street-address`\n * - `postal-code`\n * - `cc-number`\n * - `cc-csc`\n * - `cc-exp`\n * - `cc-exp-month`\n * - `cc-exp-year`\n * - `off`\n *\n * @platform android\n */\n autoCompleteType: (PropTypes.oneOf([\n 'cc-csc',\n 'cc-exp',\n 'cc-exp-month',\n 'cc-exp-year',\n 'cc-number',\n 'email',\n 'name',\n 'password',\n 'postal-code',\n 'street-address',\n 'tel',\n 'username',\n 'off',\n ]): React$PropType$Primitive<\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-number'\n | 'email'\n | 'name'\n | 'password'\n | 'postal-code'\n | 'street-address'\n | 'tel'\n | 'username'\n | 'off',\n >),\n /**\n * If `false`, disables auto-correct. The default value is `true`.\n */\n autoCorrect: PropTypes.bool,\n /**\n * If `false`, disables spell-check style (i.e. red underlines).\n * The default value is inherited from `autoCorrect`.\n * @platform ios\n */\n spellCheck: PropTypes.bool,\n /**\n * If `true`, focuses the input on `componentDidMount`.\n * The default value is `false`.\n */\n autoFocus: PropTypes.bool,\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings. The\n * default is `true`.\n */\n allowFontScaling: PropTypes.bool,\n /**\n * Specifies largest possible scale a font can reach when `allowFontScaling` is enabled.\n * Possible values:\n * `null/undefined` (default): inherit from the parent node or the global default (0)\n * `0`: no max, ignore parent/global default\n * `>= 1`: sets the maxFontSizeMultiplier of this node to this value\n */\n maxFontSizeMultiplier: PropTypes.number,\n /**\n * If `false`, text is not editable. The default value is `true`.\n */\n editable: PropTypes.bool,\n /**\n * Determines which keyboard to open, e.g.`numeric`.\n *\n * The following values work across platforms:\n *\n * - `default`\n * - `numeric`\n * - `number-pad`\n * - `decimal-pad`\n * - `email-address`\n * - `phone-pad`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `ascii-capable`\n * - `numbers-and-punctuation`\n * - `url`\n * - `name-phone-pad`\n * - `twitter`\n * - `web-search`\n * - `ascii-capable-number-pad`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `visible-password`\n */\n keyboardType: (PropTypes.oneOf([\n // Cross-platform\n 'default',\n 'email-address',\n 'numeric',\n 'phone-pad',\n 'number-pad',\n // iOS-only\n 'ascii-capable',\n 'numbers-and-punctuation',\n 'url',\n 'name-phone-pad',\n 'decimal-pad',\n 'twitter',\n 'web-search',\n // iOS 10+ only\n 'ascii-capable-number-pad',\n // Android-only\n 'visible-password',\n ]): React$PropType$Primitive<\n | 'default'\n | 'email-address'\n | 'numeric'\n | 'phone-pad'\n | 'number-pad'\n | 'ascii-capable'\n | 'numbers-and-punctuation'\n | 'url'\n | 'name-phone-pad'\n | 'decimal-pad'\n | 'twitter'\n | 'web-search'\n | 'ascii-capable-number-pad'\n | 'visible-password',\n >),\n /**\n * Determines the color of the keyboard.\n * @platform ios\n */\n keyboardAppearance: (PropTypes.oneOf([\n 'default',\n 'light',\n 'dark',\n ]): React$PropType$Primitive<'default' | 'light' | 'dark'>),\n /**\n * Determines how the return key should look. On Android you can also use\n * `returnKeyLabel`.\n *\n * *Cross platform*\n *\n * The following values work across platforms:\n *\n * - `done`\n * - `go`\n * - `next`\n * - `search`\n * - `send`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `none`\n * - `previous`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `default`\n * - `emergency-call`\n * - `google`\n * - `join`\n * - `route`\n * - `yahoo`\n */\n returnKeyType: (PropTypes.oneOf([\n // Cross-platform\n 'done',\n 'go',\n 'next',\n 'search',\n 'send',\n // Android-only\n 'none',\n 'previous',\n // iOS-only\n 'default',\n 'emergency-call',\n 'google',\n 'join',\n 'route',\n 'yahoo',\n ]): React$PropType$Primitive<\n | 'done'\n | 'go'\n | 'next'\n | 'search'\n | 'send'\n | 'none'\n | 'previous'\n | 'default'\n | 'emergency-call'\n | 'google'\n | 'join'\n | 'route'\n | 'yahoo',\n >),\n /**\n * Sets the return key to the label. Use it instead of `returnKeyType`.\n * @platform android\n */\n returnKeyLabel: PropTypes.string,\n /**\n * Limits the maximum number of characters that can be entered. Use this\n * instead of implementing the logic in JS to avoid flicker.\n */\n maxLength: PropTypes.number,\n /**\n * Sets the number of lines for a `TextInput`. Use it with multiline set to\n * `true` to be able to fill the lines.\n * @platform android\n */\n numberOfLines: PropTypes.number,\n /**\n * When `false`, if there is a small amount of space available around a text input\n * (e.g. landscape orientation on a phone), the OS may choose to have the user edit\n * the text inside of a full screen text input mode. When `true`, this feature is\n * disabled and users will always edit the text directly inside of the text input.\n * Defaults to `false`.\n * @platform android\n */\n disableFullscreenUI: PropTypes.bool,\n /**\n * If `true`, the keyboard disables the return key when there is no text and\n * automatically enables it when there is text. The default value is `false`.\n * @platform ios\n */\n enablesReturnKeyAutomatically: PropTypes.bool,\n /**\n * If `true`, the text input can be multiple lines.\n * The default value is `false`.\n */\n multiline: PropTypes.bool,\n /**\n * Set text break strategy on Android API Level 23+, possible values are `simple`, `highQuality`, `balanced`\n * The default value is `simple`.\n * @platform android\n */\n textBreakStrategy: (PropTypes.oneOf([\n 'simple',\n 'highQuality',\n 'balanced',\n ]): React$PropType$Primitive<'simple' | 'highQuality' | 'balanced'>),\n /**\n * Callback that is called when the text input is blurred.\n */\n onBlur: PropTypes.func,\n /**\n * Callback that is called when the text input is focused.\n */\n onFocus: PropTypes.func,\n /**\n * Callback that is called when the text input's text changes.\n */\n onChange: PropTypes.func,\n /**\n * Callback that is called when the text input's text changes.\n * Changed text is passed as an argument to the callback handler.\n */\n onChangeText: PropTypes.func,\n /**\n * Callback that is called when the text input's content size changes.\n * This will be called with\n * `{ nativeEvent: { contentSize: { width, height } } }`.\n *\n * Only called for multiline text inputs.\n */\n onContentSizeChange: PropTypes.func,\n onTextInput: PropTypes.func,\n /**\n * Callback that is called when text input ends.\n */\n onEndEditing: PropTypes.func,\n /**\n * Callback that is called when the text input selection is changed.\n * This will be called with\n * `{ nativeEvent: { selection: { start, end } } }`.\n */\n onSelectionChange: PropTypes.func,\n /**\n * Callback that is called when the text input's submit button is pressed.\n * Invalid if `multiline={true}` is specified.\n */\n onSubmitEditing: PropTypes.func,\n /**\n * Callback that is called when a key is pressed.\n * This will be called with `{ nativeEvent: { key: keyValue } }`\n * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and\n * the typed-in character otherwise including `' '` for space.\n * Fires before `onChange` callbacks.\n */\n onKeyPress: PropTypes.func,\n /**\n * Invoked on mount and layout changes with `{x, y, width, height}`.\n */\n onLayout: PropTypes.func,\n /**\n * Invoked on content scroll with `{ nativeEvent: { contentOffset: { x, y } } }`.\n * May also contain other properties from ScrollEvent but on Android contentSize\n * is not provided for performance reasons.\n */\n onScroll: PropTypes.func,\n /**\n * The string that will be rendered before text input has been entered.\n */\n placeholder: PropTypes.string,\n /**\n * The text color of the placeholder string.\n */\n placeholderTextColor: DeprecatedColorPropType,\n /**\n * If `false`, scrolling of the text view will be disabled.\n * The default value is `true`. Does only work with 'multiline={true}'.\n * @platform ios\n */\n scrollEnabled: PropTypes.bool,\n /**\n * If `true`, the text input obscures the text entered so that sensitive text\n * like passwords stay secure. The default value is `false`. Does not work with 'multiline={true}'.\n */\n secureTextEntry: PropTypes.bool,\n /**\n * The highlight and cursor color of the text input.\n */\n selectionColor: DeprecatedColorPropType,\n /**\n * The start and end of the text input's selection. Set start and end to\n * the same value to position the cursor.\n */\n selection: (PropTypes.shape({\n start: PropTypes.number.isRequired,\n end: PropTypes.number,\n }): React$PropType$Primitive<{\n end?: number,\n start: number,\n ...\n }>),\n /**\n * The value to show for the text input. `TextInput` is a controlled\n * component, which means the native value will be forced to match this\n * value prop if provided. For most uses, this works great, but in some\n * cases this may cause flickering - one common cause is preventing edits\n * by keeping value the same. In addition to simply setting the same value,\n * either set `editable={false}`, or set/update `maxLength` to prevent\n * unwanted edits without flicker.\n */\n value: PropTypes.string,\n /**\n * Provides an initial value that will change when the user starts typing.\n * Useful for simple use-cases where you do not want to deal with listening\n * to events and updating the value prop to keep the controlled state in sync.\n */\n defaultValue: PropTypes.string,\n /**\n * When the clear button should appear on the right side of the text view.\n * This property is supported only for single-line TextInput component.\n * @platform ios\n */\n clearButtonMode: (PropTypes.oneOf([\n 'never',\n 'while-editing',\n 'unless-editing',\n 'always',\n ]): React$PropType$Primitive<\n 'never' | 'while-editing' | 'unless-editing' | 'always',\n >),\n /**\n * If `true`, clears the text field automatically when editing begins.\n * @platform ios\n */\n clearTextOnFocus: PropTypes.bool,\n /**\n * If `true`, all text will automatically be selected on focus.\n */\n selectTextOnFocus: PropTypes.bool,\n /**\n * If `true`, the text field will blur when submitted.\n * The default value is true for single-line fields and false for\n * multiline fields. Note that for multiline fields, setting `blurOnSubmit`\n * to `true` means that pressing return will blur the field and trigger the\n * `onSubmitEditing` event instead of inserting a newline into the field.\n */\n blurOnSubmit: PropTypes.bool,\n /**\n * Note that not all Text styles are supported, an incomplete list of what is not supported includes:\n *\n * - `borderLeftWidth`\n * - `borderTopWidth`\n * - `borderRightWidth`\n * - `borderBottomWidth`\n * - `borderTopLeftRadius`\n * - `borderTopRightRadius`\n * - `borderBottomRightRadius`\n * - `borderBottomLeftRadius`\n *\n * see [Issue#7070](https://github.com/facebook/react-native/issues/7070)\n * for more detail.\n *\n * [Styles](docs/style.html)\n */\n style: Text.propTypes.style,\n /**\n * The color of the `TextInput` underline.\n * @platform android\n */\n underlineColorAndroid: DeprecatedColorPropType,\n\n /**\n * If defined, the provided image resource will be rendered on the left.\n * The image resource must be inside `/android/app/src/main/res/drawable` and referenced\n * like\n * ```\n * \n * ```\n * @platform android\n */\n inlineImageLeft: PropTypes.string,\n\n /**\n * Padding between the inline image, if any, and the text input itself.\n * @platform android\n */\n inlineImagePadding: PropTypes.number,\n\n /**\n * If `true`, allows TextInput to pass touch events to the parent component.\n * This allows components such as SwipeableListView to be swipeable from the TextInput on iOS,\n * as is the case on Android by default.\n * If `false`, TextInput always asks to handle the input (except when disabled).\n * @platform ios\n */\n rejectResponderTermination: PropTypes.bool,\n\n /**\n * Determines the types of data converted to clickable URLs in the text input.\n * Only valid if `multiline={true}` and `editable={false}`.\n * By default no data types are detected.\n *\n * You can provide one type or an array of many types.\n *\n * Possible values for `dataDetectorTypes` are:\n *\n * - `'phoneNumber'`\n * - `'link'`\n * - `'address'`\n * - `'calendarEvent'`\n * - `'none'`\n * - `'all'`\n *\n * @platform ios\n */\n dataDetectorTypes: (PropTypes.oneOfType([\n PropTypes.oneOf(DataDetectorTypes),\n PropTypes.arrayOf(PropTypes.oneOf(DataDetectorTypes)),\n ]): React$PropType$Primitive<\n | 'phoneNumber'\n | 'link'\n | 'address'\n | 'calendarEvent'\n | 'none'\n | 'all'\n | Array<\n 'phoneNumber' | 'link' | 'address' | 'calendarEvent' | 'none' | 'all',\n >,\n >),\n /**\n * If `true`, caret is hidden. The default value is `false`.\n * This property is supported only for single-line TextInput component on iOS.\n */\n caretHidden: PropTypes.bool,\n /*\n * If `true`, contextMenuHidden is hidden. The default value is `false`.\n */\n contextMenuHidden: PropTypes.bool,\n /**\n * An optional identifier which links a custom InputAccessoryView to\n * this text input. The InputAccessoryView is rendered above the\n * keyboard when this text input is focused.\n * @platform ios\n */\n inputAccessoryViewID: PropTypes.string,\n /**\n * Give the keyboard and the system information about the\n * expected semantic meaning for the content that users enter.\n * @platform ios\n */\n textContentType: (PropTypes.oneOf([\n 'none',\n 'URL',\n 'addressCity',\n 'addressCityAndState',\n 'addressState',\n 'countryName',\n 'creditCardNumber',\n 'emailAddress',\n 'familyName',\n 'fullStreetAddress',\n 'givenName',\n 'jobTitle',\n 'location',\n 'middleName',\n 'name',\n 'namePrefix',\n 'nameSuffix',\n 'nickname',\n 'organizationName',\n 'postalCode',\n 'streetAddressLine1',\n 'streetAddressLine2',\n 'sublocality',\n 'telephoneNumber',\n 'username',\n 'password',\n 'newPassword',\n 'oneTimeCode',\n ]): React$PropType$Primitive<\n | 'none'\n | 'URL'\n | 'addressCity'\n | 'addressCityAndState'\n | 'addressState'\n | 'countryName'\n | 'creditCardNumber'\n | 'emailAddress'\n | 'familyName'\n | 'fullStreetAddress'\n | 'givenName'\n | 'jobTitle'\n | 'location'\n | 'middleName'\n | 'name'\n | 'namePrefix'\n | 'nameSuffix'\n | 'nickname'\n | 'organizationName'\n | 'postalCode'\n | 'streetAddressLine1'\n | 'streetAddressLine2'\n | 'sublocality'\n | 'telephoneNumber'\n | 'username'\n | 'password'\n | 'newPassword'\n | 'oneTimeCode',\n >),\n /**\n * When `false`, it will prevent the soft keyboard from showing when the field is focused.\n * Defaults to `true`.\n * @platform android\n */\n showSoftInputOnFocus: PropTypes.bool,\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport Pressability from '../../Pressability/Pressability.js';\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';\nimport TVTouchable from './TVTouchable.js';\nimport type {\n AccessibilityActionEvent,\n AccessibilityActionInfo,\n AccessibilityRole,\n AccessibilityState,\n AccessibilityValue,\n} from '../../Components/View/ViewAccessibility';\nimport type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType';\nimport type {\n BlurEvent,\n FocusEvent,\n LayoutEvent,\n PressEvent,\n} from '../../Types/CoreEventTypes';\nimport Platform from '../../Utilities/Platform';\nimport View from '../../Components/View/View';\nimport * as React from 'react';\n\ntype Props = $ReadOnly<{|\n accessibilityActions?: ?$ReadOnlyArray,\n accessibilityElementsHidden?: ?boolean,\n accessibilityHint?: ?Stringish,\n accessibilityIgnoresInvertColors?: ?boolean,\n accessibilityLabel?: ?Stringish,\n accessibilityLiveRegion?: ?('none' | 'polite' | 'assertive'),\n accessibilityRole?: ?AccessibilityRole,\n accessibilityState?: ?AccessibilityState,\n accessibilityValue?: ?AccessibilityValue,\n accessibilityViewIsModal?: ?boolean,\n accessible?: ?boolean,\n children?: ?React.Node,\n delayLongPress?: ?number,\n delayPressIn?: ?number,\n delayPressOut?: ?number,\n disabled?: ?boolean,\n focusable?: ?boolean,\n hitSlop?: ?EdgeInsetsProp,\n importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),\n nativeID?: ?string,\n onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,\n onBlur?: ?(event: BlurEvent) => mixed,\n onFocus?: ?(event: FocusEvent) => mixed,\n onLayout?: ?(event: LayoutEvent) => mixed,\n onLongPress?: ?(event: PressEvent) => mixed,\n onPress?: ?(event: PressEvent) => mixed,\n onPressIn?: ?(event: PressEvent) => mixed,\n onPressOut?: ?(event: PressEvent) => mixed,\n pressRetentionOffset?: ?EdgeInsetsProp,\n rejectResponderTermination?: ?boolean,\n testID?: ?string,\n touchSoundDisabled?: ?boolean,\n|}>;\n\ntype State = $ReadOnly<{|\n pressability: Pressability,\n|}>;\n\nconst PASSTHROUGH_PROPS = [\n 'accessibilityActions',\n 'accessibilityElementsHidden',\n 'accessibilityHint',\n 'accessibilityIgnoresInvertColors',\n 'accessibilityLabel',\n 'accessibilityLiveRegion',\n 'accessibilityRole',\n 'accessibilityState',\n 'accessibilityValue',\n 'accessibilityViewIsModal',\n 'hitSlop',\n 'importantForAccessibility',\n 'nativeID',\n 'onAccessibilityAction',\n 'onBlur',\n 'onFocus',\n 'onLayout',\n 'testID',\n];\n\nclass TouchableWithoutFeedback extends React.Component {\n _tvTouchable: ?TVTouchable;\n\n state: State = {\n pressability: new Pressability({\n getHitSlop: () => this.props.hitSlop,\n getLongPressDelayMS: () => {\n if (this.props.delayLongPress != null) {\n const maybeNumber = this.props.delayLongPress;\n if (typeof maybeNumber === 'number') {\n return maybeNumber;\n }\n }\n return 500;\n },\n getPressDelayMS: () => this.props.delayPressIn,\n getPressOutDelayMS: () => this.props.delayPressOut,\n getPressRectOffset: () => this.props.pressRetentionOffset,\n getTouchSoundDisabled: () => this.props.touchSoundDisabled,\n onBlur: event => {\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onLongPress: event => {\n if (this.props.onLongPress != null) {\n this.props.onLongPress(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n onPressIn: event => {\n if (this.props.onPressIn != null) {\n this.props.onPressIn(event);\n }\n },\n onPressOut: event => {\n if (this.props.onPressOut != null) {\n this.props.onPressOut(event);\n }\n },\n onResponderTerminationRequest: () =>\n !this.props.rejectResponderTermination,\n onStartShouldSetResponder: () => !this.props.disabled,\n }),\n };\n\n render(): React.Node {\n const element = React.Children.only(this.props.children);\n const children = [element.props.children];\n if (__DEV__) {\n if (element.type === View) {\n children.push(\n ,\n );\n }\n }\n\n // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before\n // adopting `Pressability`, so preserve that behavior.\n const {\n onBlur,\n onFocus,\n ...eventHandlersWithoutBlurAndFocus\n } = this.state.pressability.getEventHandlers();\n\n const elementProps: {[string]: mixed, ...} = {\n ...eventHandlersWithoutBlurAndFocus,\n accessible: this.props.accessible !== false,\n focusable:\n this.props.focusable !== false && this.props.onPress !== undefined,\n };\n for (const prop of PASSTHROUGH_PROPS) {\n if (this.props[prop] !== undefined) {\n elementProps[prop] = this.props[prop];\n }\n }\n\n return React.cloneElement(element, elementProps, ...children);\n }\n\n componentDidMount(): void {\n if (Platform.isTV) {\n this._tvTouchable = new TVTouchable(this, {\n getDisabled: () => this.props.disabled === true,\n onBlur: event => {\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n });\n }\n }\n\n componentWillUnmount(): void {\n if (Platform.isTV) {\n if (this._tvTouchable != null) {\n this._tvTouchable.destroy();\n }\n }\n this.state.pressability.reset();\n }\n}\n\nmodule.exports = TouchableWithoutFeedback;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {\n BubblingEventHandler,\n DirectEventHandler,\n Double,\n Float,\n Int32,\n WithDefault,\n} from '../../Types/CodegenTypes';\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {TextStyleProp, ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport requireNativeComponent from '../../ReactNative/requireNativeComponent';\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport * as React from 'react';\n\nexport type KeyboardType =\n // Cross Platform\n | 'default'\n | 'email-address'\n | 'numeric'\n | 'phone-pad'\n | 'number-pad'\n | 'decimal-pad'\n // iOS-only\n | 'ascii-capable'\n | 'numbers-and-punctuation'\n | 'url'\n | 'name-phone-pad'\n | 'twitter'\n | 'web-search'\n // Android-only\n | 'visible-password';\n\nexport type ReturnKeyType =\n // Cross Platform\n | 'done'\n | 'go'\n | 'next'\n | 'search'\n | 'send'\n // Android-only\n | 'none'\n | 'previous'\n // iOS-only\n | 'default'\n | 'emergency-call'\n | 'google'\n | 'join'\n | 'route'\n | 'yahoo';\n\nexport type NativeProps = $ReadOnly<{|\n // This allows us to inherit everything from ViewProps except for style (see below)\n // This must be commented for Fabric codegen to work.\n ...$Diff>,\n\n /**\n * Android props after this\n */\n /**\n * Determines which content to suggest on auto complete, e.g.`username`.\n * To disable auto complete, use `off`.\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `username`\n * - `password`\n * - `email`\n * - `name`\n * - `tel`\n * - `street-address`\n * - `postal-code`\n * - `cc-number`\n * - `cc-csc`\n * - `cc-exp`\n * - `cc-exp-month`\n * - `cc-exp-year`\n * - `off`\n *\n * @platform android\n */\n autoCompleteType?: WithDefault<\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-number'\n | 'email'\n | 'name'\n | 'password'\n | 'postal-code'\n | 'street-address'\n | 'tel'\n | 'username'\n | 'off',\n 'off',\n >,\n\n /**\n * Sets the return key to the label. Use it instead of `returnKeyType`.\n * @platform android\n */\n returnKeyLabel?: ?string,\n\n /**\n * Sets the number of lines for a `TextInput`. Use it with multiline set to\n * `true` to be able to fill the lines.\n * @platform android\n */\n numberOfLines?: ?Int32,\n\n /**\n * When `false`, if there is a small amount of space available around a text input\n * (e.g. landscape orientation on a phone), the OS may choose to have the user edit\n * the text inside of a full screen text input mode. When `true`, this feature is\n * disabled and users will always edit the text directly inside of the text input.\n * Defaults to `false`.\n * @platform android\n */\n disableFullscreenUI?: ?boolean,\n\n /**\n * Set text break strategy on Android API Level 23+, possible values are `simple`, `highQuality`, `balanced`\n * The default value is `simple`.\n * @platform android\n */\n textBreakStrategy?: WithDefault<\n 'simple' | 'highQuality' | 'balanced',\n 'simple',\n >,\n\n /**\n * The color of the `TextInput` underline.\n * @platform android\n */\n underlineColorAndroid?: ?ColorValue,\n\n /**\n * If defined, the provided image resource will be rendered on the left.\n * The image resource must be inside `/android/app/src/main/res/drawable` and referenced\n * like\n * ```\n * \n * ```\n * @platform android\n */\n inlineImageLeft?: ?string,\n\n /**\n * Padding between the inline image, if any, and the text input itself.\n * @platform android\n */\n inlineImagePadding?: ?Int32,\n\n importantForAutofill?: string /*?(\n | 'auto'\n | 'no'\n | 'noExcludeDescendants'\n | 'yes'\n | 'yesExcludeDescendants'\n ),*/,\n\n /**\n * When `false`, it will prevent the soft keyboard from showing when the field is focused.\n * Defaults to `true`.\n * @platform android\n */\n showSoftInputOnFocus?: ?boolean,\n\n /**\n * TextInput props after this\n */\n /**\n * Can tell `TextInput` to automatically capitalize certain characters.\n *\n * - `characters`: all characters.\n * - `words`: first letter of each word.\n * - `sentences`: first letter of each sentence (*default*).\n * - `none`: don't auto capitalize anything.\n */\n autoCapitalize?: WithDefault<\n 'none' | 'sentences' | 'words' | 'characters',\n 'none',\n >,\n\n /**\n * If `false`, disables auto-correct. The default value is `true`.\n */\n autoCorrect?: ?boolean,\n\n /**\n * If `true`, focuses the input on `componentDidMount`.\n * The default value is `false`.\n */\n autoFocus?: ?boolean,\n\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings. The\n * default is `true`.\n */\n allowFontScaling?: ?boolean,\n\n /**\n * Specifies largest possible scale a font can reach when `allowFontScaling` is enabled.\n * Possible values:\n * `null/undefined` (default): inherit from the parent node or the global default (0)\n * `0`: no max, ignore parent/global default\n * `>= 1`: sets the maxFontSizeMultiplier of this node to this value\n */\n maxFontSizeMultiplier?: ?Float,\n\n /**\n * If `false`, text is not editable. The default value is `true`.\n */\n editable?: ?boolean,\n\n /**\n * Determines which keyboard to open, e.g.`numeric`.\n *\n * The following values work across platforms:\n *\n * - `default`\n * - `numeric`\n * - `number-pad`\n * - `decimal-pad`\n * - `email-address`\n * - `phone-pad`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `visible-password`\n */\n keyboardType?: WithDefault,\n\n /**\n * Determines how the return key should look. On Android you can also use\n * `returnKeyLabel`.\n *\n * *Cross platform*\n *\n * The following values work across platforms:\n *\n * - `done`\n * - `go`\n * - `next`\n * - `search`\n * - `send`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `none`\n * - `previous`\n */\n returnKeyType?: WithDefault,\n\n /**\n * Limits the maximum number of characters that can be entered. Use this\n * instead of implementing the logic in JS to avoid flicker.\n */\n maxLength?: ?Int32,\n\n /**\n * If `true`, the text input can be multiple lines.\n * The default value is `false`.\n */\n multiline?: ?boolean,\n\n /**\n * Callback that is called when the text input is blurred.\n * `target` is the reactTag of the element\n */\n onBlur?: ?BubblingEventHandler<$ReadOnly<{|target: Int32|}>>,\n\n /**\n * Callback that is called when the text input is focused.\n * `target` is the reactTag of the element\n */\n onFocus?: ?BubblingEventHandler<$ReadOnly<{|target: Int32|}>>,\n\n /**\n * Callback that is called when the text input's text changes.\n * `target` is the reactTag of the element\n * TODO: differentiate between onChange and onChangeText\n */\n onChange?: ?BubblingEventHandler<\n $ReadOnly<{|target: Int32, eventCount: Int32, text: string|}>,\n >,\n\n /**\n * Callback that is called when the text input's text changes.\n * Changed text is passed as an argument to the callback handler.\n * TODO: differentiate between onChange and onChangeText\n */\n onChangeText?: ?BubblingEventHandler<\n $ReadOnly<{|target: Int32, eventCount: Int32, text: string|}>,\n >,\n\n /**\n * Callback that is called when the text input's content size changes.\n * This will be called with\n * `{ nativeEvent: { contentSize: { width, height } } }`.\n *\n * Only called for multiline text inputs.\n */\n onContentSizeChange?: ?DirectEventHandler<\n $ReadOnly<{|\n target: Int32,\n contentSize: $ReadOnly<{|width: Double, height: Double|}>,\n |}>,\n >,\n\n onTextInput?: ?BubblingEventHandler<\n $ReadOnly<{|\n target: Int32,\n text: string,\n previousText: string,\n range: $ReadOnly<{|start: Double, end: Double|}>,\n |}>,\n >,\n\n /**\n * Callback that is called when text input ends.\n */\n onEndEditing?: ?BubblingEventHandler<\n $ReadOnly<{|target: Int32, text: string|}>,\n >,\n\n /**\n * Callback that is called when the text input selection is changed.\n * This will be called with\n * `{ nativeEvent: { selection: { start, end } } }`.\n */\n onSelectionChange?: ?DirectEventHandler<\n $ReadOnly<{|\n target: Int32,\n selection: $ReadOnly<{|start: Double, end: Double|}>,\n |}>,\n >,\n\n /**\n * Callback that is called when the text input's submit button is pressed.\n * Invalid if `multiline={true}` is specified.\n */\n onSubmitEditing?: ?BubblingEventHandler<\n $ReadOnly<{|target: Int32, text: string|}>,\n >,\n\n /**\n * Callback that is called when a key is pressed.\n * This will be called with `{ nativeEvent: { key: keyValue } }`\n * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and\n * the typed-in character otherwise including `' '` for space.\n * Fires before `onChange` callbacks.\n */\n onKeyPress?: ?BubblingEventHandler<$ReadOnly<{|target: Int32, key: string|}>>,\n\n /**\n * Invoked on content scroll with `{ nativeEvent: { contentOffset: { x, y } } }`.\n * May also contain other properties from ScrollEvent but on Android contentSize\n * is not provided for performance reasons.\n */\n onScroll?: ?DirectEventHandler<\n $ReadOnly<{|\n target: Int32,\n responderIgnoreScroll: boolean,\n contentInset: $ReadOnly<{|\n top: Double, // always 0 on Android\n bottom: Double, // always 0 on Android\n left: Double, // always 0 on Android\n right: Double, // always 0 on Android\n |}>,\n contentOffset: $ReadOnly<{|\n x: Double,\n y: Double,\n |}>,\n contentSize: $ReadOnly<{|\n width: Double, // always 0 on Android\n height: Double, // always 0 on Android\n |}>,\n layoutMeasurement: $ReadOnly<{|\n width: Double,\n height: Double,\n |}>,\n velocity: $ReadOnly<{|\n x: Double, // always 0 on Android\n y: Double, // always 0 on Android\n |}>,\n |}>,\n >,\n\n /**\n * The string that will be rendered before text input has been entered.\n */\n placeholder?: ?string,\n\n /**\n * The text color of the placeholder string.\n */\n placeholderTextColor?: ?ColorValue,\n\n /**\n * If `true`, the text input obscures the text entered so that sensitive text\n * like passwords stay secure. The default value is `false`. Does not work with 'multiline={true}'.\n */\n secureTextEntry?: ?boolean,\n\n /**\n * The highlight and cursor color of the text input.\n */\n selectionColor?: ?ColorValue,\n\n /**\n * The start and end of the text input's selection. Set start and end to\n * the same value to position the cursor.\n */\n selection?: ?$ReadOnly<{|\n start: Int32,\n end?: ?Int32,\n |}>,\n\n /**\n * The value to show for the text input. `TextInput` is a controlled\n * component, which means the native value will be forced to match this\n * value prop if provided. For most uses, this works great, but in some\n * cases this may cause flickering - one common cause is preventing edits\n * by keeping value the same. In addition to simply setting the same value,\n * either set `editable={false}`, or set/update `maxLength` to prevent\n * unwanted edits without flicker.\n */\n value?: ?string,\n\n /**\n * Provides an initial value that will change when the user starts typing.\n * Useful for simple use-cases where you do not want to deal with listening\n * to events and updating the value prop to keep the controlled state in sync.\n */\n defaultValue?: ?string,\n\n /**\n * If `true`, all text will automatically be selected on focus.\n */\n selectTextOnFocus?: ?boolean,\n\n /**\n * If `true`, the text field will blur when submitted.\n * The default value is true for single-line fields and false for\n * multiline fields. Note that for multiline fields, setting `blurOnSubmit`\n * to `true` means that pressing return will blur the field and trigger the\n * `onSubmitEditing` event instead of inserting a newline into the field.\n */\n blurOnSubmit?: ?boolean,\n\n /**\n * Note that not all Text styles are supported, an incomplete list of what is not supported includes:\n *\n * - `borderLeftWidth`\n * - `borderTopWidth`\n * - `borderRightWidth`\n * - `borderBottomWidth`\n * - `borderTopLeftRadius`\n * - `borderTopRightRadius`\n * - `borderBottomRightRadius`\n * - `borderBottomLeftRadius`\n *\n * see [Issue#7070](https://github.com/facebook/react-native/issues/7070)\n * for more detail.\n *\n * [Styles](docs/style.html)\n */\n // TODO: figure out what to do with this style prop for codegen/Fabric purposes\n // This must be commented for Fabric codegen to work; it's currently not possible\n // to override the default View style prop in codegen.\n style?: ?TextStyleProp,\n\n /**\n * If `true`, caret is hidden. The default value is `false`.\n * This property is supported only for single-line TextInput component on iOS.\n */\n caretHidden?: ?boolean,\n\n /*\n * If `true`, contextMenuHidden is hidden. The default value is `false`.\n */\n contextMenuHidden?: ?boolean,\n\n /**\n * The following are props that `BaseTextShadowNode` takes. It is unclear if they\n * are used by TextInput.\n */\n textShadowColor?: ?ColorValue,\n textShadowRadius?: ?Float,\n textDecorationLine?: ?string,\n fontStyle?: ?string,\n textShadowOffset?: ?$ReadOnly<{|width?: ?Double, height?: ?Double|}>,\n lineHeight?: ?Float,\n textTransform?: ?string,\n color?: ?Int32,\n letterSpacing?: ?Float,\n fontSize?: ?Float,\n textAlign?: ?string,\n includeFontPadding?: ?boolean,\n fontWeight?: ?string,\n fontFamily?: ?string,\n\n /**\n * I cannot find where these are defined but JS complains without them.\n */\n textAlignVertical?: ?string,\n cursorColor?: ?ColorValue,\n\n /**\n * \"Private\" fields used by TextInput.js and not users of this component directly\n */\n mostRecentEventCount: Int32,\n text?: ?string,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +focus: (viewRef: React.ElementRef) => void;\n +blur: (viewRef: React.ElementRef) => void;\n +setMostRecentEventCount: (\n viewRef: React.ElementRef,\n eventCount: Int32,\n ) => void;\n +setTextAndSelection: (\n viewRef: React.ElementRef,\n mostRecentEventCount: Int32,\n value: ?string, // in theory this is nullable\n start: Int32,\n end: Int32,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: [\n 'focus',\n 'blur',\n 'setMostRecentEventCount',\n 'setTextAndSelection',\n ],\n});\n\nconst AndroidTextInputNativeComponent: HostComponent = requireNativeComponent(\n 'AndroidTextInput',\n);\n\nexport default AndroidTextInputNativeComponent;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport Pressability from '../../Pressability/Pressability.js';\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';\nimport StyleSheet, {type ViewStyleProp} from '../../StyleSheet/StyleSheet.js';\nimport type {ColorValue} from '../../StyleSheet/StyleSheetTypes.js';\nimport TVTouchable from './TVTouchable.js';\nimport typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';\nimport Platform from '../../Utilities/Platform';\nimport View from '../../Components/View/View';\nimport * as React from 'react';\n\ntype AndroidProps = $ReadOnly<{|\n nextFocusDown?: ?number,\n nextFocusForward?: ?number,\n nextFocusLeft?: ?number,\n nextFocusRight?: ?number,\n nextFocusUp?: ?number,\n|}>;\n\ntype IOSProps = $ReadOnly<{|\n hasTVPreferredFocus?: ?boolean,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...React.ElementConfig,\n ...AndroidProps,\n ...IOSProps,\n\n activeOpacity?: ?number,\n underlayColor?: ?ColorValue,\n style?: ?ViewStyleProp,\n onShowUnderlay?: ?() => void,\n onHideUnderlay?: ?() => void,\n testOnly_pressed?: ?boolean,\n\n hostRef: React.Ref,\n|}>;\n\ntype ExtraStyles = $ReadOnly<{|\n child: ViewStyleProp,\n underlay: ViewStyleProp,\n|}>;\n\ntype State = $ReadOnly<{|\n pressability: Pressability,\n extraStyles: ?ExtraStyles,\n|}>;\n\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, which allows\n * the underlay color to show through, darkening or tinting the view.\n *\n * The underlay comes from wrapping the child in a new View, which can affect\n * layout, and sometimes cause unwanted visual artifacts if not used correctly,\n * for example if the backgroundColor of the wrapped view isn't explicitly set\n * to an opaque color.\n *\n * TouchableHighlight must have one child (not zero or more than one).\n * If you wish to have several child components, wrap them in a View.\n *\n * Example:\n *\n * ```\n * renderButton: function() {\n * return (\n * \n * \n * \n * );\n * },\n * ```\n *\n *\n * ### Example\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react'\n * import {\n * AppRegistry,\n * StyleSheet,\n * TouchableHighlight,\n * Text,\n * View,\n * } from 'react-native'\n *\n * class App extends Component {\n * constructor(props) {\n * super(props)\n * this.state = { count: 0 }\n * }\n *\n * onPress = () => {\n * this.setState({\n * count: this.state.count+1\n * })\n * }\n *\n * render() {\n * return (\n * \n * \n * Touch Here \n * \n * \n * \n * { this.state.count !== 0 ? this.state.count: null}\n * \n * \n * \n * )\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * justifyContent: 'center',\n * paddingHorizontal: 10\n * },\n * button: {\n * alignItems: 'center',\n * backgroundColor: '#DDDDDD',\n * padding: 10\n * },\n * countContainer: {\n * alignItems: 'center',\n * padding: 10\n * },\n * countText: {\n * color: '#FF00FF'\n * }\n * })\n *\n * AppRegistry.registerComponent('App', () => App)\n * ```\n *\n */\nclass TouchableHighlight extends React.Component {\n _hideTimeout: ?TimeoutID;\n _isMounted: boolean = false;\n _tvTouchable: ?TVTouchable;\n\n state: State = {\n pressability: new Pressability({\n getHitSlop: () => this.props.hitSlop,\n getLongPressDelayMS: () => {\n if (this.props.delayLongPress != null) {\n const maybeNumber = this.props.delayLongPress;\n if (typeof maybeNumber === 'number') {\n return maybeNumber;\n }\n }\n return 500;\n },\n getPressDelayMS: () => this.props.delayPressIn,\n getPressOutDelayMS: () => this.props.delayPressOut,\n getPressRectOffset: () => this.props.pressRetentionOffset,\n getTouchSoundDisabled: () => this.props.touchSoundDisabled,\n onBlur: event => {\n if (Platform.isTV) {\n this._hideUnderlay();\n }\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (Platform.isTV) {\n this._showUnderlay();\n }\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onLongPress: event => {\n if (this.props.onLongPress != null) {\n this.props.onLongPress(event);\n }\n },\n onPress: event => {\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n }\n if (!Platform.isTV) {\n this._showUnderlay();\n this._hideTimeout = setTimeout(() => {\n this._hideUnderlay();\n }, this.props.delayPressOut ?? 0);\n }\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n onPressIn: event => {\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n }\n this._showUnderlay();\n if (this.props.onPressIn != null) {\n this.props.onPressIn(event);\n }\n },\n onPressOut: event => {\n if (this._hideTimeout == null) {\n this._hideUnderlay();\n }\n if (this.props.onPressOut != null) {\n this.props.onPressOut(event);\n }\n },\n onResponderTerminationRequest: () =>\n !this.props.rejectResponderTermination,\n onStartShouldSetResponder: () => !this.props.disabled,\n }),\n extraStyles:\n this.props.testOnly_pressed === true ? this._createExtraStyles() : null,\n };\n\n _createExtraStyles(): ExtraStyles {\n return {\n child: {opacity: this.props.activeOpacity ?? 0.85},\n underlay: {\n backgroundColor:\n this.props.underlayColor === undefined\n ? 'black'\n : this.props.underlayColor,\n },\n };\n }\n\n _showUnderlay(): void {\n if (!this._isMounted || !this._hasPressHandler()) {\n return;\n }\n this.setState({extraStyles: this._createExtraStyles()});\n if (this.props.onShowUnderlay != null) {\n this.props.onShowUnderlay();\n }\n }\n\n _hideUnderlay(): void {\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n }\n if (this.props.testOnly_pressed === true) {\n return;\n }\n if (this._hasPressHandler()) {\n this.setState({extraStyles: null});\n if (this.props.onHideUnderlay != null) {\n this.props.onHideUnderlay();\n }\n }\n }\n\n _hasPressHandler(): boolean {\n return (\n this.props.onPress != null ||\n this.props.onPressIn != null ||\n this.props.onPressOut != null ||\n this.props.onLongPress != null\n );\n }\n\n render(): React.Node {\n const child = React.Children.only(this.props.children);\n\n // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before\n // adopting `Pressability`, so preserve that behavior.\n const {\n onBlur,\n onFocus,\n ...eventHandlersWithoutBlurAndFocus\n } = this.state.pressability.getEventHandlers();\n\n return (\n \n {React.cloneElement(child, {\n style: StyleSheet.compose(\n child.props.style,\n this.state.extraStyles?.child,\n ),\n })}\n {__DEV__ ? (\n \n ) : null}\n \n );\n }\n\n componentDidMount(): void {\n this._isMounted = true;\n if (Platform.isTV) {\n this._tvTouchable = new TVTouchable(this, {\n getDisabled: () => this.props.disabled === true,\n onBlur: event => {\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onPress: event => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n });\n }\n }\n\n componentWillUnmount(): void {\n this._isMounted = false;\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n }\n if (Platform.isTV) {\n if (this._tvTouchable != null) {\n this._tvTouchable.destroy();\n }\n }\n this.state.pressability.reset();\n }\n}\n\nmodule.exports = (React.forwardRef((props, hostRef) => (\n \n)): React.ComponentType<$ReadOnly<$Diff>>);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport RCTActionSheetManager from './NativeActionSheetManager';\n\nconst invariant = require('invariant');\nconst processColor = require('../StyleSheet/processColor');\n\n/**\n * Display action sheets and share sheets on iOS.\n *\n * See http://facebook.github.io/react-native/docs/actionsheetios.html\n */\nconst ActionSheetIOS = {\n /**\n * Display an iOS action sheet.\n *\n * The `options` object must contain one or more of:\n *\n * - `options` (array of strings) - a list of button titles (required)\n * - `cancelButtonIndex` (int) - index of cancel button in `options`\n * - `destructiveButtonIndex` (int or array of ints) - index or indices of destructive buttons in `options`\n * - `title` (string) - a title to show above the action sheet\n * - `message` (string) - a message to show below the title\n *\n * The 'callback' function takes one parameter, the zero-based index\n * of the selected item.\n *\n * See http://facebook.github.io/react-native/docs/actionsheetios.html#showactionsheetwithoptions\n */\n showActionSheetWithOptions(\n options: {|\n +title?: ?string,\n +message?: ?string,\n +options: Array,\n +destructiveButtonIndex?: ?number | ?Array,\n +cancelButtonIndex?: ?number,\n +anchor?: ?number,\n +tintColor?: number | string,\n |},\n callback: (buttonIndex: number) => void,\n ) {\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n invariant(RCTActionSheetManager, \"ActionSheetManager does't exist\");\n\n const {tintColor, destructiveButtonIndex, ...remainingOptions} = options;\n let destructiveButtonIndices = null;\n\n if (Array.isArray(destructiveButtonIndex)) {\n destructiveButtonIndices = destructiveButtonIndex;\n } else if (typeof destructiveButtonIndex === 'number') {\n destructiveButtonIndices = [destructiveButtonIndex];\n }\n\n RCTActionSheetManager.showActionSheetWithOptions(\n {\n ...remainingOptions,\n tintColor: processColor(tintColor),\n destructiveButtonIndices,\n },\n callback,\n );\n },\n\n /**\n * Display the iOS share sheet. The `options` object should contain\n * one or both of `message` and `url` and can additionally have\n * a `subject` or `excludedActivityTypes`:\n *\n * - `url` (string) - a URL to share\n * - `message` (string) - a message to share\n * - `subject` (string) - a subject for the message\n * - `excludedActivityTypes` (array) - the activities to exclude from\n * the ActionSheet\n * - `tintColor` (color) - tint color of the buttons\n *\n * The 'failureCallback' function takes one parameter, an error object.\n * The only property defined on this object is an optional `stack` property\n * of type `string`.\n *\n * The 'successCallback' function takes two parameters:\n *\n * - a boolean value signifying success or failure\n * - a string that, in the case of success, indicates the method of sharing\n *\n * See http://facebook.github.io/react-native/docs/actionsheetios.html#showshareactionsheetwithoptions\n */\n showShareActionSheetWithOptions(\n options: Object,\n failureCallback: Function,\n successCallback: Function,\n ) {\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n invariant(\n typeof failureCallback === 'function',\n 'Must provide a valid failureCallback',\n );\n invariant(\n typeof successCallback === 'function',\n 'Must provide a valid successCallback',\n );\n invariant(RCTActionSheetManager, \"ActionSheetManager does't exist\");\n RCTActionSheetManager.showShareActionSheetWithOptions(\n {...options, tintColor: processColor(options.tintColor)},\n failureCallback,\n successCallback,\n );\n },\n};\n\nmodule.exports = ActionSheetIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +showActionSheetWithOptions: (\n options: {|\n +title?: ?string,\n +message?: ?string,\n +options: ?Array,\n +destructiveButtonIndices?: ?Array,\n +cancelButtonIndex?: ?number,\n +anchor?: ?number,\n +tintColor?: ?number,\n |},\n callback: (buttonIndex: number) => void,\n ) => void;\n +showShareActionSheetWithOptions: (\n options: {|\n +message?: ?string,\n +url?: ?string,\n +subject?: ?string,\n +anchor?: ?number,\n +tintColor?: ?number,\n +excludedActivityTypes?: ?Array,\n |},\n failureCallback: (error: {|\n +domain: string,\n +code: string,\n +userInfo?: ?Object,\n +message: string,\n |}) => void,\n successCallback: (completed: boolean, activityType: ?string) => void,\n ) => void;\n}\n\nexport default (TurboModuleRegistry.get('ActionSheetManager'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport EventEmitter from '../vendor/emitter/EventEmitter';\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport NativeAppearance, {\n type AppearancePreferences,\n type ColorSchemeName,\n} from './NativeAppearance';\nimport invariant from 'invariant';\nimport {isAsyncDebugging} from './DebugEnvironment';\n\ntype AppearanceListener = (preferences: AppearancePreferences) => void;\nconst eventEmitter = new EventEmitter();\n\nif (NativeAppearance) {\n const nativeEventEmitter = new NativeEventEmitter(NativeAppearance);\n nativeEventEmitter.addListener(\n 'appearanceChanged',\n (newAppearance: AppearancePreferences) => {\n const {colorScheme} = newAppearance;\n invariant(\n colorScheme === 'dark' ||\n colorScheme === 'light' ||\n colorScheme == null,\n \"Unrecognized color scheme. Did you mean 'dark' or 'light'?\",\n );\n eventEmitter.emit('change', {colorScheme});\n },\n );\n}\n\nmodule.exports = {\n /**\n * Note: Although color scheme is available immediately, it may change at any\n * time. Any rendering logic or styles that depend on this should try to call\n * this function on every render, rather than caching the value (for example,\n * using inline styles rather than setting a value in a `StyleSheet`).\n *\n * Example: `const colorScheme = Appearance.getColorScheme();`\n *\n * @returns {?ColorSchemeName} Value for the color scheme preference.\n */\n getColorScheme(): ?ColorSchemeName {\n if (__DEV__) {\n if (isAsyncDebugging) {\n // Hard code light theme when using the async debugger as\n // sync calls aren't supported\n return 'light';\n }\n }\n\n // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union\n const nativeColorScheme: ?string =\n NativeAppearance == null\n ? null\n : NativeAppearance.getColorScheme() || null;\n invariant(\n nativeColorScheme === 'dark' ||\n nativeColorScheme === 'light' ||\n nativeColorScheme == null,\n \"Unrecognized color scheme. Did you mean 'dark' or 'light'?\",\n );\n return nativeColorScheme;\n },\n /**\n * Add an event handler that is fired when appearance preferences change.\n */\n addChangeListener(listener: AppearanceListener): void {\n eventEmitter.addListener('change', listener);\n },\n /**\n * Remove an event handler.\n */\n removeChangeListener(listener: AppearanceListener): void {\n eventEmitter.removeListener('change', listener);\n },\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport type ColorSchemeName = 'light' | 'dark';\n\nexport type AppearancePreferences = {|\n // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union\n // types.\n /* 'light' | 'dark' */\n colorScheme?: ?string,\n|};\n\nexport interface Spec extends TurboModule {\n // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union\n // types.\n /* 'light' | 'dark' */\n +getColorScheme: () => ?string;\n\n // RCTEventEmitter\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('Appearance'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nexport let isAsyncDebugging: boolean = false;\n\nif (__DEV__) {\n // These native interfaces don't exist in asynchronous debugging environments.\n isAsyncDebugging =\n !global.nativeExtensions &&\n !global.nativeCallSyncHook &&\n !global.RN$Bridgeless;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst BatchedBridge = require('../BatchedBridge/BatchedBridge');\nconst BugReporting = require('../BugReporting/BugReporting');\nconst ReactNative = require('../Renderer/shims/ReactNative');\nconst SceneTracker = require('../Utilities/SceneTracker');\n\nconst infoLog = require('../Utilities/infoLog');\nconst invariant = require('invariant');\nconst renderApplication = require('./renderApplication');\nconst createPerformanceLogger = require('../Utilities/createPerformanceLogger');\nimport type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';\n\nimport NativeHeadlessJsTaskSupport from './NativeHeadlessJsTaskSupport';\nimport HeadlessJsTaskError from './HeadlessJsTaskError';\n\ntype Task = (taskData: any) => Promise;\nexport type TaskProvider = () => Task;\ntype TaskCanceller = () => void;\ntype TaskCancelProvider = () => TaskCanceller;\n\nexport type ComponentProvider = () => React$ComponentType;\nexport type ComponentProviderInstrumentationHook = (\n component: ComponentProvider,\n scopedPerformanceLogger: IPerformanceLogger,\n) => React$ComponentType;\nexport type AppConfig = {\n appKey: string,\n component?: ComponentProvider,\n run?: Function,\n section?: boolean,\n ...\n};\nexport type Runnable = {\n component?: ComponentProvider,\n run: Function,\n ...\n};\nexport type Runnables = {[appKey: string]: Runnable, ...};\nexport type Registry = {\n sections: Array,\n runnables: Runnables,\n ...\n};\nexport type WrapperComponentProvider = any => React$ComponentType<*>;\n\nconst runnables: Runnables = {};\nlet runCount = 1;\nconst sections: Runnables = {};\nconst taskProviders: Map = new Map();\nconst taskCancelProviders: Map = new Map();\nlet componentProviderInstrumentationHook: ComponentProviderInstrumentationHook = (\n component: ComponentProvider,\n) => component();\n\nlet wrapperComponentProvider: ?WrapperComponentProvider;\nlet showArchitectureIndicator = false;\n\n/**\n * `AppRegistry` is the JavaScript entry point to running all React Native apps.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html\n */\nconst AppRegistry = {\n setWrapperComponentProvider(provider: WrapperComponentProvider) {\n wrapperComponentProvider = provider;\n },\n\n enableArchitectureIndicator(enabled: boolean): void {\n showArchitectureIndicator = enabled;\n },\n\n registerConfig(config: Array): void {\n config.forEach(appConfig => {\n if (appConfig.run) {\n AppRegistry.registerRunnable(appConfig.appKey, appConfig.run);\n } else {\n invariant(\n appConfig.component != null,\n 'AppRegistry.registerConfig(...): Every config is expected to set ' +\n 'either `run` or `component`, but `%s` has neither.',\n appConfig.appKey,\n );\n AppRegistry.registerComponent(\n appConfig.appKey,\n appConfig.component,\n appConfig.section,\n );\n }\n });\n },\n\n /**\n * Registers an app's root component.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#registercomponent\n */\n registerComponent(\n appKey: string,\n componentProvider: ComponentProvider,\n section?: boolean,\n ): string {\n let scopedPerformanceLogger = createPerformanceLogger();\n runnables[appKey] = {\n componentProvider,\n run: appParameters => {\n renderApplication(\n componentProviderInstrumentationHook(\n componentProvider,\n scopedPerformanceLogger,\n ),\n appParameters.initialProps,\n appParameters.rootTag,\n wrapperComponentProvider && wrapperComponentProvider(appParameters),\n appParameters.fabric,\n showArchitectureIndicator,\n scopedPerformanceLogger,\n appKey === 'LogBox',\n );\n },\n };\n if (section) {\n sections[appKey] = runnables[appKey];\n }\n return appKey;\n },\n\n registerRunnable(appKey: string, run: Function): string {\n runnables[appKey] = {run};\n return appKey;\n },\n\n registerSection(appKey: string, component: ComponentProvider): void {\n AppRegistry.registerComponent(appKey, component, true);\n },\n\n getAppKeys(): Array {\n return Object.keys(runnables);\n },\n\n getSectionKeys(): Array {\n return Object.keys(sections);\n },\n\n getSections(): Runnables {\n return {\n ...sections,\n };\n },\n\n getRunnable(appKey: string): ?Runnable {\n return runnables[appKey];\n },\n\n getRegistry(): Registry {\n return {\n sections: AppRegistry.getSectionKeys(),\n runnables: {...runnables},\n };\n },\n\n setComponentProviderInstrumentationHook(\n hook: ComponentProviderInstrumentationHook,\n ) {\n componentProviderInstrumentationHook = hook;\n },\n\n /**\n * Loads the JavaScript bundle and runs the app.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#runapplication\n */\n runApplication(appKey: string, appParameters: any): void {\n if (appKey !== 'LogBox') {\n const msg =\n 'Running \"' + appKey + '\" with ' + JSON.stringify(appParameters);\n infoLog(msg);\n BugReporting.addSource(\n 'AppRegistry.runApplication' + runCount++,\n () => msg,\n );\n }\n invariant(\n runnables[appKey] && runnables[appKey].run,\n `\"${appKey}\" has not been registered. This can happen if:\\n` +\n '* Metro (the local dev server) is run from the wrong folder. ' +\n 'Check if Metro is running, stop it and restart it in the current project.\\n' +\n \"* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.\",\n );\n\n SceneTracker.setActiveScene({name: appKey});\n runnables[appKey].run(appParameters);\n },\n\n /**\n * Stops an application when a view should be destroyed.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#unmountapplicationcomponentatroottag\n */\n unmountApplicationComponentAtRootTag(rootTag: number): void {\n ReactNative.unmountComponentAtNodeAndRemoveContainer(rootTag);\n },\n\n /**\n * Register a headless task. A headless task is a bit of code that runs without a UI.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#registerheadlesstask\n */\n registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void {\n this.registerCancellableHeadlessTask(taskKey, taskProvider, () => () => {\n /* Cancel is no-op */\n });\n },\n\n /**\n * Register a cancellable headless task. A headless task is a bit of code that runs without a UI.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#registercancellableheadlesstask\n */\n registerCancellableHeadlessTask(\n taskKey: string,\n taskProvider: TaskProvider,\n taskCancelProvider: TaskCancelProvider,\n ): void {\n if (taskProviders.has(taskKey)) {\n console.warn(\n `registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '${taskKey}'`,\n );\n }\n taskProviders.set(taskKey, taskProvider);\n taskCancelProviders.set(taskKey, taskCancelProvider);\n },\n\n /**\n * Only called from native code. Starts a headless task.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#startheadlesstask\n */\n startHeadlessTask(taskId: number, taskKey: string, data: any): void {\n const taskProvider = taskProviders.get(taskKey);\n if (!taskProvider) {\n console.warn(`No task registered for key ${taskKey}`);\n if (NativeHeadlessJsTaskSupport) {\n NativeHeadlessJsTaskSupport.notifyTaskFinished(taskId);\n }\n return;\n }\n taskProvider()(data)\n .then(() => {\n if (NativeHeadlessJsTaskSupport) {\n NativeHeadlessJsTaskSupport.notifyTaskFinished(taskId);\n }\n })\n .catch(reason => {\n console.error(reason);\n\n if (\n NativeHeadlessJsTaskSupport &&\n reason instanceof HeadlessJsTaskError\n ) {\n NativeHeadlessJsTaskSupport.notifyTaskRetry(taskId).then(\n retryPosted => {\n if (!retryPosted) {\n NativeHeadlessJsTaskSupport.notifyTaskFinished(taskId);\n }\n },\n );\n }\n });\n },\n\n /**\n * Only called from native code. Cancels a headless task.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#cancelheadlesstask\n */\n cancelHeadlessTask(taskId: number, taskKey: string): void {\n const taskCancelProvider = taskCancelProviders.get(taskKey);\n if (!taskCancelProvider) {\n throw new Error(`No task canceller registered for key '${taskKey}'`);\n }\n taskCancelProvider()();\n },\n};\n\nBatchedBridge.registerCallableModule('AppRegistry', AppRegistry);\n\nif (__DEV__) {\n const LogBoxInspector = require('../LogBox/LogBoxInspectorContainer').default;\n AppRegistry.registerComponent('LogBox', () => LogBoxInspector);\n} else {\n AppRegistry.registerComponent(\n 'LogBox',\n () =>\n function NoOp() {\n return null;\n },\n );\n}\n\nmodule.exports = AppRegistry;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +notifyTaskFinished: (taskId: number) => void;\n +notifyTaskRetry: (taskId: number) => Promise;\n}\n\nexport default (TurboModuleRegistry.get('HeadlessJsTaskSupport'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nexport default class HeadlessJsTaskError extends Error {}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst RCTDeviceEventEmitter = require('../EventEmitter/RCTDeviceEventEmitter');\n\nimport type EmitterSubscription from '../vendor/emitter/EmitterSubscription';\nimport NativeBugReporting from './NativeBugReporting';\nimport NativeRedBox from '../NativeModules/specs/NativeRedBox';\n\ntype ExtraData = {[key: string]: string, ...};\ntype SourceCallback = () => string;\ntype DebugData = {\n extras: ExtraData,\n files: ExtraData,\n ...\n};\n\nfunction defaultExtras() {\n BugReporting.addFileSource('react_hierarchy.txt', () =>\n require('./dumpReactTree')(),\n );\n}\n\n/**\n * A simple class for collecting bug report data. Components can add sources that will be queried when a bug report\n * is created via `collectExtraData`. For example, a list component might add a source that provides the list of rows\n * that are currently visible on screen. Components should also remember to call `remove()` on the object that is\n * returned by `addSource` when they are unmounted.\n */\nclass BugReporting {\n static _extraSources: Map = new Map();\n static _fileSources: Map = new Map();\n static _subscription: ?EmitterSubscription = null;\n static _redboxSubscription: ?EmitterSubscription = null;\n\n static _maybeInit() {\n if (!BugReporting._subscription) {\n BugReporting._subscription = RCTDeviceEventEmitter.addListener(\n 'collectBugExtraData',\n BugReporting.collectExtraData,\n null,\n );\n defaultExtras();\n }\n\n if (!BugReporting._redboxSubscription) {\n BugReporting._redboxSubscription = RCTDeviceEventEmitter.addListener(\n 'collectRedBoxExtraData',\n BugReporting.collectExtraData,\n null,\n );\n }\n }\n\n /**\n * Maps a string key to a simple callback that should return a string payload to be attached\n * to a bug report. Source callbacks are called when `collectExtraData` is called.\n *\n * Returns an object to remove the source when the component unmounts.\n *\n * Conflicts trample with a warning.\n */\n static addSource(\n key: string,\n callback: SourceCallback,\n ): {remove: () => void, ...} {\n return this._addSource(key, callback, BugReporting._extraSources);\n }\n\n /**\n * Maps a string key to a simple callback that should return a string payload to be attached\n * to a bug report. Source callbacks are called when `collectExtraData` is called.\n *\n * Returns an object to remove the source when the component unmounts.\n *\n * Conflicts trample with a warning.\n */\n static addFileSource(\n key: string,\n callback: SourceCallback,\n ): {remove: () => void, ...} {\n return this._addSource(key, callback, BugReporting._fileSources);\n }\n\n static _addSource(\n key: string,\n callback: SourceCallback,\n source: Map,\n ): {remove: () => void, ...} {\n BugReporting._maybeInit();\n if (source.has(key)) {\n console.warn(\n `BugReporting.add* called multiple times for same key '${key}'`,\n );\n }\n source.set(key, callback);\n return {\n remove: () => {\n source.delete(key);\n },\n };\n }\n\n /**\n * This can be called from a native bug reporting flow, or from JS code.\n *\n * If available, this will call `NativeModules.BugReporting.setExtraData(extraData)`\n * after collecting `extraData`.\n */\n static collectExtraData(): DebugData {\n const extraData: ExtraData = {};\n for (const [key, callback] of BugReporting._extraSources) {\n extraData[key] = callback();\n }\n const fileData: ExtraData = {};\n for (const [key, callback] of BugReporting._fileSources) {\n fileData[key] = callback();\n }\n\n if (NativeBugReporting != null && NativeBugReporting.setExtraData != null) {\n NativeBugReporting.setExtraData(extraData, fileData);\n }\n\n if (NativeRedBox != null && NativeRedBox.setExtraData != null) {\n NativeRedBox.setExtraData(extraData, 'From BugReporting.js');\n }\n\n return {extras: extraData, files: fileData};\n }\n}\n\nmodule.exports = BugReporting;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +startReportAProblemFlow: () => void;\n +setExtraData: (extraData: Object, extraFiles: Object) => void;\n +setCategoryID: (categoryID: string) => void;\n}\n\nexport default (TurboModuleRegistry.get('BugReporting'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +setExtraData: (extraData: Object, forIdentifier: string) => void;\n +dismiss: () => void;\n}\n\nexport default (TurboModuleRegistry.get('RedBox'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\n/*\nconst getReactData = require('getReactData');\n\nconst INDENTATION_SIZE = 2;\nconst MAX_DEPTH = 2;\nconst MAX_STRING_LENGTH = 50;\n*/\n\n/**\n * Dump all React Native root views and their content. This function tries\n * it best to get the content but ultimately relies on implementation details\n * of React and will fail in future versions.\n */\nfunction dumpReactTree(): string {\n try {\n return getReactTree();\n } catch (e) {\n return 'Failed to dump react tree: ' + e;\n }\n}\n\nfunction getReactTree() {\n // TODO(sema): Reenable tree dumps using the Fiber tree structure. #15945684\n return (\n 'React tree dumps have been temporarily disabled while React is ' +\n 'upgraded to Fiber.'\n );\n /*\n let output = '';\n const rootIds = Object.getOwnPropertyNames(ReactNativeMount._instancesByContainerID);\n for (const rootId of rootIds) {\n const instance = ReactNativeMount._instancesByContainerID[rootId];\n output += `============ Root ID: ${rootId} ============\\n`;\n output += dumpNode(instance, 0);\n output += `============ End root ID: ${rootId} ============\\n`;\n }\n return output;\n*/\n}\n\n/*\nfunction dumpNode(node: Object, indentation: number) {\n const data = getReactData(node);\n if (data.nodeType === 'Text') {\n return indent(indentation) + data.text + '\\n';\n } else if (data.nodeType === 'Empty') {\n return '';\n }\n let output = indent(indentation) + `<${data.name}`;\n if (data.nodeType === 'Composite') {\n for (const propName of Object.getOwnPropertyNames(data.props || {})) {\n if (isNormalProp(propName)) {\n try {\n const value = convertValue(data.props[propName]);\n if (value) {\n output += ` ${propName}=${value}`;\n }\n } catch (e) {\n const message = `[Failed to get property: ${e}]`;\n output += ` ${propName}=${message}`;\n }\n }\n }\n }\n let childOutput = '';\n for (const child of data.children || []) {\n childOutput += dumpNode(child, indentation + 1);\n }\n\n if (childOutput) {\n output += '>\\n' + childOutput + indent(indentation) + `\\n`;\n } else {\n output += ' />\\n';\n }\n\n return output;\n}\n\nfunction isNormalProp(name: string): boolean {\n switch (name) {\n case 'children':\n case 'key':\n case 'ref':\n return false;\n default:\n return true;\n }\n}\n\nfunction convertObject(object: Object, depth: number) {\n if (depth >= MAX_DEPTH) {\n return '[...omitted]';\n }\n let output = '{';\n let first = true;\n for (const key of Object.getOwnPropertyNames(object)) {\n if (!first) {\n output += ', ';\n }\n output += `${key}: ${convertValue(object[key], depth + 1)}`;\n first = false;\n }\n return output + '}';\n}\n\nfunction convertValue(value, depth = 0): ?string {\n if (!value) {\n return null;\n }\n\n switch (typeof value) {\n case 'string':\n return JSON.stringify(possiblyEllipsis(value).replace('\\n', '\\\\n'));\n case 'boolean':\n case 'number':\n return JSON.stringify(value);\n case 'function':\n return '[function]';\n case 'object':\n return convertObject(value, depth);\n default:\n return null;\n }\n}\n\nfunction possiblyEllipsis(value: string) {\n if (value.length > MAX_STRING_LENGTH) {\n return value.slice(0, MAX_STRING_LENGTH) + '...';\n } else {\n return value;\n }\n}\n\nfunction indent(size: number) {\n return ' '.repeat(size * INDENTATION_SIZE);\n}\n*/\n\nmodule.exports = dumpReactTree;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\ntype Scene = {name: string, ...};\n\nlet _listeners: Array<(scene: Scene) => void> = [];\n\nlet _activeScene = {name: 'default'};\n\nconst SceneTracker = {\n setActiveScene(scene: Scene) {\n _activeScene = scene;\n _listeners.forEach(listener => listener(_activeScene));\n },\n\n getActiveScene(): Scene {\n return _activeScene;\n },\n\n addActiveSceneChangedListener(\n callback: (scene: Scene) => void,\n ): {remove: () => void, ...} {\n _listeners.push(callback);\n return {\n remove: () => {\n _listeners = _listeners.filter(listener => callback !== listener);\n },\n };\n },\n};\n\nmodule.exports = SceneTracker;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AppContainer = require('./AppContainer');\nimport GlobalPerformanceLogger from '../Utilities/GlobalPerformanceLogger';\nimport type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';\nimport PerformanceLoggerContext from '../Utilities/PerformanceLoggerContext';\nconst React = require('react');\n\nconst invariant = require('invariant');\n\n// require BackHandler so it sets the default handler that exits the app if no listeners respond\nrequire('../Utilities/BackHandler');\n\nfunction renderApplication(\n RootComponent: React.ComponentType,\n initialProps: Props,\n rootTag: any,\n WrapperComponent?: ?React.ComponentType<*>,\n fabric?: boolean,\n showArchitectureIndicator?: boolean,\n scopedPerformanceLogger?: IPerformanceLogger,\n isLogBox?: boolean,\n) {\n invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag);\n\n const renderable = (\n \n \n \n \n \n );\n\n GlobalPerformanceLogger.startTimespan('renderApplication_React_render');\n if (fabric) {\n require('../Renderer/shims/ReactFabric').render(renderable, rootTag);\n } else {\n require('../Renderer/shims/ReactNative').render(renderable, rootTag);\n }\n GlobalPerformanceLogger.stopTimespan('renderApplication_React_render');\n}\n\nmodule.exports = renderApplication;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as React from 'react';\nimport GlobalPerformanceLogger from './GlobalPerformanceLogger';\nimport type {IPerformanceLogger} from './createPerformanceLogger';\n\n/**\n * This is a React Context that provides a scoped instance of IPerformanceLogger.\n * We wrap every with a Provider for this context so the logger\n * should be available in every component.\n * See React docs about using Context: https://reactjs.org/docs/context.html\n */\nconst PerformanceLoggerContext: React.Context = React.createContext(\n GlobalPerformanceLogger,\n);\nmodule.exports = PerformanceLoggerContext;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport NativeDeviceEventManager from '../../Libraries/NativeModules/specs/NativeDeviceEventManager';\nimport RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter';\n\nconst DEVICE_BACK_EVENT = 'hardwareBackPress';\n\ntype BackPressEventName = 'backPress' | 'hardwareBackPress';\n\nconst _backPressSubscriptions = [];\n\nRCTDeviceEventEmitter.addListener(DEVICE_BACK_EVENT, function() {\n for (let i = _backPressSubscriptions.length - 1; i >= 0; i--) {\n if (_backPressSubscriptions[i]()) {\n return;\n }\n }\n\n BackHandler.exitApp();\n});\n\n/**\n * Detect hardware button presses for back navigation.\n *\n * Android: Detect hardware back button presses, and programmatically invoke the default back button\n * functionality to exit the app if there are no listeners or if none of the listeners return true.\n *\n * tvOS: Detect presses of the menu button on the TV remote. (Still to be implemented:\n * programmatically disable menu button handling\n * functionality to exit the app if there are no listeners or if none of the listeners return true.)\n *\n * iOS: Not applicable.\n *\n * The event subscriptions are called in reverse order (i.e. last registered subscription first),\n * and if one subscription returns true then subscriptions registered earlier will not be called.\n *\n * Example:\n *\n * ```javascript\n * BackHandler.addEventListener('hardwareBackPress', function() {\n * // this.onMainScreen and this.goBack are just examples, you need to use your own implementation here\n * // Typically you would use the navigator here to go to the last state.\n *\n * if (!this.onMainScreen()) {\n * this.goBack();\n * return true;\n * }\n * return false;\n * });\n * ```\n */\ntype TBackHandler = {|\n +exitApp: () => void,\n +addEventListener: (\n eventName: BackPressEventName,\n handler: Function,\n ) => {remove: () => void, ...},\n +removeEventListener: (\n eventName: BackPressEventName,\n handler: Function,\n ) => void,\n|};\nconst BackHandler: TBackHandler = {\n exitApp: function(): void {\n if (!NativeDeviceEventManager) {\n return;\n }\n\n NativeDeviceEventManager.invokeDefaultBackPressHandler();\n },\n\n /**\n * Adds an event handler. Supported events:\n *\n * - `hardwareBackPress`: Fires when the Android hardware back button is pressed or when the\n * tvOS menu button is pressed.\n */\n addEventListener: function(\n eventName: BackPressEventName,\n handler: Function,\n ): {remove: () => void, ...} {\n if (_backPressSubscriptions.indexOf(handler) === -1) {\n _backPressSubscriptions.push(handler);\n }\n return {\n remove: (): void => BackHandler.removeEventListener(eventName, handler),\n };\n },\n\n /**\n * Removes the event handler.\n */\n removeEventListener: function(\n eventName: BackPressEventName,\n handler: Function,\n ): void {\n if (_backPressSubscriptions.indexOf(handler) !== -1) {\n _backPressSubscriptions.splice(\n _backPressSubscriptions.indexOf(handler),\n 1,\n );\n }\n },\n};\n\nmodule.exports = BackHandler;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +invokeDefaultBackPressHandler: () => void;\n}\n\nexport default (TurboModuleRegistry.get('DeviceEventManager'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';\n\n// TODO @sema: Adjust types\nimport type {ReactNativeType} from './ReactNativeTypes';\n\nlet ReactFabric;\n\nif (__DEV__) {\n ReactFabric = require('../implementations/ReactFabric-dev');\n} else {\n ReactFabric = require('../implementations/ReactFabric-prod');\n}\n\nBatchedBridge.registerCallableModule('ReactFabric', ReactFabric);\n\nmodule.exports = (ReactFabric: ReactNativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @noflow\n * @providesModule ReactFabric-prod\n * @preventMunge\n * @generated\n */\n\n\"use strict\";\nrequire(\"react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore\");\nvar ReactNativePrivateInterface = require(\"react-native/Libraries/ReactPrivate/ReactNativePrivateInterface\"),\n React = require(\"react\"),\n Scheduler = require(\"scheduler\");\nvar eventPluginOrder = null,\n namesToPlugins = {};\nfunction recomputePluginOrdering() {\n if (eventPluginOrder)\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName],\n pluginIndex = eventPluginOrder.indexOf(pluginName);\n if (!(-1 < pluginIndex))\n throw Error(\n \"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `\" +\n pluginName +\n \"`.\"\n );\n if (!plugins[pluginIndex]) {\n if (!pluginModule.extractEvents)\n throw Error(\n \"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `\" +\n pluginName +\n \"` does not.\"\n );\n plugins[pluginIndex] = pluginModule;\n pluginIndex = pluginModule.eventTypes;\n for (var eventName in pluginIndex) {\n var JSCompiler_inline_result = void 0;\n var dispatchConfig = pluginIndex[eventName],\n pluginModule$jscomp$0 = pluginModule,\n eventName$jscomp$0 = eventName;\n if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))\n throw Error(\n \"EventPluginHub: More than one plugin attempted to publish the same event name, `\" +\n eventName$jscomp$0 +\n \"`.\"\n );\n eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n if (phasedRegistrationNames) {\n for (JSCompiler_inline_result in phasedRegistrationNames)\n phasedRegistrationNames.hasOwnProperty(\n JSCompiler_inline_result\n ) &&\n publishRegistrationName(\n phasedRegistrationNames[JSCompiler_inline_result],\n pluginModule$jscomp$0,\n eventName$jscomp$0\n );\n JSCompiler_inline_result = !0;\n } else\n dispatchConfig.registrationName\n ? (publishRegistrationName(\n dispatchConfig.registrationName,\n pluginModule$jscomp$0,\n eventName$jscomp$0\n ),\n (JSCompiler_inline_result = !0))\n : (JSCompiler_inline_result = !1);\n if (!JSCompiler_inline_result)\n throw Error(\n \"EventPluginRegistry: Failed to publish event `\" +\n eventName +\n \"` for plugin `\" +\n pluginName +\n \"`.\"\n );\n }\n }\n }\n}\nfunction publishRegistrationName(registrationName, pluginModule) {\n if (registrationNameModules[registrationName])\n throw Error(\n \"EventPluginHub: More than one plugin attempted to publish the same registration name, `\" +\n registrationName +\n \"`.\"\n );\n registrationNameModules[registrationName] = pluginModule;\n}\nvar plugins = [],\n eventNameDispatchConfigs = {},\n registrationNameModules = {};\nfunction invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n}\nvar hasError = !1,\n caughtError = null,\n hasRethrowError = !1,\n rethrowError = null,\n reporter = {\n onError: function(error) {\n hasError = !0;\n caughtError = error;\n }\n };\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = !1;\n caughtError = null;\n invokeGuardedCallbackImpl.apply(reporter, arguments);\n}\nfunction invokeGuardedCallbackAndCatchFirstError(\n name,\n func,\n context,\n a,\n b,\n c,\n d,\n e,\n f\n) {\n invokeGuardedCallback.apply(this, arguments);\n if (hasError) {\n if (hasError) {\n var error = caughtError;\n hasError = !1;\n caughtError = null;\n } else\n throw Error(\n \"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.\"\n );\n hasRethrowError || ((hasRethrowError = !0), (rethrowError = error));\n }\n}\nvar getFiberCurrentPropsFromNode = null,\n getInstanceFromNode = null,\n getNodeFromInstance = null;\nfunction executeDispatch(event, listener, inst) {\n var type = event.type || \"unknown-event\";\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event);\n event.currentTarget = null;\n}\nfunction executeDirectDispatch(event) {\n var dispatchListener = event._dispatchListeners,\n dispatchInstance = event._dispatchInstances;\n if (Array.isArray(dispatchListener))\n throw Error(\"executeDirectDispatch(...): Invalid `event`.\");\n event.currentTarget = dispatchListener\n ? getNodeFromInstance(dispatchInstance)\n : null;\n dispatchListener = dispatchListener ? dispatchListener(event) : null;\n event.currentTarget = null;\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n return dispatchListener;\n}\nfunction accumulateInto(current, next) {\n if (null == next)\n throw Error(\n \"accumulateInto(...): Accumulated items must not be null or undefined.\"\n );\n if (null == current) return next;\n if (Array.isArray(current)) {\n if (Array.isArray(next)) return current.push.apply(current, next), current;\n current.push(next);\n return current;\n }\n return Array.isArray(next) ? [current].concat(next) : [current, next];\n}\nfunction forEachAccumulated(arr, cb, scope) {\n Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr);\n}\nvar eventQueue = null;\nfunction executeDispatchesAndReleaseTopLevel(e) {\n if (e) {\n var dispatchListeners = e._dispatchListeners,\n dispatchInstances = e._dispatchInstances;\n if (Array.isArray(dispatchListeners))\n for (\n var i = 0;\n i < dispatchListeners.length && !e.isPropagationStopped();\n i++\n )\n executeDispatch(e, dispatchListeners[i], dispatchInstances[i]);\n else\n dispatchListeners &&\n executeDispatch(e, dispatchListeners, dispatchInstances);\n e._dispatchListeners = null;\n e._dispatchInstances = null;\n e.isPersistent() || e.constructor.release(e);\n }\n}\nvar injection = {\n injectEventPluginOrder: function(injectedEventPluginOrder) {\n if (eventPluginOrder)\n throw Error(\n \"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.\"\n );\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n },\n injectEventPluginsByName: function(injectedNamesToPlugins) {\n var isOrderingDirty = !1,\n pluginName;\n for (pluginName in injectedNamesToPlugins)\n if (injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n var pluginModule = injectedNamesToPlugins[pluginName];\n if (\n !namesToPlugins.hasOwnProperty(pluginName) ||\n namesToPlugins[pluginName] !== pluginModule\n ) {\n if (namesToPlugins[pluginName])\n throw Error(\n \"EventPluginRegistry: Cannot inject two different event plugins using the same name, `\" +\n pluginName +\n \"`.\"\n );\n namesToPlugins[pluginName] = pluginModule;\n isOrderingDirty = !0;\n }\n }\n isOrderingDirty && recomputePluginOrdering();\n }\n};\nfunction getListener(inst, registrationName) {\n var listener = inst.stateNode;\n if (!listener) return null;\n var props = getFiberCurrentPropsFromNode(listener);\n if (!props) return null;\n listener = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n if (listener && \"function\" !== typeof listener)\n throw Error(\n \"Expected `\" +\n registrationName +\n \"` listener to be a function, instead got a value of `\" +\n typeof listener +\n \"` type.\"\n );\n return listener;\n}\nfunction getParent(inst) {\n do inst = inst.return;\n while (inst && 5 !== inst.tag);\n return inst ? inst : null;\n}\nfunction traverseTwoPhase(inst, fn, arg) {\n for (var path = []; inst; ) path.push(inst), (inst = getParent(inst));\n for (inst = path.length; 0 < inst--; ) fn(path[inst], \"captured\", arg);\n for (inst = 0; inst < path.length; inst++) fn(path[inst], \"bubbled\", arg);\n}\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n if (\n (phase = getListener(\n inst,\n event.dispatchConfig.phasedRegistrationNames[phase]\n ))\n )\n (event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n phase\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n ));\n}\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n event &&\n event.dispatchConfig.phasedRegistrationNames &&\n traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n}\nfunction accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n targetInst = targetInst ? getParent(targetInst) : null;\n traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event);\n }\n}\nfunction accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n var inst = event._targetInst;\n if (inst && event && event.dispatchConfig.registrationName) {\n var listener = getListener(inst, event.dispatchConfig.registrationName);\n listener &&\n ((event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n listener\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n )));\n }\n }\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction SyntheticEvent(\n dispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n) {\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n dispatchConfig = this.constructor.Interface;\n for (var propName in dispatchConfig)\n dispatchConfig.hasOwnProperty(propName) &&\n ((targetInst = dispatchConfig[propName])\n ? (this[propName] = targetInst(nativeEvent))\n : \"target\" === propName\n ? (this.target = nativeEventTarget)\n : (this[propName] = nativeEvent[propName]));\n this.isDefaultPrevented = (null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue)\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n}\nObject.assign(SyntheticEvent.prototype, {\n preventDefault: function() {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function() {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble && (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function() {\n this.isPersistent = functionThatReturnsTrue;\n },\n isPersistent: functionThatReturnsFalse,\n destructor: function() {\n var Interface = this.constructor.Interface,\n propName;\n for (propName in Interface) this[propName] = null;\n this.nativeEvent = this._targetInst = this.dispatchConfig = null;\n this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse;\n this._dispatchInstances = this._dispatchListeners = null;\n }\n});\nSyntheticEvent.Interface = {\n type: null,\n target: null,\n currentTarget: function() {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function(event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\nSyntheticEvent.extend = function(Interface) {\n function E() {}\n function Class() {\n return Super.apply(this, arguments);\n }\n var Super = this;\n E.prototype = Super.prototype;\n var prototype = new E();\n Object.assign(prototype, Class.prototype);\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n Class.Interface = Object.assign({}, Super.Interface, Interface);\n Class.extend = Super.extend;\n addEventPoolingTo(Class);\n return Class;\n};\naddEventPoolingTo(SyntheticEvent);\nfunction getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {\n if (this.eventPool.length) {\n var instance = this.eventPool.pop();\n this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n return instance;\n }\n return new this(dispatchConfig, targetInst, nativeEvent, nativeInst);\n}\nfunction releasePooledEvent(event) {\n if (!(event instanceof this))\n throw Error(\n \"Trying to release an event instance into a pool of a different type.\"\n );\n event.destructor();\n 10 > this.eventPool.length && this.eventPool.push(event);\n}\nfunction addEventPoolingTo(EventConstructor) {\n EventConstructor.eventPool = [];\n EventConstructor.getPooled = getPooledEvent;\n EventConstructor.release = releasePooledEvent;\n}\nvar ResponderSyntheticEvent = SyntheticEvent.extend({\n touchHistory: function() {\n return null;\n }\n});\nfunction isStartish(topLevelType) {\n return \"topTouchStart\" === topLevelType;\n}\nfunction isMoveish(topLevelType) {\n return \"topTouchMove\" === topLevelType;\n}\nvar startDependencies = [\"topTouchStart\"],\n moveDependencies = [\"topTouchMove\"],\n endDependencies = [\"topTouchCancel\", \"topTouchEnd\"],\n touchBank = [],\n touchHistory = {\n touchBank: touchBank,\n numberActiveTouches: 0,\n indexOfSingleActiveTouch: -1,\n mostRecentTimeStamp: 0\n };\nfunction timestampForTouch(touch) {\n return touch.timeStamp || touch.timestamp;\n}\nfunction getTouchIdentifier(_ref) {\n _ref = _ref.identifier;\n if (null == _ref) throw Error(\"Touch object is missing identifier.\");\n return _ref;\n}\nfunction recordTouchStart(touch) {\n var identifier = getTouchIdentifier(touch),\n touchRecord = touchBank[identifier];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.startPageX = touch.pageX),\n (touchRecord.startPageY = touch.pageY),\n (touchRecord.startTimeStamp = timestampForTouch(touch)),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchRecord.previousPageX = touch.pageX),\n (touchRecord.previousPageY = touch.pageY),\n (touchRecord.previousTimeStamp = timestampForTouch(touch)))\n : ((touchRecord = {\n touchActive: !0,\n startPageX: touch.pageX,\n startPageY: touch.pageY,\n startTimeStamp: timestampForTouch(touch),\n currentPageX: touch.pageX,\n currentPageY: touch.pageY,\n currentTimeStamp: timestampForTouch(touch),\n previousPageX: touch.pageX,\n previousPageY: touch.pageY,\n previousTimeStamp: timestampForTouch(touch)\n }),\n (touchBank[identifier] = touchRecord));\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n}\nfunction recordTouchMove(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.warn(\n \"Cannot record touch move without a touch start.\\nTouch Move: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction recordTouchEnd(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !1),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.warn(\n \"Cannot record touch end without a touch start.\\nTouch End: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction printTouch(touch) {\n return JSON.stringify({\n identifier: touch.identifier,\n pageX: touch.pageX,\n pageY: touch.pageY,\n timestamp: timestampForTouch(touch)\n });\n}\nfunction printTouchBank() {\n var printed = JSON.stringify(touchBank.slice(0, 20));\n 20 < touchBank.length &&\n (printed += \" (original size: \" + touchBank.length + \")\");\n return printed;\n}\nvar ResponderTouchHistoryStore = {\n recordTouchTrack: function(topLevelType, nativeEvent) {\n if (isMoveish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchMove);\n else if (isStartish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchStart),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches &&\n (touchHistory.indexOfSingleActiveTouch =\n nativeEvent.touches[0].identifier);\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (\n (nativeEvent.changedTouches.forEach(recordTouchEnd),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches)\n )\n for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++)\n if (\n ((nativeEvent = touchBank[topLevelType]),\n null != nativeEvent && nativeEvent.touchActive)\n ) {\n touchHistory.indexOfSingleActiveTouch = topLevelType;\n break;\n }\n },\n touchHistory: touchHistory\n};\nfunction accumulate(current, next) {\n if (null == next)\n throw Error(\n \"accumulate(...): Accumulated items must not be null or undefined.\"\n );\n return null == current\n ? next\n : Array.isArray(current)\n ? current.concat(next)\n : Array.isArray(next)\n ? [current].concat(next)\n : [current, next];\n}\nvar responderInst = null,\n trackedTouchCount = 0;\nfunction changeResponder(nextResponderInst, blockHostResponder) {\n var oldResponderInst = responderInst;\n responderInst = nextResponderInst;\n if (null !== ResponderEventPlugin.GlobalResponderHandler)\n ResponderEventPlugin.GlobalResponderHandler.onChange(\n oldResponderInst,\n nextResponderInst,\n blockHostResponder\n );\n}\nvar eventTypes = {\n startShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onStartShouldSetResponder\",\n captured: \"onStartShouldSetResponderCapture\"\n },\n dependencies: startDependencies\n },\n scrollShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onScrollShouldSetResponder\",\n captured: \"onScrollShouldSetResponderCapture\"\n },\n dependencies: [\"topScroll\"]\n },\n selectionChangeShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onSelectionChangeShouldSetResponder\",\n captured: \"onSelectionChangeShouldSetResponderCapture\"\n },\n dependencies: [\"topSelectionChange\"]\n },\n moveShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onMoveShouldSetResponder\",\n captured: \"onMoveShouldSetResponderCapture\"\n },\n dependencies: moveDependencies\n },\n responderStart: {\n registrationName: \"onResponderStart\",\n dependencies: startDependencies\n },\n responderMove: {\n registrationName: \"onResponderMove\",\n dependencies: moveDependencies\n },\n responderEnd: {\n registrationName: \"onResponderEnd\",\n dependencies: endDependencies\n },\n responderRelease: {\n registrationName: \"onResponderRelease\",\n dependencies: endDependencies\n },\n responderTerminationRequest: {\n registrationName: \"onResponderTerminationRequest\",\n dependencies: []\n },\n responderGrant: { registrationName: \"onResponderGrant\", dependencies: [] },\n responderReject: {\n registrationName: \"onResponderReject\",\n dependencies: []\n },\n responderTerminate: {\n registrationName: \"onResponderTerminate\",\n dependencies: []\n }\n },\n ResponderEventPlugin = {\n _getResponder: function() {\n return responderInst;\n },\n eventTypes: eventTypes,\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (isStartish(topLevelType)) trackedTouchCount += 1;\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (0 <= trackedTouchCount) --trackedTouchCount;\n else\n return (\n console.warn(\n \"Ended a touch event which was not counted in `trackedTouchCount`.\"\n ),\n null\n );\n ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent);\n if (\n targetInst &&\n ((\"topScroll\" === topLevelType && !nativeEvent.responderIgnoreScroll) ||\n (0 < trackedTouchCount && \"topSelectionChange\" === topLevelType) ||\n isStartish(topLevelType) ||\n isMoveish(topLevelType))\n ) {\n var shouldSetEventType = isStartish(topLevelType)\n ? eventTypes.startShouldSetResponder\n : isMoveish(topLevelType)\n ? eventTypes.moveShouldSetResponder\n : \"topSelectionChange\" === topLevelType\n ? eventTypes.selectionChangeShouldSetResponder\n : eventTypes.scrollShouldSetResponder;\n if (responderInst)\n b: {\n var JSCompiler_temp = responderInst;\n for (\n var depthA = 0, tempA = JSCompiler_temp;\n tempA;\n tempA = getParent(tempA)\n )\n depthA++;\n tempA = 0;\n for (var tempB = targetInst; tempB; tempB = getParent(tempB))\n tempA++;\n for (; 0 < depthA - tempA; )\n (JSCompiler_temp = getParent(JSCompiler_temp)), depthA--;\n for (; 0 < tempA - depthA; )\n (targetInst = getParent(targetInst)), tempA--;\n for (; depthA--; ) {\n if (\n JSCompiler_temp === targetInst ||\n JSCompiler_temp === targetInst.alternate\n )\n break b;\n JSCompiler_temp = getParent(JSCompiler_temp);\n targetInst = getParent(targetInst);\n }\n JSCompiler_temp = null;\n }\n else JSCompiler_temp = targetInst;\n targetInst = JSCompiler_temp === responderInst;\n JSCompiler_temp = ResponderSyntheticEvent.getPooled(\n shouldSetEventType,\n JSCompiler_temp,\n nativeEvent,\n nativeEventTarget\n );\n JSCompiler_temp.touchHistory = ResponderTouchHistoryStore.touchHistory;\n targetInst\n ? forEachAccumulated(\n JSCompiler_temp,\n accumulateTwoPhaseDispatchesSingleSkipTarget\n )\n : forEachAccumulated(\n JSCompiler_temp,\n accumulateTwoPhaseDispatchesSingle\n );\n b: {\n shouldSetEventType = JSCompiler_temp._dispatchListeners;\n targetInst = JSCompiler_temp._dispatchInstances;\n if (Array.isArray(shouldSetEventType))\n for (\n depthA = 0;\n depthA < shouldSetEventType.length &&\n !JSCompiler_temp.isPropagationStopped();\n depthA++\n ) {\n if (\n shouldSetEventType[depthA](JSCompiler_temp, targetInst[depthA])\n ) {\n shouldSetEventType = targetInst[depthA];\n break b;\n }\n }\n else if (\n shouldSetEventType &&\n shouldSetEventType(JSCompiler_temp, targetInst)\n ) {\n shouldSetEventType = targetInst;\n break b;\n }\n shouldSetEventType = null;\n }\n JSCompiler_temp._dispatchInstances = null;\n JSCompiler_temp._dispatchListeners = null;\n JSCompiler_temp.isPersistent() ||\n JSCompiler_temp.constructor.release(JSCompiler_temp);\n if (shouldSetEventType && shouldSetEventType !== responderInst)\n if (\n ((JSCompiler_temp = ResponderSyntheticEvent.getPooled(\n eventTypes.responderGrant,\n shouldSetEventType,\n nativeEvent,\n nativeEventTarget\n )),\n (JSCompiler_temp.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n JSCompiler_temp,\n accumulateDirectDispatchesSingle\n ),\n (targetInst = !0 === executeDirectDispatch(JSCompiler_temp)),\n responderInst)\n )\n if (\n ((depthA = ResponderSyntheticEvent.getPooled(\n eventTypes.responderTerminationRequest,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (depthA.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(depthA, accumulateDirectDispatchesSingle),\n (tempA =\n !depthA._dispatchListeners || executeDirectDispatch(depthA)),\n depthA.isPersistent() || depthA.constructor.release(depthA),\n tempA)\n ) {\n depthA = ResponderSyntheticEvent.getPooled(\n eventTypes.responderTerminate,\n responderInst,\n nativeEvent,\n nativeEventTarget\n );\n depthA.touchHistory = ResponderTouchHistoryStore.touchHistory;\n forEachAccumulated(depthA, accumulateDirectDispatchesSingle);\n var JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n [JSCompiler_temp, depthA]\n );\n changeResponder(shouldSetEventType, targetInst);\n } else\n (shouldSetEventType = ResponderSyntheticEvent.getPooled(\n eventTypes.responderReject,\n shouldSetEventType,\n nativeEvent,\n nativeEventTarget\n )),\n (shouldSetEventType.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n shouldSetEventType,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n shouldSetEventType\n ));\n else\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n JSCompiler_temp\n )),\n changeResponder(shouldSetEventType, targetInst);\n else JSCompiler_temp$jscomp$0 = null;\n } else JSCompiler_temp$jscomp$0 = null;\n shouldSetEventType = responderInst && isStartish(topLevelType);\n JSCompiler_temp = responderInst && isMoveish(topLevelType);\n targetInst =\n responderInst &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType);\n if (\n (shouldSetEventType = shouldSetEventType\n ? eventTypes.responderStart\n : JSCompiler_temp\n ? eventTypes.responderMove\n : targetInst\n ? eventTypes.responderEnd\n : null)\n )\n (shouldSetEventType = ResponderSyntheticEvent.getPooled(\n shouldSetEventType,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (shouldSetEventType.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n shouldSetEventType,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n shouldSetEventType\n ));\n shouldSetEventType = responderInst && \"topTouchCancel\" === topLevelType;\n if (\n (topLevelType =\n responderInst &&\n !shouldSetEventType &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType))\n )\n a: {\n if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length)\n for (\n JSCompiler_temp = 0;\n JSCompiler_temp < topLevelType.length;\n JSCompiler_temp++\n )\n if (\n ((targetInst = topLevelType[JSCompiler_temp].target),\n null !== targetInst &&\n void 0 !== targetInst &&\n 0 !== targetInst)\n ) {\n depthA = getInstanceFromNode(targetInst);\n b: {\n for (targetInst = responderInst; depthA; ) {\n if (\n targetInst === depthA ||\n targetInst === depthA.alternate\n ) {\n targetInst = !0;\n break b;\n }\n depthA = getParent(depthA);\n }\n targetInst = !1;\n }\n if (targetInst) {\n topLevelType = !1;\n break a;\n }\n }\n topLevelType = !0;\n }\n if (\n (topLevelType = shouldSetEventType\n ? eventTypes.responderTerminate\n : topLevelType\n ? eventTypes.responderRelease\n : null)\n )\n (nativeEvent = ResponderSyntheticEvent.getPooled(\n topLevelType,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n nativeEvent\n )),\n changeResponder(null);\n return JSCompiler_temp$jscomp$0;\n },\n GlobalResponderHandler: null,\n injection: {\n injectGlobalResponderHandler: function(GlobalResponderHandler) {\n ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler;\n }\n }\n },\n customBubblingEventTypes =\n ReactNativePrivateInterface.ReactNativeViewConfigRegistry\n .customBubblingEventTypes,\n customDirectEventTypes =\n ReactNativePrivateInterface.ReactNativeViewConfigRegistry\n .customDirectEventTypes;\ninjection.injectEventPluginOrder([\n \"ResponderEventPlugin\",\n \"ReactNativeBridgeEventPlugin\"\n]);\ninjection.injectEventPluginsByName({\n ResponderEventPlugin: ResponderEventPlugin,\n ReactNativeBridgeEventPlugin: {\n eventTypes: {},\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (null == targetInst) return null;\n var bubbleDispatchConfig = customBubblingEventTypes[topLevelType],\n directDispatchConfig = customDirectEventTypes[topLevelType];\n if (!bubbleDispatchConfig && !directDispatchConfig)\n throw Error(\n 'Unsupported top level event type \"' + topLevelType + '\" dispatched'\n );\n topLevelType = SyntheticEvent.getPooled(\n bubbleDispatchConfig || directDispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n );\n if (bubbleDispatchConfig)\n forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);\n else if (directDispatchConfig)\n forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);\n else return null;\n return topLevelType;\n }\n }\n});\nfunction getInstanceFromInstance(instanceHandle) {\n return instanceHandle;\n}\ngetFiberCurrentPropsFromNode = function(inst) {\n return inst.canonical.currentProps;\n};\ngetInstanceFromNode = getInstanceFromInstance;\ngetNodeFromInstance = function(inst) {\n inst = inst.stateNode.canonical._nativeTag;\n if (!inst) throw Error(\"All native instances should have a tag.\");\n return inst;\n};\nResponderEventPlugin.injection.injectGlobalResponderHandler({\n onChange: function(from, to, blockNativeResponder) {\n null !== to\n ? ReactNativePrivateInterface.UIManager.setJSResponder(\n to.stateNode.canonical._nativeTag,\n blockNativeResponder\n )\n : ReactNativePrivateInterface.UIManager.clearJSResponder();\n }\n});\nvar ReactSharedInternals =\n React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\nReactSharedInternals.hasOwnProperty(\"ReactCurrentDispatcher\") ||\n (ReactSharedInternals.ReactCurrentDispatcher = { current: null });\nReactSharedInternals.hasOwnProperty(\"ReactCurrentBatchConfig\") ||\n (ReactSharedInternals.ReactCurrentBatchConfig = { suspense: null });\nvar hasSymbol = \"function\" === typeof Symbol && Symbol.for,\n REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for(\"react.element\") : 60103,\n REACT_PORTAL_TYPE = hasSymbol ? Symbol.for(\"react.portal\") : 60106,\n REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for(\"react.fragment\") : 60107,\n REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for(\"react.strict_mode\") : 60108,\n REACT_PROFILER_TYPE = hasSymbol ? Symbol.for(\"react.profiler\") : 60114,\n REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for(\"react.provider\") : 60109,\n REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for(\"react.context\") : 60110,\n REACT_CONCURRENT_MODE_TYPE = hasSymbol\n ? Symbol.for(\"react.concurrent_mode\")\n : 60111,\n REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for(\"react.forward_ref\") : 60112,\n REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for(\"react.suspense\") : 60113,\n REACT_SUSPENSE_LIST_TYPE = hasSymbol\n ? Symbol.for(\"react.suspense_list\")\n : 60120,\n REACT_MEMO_TYPE = hasSymbol ? Symbol.for(\"react.memo\") : 60115,\n REACT_LAZY_TYPE = hasSymbol ? Symbol.for(\"react.lazy\") : 60116;\nhasSymbol && Symbol.for(\"react.fundamental\");\nhasSymbol && Symbol.for(\"react.responder\");\nhasSymbol && Symbol.for(\"react.scope\");\nvar MAYBE_ITERATOR_SYMBOL = \"function\" === typeof Symbol && Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nfunction initializeLazyComponentType(lazyComponent) {\n if (-1 === lazyComponent._status) {\n lazyComponent._status = 0;\n var ctor = lazyComponent._ctor;\n ctor = ctor();\n lazyComponent._result = ctor;\n ctor.then(\n function(moduleObject) {\n 0 === lazyComponent._status &&\n ((moduleObject = moduleObject.default),\n (lazyComponent._status = 1),\n (lazyComponent._result = moduleObject));\n },\n function(error) {\n 0 === lazyComponent._status &&\n ((lazyComponent._status = 2), (lazyComponent._result = error));\n }\n );\n }\n}\nfunction getComponentName(type) {\n if (null == type) return null;\n if (\"function\" === typeof type) return type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return \"Context.Consumer\";\n case REACT_PROVIDER_TYPE:\n return \"Context.Provider\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n innerType = innerType.displayName || innerType.name || \"\";\n return (\n type.displayName ||\n (\"\" !== innerType ? \"ForwardRef(\" + innerType + \")\" : \"ForwardRef\")\n );\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n if ((type = 1 === type._status ? type._result : null))\n return getComponentName(type);\n }\n return null;\n}\nfunction getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.effectTag & 1026) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n}\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber)\n throw Error(\"Unable to find node on an unmounted component.\");\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n alternate = getNearestMountedFiber(fiber);\n if (null === alternate)\n throw Error(\"Unable to find node on an unmounted component.\");\n return alternate !== fiber ? null : fiber;\n }\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return;\n if (null === parentA) break;\n var parentB = parentA.alternate;\n if (null === parentB) {\n b = parentA.return;\n if (null !== b) {\n a = b;\n continue;\n }\n break;\n }\n if (parentA.child === parentB.child) {\n for (parentB = parentA.child; parentB; ) {\n if (parentB === a) return assertIsMounted(parentA), fiber;\n if (parentB === b) return assertIsMounted(parentA), alternate;\n parentB = parentB.sibling;\n }\n throw Error(\"Unable to find node on an unmounted component.\");\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n for (var didFindChild = !1, _child = parentA.child; _child; ) {\n if (_child === a) {\n didFindChild = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (_child === b) {\n didFindChild = !0;\n b = parentA;\n a = parentB;\n break;\n }\n _child = _child.sibling;\n }\n if (!didFindChild) {\n for (_child = parentB.child; _child; ) {\n if (_child === a) {\n didFindChild = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (_child === b) {\n didFindChild = !0;\n b = parentB;\n a = parentA;\n break;\n }\n _child = _child.sibling;\n }\n if (!didFindChild)\n throw Error(\n \"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\"\n );\n }\n }\n if (a.alternate !== b)\n throw Error(\n \"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n if (3 !== a.tag)\n throw Error(\"Unable to find node on an unmounted component.\");\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiber(parent) {\n parent = findCurrentFiberUsingSlowPath(parent);\n if (!parent) return null;\n for (var node = parent; ; ) {\n if (5 === node.tag || 6 === node.tag) return node;\n if (node.child) (node.child.return = node), (node = node.child);\n else {\n if (node === parent) break;\n for (; !node.sibling; ) {\n if (!node.return || node.return === parent) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n return null;\n}\nfunction mountSafeCallback_NOT_REALLY_SAFE(context, callback) {\n return function() {\n if (\n callback &&\n (\"boolean\" !== typeof context.__isMounted || context.__isMounted)\n )\n return callback.apply(context, arguments);\n };\n}\nvar emptyObject = {},\n removedKeys = null,\n removedKeyCount = 0,\n deepDifferOptions = { unsafelyIgnoreFunctions: !0 };\nfunction defaultDiffer(prevProp, nextProp) {\n return \"object\" !== typeof nextProp || null === nextProp\n ? !0\n : ReactNativePrivateInterface.deepDiffer(\n prevProp,\n nextProp,\n deepDifferOptions\n );\n}\nfunction restoreDeletedValuesInNestedArray(\n updatePayload,\n node,\n validAttributes\n) {\n if (Array.isArray(node))\n for (var i = node.length; i-- && 0 < removedKeyCount; )\n restoreDeletedValuesInNestedArray(\n updatePayload,\n node[i],\n validAttributes\n );\n else if (node && 0 < removedKeyCount)\n for (i in removedKeys)\n if (removedKeys[i]) {\n var nextProp = node[i];\n if (void 0 !== nextProp) {\n var attributeConfig = validAttributes[i];\n if (attributeConfig) {\n \"function\" === typeof nextProp && (nextProp = !0);\n \"undefined\" === typeof nextProp && (nextProp = null);\n if (\"object\" !== typeof attributeConfig)\n updatePayload[i] = nextProp;\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (nextProp =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[i] = nextProp);\n removedKeys[i] = !1;\n removedKeyCount--;\n }\n }\n }\n}\nfunction diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n validAttributes\n) {\n if (!updatePayload && prevProp === nextProp) return updatePayload;\n if (!prevProp || !nextProp)\n return nextProp\n ? addNestedProperty(updatePayload, nextProp, validAttributes)\n : prevProp\n ? clearNestedProperty(updatePayload, prevProp, validAttributes)\n : updatePayload;\n if (!Array.isArray(prevProp) && !Array.isArray(nextProp))\n return diffProperties(updatePayload, prevProp, nextProp, validAttributes);\n if (Array.isArray(prevProp) && Array.isArray(nextProp)) {\n var minLength =\n prevProp.length < nextProp.length ? prevProp.length : nextProp.length,\n i;\n for (i = 0; i < minLength; i++)\n updatePayload = diffNestedProperty(\n updatePayload,\n prevProp[i],\n nextProp[i],\n validAttributes\n );\n for (; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n for (; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n }\n return Array.isArray(prevProp)\n ? diffProperties(\n updatePayload,\n ReactNativePrivateInterface.flattenStyle(prevProp),\n nextProp,\n validAttributes\n )\n : diffProperties(\n updatePayload,\n prevProp,\n ReactNativePrivateInterface.flattenStyle(nextProp),\n validAttributes\n );\n}\nfunction addNestedProperty(updatePayload, nextProp, validAttributes) {\n if (!nextProp) return updatePayload;\n if (!Array.isArray(nextProp))\n return diffProperties(\n updatePayload,\n emptyObject,\n nextProp,\n validAttributes\n );\n for (var i = 0; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction clearNestedProperty(updatePayload, prevProp, validAttributes) {\n if (!prevProp) return updatePayload;\n if (!Array.isArray(prevProp))\n return diffProperties(\n updatePayload,\n prevProp,\n emptyObject,\n validAttributes\n );\n for (var i = 0; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction diffProperties(updatePayload, prevProps, nextProps, validAttributes) {\n var attributeConfig, propKey;\n for (propKey in nextProps)\n if ((attributeConfig = validAttributes[propKey])) {\n var prevProp = prevProps[propKey];\n var nextProp = nextProps[propKey];\n \"function\" === typeof nextProp &&\n ((nextProp = !0), \"function\" === typeof prevProp && (prevProp = !0));\n \"undefined\" === typeof nextProp &&\n ((nextProp = null),\n \"undefined\" === typeof prevProp && (prevProp = null));\n removedKeys && (removedKeys[propKey] = !1);\n if (updatePayload && void 0 !== updatePayload[propKey])\n if (\"object\" !== typeof attributeConfig)\n updatePayload[propKey] = nextProp;\n else {\n if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[propKey] = attributeConfig);\n }\n else if (prevProp !== nextProp)\n if (\"object\" !== typeof attributeConfig)\n defaultDiffer(prevProp, nextProp) &&\n ((updatePayload || (updatePayload = {}))[propKey] = nextProp);\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ) {\n if (\n void 0 === prevProp ||\n (\"function\" === typeof attributeConfig.diff\n ? attributeConfig.diff(prevProp, nextProp)\n : defaultDiffer(prevProp, nextProp))\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n ((updatePayload || (updatePayload = {}))[\n propKey\n ] = attributeConfig);\n } else\n (removedKeys = null),\n (removedKeyCount = 0),\n (updatePayload = diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n attributeConfig\n )),\n 0 < removedKeyCount &&\n updatePayload &&\n (restoreDeletedValuesInNestedArray(\n updatePayload,\n nextProp,\n attributeConfig\n ),\n (removedKeys = null));\n }\n for (var _propKey in prevProps)\n void 0 === nextProps[_propKey] &&\n (!(attributeConfig = validAttributes[_propKey]) ||\n (updatePayload && void 0 !== updatePayload[_propKey]) ||\n ((prevProp = prevProps[_propKey]),\n void 0 !== prevProp &&\n (\"object\" !== typeof attributeConfig ||\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ? (((updatePayload || (updatePayload = {}))[_propKey] = null),\n removedKeys || (removedKeys = {}),\n removedKeys[_propKey] ||\n ((removedKeys[_propKey] = !0), removedKeyCount++))\n : (updatePayload = clearNestedProperty(\n updatePayload,\n prevProp,\n attributeConfig\n )))));\n return updatePayload;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n if (getInstanceFromNode(target))\n throw Error(\n \"setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.\"\n );\n}\nfunction batchedUpdatesImpl(fn, bookkeeping) {\n return fn(bookkeeping);\n}\nfunction flushDiscreteUpdatesImpl() {}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates(fn, bookkeeping) {\n if (isInsideEventHandler) return fn(bookkeeping);\n isInsideEventHandler = !0;\n try {\n return batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n if (\n ((isInsideEventHandler = !1),\n null !== restoreTarget || null !== restoreQueue)\n )\n if (\n (flushDiscreteUpdatesImpl(),\n restoreTarget &&\n ((bookkeeping = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(bookkeeping),\n fn))\n )\n for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++)\n restoreStateOfTarget(fn[bookkeeping]);\n }\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n(function(_React$Component) {\n function ReactNativeComponent() {\n return _React$Component.apply(this, arguments) || this;\n }\n _inheritsLoose(ReactNativeComponent, _React$Component);\n var _proto = ReactNativeComponent.prototype;\n _proto.blur = function() {};\n _proto.focus = function() {};\n _proto.measure = function() {};\n _proto.measureInWindow = function() {};\n _proto.measureLayout = function() {};\n _proto.setNativeProps = function() {};\n return ReactNativeComponent;\n})(React.Component);\nnew Map();\nfunction dispatchEvent(target, topLevelType, nativeEvent) {\n var eventTarget = null;\n eventTarget = nativeEvent.target;\n batchedUpdates(function() {\n var events = eventTarget;\n for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) {\n var possiblePlugin = plugins[i];\n possiblePlugin &&\n (possiblePlugin = possiblePlugin.extractEvents(\n topLevelType,\n target,\n nativeEvent,\n events,\n 1\n )) &&\n (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin));\n }\n events = events$jscomp$0;\n null !== events && (eventQueue = accumulateInto(eventQueue, events));\n events = eventQueue;\n eventQueue = null;\n if (events) {\n forEachAccumulated(events, executeDispatchesAndReleaseTopLevel);\n if (eventQueue)\n throw Error(\n \"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.\"\n );\n if (hasRethrowError)\n throw ((events = rethrowError),\n (hasRethrowError = !1),\n (rethrowError = null),\n events);\n }\n });\n}\nfunction shim$1() {\n throw Error(\n \"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue.\"\n );\n}\nvar _nativeFabricUIManage$1 = nativeFabricUIManager,\n createNode = _nativeFabricUIManage$1.createNode,\n cloneNode = _nativeFabricUIManage$1.cloneNode,\n cloneNodeWithNewChildren = _nativeFabricUIManage$1.cloneNodeWithNewChildren,\n cloneNodeWithNewChildrenAndProps =\n _nativeFabricUIManage$1.cloneNodeWithNewChildrenAndProps,\n cloneNodeWithNewProps = _nativeFabricUIManage$1.cloneNodeWithNewProps,\n createChildNodeSet = _nativeFabricUIManage$1.createChildSet,\n appendChildNode = _nativeFabricUIManage$1.appendChild,\n appendChildNodeToSet = _nativeFabricUIManage$1.appendChildToSet,\n completeRoot = _nativeFabricUIManage$1.completeRoot,\n registerEventHandler = _nativeFabricUIManage$1.registerEventHandler,\n fabricMeasure = _nativeFabricUIManage$1.measure,\n fabricMeasureInWindow = _nativeFabricUIManage$1.measureInWindow,\n fabricMeasureLayout = _nativeFabricUIManage$1.measureLayout,\n getViewConfigForType =\n ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,\n nextReactTag = 2;\nregisterEventHandler && registerEventHandler(dispatchEvent);\nvar ReactFabricHostComponent = (function() {\n function ReactFabricHostComponent(\n tag,\n viewConfig,\n props,\n internalInstanceHandle\n ) {\n this._nativeTag = tag;\n this.viewConfig = viewConfig;\n this.currentProps = props;\n this._internalInstanceHandle = internalInstanceHandle;\n }\n var _proto = ReactFabricHostComponent.prototype;\n _proto.blur = function() {\n ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);\n };\n _proto.focus = function() {\n ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);\n };\n _proto.measure = function(callback) {\n fabricMeasure(\n this._internalInstanceHandle.stateNode.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n _proto.measureInWindow = function(callback) {\n fabricMeasureInWindow(\n this._internalInstanceHandle.stateNode.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n _proto.measureLayout = function(relativeToNativeNode, onSuccess, onFail) {\n \"number\" !== typeof relativeToNativeNode &&\n relativeToNativeNode instanceof ReactFabricHostComponent &&\n fabricMeasureLayout(\n this._internalInstanceHandle.stateNode.node,\n relativeToNativeNode._internalInstanceHandle.stateNode.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n };\n _proto.setNativeProps = function() {};\n return ReactFabricHostComponent;\n})();\nfunction createTextInstance(\n text,\n rootContainerInstance,\n hostContext,\n internalInstanceHandle\n) {\n if (!hostContext.isInAParentText)\n throw Error(\"Text strings must be rendered within a component.\");\n hostContext = nextReactTag;\n nextReactTag += 2;\n return {\n node: createNode(\n hostContext,\n \"RCTRawText\",\n rootContainerInstance,\n { text: text },\n internalInstanceHandle\n )\n };\n}\nvar scheduleTimeout = setTimeout,\n cancelTimeout = clearTimeout;\nfunction cloneHiddenInstance(instance) {\n var node = instance.node;\n var updatePayload = diffProperties(\n null,\n emptyObject,\n { style: { display: \"none\" } },\n instance.canonical.viewConfig.validAttributes\n );\n return {\n node: cloneNodeWithNewProps(node, updatePayload),\n canonical: instance.canonical\n };\n}\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\nfunction getStackByFiberInDevAndProd(workInProgress) {\n var info = \"\";\n do {\n a: switch (workInProgress.tag) {\n case 3:\n case 4:\n case 6:\n case 7:\n case 10:\n case 9:\n var JSCompiler_inline_result = \"\";\n break a;\n default:\n var owner = workInProgress._debugOwner,\n source = workInProgress._debugSource,\n name = getComponentName(workInProgress.type);\n JSCompiler_inline_result = null;\n owner && (JSCompiler_inline_result = getComponentName(owner.type));\n owner = name;\n name = \"\";\n source\n ? (name =\n \" (at \" +\n source.fileName.replace(BEFORE_SLASH_RE, \"\") +\n \":\" +\n source.lineNumber +\n \")\")\n : JSCompiler_inline_result &&\n (name = \" (created by \" + JSCompiler_inline_result + \")\");\n JSCompiler_inline_result = \"\\n in \" + (owner || \"Unknown\") + name;\n }\n info += JSCompiler_inline_result;\n workInProgress = workInProgress.return;\n } while (workInProgress);\n return info;\n}\nnew Set();\nvar valueStack = [],\n index = -1;\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar emptyContextObject = {},\n contextStackCursor = { current: emptyContextObject },\n didPerformWorkStackCursor = { current: !1 },\n previousContext = emptyContextObject;\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n var contextTypes = workInProgress.type.contextTypes;\n if (!contextTypes) return emptyContextObject;\n var instance = workInProgress.stateNode;\n if (\n instance &&\n instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext\n )\n return instance.__reactInternalMemoizedMaskedChildContext;\n var context = {},\n key;\n for (key in contextTypes) context[key] = unmaskedContext[key];\n instance &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return context;\n}\nfunction isContextProvider(type) {\n type = type.childContextTypes;\n return null !== type && void 0 !== type;\n}\nfunction popContext(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction popTopLevelContextObject(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n if (contextStackCursor.current !== emptyContextObject)\n throw Error(\n \"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.\"\n );\n push(contextStackCursor, context, fiber);\n push(didPerformWorkStackCursor, didChange, fiber);\n}\nfunction processChildContext(fiber, type, parentContext) {\n var instance = fiber.stateNode;\n fiber = type.childContextTypes;\n if (\"function\" !== typeof instance.getChildContext) return parentContext;\n instance = instance.getChildContext();\n for (var contextKey in instance)\n if (!(contextKey in fiber))\n throw Error(\n (getComponentName(type) || \"Unknown\") +\n '.getChildContext(): key \"' +\n contextKey +\n '\" is not defined in childContextTypes.'\n );\n return Object.assign({}, parentContext, {}, instance);\n}\nfunction pushContextProvider(workInProgress) {\n var instance = workInProgress.stateNode;\n instance =\n (instance && instance.__reactInternalMemoizedMergedChildContext) ||\n emptyContextObject;\n previousContext = contextStackCursor.current;\n push(contextStackCursor, instance, workInProgress);\n push(\n didPerformWorkStackCursor,\n didPerformWorkStackCursor.current,\n workInProgress\n );\n return !0;\n}\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n var instance = workInProgress.stateNode;\n if (!instance)\n throw Error(\n \"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.\"\n );\n didChange\n ? ((type = processChildContext(workInProgress, type, previousContext)),\n (instance.__reactInternalMemoizedMergedChildContext = type),\n pop(didPerformWorkStackCursor, workInProgress),\n pop(contextStackCursor, workInProgress),\n push(contextStackCursor, type, workInProgress))\n : pop(didPerformWorkStackCursor, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n}\nvar Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,\n Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,\n Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,\n Scheduler_shouldYield = Scheduler.unstable_shouldYield,\n Scheduler_requestPaint = Scheduler.unstable_requestPaint,\n Scheduler_now = Scheduler.unstable_now,\n Scheduler_getCurrentPriorityLevel =\n Scheduler.unstable_getCurrentPriorityLevel,\n Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,\n Scheduler_LowPriority = Scheduler.unstable_LowPriority,\n Scheduler_IdlePriority = Scheduler.unstable_IdlePriority,\n fakeCallbackNode = {},\n requestPaint =\n void 0 !== Scheduler_requestPaint ? Scheduler_requestPaint : function() {},\n syncQueue = null,\n immediateQueueCallbackNode = null,\n isFlushingSyncQueue = !1,\n initialTimeMs = Scheduler_now(),\n now =\n 1e4 > initialTimeMs\n ? Scheduler_now\n : function() {\n return Scheduler_now() - initialTimeMs;\n };\nfunction getCurrentPriorityLevel() {\n switch (Scheduler_getCurrentPriorityLevel()) {\n case Scheduler_ImmediatePriority:\n return 99;\n case Scheduler_UserBlockingPriority:\n return 98;\n case Scheduler_NormalPriority:\n return 97;\n case Scheduler_LowPriority:\n return 96;\n case Scheduler_IdlePriority:\n return 95;\n default:\n throw Error(\"Unknown priority level.\");\n }\n}\nfunction reactPriorityToSchedulerPriority(reactPriorityLevel) {\n switch (reactPriorityLevel) {\n case 99:\n return Scheduler_ImmediatePriority;\n case 98:\n return Scheduler_UserBlockingPriority;\n case 97:\n return Scheduler_NormalPriority;\n case 96:\n return Scheduler_LowPriority;\n case 95:\n return Scheduler_IdlePriority;\n default:\n throw Error(\"Unknown priority level.\");\n }\n}\nfunction runWithPriority$1(reactPriorityLevel, fn) {\n reactPriorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);\n return Scheduler_runWithPriority(reactPriorityLevel, fn);\n}\nfunction scheduleCallback(reactPriorityLevel, callback, options) {\n reactPriorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);\n return Scheduler_scheduleCallback(reactPriorityLevel, callback, options);\n}\nfunction scheduleSyncCallback(callback) {\n null === syncQueue\n ? ((syncQueue = [callback]),\n (immediateQueueCallbackNode = Scheduler_scheduleCallback(\n Scheduler_ImmediatePriority,\n flushSyncCallbackQueueImpl\n )))\n : syncQueue.push(callback);\n return fakeCallbackNode;\n}\nfunction flushSyncCallbackQueue() {\n if (null !== immediateQueueCallbackNode) {\n var node = immediateQueueCallbackNode;\n immediateQueueCallbackNode = null;\n Scheduler_cancelCallback(node);\n }\n flushSyncCallbackQueueImpl();\n}\nfunction flushSyncCallbackQueueImpl() {\n if (!isFlushingSyncQueue && null !== syncQueue) {\n isFlushingSyncQueue = !0;\n var i = 0;\n try {\n var queue = syncQueue;\n runWithPriority$1(99, function() {\n for (; i < queue.length; i++) {\n var callback = queue[i];\n do callback = callback(!0);\n while (null !== callback);\n }\n });\n syncQueue = null;\n } catch (error) {\n throw (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)),\n Scheduler_scheduleCallback(\n Scheduler_ImmediatePriority,\n flushSyncCallbackQueue\n ),\n error);\n } finally {\n isFlushingSyncQueue = !1;\n }\n }\n}\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar is$1 = \"function\" === typeof Object.is ? Object.is : is,\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction shallowEqual(objA, objB) {\n if (is$1(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++)\n if (\n !hasOwnProperty.call(objB, keysA[keysB]) ||\n !is$1(objA[keysA[keysB]], objB[keysA[keysB]])\n )\n return !1;\n return !0;\n}\nfunction resolveDefaultProps(Component, baseProps) {\n if (Component && Component.defaultProps) {\n baseProps = Object.assign({}, baseProps);\n Component = Component.defaultProps;\n for (var propName in Component)\n void 0 === baseProps[propName] &&\n (baseProps[propName] = Component[propName]);\n }\n return baseProps;\n}\nvar valueCursor = { current: null },\n currentlyRenderingFiber = null,\n lastContextDependency = null,\n lastContextWithAllBitsObserved = null;\nfunction resetContextDependencies() {\n lastContextWithAllBitsObserved = lastContextDependency = currentlyRenderingFiber = null;\n}\nfunction pushProvider(providerFiber, nextValue) {\n var context = providerFiber.type._context;\n push(valueCursor, context._currentValue2, providerFiber);\n context._currentValue2 = nextValue;\n}\nfunction popProvider(providerFiber) {\n var currentValue = valueCursor.current;\n pop(valueCursor, providerFiber);\n providerFiber.type._context._currentValue2 = currentValue;\n}\nfunction scheduleWorkOnParentPath(parent, renderExpirationTime) {\n for (; null !== parent; ) {\n var alternate = parent.alternate;\n if (parent.childExpirationTime < renderExpirationTime)\n (parent.childExpirationTime = renderExpirationTime),\n null !== alternate &&\n alternate.childExpirationTime < renderExpirationTime &&\n (alternate.childExpirationTime = renderExpirationTime);\n else if (\n null !== alternate &&\n alternate.childExpirationTime < renderExpirationTime\n )\n alternate.childExpirationTime = renderExpirationTime;\n else break;\n parent = parent.return;\n }\n}\nfunction prepareToReadContext(workInProgress, renderExpirationTime) {\n currentlyRenderingFiber = workInProgress;\n lastContextWithAllBitsObserved = lastContextDependency = null;\n workInProgress = workInProgress.dependencies;\n null !== workInProgress &&\n null !== workInProgress.firstContext &&\n (workInProgress.expirationTime >= renderExpirationTime &&\n (didReceiveUpdate = !0),\n (workInProgress.firstContext = null));\n}\nfunction readContext(context, observedBits) {\n if (\n lastContextWithAllBitsObserved !== context &&\n !1 !== observedBits &&\n 0 !== observedBits\n ) {\n if (\"number\" !== typeof observedBits || 1073741823 === observedBits)\n (lastContextWithAllBitsObserved = context), (observedBits = 1073741823);\n observedBits = { context: context, observedBits: observedBits, next: null };\n if (null === lastContextDependency) {\n if (null === currentlyRenderingFiber)\n throw Error(\n \"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"\n );\n lastContextDependency = observedBits;\n currentlyRenderingFiber.dependencies = {\n expirationTime: 0,\n firstContext: observedBits,\n responders: null\n };\n } else lastContextDependency = lastContextDependency.next = observedBits;\n }\n return context._currentValue2;\n}\nvar hasForceUpdate = !1;\nfunction createUpdateQueue(baseState) {\n return {\n baseState: baseState,\n firstUpdate: null,\n lastUpdate: null,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction cloneUpdateQueue(currentQueue) {\n return {\n baseState: currentQueue.baseState,\n firstUpdate: currentQueue.firstUpdate,\n lastUpdate: currentQueue.lastUpdate,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction createUpdate(expirationTime, suspenseConfig) {\n return {\n expirationTime: expirationTime,\n suspenseConfig: suspenseConfig,\n tag: 0,\n payload: null,\n callback: null,\n next: null,\n nextEffect: null\n };\n}\nfunction appendUpdateToQueue(queue, update) {\n null === queue.lastUpdate\n ? (queue.firstUpdate = queue.lastUpdate = update)\n : ((queue.lastUpdate.next = update), (queue.lastUpdate = update));\n}\nfunction enqueueUpdate(fiber, update) {\n var alternate = fiber.alternate;\n if (null === alternate) {\n var queue1 = fiber.updateQueue;\n var queue2 = null;\n null === queue1 &&\n (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState));\n } else\n (queue1 = fiber.updateQueue),\n (queue2 = alternate.updateQueue),\n null === queue1\n ? null === queue2\n ? ((queue1 = fiber.updateQueue = createUpdateQueue(\n fiber.memoizedState\n )),\n (queue2 = alternate.updateQueue = createUpdateQueue(\n alternate.memoizedState\n )))\n : (queue1 = fiber.updateQueue = cloneUpdateQueue(queue2))\n : null === queue2 &&\n (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1));\n null === queue2 || queue1 === queue2\n ? appendUpdateToQueue(queue1, update)\n : null === queue1.lastUpdate || null === queue2.lastUpdate\n ? (appendUpdateToQueue(queue1, update),\n appendUpdateToQueue(queue2, update))\n : (appendUpdateToQueue(queue1, update), (queue2.lastUpdate = update));\n}\nfunction enqueueCapturedUpdate(workInProgress, update) {\n var workInProgressQueue = workInProgress.updateQueue;\n workInProgressQueue =\n null === workInProgressQueue\n ? (workInProgress.updateQueue = createUpdateQueue(\n workInProgress.memoizedState\n ))\n : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);\n null === workInProgressQueue.lastCapturedUpdate\n ? (workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update)\n : ((workInProgressQueue.lastCapturedUpdate.next = update),\n (workInProgressQueue.lastCapturedUpdate = update));\n}\nfunction ensureWorkInProgressQueueIsAClone(workInProgress, queue) {\n var current = workInProgress.alternate;\n null !== current &&\n queue === current.updateQueue &&\n (queue = workInProgress.updateQueue = cloneUpdateQueue(queue));\n return queue;\n}\nfunction getStateFromUpdate(\n workInProgress,\n queue,\n update,\n prevState,\n nextProps,\n instance\n) {\n switch (update.tag) {\n case 1:\n return (\n (workInProgress = update.payload),\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress\n );\n case 3:\n workInProgress.effectTag = (workInProgress.effectTag & -4097) | 64;\n case 0:\n workInProgress = update.payload;\n nextProps =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress;\n if (null === nextProps || void 0 === nextProps) break;\n return Object.assign({}, prevState, nextProps);\n case 2:\n hasForceUpdate = !0;\n }\n return prevState;\n}\nfunction processUpdateQueue(\n workInProgress,\n queue,\n props,\n instance,\n renderExpirationTime\n) {\n hasForceUpdate = !1;\n queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);\n for (\n var newBaseState = queue.baseState,\n newFirstUpdate = null,\n newExpirationTime = 0,\n update = queue.firstUpdate,\n resultState = newBaseState;\n null !== update;\n\n ) {\n var updateExpirationTime = update.expirationTime;\n updateExpirationTime < renderExpirationTime\n ? (null === newFirstUpdate &&\n ((newFirstUpdate = update), (newBaseState = resultState)),\n newExpirationTime < updateExpirationTime &&\n (newExpirationTime = updateExpirationTime))\n : (markRenderEventTimeAndConfig(\n updateExpirationTime,\n update.suspenseConfig\n ),\n (resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastEffect\n ? (queue.firstEffect = queue.lastEffect = update)\n : ((queue.lastEffect.nextEffect = update),\n (queue.lastEffect = update))));\n update = update.next;\n }\n updateExpirationTime = null;\n for (update = queue.firstCapturedUpdate; null !== update; ) {\n var _updateExpirationTime = update.expirationTime;\n _updateExpirationTime < renderExpirationTime\n ? (null === updateExpirationTime &&\n ((updateExpirationTime = update),\n null === newFirstUpdate && (newBaseState = resultState)),\n newExpirationTime < _updateExpirationTime &&\n (newExpirationTime = _updateExpirationTime))\n : ((resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastCapturedEffect\n ? (queue.firstCapturedEffect = queue.lastCapturedEffect = update)\n : ((queue.lastCapturedEffect.nextEffect = update),\n (queue.lastCapturedEffect = update))));\n update = update.next;\n }\n null === newFirstUpdate && (queue.lastUpdate = null);\n null === updateExpirationTime\n ? (queue.lastCapturedUpdate = null)\n : (workInProgress.effectTag |= 32);\n null === newFirstUpdate &&\n null === updateExpirationTime &&\n (newBaseState = resultState);\n queue.baseState = newBaseState;\n queue.firstUpdate = newFirstUpdate;\n queue.firstCapturedUpdate = updateExpirationTime;\n markUnprocessedUpdateTime(newExpirationTime);\n workInProgress.expirationTime = newExpirationTime;\n workInProgress.memoizedState = resultState;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance) {\n null !== finishedQueue.firstCapturedUpdate &&\n (null !== finishedQueue.lastUpdate &&\n ((finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate),\n (finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate)),\n (finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null));\n commitUpdateEffects(finishedQueue.firstEffect, instance);\n finishedQueue.firstEffect = finishedQueue.lastEffect = null;\n commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);\n finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;\n}\nfunction commitUpdateEffects(effect, instance) {\n for (; null !== effect; ) {\n var callback = effect.callback;\n if (null !== callback) {\n effect.callback = null;\n if (\"function\" !== typeof callback)\n throw Error(\n \"Invalid argument passed as callback. Expected a function. Instead received: \" +\n callback\n );\n callback.call(instance);\n }\n effect = effect.nextEffect;\n }\n}\nvar ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig,\n emptyRefsObject = new React.Component().refs;\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : Object.assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n nextProps = workInProgress.updateQueue;\n null !== nextProps &&\n 0 === workInProgress.expirationTime &&\n (nextProps.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n isMounted: function(component) {\n return (component = component._reactInternalFiber)\n ? getNearestMountedFiber(component) === component\n : !1;\n },\n enqueueSetState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, inst, suspenseConfig);\n suspenseConfig = createUpdate(currentTime, suspenseConfig);\n suspenseConfig.payload = payload;\n void 0 !== callback &&\n null !== callback &&\n (suspenseConfig.callback = callback);\n enqueueUpdate(inst, suspenseConfig);\n scheduleUpdateOnFiber(inst, currentTime);\n },\n enqueueReplaceState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, inst, suspenseConfig);\n suspenseConfig = createUpdate(currentTime, suspenseConfig);\n suspenseConfig.tag = 1;\n suspenseConfig.payload = payload;\n void 0 !== callback &&\n null !== callback &&\n (suspenseConfig.callback = callback);\n enqueueUpdate(inst, suspenseConfig);\n scheduleUpdateOnFiber(inst, currentTime);\n },\n enqueueForceUpdate: function(inst, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, inst, suspenseConfig);\n suspenseConfig = createUpdate(currentTime, suspenseConfig);\n suspenseConfig.tag = 2;\n void 0 !== callback &&\n null !== callback &&\n (suspenseConfig.callback = callback);\n enqueueUpdate(inst, suspenseConfig);\n scheduleUpdateOnFiber(inst, currentTime);\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction constructClassInstance(workInProgress, ctor, props) {\n var isLegacyContextConsumer = !1,\n unmaskedContext = emptyContextObject;\n var context = ctor.contextType;\n \"object\" === typeof context && null !== context\n ? (context = readContext(context))\n : ((unmaskedContext = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (isLegacyContextConsumer = ctor.contextTypes),\n (context = (isLegacyContextConsumer =\n null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer)\n ? getMaskedContext(workInProgress, unmaskedContext)\n : emptyContextObject));\n ctor = new ctor(props, context);\n workInProgress.memoizedState =\n null !== ctor.state && void 0 !== ctor.state ? ctor.state : null;\n ctor.updater = classComponentUpdater;\n workInProgress.stateNode = ctor;\n ctor._reactInternalFiber = workInProgress;\n isLegacyContextConsumer &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return ctor;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction mountClassInstance(\n workInProgress,\n ctor,\n newProps,\n renderExpirationTime\n) {\n var instance = workInProgress.stateNode;\n instance.props = newProps;\n instance.state = workInProgress.memoizedState;\n instance.refs = emptyRefsObject;\n var contextType = ctor.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (instance.context = readContext(contextType))\n : ((contextType = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (instance.context = getMaskedContext(workInProgress, contextType)));\n contextType = workInProgress.updateQueue;\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState));\n contextType = ctor.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps),\n (instance.state = workInProgress.memoizedState));\n \"function\" === typeof ctor.getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n ((ctor = instance.state),\n \"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount(),\n ctor !== instance.state &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null),\n (contextType = workInProgress.updateQueue),\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState)));\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4);\n}\nvar isArray = Array.isArray;\nfunction coerceRef(returnFiber, current$$1, element) {\n returnFiber = element.ref;\n if (\n null !== returnFiber &&\n \"function\" !== typeof returnFiber &&\n \"object\" !== typeof returnFiber\n ) {\n if (element._owner) {\n element = element._owner;\n if (element) {\n if (1 !== element.tag)\n throw Error(\n \"Function components cannot have refs. Did you mean to use React.forwardRef()?\"\n );\n var inst = element.stateNode;\n }\n if (!inst)\n throw Error(\n \"Missing owner for string ref \" +\n returnFiber +\n \". This error is likely caused by a bug in React. Please file an issue.\"\n );\n var stringRef = \"\" + returnFiber;\n if (\n null !== current$$1 &&\n null !== current$$1.ref &&\n \"function\" === typeof current$$1.ref &&\n current$$1.ref._stringRef === stringRef\n )\n return current$$1.ref;\n current$$1 = function(value) {\n var refs = inst.refs;\n refs === emptyRefsObject && (refs = inst.refs = {});\n null === value ? delete refs[stringRef] : (refs[stringRef] = value);\n };\n current$$1._stringRef = stringRef;\n return current$$1;\n }\n if (\"string\" !== typeof returnFiber)\n throw Error(\n \"Expected ref to be a function, a string, an object returned by React.createRef(), or null.\"\n );\n if (!element._owner)\n throw Error(\n \"Element ref was specified as a string (\" +\n returnFiber +\n \") but no owner was set. This could happen for one of the following reasons:\\n1. You may be adding a ref to a function component\\n2. You may be adding a ref to a component that was not created inside a component's render method\\n3. You have multiple copies of React loaded\\nSee https://fb.me/react-refs-must-have-owner for more information.\"\n );\n }\n return returnFiber;\n}\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n if (\"textarea\" !== returnFiber.type)\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === Object.prototype.toString.call(newChild)\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : newChild) +\n \").\"\n );\n}\nfunction ChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var last = returnFiber.lastEffect;\n null !== last\n ? ((last.nextEffect = childToDelete),\n (returnFiber.lastEffect = childToDelete))\n : (returnFiber.firstEffect = returnFiber.lastEffect = childToDelete);\n childToDelete.nextEffect = null;\n childToDelete.effectTag = 8;\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(returnFiber, currentFirstChild) {\n for (returnFiber = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? returnFiber.set(currentFirstChild.key, currentFirstChild)\n : returnFiber.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return returnFiber;\n }\n function useFiber(fiber, pendingProps, expirationTime) {\n fiber = createWorkInProgress(fiber, pendingProps, expirationTime);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects) return lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.effectTag = 2), lastPlacedIndex)\n : newIndex\n );\n newFiber.effectTag = 2;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.effectTag = 2);\n return newFiber;\n }\n function updateTextNode(\n returnFiber,\n current$$1,\n textContent,\n expirationTime\n ) {\n if (null === current$$1 || 6 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromText(\n textContent,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, textContent, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateElement(returnFiber, current$$1, element, expirationTime) {\n if (null !== current$$1 && current$$1.elementType === element.type)\n return (\n (expirationTime = useFiber(current$$1, element.props, expirationTime)),\n (expirationTime.ref = coerceRef(returnFiber, current$$1, element)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n expirationTime = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n expirationTime\n );\n expirationTime.ref = coerceRef(returnFiber, current$$1, element);\n expirationTime.return = returnFiber;\n return expirationTime;\n }\n function updatePortal(returnFiber, current$$1, portal, expirationTime) {\n if (\n null === current$$1 ||\n 4 !== current$$1.tag ||\n current$$1.stateNode.containerInfo !== portal.containerInfo ||\n current$$1.stateNode.implementation !== portal.implementation\n )\n return (\n (current$$1 = createFiberFromPortal(\n portal,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, portal.children || [], expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateFragment(\n returnFiber,\n current$$1,\n fragment,\n expirationTime,\n key\n ) {\n if (null === current$$1 || 7 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n expirationTime,\n key\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, fragment, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function createChild(returnFiber, newChild, expirationTime) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(returnFiber, null, newChild)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n expirationTime,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, expirationTime);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n oldFiber,\n newChild.props.children,\n expirationTime,\n key\n )\n : updateElement(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(\n returnFiber,\n oldFiber,\n newChild,\n expirationTime,\n null\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n expirationTime\n ) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(\n returnFiber,\n existingChildren,\n \"\" + newChild,\n expirationTime\n )\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n existingChildren,\n newChild.props.children,\n expirationTime,\n newChild.key\n )\n : updateElement(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime,\n null\n )\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n expirationTime\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n expirationTime\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n (oldFiber = createChild(\n returnFiber,\n newChildren[newIdx],\n expirationTime\n )),\n null !== oldFiber &&\n ((currentFirstChild = placeChild(\n oldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber));\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n expirationTime\n )),\n null !== nextOldFiber &&\n (shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber));\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildrenIterable,\n expirationTime\n ) {\n var iteratorFn = getIteratorFn(newChildrenIterable);\n if (\"function\" !== typeof iteratorFn)\n throw Error(\n \"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\"\n );\n newChildrenIterable = iteratorFn.call(newChildrenIterable);\n if (null == newChildrenIterable)\n throw Error(\"An iterable object provided no iterator.\");\n for (\n var previousNewFiber = (iteratorFn = null),\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildrenIterable.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildrenIterable.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n step.value,\n expirationTime\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (iteratorFn = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn;\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildrenIterable.next())\n (step = createChild(returnFiber, step.value, expirationTime)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n return iteratorFn;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n !step.done;\n newIdx++, step = newChildrenIterable.next()\n )\n (step = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n step.value,\n expirationTime\n )),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return iteratorFn;\n }\n return function(returnFiber, currentFirstChild, newChild, expirationTime) {\n var isUnkeyedTopLevelFragment =\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key;\n isUnkeyedTopLevelFragment && (newChild = newChild.props.children);\n var isObject = \"object\" === typeof newChild && null !== newChild;\n if (isObject)\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n isObject = newChild.key;\n for (\n isUnkeyedTopLevelFragment = currentFirstChild;\n null !== isUnkeyedTopLevelFragment;\n\n ) {\n if (isUnkeyedTopLevelFragment.key === isObject)\n if (\n 7 === isUnkeyedTopLevelFragment.tag\n ? newChild.type === REACT_FRAGMENT_TYPE\n : isUnkeyedTopLevelFragment.elementType === newChild.type\n ) {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment.sibling\n );\n currentFirstChild = useFiber(\n isUnkeyedTopLevelFragment,\n newChild.type === REACT_FRAGMENT_TYPE\n ? newChild.props.children\n : newChild.props,\n expirationTime\n );\n currentFirstChild.ref = coerceRef(\n returnFiber,\n isUnkeyedTopLevelFragment,\n newChild\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment\n );\n break;\n }\n else deleteChild(returnFiber, isUnkeyedTopLevelFragment);\n isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((currentFirstChild = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n expirationTime,\n newChild.key\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : ((expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(\n returnFiber,\n currentFirstChild,\n newChild\n )),\n (expirationTime.return = returnFiber),\n (returnFiber = expirationTime));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (\n isUnkeyedTopLevelFragment = newChild.key;\n null !== currentFirstChild;\n\n ) {\n if (currentFirstChild.key === isUnkeyedTopLevelFragment)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n currentFirstChild = useFiber(\n currentFirstChild,\n newChild.children || [],\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n currentFirstChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n }\n return placeSingleChild(returnFiber);\n }\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (currentFirstChild = useFiber(\n currentFirstChild,\n newChild,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (currentFirstChild = createFiberFromText(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild)),\n placeSingleChild(returnFiber)\n );\n if (isArray(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n if (getIteratorFn(newChild))\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n isObject && throwOnInvalidObjectType(returnFiber, newChild);\n if (\"undefined\" === typeof newChild && !isUnkeyedTopLevelFragment)\n switch (returnFiber.tag) {\n case 1:\n case 0:\n throw ((returnFiber = returnFiber.type),\n Error(\n (returnFiber.displayName || returnFiber.name || \"Component\") +\n \"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.\"\n ));\n }\n return deleteRemainingChildren(returnFiber, currentFirstChild);\n };\n}\nvar reconcileChildFibers = ChildReconciler(!0),\n mountChildFibers = ChildReconciler(!1),\n NO_CONTEXT = {},\n contextStackCursor$1 = { current: NO_CONTEXT },\n contextFiberStackCursor = { current: NO_CONTEXT },\n rootInstanceStackCursor = { current: NO_CONTEXT };\nfunction requiredContext(c) {\n if (c === NO_CONTEXT)\n throw Error(\n \"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"\n );\n return c;\n}\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance, fiber);\n push(contextFiberStackCursor, fiber, fiber);\n push(contextStackCursor$1, NO_CONTEXT, fiber);\n pop(contextStackCursor$1, fiber);\n push(contextStackCursor$1, { isInAParentText: !1 }, fiber);\n}\nfunction popHostContainer(fiber) {\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n pop(rootInstanceStackCursor, fiber);\n}\nfunction pushHostContext(fiber) {\n requiredContext(rootInstanceStackCursor.current);\n var context = requiredContext(contextStackCursor$1.current);\n var nextContext = fiber.type;\n nextContext =\n \"AndroidTextInput\" === nextContext ||\n \"RCTMultilineTextInputView\" === nextContext ||\n \"RCTSinglelineTextInputView\" === nextContext ||\n \"RCTText\" === nextContext ||\n \"RCTVirtualText\" === nextContext;\n nextContext =\n context.isInAParentText !== nextContext\n ? { isInAParentText: nextContext }\n : context;\n context !== nextContext &&\n (push(contextFiberStackCursor, fiber, fiber),\n push(contextStackCursor$1, nextContext, fiber));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber));\n}\nvar suspenseStackCursor = { current: 0 };\nfunction findFirstSuspended(row) {\n for (var node = row; null !== node; ) {\n if (13 === node.tag) {\n var state = node.memoizedState;\n if (\n null !== state &&\n ((state = state.dehydrated),\n null === state || shim$1(state) || shim$1(state))\n )\n return node;\n } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {\n if (0 !== (node.effectTag & 64)) return node;\n } else if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === row) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === row) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n return null;\n}\nfunction createResponderListener(responder, props) {\n return { responder: responder, props: props };\n}\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,\n ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig,\n renderExpirationTime$1 = 0,\n currentlyRenderingFiber$1 = null,\n currentHook = null,\n nextCurrentHook = null,\n firstWorkInProgressHook = null,\n workInProgressHook = null,\n nextWorkInProgressHook = null,\n remainingExpirationTime = 0,\n componentUpdateQueue = null,\n sideEffectTag = 0,\n didScheduleRenderPhaseUpdate = !1,\n renderPhaseUpdates = null,\n numberOfReRenders = 0;\nfunction throwInvalidHookError() {\n throw Error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (null === prevDeps) return !1;\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n if (!is$1(nextDeps[i], prevDeps[i])) return !1;\n return !0;\n}\nfunction renderWithHooks(\n current,\n workInProgress,\n Component,\n props,\n refOrContext,\n nextRenderExpirationTime\n) {\n renderExpirationTime$1 = nextRenderExpirationTime;\n currentlyRenderingFiber$1 = workInProgress;\n nextCurrentHook = null !== current ? current.memoizedState : null;\n ReactCurrentDispatcher$1.current =\n null === nextCurrentHook ? HooksDispatcherOnMount : HooksDispatcherOnUpdate;\n workInProgress = Component(props, refOrContext);\n if (didScheduleRenderPhaseUpdate) {\n do\n (didScheduleRenderPhaseUpdate = !1),\n (numberOfReRenders += 1),\n (nextCurrentHook = null !== current ? current.memoizedState : null),\n (nextWorkInProgressHook = firstWorkInProgressHook),\n (componentUpdateQueue = workInProgressHook = currentHook = null),\n (ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdate),\n (workInProgress = Component(props, refOrContext));\n while (didScheduleRenderPhaseUpdate);\n renderPhaseUpdates = null;\n numberOfReRenders = 0;\n }\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n current = currentlyRenderingFiber$1;\n current.memoizedState = firstWorkInProgressHook;\n current.expirationTime = remainingExpirationTime;\n current.updateQueue = componentUpdateQueue;\n current.effectTag |= sideEffectTag;\n current = null !== currentHook && null !== currentHook.next;\n renderExpirationTime$1 = 0;\n nextWorkInProgressHook = workInProgressHook = firstWorkInProgressHook = nextCurrentHook = currentHook = currentlyRenderingFiber$1 = null;\n remainingExpirationTime = 0;\n componentUpdateQueue = null;\n sideEffectTag = 0;\n if (current)\n throw Error(\n \"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\"\n );\n return workInProgress;\n}\nfunction resetHooks() {\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n renderExpirationTime$1 = 0;\n nextWorkInProgressHook = workInProgressHook = firstWorkInProgressHook = nextCurrentHook = currentHook = currentlyRenderingFiber$1 = null;\n remainingExpirationTime = 0;\n componentUpdateQueue = null;\n sideEffectTag = 0;\n didScheduleRenderPhaseUpdate = !1;\n renderPhaseUpdates = null;\n numberOfReRenders = 0;\n}\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n queue: null,\n baseUpdate: null,\n next: null\n };\n null === workInProgressHook\n ? (firstWorkInProgressHook = workInProgressHook = hook)\n : (workInProgressHook = workInProgressHook.next = hook);\n return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n if (null !== nextWorkInProgressHook)\n (workInProgressHook = nextWorkInProgressHook),\n (nextWorkInProgressHook = workInProgressHook.next),\n (currentHook = nextCurrentHook),\n (nextCurrentHook = null !== currentHook ? currentHook.next : null);\n else {\n if (null === nextCurrentHook)\n throw Error(\"Rendered more hooks than during the previous render.\");\n currentHook = nextCurrentHook;\n var newHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n queue: currentHook.queue,\n baseUpdate: currentHook.baseUpdate,\n next: null\n };\n workInProgressHook =\n null === workInProgressHook\n ? (firstWorkInProgressHook = newHook)\n : (workInProgressHook.next = newHook);\n nextCurrentHook = currentHook.next;\n }\n return workInProgressHook;\n}\nfunction basicStateReducer(state, action) {\n return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n var hook = updateWorkInProgressHook(),\n queue = hook.queue;\n if (null === queue)\n throw Error(\n \"Should have a queue. This is likely a bug in React. Please file an issue.\"\n );\n queue.lastRenderedReducer = reducer;\n if (0 < numberOfReRenders) {\n var _dispatch = queue.dispatch;\n if (null !== renderPhaseUpdates) {\n var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n if (void 0 !== firstRenderPhaseUpdate) {\n renderPhaseUpdates.delete(queue);\n var newState = hook.memoizedState;\n do\n (newState = reducer(newState, firstRenderPhaseUpdate.action)),\n (firstRenderPhaseUpdate = firstRenderPhaseUpdate.next);\n while (null !== firstRenderPhaseUpdate);\n is$1(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n hook.baseUpdate === queue.last && (hook.baseState = newState);\n queue.lastRenderedState = newState;\n return [newState, _dispatch];\n }\n }\n return [hook.memoizedState, _dispatch];\n }\n _dispatch = queue.last;\n var baseUpdate = hook.baseUpdate;\n newState = hook.baseState;\n null !== baseUpdate\n ? (null !== _dispatch && (_dispatch.next = null),\n (_dispatch = baseUpdate.next))\n : (_dispatch = null !== _dispatch ? _dispatch.next : null);\n if (null !== _dispatch) {\n var newBaseUpdate = (firstRenderPhaseUpdate = null),\n _update = _dispatch,\n didSkip = !1;\n do {\n var updateExpirationTime = _update.expirationTime;\n updateExpirationTime < renderExpirationTime$1\n ? (didSkip ||\n ((didSkip = !0),\n (newBaseUpdate = baseUpdate),\n (firstRenderPhaseUpdate = newState)),\n updateExpirationTime > remainingExpirationTime &&\n ((remainingExpirationTime = updateExpirationTime),\n markUnprocessedUpdateTime(remainingExpirationTime)))\n : (markRenderEventTimeAndConfig(\n updateExpirationTime,\n _update.suspenseConfig\n ),\n (newState =\n _update.eagerReducer === reducer\n ? _update.eagerState\n : reducer(newState, _update.action)));\n baseUpdate = _update;\n _update = _update.next;\n } while (null !== _update && _update !== _dispatch);\n didSkip ||\n ((newBaseUpdate = baseUpdate), (firstRenderPhaseUpdate = newState));\n is$1(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n hook.baseUpdate = newBaseUpdate;\n hook.baseState = firstRenderPhaseUpdate;\n queue.lastRenderedState = newState;\n }\n return [hook.memoizedState, queue.dispatch];\n}\nfunction mountState(initialState) {\n var hook = mountWorkInProgressHook();\n \"function\" === typeof initialState && (initialState = initialState());\n hook.memoizedState = hook.baseState = initialState;\n initialState = hook.queue = {\n last: null,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n initialState = initialState.dispatch = dispatchAction.bind(\n null,\n currentlyRenderingFiber$1,\n initialState\n );\n return [hook.memoizedState, initialState];\n}\nfunction updateState(initialState) {\n return updateReducer(basicStateReducer, initialState);\n}\nfunction pushEffect(tag, create, destroy, deps) {\n tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };\n null === componentUpdateQueue\n ? ((componentUpdateQueue = { lastEffect: null }),\n (componentUpdateQueue.lastEffect = tag.next = tag))\n : ((create = componentUpdateQueue.lastEffect),\n null === create\n ? (componentUpdateQueue.lastEffect = tag.next = tag)\n : ((destroy = create.next),\n (create.next = tag),\n (tag.next = destroy),\n (componentUpdateQueue.lastEffect = tag)));\n return tag;\n}\nfunction mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {\n var hook = mountWorkInProgressHook();\n sideEffectTag |= fiberEffectTag;\n hook.memoizedState = pushEffect(\n hookEffectTag,\n create,\n void 0,\n void 0 === deps ? null : deps\n );\n}\nfunction updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var destroy = void 0;\n if (null !== currentHook) {\n var prevEffect = currentHook.memoizedState;\n destroy = prevEffect.destroy;\n if (null !== deps && areHookInputsEqual(deps, prevEffect.deps)) {\n pushEffect(0, create, destroy, deps);\n return;\n }\n }\n sideEffectTag |= fiberEffectTag;\n hook.memoizedState = pushEffect(hookEffectTag, create, destroy, deps);\n}\nfunction mountEffect(create, deps) {\n return mountEffectImpl(516, 192, create, deps);\n}\nfunction updateEffect(create, deps) {\n return updateEffectImpl(516, 192, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n if (\"function\" === typeof ref)\n return (\n (create = create()),\n ref(create),\n function() {\n ref(null);\n }\n );\n if (null !== ref && void 0 !== ref)\n return (\n (create = create()),\n (ref.current = create),\n function() {\n ref.current = null;\n }\n );\n}\nfunction mountDebugValue() {}\nfunction mountCallback(callback, deps) {\n mountWorkInProgressHook().memoizedState = [\n callback,\n void 0 === deps ? null : deps\n ];\n return callback;\n}\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (\n null !== prevState &&\n null !== deps &&\n areHookInputsEqual(deps, prevState[1])\n )\n return prevState[0];\n hook.memoizedState = [callback, deps];\n return callback;\n}\nfunction dispatchAction(fiber, queue, action) {\n if (!(25 > numberOfReRenders))\n throw Error(\n \"Too many re-renders. React limits the number of renders to prevent an infinite loop.\"\n );\n var alternate = fiber.alternate;\n if (\n fiber === currentlyRenderingFiber$1 ||\n (null !== alternate && alternate === currentlyRenderingFiber$1)\n )\n if (\n ((didScheduleRenderPhaseUpdate = !0),\n (fiber = {\n expirationTime: renderExpirationTime$1,\n suspenseConfig: null,\n action: action,\n eagerReducer: null,\n eagerState: null,\n next: null\n }),\n null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),\n (action = renderPhaseUpdates.get(queue)),\n void 0 === action)\n )\n renderPhaseUpdates.set(queue, fiber);\n else {\n for (queue = action; null !== queue.next; ) queue = queue.next;\n queue.next = fiber;\n }\n else {\n var currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);\n suspenseConfig = {\n expirationTime: currentTime,\n suspenseConfig: suspenseConfig,\n action: action,\n eagerReducer: null,\n eagerState: null,\n next: null\n };\n var last = queue.last;\n if (null === last) suspenseConfig.next = suspenseConfig;\n else {\n var first = last.next;\n null !== first && (suspenseConfig.next = first);\n last.next = suspenseConfig;\n }\n queue.last = suspenseConfig;\n if (\n 0 === fiber.expirationTime &&\n (null === alternate || 0 === alternate.expirationTime) &&\n ((alternate = queue.lastRenderedReducer), null !== alternate)\n )\n try {\n var currentState = queue.lastRenderedState,\n eagerState = alternate(currentState, action);\n suspenseConfig.eagerReducer = alternate;\n suspenseConfig.eagerState = eagerState;\n if (is$1(eagerState, currentState)) return;\n } catch (error) {\n } finally {\n }\n scheduleUpdateOnFiber(fiber, currentTime);\n }\n}\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useResponder: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError\n },\n HooksDispatcherOnMount = {\n readContext: readContext,\n useCallback: mountCallback,\n useContext: readContext,\n useEffect: mountEffect,\n useImperativeHandle: function(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n return mountEffectImpl(\n 4,\n 36,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function(create, deps) {\n return mountEffectImpl(4, 36, create, deps);\n },\n useMemo: function(nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n nextCreate = nextCreate();\n hook.memoizedState = [nextCreate, deps];\n return nextCreate;\n },\n useReducer: function(reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n initialArg = void 0 !== init ? init(initialArg) : initialArg;\n hook.memoizedState = hook.baseState = initialArg;\n reducer = hook.queue = {\n last: null,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialArg\n };\n reducer = reducer.dispatch = dispatchAction.bind(\n null,\n currentlyRenderingFiber$1,\n reducer\n );\n return [hook.memoizedState, reducer];\n },\n useRef: function(initialValue) {\n var hook = mountWorkInProgressHook();\n initialValue = { current: initialValue };\n return (hook.memoizedState = initialValue);\n },\n useState: mountState,\n useDebugValue: mountDebugValue,\n useResponder: createResponderListener,\n useDeferredValue: function(value, config) {\n var _mountState = mountState(value),\n prevValue = _mountState[0],\n setValue = _mountState[1];\n mountEffect(\n function() {\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setValue(value);\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [value, config]\n );\n return prevValue;\n },\n useTransition: function(config) {\n var _mountState2 = mountState(!1),\n isPending = _mountState2[0],\n setPending = _mountState2[1];\n return [\n mountCallback(\n function(callback) {\n setPending(!0);\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setPending(!1), callback();\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [config, isPending]\n ),\n isPending\n ];\n }\n },\n HooksDispatcherOnUpdate = {\n readContext: readContext,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: function(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n return updateEffectImpl(\n 4,\n 36,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function(create, deps) {\n return updateEffectImpl(4, 36, create, deps);\n },\n useMemo: function(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (\n null !== prevState &&\n null !== deps &&\n areHookInputsEqual(deps, prevState[1])\n )\n return prevState[0];\n nextCreate = nextCreate();\n hook.memoizedState = [nextCreate, deps];\n return nextCreate;\n },\n useReducer: updateReducer,\n useRef: function() {\n return updateWorkInProgressHook().memoizedState;\n },\n useState: updateState,\n useDebugValue: mountDebugValue,\n useResponder: createResponderListener,\n useDeferredValue: function(value, config) {\n var _updateState = updateState(value),\n prevValue = _updateState[0],\n setValue = _updateState[1];\n updateEffect(\n function() {\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setValue(value);\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [value, config]\n );\n return prevValue;\n },\n useTransition: function(config) {\n var _updateState2 = updateState(!1),\n isPending = _updateState2[0],\n setPending = _updateState2[1];\n return [\n updateCallback(\n function(callback) {\n setPending(!0);\n Scheduler.unstable_next(function() {\n var previousConfig = ReactCurrentBatchConfig$1.suspense;\n ReactCurrentBatchConfig$1.suspense =\n void 0 === config ? null : config;\n try {\n setPending(!1), callback();\n } finally {\n ReactCurrentBatchConfig$1.suspense = previousConfig;\n }\n });\n },\n [config, isPending]\n ),\n isPending\n ];\n }\n },\n hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1;\nfunction tryHydrate(fiber, nextInstance) {\n switch (fiber.tag) {\n case 5:\n return (\n (nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n case 6:\n return (\n (nextInstance = shim$1(nextInstance, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n case 13:\n return !1;\n default:\n return !1;\n }\n}\nfunction tryToClaimNextHydratableInstance(fiber$jscomp$0) {\n if (isHydrating) {\n var nextInstance = nextHydratableInstance;\n if (nextInstance) {\n var firstAttemptedInstance = nextInstance;\n if (!tryHydrate(fiber$jscomp$0, nextInstance)) {\n nextInstance = shim$1(firstAttemptedInstance);\n if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) {\n fiber$jscomp$0.effectTag = (fiber$jscomp$0.effectTag & -1025) | 2;\n isHydrating = !1;\n hydrationParentFiber = fiber$jscomp$0;\n return;\n }\n var returnFiber = hydrationParentFiber,\n fiber = createFiber(5, null, null, 0);\n fiber.elementType = \"DELETED\";\n fiber.type = \"DELETED\";\n fiber.stateNode = firstAttemptedInstance;\n fiber.return = returnFiber;\n fiber.effectTag = 8;\n null !== returnFiber.lastEffect\n ? ((returnFiber.lastEffect.nextEffect = fiber),\n (returnFiber.lastEffect = fiber))\n : (returnFiber.firstEffect = returnFiber.lastEffect = fiber);\n }\n hydrationParentFiber = fiber$jscomp$0;\n nextHydratableInstance = shim$1(nextInstance);\n } else\n (fiber$jscomp$0.effectTag = (fiber$jscomp$0.effectTag & -1025) | 2),\n (isHydrating = !1),\n (hydrationParentFiber = fiber$jscomp$0);\n }\n}\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner,\n didReceiveUpdate = !1;\nfunction reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n) {\n workInProgress.child =\n null === current$$1\n ? mountChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )\n : reconcileChildFibers(\n workInProgress,\n current$$1.child,\n nextChildren,\n renderExpirationTime\n );\n}\nfunction updateForwardRef(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n prepareToReadContext(workInProgress, renderExpirationTime);\n nextProps = renderWithHooks(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n ref,\n renderExpirationTime\n );\n if (null !== current$$1 && !didReceiveUpdate)\n return (\n (workInProgress.updateQueue = current$$1.updateQueue),\n (workInProgress.effectTag &= -517),\n current$$1.expirationTime <= renderExpirationTime &&\n (current$$1.expirationTime = 0),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n nextProps,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n if (null === current$$1) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare &&\n void 0 === Component.defaultProps\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n type,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n current$$1 = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n null,\n workInProgress.mode,\n renderExpirationTime\n );\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n }\n type = current$$1.child;\n if (\n updateExpirationTime < renderExpirationTime &&\n ((updateExpirationTime = type.memoizedProps),\n (Component = Component.compare),\n (Component = null !== Component ? Component : shallowEqual),\n Component(updateExpirationTime, nextProps) &&\n current$$1.ref === workInProgress.ref)\n )\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress.effectTag |= 1;\n current$$1 = createWorkInProgress(type, nextProps, renderExpirationTime);\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n}\nfunction updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n return null !== current$$1 &&\n shallowEqual(current$$1.memoizedProps, nextProps) &&\n current$$1.ref === workInProgress.ref &&\n ((didReceiveUpdate = !1), updateExpirationTime < renderExpirationTime)\n ? bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n : updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n );\n}\nfunction markRef(current$$1, workInProgress) {\n var ref = workInProgress.ref;\n if (\n (null === current$$1 && null !== ref) ||\n (null !== current$$1 && current$$1.ref !== ref)\n )\n workInProgress.effectTag |= 128;\n}\nfunction updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n var context = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current;\n context = getMaskedContext(workInProgress, context);\n prepareToReadContext(workInProgress, renderExpirationTime);\n Component = renderWithHooks(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n context,\n renderExpirationTime\n );\n if (null !== current$$1 && !didReceiveUpdate)\n return (\n (workInProgress.updateQueue = current$$1.updateQueue),\n (workInProgress.effectTag &= -517),\n current$$1.expirationTime <= renderExpirationTime &&\n (current$$1.expirationTime = 0),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n Component,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n if (isContextProvider(Component)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n prepareToReadContext(workInProgress, renderExpirationTime);\n if (null === workInProgress.stateNode)\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n constructClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n (nextProps = !0);\n else if (null === current$$1) {\n var instance = workInProgress.stateNode,\n oldProps = workInProgress.memoizedProps;\n instance.props = oldProps;\n var oldContext = instance.context,\n contextType = Component.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = readContext(contextType))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType)));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps,\n hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate;\n hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n oldContext = instance.state = oldState;\n var updateQueue = workInProgress.updateQueue;\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldContext = workInProgress.memoizedState));\n oldProps !== nextProps ||\n oldState !== oldContext ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n (\"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount()),\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (instance.props = nextProps),\n (instance.state = oldContext),\n (instance.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (nextProps = !1));\n } else\n (instance = workInProgress.stateNode),\n (oldProps = workInProgress.memoizedProps),\n (instance.props =\n workInProgress.type === workInProgress.elementType\n ? oldProps\n : resolveDefaultProps(workInProgress.type, oldProps)),\n (oldContext = instance.context),\n (contextType = Component.contextType),\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = readContext(contextType))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType))),\n (getDerivedStateFromProps = Component.getDerivedStateFromProps),\n (hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n )),\n (hasForceUpdate = !1),\n (oldContext = workInProgress.memoizedState),\n (oldState = instance.state = oldContext),\n (updateQueue = workInProgress.updateQueue),\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldState = workInProgress.memoizedState)),\n oldProps !== nextProps ||\n oldContext !== oldState ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldState = workInProgress.memoizedState)),\n (getDerivedStateFromProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldContext,\n oldState,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof instance.componentWillUpdate) ||\n (\"function\" === typeof instance.componentWillUpdate &&\n instance.componentWillUpdate(\n nextProps,\n oldState,\n contextType\n ),\n \"function\" === typeof instance.UNSAFE_componentWillUpdate &&\n instance.UNSAFE_componentWillUpdate(\n nextProps,\n oldState,\n contextType\n )),\n \"function\" === typeof instance.componentDidUpdate &&\n (workInProgress.effectTag |= 4),\n \"function\" === typeof instance.getSnapshotBeforeUpdate &&\n (workInProgress.effectTag |= 256))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldState)),\n (instance.props = nextProps),\n (instance.state = oldState),\n (instance.context = contextType),\n (nextProps = getDerivedStateFromProps))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (nextProps = !1));\n return finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n hasContext,\n renderExpirationTime\n );\n}\nfunction finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n shouldUpdate,\n hasContext,\n renderExpirationTime\n) {\n markRef(current$$1, workInProgress);\n var didCaptureError = 0 !== (workInProgress.effectTag & 64);\n if (!shouldUpdate && !didCaptureError)\n return (\n hasContext && invalidateContextProvider(workInProgress, Component, !1),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n shouldUpdate = workInProgress.stateNode;\n ReactCurrentOwner$3.current = workInProgress;\n var nextChildren =\n didCaptureError && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : shouldUpdate.render();\n workInProgress.effectTag |= 1;\n null !== current$$1 && didCaptureError\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current$$1.child,\n null,\n renderExpirationTime\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )))\n : reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n );\n workInProgress.memoizedState = shouldUpdate.state;\n hasContext && invalidateContextProvider(workInProgress, Component, !0);\n return workInProgress.child;\n}\nfunction pushHostRootContext(workInProgress) {\n var root = workInProgress.stateNode;\n root.pendingContext\n ? pushTopLevelContextObject(\n workInProgress,\n root.pendingContext,\n root.pendingContext !== root.context\n )\n : root.context &&\n pushTopLevelContextObject(workInProgress, root.context, !1);\n pushHostContainer(workInProgress, root.containerInfo);\n}\nvar SUSPENDED_MARKER = { dehydrated: null, retryTime: 0 };\nfunction updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n var mode = workInProgress.mode,\n nextProps = workInProgress.pendingProps,\n suspenseContext = suspenseStackCursor.current,\n nextDidTimeout = !1,\n JSCompiler_temp;\n (JSCompiler_temp = 0 !== (workInProgress.effectTag & 64)) ||\n (JSCompiler_temp =\n 0 !== (suspenseContext & 2) &&\n (null === current$$1 || null !== current$$1.memoizedState));\n JSCompiler_temp\n ? ((nextDidTimeout = !0), (workInProgress.effectTag &= -65))\n : (null !== current$$1 && null === current$$1.memoizedState) ||\n void 0 === nextProps.fallback ||\n !0 === nextProps.unstable_avoidThisFallback ||\n (suspenseContext |= 1);\n push(suspenseStackCursor, suspenseContext & 1, workInProgress);\n if (null === current$$1) {\n void 0 !== nextProps.fallback &&\n tryToClaimNextHydratableInstance(workInProgress);\n if (nextDidTimeout) {\n nextDidTimeout = nextProps.fallback;\n nextProps = createFiberFromFragment(null, mode, 0, null);\n nextProps.return = workInProgress;\n if (0 === (workInProgress.mode & 2))\n for (\n current$$1 =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child,\n nextProps.child = current$$1;\n null !== current$$1;\n\n )\n (current$$1.return = nextProps), (current$$1 = current$$1.sibling);\n renderExpirationTime = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n );\n renderExpirationTime.return = workInProgress;\n nextProps.sibling = renderExpirationTime;\n workInProgress.memoizedState = SUSPENDED_MARKER;\n workInProgress.child = nextProps;\n return renderExpirationTime;\n }\n mode = nextProps.children;\n workInProgress.memoizedState = null;\n return (workInProgress.child = mountChildFibers(\n workInProgress,\n null,\n mode,\n renderExpirationTime\n ));\n }\n if (null !== current$$1.memoizedState) {\n current$$1 = current$$1.child;\n mode = current$$1.sibling;\n if (nextDidTimeout) {\n nextProps = nextProps.fallback;\n renderExpirationTime = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n 0\n );\n renderExpirationTime.return = workInProgress;\n if (\n 0 === (workInProgress.mode & 2) &&\n ((nextDidTimeout =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n nextDidTimeout !== current$$1.child)\n )\n for (\n renderExpirationTime.child = nextDidTimeout;\n null !== nextDidTimeout;\n\n )\n (nextDidTimeout.return = renderExpirationTime),\n (nextDidTimeout = nextDidTimeout.sibling);\n mode = createWorkInProgress(mode, nextProps, mode.expirationTime);\n mode.return = workInProgress;\n renderExpirationTime.sibling = mode;\n renderExpirationTime.childExpirationTime = 0;\n workInProgress.memoizedState = SUSPENDED_MARKER;\n workInProgress.child = renderExpirationTime;\n return mode;\n }\n renderExpirationTime = reconcileChildFibers(\n workInProgress,\n current$$1.child,\n nextProps.children,\n renderExpirationTime\n );\n workInProgress.memoizedState = null;\n return (workInProgress.child = renderExpirationTime);\n }\n current$$1 = current$$1.child;\n if (nextDidTimeout) {\n nextDidTimeout = nextProps.fallback;\n nextProps = createFiberFromFragment(null, mode, 0, null);\n nextProps.return = workInProgress;\n nextProps.child = current$$1;\n null !== current$$1 && (current$$1.return = nextProps);\n if (0 === (workInProgress.mode & 2))\n for (\n current$$1 =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child,\n nextProps.child = current$$1;\n null !== current$$1;\n\n )\n (current$$1.return = nextProps), (current$$1 = current$$1.sibling);\n renderExpirationTime = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n );\n renderExpirationTime.return = workInProgress;\n nextProps.sibling = renderExpirationTime;\n renderExpirationTime.effectTag |= 2;\n nextProps.childExpirationTime = 0;\n workInProgress.memoizedState = SUSPENDED_MARKER;\n workInProgress.child = nextProps;\n return renderExpirationTime;\n }\n workInProgress.memoizedState = null;\n return (workInProgress.child = reconcileChildFibers(\n workInProgress,\n current$$1,\n nextProps.children,\n renderExpirationTime\n ));\n}\nfunction scheduleWorkOnFiber(fiber, renderExpirationTime) {\n fiber.expirationTime < renderExpirationTime &&\n (fiber.expirationTime = renderExpirationTime);\n var alternate = fiber.alternate;\n null !== alternate &&\n alternate.expirationTime < renderExpirationTime &&\n (alternate.expirationTime = renderExpirationTime);\n scheduleWorkOnParentPath(fiber.return, renderExpirationTime);\n}\nfunction initSuspenseListRenderState(\n workInProgress,\n isBackwards,\n tail,\n lastContentRow,\n tailMode,\n lastEffectBeforeRendering\n) {\n var renderState = workInProgress.memoizedState;\n null === renderState\n ? (workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n last: lastContentRow,\n tail: tail,\n tailExpiration: 0,\n tailMode: tailMode,\n lastEffect: lastEffectBeforeRendering\n })\n : ((renderState.isBackwards = isBackwards),\n (renderState.rendering = null),\n (renderState.last = lastContentRow),\n (renderState.tail = tail),\n (renderState.tailExpiration = 0),\n (renderState.tailMode = tailMode),\n (renderState.lastEffect = lastEffectBeforeRendering));\n}\nfunction updateSuspenseListComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n var nextProps = workInProgress.pendingProps,\n revealOrder = nextProps.revealOrder,\n tailMode = nextProps.tail;\n reconcileChildren(\n current$$1,\n workInProgress,\n nextProps.children,\n renderExpirationTime\n );\n nextProps = suspenseStackCursor.current;\n if (0 !== (nextProps & 2))\n (nextProps = (nextProps & 1) | 2), (workInProgress.effectTag |= 64);\n else {\n if (null !== current$$1 && 0 !== (current$$1.effectTag & 64))\n a: for (current$$1 = workInProgress.child; null !== current$$1; ) {\n if (13 === current$$1.tag)\n null !== current$$1.memoizedState &&\n scheduleWorkOnFiber(current$$1, renderExpirationTime);\n else if (19 === current$$1.tag)\n scheduleWorkOnFiber(current$$1, renderExpirationTime);\n else if (null !== current$$1.child) {\n current$$1.child.return = current$$1;\n current$$1 = current$$1.child;\n continue;\n }\n if (current$$1 === workInProgress) break a;\n for (; null === current$$1.sibling; ) {\n if (\n null === current$$1.return ||\n current$$1.return === workInProgress\n )\n break a;\n current$$1 = current$$1.return;\n }\n current$$1.sibling.return = current$$1.return;\n current$$1 = current$$1.sibling;\n }\n nextProps &= 1;\n }\n push(suspenseStackCursor, nextProps, workInProgress);\n if (0 === (workInProgress.mode & 2)) workInProgress.memoizedState = null;\n else\n switch (revealOrder) {\n case \"forwards\":\n renderExpirationTime = workInProgress.child;\n for (revealOrder = null; null !== renderExpirationTime; )\n (current$$1 = renderExpirationTime.alternate),\n null !== current$$1 &&\n null === findFirstSuspended(current$$1) &&\n (revealOrder = renderExpirationTime),\n (renderExpirationTime = renderExpirationTime.sibling);\n renderExpirationTime = revealOrder;\n null === renderExpirationTime\n ? ((revealOrder = workInProgress.child),\n (workInProgress.child = null))\n : ((revealOrder = renderExpirationTime.sibling),\n (renderExpirationTime.sibling = null));\n initSuspenseListRenderState(\n workInProgress,\n !1,\n revealOrder,\n renderExpirationTime,\n tailMode,\n workInProgress.lastEffect\n );\n break;\n case \"backwards\":\n renderExpirationTime = null;\n revealOrder = workInProgress.child;\n for (workInProgress.child = null; null !== revealOrder; ) {\n current$$1 = revealOrder.alternate;\n if (null !== current$$1 && null === findFirstSuspended(current$$1)) {\n workInProgress.child = revealOrder;\n break;\n }\n current$$1 = revealOrder.sibling;\n revealOrder.sibling = renderExpirationTime;\n renderExpirationTime = revealOrder;\n revealOrder = current$$1;\n }\n initSuspenseListRenderState(\n workInProgress,\n !0,\n renderExpirationTime,\n null,\n tailMode,\n workInProgress.lastEffect\n );\n break;\n case \"together\":\n initSuspenseListRenderState(\n workInProgress,\n !1,\n null,\n null,\n void 0,\n workInProgress.lastEffect\n );\n break;\n default:\n workInProgress.memoizedState = null;\n }\n return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n null !== current$$1 &&\n (workInProgress.dependencies = current$$1.dependencies);\n var updateExpirationTime = workInProgress.expirationTime;\n 0 !== updateExpirationTime && markUnprocessedUpdateTime(updateExpirationTime);\n if (workInProgress.childExpirationTime < renderExpirationTime) return null;\n if (null !== current$$1 && workInProgress.child !== current$$1.child)\n throw Error(\"Resuming work not yet implemented.\");\n if (null !== workInProgress.child) {\n current$$1 = workInProgress.child;\n renderExpirationTime = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n );\n workInProgress.child = renderExpirationTime;\n for (\n renderExpirationTime.return = workInProgress;\n null !== current$$1.sibling;\n\n )\n (current$$1 = current$$1.sibling),\n (renderExpirationTime = renderExpirationTime.sibling = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n )),\n (renderExpirationTime.return = workInProgress);\n renderExpirationTime.sibling = null;\n }\n return workInProgress.child;\n}\nvar appendAllChildren,\n updateHostContainer,\n updateHostComponent$1,\n updateHostText$1;\nappendAllChildren = function(\n parent,\n workInProgress,\n needsVisibilityToggle,\n isHidden\n) {\n for (var node = workInProgress.child; null !== node; ) {\n if (5 === node.tag) {\n var instance = node.stateNode;\n needsVisibilityToggle &&\n isHidden &&\n (instance = cloneHiddenInstance(\n instance,\n node.type,\n node.memoizedProps,\n node\n ));\n appendChildNode(parent.node, instance.node);\n } else if (6 === node.tag) {\n instance = node.stateNode;\n if (needsVisibilityToggle && isHidden)\n throw Error(\"Not yet implemented.\");\n appendChildNode(parent.node, instance.node);\n } else if (4 !== node.tag) {\n if (\n 13 === node.tag &&\n 0 !== (node.effectTag & 4) &&\n (instance = null !== node.memoizedState)\n ) {\n var primaryChildParent = node.child;\n if (\n null !== primaryChildParent &&\n (null !== primaryChildParent.child &&\n ((primaryChildParent.child.return = primaryChildParent),\n appendAllChildren(parent, primaryChildParent, !0, instance)),\n (instance = primaryChildParent.sibling),\n null !== instance)\n ) {\n instance.return = node;\n node = instance;\n continue;\n }\n }\n if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n }\n if (node === workInProgress) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === workInProgress) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n};\nfunction appendAllChildrenToContainer(\n containerChildSet,\n workInProgress,\n needsVisibilityToggle,\n isHidden\n) {\n for (var node = workInProgress.child; null !== node; ) {\n if (5 === node.tag) {\n var instance = node.stateNode;\n needsVisibilityToggle &&\n isHidden &&\n (instance = cloneHiddenInstance(\n instance,\n node.type,\n node.memoizedProps,\n node\n ));\n appendChildNodeToSet(containerChildSet, instance.node);\n } else if (6 === node.tag) {\n instance = node.stateNode;\n if (needsVisibilityToggle && isHidden)\n throw Error(\"Not yet implemented.\");\n appendChildNodeToSet(containerChildSet, instance.node);\n } else if (4 !== node.tag) {\n if (\n 13 === node.tag &&\n 0 !== (node.effectTag & 4) &&\n (instance = null !== node.memoizedState)\n ) {\n var primaryChildParent = node.child;\n if (\n null !== primaryChildParent &&\n (null !== primaryChildParent.child &&\n ((primaryChildParent.child.return = primaryChildParent),\n appendAllChildrenToContainer(\n containerChildSet,\n primaryChildParent,\n !0,\n instance\n )),\n (instance = primaryChildParent.sibling),\n null !== instance)\n ) {\n instance.return = node;\n node = instance;\n continue;\n }\n }\n if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n }\n if (node === workInProgress) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === workInProgress) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\nupdateHostContainer = function(workInProgress) {\n var portalOrRoot = workInProgress.stateNode;\n if (null !== workInProgress.firstEffect) {\n var container = portalOrRoot.containerInfo,\n newChildSet = createChildNodeSet(container);\n appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);\n portalOrRoot.pendingChildren = newChildSet;\n workInProgress.effectTag |= 4;\n completeRoot(container, newChildSet);\n }\n};\nupdateHostComponent$1 = function(current, workInProgress, type, newProps) {\n type = current.stateNode;\n var oldProps = current.memoizedProps;\n if ((current = null === workInProgress.firstEffect) && oldProps === newProps)\n workInProgress.stateNode = type;\n else {\n var recyclableInstance = workInProgress.stateNode;\n requiredContext(contextStackCursor$1.current);\n var updatePayload = null;\n oldProps !== newProps &&\n ((oldProps = diffProperties(\n null,\n oldProps,\n newProps,\n recyclableInstance.canonical.viewConfig.validAttributes\n )),\n (recyclableInstance.canonical.currentProps = newProps),\n (updatePayload = oldProps));\n current && null === updatePayload\n ? (workInProgress.stateNode = type)\n : ((newProps = updatePayload),\n (recyclableInstance = type.node),\n (type = {\n node: current\n ? null !== newProps\n ? cloneNodeWithNewProps(recyclableInstance, newProps)\n : cloneNode(recyclableInstance)\n : null !== newProps\n ? cloneNodeWithNewChildrenAndProps(recyclableInstance, newProps)\n : cloneNodeWithNewChildren(recyclableInstance),\n canonical: type.canonical\n }),\n (workInProgress.stateNode = type),\n current\n ? (workInProgress.effectTag |= 4)\n : appendAllChildren(type, workInProgress, !1, !1));\n }\n};\nupdateHostText$1 = function(current, workInProgress, oldText, newText) {\n oldText !== newText &&\n ((current = requiredContext(rootInstanceStackCursor.current)),\n (oldText = requiredContext(contextStackCursor$1.current)),\n (workInProgress.stateNode = createTextInstance(\n newText,\n current,\n oldText,\n workInProgress\n )),\n (workInProgress.effectTag |= 4));\n};\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n switch (renderState.tailMode) {\n case \"hidden\":\n hasRenderedATailFallback = renderState.tail;\n for (var lastTailNode = null; null !== hasRenderedATailFallback; )\n null !== hasRenderedATailFallback.alternate &&\n (lastTailNode = hasRenderedATailFallback),\n (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n null === lastTailNode\n ? (renderState.tail = null)\n : (lastTailNode.sibling = null);\n break;\n case \"collapsed\":\n lastTailNode = renderState.tail;\n for (var _lastTailNode = null; null !== lastTailNode; )\n null !== lastTailNode.alternate && (_lastTailNode = lastTailNode),\n (lastTailNode = lastTailNode.sibling);\n null === _lastTailNode\n ? hasRenderedATailFallback || null === renderState.tail\n ? (renderState.tail = null)\n : (renderState.tail.sibling = null)\n : (_lastTailNode.sibling = null);\n }\n}\nfunction unwindWork(workInProgress) {\n switch (workInProgress.tag) {\n case 1:\n isContextProvider(workInProgress.type) && popContext(workInProgress);\n var effectTag = workInProgress.effectTag;\n return effectTag & 4096\n ? ((workInProgress.effectTag = (effectTag & -4097) | 64),\n workInProgress)\n : null;\n case 3:\n popHostContainer(workInProgress);\n popTopLevelContextObject(workInProgress);\n effectTag = workInProgress.effectTag;\n if (0 !== (effectTag & 64))\n throw Error(\n \"The root failed to unmount after an error. This is likely a bug in React. Please file an issue.\"\n );\n workInProgress.effectTag = (effectTag & -4097) | 64;\n return workInProgress;\n case 5:\n return popHostContext(workInProgress), null;\n case 13:\n return (\n pop(suspenseStackCursor, workInProgress),\n (effectTag = workInProgress.effectTag),\n effectTag & 4096\n ? ((workInProgress.effectTag = (effectTag & -4097) | 64),\n workInProgress)\n : null\n );\n case 19:\n return pop(suspenseStackCursor, workInProgress), null;\n case 4:\n return popHostContainer(workInProgress), null;\n case 10:\n return popProvider(workInProgress), null;\n default:\n return null;\n }\n}\nfunction createCapturedValue(value, source) {\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nif (\n \"function\" !==\n typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog\n)\n throw Error(\n \"Expected ReactFiberErrorDialog.showErrorDialog to be a function.\"\n );\nfunction logCapturedError(capturedError) {\n !1 !==\n ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog(\n capturedError\n ) && console.error(capturedError.error);\n}\nvar PossiblyWeakSet = \"function\" === typeof WeakSet ? WeakSet : Set;\nfunction logError(boundary, errorInfo) {\n var source = errorInfo.source,\n stack = errorInfo.stack;\n null === stack &&\n null !== source &&\n (stack = getStackByFiberInDevAndProd(source));\n errorInfo = {\n componentName: null !== source ? getComponentName(source.type) : null,\n componentStack: null !== stack ? stack : \"\",\n error: errorInfo.value,\n errorBoundary: null,\n errorBoundaryName: null,\n errorBoundaryFound: !1,\n willRetry: !1\n };\n null !== boundary &&\n 1 === boundary.tag &&\n ((errorInfo.errorBoundary = boundary.stateNode),\n (errorInfo.errorBoundaryName = getComponentName(boundary.type)),\n (errorInfo.errorBoundaryFound = !0),\n (errorInfo.willRetry = !0));\n try {\n logCapturedError(errorInfo);\n } catch (e) {\n setTimeout(function() {\n throw e;\n });\n }\n}\nfunction safelyCallComponentWillUnmount(current$$1, instance) {\n try {\n (instance.props = current$$1.memoizedProps),\n (instance.state = current$$1.memoizedState),\n instance.componentWillUnmount();\n } catch (unmountError) {\n captureCommitPhaseError(current$$1, unmountError);\n }\n}\nfunction safelyDetachRef(current$$1) {\n var ref = current$$1.ref;\n if (null !== ref)\n if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (refError) {\n captureCommitPhaseError(current$$1, refError);\n }\n else ref.current = null;\n}\nfunction commitBeforeMutationLifeCycles(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectList(2, 0, finishedWork);\n break;\n case 1:\n if (finishedWork.effectTag & 256 && null !== current$$1) {\n var prevProps = current$$1.memoizedProps,\n prevState = current$$1.memoizedState;\n current$$1 = finishedWork.stateNode;\n finishedWork = current$$1.getSnapshotBeforeUpdate(\n finishedWork.elementType === finishedWork.type\n ? prevProps\n : resolveDefaultProps(finishedWork.type, prevProps),\n prevState\n );\n current$$1.__reactInternalSnapshotBeforeUpdate = finishedWork;\n }\n break;\n case 3:\n case 5:\n case 6:\n case 4:\n case 17:\n break;\n default:\n throw Error(\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nfunction commitHookEffectList(unmountTag, mountTag, finishedWork) {\n finishedWork = finishedWork.updateQueue;\n finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;\n if (null !== finishedWork) {\n var effect = (finishedWork = finishedWork.next);\n do {\n if (0 !== (effect.tag & unmountTag)) {\n var destroy = effect.destroy;\n effect.destroy = void 0;\n void 0 !== destroy && destroy();\n }\n 0 !== (effect.tag & mountTag) &&\n ((destroy = effect.create), (effect.destroy = destroy()));\n effect = effect.next;\n } while (effect !== finishedWork);\n }\n}\nfunction commitUnmount(finishedRoot, current$$1$jscomp$0, renderPriorityLevel) {\n \"function\" === typeof onCommitFiberUnmount &&\n onCommitFiberUnmount(current$$1$jscomp$0);\n switch (current$$1$jscomp$0.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n finishedRoot = current$$1$jscomp$0.updateQueue;\n if (\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.lastEffect), null !== finishedRoot)\n ) {\n var firstEffect = finishedRoot.next;\n runWithPriority$1(\n 97 < renderPriorityLevel ? 97 : renderPriorityLevel,\n function() {\n var effect = firstEffect;\n do {\n var destroy = effect.destroy;\n if (void 0 !== destroy) {\n var current$$1 = current$$1$jscomp$0;\n try {\n destroy();\n } catch (error) {\n captureCommitPhaseError(current$$1, error);\n }\n }\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n );\n }\n break;\n case 1:\n safelyDetachRef(current$$1$jscomp$0);\n renderPriorityLevel = current$$1$jscomp$0.stateNode;\n \"function\" === typeof renderPriorityLevel.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n current$$1$jscomp$0,\n renderPriorityLevel\n );\n break;\n case 5:\n safelyDetachRef(current$$1$jscomp$0);\n break;\n case 4:\n createChildNodeSet(current$$1$jscomp$0.stateNode.containerInfo);\n }\n}\nfunction detachFiber(current$$1) {\n var alternate = current$$1.alternate;\n current$$1.return = null;\n current$$1.child = null;\n current$$1.memoizedState = null;\n current$$1.updateQueue = null;\n current$$1.dependencies = null;\n current$$1.alternate = null;\n current$$1.firstEffect = null;\n current$$1.lastEffect = null;\n current$$1.pendingProps = null;\n current$$1.memoizedProps = null;\n null !== alternate && detachFiber(alternate);\n}\nfunction commitWork(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n commitHookEffectList(4, 8, finishedWork);\n return;\n case 12:\n return;\n case 13:\n null !== finishedWork.memoizedState &&\n (globalMostRecentFallbackTime = now());\n attachSuspenseRetryListeners(finishedWork);\n return;\n case 19:\n attachSuspenseRetryListeners(finishedWork);\n return;\n }\n a: switch (finishedWork.tag) {\n case 1:\n case 5:\n case 6:\n case 20:\n break a;\n case 3:\n case 4:\n break a;\n default:\n throw Error(\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nfunction attachSuspenseRetryListeners(finishedWork) {\n var thenables = finishedWork.updateQueue;\n if (null !== thenables) {\n finishedWork.updateQueue = null;\n var retryCache = finishedWork.stateNode;\n null === retryCache &&\n (retryCache = finishedWork.stateNode = new PossiblyWeakSet());\n thenables.forEach(function(thenable) {\n var retry = resolveRetryThenable.bind(null, finishedWork, thenable);\n retryCache.has(thenable) ||\n (retryCache.add(thenable), thenable.then(retry, retry));\n });\n }\n}\nvar PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map;\nfunction createRootErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime, null);\n expirationTime.tag = 3;\n expirationTime.payload = { element: null };\n var error = errorInfo.value;\n expirationTime.callback = function() {\n hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));\n logError(fiber, errorInfo);\n };\n return expirationTime;\n}\nfunction createClassErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime, null);\n expirationTime.tag = 3;\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error = errorInfo.value;\n expirationTime.payload = function() {\n logError(fiber, errorInfo);\n return getDerivedStateFromError(error);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (expirationTime.callback = function() {\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this),\n logError(fiber, errorInfo));\n var stack = errorInfo.stack;\n this.componentDidCatch(errorInfo.value, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n return expirationTime;\n}\nvar ceil = Math.ceil,\n ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,\n ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,\n NoContext = 0,\n LegacyUnbatchedContext = 8,\n RenderContext = 16,\n CommitContext = 32,\n RootIncomplete = 0,\n RootFatalErrored = 1,\n RootErrored = 2,\n RootSuspended = 3,\n RootSuspendedWithDelay = 4,\n RootCompleted = 5,\n executionContext = NoContext,\n workInProgressRoot = null,\n workInProgress = null,\n renderExpirationTime = 0,\n workInProgressRootExitStatus = RootIncomplete,\n workInProgressRootFatalError = null,\n workInProgressRootLatestProcessedExpirationTime = 1073741823,\n workInProgressRootLatestSuspenseTimeout = 1073741823,\n workInProgressRootCanSuspendUsingConfig = null,\n workInProgressRootNextUnprocessedUpdateTime = 0,\n workInProgressRootHasPendingPing = !1,\n globalMostRecentFallbackTime = 0,\n FALLBACK_THROTTLE_MS = 500,\n nextEffect = null,\n hasUncaughtError = !1,\n firstUncaughtError = null,\n legacyErrorBoundariesThatAlreadyFailed = null,\n rootDoesHavePassiveEffects = !1,\n rootWithPendingPassiveEffects = null,\n pendingPassiveEffectsRenderPriority = 90,\n rootsWithPendingDiscreteUpdates = null,\n nestedUpdateCount = 0,\n rootWithNestedUpdates = null,\n currentEventTime = 0;\nfunction requestCurrentTimeForUpdate() {\n return (executionContext & (RenderContext | CommitContext)) !== NoContext\n ? 1073741821 - ((now() / 10) | 0)\n : 0 !== currentEventTime\n ? currentEventTime\n : (currentEventTime = 1073741821 - ((now() / 10) | 0));\n}\nfunction computeExpirationForFiber(currentTime, fiber, suspenseConfig) {\n fiber = fiber.mode;\n if (0 === (fiber & 2)) return 1073741823;\n var priorityLevel = getCurrentPriorityLevel();\n if (0 === (fiber & 4)) return 99 === priorityLevel ? 1073741823 : 1073741822;\n if ((executionContext & RenderContext) !== NoContext)\n return renderExpirationTime;\n if (null !== suspenseConfig)\n currentTime =\n 1073741821 -\n 25 *\n ((((1073741821 -\n currentTime +\n (suspenseConfig.timeoutMs | 0 || 5e3) / 10) /\n 25) |\n 0) +\n 1);\n else\n switch (priorityLevel) {\n case 99:\n currentTime = 1073741823;\n break;\n case 98:\n currentTime =\n 1073741821 - 10 * ((((1073741821 - currentTime + 15) / 10) | 0) + 1);\n break;\n case 97:\n case 96:\n currentTime =\n 1073741821 - 25 * ((((1073741821 - currentTime + 500) / 25) | 0) + 1);\n break;\n case 95:\n currentTime = 2;\n break;\n default:\n throw Error(\"Expected a valid priority level\");\n }\n null !== workInProgressRoot &&\n currentTime === renderExpirationTime &&\n --currentTime;\n return currentTime;\n}\nfunction scheduleUpdateOnFiber(fiber, expirationTime) {\n if (50 < nestedUpdateCount)\n throw ((nestedUpdateCount = 0),\n (rootWithNestedUpdates = null),\n Error(\n \"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\"\n ));\n fiber = markUpdateTimeFromFiberToRoot(fiber, expirationTime);\n if (null !== fiber) {\n var priorityLevel = getCurrentPriorityLevel();\n 1073741823 === expirationTime\n ? (executionContext & LegacyUnbatchedContext) !== NoContext &&\n (executionContext & (RenderContext | CommitContext)) === NoContext\n ? performSyncWorkOnRoot(fiber)\n : (ensureRootIsScheduled(fiber),\n executionContext === NoContext && flushSyncCallbackQueue())\n : ensureRootIsScheduled(fiber);\n (executionContext & 4) === NoContext ||\n (98 !== priorityLevel && 99 !== priorityLevel) ||\n (null === rootsWithPendingDiscreteUpdates\n ? (rootsWithPendingDiscreteUpdates = new Map([[fiber, expirationTime]]))\n : ((priorityLevel = rootsWithPendingDiscreteUpdates.get(fiber)),\n (void 0 === priorityLevel || priorityLevel > expirationTime) &&\n rootsWithPendingDiscreteUpdates.set(fiber, expirationTime)));\n }\n}\nfunction markUpdateTimeFromFiberToRoot(fiber, expirationTime) {\n fiber.expirationTime < expirationTime &&\n (fiber.expirationTime = expirationTime);\n var alternate = fiber.alternate;\n null !== alternate &&\n alternate.expirationTime < expirationTime &&\n (alternate.expirationTime = expirationTime);\n var node = fiber.return,\n root = null;\n if (null === node && 3 === fiber.tag) root = fiber.stateNode;\n else\n for (; null !== node; ) {\n alternate = node.alternate;\n node.childExpirationTime < expirationTime &&\n (node.childExpirationTime = expirationTime);\n null !== alternate &&\n alternate.childExpirationTime < expirationTime &&\n (alternate.childExpirationTime = expirationTime);\n if (null === node.return && 3 === node.tag) {\n root = node.stateNode;\n break;\n }\n node = node.return;\n }\n null !== root &&\n (workInProgressRoot === root &&\n (markUnprocessedUpdateTime(expirationTime),\n workInProgressRootExitStatus === RootSuspendedWithDelay &&\n markRootSuspendedAtTime(root, renderExpirationTime)),\n markRootUpdatedAtTime(root, expirationTime));\n return root;\n}\nfunction getNextRootExpirationTimeToWorkOn(root) {\n var lastExpiredTime = root.lastExpiredTime;\n if (0 !== lastExpiredTime) return lastExpiredTime;\n lastExpiredTime = root.firstPendingTime;\n if (!isRootSuspendedAtTime(root, lastExpiredTime)) return lastExpiredTime;\n lastExpiredTime = root.lastPingedTime;\n root = root.nextKnownPendingLevel;\n return lastExpiredTime > root ? lastExpiredTime : root;\n}\nfunction ensureRootIsScheduled(root) {\n if (0 !== root.lastExpiredTime)\n (root.callbackExpirationTime = 1073741823),\n (root.callbackPriority = 99),\n (root.callbackNode = scheduleSyncCallback(\n performSyncWorkOnRoot.bind(null, root)\n ));\n else {\n var expirationTime = getNextRootExpirationTimeToWorkOn(root),\n existingCallbackNode = root.callbackNode;\n if (0 === expirationTime)\n null !== existingCallbackNode &&\n ((root.callbackNode = null),\n (root.callbackExpirationTime = 0),\n (root.callbackPriority = 90));\n else {\n var priorityLevel = requestCurrentTimeForUpdate();\n 1073741823 === expirationTime\n ? (priorityLevel = 99)\n : 1 === expirationTime || 2 === expirationTime\n ? (priorityLevel = 95)\n : ((priorityLevel =\n 10 * (1073741821 - expirationTime) -\n 10 * (1073741821 - priorityLevel)),\n (priorityLevel =\n 0 >= priorityLevel\n ? 99\n : 250 >= priorityLevel\n ? 98\n : 5250 >= priorityLevel\n ? 97\n : 95));\n if (null !== existingCallbackNode) {\n var existingCallbackPriority = root.callbackPriority;\n if (\n root.callbackExpirationTime === expirationTime &&\n existingCallbackPriority >= priorityLevel\n )\n return;\n existingCallbackNode !== fakeCallbackNode &&\n Scheduler_cancelCallback(existingCallbackNode);\n }\n root.callbackExpirationTime = expirationTime;\n root.callbackPriority = priorityLevel;\n expirationTime =\n 1073741823 === expirationTime\n ? scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root))\n : scheduleCallback(\n priorityLevel,\n performConcurrentWorkOnRoot.bind(null, root),\n { timeout: 10 * (1073741821 - expirationTime) - now() }\n );\n root.callbackNode = expirationTime;\n }\n }\n}\nfunction performConcurrentWorkOnRoot(root, didTimeout) {\n currentEventTime = 0;\n if (didTimeout)\n return (\n (didTimeout = requestCurrentTimeForUpdate()),\n markRootExpiredAtTime(root, didTimeout),\n ensureRootIsScheduled(root),\n null\n );\n var expirationTime = getNextRootExpirationTimeToWorkOn(root);\n if (0 !== expirationTime) {\n didTimeout = root.callbackNode;\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Should not already be working.\");\n flushPassiveEffects();\n (root === workInProgressRoot && expirationTime === renderExpirationTime) ||\n prepareFreshStack(root, expirationTime);\n if (null !== workInProgress) {\n var prevExecutionContext = executionContext;\n executionContext |= RenderContext;\n var prevDispatcher = pushDispatcher(root);\n do\n try {\n workLoopConcurrent();\n break;\n } catch (thrownValue) {\n handleError(root, thrownValue);\n }\n while (1);\n resetContextDependencies();\n executionContext = prevExecutionContext;\n ReactCurrentDispatcher.current = prevDispatcher;\n if (workInProgressRootExitStatus === RootFatalErrored)\n throw ((didTimeout = workInProgressRootFatalError),\n prepareFreshStack(root, expirationTime),\n markRootSuspendedAtTime(root, expirationTime),\n ensureRootIsScheduled(root),\n didTimeout);\n if (null === workInProgress)\n switch (\n ((prevDispatcher = root.finishedWork = root.current.alternate),\n (root.finishedExpirationTime = expirationTime),\n (prevExecutionContext = workInProgressRootExitStatus),\n (workInProgressRoot = null),\n prevExecutionContext)\n ) {\n case RootIncomplete:\n case RootFatalErrored:\n throw Error(\"Root did not complete. This is a bug in React.\");\n case RootErrored:\n markRootExpiredAtTime(\n root,\n 2 < expirationTime ? 2 : expirationTime\n );\n break;\n case RootSuspended:\n markRootSuspendedAtTime(root, expirationTime);\n prevExecutionContext = root.lastSuspendedTime;\n expirationTime === prevExecutionContext &&\n (root.nextKnownPendingLevel = getRemainingExpirationTime(\n prevDispatcher\n ));\n if (\n 1073741823 === workInProgressRootLatestProcessedExpirationTime &&\n ((prevDispatcher =\n globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now()),\n 10 < prevDispatcher)\n ) {\n if (workInProgressRootHasPendingPing) {\n var lastPingedTime = root.lastPingedTime;\n if (0 === lastPingedTime || lastPingedTime >= expirationTime) {\n root.lastPingedTime = expirationTime;\n prepareFreshStack(root, expirationTime);\n break;\n }\n }\n lastPingedTime = getNextRootExpirationTimeToWorkOn(root);\n if (0 !== lastPingedTime && lastPingedTime !== expirationTime)\n break;\n if (\n 0 !== prevExecutionContext &&\n prevExecutionContext !== expirationTime\n ) {\n root.lastPingedTime = prevExecutionContext;\n break;\n }\n root.timeoutHandle = scheduleTimeout(\n commitRoot.bind(null, root),\n prevDispatcher\n );\n break;\n }\n commitRoot(root);\n break;\n case RootSuspendedWithDelay:\n markRootSuspendedAtTime(root, expirationTime);\n prevExecutionContext = root.lastSuspendedTime;\n expirationTime === prevExecutionContext &&\n (root.nextKnownPendingLevel = getRemainingExpirationTime(\n prevDispatcher\n ));\n if (\n workInProgressRootHasPendingPing &&\n ((prevDispatcher = root.lastPingedTime),\n 0 === prevDispatcher || prevDispatcher >= expirationTime)\n ) {\n root.lastPingedTime = expirationTime;\n prepareFreshStack(root, expirationTime);\n break;\n }\n prevDispatcher = getNextRootExpirationTimeToWorkOn(root);\n if (0 !== prevDispatcher && prevDispatcher !== expirationTime)\n break;\n if (\n 0 !== prevExecutionContext &&\n prevExecutionContext !== expirationTime\n ) {\n root.lastPingedTime = prevExecutionContext;\n break;\n }\n 1073741823 !== workInProgressRootLatestSuspenseTimeout\n ? (prevExecutionContext =\n 10 * (1073741821 - workInProgressRootLatestSuspenseTimeout) -\n now())\n : 1073741823 === workInProgressRootLatestProcessedExpirationTime\n ? (prevExecutionContext = 0)\n : ((prevExecutionContext =\n 10 *\n (1073741821 -\n workInProgressRootLatestProcessedExpirationTime) -\n 5e3),\n (prevDispatcher = now()),\n (expirationTime =\n 10 * (1073741821 - expirationTime) - prevDispatcher),\n (prevExecutionContext =\n prevDispatcher - prevExecutionContext),\n 0 > prevExecutionContext && (prevExecutionContext = 0),\n (prevExecutionContext =\n (120 > prevExecutionContext\n ? 120\n : 480 > prevExecutionContext\n ? 480\n : 1080 > prevExecutionContext\n ? 1080\n : 1920 > prevExecutionContext\n ? 1920\n : 3e3 > prevExecutionContext\n ? 3e3\n : 4320 > prevExecutionContext\n ? 4320\n : 1960 * ceil(prevExecutionContext / 1960)) -\n prevExecutionContext),\n expirationTime < prevExecutionContext &&\n (prevExecutionContext = expirationTime));\n if (10 < prevExecutionContext) {\n root.timeoutHandle = scheduleTimeout(\n commitRoot.bind(null, root),\n prevExecutionContext\n );\n break;\n }\n commitRoot(root);\n break;\n case RootCompleted:\n if (\n 1073741823 !== workInProgressRootLatestProcessedExpirationTime &&\n null !== workInProgressRootCanSuspendUsingConfig\n ) {\n lastPingedTime = workInProgressRootLatestProcessedExpirationTime;\n var suspenseConfig = workInProgressRootCanSuspendUsingConfig;\n prevExecutionContext = suspenseConfig.busyMinDurationMs | 0;\n 0 >= prevExecutionContext\n ? (prevExecutionContext = 0)\n : ((prevDispatcher = suspenseConfig.busyDelayMs | 0),\n (lastPingedTime =\n now() -\n (10 * (1073741821 - lastPingedTime) -\n (suspenseConfig.timeoutMs | 0 || 5e3))),\n (prevExecutionContext =\n lastPingedTime <= prevDispatcher\n ? 0\n : prevDispatcher +\n prevExecutionContext -\n lastPingedTime));\n if (10 < prevExecutionContext) {\n markRootSuspendedAtTime(root, expirationTime);\n root.timeoutHandle = scheduleTimeout(\n commitRoot.bind(null, root),\n prevExecutionContext\n );\n break;\n }\n }\n commitRoot(root);\n break;\n default:\n throw Error(\"Unknown root exit status.\");\n }\n ensureRootIsScheduled(root);\n if (root.callbackNode === didTimeout)\n return performConcurrentWorkOnRoot.bind(null, root);\n }\n }\n return null;\n}\nfunction performSyncWorkOnRoot(root) {\n var lastExpiredTime = root.lastExpiredTime;\n lastExpiredTime = 0 !== lastExpiredTime ? lastExpiredTime : 1073741823;\n if (root.finishedExpirationTime === lastExpiredTime) commitRoot(root);\n else {\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Should not already be working.\");\n flushPassiveEffects();\n (root === workInProgressRoot && lastExpiredTime === renderExpirationTime) ||\n prepareFreshStack(root, lastExpiredTime);\n if (null !== workInProgress) {\n var prevExecutionContext = executionContext;\n executionContext |= RenderContext;\n var prevDispatcher = pushDispatcher(root);\n do\n try {\n workLoopSync();\n break;\n } catch (thrownValue) {\n handleError(root, thrownValue);\n }\n while (1);\n resetContextDependencies();\n executionContext = prevExecutionContext;\n ReactCurrentDispatcher.current = prevDispatcher;\n if (workInProgressRootExitStatus === RootFatalErrored)\n throw ((prevExecutionContext = workInProgressRootFatalError),\n prepareFreshStack(root, lastExpiredTime),\n markRootSuspendedAtTime(root, lastExpiredTime),\n ensureRootIsScheduled(root),\n prevExecutionContext);\n if (null !== workInProgress)\n throw Error(\n \"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n root.finishedWork = root.current.alternate;\n root.finishedExpirationTime = lastExpiredTime;\n workInProgressRoot = null;\n commitRoot(root);\n ensureRootIsScheduled(root);\n }\n }\n return null;\n}\nfunction flushPendingDiscreteUpdates() {\n if (null !== rootsWithPendingDiscreteUpdates) {\n var roots = rootsWithPendingDiscreteUpdates;\n rootsWithPendingDiscreteUpdates = null;\n roots.forEach(function(expirationTime, root) {\n markRootExpiredAtTime(root, expirationTime);\n ensureRootIsScheduled(root);\n });\n flushSyncCallbackQueue();\n }\n}\nfunction prepareFreshStack(root, expirationTime) {\n root.finishedWork = null;\n root.finishedExpirationTime = 0;\n var timeoutHandle = root.timeoutHandle;\n -1 !== timeoutHandle &&\n ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));\n if (null !== workInProgress)\n for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {\n var interruptedWork = timeoutHandle;\n switch (interruptedWork.tag) {\n case 1:\n var childContextTypes = interruptedWork.type.childContextTypes;\n null !== childContextTypes &&\n void 0 !== childContextTypes &&\n popContext(interruptedWork);\n break;\n case 3:\n popHostContainer(interruptedWork);\n popTopLevelContextObject(interruptedWork);\n break;\n case 5:\n popHostContext(interruptedWork);\n break;\n case 4:\n popHostContainer(interruptedWork);\n break;\n case 13:\n pop(suspenseStackCursor, interruptedWork);\n break;\n case 19:\n pop(suspenseStackCursor, interruptedWork);\n break;\n case 10:\n popProvider(interruptedWork);\n }\n timeoutHandle = timeoutHandle.return;\n }\n workInProgressRoot = root;\n workInProgress = createWorkInProgress(root.current, null, expirationTime);\n renderExpirationTime = expirationTime;\n workInProgressRootExitStatus = RootIncomplete;\n workInProgressRootFatalError = null;\n workInProgressRootLatestSuspenseTimeout = workInProgressRootLatestProcessedExpirationTime = 1073741823;\n workInProgressRootCanSuspendUsingConfig = null;\n workInProgressRootNextUnprocessedUpdateTime = 0;\n workInProgressRootHasPendingPing = !1;\n}\nfunction handleError(root$jscomp$0, thrownValue) {\n do {\n try {\n resetContextDependencies();\n resetHooks();\n if (null === workInProgress || null === workInProgress.return)\n return (\n (workInProgressRootExitStatus = RootFatalErrored),\n (workInProgressRootFatalError = thrownValue),\n null\n );\n a: {\n var root = root$jscomp$0,\n returnFiber = workInProgress.return,\n sourceFiber = workInProgress,\n value = thrownValue;\n thrownValue = renderExpirationTime;\n sourceFiber.effectTag |= 2048;\n sourceFiber.firstEffect = sourceFiber.lastEffect = null;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n var thenable = value,\n hasInvisibleParentBoundary =\n 0 !== (suspenseStackCursor.current & 1),\n _workInProgress = returnFiber;\n do {\n var JSCompiler_temp;\n if ((JSCompiler_temp = 13 === _workInProgress.tag)) {\n var nextState = _workInProgress.memoizedState;\n if (null !== nextState)\n JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;\n else {\n var props = _workInProgress.memoizedProps;\n JSCompiler_temp =\n void 0 === props.fallback\n ? !1\n : !0 !== props.unstable_avoidThisFallback\n ? !0\n : hasInvisibleParentBoundary\n ? !1\n : !0;\n }\n }\n if (JSCompiler_temp) {\n var thenables = _workInProgress.updateQueue;\n if (null === thenables) {\n var updateQueue = new Set();\n updateQueue.add(thenable);\n _workInProgress.updateQueue = updateQueue;\n } else thenables.add(thenable);\n if (0 === (_workInProgress.mode & 2)) {\n _workInProgress.effectTag |= 64;\n sourceFiber.effectTag &= -2981;\n if (1 === sourceFiber.tag)\n if (null === sourceFiber.alternate) sourceFiber.tag = 17;\n else {\n var update = createUpdate(1073741823, null);\n update.tag = 2;\n enqueueUpdate(sourceFiber, update);\n }\n sourceFiber.expirationTime = 1073741823;\n break a;\n }\n value = void 0;\n sourceFiber = thrownValue;\n var pingCache = root.pingCache;\n null === pingCache\n ? ((pingCache = root.pingCache = new PossiblyWeakMap()),\n (value = new Set()),\n pingCache.set(thenable, value))\n : ((value = pingCache.get(thenable)),\n void 0 === value &&\n ((value = new Set()), pingCache.set(thenable, value)));\n if (!value.has(sourceFiber)) {\n value.add(sourceFiber);\n var ping = pingSuspendedRoot.bind(\n null,\n root,\n thenable,\n sourceFiber\n );\n thenable.then(ping, ping);\n }\n _workInProgress.effectTag |= 4096;\n _workInProgress.expirationTime = thrownValue;\n break a;\n }\n _workInProgress = _workInProgress.return;\n } while (null !== _workInProgress);\n value = Error(\n (getComponentName(sourceFiber.type) || \"A React component\") +\n \" suspended while rendering, but no fallback UI was specified.\\n\\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.\" +\n getStackByFiberInDevAndProd(sourceFiber)\n );\n }\n workInProgressRootExitStatus !== RootCompleted &&\n (workInProgressRootExitStatus = RootErrored);\n value = createCapturedValue(value, sourceFiber);\n _workInProgress = returnFiber;\n do {\n switch (_workInProgress.tag) {\n case 3:\n thenable = value;\n _workInProgress.effectTag |= 4096;\n _workInProgress.expirationTime = thrownValue;\n var _update = createRootErrorUpdate(\n _workInProgress,\n thenable,\n thrownValue\n );\n enqueueCapturedUpdate(_workInProgress, _update);\n break a;\n case 1:\n thenable = value;\n var ctor = _workInProgress.type,\n instance = _workInProgress.stateNode;\n if (\n 0 === (_workInProgress.effectTag & 64) &&\n (\"function\" === typeof ctor.getDerivedStateFromError ||\n (null !== instance &&\n \"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance))))\n ) {\n _workInProgress.effectTag |= 4096;\n _workInProgress.expirationTime = thrownValue;\n var _update2 = createClassErrorUpdate(\n _workInProgress,\n thenable,\n thrownValue\n );\n enqueueCapturedUpdate(_workInProgress, _update2);\n break a;\n }\n }\n _workInProgress = _workInProgress.return;\n } while (null !== _workInProgress);\n }\n workInProgress = completeUnitOfWork(workInProgress);\n } catch (yetAnotherThrownValue) {\n thrownValue = yetAnotherThrownValue;\n continue;\n }\n break;\n } while (1);\n}\nfunction pushDispatcher() {\n var prevDispatcher = ReactCurrentDispatcher.current;\n ReactCurrentDispatcher.current = ContextOnlyDispatcher;\n return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;\n}\nfunction markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {\n expirationTime < workInProgressRootLatestProcessedExpirationTime &&\n 2 < expirationTime &&\n (workInProgressRootLatestProcessedExpirationTime = expirationTime);\n null !== suspenseConfig &&\n expirationTime < workInProgressRootLatestSuspenseTimeout &&\n 2 < expirationTime &&\n ((workInProgressRootLatestSuspenseTimeout = expirationTime),\n (workInProgressRootCanSuspendUsingConfig = suspenseConfig));\n}\nfunction markUnprocessedUpdateTime(expirationTime) {\n expirationTime > workInProgressRootNextUnprocessedUpdateTime &&\n (workInProgressRootNextUnprocessedUpdateTime = expirationTime);\n}\nfunction workLoopSync() {\n for (; null !== workInProgress; )\n workInProgress = performUnitOfWork(workInProgress);\n}\nfunction workLoopConcurrent() {\n for (; null !== workInProgress && !Scheduler_shouldYield(); )\n workInProgress = performUnitOfWork(workInProgress);\n}\nfunction performUnitOfWork(unitOfWork) {\n var next = beginWork$$1(\n unitOfWork.alternate,\n unitOfWork,\n renderExpirationTime\n );\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n null === next && (next = completeUnitOfWork(unitOfWork));\n ReactCurrentOwner$2.current = null;\n return next;\n}\nfunction completeUnitOfWork(unitOfWork) {\n workInProgress = unitOfWork;\n do {\n var current$$1 = workInProgress.alternate;\n unitOfWork = workInProgress.return;\n if (0 === (workInProgress.effectTag & 2048)) {\n a: {\n var instance = current$$1;\n current$$1 = workInProgress;\n var renderExpirationTime$jscomp$0 = renderExpirationTime,\n newProps = current$$1.pendingProps;\n switch (current$$1.tag) {\n case 2:\n break;\n case 16:\n break;\n case 15:\n case 0:\n break;\n case 1:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n case 3:\n popHostContainer(current$$1);\n popTopLevelContextObject(current$$1);\n instance = current$$1.stateNode;\n instance.pendingContext &&\n ((instance.context = instance.pendingContext),\n (instance.pendingContext = null));\n updateHostContainer(current$$1);\n break;\n case 5:\n popHostContext(current$$1);\n var rootContainerInstance = requiredContext(\n rootInstanceStackCursor.current\n ),\n type = current$$1.type;\n if (null !== instance && null != current$$1.stateNode)\n updateHostComponent$1(\n instance,\n current$$1,\n type,\n newProps,\n rootContainerInstance\n ),\n instance.ref !== current$$1.ref &&\n (current$$1.effectTag |= 128);\n else if (newProps) {\n requiredContext(contextStackCursor$1.current);\n instance = current$$1;\n renderExpirationTime$jscomp$0 = nextReactTag;\n nextReactTag += 2;\n type = getViewConfigForType(type);\n var updatePayload = diffProperties(\n null,\n emptyObject,\n newProps,\n type.validAttributes\n );\n rootContainerInstance = createNode(\n renderExpirationTime$jscomp$0,\n type.uiViewClassName,\n rootContainerInstance,\n updatePayload,\n instance\n );\n instance = new ReactFabricHostComponent(\n renderExpirationTime$jscomp$0,\n type,\n newProps,\n instance\n );\n instance = {\n node: rootContainerInstance,\n canonical: instance\n };\n appendAllChildren(instance, current$$1, !1, !1);\n current$$1.stateNode = instance;\n null !== current$$1.ref && (current$$1.effectTag |= 128);\n } else if (null === current$$1.stateNode)\n throw Error(\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n );\n break;\n case 6:\n if (instance && null != current$$1.stateNode)\n updateHostText$1(\n instance,\n current$$1,\n instance.memoizedProps,\n newProps\n );\n else {\n if (\"string\" !== typeof newProps && null === current$$1.stateNode)\n throw Error(\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n );\n instance = requiredContext(rootInstanceStackCursor.current);\n rootContainerInstance = requiredContext(\n contextStackCursor$1.current\n );\n current$$1.stateNode = createTextInstance(\n newProps,\n instance,\n rootContainerInstance,\n current$$1\n );\n }\n break;\n case 11:\n break;\n case 13:\n pop(suspenseStackCursor, current$$1);\n newProps = current$$1.memoizedState;\n if (0 !== (current$$1.effectTag & 64)) {\n current$$1.expirationTime = renderExpirationTime$jscomp$0;\n break a;\n }\n newProps = null !== newProps;\n rootContainerInstance = !1;\n null !== instance &&\n ((renderExpirationTime$jscomp$0 = instance.memoizedState),\n (rootContainerInstance = null !== renderExpirationTime$jscomp$0),\n newProps ||\n null === renderExpirationTime$jscomp$0 ||\n ((renderExpirationTime$jscomp$0 = instance.child.sibling),\n null !== renderExpirationTime$jscomp$0 &&\n ((type = current$$1.firstEffect),\n null !== type\n ? ((current$$1.firstEffect = renderExpirationTime$jscomp$0),\n (renderExpirationTime$jscomp$0.nextEffect = type))\n : ((current$$1.firstEffect = current$$1.lastEffect = renderExpirationTime$jscomp$0),\n (renderExpirationTime$jscomp$0.nextEffect = null)),\n (renderExpirationTime$jscomp$0.effectTag = 8))));\n if (\n newProps &&\n !rootContainerInstance &&\n 0 !== (current$$1.mode & 2)\n )\n if (\n (null === instance &&\n !0 !== current$$1.memoizedProps.unstable_avoidThisFallback) ||\n 0 !== (suspenseStackCursor.current & 1)\n )\n workInProgressRootExitStatus === RootIncomplete &&\n (workInProgressRootExitStatus = RootSuspended);\n else {\n if (\n workInProgressRootExitStatus === RootIncomplete ||\n workInProgressRootExitStatus === RootSuspended\n )\n workInProgressRootExitStatus = RootSuspendedWithDelay;\n 0 !== workInProgressRootNextUnprocessedUpdateTime &&\n null !== workInProgressRoot &&\n (markRootSuspendedAtTime(\n workInProgressRoot,\n renderExpirationTime\n ),\n markRootUpdatedAtTime(\n workInProgressRoot,\n workInProgressRootNextUnprocessedUpdateTime\n ));\n }\n newProps && (current$$1.effectTag |= 4);\n break;\n case 7:\n break;\n case 8:\n break;\n case 12:\n break;\n case 4:\n popHostContainer(current$$1);\n updateHostContainer(current$$1);\n break;\n case 10:\n popProvider(current$$1);\n break;\n case 9:\n break;\n case 14:\n break;\n case 17:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n case 19:\n pop(suspenseStackCursor, current$$1);\n newProps = current$$1.memoizedState;\n if (null === newProps) break;\n rootContainerInstance = 0 !== (current$$1.effectTag & 64);\n type = newProps.rendering;\n if (null === type)\n if (rootContainerInstance) cutOffTailIfNeeded(newProps, !1);\n else {\n if (\n workInProgressRootExitStatus !== RootIncomplete ||\n (null !== instance && 0 !== (instance.effectTag & 64))\n )\n for (instance = current$$1.child; null !== instance; ) {\n type = findFirstSuspended(instance);\n if (null !== type) {\n current$$1.effectTag |= 64;\n cutOffTailIfNeeded(newProps, !1);\n instance = type.updateQueue;\n null !== instance &&\n ((current$$1.updateQueue = instance),\n (current$$1.effectTag |= 4));\n null === newProps.lastEffect &&\n (current$$1.firstEffect = null);\n current$$1.lastEffect = newProps.lastEffect;\n instance = renderExpirationTime$jscomp$0;\n for (newProps = current$$1.child; null !== newProps; )\n (rootContainerInstance = newProps),\n (renderExpirationTime$jscomp$0 = instance),\n (rootContainerInstance.effectTag &= 2),\n (rootContainerInstance.nextEffect = null),\n (rootContainerInstance.firstEffect = null),\n (rootContainerInstance.lastEffect = null),\n (type = rootContainerInstance.alternate),\n null === type\n ? ((rootContainerInstance.childExpirationTime = 0),\n (rootContainerInstance.expirationTime = renderExpirationTime$jscomp$0),\n (rootContainerInstance.child = null),\n (rootContainerInstance.memoizedProps = null),\n (rootContainerInstance.memoizedState = null),\n (rootContainerInstance.updateQueue = null),\n (rootContainerInstance.dependencies = null))\n : ((rootContainerInstance.childExpirationTime =\n type.childExpirationTime),\n (rootContainerInstance.expirationTime =\n type.expirationTime),\n (rootContainerInstance.child = type.child),\n (rootContainerInstance.memoizedProps =\n type.memoizedProps),\n (rootContainerInstance.memoizedState =\n type.memoizedState),\n (rootContainerInstance.updateQueue =\n type.updateQueue),\n (renderExpirationTime$jscomp$0 =\n type.dependencies),\n (rootContainerInstance.dependencies =\n null === renderExpirationTime$jscomp$0\n ? null\n : {\n expirationTime:\n renderExpirationTime$jscomp$0.expirationTime,\n firstContext:\n renderExpirationTime$jscomp$0.firstContext,\n responders:\n renderExpirationTime$jscomp$0.responders\n })),\n (newProps = newProps.sibling);\n push(\n suspenseStackCursor,\n (suspenseStackCursor.current & 1) | 2,\n current$$1\n );\n current$$1 = current$$1.child;\n break a;\n }\n instance = instance.sibling;\n }\n }\n else {\n if (!rootContainerInstance)\n if (\n ((instance = findFirstSuspended(type)), null !== instance)\n ) {\n if (\n ((current$$1.effectTag |= 64),\n (rootContainerInstance = !0),\n (instance = instance.updateQueue),\n null !== instance &&\n ((current$$1.updateQueue = instance),\n (current$$1.effectTag |= 4)),\n cutOffTailIfNeeded(newProps, !0),\n null === newProps.tail &&\n \"hidden\" === newProps.tailMode &&\n !type.alternate)\n ) {\n current$$1 = current$$1.lastEffect = newProps.lastEffect;\n null !== current$$1 && (current$$1.nextEffect = null);\n break;\n }\n } else\n now() > newProps.tailExpiration &&\n 1 < renderExpirationTime$jscomp$0 &&\n ((current$$1.effectTag |= 64),\n (rootContainerInstance = !0),\n cutOffTailIfNeeded(newProps, !1),\n (current$$1.expirationTime = current$$1.childExpirationTime =\n renderExpirationTime$jscomp$0 - 1));\n newProps.isBackwards\n ? ((type.sibling = current$$1.child), (current$$1.child = type))\n : ((instance = newProps.last),\n null !== instance\n ? (instance.sibling = type)\n : (current$$1.child = type),\n (newProps.last = type));\n }\n if (null !== newProps.tail) {\n 0 === newProps.tailExpiration &&\n (newProps.tailExpiration = now() + 500);\n instance = newProps.tail;\n newProps.rendering = instance;\n newProps.tail = instance.sibling;\n newProps.lastEffect = current$$1.lastEffect;\n instance.sibling = null;\n newProps = suspenseStackCursor.current;\n newProps = rootContainerInstance\n ? (newProps & 1) | 2\n : newProps & 1;\n push(suspenseStackCursor, newProps, current$$1);\n current$$1 = instance;\n break a;\n }\n break;\n case 20:\n break;\n case 21:\n break;\n default:\n throw Error(\n \"Unknown unit of work tag (\" +\n current$$1.tag +\n \"). This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n current$$1 = null;\n }\n instance = workInProgress;\n if (1 === renderExpirationTime || 1 !== instance.childExpirationTime) {\n newProps = 0;\n for (\n rootContainerInstance = instance.child;\n null !== rootContainerInstance;\n\n )\n (renderExpirationTime$jscomp$0 =\n rootContainerInstance.expirationTime),\n (type = rootContainerInstance.childExpirationTime),\n renderExpirationTime$jscomp$0 > newProps &&\n (newProps = renderExpirationTime$jscomp$0),\n type > newProps && (newProps = type),\n (rootContainerInstance = rootContainerInstance.sibling);\n instance.childExpirationTime = newProps;\n }\n if (null !== current$$1) return current$$1;\n null !== unitOfWork &&\n 0 === (unitOfWork.effectTag & 2048) &&\n (null === unitOfWork.firstEffect &&\n (unitOfWork.firstEffect = workInProgress.firstEffect),\n null !== workInProgress.lastEffect &&\n (null !== unitOfWork.lastEffect &&\n (unitOfWork.lastEffect.nextEffect = workInProgress.firstEffect),\n (unitOfWork.lastEffect = workInProgress.lastEffect)),\n 1 < workInProgress.effectTag &&\n (null !== unitOfWork.lastEffect\n ? (unitOfWork.lastEffect.nextEffect = workInProgress)\n : (unitOfWork.firstEffect = workInProgress),\n (unitOfWork.lastEffect = workInProgress)));\n } else {\n current$$1 = unwindWork(workInProgress, renderExpirationTime);\n if (null !== current$$1)\n return (current$$1.effectTag &= 2047), current$$1;\n null !== unitOfWork &&\n ((unitOfWork.firstEffect = unitOfWork.lastEffect = null),\n (unitOfWork.effectTag |= 2048));\n }\n current$$1 = workInProgress.sibling;\n if (null !== current$$1) return current$$1;\n workInProgress = unitOfWork;\n } while (null !== workInProgress);\n workInProgressRootExitStatus === RootIncomplete &&\n (workInProgressRootExitStatus = RootCompleted);\n return null;\n}\nfunction getRemainingExpirationTime(fiber) {\n var updateExpirationTime = fiber.expirationTime;\n fiber = fiber.childExpirationTime;\n return updateExpirationTime > fiber ? updateExpirationTime : fiber;\n}\nfunction commitRoot(root) {\n var renderPriorityLevel = getCurrentPriorityLevel();\n runWithPriority$1(99, commitRootImpl.bind(null, root, renderPriorityLevel));\n return null;\n}\nfunction commitRootImpl(root$jscomp$1, renderPriorityLevel$jscomp$1) {\n flushPassiveEffects();\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Should not already be working.\");\n var finishedWork = root$jscomp$1.finishedWork,\n expirationTime = root$jscomp$1.finishedExpirationTime;\n if (null === finishedWork) return null;\n root$jscomp$1.finishedWork = null;\n root$jscomp$1.finishedExpirationTime = 0;\n if (finishedWork === root$jscomp$1.current)\n throw Error(\n \"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\"\n );\n root$jscomp$1.callbackNode = null;\n root$jscomp$1.callbackExpirationTime = 0;\n root$jscomp$1.callbackPriority = 90;\n root$jscomp$1.nextKnownPendingLevel = 0;\n var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(\n finishedWork\n );\n root$jscomp$1.firstPendingTime = remainingExpirationTimeBeforeCommit;\n expirationTime <= root$jscomp$1.lastSuspendedTime\n ? (root$jscomp$1.firstSuspendedTime = root$jscomp$1.lastSuspendedTime = root$jscomp$1.nextKnownPendingLevel = 0)\n : expirationTime <= root$jscomp$1.firstSuspendedTime &&\n (root$jscomp$1.firstSuspendedTime = expirationTime - 1);\n expirationTime <= root$jscomp$1.lastPingedTime &&\n (root$jscomp$1.lastPingedTime = 0);\n expirationTime <= root$jscomp$1.lastExpiredTime &&\n (root$jscomp$1.lastExpiredTime = 0);\n root$jscomp$1 === workInProgressRoot &&\n ((workInProgress = workInProgressRoot = null), (renderExpirationTime = 0));\n 1 < finishedWork.effectTag\n ? null !== finishedWork.lastEffect\n ? ((finishedWork.lastEffect.nextEffect = finishedWork),\n (remainingExpirationTimeBeforeCommit = finishedWork.firstEffect))\n : (remainingExpirationTimeBeforeCommit = finishedWork)\n : (remainingExpirationTimeBeforeCommit = finishedWork.firstEffect);\n if (null !== remainingExpirationTimeBeforeCommit) {\n var prevExecutionContext = executionContext;\n executionContext |= CommitContext;\n ReactCurrentOwner$2.current = null;\n nextEffect = remainingExpirationTimeBeforeCommit;\n do\n try {\n commitBeforeMutationEffects();\n } catch (error) {\n if (null === nextEffect) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(nextEffect, error);\n nextEffect = nextEffect.nextEffect;\n }\n while (null !== nextEffect);\n nextEffect = remainingExpirationTimeBeforeCommit;\n do\n try {\n for (\n var root = root$jscomp$1,\n renderPriorityLevel = renderPriorityLevel$jscomp$1;\n null !== nextEffect;\n\n ) {\n var effectTag = nextEffect.effectTag;\n if (effectTag & 128) {\n var current$$1 = nextEffect.alternate;\n if (null !== current$$1) {\n var currentRef = current$$1.ref;\n null !== currentRef &&\n (\"function\" === typeof currentRef\n ? currentRef(null)\n : (currentRef.current = null));\n }\n }\n switch (effectTag & 1038) {\n case 2:\n nextEffect.effectTag &= -3;\n break;\n case 6:\n nextEffect.effectTag &= -3;\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 1024:\n nextEffect.effectTag &= -1025;\n break;\n case 1028:\n nextEffect.effectTag &= -1025;\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 4:\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 8:\n var current$$1$jscomp$0 = nextEffect;\n a: for (\n var finishedRoot = root,\n root$jscomp$0 = current$$1$jscomp$0,\n renderPriorityLevel$jscomp$0 = renderPriorityLevel,\n node = root$jscomp$0;\n ;\n\n )\n if (\n (commitUnmount(\n finishedRoot,\n node,\n renderPriorityLevel$jscomp$0\n ),\n null !== node.child)\n )\n (node.child.return = node), (node = node.child);\n else {\n if (node === root$jscomp$0) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === root$jscomp$0)\n break a;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n detachFiber(current$$1$jscomp$0);\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (error) {\n if (null === nextEffect) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(nextEffect, error);\n nextEffect = nextEffect.nextEffect;\n }\n while (null !== nextEffect);\n root$jscomp$1.current = finishedWork;\n nextEffect = remainingExpirationTimeBeforeCommit;\n do\n try {\n for (effectTag = expirationTime; null !== nextEffect; ) {\n var effectTag$jscomp$0 = nextEffect.effectTag;\n if (effectTag$jscomp$0 & 36) {\n var current$$1$jscomp$1 = nextEffect.alternate;\n current$$1 = nextEffect;\n currentRef = effectTag;\n switch (current$$1.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectList(16, 32, current$$1);\n break;\n case 1:\n var instance = current$$1.stateNode;\n if (current$$1.effectTag & 4)\n if (null === current$$1$jscomp$1)\n instance.componentDidMount();\n else {\n var prevProps =\n current$$1.elementType === current$$1.type\n ? current$$1$jscomp$1.memoizedProps\n : resolveDefaultProps(\n current$$1.type,\n current$$1$jscomp$1.memoizedProps\n );\n instance.componentDidUpdate(\n prevProps,\n current$$1$jscomp$1.memoizedState,\n instance.__reactInternalSnapshotBeforeUpdate\n );\n }\n var updateQueue = current$$1.updateQueue;\n null !== updateQueue &&\n commitUpdateQueue(\n current$$1,\n updateQueue,\n instance,\n currentRef\n );\n break;\n case 3:\n var _updateQueue = current$$1.updateQueue;\n if (null !== _updateQueue) {\n root = null;\n if (null !== current$$1.child)\n switch (current$$1.child.tag) {\n case 5:\n root = current$$1.child.stateNode.canonical;\n break;\n case 1:\n root = current$$1.child.stateNode;\n }\n commitUpdateQueue(current$$1, _updateQueue, root, currentRef);\n }\n break;\n case 5:\n if (null === current$$1$jscomp$1 && current$$1.effectTag & 4)\n throw Error(\n \"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue.\"\n );\n break;\n case 6:\n break;\n case 4:\n break;\n case 12:\n break;\n case 13:\n break;\n case 19:\n case 17:\n case 20:\n case 21:\n break;\n default:\n throw Error(\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n }\n if (effectTag$jscomp$0 & 128) {\n current$$1 = void 0;\n var ref = nextEffect.ref;\n if (null !== ref) {\n var instance$jscomp$0 = nextEffect.stateNode;\n switch (nextEffect.tag) {\n case 5:\n current$$1 = instance$jscomp$0.canonical;\n break;\n default:\n current$$1 = instance$jscomp$0;\n }\n \"function\" === typeof ref\n ? ref(current$$1)\n : (ref.current = current$$1);\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (error) {\n if (null === nextEffect) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(nextEffect, error);\n nextEffect = nextEffect.nextEffect;\n }\n while (null !== nextEffect);\n nextEffect = null;\n requestPaint();\n executionContext = prevExecutionContext;\n } else root$jscomp$1.current = finishedWork;\n if (rootDoesHavePassiveEffects)\n (rootDoesHavePassiveEffects = !1),\n (rootWithPendingPassiveEffects = root$jscomp$1),\n (pendingPassiveEffectsRenderPriority = renderPriorityLevel$jscomp$1);\n else\n for (\n nextEffect = remainingExpirationTimeBeforeCommit;\n null !== nextEffect;\n\n )\n (renderPriorityLevel$jscomp$1 = nextEffect.nextEffect),\n (nextEffect.nextEffect = null),\n (nextEffect = renderPriorityLevel$jscomp$1);\n renderPriorityLevel$jscomp$1 = root$jscomp$1.firstPendingTime;\n 0 === renderPriorityLevel$jscomp$1 &&\n (legacyErrorBoundariesThatAlreadyFailed = null);\n 1073741823 === renderPriorityLevel$jscomp$1\n ? root$jscomp$1 === rootWithNestedUpdates\n ? nestedUpdateCount++\n : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root$jscomp$1))\n : (nestedUpdateCount = 0);\n \"function\" === typeof onCommitFiberRoot &&\n onCommitFiberRoot(finishedWork.stateNode, expirationTime);\n ensureRootIsScheduled(root$jscomp$1);\n if (hasUncaughtError)\n throw ((hasUncaughtError = !1),\n (root$jscomp$1 = firstUncaughtError),\n (firstUncaughtError = null),\n root$jscomp$1);\n if ((executionContext & LegacyUnbatchedContext) !== NoContext) return null;\n flushSyncCallbackQueue();\n return null;\n}\nfunction commitBeforeMutationEffects() {\n for (; null !== nextEffect; ) {\n var effectTag = nextEffect.effectTag;\n 0 !== (effectTag & 256) &&\n commitBeforeMutationLifeCycles(nextEffect.alternate, nextEffect);\n 0 === (effectTag & 512) ||\n rootDoesHavePassiveEffects ||\n ((rootDoesHavePassiveEffects = !0),\n scheduleCallback(97, function() {\n flushPassiveEffects();\n return null;\n }));\n nextEffect = nextEffect.nextEffect;\n }\n}\nfunction flushPassiveEffects() {\n if (90 !== pendingPassiveEffectsRenderPriority) {\n var priorityLevel =\n 97 < pendingPassiveEffectsRenderPriority\n ? 97\n : pendingPassiveEffectsRenderPriority;\n pendingPassiveEffectsRenderPriority = 90;\n return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);\n }\n}\nfunction flushPassiveEffectsImpl() {\n if (null === rootWithPendingPassiveEffects) return !1;\n var root = rootWithPendingPassiveEffects;\n rootWithPendingPassiveEffects = null;\n if ((executionContext & (RenderContext | CommitContext)) !== NoContext)\n throw Error(\"Cannot flush passive effects while already rendering.\");\n var prevExecutionContext = executionContext;\n executionContext |= CommitContext;\n for (root = root.current.firstEffect; null !== root; ) {\n try {\n var finishedWork = root;\n if (0 !== (finishedWork.effectTag & 512))\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectList(128, 0, finishedWork),\n commitHookEffectList(0, 64, finishedWork);\n }\n } catch (error) {\n if (null === root) throw Error(\"Should be working on an effect.\");\n captureCommitPhaseError(root, error);\n }\n finishedWork = root.nextEffect;\n root.nextEffect = null;\n root = finishedWork;\n }\n executionContext = prevExecutionContext;\n flushSyncCallbackQueue();\n return !0;\n}\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n sourceFiber = createCapturedValue(error, sourceFiber);\n sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1073741823);\n enqueueUpdate(rootFiber, sourceFiber);\n rootFiber = markUpdateTimeFromFiberToRoot(rootFiber, 1073741823);\n null !== rootFiber && ensureRootIsScheduled(rootFiber);\n}\nfunction captureCommitPhaseError(sourceFiber, error) {\n if (3 === sourceFiber.tag)\n captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);\n else\n for (var fiber = sourceFiber.return; null !== fiber; ) {\n if (3 === fiber.tag) {\n captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);\n break;\n } else if (1 === fiber.tag) {\n var instance = fiber.stateNode;\n if (\n \"function\" === typeof fiber.type.getDerivedStateFromError ||\n (\"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n ) {\n sourceFiber = createCapturedValue(error, sourceFiber);\n sourceFiber = createClassErrorUpdate(fiber, sourceFiber, 1073741823);\n enqueueUpdate(fiber, sourceFiber);\n fiber = markUpdateTimeFromFiberToRoot(fiber, 1073741823);\n null !== fiber && ensureRootIsScheduled(fiber);\n break;\n }\n }\n fiber = fiber.return;\n }\n}\nfunction pingSuspendedRoot(root, thenable, suspendedTime) {\n var pingCache = root.pingCache;\n null !== pingCache && pingCache.delete(thenable);\n workInProgressRoot === root && renderExpirationTime === suspendedTime\n ? workInProgressRootExitStatus === RootSuspendedWithDelay ||\n (workInProgressRootExitStatus === RootSuspended &&\n 1073741823 === workInProgressRootLatestProcessedExpirationTime &&\n now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS)\n ? prepareFreshStack(root, renderExpirationTime)\n : (workInProgressRootHasPendingPing = !0)\n : isRootSuspendedAtTime(root, suspendedTime) &&\n ((thenable = root.lastPingedTime),\n (0 !== thenable && thenable < suspendedTime) ||\n ((root.lastPingedTime = suspendedTime),\n root.finishedExpirationTime === suspendedTime &&\n ((root.finishedExpirationTime = 0), (root.finishedWork = null)),\n ensureRootIsScheduled(root)));\n}\nfunction resolveRetryThenable(boundaryFiber, thenable) {\n var retryCache = boundaryFiber.stateNode;\n null !== retryCache && retryCache.delete(thenable);\n thenable = 0;\n 0 === thenable &&\n ((thenable = requestCurrentTimeForUpdate()),\n (thenable = computeExpirationForFiber(thenable, boundaryFiber, null)));\n boundaryFiber = markUpdateTimeFromFiberToRoot(boundaryFiber, thenable);\n null !== boundaryFiber && ensureRootIsScheduled(boundaryFiber);\n}\nvar beginWork$$1;\nbeginWork$$1 = function(current$$1, workInProgress, renderExpirationTime) {\n var updateExpirationTime = workInProgress.expirationTime;\n if (null !== current$$1)\n if (\n current$$1.memoizedProps !== workInProgress.pendingProps ||\n didPerformWorkStackCursor.current\n )\n didReceiveUpdate = !0;\n else {\n if (updateExpirationTime < renderExpirationTime) {\n didReceiveUpdate = !1;\n switch (workInProgress.tag) {\n case 3:\n pushHostRootContext(workInProgress);\n break;\n case 5:\n pushHostContext(workInProgress);\n break;\n case 1:\n isContextProvider(workInProgress.type) &&\n pushContextProvider(workInProgress);\n break;\n case 4:\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n break;\n case 10:\n pushProvider(workInProgress, workInProgress.memoizedProps.value);\n break;\n case 13:\n if (null !== workInProgress.memoizedState) {\n updateExpirationTime = workInProgress.child.childExpirationTime;\n if (\n 0 !== updateExpirationTime &&\n updateExpirationTime >= renderExpirationTime\n )\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n push(\n suspenseStackCursor,\n suspenseStackCursor.current & 1,\n workInProgress\n );\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n return null !== workInProgress ? workInProgress.sibling : null;\n }\n push(\n suspenseStackCursor,\n suspenseStackCursor.current & 1,\n workInProgress\n );\n break;\n case 19:\n updateExpirationTime =\n workInProgress.childExpirationTime >= renderExpirationTime;\n if (0 !== (current$$1.effectTag & 64)) {\n if (updateExpirationTime)\n return updateSuspenseListComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress.effectTag |= 64;\n }\n var renderState = workInProgress.memoizedState;\n null !== renderState &&\n ((renderState.rendering = null), (renderState.tail = null));\n push(\n suspenseStackCursor,\n suspenseStackCursor.current,\n workInProgress\n );\n if (!updateExpirationTime) return null;\n }\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n }\n didReceiveUpdate = !1;\n }\n else didReceiveUpdate = !1;\n workInProgress.expirationTime = 0;\n switch (workInProgress.tag) {\n case 2:\n updateExpirationTime = workInProgress.type;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n current$$1 = workInProgress.pendingProps;\n renderState = getMaskedContext(\n workInProgress,\n contextStackCursor.current\n );\n prepareToReadContext(workInProgress, renderExpirationTime);\n renderState = renderWithHooks(\n null,\n workInProgress,\n updateExpirationTime,\n current$$1,\n renderState,\n renderExpirationTime\n );\n workInProgress.effectTag |= 1;\n if (\n \"object\" === typeof renderState &&\n null !== renderState &&\n \"function\" === typeof renderState.render &&\n void 0 === renderState.$$typeof\n ) {\n workInProgress.tag = 1;\n resetHooks();\n if (isContextProvider(updateExpirationTime)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n workInProgress.memoizedState =\n null !== renderState.state && void 0 !== renderState.state\n ? renderState.state\n : null;\n var getDerivedStateFromProps =\n updateExpirationTime.getDerivedStateFromProps;\n \"function\" === typeof getDerivedStateFromProps &&\n applyDerivedStateFromProps(\n workInProgress,\n updateExpirationTime,\n getDerivedStateFromProps,\n current$$1\n );\n renderState.updater = classComponentUpdater;\n workInProgress.stateNode = renderState;\n renderState._reactInternalFiber = workInProgress;\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n current$$1,\n renderExpirationTime\n );\n workInProgress = finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n hasContext,\n renderExpirationTime\n );\n } else\n (workInProgress.tag = 0),\n reconcileChildren(\n null,\n workInProgress,\n renderState,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child);\n return workInProgress;\n case 16:\n renderState = workInProgress.elementType;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n current$$1 = workInProgress.pendingProps;\n initializeLazyComponentType(renderState);\n if (1 !== renderState._status) throw renderState._result;\n renderState = renderState._result;\n workInProgress.type = renderState;\n hasContext = workInProgress.tag = resolveLazyComponentTag(renderState);\n current$$1 = resolveDefaultProps(renderState, current$$1);\n switch (hasContext) {\n case 0:\n workInProgress = updateFunctionComponent(\n null,\n workInProgress,\n renderState,\n current$$1,\n renderExpirationTime\n );\n break;\n case 1:\n workInProgress = updateClassComponent(\n null,\n workInProgress,\n renderState,\n current$$1,\n renderExpirationTime\n );\n break;\n case 11:\n workInProgress = updateForwardRef(\n null,\n workInProgress,\n renderState,\n current$$1,\n renderExpirationTime\n );\n break;\n case 14:\n workInProgress = updateMemoComponent(\n null,\n workInProgress,\n renderState,\n resolveDefaultProps(renderState.type, current$$1),\n updateExpirationTime,\n renderExpirationTime\n );\n break;\n default:\n throw Error(\n \"Element type is invalid. Received a promise that resolves to: \" +\n renderState +\n \". Lazy element type must resolve to a class or function.\"\n );\n }\n return workInProgress;\n case 0:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n updateFunctionComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n )\n );\n case 1:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n updateClassComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n )\n );\n case 3:\n pushHostRootContext(workInProgress);\n updateExpirationTime = workInProgress.updateQueue;\n if (null === updateExpirationTime)\n throw Error(\n \"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.\"\n );\n renderState = workInProgress.memoizedState;\n renderState = null !== renderState ? renderState.element : null;\n processUpdateQueue(\n workInProgress,\n updateExpirationTime,\n workInProgress.pendingProps,\n null,\n renderExpirationTime\n );\n updateExpirationTime = workInProgress.memoizedState.element;\n updateExpirationTime === renderState\n ? (workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n ))\n : (reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child));\n return workInProgress;\n case 5:\n return (\n pushHostContext(workInProgress),\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n (updateExpirationTime = workInProgress.pendingProps.children),\n markRef(current$$1, workInProgress),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child),\n workInProgress\n );\n case 6:\n return (\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n null\n );\n case 13:\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (updateExpirationTime = workInProgress.pendingProps),\n null === current$$1\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n updateExpirationTime,\n renderExpirationTime\n ))\n : reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 11:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n updateForwardRef(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n )\n );\n case 7:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 10:\n a: {\n updateExpirationTime = workInProgress.type._context;\n renderState = workInProgress.pendingProps;\n getDerivedStateFromProps = workInProgress.memoizedProps;\n hasContext = renderState.value;\n pushProvider(workInProgress, hasContext);\n if (null !== getDerivedStateFromProps) {\n var oldValue = getDerivedStateFromProps.value;\n hasContext = is$1(oldValue, hasContext)\n ? 0\n : (\"function\" === typeof updateExpirationTime._calculateChangedBits\n ? updateExpirationTime._calculateChangedBits(\n oldValue,\n hasContext\n )\n : 1073741823) | 0;\n if (0 === hasContext) {\n if (\n getDerivedStateFromProps.children === renderState.children &&\n !didPerformWorkStackCursor.current\n ) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n break a;\n }\n } else\n for (\n oldValue = workInProgress.child,\n null !== oldValue && (oldValue.return = workInProgress);\n null !== oldValue;\n\n ) {\n var list = oldValue.dependencies;\n if (null !== list) {\n getDerivedStateFromProps = oldValue.child;\n for (\n var dependency = list.firstContext;\n null !== dependency;\n\n ) {\n if (\n dependency.context === updateExpirationTime &&\n 0 !== (dependency.observedBits & hasContext)\n ) {\n 1 === oldValue.tag &&\n ((dependency = createUpdate(renderExpirationTime, null)),\n (dependency.tag = 2),\n enqueueUpdate(oldValue, dependency));\n oldValue.expirationTime < renderExpirationTime &&\n (oldValue.expirationTime = renderExpirationTime);\n dependency = oldValue.alternate;\n null !== dependency &&\n dependency.expirationTime < renderExpirationTime &&\n (dependency.expirationTime = renderExpirationTime);\n scheduleWorkOnParentPath(\n oldValue.return,\n renderExpirationTime\n );\n list.expirationTime < renderExpirationTime &&\n (list.expirationTime = renderExpirationTime);\n break;\n }\n dependency = dependency.next;\n }\n } else\n getDerivedStateFromProps =\n 10 === oldValue.tag\n ? oldValue.type === workInProgress.type\n ? null\n : oldValue.child\n : oldValue.child;\n if (null !== getDerivedStateFromProps)\n getDerivedStateFromProps.return = oldValue;\n else\n for (\n getDerivedStateFromProps = oldValue;\n null !== getDerivedStateFromProps;\n\n ) {\n if (getDerivedStateFromProps === workInProgress) {\n getDerivedStateFromProps = null;\n break;\n }\n oldValue = getDerivedStateFromProps.sibling;\n if (null !== oldValue) {\n oldValue.return = getDerivedStateFromProps.return;\n getDerivedStateFromProps = oldValue;\n break;\n }\n getDerivedStateFromProps = getDerivedStateFromProps.return;\n }\n oldValue = getDerivedStateFromProps;\n }\n }\n reconcileChildren(\n current$$1,\n workInProgress,\n renderState.children,\n renderExpirationTime\n );\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 9:\n return (\n (renderState = workInProgress.type),\n (hasContext = workInProgress.pendingProps),\n (updateExpirationTime = hasContext.children),\n prepareToReadContext(workInProgress, renderExpirationTime),\n (renderState = readContext(\n renderState,\n hasContext.unstable_observedBits\n )),\n (updateExpirationTime = updateExpirationTime(renderState)),\n (workInProgress.effectTag |= 1),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 14:\n return (\n (renderState = workInProgress.type),\n (hasContext = resolveDefaultProps(\n renderState,\n workInProgress.pendingProps\n )),\n (hasContext = resolveDefaultProps(renderState.type, hasContext)),\n updateMemoComponent(\n current$$1,\n workInProgress,\n renderState,\n hasContext,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n case 15:\n return updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n updateExpirationTime,\n renderExpirationTime\n );\n case 17:\n return (\n (updateExpirationTime = workInProgress.type),\n (renderState = workInProgress.pendingProps),\n (renderState =\n workInProgress.elementType === updateExpirationTime\n ? renderState\n : resolveDefaultProps(updateExpirationTime, renderState)),\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n (workInProgress.tag = 1),\n isContextProvider(updateExpirationTime)\n ? ((current$$1 = !0), pushContextProvider(workInProgress))\n : (current$$1 = !1),\n prepareToReadContext(workInProgress, renderExpirationTime),\n constructClassInstance(\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n renderState,\n renderExpirationTime\n ),\n finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n current$$1,\n renderExpirationTime\n )\n );\n case 19:\n return updateSuspenseListComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n }\n throw Error(\n \"Unknown unit of work tag (\" +\n workInProgress.tag +\n \"). This error is likely caused by a bug in React. Please file an issue.\"\n );\n};\nvar onCommitFiberRoot = null,\n onCommitFiberUnmount = null;\nfunction injectInternals(internals) {\n if (\"undefined\" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;\n var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (hook.isDisabled || !hook.supportsFiber) return !0;\n try {\n var rendererID = hook.inject(internals);\n onCommitFiberRoot = function(root) {\n try {\n hook.onCommitFiberRoot(\n rendererID,\n root,\n void 0,\n 64 === (root.current.effectTag & 64)\n );\n } catch (err) {}\n };\n onCommitFiberUnmount = function(fiber) {\n try {\n hook.onCommitFiberUnmount(rendererID, fiber);\n } catch (err) {}\n };\n } catch (err) {}\n return !0;\n}\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;\n this.index = 0;\n this.ref = null;\n this.pendingProps = pendingProps;\n this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;\n this.mode = mode;\n this.effectTag = 0;\n this.lastEffect = this.firstEffect = this.nextEffect = null;\n this.childExpirationTime = this.expirationTime = 0;\n this.alternate = null;\n}\nfunction createFiber(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction resolveLazyComponentTag(Component) {\n if (\"function\" === typeof Component)\n return shouldConstruct(Component) ? 1 : 0;\n if (void 0 !== Component && null !== Component) {\n Component = Component.$$typeof;\n if (Component === REACT_FORWARD_REF_TYPE) return 11;\n if (Component === REACT_MEMO_TYPE) return 14;\n }\n return 2;\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiber(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.effectTag = 0),\n (workInProgress.nextEffect = null),\n (workInProgress.firstEffect = null),\n (workInProgress.lastEffect = null));\n workInProgress.childExpirationTime = current.childExpirationTime;\n workInProgress.expirationTime = current.expirationTime;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n pendingProps = current.dependencies;\n workInProgress.dependencies =\n null === pendingProps\n ? null\n : {\n expirationTime: pendingProps.expirationTime,\n firstContext: pendingProps.firstContext,\n responders: pendingProps.responders\n };\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n expirationTime\n) {\n var fiberTag = 2;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type) fiberTag = 5;\n else\n a: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(\n pendingProps.children,\n mode,\n expirationTime,\n key\n );\n case REACT_CONCURRENT_MODE_TYPE:\n fiberTag = 8;\n mode |= 7;\n break;\n case REACT_STRICT_MODE_TYPE:\n fiberTag = 8;\n mode |= 1;\n break;\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiber(12, pendingProps, key, mode | 8)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.type = REACT_PROFILER_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiber(13, pendingProps, key, mode)),\n (type.type = REACT_SUSPENSE_TYPE),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n case REACT_SUSPENSE_LIST_TYPE:\n return (\n (type = createFiber(19, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONTEXT_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n throw Error(\n \"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \" +\n (null == type ? type : typeof type) +\n \".\"\n );\n }\n key = createFiber(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.expirationTime = expirationTime;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, expirationTime, key) {\n elements = createFiber(7, elements, key, mode);\n elements.expirationTime = expirationTime;\n return elements;\n}\nfunction createFiberFromText(content, mode, expirationTime) {\n content = createFiber(6, content, null, mode);\n content.expirationTime = expirationTime;\n return content;\n}\nfunction createFiberFromPortal(portal, mode, expirationTime) {\n mode = createFiber(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.expirationTime = expirationTime;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nfunction FiberRootNode(containerInfo, tag, hydrate) {\n this.tag = tag;\n this.current = null;\n this.containerInfo = containerInfo;\n this.pingCache = this.pendingChildren = null;\n this.finishedExpirationTime = 0;\n this.finishedWork = null;\n this.timeoutHandle = -1;\n this.pendingContext = this.context = null;\n this.hydrate = hydrate;\n this.callbackNode = null;\n this.callbackPriority = 90;\n this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0;\n}\nfunction isRootSuspendedAtTime(root, expirationTime) {\n var firstSuspendedTime = root.firstSuspendedTime;\n root = root.lastSuspendedTime;\n return (\n 0 !== firstSuspendedTime &&\n firstSuspendedTime >= expirationTime &&\n root <= expirationTime\n );\n}\nfunction markRootSuspendedAtTime(root, expirationTime) {\n var firstSuspendedTime = root.firstSuspendedTime,\n lastSuspendedTime = root.lastSuspendedTime;\n firstSuspendedTime < expirationTime &&\n (root.firstSuspendedTime = expirationTime);\n if (lastSuspendedTime > expirationTime || 0 === firstSuspendedTime)\n root.lastSuspendedTime = expirationTime;\n expirationTime <= root.lastPingedTime && (root.lastPingedTime = 0);\n expirationTime <= root.lastExpiredTime && (root.lastExpiredTime = 0);\n}\nfunction markRootUpdatedAtTime(root, expirationTime) {\n expirationTime > root.firstPendingTime &&\n (root.firstPendingTime = expirationTime);\n var firstSuspendedTime = root.firstSuspendedTime;\n 0 !== firstSuspendedTime &&\n (expirationTime >= firstSuspendedTime\n ? (root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = 0)\n : expirationTime >= root.lastSuspendedTime &&\n (root.lastSuspendedTime = expirationTime + 1),\n expirationTime > root.nextKnownPendingLevel &&\n (root.nextKnownPendingLevel = expirationTime));\n}\nfunction markRootExpiredAtTime(root, expirationTime) {\n var lastExpiredTime = root.lastExpiredTime;\n if (0 === lastExpiredTime || lastExpiredTime > expirationTime)\n root.lastExpiredTime = expirationTime;\n}\nfunction findHostInstance(component) {\n var fiber = component._reactInternalFiber;\n if (void 0 === fiber) {\n if (\"function\" === typeof component.render)\n throw Error(\"Unable to find node on an unmounted component.\");\n throw Error(\n \"Argument appears to not be a ReactComponent. Keys: \" +\n Object.keys(component)\n );\n }\n component = findCurrentHostFiber(fiber);\n return null === component ? null : component.stateNode;\n}\nfunction updateContainer(element, container, parentComponent, callback) {\n var current$$1 = container.current,\n currentTime = requestCurrentTimeForUpdate(),\n suspenseConfig = ReactCurrentBatchConfig.suspense;\n currentTime = computeExpirationForFiber(\n currentTime,\n current$$1,\n suspenseConfig\n );\n a: if (parentComponent) {\n parentComponent = parentComponent._reactInternalFiber;\n b: {\n if (\n getNearestMountedFiber(parentComponent) !== parentComponent ||\n 1 !== parentComponent.tag\n )\n throw Error(\n \"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.\"\n );\n var parentContext = parentComponent;\n do {\n switch (parentContext.tag) {\n case 3:\n parentContext = parentContext.stateNode.context;\n break b;\n case 1:\n if (isContextProvider(parentContext.type)) {\n parentContext =\n parentContext.stateNode\n .__reactInternalMemoizedMergedChildContext;\n break b;\n }\n }\n parentContext = parentContext.return;\n } while (null !== parentContext);\n throw Error(\n \"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n if (1 === parentComponent.tag) {\n var Component = parentComponent.type;\n if (isContextProvider(Component)) {\n parentComponent = processChildContext(\n parentComponent,\n Component,\n parentContext\n );\n break a;\n }\n }\n parentComponent = parentContext;\n } else parentComponent = emptyContextObject;\n null === container.context\n ? (container.context = parentComponent)\n : (container.pendingContext = parentComponent);\n container = createUpdate(currentTime, suspenseConfig);\n container.payload = { element: element };\n callback = void 0 === callback ? null : callback;\n null !== callback && (container.callback = callback);\n enqueueUpdate(current$$1, container);\n scheduleUpdateOnFiber(current$$1, currentTime);\n return currentTime;\n}\nfunction createPortal(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar fabricDispatchCommand = nativeFabricUIManager.dispatchCommand;\nfunction findNodeHandle(componentOrHandle) {\n if (null == componentOrHandle) return null;\n if (\"number\" === typeof componentOrHandle) return componentOrHandle;\n if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;\n if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)\n return componentOrHandle.canonical._nativeTag;\n componentOrHandle = findHostInstance(componentOrHandle);\n return null == componentOrHandle\n ? componentOrHandle\n : componentOrHandle.canonical\n ? componentOrHandle.canonical._nativeTag\n : componentOrHandle._nativeTag;\n}\nbatchedUpdatesImpl = function(fn, a) {\n var prevExecutionContext = executionContext;\n executionContext |= 1;\n try {\n return fn(a);\n } finally {\n (executionContext = prevExecutionContext),\n executionContext === NoContext && flushSyncCallbackQueue();\n }\n};\nflushDiscreteUpdatesImpl = function() {\n (executionContext & (1 | RenderContext | CommitContext)) === NoContext &&\n (flushPendingDiscreteUpdates(), flushPassiveEffects());\n};\nvar roots = new Map(),\n ReactFabric = {\n NativeComponent: (function(findNodeHandle, findHostInstance) {\n return (function(_React$Component) {\n function ReactNativeComponent() {\n return _React$Component.apply(this, arguments) || this;\n }\n _inheritsLoose(ReactNativeComponent, _React$Component);\n var _proto = ReactNativeComponent.prototype;\n _proto.blur = function() {\n ReactNativePrivateInterface.TextInputState.blurTextInput(\n findNodeHandle(this)\n );\n };\n _proto.focus = function() {\n ReactNativePrivateInterface.TextInputState.focusTextInput(\n findNodeHandle(this)\n );\n };\n _proto.measure = function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measure(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n };\n _proto.measureInWindow = function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measureInWindow(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n };\n _proto.measureLayout = function(\n relativeToNativeNode,\n onSuccess,\n onFail\n ) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n if (\"number\" === typeof relativeToNativeNode)\n var relativeNode = relativeToNativeNode;\n else\n relativeToNativeNode._nativeTag &&\n (relativeNode = relativeToNativeNode._nativeTag);\n null != relativeNode &&\n ReactNativePrivateInterface.UIManager.measureLayout(\n findNodeHandle(this),\n relativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n }\n };\n _proto.setNativeProps = function(nativeProps) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n var nativeTag =\n maybeInstance._nativeTag || maybeInstance.canonical._nativeTag;\n maybeInstance =\n maybeInstance.viewConfig || maybeInstance.canonical.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n maybeInstance.validAttributes\n );\n null != nativeProps &&\n ReactNativePrivateInterface.UIManager.updateView(\n nativeTag,\n maybeInstance.uiViewClassName,\n nativeProps\n );\n }\n };\n return ReactNativeComponent;\n })(React.Component);\n })(findNodeHandle, findHostInstance),\n findHostInstance_DEPRECATED: function(componentOrHandle) {\n if (null == componentOrHandle) return null;\n if (componentOrHandle._nativeTag) return componentOrHandle;\n if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)\n return componentOrHandle.canonical;\n componentOrHandle = findHostInstance(componentOrHandle);\n return null == componentOrHandle\n ? componentOrHandle\n : componentOrHandle.canonical\n ? componentOrHandle.canonical\n : componentOrHandle;\n },\n findNodeHandle: findNodeHandle,\n dispatchCommand: function(handle, command, args) {\n null != handle._nativeTag &&\n null != handle._internalInstanceHandle &&\n fabricDispatchCommand(\n handle._internalInstanceHandle.stateNode.node,\n command,\n args\n );\n },\n render: function(element, containerTag, callback) {\n var root = roots.get(containerTag);\n if (!root) {\n root = new FiberRootNode(containerTag, 0, !1);\n var uninitializedFiber = createFiber(3, null, null, 0);\n root.current = uninitializedFiber;\n uninitializedFiber.stateNode = root;\n roots.set(containerTag, root);\n }\n updateContainer(element, root, null, callback);\n a: if (((element = root.current), element.child))\n switch (element.child.tag) {\n case 5:\n element = element.child.stateNode.canonical;\n break a;\n default:\n element = element.child.stateNode;\n }\n else element = null;\n return element;\n },\n unmountComponentAtNode: function(containerTag) {\n var root = roots.get(containerTag);\n root &&\n updateContainer(null, root, null, function() {\n roots.delete(containerTag);\n });\n },\n createPortal: function(children, containerTag) {\n return createPortal(\n children,\n containerTag,\n null,\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null\n );\n },\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n NativeMethodsMixin: (function(findNodeHandle, findHostInstance) {\n return {\n measure: function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measure(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n },\n measureInWindow: function(callback) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n null != maybeInstance &&\n (maybeInstance.canonical\n ? nativeFabricUIManager.measureInWindow(\n maybeInstance.node,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n )\n : ReactNativePrivateInterface.UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n ));\n },\n measureLayout: function(relativeToNativeNode, onSuccess, onFail) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n if (\"number\" === typeof relativeToNativeNode)\n var relativeNode = relativeToNativeNode;\n else\n relativeToNativeNode._nativeTag &&\n (relativeNode = relativeToNativeNode._nativeTag);\n null != relativeNode &&\n ReactNativePrivateInterface.UIManager.measureLayout(\n findNodeHandle(this),\n relativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n }\n },\n setNativeProps: function(nativeProps) {\n try {\n var maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance && !maybeInstance.canonical) {\n var nativeTag =\n maybeInstance._nativeTag || maybeInstance.canonical._nativeTag;\n maybeInstance =\n maybeInstance.viewConfig || maybeInstance.canonical.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n maybeInstance.validAttributes\n );\n null != nativeProps &&\n ReactNativePrivateInterface.UIManager.updateView(\n nativeTag,\n maybeInstance.uiViewClassName,\n nativeProps\n );\n }\n },\n focus: function() {\n ReactNativePrivateInterface.TextInputState.focusTextInput(\n findNodeHandle(this)\n );\n },\n blur: function() {\n ReactNativePrivateInterface.TextInputState.blurTextInput(\n findNodeHandle(this)\n );\n }\n };\n })(findNodeHandle, findHostInstance)\n }\n };\n(function(devToolsConfig) {\n var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n return injectInternals(\n Object.assign({}, devToolsConfig, {\n overrideHookState: null,\n overrideProps: null,\n setSuspenseHandler: null,\n scheduleUpdate: null,\n currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,\n findHostInstanceByFiber: function(fiber) {\n fiber = findCurrentHostFiber(fiber);\n return null === fiber ? null : fiber.stateNode;\n },\n findFiberByHostInstance: function(instance) {\n return findFiberByHostInstance\n ? findFiberByHostInstance(instance)\n : null;\n },\n findHostInstancesForRefresh: null,\n scheduleRefresh: null,\n scheduleRoot: null,\n setRefreshHandler: null,\n getCurrentFiber: null\n })\n );\n})({\n findFiberByHostInstance: getInstanceFromInstance,\n getInspectorDataForViewTag: function() {\n throw Error(\"getInspectorDataForViewTag() is not available in production\");\n },\n bundleType: 0,\n version: \"16.11.0\",\n rendererPackageName: \"react-native-renderer\"\n});\nvar ReactFabric$2 = { default: ReactFabric },\n ReactFabric$3 = (ReactFabric$2 && ReactFabric) || ReactFabric$2;\nmodule.exports = ReactFabric$3.default || ReactFabric$3;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('../vendor/emitter/EventEmitter');\nconst NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');\n\nconst invariant = require('invariant');\nconst logError = require('../Utilities/logError');\n\nimport NativeAppState from './NativeAppState';\n\n/**\n * `AppState` can tell you if the app is in the foreground or background,\n * and notify you when the state changes.\n *\n * See http://facebook.github.io/react-native/docs/appstate.html\n */\nclass AppState extends NativeEventEmitter {\n _eventHandlers: Object;\n _supportedEvents = ['change', 'memoryWarning', 'blur', 'focus'];\n currentState: ?string;\n isAvailable: boolean;\n\n constructor() {\n super(NativeAppState);\n\n this.isAvailable = true;\n this._eventHandlers = this._supportedEvents.reduce((handlers, key) => {\n handlers[key] = new Map();\n return handlers;\n }, {});\n\n this.currentState = NativeAppState.getConstants().initialAppState;\n\n let eventUpdated = false;\n\n // TODO: this is a terrible solution - in order to ensure `currentState`\n // prop is up to date, we have to register an observer that updates it\n // whenever the state changes, even if nobody cares. We should just\n // deprecate the `currentState` property and get rid of this.\n this.addListener('appStateDidChange', appStateData => {\n eventUpdated = true;\n this.currentState = appStateData.app_state;\n });\n\n // TODO: see above - this request just populates the value of `currentState`\n // when the module is first initialized. Would be better to get rid of the\n // prop and expose `getCurrentAppState` method directly.\n NativeAppState.getCurrentAppState(appStateData => {\n // It's possible that the state will have changed here & listeners need to be notified\n if (!eventUpdated && this.currentState !== appStateData.app_state) {\n this.currentState = appStateData.app_state;\n this.emit('appStateDidChange', appStateData);\n }\n }, logError);\n }\n\n // TODO: now that AppState is a subclass of NativeEventEmitter, we could\n // deprecate `addEventListener` and `removeEventListener` and just use\n // addListener` and `listener.remove()` directly. That will be a breaking\n // change though, as both the method and event names are different\n // (addListener events are currently required to be globally unique).\n /**\n * Add a handler to AppState changes by listening to the `change` event type\n * and providing the handler.\n *\n * See http://facebook.github.io/react-native/docs/appstate.html#addeventlistener\n */\n addEventListener(type: string, handler: Function) {\n invariant(\n this._supportedEvents.indexOf(type) !== -1,\n 'Trying to subscribe to unknown event: \"%s\"',\n type,\n );\n\n switch (type) {\n case 'change': {\n this._eventHandlers[type].set(\n handler,\n this.addListener('appStateDidChange', appStateData => {\n handler(appStateData.app_state);\n }),\n );\n break;\n }\n case 'memoryWarning': {\n this._eventHandlers[type].set(\n handler,\n this.addListener('memoryWarning', handler),\n );\n break;\n }\n\n case 'blur':\n case 'focus': {\n this._eventHandlers[type].set(\n handler,\n this.addListener('appStateFocusChange', hasFocus => {\n if (type === 'blur' && !hasFocus) {\n handler();\n }\n if (type === 'focus' && hasFocus) {\n handler();\n }\n }),\n );\n }\n }\n }\n\n /**\n * Remove a handler by passing the `change` event type and the handler.\n *\n * See http://facebook.github.io/react-native/docs/appstate.html#removeeventlistener\n */\n removeEventListener(type: string, handler: Function) {\n invariant(\n this._supportedEvents.indexOf(type) !== -1,\n 'Trying to remove listener for unknown event: \"%s\"',\n type,\n );\n if (!this._eventHandlers[type].has(handler)) {\n return;\n }\n this._eventHandlers[type].get(handler).remove();\n this._eventHandlers[type].delete(handler);\n }\n}\n\nfunction throwMissingNativeModule() {\n invariant(\n false,\n 'Cannot use AppState module when native RCTAppState is not included in the build.\\n' +\n 'Either include it, or check AppState.isAvailable before calling any methods.',\n );\n}\n\nclass MissingNativeAppStateShim extends EventEmitter {\n // AppState\n isAvailable: boolean = false;\n currentState: ?string = null;\n\n addEventListener(type: string, handler: Function) {\n throwMissingNativeModule();\n }\n\n removeEventListener(type: string, handler: Function) {\n throwMissingNativeModule();\n }\n\n // EventEmitter\n addListener() {\n throwMissingNativeModule();\n }\n\n removeAllListeners() {\n throwMissingNativeModule();\n }\n\n removeSubscription() {\n throwMissingNativeModule();\n }\n}\n\n// This module depends on the native `RCTAppState` module. If you don't include it,\n// `AppState.isAvailable` will return `false`, and any method calls will throw.\n// We reassign the class variable to keep the autodoc generator happy.\nconst AppStateInstance: AppState | MissingNativeAppStateShim = NativeAppState\n ? new AppState()\n : new MissingNativeAppStateShim();\n\nmodule.exports = AppStateInstance;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n initialAppState: string,\n |};\n +getCurrentAppState: (\n success: (appState: {|app_state: string|}) => void,\n error: (error: Object) => void,\n ) => void;\n\n // Events\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('AppState'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\n/**\n * Small utility that can be used as an error handler. You cannot just pass\n * `console.error` as a failure callback - it's not properly bound. If passes an\n * `Error` object, it will print the message and stack.\n */\nconst logError = function(...args: $ReadOnlyArray) {\n if (args.length === 1 && args[0] instanceof Error) {\n const err = args[0];\n console.error('Error: \"' + err.message + '\". Stack:\\n' + err.stack);\n } else {\n console.error.apply(console, args);\n }\n};\n\nmodule.exports = logError;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @noflow\n * @flow-weak\n * @jsdoc\n */\n\n'use strict';\n\nimport NativeAsyncStorage from './NativeAsyncStorage';\nimport invariant from 'invariant';\n\n// Use SQLite if available, otherwise file storage.\nconst RCTAsyncStorage = NativeAsyncStorage;\n\n/**\n * `AsyncStorage` is a simple, unencrypted, asynchronous, persistent, key-value\n * storage system that is global to the app. It should be used instead of\n * LocalStorage.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html\n */\nconst AsyncStorage = {\n _getRequests: ([]: Array),\n _getKeys: ([]: Array),\n _immediate: (null: ?number),\n\n /**\n * Fetches an item for a `key` and invokes a callback upon completion.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#getitem\n */\n getItem: function(\n key: string,\n callback?: ?(error: ?Error, result: ?string) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiGet([key], function(errors, result) {\n // Unpack result to get value from [[key,value]]\n const value = result && result[0] && result[0][1] ? result[0][1] : null;\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0], value);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(value);\n }\n });\n });\n },\n\n /**\n * Sets the value for a `key` and invokes a callback upon completion.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#setitem\n */\n setItem: function(\n key: string,\n value: string,\n callback?: ?(error: ?Error) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiSet([[key, value]], function(errors) {\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0]);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Removes an item for a `key` and invokes a callback upon completion.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#removeitem\n */\n removeItem: function(\n key: string,\n callback?: ?(error: ?Error) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiRemove([key], function(errors) {\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0]);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Merges an existing `key` value with an input value, assuming both values\n * are stringified JSON.\n *\n * **NOTE:** This is not supported by all native implementations.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#mergeitem\n */\n mergeItem: function(\n key: string,\n value: string,\n callback?: ?(error: ?Error) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiMerge([[key, value]], function(errors) {\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0]);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Erases *all* `AsyncStorage` for all clients, libraries, etc. You probably\n * don't want to call this; use `removeItem` or `multiRemove` to clear only\n * your app's keys.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#clear\n */\n clear: function(callback?: ?(error: ?Error) => void): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.clear(function(error) {\n callback && callback(convertError(error));\n if (error && convertError(error)) {\n reject(convertError(error));\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Gets *all* keys known to your app; for all callers, libraries, etc.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#getallkeys\n */\n getAllKeys: function(\n callback?: ?(error: ?Error, keys: ?Array) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.getAllKeys(function(error, keys) {\n callback && callback(convertError(error), keys);\n if (error) {\n reject(convertError(error));\n } else {\n resolve(keys);\n }\n });\n });\n },\n\n /**\n * The following batched functions are useful for executing a lot of\n * operations at once, allowing for native optimizations and provide the\n * convenience of a single callback after all operations are complete.\n *\n * These functions return arrays of errors, potentially one for every key.\n * For key-specific errors, the Error object will have a key property to\n * indicate which key caused the error.\n */\n\n /**\n * Flushes any pending requests using a single batch call to get the data.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#flushgetrequests\n * */\n flushGetRequests: function(): void {\n const getRequests = this._getRequests;\n const getKeys = this._getKeys;\n\n this._getRequests = [];\n this._getKeys = [];\n\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n RCTAsyncStorage.multiGet(getKeys, function(errors, result) {\n // Even though the runtime complexity of this is theoretically worse vs if we used a map,\n // it's much, much faster in practice for the data sets we deal with (we avoid\n // allocating result pair arrays). This was heavily benchmarked.\n //\n // Is there a way to avoid using the map but fix the bug in this breaking test?\n // https://github.com/facebook/react-native/commit/8dd8ad76579d7feef34c014d387bf02065692264\n const map = {};\n result &&\n result.forEach(([key, value]) => {\n map[key] = value;\n return value;\n });\n const reqLength = getRequests.length;\n for (let i = 0; i < reqLength; i++) {\n const request = getRequests[i];\n const requestKeys = request.keys;\n const requestResult = requestKeys.map(key => [key, map[key]]);\n request.callback && request.callback(null, requestResult);\n request.resolve && request.resolve(requestResult);\n }\n });\n },\n\n /**\n * This allows you to batch the fetching of items given an array of `key`\n * inputs. Your callback will be invoked with an array of corresponding\n * key-value pairs found.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiget\n */\n multiGet: function(\n keys: Array,\n callback?: ?(errors: ?Array, result: ?Array>) => void,\n ): Promise {\n if (!this._immediate) {\n this._immediate = setImmediate(() => {\n this._immediate = null;\n this.flushGetRequests();\n });\n }\n\n const getRequest = {\n keys: keys,\n callback: callback,\n // do we need this?\n keyIndex: this._getKeys.length,\n resolve: null,\n reject: null,\n };\n\n const promiseResult = new Promise((resolve, reject) => {\n getRequest.resolve = resolve;\n getRequest.reject = reject;\n });\n\n this._getRequests.push(getRequest);\n // avoid fetching duplicates\n keys.forEach(key => {\n if (this._getKeys.indexOf(key) === -1) {\n this._getKeys.push(key);\n }\n });\n\n return promiseResult;\n },\n\n /**\n * Use this as a batch operation for storing multiple key-value pairs. When\n * the operation completes you'll get a single callback with any errors.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiset\n */\n multiSet: function(\n keyValuePairs: Array>,\n callback?: ?(errors: ?Array) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiSet(keyValuePairs, function(errors) {\n const error = convertErrors(errors);\n callback && callback(error);\n if (error) {\n reject(error);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Call this to batch the deletion of all keys in the `keys` array.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiremove\n */\n multiRemove: function(\n keys: Array,\n callback?: ?(errors: ?Array) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiRemove(keys, function(errors) {\n const error = convertErrors(errors);\n callback && callback(error);\n if (error) {\n reject(error);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Batch operation to merge in existing and new values for a given set of\n * keys. This assumes that the values are stringified JSON.\n *\n * **NOTE**: This is not supported by all native implementations.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multimerge\n */\n multiMerge: function(\n keyValuePairs: Array>,\n callback?: ?(errors: ?Array) => void,\n ): Promise {\n invariant(RCTAsyncStorage, 'RCTAsyncStorage not available');\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiMerge(keyValuePairs, function(errors) {\n const error = convertErrors(errors);\n callback && callback(error);\n if (error) {\n reject(error);\n } else {\n resolve(null);\n }\n });\n });\n },\n};\n\n// Not all native implementations support merge.\nif (!RCTAsyncStorage.multiMerge) {\n delete AsyncStorage.mergeItem;\n delete AsyncStorage.multiMerge;\n}\n\nfunction convertErrors(errs) {\n if (!errs) {\n return null;\n }\n return (Array.isArray(errs) ? errs : [errs]).map(e => convertError(e));\n}\n\nfunction convertError(error) {\n if (!error) {\n return null;\n }\n const out = new Error(error.message);\n out.key = error.key; // flow doesn't like this :(\n return out;\n}\n\nmodule.exports = AsyncStorage;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +multiGet: (\n keys: Array,\n callback: (\n errors: ?Array<{|message: string|}>,\n kvPairs: ?Array>,\n ) => void,\n ) => void;\n +multiSet: (\n kvPairs: Array>,\n callback: (errors: ?Array<{|message: string|}>) => void,\n ) => void;\n +multiMerge: (\n kvPairs: Array>,\n callback: (errors: ?Array<{|message: string|}>) => void,\n ) => void;\n +multiRemove: (\n keys: Array,\n callback: (errors: ?Array<{|message: string|}>) => void,\n ) => void;\n +clear: (callback: (error: {|message: string|}) => void) => void;\n +getAllKeys: (\n callback: (error: ?{|message: string|}, allKeys: ?Array) => void,\n ) => void;\n}\n\nexport default (TurboModuleRegistry.get('AsyncSQLiteDBStorage') ||\n TurboModuleRegistry.get('AsyncLocalStorage'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport NativeClipboard from './NativeClipboard';\n\n/**\n * `Clipboard` gives you an interface for setting and getting content from Clipboard on both iOS and Android\n */\nmodule.exports = {\n /**\n * Get content of string type, this method returns a `Promise`, so you can use following code to get clipboard content\n * ```javascript\n * async _getContent() {\n * var content = await Clipboard.getString();\n * }\n * ```\n */\n getString(): Promise {\n return NativeClipboard.getString();\n },\n /**\n * Set content of string type. You can use following code to set clipboard content\n * ```javascript\n * _setContent() {\n * Clipboard.setString('hello world');\n * }\n * ```\n * @param the content to be stored in the clipboard.\n */\n setString(content: string) {\n NativeClipboard.setString(content);\n },\n};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +getString: () => Promise;\n +setString: (content: string) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('Clipboard'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {Options, DatePickerOpenAction} from './DatePickerAndroidTypes';\nimport NativeDatePickerAndroid from './NativeDatePickerAndroid';\n\n/**\n * Convert a Date to a timestamp.\n */\nfunction _toMillis(options: Options, key: string) {\n const dateVal = options[key];\n // Is it a Date object?\n if (typeof dateVal === 'object' && typeof dateVal.getMonth === 'function') {\n options[key] = dateVal.getTime();\n }\n}\n\n/**\n * Opens the standard Android date picker dialog.\n *\n * ### Example\n *\n * ```\n * try {\n * const {action, year, month, day} = await DatePickerAndroid.open({\n * // Use `new Date()` for current date.\n * // May 25 2020. Month 0 is January.\n * date: new Date(2020, 4, 25)\n * });\n * if (action !== DatePickerAndroid.dismissedAction) {\n * // Selected year, month (0-11), day\n * }\n * } catch ({code, message}) {\n * console.warn('Cannot open date picker', message);\n * }\n * ```\n */\nclass DatePickerAndroid {\n /**\n * Opens the standard Android date picker dialog.\n *\n * The available keys for the `options` object are:\n *\n * - `date` (`Date` object or timestamp in milliseconds) - date to show by default\n * - `minDate` (`Date` or timestamp in milliseconds) - minimum date that can be selected\n * - `maxDate` (`Date` object or timestamp in milliseconds) - maximum date that can be selected\n * - `mode` (`enum('calendar', 'spinner', 'default')`) - To set the date-picker mode to calendar/spinner/default\n * - 'calendar': Show a date picker in calendar mode.\n * - 'spinner': Show a date picker in spinner mode.\n * - 'default': Show a default native date picker(spinner/calendar) based on android versions.\n *\n * Returns a Promise which will be invoked an object containing `action`, `year`, `month` (0-11),\n * `day` if the user picked a date. If the user dismissed the dialog, the Promise will\n * still be resolved with action being `DatePickerAndroid.dismissedAction` and all the other keys\n * being undefined. **Always** check whether the `action` before reading the values.\n *\n * Note the native date picker dialog has some UI glitches on Android 4 and lower\n * when using the `minDate` and `maxDate` options.\n */\n static async open(options: ?Options): Promise {\n const optionsMs = options;\n if (optionsMs != null) {\n _toMillis(optionsMs, 'date');\n _toMillis(optionsMs, 'minDate');\n _toMillis(optionsMs, 'maxDate');\n }\n return NativeDatePickerAndroid.open(options);\n }\n\n /**\n * A date has been selected.\n */\n static +dateSetAction: 'dateSetAction' = 'dateSetAction';\n /**\n * The dialog has been dismissed.\n */\n static +dismissedAction: 'dismissedAction' = 'dismissedAction';\n}\n\nmodule.exports = DatePickerAndroid;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +open: (options: Object) => Promise;\n}\n\nexport default (TurboModuleRegistry.getEnforcing(\n 'DatePickerAndroid',\n): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport NativeDeviceInfo from './NativeDeviceInfo';\n\nmodule.exports = NativeDeviceInfo;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport NativeDevSettings from '../NativeModules/specs/NativeDevSettings';\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\n\nclass DevSettings extends NativeEventEmitter {\n _menuItems: Map mixed>;\n\n constructor() {\n super(NativeDevSettings);\n\n this._menuItems = new Map();\n }\n\n addMenuItem(title: string, handler: () => mixed) {\n // Make sure items are not added multiple times. This can\n // happen when hot reloading the module that registers the\n // menu items. The title is used as the id which means we\n // don't support multiple items with the same name.\n const oldHandler = this._menuItems.get(title);\n if (oldHandler != null) {\n this.removeListener('didPressMenuItem', oldHandler);\n } else {\n NativeDevSettings.addMenuItem(title);\n }\n\n this._menuItems.set(title, handler);\n this.addListener('didPressMenuItem', event => {\n if (event.title === title) {\n handler();\n }\n });\n }\n\n reload(reason: string) {\n if (typeof NativeDevSettings.reloadWithReason === 'function') {\n NativeDevSettings.reloadWithReason(reason || 'Uncategorized from JS');\n } else {\n NativeDevSettings.reload();\n }\n }\n\n onFastRefresh() {\n if (typeof NativeDevSettings.onFastRefresh === 'function') {\n NativeDevSettings.onFastRefresh();\n }\n }\n\n // TODO: Add other dev setting methods exposed by the native module.\n}\n\n// Avoid including the full `NativeDevSettings` class in prod.\nclass NoopDevSettings {\n addMenuItem(title: string, handler: () => mixed) {}\n reload() {}\n}\n\nmodule.exports = __DEV__ ? new DevSettings() : new NoopDevSettings();\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +reload: () => void;\n +reloadWithReason?: (reason: string) => void;\n +onFastRefresh?: () => void;\n +setHotLoadingEnabled: (isHotLoadingEnabled: boolean) => void;\n +setIsDebuggingRemotely: (isDebuggingRemotelyEnabled: boolean) => void;\n +setProfilingEnabled: (isProfilingEnabled: boolean) => void;\n +toggleElementInspector: () => void;\n +addMenuItem: (title: string) => void;\n\n // iOS only.\n +setIsShakeToShowDevMenuEnabled: (enabled: boolean) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('DevSettings'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport NativeImagePickerIOS from './NativeImagePickerIOS';\nimport invariant from 'invariant';\n\nconst ImagePickerIOS = {\n canRecordVideos: function(callback: (result: boolean) => void): void {\n invariant(NativeImagePickerIOS, 'ImagePickerIOS is not available');\n return NativeImagePickerIOS.canRecordVideos(callback);\n },\n canUseCamera: function(callback: (result: boolean) => void): void {\n invariant(NativeImagePickerIOS, 'ImagePickerIOS is not available');\n return NativeImagePickerIOS.canUseCamera(callback);\n },\n openCameraDialog: function(\n config: $ReadOnly<{|\n unmirrorFrontFacingCamera?: boolean,\n videoMode?: boolean,\n |}>,\n successCallback: (imageURL: string, height: number, width: number) => void,\n cancelCallback: () => void,\n ): void {\n invariant(NativeImagePickerIOS, 'ImagePickerIOS is not available');\n\n var newConfig = {\n videoMode: true,\n unmirrorFrontFacingCamera: false,\n };\n\n if (config.videoMode != null) {\n newConfig.videoMode = config.videoMode;\n }\n\n if (config.unmirrorFrontFacingCamera != null) {\n newConfig.unmirrorFrontFacingCamera = config.unmirrorFrontFacingCamera;\n }\n\n return NativeImagePickerIOS.openCameraDialog(\n newConfig,\n successCallback,\n cancelCallback,\n );\n },\n openSelectDialog: function(\n config: $ReadOnly<{|\n showImages?: boolean,\n showVideos?: boolean,\n |}>,\n successCallback: (imageURL: string, height: number, width: number) => void,\n cancelCallback: () => void,\n ): void {\n invariant(NativeImagePickerIOS, 'ImagePickerIOS is not available');\n\n var newConfig = {\n showImages: true,\n showVideos: false,\n };\n\n if (config.showImages != null) {\n newConfig.showImages = config.showImages;\n }\n\n if (config.showVideos != null) {\n newConfig.showVideos = config.showVideos;\n }\n\n return NativeImagePickerIOS.openSelectDialog(\n newConfig,\n successCallback,\n cancelCallback,\n );\n },\n /**\n * In iOS 13, the video URLs returned by the Image Picker are invalidated when\n * the picker is dismissed, unless reference to it is held. This API allows\n * the application to signal when it's finished with the video so that the\n * reference can be cleaned up.\n * It is safe to call this method for urlsthat aren't video URLs;\n * it will be a no-op.\n */\n removePendingVideo: function(url: string): void {\n invariant(NativeImagePickerIOS, 'ImagePickerIOS is not available');\n NativeImagePickerIOS.removePendingVideo(url);\n },\n /**\n * WARNING: In most cases, removePendingVideo should be used instead because\n * clearAllPendingVideos could clear out pending videos made by other callers.\n */\n clearAllPendingVideos: function(): void {\n invariant(NativeImagePickerIOS, 'ImagePickerIOS is not available');\n NativeImagePickerIOS.clearAllPendingVideos();\n },\n};\n\nmodule.exports = ImagePickerIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +canRecordVideos: (callback: (result: boolean) => void) => void;\n +canUseCamera: (callback: (result: boolean) => void) => void;\n +openCameraDialog: (\n config: {|\n unmirrorFrontFacingCamera: boolean,\n videoMode: boolean,\n |},\n successCallback: (imageURL: string, height: number, width: number) => void,\n cancelCallback: () => void,\n ) => void;\n +openSelectDialog: (\n config: {|\n showImages: boolean,\n showVideos: boolean,\n |},\n successCallback: (imageURL: string, height: number, width: number) => void,\n cancelCallback: () => void,\n ) => void;\n +clearAllPendingVideos: () => void;\n +removePendingVideo: (url: string) => void;\n}\n\nexport default (TurboModuleRegistry.get('ImagePickerIOS'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst InteractionManager = require('../Interaction/InteractionManager');\nconst NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');\nconst Platform = require('../Utilities/Platform');\n\nconst invariant = require('invariant');\n\nimport NativeLinking from './NativeLinking';\n\n/**\n * `Linking` gives you a general interface to interact with both incoming\n * and outgoing app links.\n *\n * See https://facebook.github.io/react-native/docs/linking.html\n */\nclass Linking extends NativeEventEmitter {\n constructor() {\n super(NativeLinking);\n }\n\n /**\n * Add a handler to Linking changes by listening to the `url` event type\n * and providing the handler\n *\n * See https://facebook.github.io/react-native/docs/linking.html#addeventlistener\n */\n addEventListener(type: string, handler: Function) {\n this.addListener(type, handler);\n }\n\n /**\n * Remove a handler by passing the `url` event type and the handler.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#removeeventlistener\n */\n removeEventListener(type: string, handler: Function) {\n this.removeListener(type, handler);\n }\n\n /**\n * Try to open the given `url` with any of the installed apps.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#openurl\n */\n openURL(url: string): Promise {\n this._validateURL(url);\n return NativeLinking.openURL(url);\n }\n\n /**\n * Determine whether or not an installed app can handle a given URL.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#canopenurl\n */\n canOpenURL(url: string): Promise {\n this._validateURL(url);\n return NativeLinking.canOpenURL(url);\n }\n\n /**\n * Open app settings.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#opensettings\n */\n openSettings(): Promise {\n return NativeLinking.openSettings();\n }\n\n /**\n * If the app launch was triggered by an app link,\n * it will give the link url, otherwise it will give `null`\n *\n * See https://facebook.github.io/react-native/docs/linking.html#getinitialurl\n */\n getInitialURL(): Promise {\n return Platform.OS === 'android'\n ? InteractionManager.runAfterInteractions().then(() =>\n NativeLinking.getInitialURL(),\n )\n : NativeLinking.getInitialURL();\n }\n\n /*\n * Launch an Android intent with extras (optional)\n *\n * @platform android\n *\n * See https://facebook.github.io/react-native/docs/linking.html#sendintent\n */\n sendIntent(\n action: string,\n extras?: Array<{\n key: string,\n value: string | number | boolean,\n ...\n }>,\n ): Promise {\n if (Platform.OS === 'android') {\n return NativeLinking.sendIntent(action, extras);\n }\n return new Promise((resolve, reject) => reject(new Error('Unsupported')));\n }\n\n _validateURL(url: string) {\n invariant(\n typeof url === 'string',\n 'Invalid URL: should be a string. Was: ' + url,\n );\n invariant(url, 'Invalid URL: cannot be empty');\n }\n}\n\nmodule.exports = (new Linking(): Linking);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\nimport Platform from '../Utilities/Platform';\n\nexport interface Spec extends TurboModule {\n // Common interface\n +getInitialURL: () => Promise;\n +canOpenURL: (url: string) => Promise;\n +openURL: (url: string) => Promise;\n +openSettings: () => Promise;\n\n // Android only\n +sendIntent: (\n action: string,\n extras: ?Array<{\n key: string,\n value: string | number | boolean,\n ...\n }>,\n ) => Promise;\n\n // Events\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default ((Platform.OS === 'android'\n ? TurboModuleRegistry.getEnforcing('IntentAndroid')\n : TurboModuleRegistry.getEnforcing('LinkingManager')): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst InteractionManager = require('./InteractionManager');\nconst TouchHistoryMath = require('./TouchHistoryMath');\n\nimport type {PressEvent} from '../Types/CoreEventTypes';\n\nconst currentCentroidXOfTouchesChangedAfter =\n TouchHistoryMath.currentCentroidXOfTouchesChangedAfter;\nconst currentCentroidYOfTouchesChangedAfter =\n TouchHistoryMath.currentCentroidYOfTouchesChangedAfter;\nconst previousCentroidXOfTouchesChangedAfter =\n TouchHistoryMath.previousCentroidXOfTouchesChangedAfter;\nconst previousCentroidYOfTouchesChangedAfter =\n TouchHistoryMath.previousCentroidYOfTouchesChangedAfter;\nconst currentCentroidX = TouchHistoryMath.currentCentroidX;\nconst currentCentroidY = TouchHistoryMath.currentCentroidY;\n\n/**\n * `PanResponder` reconciles several touches into a single gesture. It makes\n * single-touch gestures resilient to extra touches, and can be used to\n * recognize simple multi-touch gestures.\n *\n * By default, `PanResponder` holds an `InteractionManager` handle to block\n * long-running JS events from interrupting active gestures.\n *\n * It provides a predictable wrapper of the responder handlers provided by the\n * [gesture responder system](docs/gesture-responder-system.html).\n * For each handler, it provides a new `gestureState` object alongside the\n * native event object:\n *\n * ```\n * onPanResponderMove: (event, gestureState) => {}\n * ```\n *\n * A native event is a synthetic touch event with the following form:\n *\n * - `nativeEvent`\n * + `changedTouches` - Array of all touch events that have changed since the last event\n * + `identifier` - The ID of the touch\n * + `locationX` - The X position of the touch, relative to the element\n * + `locationY` - The Y position of the touch, relative to the element\n * + `pageX` - The X position of the touch, relative to the root element\n * + `pageY` - The Y position of the touch, relative to the root element\n * + `target` - The node id of the element receiving the touch event\n * + `timestamp` - A time identifier for the touch, useful for velocity calculation\n * + `touches` - Array of all current touches on the screen\n *\n * A `gestureState` object has the following:\n *\n * - `stateID` - ID of the gestureState- persisted as long as there at least\n * one touch on screen\n * - `moveX` - the latest screen coordinates of the recently-moved touch\n * - `moveY` - the latest screen coordinates of the recently-moved touch\n * - `x0` - the screen coordinates of the responder grant\n * - `y0` - the screen coordinates of the responder grant\n * - `dx` - accumulated distance of the gesture since the touch started\n * - `dy` - accumulated distance of the gesture since the touch started\n * - `vx` - current velocity of the gesture\n * - `vy` - current velocity of the gesture\n * - `numberActiveTouches` - Number of touches currently on screen\n *\n * ### Basic Usage\n *\n * ```\n * componentWillMount: function() {\n * this._panResponder = PanResponder.create({\n * // Ask to be the responder:\n * onStartShouldSetPanResponder: (evt, gestureState) => true,\n * onStartShouldSetPanResponderCapture: (evt, gestureState) => true,\n * onMoveShouldSetPanResponder: (evt, gestureState) => true,\n * onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,\n *\n * onPanResponderGrant: (evt, gestureState) => {\n * // The gesture has started. Show visual feedback so the user knows\n * // what is happening!\n *\n * // gestureState.d{x,y} will be set to zero now\n * },\n * onPanResponderMove: (evt, gestureState) => {\n * // The most recent move distance is gestureState.move{X,Y}\n *\n * // The accumulated gesture distance since becoming responder is\n * // gestureState.d{x,y}\n * },\n * onPanResponderTerminationRequest: (evt, gestureState) => true,\n * onPanResponderRelease: (evt, gestureState) => {\n * // The user has released all touches while this view is the\n * // responder. This typically means a gesture has succeeded\n * },\n * onPanResponderTerminate: (evt, gestureState) => {\n * // Another component has become the responder, so this gesture\n * // should be cancelled\n * },\n * onShouldBlockNativeResponder: (evt, gestureState) => {\n * // Returns whether this component should block native components from becoming the JS\n * // responder. Returns true by default. Is currently only supported on android.\n * return true;\n * },\n * });\n * },\n *\n * render: function() {\n * return (\n * \n * );\n * },\n *\n * ```\n *\n * ### Working Example\n *\n * To see it in action, try the\n * [PanResponder example in RNTester](https://github.com/facebook/react-native/blob/master/RNTester/js/PanResponderExample.js)\n */\n\nexport type GestureState = {|\n /**\n * ID of the gestureState - persisted as long as there at least one touch on screen\n */\n stateID: number,\n\n /**\n * The latest screen coordinates of the recently-moved touch\n */\n moveX: number,\n\n /**\n * The latest screen coordinates of the recently-moved touch\n */\n moveY: number,\n\n /**\n * The screen coordinates of the responder grant\n */\n x0: number,\n\n /**\n * The screen coordinates of the responder grant\n */\n y0: number,\n\n /**\n * Accumulated distance of the gesture since the touch started\n */\n dx: number,\n\n /**\n * Accumulated distance of the gesture since the touch started\n */\n dy: number,\n\n /**\n * Current velocity of the gesture\n */\n vx: number,\n\n /**\n * Current velocity of the gesture\n */\n vy: number,\n\n /**\n * Number of touches currently on screen\n */\n numberActiveTouches: number,\n\n /**\n * All `gestureState` accounts for timeStamps up until this value\n *\n * @private\n */\n _accountsForMovesUpTo: number,\n|};\n\ntype ActiveCallback = (\n event: PressEvent,\n gestureState: GestureState,\n) => boolean;\n\ntype PassiveCallback = (event: PressEvent, gestureState: GestureState) => mixed;\n\ntype PanResponderConfig = $ReadOnly<{|\n onMoveShouldSetPanResponder?: ?ActiveCallback,\n onMoveShouldSetPanResponderCapture?: ?ActiveCallback,\n onStartShouldSetPanResponder?: ?ActiveCallback,\n onStartShouldSetPanResponderCapture?: ?ActiveCallback,\n /**\n * The body of `onResponderGrant` returns a bool, but the vast majority of\n * callsites return void and this TODO notice is found in it:\n * TODO: t7467124 investigate if this can be removed\n */\n onPanResponderGrant?: ?(PassiveCallback | ActiveCallback),\n onPanResponderReject?: ?PassiveCallback,\n onPanResponderStart?: ?PassiveCallback,\n onPanResponderEnd?: ?PassiveCallback,\n onPanResponderRelease?: ?PassiveCallback,\n onPanResponderMove?: ?PassiveCallback,\n onPanResponderTerminate?: ?PassiveCallback,\n onPanResponderTerminationRequest?: ?ActiveCallback,\n onShouldBlockNativeResponder?: ?ActiveCallback,\n|}>;\n\nconst PanResponder = {\n /**\n *\n * A graphical explanation of the touch data flow:\n *\n * +----------------------------+ +--------------------------------+\n * | ResponderTouchHistoryStore | |TouchHistoryMath |\n * +----------------------------+ +----------+---------------------+\n * |Global store of touchHistory| |Allocation-less math util |\n * |including activeness, start | |on touch history (centroids |\n * |position, prev/cur position.| |and multitouch movement etc) |\n * | | | |\n * +----^-----------------------+ +----^---------------------------+\n * | |\n * | (records relevant history |\n * | of touches relevant for |\n * | implementing higher level |\n * | gestures) |\n * | |\n * +----+-----------------------+ +----|---------------------------+\n * | ResponderEventPlugin | | | Your App/Component |\n * +----------------------------+ +----|---------------------------+\n * |Negotiates which view gets | Low level | | High level |\n * |onResponderMove events. | events w/ | +-+-------+ events w/ |\n * |Also records history into | touchHistory| | Pan | multitouch + |\n * |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|\n * +----------------------------+ attached to | | | distance and |\n * each event | +---------+ velocity. |\n * | |\n * | |\n * +--------------------------------+\n *\n *\n *\n * Gesture that calculates cumulative movement over time in a way that just\n * \"does the right thing\" for multiple touches. The \"right thing\" is very\n * nuanced. When moving two touches in opposite directions, the cumulative\n * distance is zero in each dimension. When two touches move in parallel five\n * pixels in the same direction, the cumulative distance is five, not ten. If\n * two touches start, one moves five in a direction, then stops and the other\n * touch moves fives in the same direction, the cumulative distance is ten.\n *\n * This logic requires a kind of processing of time \"clusters\" of touch events\n * so that two touch moves that essentially occur in parallel but move every\n * other frame respectively, are considered part of the same movement.\n *\n * Explanation of some of the non-obvious fields:\n *\n * - moveX/moveY: If no move event has been observed, then `(moveX, moveY)` is\n * invalid. If a move event has been observed, `(moveX, moveY)` is the\n * centroid of the most recently moved \"cluster\" of active touches.\n * (Currently all move have the same timeStamp, but later we should add some\n * threshold for what is considered to be \"moving\"). If a palm is\n * accidentally counted as a touch, but a finger is moving greatly, the palm\n * will move slightly, but we only want to count the single moving touch.\n * - x0/y0: Centroid location (non-cumulative) at the time of becoming\n * responder.\n * - dx/dy: Cumulative touch distance - not the same thing as sum of each touch\n * distance. Accounts for touch moves that are clustered together in time,\n * moving the same direction. Only valid when currently responder (otherwise,\n * it only represents the drag distance below the threshold).\n * - vx/vy: Velocity.\n */\n\n _initializeGestureState(gestureState: GestureState) {\n gestureState.moveX = 0;\n gestureState.moveY = 0;\n gestureState.x0 = 0;\n gestureState.y0 = 0;\n gestureState.dx = 0;\n gestureState.dy = 0;\n gestureState.vx = 0;\n gestureState.vy = 0;\n gestureState.numberActiveTouches = 0;\n // All `gestureState` accounts for timeStamps up until:\n gestureState._accountsForMovesUpTo = 0;\n },\n\n /**\n * This is nuanced and is necessary. It is incorrect to continuously take all\n * active *and* recently moved touches, find the centroid, and track how that\n * result changes over time. Instead, we must take all recently moved\n * touches, and calculate how the centroid has changed just for those\n * recently moved touches, and append that change to an accumulator. This is\n * to (at least) handle the case where the user is moving three fingers, and\n * then one of the fingers stops but the other two continue.\n *\n * This is very different than taking all of the recently moved touches and\n * storing their centroid as `dx/dy`. For correctness, we must *accumulate\n * changes* in the centroid of recently moved touches.\n *\n * There is also some nuance with how we handle multiple moved touches in a\n * single event. With the way `ReactNativeEventEmitter` dispatches touches as\n * individual events, multiple touches generate two 'move' events, each of\n * them triggering `onResponderMove`. But with the way `PanResponder` works,\n * all of the gesture inference is performed on the first dispatch, since it\n * looks at all of the touches (even the ones for which there hasn't been a\n * native dispatch yet). Therefore, `PanResponder` does not call\n * `onResponderMove` passed the first dispatch. This diverges from the\n * typical responder callback pattern (without using `PanResponder`), but\n * avoids more dispatches than necessary.\n */\n _updateGestureStateOnMove(\n gestureState: GestureState,\n touchHistory: $PropertyType,\n ) {\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n gestureState.moveX = currentCentroidXOfTouchesChangedAfter(\n touchHistory,\n gestureState._accountsForMovesUpTo,\n );\n gestureState.moveY = currentCentroidYOfTouchesChangedAfter(\n touchHistory,\n gestureState._accountsForMovesUpTo,\n );\n const movedAfter = gestureState._accountsForMovesUpTo;\n const prevX = previousCentroidXOfTouchesChangedAfter(\n touchHistory,\n movedAfter,\n );\n const x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter);\n const prevY = previousCentroidYOfTouchesChangedAfter(\n touchHistory,\n movedAfter,\n );\n const y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter);\n const nextDX = gestureState.dx + (x - prevX);\n const nextDY = gestureState.dy + (y - prevY);\n\n // TODO: This must be filtered intelligently.\n const dt =\n touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;\n gestureState.vx = (nextDX - gestureState.dx) / dt;\n gestureState.vy = (nextDY - gestureState.dy) / dt;\n\n gestureState.dx = nextDX;\n gestureState.dy = nextDY;\n gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;\n },\n\n /**\n * @param {object} config Enhanced versions of all of the responder callbacks\n * that provide not only the typical `ResponderSyntheticEvent`, but also the\n * `PanResponder` gesture state. Simply replace the word `Responder` with\n * `PanResponder` in each of the typical `onResponder*` callbacks. For\n * example, the `config` object would look like:\n *\n * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`\n * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`\n * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`\n * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`\n * - `onPanResponderReject: (e, gestureState) => {...}`\n * - `onPanResponderGrant: (e, gestureState) => {...}`\n * - `onPanResponderStart: (e, gestureState) => {...}`\n * - `onPanResponderEnd: (e, gestureState) => {...}`\n * - `onPanResponderRelease: (e, gestureState) => {...}`\n * - `onPanResponderMove: (e, gestureState) => {...}`\n * - `onPanResponderTerminate: (e, gestureState) => {...}`\n * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`\n * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`\n *\n * In general, for events that have capture equivalents, we update the\n * gestureState once in the capture phase and can use it in the bubble phase\n * as well.\n *\n * Be careful with onStartShould* callbacks. They only reflect updated\n * `gestureState` for start/end events that bubble/capture to the Node.\n * Once the node is the responder, you can rely on every start/end event\n * being processed by the gesture and `gestureState` being updated\n * accordingly. (numberActiveTouches) may not be totally accurate unless you\n * are the responder.\n */\n create(\n config: PanResponderConfig,\n ): $TEMPORARY$object<{|\n getInteractionHandle: () => ?number,\n panHandlers: $TEMPORARY$object<{|\n onMoveShouldSetResponder: (event: PressEvent) => boolean,\n onMoveShouldSetResponderCapture: (event: PressEvent) => boolean,\n onResponderEnd: (event: PressEvent) => void,\n onResponderGrant: (event: PressEvent) => boolean,\n onResponderMove: (event: PressEvent) => void,\n onResponderReject: (event: PressEvent) => void,\n onResponderRelease: (event: PressEvent) => void,\n onResponderStart: (event: PressEvent) => void,\n onResponderTerminate: (event: PressEvent) => void,\n onResponderTerminationRequest: (event: PressEvent) => boolean,\n onStartShouldSetResponder: (event: PressEvent) => boolean,\n onStartShouldSetResponderCapture: (event: PressEvent) => boolean,\n |}>,\n |}> {\n const interactionState = {\n handle: (null: ?number),\n };\n const gestureState: GestureState = {\n // Useful for debugging\n stateID: Math.random(),\n moveX: 0,\n moveY: 0,\n x0: 0,\n y0: 0,\n dx: 0,\n dy: 0,\n vx: 0,\n vy: 0,\n numberActiveTouches: 0,\n _accountsForMovesUpTo: 0,\n };\n const panHandlers = {\n onStartShouldSetResponder(event: PressEvent): boolean {\n return config.onStartShouldSetPanResponder == null\n ? false\n : config.onStartShouldSetPanResponder(event, gestureState);\n },\n onMoveShouldSetResponder(event: PressEvent): boolean {\n return config.onMoveShouldSetPanResponder == null\n ? false\n : config.onMoveShouldSetPanResponder(event, gestureState);\n },\n onStartShouldSetResponderCapture(event: PressEvent): boolean {\n // TODO: Actually, we should reinitialize the state any time\n // touches.length increases from 0 active to > 0 active.\n if (event.nativeEvent.touches.length === 1) {\n PanResponder._initializeGestureState(gestureState);\n }\n gestureState.numberActiveTouches =\n event.touchHistory.numberActiveTouches;\n return config.onStartShouldSetPanResponderCapture != null\n ? config.onStartShouldSetPanResponderCapture(event, gestureState)\n : false;\n },\n\n onMoveShouldSetResponderCapture(event: PressEvent): boolean {\n const touchHistory = event.touchHistory;\n // Responder system incorrectly dispatches should* to current responder\n // Filter out any touch moves past the first one - we would have\n // already processed multi-touch geometry during the first event.\n if (\n gestureState._accountsForMovesUpTo ===\n touchHistory.mostRecentTimeStamp\n ) {\n return false;\n }\n PanResponder._updateGestureStateOnMove(gestureState, touchHistory);\n return config.onMoveShouldSetPanResponderCapture\n ? config.onMoveShouldSetPanResponderCapture(event, gestureState)\n : false;\n },\n\n onResponderGrant(event: PressEvent): boolean {\n if (!interactionState.handle) {\n interactionState.handle = InteractionManager.createInteractionHandle();\n }\n gestureState.x0 = currentCentroidX(event.touchHistory);\n gestureState.y0 = currentCentroidY(event.touchHistory);\n gestureState.dx = 0;\n gestureState.dy = 0;\n if (config.onPanResponderGrant) {\n config.onPanResponderGrant(event, gestureState);\n }\n // TODO: t7467124 investigate if this can be removed\n return config.onShouldBlockNativeResponder == null\n ? true\n : config.onShouldBlockNativeResponder(event, gestureState);\n },\n\n onResponderReject(event: PressEvent): void {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderReject,\n event,\n gestureState,\n );\n },\n\n onResponderRelease(event: PressEvent): void {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderRelease,\n event,\n gestureState,\n );\n PanResponder._initializeGestureState(gestureState);\n },\n\n onResponderStart(event: PressEvent): void {\n const touchHistory = event.touchHistory;\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n if (config.onPanResponderStart) {\n config.onPanResponderStart(event, gestureState);\n }\n },\n\n onResponderMove(event: PressEvent): void {\n const touchHistory = event.touchHistory;\n // Guard against the dispatch of two touch moves when there are two\n // simultaneously changed touches.\n if (\n gestureState._accountsForMovesUpTo ===\n touchHistory.mostRecentTimeStamp\n ) {\n return;\n }\n // Filter out any touch moves past the first one - we would have\n // already processed multi-touch geometry during the first event.\n PanResponder._updateGestureStateOnMove(gestureState, touchHistory);\n if (config.onPanResponderMove) {\n config.onPanResponderMove(event, gestureState);\n }\n },\n\n onResponderEnd(event: PressEvent): void {\n const touchHistory = event.touchHistory;\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n clearInteractionHandle(\n interactionState,\n config.onPanResponderEnd,\n event,\n gestureState,\n );\n },\n\n onResponderTerminate(event: PressEvent): void {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderTerminate,\n event,\n gestureState,\n );\n PanResponder._initializeGestureState(gestureState);\n },\n\n onResponderTerminationRequest(event: PressEvent): boolean {\n return config.onPanResponderTerminationRequest == null\n ? true\n : config.onPanResponderTerminationRequest(event, gestureState);\n },\n };\n return {\n panHandlers,\n getInteractionHandle(): ?number {\n return interactionState.handle;\n },\n };\n },\n};\n\nfunction clearInteractionHandle(\n interactionState: {handle: ?number, ...},\n callback: ?(ActiveCallback | PassiveCallback),\n event: PressEvent,\n gestureState: GestureState,\n) {\n if (interactionState.handle) {\n InteractionManager.clearInteractionHandle(interactionState.handle);\n interactionState.handle = null;\n }\n if (callback) {\n callback(event, gestureState);\n }\n}\n\nexport type PanResponderInstance = $Call<\n $PropertyType,\n PanResponderConfig,\n>;\n\nmodule.exports = PanResponder;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nconst TouchHistoryMath = {\n /**\n * This code is optimized and not intended to look beautiful. This allows\n * computing of touch centroids that have moved after `touchesChangedAfter`\n * timeStamp. You can compute the current centroid involving all touches\n * moves after `touchesChangedAfter`, or you can compute the previous\n * centroid of all touches that were moved after `touchesChangedAfter`.\n *\n * @param {TouchHistoryMath} touchHistory Standard Responder touch track\n * data.\n * @param {number} touchesChangedAfter timeStamp after which moved touches\n * are considered \"actively moving\" - not just \"active\".\n * @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.\n * @param {boolean} ofCurrent Compute current centroid for actively moving\n * touches vs. previous centroid of now actively moving touches.\n * @return {number} value of centroid in specified dimension.\n */\n centroidDimension: function(\n touchHistory,\n touchesChangedAfter,\n isXAxis,\n ofCurrent,\n ) {\n const touchBank = touchHistory.touchBank;\n let total = 0;\n let count = 0;\n\n const oneTouchData =\n touchHistory.numberActiveTouches === 1\n ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch]\n : null;\n\n if (oneTouchData !== null) {\n if (\n oneTouchData.touchActive &&\n oneTouchData.currentTimeStamp > touchesChangedAfter\n ) {\n total +=\n ofCurrent && isXAxis\n ? oneTouchData.currentPageX\n : ofCurrent && !isXAxis\n ? oneTouchData.currentPageY\n : !ofCurrent && isXAxis\n ? oneTouchData.previousPageX\n : oneTouchData.previousPageY;\n count = 1;\n }\n } else {\n for (let i = 0; i < touchBank.length; i++) {\n const touchTrack = touchBank[i];\n if (\n touchTrack !== null &&\n touchTrack !== undefined &&\n touchTrack.touchActive &&\n touchTrack.currentTimeStamp >= touchesChangedAfter\n ) {\n let toAdd; // Yuck, program temporarily in invalid state.\n if (ofCurrent && isXAxis) {\n toAdd = touchTrack.currentPageX;\n } else if (ofCurrent && !isXAxis) {\n toAdd = touchTrack.currentPageY;\n } else if (!ofCurrent && isXAxis) {\n toAdd = touchTrack.previousPageX;\n } else {\n toAdd = touchTrack.previousPageY;\n }\n total += toAdd;\n count++;\n }\n }\n }\n return count > 0 ? total / count : TouchHistoryMath.noCentroid;\n },\n\n currentCentroidXOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n true, // isXAxis\n true, // ofCurrent\n );\n },\n\n currentCentroidYOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n false, // isXAxis\n true, // ofCurrent\n );\n },\n\n previousCentroidXOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n true, // isXAxis\n false, // ofCurrent\n );\n },\n\n previousCentroidYOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n false, // isXAxis\n false, // ofCurrent\n );\n },\n\n currentCentroidX: function(touchHistory) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n 0, // touchesChangedAfter\n true, // isXAxis\n true, // ofCurrent\n );\n },\n\n currentCentroidY: function(touchHistory) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n 0, // touchesChangedAfter\n false, // isXAxis\n true, // ofCurrent\n );\n },\n\n noCentroid: -1,\n};\n\nmodule.exports = TouchHistoryMath;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Platform = require('../Utilities/Platform');\n\nimport NativeDialogManagerAndroid from '../NativeModules/specs/NativeDialogManagerAndroid';\nimport NativePermissionsAndroid from './NativePermissionsAndroid';\nimport type {\n PermissionStatus,\n PermissionType,\n} from './NativePermissionsAndroid';\nimport invariant from 'invariant';\n\nexport type Rationale = {\n title: string,\n message: string,\n buttonPositive?: string,\n buttonNegative?: string,\n buttonNeutral?: string,\n ...\n};\n\nconst PERMISSION_REQUEST_RESULT = Object.freeze({\n GRANTED: 'granted',\n DENIED: 'denied',\n NEVER_ASK_AGAIN: 'never_ask_again',\n});\n\nconst PERMISSIONS = Object.freeze({\n READ_CALENDAR: 'android.permission.READ_CALENDAR',\n WRITE_CALENDAR: 'android.permission.WRITE_CALENDAR',\n CAMERA: 'android.permission.CAMERA',\n READ_CONTACTS: 'android.permission.READ_CONTACTS',\n WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS',\n GET_ACCOUNTS: 'android.permission.GET_ACCOUNTS',\n ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION',\n ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION',\n ACCESS_BACKGROUND_LOCATION: 'android.permission.ACCESS_BACKGROUND_LOCATION',\n RECORD_AUDIO: 'android.permission.RECORD_AUDIO',\n READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE',\n CALL_PHONE: 'android.permission.CALL_PHONE',\n READ_CALL_LOG: 'android.permission.READ_CALL_LOG',\n WRITE_CALL_LOG: 'android.permission.WRITE_CALL_LOG',\n ADD_VOICEMAIL: 'com.android.voicemail.permission.ADD_VOICEMAIL',\n USE_SIP: 'android.permission.USE_SIP',\n PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS',\n BODY_SENSORS: 'android.permission.BODY_SENSORS',\n SEND_SMS: 'android.permission.SEND_SMS',\n RECEIVE_SMS: 'android.permission.RECEIVE_SMS',\n READ_SMS: 'android.permission.READ_SMS',\n RECEIVE_WAP_PUSH: 'android.permission.RECEIVE_WAP_PUSH',\n RECEIVE_MMS: 'android.permission.RECEIVE_MMS',\n READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE',\n WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE',\n});\n\n/**\n * `PermissionsAndroid` provides access to Android M's new permissions model.\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html\n */\n\nclass PermissionsAndroid {\n PERMISSIONS: {|\n ACCESS_BACKGROUND_LOCATION: string,\n ACCESS_COARSE_LOCATION: string,\n ACCESS_FINE_LOCATION: string,\n ADD_VOICEMAIL: string,\n BODY_SENSORS: string,\n CALL_PHONE: string,\n CAMERA: string,\n GET_ACCOUNTS: string,\n PROCESS_OUTGOING_CALLS: string,\n READ_CALENDAR: string,\n READ_CALL_LOG: string,\n READ_CONTACTS: string,\n READ_EXTERNAL_STORAGE: string,\n READ_PHONE_STATE: string,\n READ_SMS: string,\n RECEIVE_MMS: string,\n RECEIVE_SMS: string,\n RECEIVE_WAP_PUSH: string,\n RECORD_AUDIO: string,\n SEND_SMS: string,\n USE_SIP: string,\n WRITE_CALENDAR: string,\n WRITE_CALL_LOG: string,\n WRITE_CONTACTS: string,\n WRITE_EXTERNAL_STORAGE: string,\n |} = PERMISSIONS;\n RESULTS: {|\n DENIED: $TEMPORARY$string<'denied'>,\n GRANTED: $TEMPORARY$string<'granted'>,\n NEVER_ASK_AGAIN: $TEMPORARY$string<'never_ask_again'>,\n |} = PERMISSION_REQUEST_RESULT;\n\n /**\n * DEPRECATED - use check\n *\n * Returns a promise resolving to a boolean value as to whether the specified\n * permissions has been granted\n *\n * @deprecated\n */\n checkPermission(permission: PermissionType): Promise {\n console.warn(\n '\"PermissionsAndroid.checkPermission\" is deprecated. Use \"PermissionsAndroid.check\" instead',\n );\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(false);\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n return NativePermissionsAndroid.checkPermission(permission);\n }\n\n /**\n * Returns a promise resolving to a boolean value as to whether the specified\n * permissions has been granted\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html#check\n */\n check(permission: PermissionType): Promise {\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(false);\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n return NativePermissionsAndroid.checkPermission(permission);\n }\n\n /**\n * DEPRECATED - use request\n *\n * Prompts the user to enable a permission and returns a promise resolving to a\n * boolean value indicating whether the user allowed or denied the request\n *\n * If the optional rationale argument is included (which is an object with a\n * `title` and `message`), this function checks with the OS whether it is\n * necessary to show a dialog explaining why the permission is needed\n * (https://developer.android.com/training/permissions/requesting.html#explain)\n * and then shows the system permission dialog\n *\n * @deprecated\n */\n async requestPermission(\n permission: PermissionType,\n rationale?: Rationale,\n ): Promise {\n console.warn(\n '\"PermissionsAndroid.requestPermission\" is deprecated. Use \"PermissionsAndroid.request\" instead',\n );\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(false);\n }\n\n const response = await this.request(permission, rationale);\n return response === this.RESULTS.GRANTED;\n }\n\n /**\n * Prompts the user to enable a permission and returns a promise resolving to a\n * string value indicating whether the user allowed or denied the request\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html#request\n */\n async request(\n permission: PermissionType,\n rationale?: Rationale,\n ): Promise {\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(this.RESULTS.DENIED);\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n if (rationale) {\n const shouldShowRationale = await NativePermissionsAndroid.shouldShowRequestPermissionRationale(\n permission,\n );\n\n if (shouldShowRationale && !!NativeDialogManagerAndroid) {\n return new Promise((resolve, reject) => {\n const options = {\n ...rationale,\n };\n NativeDialogManagerAndroid.showAlert(\n /* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment\n * suppresses an error found when Flow v0.111 was deployed. To see\n * the error, delete this comment and run Flow. */\n options,\n () => reject(new Error('Error showing rationale')),\n () =>\n resolve(NativePermissionsAndroid.requestPermission(permission)),\n );\n });\n }\n }\n return NativePermissionsAndroid.requestPermission(permission);\n }\n\n /**\n * Prompts the user to enable multiple permissions in the same dialog and\n * returns an object with the permissions as keys and strings as values\n * indicating whether the user allowed or denied the request\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html#requestmultiple\n */\n requestMultiple(\n permissions: Array,\n ): Promise<{[permission: PermissionType]: PermissionStatus, ...}> {\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve({});\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n return NativePermissionsAndroid.requestMultiplePermissions(permissions);\n }\n}\n\nconst PermissionsAndroidInstance: PermissionsAndroid = new PermissionsAndroid();\n\nmodule.exports = PermissionsAndroidInstance;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\n// TODO: Use proper enum types.\nexport type PermissionStatus = string;\nexport type PermissionType = string;\n/*\nexport type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';\nexport type PermissionType =\n | 'android.permission.READ_CALENDAR'\n | 'android.permission.WRITE_CALENDAR'\n | 'android.permission.CAMERA'\n | 'android.permission.READ_CONTACTS'\n | 'android.permission.WRITE_CONTACTS'\n | 'android.permission.GET_ACCOUNTS'\n | 'android.permission.ACCESS_BACKGROUND_LOCATION'\n | 'android.permission.ACCESS_FINE_LOCATION'\n | 'android.permission.ACCESS_COARSE_LOCATION'\n | 'android.permission.RECORD_AUDIO'\n | 'android.permission.READ_PHONE_STATE'\n | 'android.permission.CALL_PHONE'\n | 'android.permission.READ_CALL_LOG'\n | 'android.permission.WRITE_CALL_LOG'\n | 'com.android.voicemail.permission.ADD_VOICEMAIL'\n | 'android.permission.USE_SIP'\n | 'android.permission.PROCESS_OUTGOING_CALLS'\n | 'android.permission.BODY_SENSORS'\n | 'android.permission.SEND_SMS'\n | 'android.permission.RECEIVE_SMS'\n | 'android.permission.READ_SMS'\n | 'android.permission.RECEIVE_WAP_PUSH'\n | 'android.permission.RECEIVE_MMS'\n | 'android.permission.READ_EXTERNAL_STORAGE'\n | 'android.permission.WRITE_EXTERNAL_STORAGE';\n*/\n\nexport interface Spec extends TurboModule {\n +checkPermission: (permission: PermissionType) => Promise;\n +requestPermission: (permission: PermissionType) => Promise;\n +shouldShowRequestPermissionRationale: (\n permission: string,\n ) => Promise;\n +requestMultiplePermissions: (\n permissions: Array,\n ) => Promise<{[permission: PermissionType]: PermissionStatus, ...}>;\n}\n\nexport default (TurboModuleRegistry.get('PermissionsAndroid'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');\nimport NativePushNotificationManagerIOS from './NativePushNotificationManagerIOS';\nconst invariant = require('invariant');\n\nconst PushNotificationEmitter = new NativeEventEmitter(\n NativePushNotificationManagerIOS,\n);\n\nconst _notifHandlers = new Map();\n\nconst DEVICE_NOTIF_EVENT = 'remoteNotificationReceived';\nconst NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered';\nconst NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError';\nconst DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived';\n\nexport type ContentAvailable = 1 | null | void;\n\nexport type FetchResult = {\n NewData: string,\n NoData: string,\n ResultFailed: string,\n ...\n};\n\n/**\n * An event emitted by PushNotificationIOS.\n */\nexport type PushNotificationEventName = $Keys<{\n /**\n * Fired when a remote notification is received. The handler will be invoked\n * with an instance of `PushNotificationIOS`.\n */\n notification: string,\n /**\n * Fired when a local notification is received. The handler will be invoked\n * with an instance of `PushNotificationIOS`.\n */\n localNotification: string,\n /**\n * Fired when the user registers for remote notifications. The handler will be\n * invoked with a hex string representing the deviceToken.\n */\n register: string,\n /**\n * Fired when the user fails to register for remote notifications. Typically\n * occurs when APNS is having issues, or the device is a simulator. The\n * handler will be invoked with {message: string, code: number, details: any}.\n */\n registrationError: string,\n ...\n}>;\n\n/**\n *\n * Handle push notifications for your app, including permission handling and\n * icon badge number.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html\n */\nclass PushNotificationIOS {\n _data: Object;\n _alert: string | Object;\n _sound: string;\n _category: string;\n _contentAvailable: ContentAvailable;\n _badgeCount: number;\n _notificationId: string;\n _isRemote: boolean;\n _remoteNotificationCompleteCallbackCalled: boolean;\n _threadID: string;\n\n static FetchResult: FetchResult = {\n NewData: 'UIBackgroundFetchResultNewData',\n NoData: 'UIBackgroundFetchResultNoData',\n ResultFailed: 'UIBackgroundFetchResultFailed',\n };\n\n /**\n * Schedules the localNotification for immediate presentation.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#presentlocalnotification\n */\n static presentLocalNotification(details: Object) {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.presentLocalNotification(details);\n }\n\n /**\n * Schedules the localNotification for future presentation.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#schedulelocalnotification\n */\n static scheduleLocalNotification(details: Object) {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.scheduleLocalNotification(details);\n }\n\n /**\n * Cancels all scheduled localNotifications.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancelalllocalnotifications\n */\n static cancelAllLocalNotifications() {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.cancelAllLocalNotifications();\n }\n\n /**\n * Remove all delivered notifications from Notification Center.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removealldeliverednotifications\n */\n static removeAllDeliveredNotifications(): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.removeAllDeliveredNotifications();\n }\n\n /**\n * Provides you with a list of the app’s notifications that are still displayed in Notification Center.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdeliverednotifications\n */\n static getDeliveredNotifications(\n callback: (notifications: Array) => void,\n ): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.getDeliveredNotifications(callback);\n }\n\n /**\n * Removes the specified notifications from Notification Center\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removedeliverednotifications\n */\n static removeDeliveredNotifications(identifiers: Array): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.removeDeliveredNotifications(identifiers);\n }\n\n /**\n * Sets the badge number for the app icon on the home screen.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#setapplicationiconbadgenumber\n */\n static setApplicationIconBadgeNumber(number: number) {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.setApplicationIconBadgeNumber(number);\n }\n\n /**\n * Gets the current badge number for the app icon on the home screen.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getapplicationiconbadgenumber\n */\n static getApplicationIconBadgeNumber(callback: Function) {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.getApplicationIconBadgeNumber(callback);\n }\n\n /**\n * Cancel local notifications.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancellocalnotification\n */\n static cancelLocalNotifications(userInfo: Object) {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.cancelLocalNotifications(userInfo);\n }\n\n /**\n * Gets the local notifications that are currently scheduled.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getscheduledlocalnotifications\n */\n static getScheduledLocalNotifications(callback: Function) {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.getScheduledLocalNotifications(callback);\n }\n\n /**\n * Attaches a listener to remote or local notification events while the app\n * is running in the foreground or the background.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#addeventlistener\n */\n static addEventListener(type: PushNotificationEventName, handler: Function) {\n invariant(\n type === 'notification' ||\n type === 'register' ||\n type === 'registrationError' ||\n type === 'localNotification',\n 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n );\n let listener;\n if (type === 'notification') {\n listener = PushNotificationEmitter.addListener(\n DEVICE_NOTIF_EVENT,\n notifData => {\n handler(new PushNotificationIOS(notifData));\n },\n );\n } else if (type === 'localNotification') {\n listener = PushNotificationEmitter.addListener(\n DEVICE_LOCAL_NOTIF_EVENT,\n notifData => {\n handler(new PushNotificationIOS(notifData));\n },\n );\n } else if (type === 'register') {\n listener = PushNotificationEmitter.addListener(\n NOTIF_REGISTER_EVENT,\n registrationInfo => {\n handler(registrationInfo.deviceToken);\n },\n );\n } else if (type === 'registrationError') {\n listener = PushNotificationEmitter.addListener(\n NOTIF_REGISTRATION_ERROR_EVENT,\n errorInfo => {\n handler(errorInfo);\n },\n );\n }\n _notifHandlers.set(type, listener);\n }\n\n /**\n * Removes the event listener. Do this in `componentWillUnmount` to prevent\n * memory leaks.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removeeventlistener\n */\n static removeEventListener(\n type: PushNotificationEventName,\n handler: Function,\n ) {\n invariant(\n type === 'notification' ||\n type === 'register' ||\n type === 'registrationError' ||\n type === 'localNotification',\n 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n );\n const listener = _notifHandlers.get(type);\n if (!listener) {\n return;\n }\n listener.remove();\n _notifHandlers.delete(type);\n }\n\n /**\n * Requests notification permissions from iOS, prompting the user's\n * dialog box. By default, it will request all notification permissions, but\n * a subset of these can be requested by passing a map of requested\n * permissions.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#requestpermissions\n */\n static requestPermissions(permissions?: {\n alert?: boolean,\n badge?: boolean,\n sound?: boolean,\n ...\n }): Promise<{\n alert: boolean,\n badge: boolean,\n sound: boolean,\n ...\n }> {\n let requestedPermissions = {\n alert: true,\n badge: true,\n sound: true,\n };\n if (permissions) {\n requestedPermissions = {\n alert: !!permissions.alert,\n badge: !!permissions.badge,\n sound: !!permissions.sound,\n };\n }\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n return NativePushNotificationManagerIOS.requestPermissions(\n requestedPermissions,\n );\n }\n\n /**\n * Unregister for all remote notifications received via Apple Push Notification service.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#abandonpermissions\n */\n static abandonPermissions() {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.abandonPermissions();\n }\n\n /**\n * See what push permissions are currently enabled. `callback` will be\n * invoked with a `permissions` object.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#checkpermissions\n */\n static checkPermissions(callback: Function) {\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.checkPermissions(callback);\n }\n\n /**\n * This method returns a promise that resolves to either the notification\n * object if the app was launched by a push notification, or `null` otherwise.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getinitialnotification\n */\n static getInitialNotification(): Promise {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n return NativePushNotificationManagerIOS.getInitialNotification().then(\n notification => {\n return notification && new PushNotificationIOS(notification);\n },\n );\n }\n\n /**\n * You will never need to instantiate `PushNotificationIOS` yourself.\n * Listening to the `notification` event and invoking\n * `getInitialNotification` is sufficient\n *\n */\n constructor(nativeNotif: Object) {\n this._data = {};\n this._remoteNotificationCompleteCallbackCalled = false;\n this._isRemote = nativeNotif.remote;\n if (this._isRemote) {\n this._notificationId = nativeNotif.notificationId;\n }\n\n if (nativeNotif.remote) {\n // Extract data from Apple's `aps` dict as defined:\n // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html\n Object.keys(nativeNotif).forEach(notifKey => {\n const notifVal = nativeNotif[notifKey];\n if (notifKey === 'aps') {\n this._alert = notifVal.alert;\n this._sound = notifVal.sound;\n this._badgeCount = notifVal.badge;\n this._category = notifVal.category;\n this._contentAvailable = notifVal['content-available'];\n this._threadID = notifVal['thread-id'];\n } else {\n this._data[notifKey] = notifVal;\n }\n });\n } else {\n // Local notifications aren't being sent down with `aps` dict.\n this._badgeCount = nativeNotif.applicationIconBadgeNumber;\n this._sound = nativeNotif.soundName;\n this._alert = nativeNotif.alertBody;\n this._data = nativeNotif.userInfo;\n this._category = nativeNotif.category;\n }\n }\n\n /**\n * This method is available for remote notifications that have been received via:\n * `application:didReceiveRemoteNotification:fetchCompletionHandler:`\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#finish\n */\n finish(fetchResult: string) {\n if (\n !this._isRemote ||\n !this._notificationId ||\n this._remoteNotificationCompleteCallbackCalled\n ) {\n return;\n }\n this._remoteNotificationCompleteCallbackCalled = true;\n\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.onFinishRemoteNotification(\n this._notificationId,\n fetchResult,\n );\n }\n\n /**\n * An alias for `getAlert` to get the notification's main message string\n */\n getMessage(): ?string | ?Object {\n // alias because \"alert\" is an ambiguous name\n return this._alert;\n }\n\n /**\n * Gets the sound string from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getsound\n */\n getSound(): ?string {\n return this._sound;\n }\n\n /**\n * Gets the category string from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcategory\n */\n getCategory(): ?string {\n return this._category;\n }\n\n /**\n * Gets the notification's main message from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getalert\n */\n getAlert(): ?string | ?Object {\n return this._alert;\n }\n\n /**\n * Gets the content-available number from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcontentavailable\n */\n getContentAvailable(): ContentAvailable {\n return this._contentAvailable;\n }\n\n /**\n * Gets the badge count number from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getbadgecount\n */\n getBadgeCount(): ?number {\n return this._badgeCount;\n }\n\n /**\n * Gets the data object on the notif\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdata\n */\n getData(): ?Object {\n return this._data;\n }\n\n /**\n * Gets the thread ID on the notif\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getthreadid\n */\n getThreadID(): ?string {\n return this._threadID;\n }\n}\n\nmodule.exports = PushNotificationIOS;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\ntype Permissions = {|\n alert: boolean,\n badge: boolean,\n sound: boolean,\n|};\n\ntype Notification = {|\n +alertTitle?: ?string,\n // Actual type: string | number\n +fireDate?: ?number,\n +alertBody?: ?string,\n +alertAction?: ?string,\n +userInfo?: ?Object,\n +category?: ?string,\n // Actual type: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute'\n +repeatInterval?: ?string,\n +applicationIconBadgeNumber?: ?number,\n +isSilent?: ?boolean,\n|};\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {...};\n +onFinishRemoteNotification: (\n notificationId: string,\n /**\n * Type:\n * 'UIBackgroundFetchResultNewData' |\n * 'UIBackgroundFetchResultNoData' |\n * 'UIBackgroundFetchResultFailed'\n */\n fetchResult: string,\n ) => void;\n +setApplicationIconBadgeNumber: (num: number) => void;\n +getApplicationIconBadgeNumber: (callback: (num: number) => void) => void;\n +requestPermissions: (permission: {|\n +alert: boolean,\n +badge: boolean,\n +sound: boolean,\n |}) => Promise;\n +abandonPermissions: () => void;\n +checkPermissions: (callback: (permissions: Permissions) => void) => void;\n +presentLocalNotification: (notification: Notification) => void;\n +scheduleLocalNotification: (notification: Notification) => void;\n +cancelAllLocalNotifications: () => void;\n +cancelLocalNotifications: (userInfo: Object) => void;\n +getInitialNotification: () => Promise;\n +getScheduledLocalNotifications: (\n callback: (notification: Notification) => void,\n ) => void;\n +removeAllDeliveredNotifications: () => void;\n +removeDeliveredNotifications: (identifiers: Array) => void;\n +getDeliveredNotifications: (\n callback: (notification: Array) => void,\n ) => void;\n +addListener: (eventType: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get(\n 'PushNotificationManager',\n): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Settings = {\n get(key: string): mixed {\n console.warn('Settings is not yet supported on Android');\n return null;\n },\n\n set(settings: Object) {\n console.warn('Settings is not yet supported on Android');\n },\n\n watchKeys(keys: string | Array, callback: Function): number {\n console.warn('Settings is not yet supported on Android');\n return -1;\n },\n\n clearWatch(watchId: number) {\n console.warn('Settings is not yet supported on Android');\n },\n};\n\nmodule.exports = Settings;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('../Utilities/Platform');\n\nconst invariant = require('invariant');\nconst processColor = require('../StyleSheet/processColor');\n\nimport NativeActionSheetManager from '../ActionSheetIOS/NativeActionSheetManager';\nimport NativeShareModule from './NativeShareModule';\n\ntype Content =\n | {\n title?: string,\n message: string,\n ...\n }\n | {\n title?: string,\n url: string,\n ...\n };\ntype Options = {\n dialogTitle?: string,\n excludedActivityTypes?: Array,\n tintColor?: string,\n subject?: string,\n ...\n};\n\nclass Share {\n /**\n * Open a dialog to share text content.\n *\n * In iOS, Returns a Promise which will be invoked an object containing `action`, `activityType`.\n * If the user dismissed the dialog, the Promise will still be resolved with action being `Share.dismissedAction`\n * and all the other keys being undefined.\n *\n * In Android, Returns a Promise which always be resolved with action being `Share.sharedAction`.\n *\n * ### Content\n *\n * - `message` - a message to share\n *\n * #### iOS\n *\n * - `url` - an URL to share\n *\n * At least one of URL and message is required.\n *\n * #### Android\n *\n * - `title` - title of the message\n *\n * ### Options\n *\n * #### iOS\n *\n * - `subject` - a subject to share via email\n * - `excludedActivityTypes`\n * - `tintColor`\n *\n * #### Android\n *\n * - `dialogTitle`\n *\n */\n static share(content: Content, options: Options = {}): Promise {\n invariant(\n typeof content === 'object' && content !== null,\n 'Content to share must be a valid object',\n );\n invariant(\n typeof content.url === 'string' || typeof content.message === 'string',\n 'At least one of URL and message is required',\n );\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n\n if (Platform.OS === 'android') {\n invariant(\n NativeShareModule,\n 'ShareModule should be registered on Android.',\n );\n invariant(\n !content.title || typeof content.title === 'string',\n 'Invalid title: title should be a string.',\n );\n\n const newContent = {\n title: content.title,\n message:\n typeof content.message === 'string' ? content.message : undefined,\n };\n\n return NativeShareModule.share(newContent, options.dialogTitle);\n } else if (Platform.OS === 'ios') {\n return new Promise((resolve, reject) => {\n const tintColor = processColor(options.tintColor);\n\n invariant(\n NativeActionSheetManager,\n 'NativeActionSheetManager is not registered on iOS, but it should be.',\n );\n\n NativeActionSheetManager.showShareActionSheetWithOptions(\n {\n message:\n typeof content.message === 'string' ? content.message : undefined,\n url: typeof content.url === 'string' ? content.url : undefined,\n subject: options.subject,\n tintColor: tintColor != null ? tintColor : undefined,\n excludedActivityTypes: options.excludedActivityTypes,\n },\n error => reject(error),\n (success, activityType) => {\n if (success) {\n resolve({\n action: 'sharedAction',\n activityType: activityType,\n });\n } else {\n resolve({\n action: 'dismissedAction',\n });\n }\n },\n );\n });\n } else {\n return Promise.reject(new Error('Unsupported platform'));\n }\n }\n\n /**\n * The content was successfully shared.\n */\n static sharedAction: 'sharedAction' = 'sharedAction';\n\n /**\n * The dialog has been dismissed.\n * @platform ios\n */\n static dismissedAction: 'dismissedAction' = 'dismissedAction';\n}\n\nmodule.exports = Share;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +share: (\n content: {|title?: string, message?: string|},\n dialogTitle?: string,\n ) => Promise<{|action: string|}>;\n}\n\nexport default (TurboModuleRegistry.get('ShareModule'): ?Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst NativeEventEmitter = require('../../EventEmitter/NativeEventEmitter');\n\nimport NativeStatusBarManagerIOS from './NativeStatusBarManagerIOS';\n\n/**\n * Use `StatusBar` for mutating the status bar.\n */\nclass StatusBarIOS extends NativeEventEmitter {}\n\nmodule.exports = (new StatusBarIOS(NativeStatusBarManagerIOS): StatusBarIOS);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\nimport NativeToastAndroid from './NativeToastAndroid';\n\n/**\n * This exposes the native ToastAndroid module as a JS module. This has a function 'show'\n * which takes the following parameters:\n *\n * 1. String message: A string with the text to toast\n * 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG\n *\n * There is also a function `showWithGravity` to specify the layout gravity. May be\n * ToastAndroid.TOP, ToastAndroid.BOTTOM, ToastAndroid.CENTER.\n *\n * The 'showWithGravityAndOffset' function adds on the ability to specify offset\n * These offset values will translate to pixels.\n *\n * Basic usage:\n * ```javascript\n * ToastAndroid.show('A pikachu appeared nearby !', ToastAndroid.SHORT);\n * ToastAndroid.showWithGravity('All Your Base Are Belong To Us', ToastAndroid.SHORT, ToastAndroid.CENTER);\n * ToastAndroid.showWithGravityAndOffset('A wild toast appeared!', ToastAndroid.LONG, ToastAndroid.BOTTOM, 25, 50);\n * ```\n */\n\nconst ToastAndroid = {\n // Toast duration constants\n SHORT: (NativeToastAndroid.getConstants().SHORT: number),\n LONG: (NativeToastAndroid.getConstants().LONG: number),\n // Toast gravity constants\n TOP: (NativeToastAndroid.getConstants().TOP: number),\n BOTTOM: (NativeToastAndroid.getConstants().BOTTOM: number),\n CENTER: (NativeToastAndroid.getConstants().CENTER: number),\n\n show: function(message: string, duration: number): void {\n NativeToastAndroid.show(message, duration);\n },\n\n showWithGravity: function(\n message: string,\n duration: number,\n gravity: number,\n ): void {\n NativeToastAndroid.showWithGravity(message, duration, gravity);\n },\n\n showWithGravityAndOffset: function(\n message: string,\n duration: number,\n gravity: number,\n xOffset: number,\n yOffset: number,\n ): void {\n NativeToastAndroid.showWithGravityAndOffset(\n message,\n duration,\n gravity,\n xOffset,\n yOffset,\n );\n },\n};\n\nmodule.exports = ToastAndroid;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n SHORT: number,\n LONG: number,\n TOP: number,\n BOTTOM: number,\n CENTER: number,\n |};\n +show: (message: string, duration: number) => void;\n +showWithGravity: (\n message: string,\n duration: number,\n gravity: number,\n ) => void;\n +showWithGravityAndOffset: (\n message: string,\n duration: number,\n gravity: number,\n xOffset: number,\n yOffset: number,\n ) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('ToastAndroid'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport {useMemo} from 'react';\nimport {useSubscription} from 'use-subscription';\nimport Appearance from './Appearance';\nimport type {ColorSchemeName} from './NativeAppearance';\n\nexport default function useColorScheme(): ?ColorSchemeName {\n const subscription = useMemo(\n () => ({\n getCurrentValue: () => Appearance.getColorScheme(),\n subscribe: callback => {\n Appearance.addChangeListener(callback);\n return () => Appearance.removeChangeListener(callback);\n },\n }),\n [],\n );\n\n return useSubscription(subscription);\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-subscription.production.min.js');\n} else {\n module.exports = require('./cjs/use-subscription.development.js');\n}\n","/** @license React v1.4.1\n * use-subscription.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var e=require(\"object-assign\"),g=require(\"react\");\nexports.useSubscription=function(a){var c=a.getCurrentValue,d=a.subscribe,b=g.useState(function(){return{getCurrentValue:c,subscribe:d,value:c()}});a=b[0];var f=b[1];b=a.value;if(a.getCurrentValue!==c||a.subscribe!==d)b=c(),f({getCurrentValue:c,subscribe:d,value:b});g.useDebugValue(b);g.useEffect(function(){function b(){if(!a){var b=c();f(function(a){return a.getCurrentValue!==c||a.subscribe!==d||a.value===b?a:e({},a,{value:b})})}}var a=!1,h=d(b);b();return function(){a=!0;h()}},[c,d]);return b};\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport Dimensions from './Dimensions';\nimport {type DisplayMetrics} from './NativeDeviceInfo';\nimport {useEffect, useState} from 'react';\n\nexport default function useWindowDimensions(): DisplayMetrics {\n const [dims, setDims] = useState(() => Dimensions.get('window'));\n useEffect(() => {\n function handleChange({window}) {\n setDims(window);\n }\n Dimensions.addEventListener('change', handleChange);\n // We might have missed an update between calling `get` in render and\n // `addEventListener` in this handler, so we set it here. If there was\n // no change, React will filter out this update as a no-op.\n setDims(Dimensions.get('window'));\n return () => {\n Dimensions.removeEventListener('change', handleChange);\n };\n }, []);\n return dims;\n}\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n * @jsdoc\n */\n\n'use strict';\n\nimport NativeVibration from './NativeVibration';\nconst Platform = require('../Utilities/Platform');\n\n/**\n * Vibration API\n *\n * See https://facebook.github.io/react-native/docs/vibration.html\n */\n\nlet _vibrating: boolean = false;\nlet _id: number = 0; // _id is necessary to prevent race condition.\nconst _default_vibration_length = 400;\n\nfunction vibrateByPattern(pattern: Array, repeat: boolean = false) {\n if (_vibrating) {\n return;\n }\n _vibrating = true;\n if (pattern[0] === 0) {\n NativeVibration.vibrate(_default_vibration_length);\n pattern = pattern.slice(1);\n }\n if (pattern.length === 0) {\n _vibrating = false;\n return;\n }\n setTimeout(() => vibrateScheduler(++_id, pattern, repeat, 1), pattern[0]);\n}\n\nfunction vibrateScheduler(\n id,\n pattern: Array,\n repeat: boolean,\n nextIndex: number,\n) {\n if (!_vibrating || id !== _id) {\n return;\n }\n NativeVibration.vibrate(_default_vibration_length);\n if (nextIndex >= pattern.length) {\n if (repeat) {\n nextIndex = 0;\n } else {\n _vibrating = false;\n return;\n }\n }\n setTimeout(\n () => vibrateScheduler(id, pattern, repeat, nextIndex + 1),\n pattern[nextIndex],\n );\n}\n\nconst Vibration = {\n /**\n * Trigger a vibration with specified `pattern`.\n *\n * See https://facebook.github.io/react-native/docs/vibration.html#vibrate\n */\n vibrate: function(\n pattern: number | Array = _default_vibration_length,\n repeat: boolean = false,\n ) {\n if (Platform.OS === 'android') {\n if (typeof pattern === 'number') {\n NativeVibration.vibrate(pattern);\n } else if (Array.isArray(pattern)) {\n NativeVibration.vibrateByPattern(pattern, repeat ? 0 : -1);\n } else {\n throw new Error('Vibration pattern should be a number or array');\n }\n } else {\n if (_vibrating) {\n return;\n }\n if (typeof pattern === 'number') {\n NativeVibration.vibrate(pattern);\n } else if (Array.isArray(pattern)) {\n vibrateByPattern(pattern, repeat);\n } else {\n throw new Error('Vibration pattern should be a number or array');\n }\n }\n },\n /**\n * Stop vibration\n *\n * See https://facebook.github.io/react-native/docs/vibration.html#cancel\n */\n cancel: function() {\n if (Platform.OS === 'ios') {\n _vibrating = false;\n } else {\n NativeVibration.cancel();\n }\n },\n};\n\nmodule.exports = Vibration;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {TurboModule} from '../TurboModule/RCTExport';\nimport * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +vibrate: (pattern: number) => void;\n\n // Android only\n +vibrateByPattern: (pattern: Array, repeat: number) => void;\n +cancel: () => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('Vibration'): Spec);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\n\nimport type {Registry, IgnorePattern} from './Data/YellowBoxRegistry';\nimport YellowBoxWarning from './Data/YellowBoxWarning';\n\nimport * as LogBoxData from '../LogBox/Data/LogBoxData';\nimport NativeLogBox from '../NativeModules/specs/NativeLogBox';\n\ntype Props = $ReadOnly<{||}>;\ntype State = {|\n registry: ?Registry,\n|};\n\nlet YellowBox;\n\n/**\n * YellowBox displays warnings at the bottom of the screen.\n *\n * Warnings help guard against subtle yet significant issues that can impact the\n * quality of the app. This \"in your face\" style of warning allows developers to\n * notice and correct these issues as quickly as possible.\n *\n * YellowBox is only enabled in `__DEV__`. Set the following flag to disable it:\n *\n * console.disableYellowBox = true;\n *\n * Ignore specific warnings by calling:\n *\n * YellowBox.ignoreWarnings(['Warning: ...']);\n *\n * Strings supplied to `YellowBox.ignoreWarnings` only need to be a substring of\n * the ignored warning messages.\n */\nif (__DEV__) {\n const Platform = require('../Utilities/Platform');\n const RCTLog = require('../Utilities/RCTLog');\n const YellowBoxContainer = require('./YellowBoxContainer').default;\n const LogBox = require('../LogBox/LogBox');\n const YellowBoxRegistry = require('./Data/YellowBoxRegistry');\n const LogBoxNotificationContainer = require('../LogBox/LogBoxNotificationContainer')\n .default;\n\n // YellowBox needs to insert itself early,\n // in order to access the component stacks appended by React DevTools.\n const {error, warn} = console;\n let errorImpl = error;\n let warnImpl = warn;\n let _isLogBoxEnabled = false;\n let _isInstalled = false;\n (console: any).error = function(...args) {\n errorImpl(...args);\n };\n (console: any).warn = function(...args) {\n warnImpl(...args);\n };\n\n // eslint-disable-next-line no-shadow\n YellowBox = class YellowBox extends React.Component {\n static ignoreWarnings(patterns: $ReadOnlyArray): void {\n LogBoxData.addIgnorePatterns(patterns);\n YellowBoxRegistry.addIgnorePatterns(patterns);\n }\n\n static install(): void {\n if (_isLogBoxEnabled) {\n LogBox.install();\n return;\n }\n _isInstalled = true;\n\n errorImpl = function(...args) {\n registerError(...args);\n };\n\n warnImpl = function(...args) {\n registerWarning(...args);\n };\n\n if ((console: any).disableYellowBox === true) {\n YellowBoxRegistry.setDisabled(true);\n }\n (Object.defineProperty: any)(console, 'disableYellowBox', {\n configurable: true,\n get: () => YellowBoxRegistry.isDisabled(),\n set: value => YellowBoxRegistry.setDisabled(value),\n });\n\n if (Platform.isTesting) {\n (console: any).disableYellowBox = true;\n }\n\n RCTLog.setWarningHandler((...args) => {\n registerWarning(...args);\n });\n }\n\n static uninstall(): void {\n if (_isLogBoxEnabled) {\n LogBox.uninstall();\n return;\n }\n _isInstalled = false;\n errorImpl = error;\n warnImpl = warn;\n delete (console: any).disableYellowBox;\n }\n\n static __unstable_enableLogBox(): void {\n if (NativeLogBox == null) {\n // The native module is required to enable LogBox.\n return;\n }\n\n if (_isInstalled) {\n throw new Error(\n 'LogBox must be enabled before AppContainer is required so that it can properly wrap the console methods.\\n\\nPlease enable LogBox earlier in your app.\\n\\n',\n );\n }\n _isLogBoxEnabled = true;\n\n // TODO: Temporary hack to prevent cycles with the ExceptionManager.\n global.__unstable_isLogBoxEnabled = true;\n }\n\n static __unstable_isLogBoxEnabled(): boolean {\n return !!_isLogBoxEnabled;\n }\n\n render(): React.Node {\n if (_isLogBoxEnabled) {\n return ;\n }\n\n // TODO: Ignore warnings that fire when rendering `YellowBox` itself.\n return ;\n }\n };\n\n const registerWarning = (...args): void => {\n if (typeof args[0] === 'string' && args[0].startsWith('(ADVICE)')) {\n return;\n }\n\n const {category, message, stack} = YellowBoxWarning.parse({\n args,\n });\n\n if (!YellowBoxRegistry.isWarningIgnored(message)) {\n YellowBoxRegistry.add({category, message, stack});\n warn.call(console, ...args);\n }\n };\n\n const registerError = (...args): void => {\n // Only show YellowBox for the `warning` module, otherwise pass through and skip.\n if (typeof args[0] !== 'string' || !args[0].startsWith('Warning: ')) {\n error.call(console, ...args);\n return;\n }\n\n const format = args[0].replace('Warning: ', '');\n const filterResult = LogBoxData.checkWarningFilter(format);\n if (filterResult.suppressCompletely) {\n return;\n }\n\n args[0] = filterResult.finalFormat;\n const {category, message, stack} = YellowBoxWarning.parse({\n args,\n });\n\n if (YellowBoxRegistry.isWarningIgnored(message)) {\n return;\n }\n\n if (filterResult.forceDialogImmediately === true) {\n // This will pop a redbox. Do not downgrade. These are real bugs with same severity as throws.\n error.call(console, message.content);\n } else {\n // Unfortunately, we need to add the Warning: prefix back so we don't show a redbox later.\n args[0] = `Warning: ${filterResult.finalFormat}`;\n\n // Note: YellowBox has no concept of \"soft errors\" so we're showing YellowBox for those.\n YellowBoxRegistry.add({category, message, stack});\n error.call(console, ...args);\n }\n };\n} else {\n YellowBox = class extends React.Component {\n static ignoreWarnings(patterns: $ReadOnlyArray): void {\n // Do nothing.\n }\n\n static install(): void {\n // Do nothing.\n }\n\n static uninstall(): void {\n // Do nothing.\n }\n\n static __unstable_enableLogBox(): void {\n // Do nothing.\n }\n static __unstable_isLogBoxEnabled(): boolean {\n return false;\n }\n\n render(): React.Node {\n return null;\n }\n };\n}\n\nmodule.exports = (YellowBox: Class> & {\n ignoreWarnings($ReadOnlyArray): void,\n install(): void,\n uninstall(): void,\n __unstable_enableLogBox(): void,\n __unstable_isLogBoxEnabled(): boolean,\n ...\n});\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst YellowBoxCategory = require('./YellowBoxCategory');\nconst YellowBoxSymbolication = require('./YellowBoxSymbolication');\n\nconst parseErrorStack = require('../../Core/Devtools/parseErrorStack');\n\nimport type {Category, Message} from './YellowBoxCategory';\nimport type {Stack} from './YellowBoxSymbolication';\n\nexport type SymbolicationRequest = $ReadOnly<{|\n abort: () => void,\n|}>;\n\nclass YellowBoxWarning {\n static parse({\n args,\n }: $ReadOnly<{|\n args: $ReadOnlyArray,\n |}>): {|\n category: Category,\n message: Message,\n stack: Stack,\n |} {\n let mutableArgs: Array = [...args];\n\n // This detects a very narrow case of a simple warning string,\n // with a component stack appended by React DevTools.\n // In this case, we convert the component stack to a substituion,\n // because YellowBox formats those pleasantly.\n // If there are other subtituations or formatting,\n // we bail to avoid potentially corrupting the data.\n if (mutableArgs.length === 2) {\n const first = mutableArgs[0];\n const last = mutableArgs[1];\n if (\n typeof first === 'string' &&\n typeof last === 'string' &&\n /^\\n {4}in/.exec(last)\n ) {\n mutableArgs[0] = first + '%s';\n }\n }\n\n return {\n ...YellowBoxCategory.parse(mutableArgs),\n // TODO: Use Error.captureStackTrace on Hermes\n stack: parseErrorStack(new Error()),\n };\n }\n\n message: Message;\n stack: Stack;\n symbolicated:\n | $ReadOnly<{|error: null, stack: null, status: 'NONE'|}>\n | $ReadOnly<{|error: null, stack: null, status: 'PENDING'|}>\n | $ReadOnly<{|error: null, stack: Stack, status: 'COMPLETE'|}>\n | $ReadOnly<{|error: Error, stack: null, status: 'FAILED'|}> = {\n error: null,\n stack: null,\n status: 'NONE',\n };\n\n constructor(message: Message, stack: Stack) {\n this.message = message;\n this.stack = stack;\n }\n\n getAvailableStack(): Stack {\n return this.symbolicated.status === 'COMPLETE'\n ? this.symbolicated.stack\n : this.stack;\n }\n\n retrySymbolicate(callback: () => void): SymbolicationRequest {\n YellowBoxSymbolication.delete(this.stack);\n return this.symbolicate(callback);\n }\n\n symbolicate(callback: () => void): SymbolicationRequest {\n let aborted = false;\n\n if (this.symbolicated.status !== 'COMPLETE') {\n const updateStatus = (error: ?Error, stack: ?Stack): void => {\n if (error != null) {\n this.symbolicated = {error, stack: null, status: 'FAILED'};\n } else if (stack != null) {\n this.symbolicated = {error: null, stack, status: 'COMPLETE'};\n } else {\n this.symbolicated = {error: null, stack: null, status: 'PENDING'};\n }\n if (!aborted) {\n callback();\n }\n };\n\n updateStatus(null, null);\n YellowBoxSymbolication.symbolicate(this.stack).then(\n stack => {\n updateStatus(null, stack);\n },\n error => {\n updateStatus(error, null);\n },\n );\n }\n\n return {\n abort(): void {\n aborted = true;\n },\n };\n }\n}\n\nmodule.exports = YellowBoxWarning;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst React = require('react');\nconst Text = require('../../Text/Text');\nconst UTFSequence = require('../../UTFSequence');\n\nconst stringifySafe = require('../../Utilities/stringifySafe');\n\nimport type {TextStyleProp} from '../../StyleSheet/StyleSheet';\n\nexport type Category = string;\nexport type Message = $ReadOnly<{|\n content: string,\n substitutions: $ReadOnlyArray<\n $ReadOnly<{|\n length: number,\n offset: number,\n |}>,\n >,\n|}>;\n\nconst SUBSTITUTION = UTFSequence.BOM + '%s';\n\nconst YellowBoxCategory = {\n parse(\n args: $ReadOnlyArray,\n ): $ReadOnly<{|\n category: Category,\n message: Message,\n |}> {\n const categoryParts = [];\n const contentParts = [];\n const substitutionOffsets = [];\n\n const remaining = [...args];\n\n if (typeof remaining[0] === 'string') {\n const formatString = String(remaining.shift());\n const formatStringParts = formatString.split('%s');\n const substitutionCount = formatStringParts.length - 1;\n const substitutions = remaining.splice(0, substitutionCount);\n\n let categoryString = '';\n let contentString = '';\n\n let substitutionIndex = 0;\n for (const formatStringPart of formatStringParts) {\n categoryString += formatStringPart;\n contentString += formatStringPart;\n\n if (substitutionIndex < substitutionCount) {\n if (substitutionIndex < substitutions.length) {\n // Don't stringify a string type.\n // It adds quotation mark wrappers around the string,\n // which causes the yellow box to look odd.\n const substitution =\n typeof substitutions[substitutionIndex] === 'string'\n ? substitutions[substitutionIndex]\n : stringifySafe(substitutions[substitutionIndex]);\n substitutionOffsets.push({\n length: substitution.length,\n offset: contentString.length,\n });\n\n categoryString += SUBSTITUTION;\n contentString += substitution;\n } else {\n substitutionOffsets.push({\n length: 2,\n offset: contentString.length,\n });\n\n categoryString += '%s';\n contentString += '%s';\n }\n\n substitutionIndex++;\n }\n }\n\n categoryParts.push(categoryString);\n contentParts.push(contentString);\n }\n\n const remainingArgs = remaining.map(arg => {\n // Don't stringify a string type.\n // It adds quotation mark wrappers around the string,\n // which causes the yellow box to look odd.\n return typeof arg === 'string' ? arg : stringifySafe(arg);\n });\n categoryParts.push(...remainingArgs);\n contentParts.push(...remainingArgs);\n\n return {\n category: categoryParts.join(' '),\n message: {\n content: contentParts.join(' '),\n substitutions: substitutionOffsets,\n },\n };\n },\n\n render(\n {content, substitutions}: Message,\n substitutionStyle: TextStyleProp,\n ): React.Node {\n const elements = [];\n\n const lastOffset = substitutions.reduce(\n (prevOffset, substitution, index) => {\n const key = String(index);\n\n if (substitution.offset > prevOffset) {\n const prevPart = content.substr(\n prevOffset,\n substitution.offset - prevOffset,\n );\n elements.push({prevPart});\n }\n\n const substititionPart = content.substr(\n substitution.offset,\n substitution.length,\n );\n elements.push(\n \n {substititionPart}\n ,\n );\n\n return substitution.offset + substitution.length;\n },\n 0,\n );\n\n if (lastOffset < content.length) {\n const lastPart = content.substr(lastOffset);\n elements.push({lastPart});\n }\n\n return elements;\n },\n};\n\nmodule.exports = YellowBoxCategory;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst symbolicateStackTrace = require('../../Core/Devtools/symbolicateStackTrace');\n\nimport type {StackFrame} from '../../Core/NativeExceptionsManager';\nimport type {SymbolicatedStackTrace} from '../../Core/Devtools/symbolicateStackTrace';\n\ntype CacheKey = string;\n\nexport type Stack = Array;\n\nconst cache: Map> = new Map();\n\nconst YellowBoxSymbolication = {\n delete(stack: Stack): void {\n cache.delete(getCacheKey(stack));\n },\n\n symbolicate(stack: Stack): Promise {\n const key = getCacheKey(stack);\n\n let promise = cache.get(key);\n if (promise == null) {\n promise = symbolicateStackTrace(stack).then(sanitize);\n cache.set(key, promise);\n }\n\n return promise;\n },\n};\n\nconst getCacheKey = (stack: Stack): CacheKey => {\n return JSON.stringify(stack);\n};\n\n/**\n * Sanitize because sometimes, `symbolicateStackTrace` gives us invalid values.\n */\nconst sanitize = (data: SymbolicatedStackTrace): Stack => {\n const maybeStack = data?.stack;\n if (!Array.isArray(maybeStack)) {\n throw new Error('Expected stack to be an array.');\n }\n const stack = [];\n for (const maybeFrame of maybeStack) {\n if (typeof maybeFrame !== 'object' || maybeFrame == null) {\n throw new Error('Expected each stack frame to be an object.');\n }\n if (typeof maybeFrame.column !== 'number' && maybeFrame.column != null) {\n throw new Error('Expected stack frame `column` to be a nullable number.');\n }\n if (typeof maybeFrame.file !== 'string') {\n throw new Error('Expected stack frame `file` to be a string.');\n }\n if (typeof maybeFrame.lineNumber !== 'number') {\n throw new Error('Expected stack frame `lineNumber` to be a number.');\n }\n if (typeof maybeFrame.methodName !== 'string') {\n throw new Error('Expected stack frame `methodName` to be a string.');\n }\n let collapse = false;\n if ('collapse' in maybeFrame) {\n if (typeof maybeFrame.collapse !== 'boolean') {\n throw new Error('Expected stack frame `collapse` to be a boolean.');\n }\n collapse = maybeFrame.collapse;\n }\n stack.push({\n column: maybeFrame.column,\n file: maybeFrame.file,\n lineNumber: maybeFrame.lineNumber,\n methodName: maybeFrame.methodName,\n collapse,\n });\n }\n return stack;\n};\n\nmodule.exports = YellowBoxSymbolication;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst PropTypes = require('prop-types');\n\nconst PointPropType: React$PropType$Primitive<{\n x?: number,\n y?: number,\n ...\n}> = PropTypes.shape({\n x: PropTypes.number,\n y: PropTypes.number,\n});\n\nmodule.exports = PointPropType;\n","import { combineReducers } from 'redux';\nimport SplashReducer from './SplashReducer.js';\nimport HomeReducer from './HomeReducer.js';\nimport VendorReducer from './VendorReducer.js';\nimport ProductReducer from './ProductReducer.js';\nimport FaqReducer from './FaqReducer.js';\nimport CategoryReducer from './CategoryReducer.js';\nimport SubCategoryReducer from './SubCategoryReducer.js';\nimport PrivacyReducer from './PrivacyReducer.js';\nimport RegisterReducer from './RegisterReducer.js';\nimport LoginReducer from './LoginReducer.js';\nimport AddressReducer from './AddressReducer.js';\nimport AddressListReducer from './AddressListReducer.js';\nimport PaymentReducer from './PaymentReducer.js';\nimport PrescriptionReducer from './PrescriptionReducer.js';\nimport CreatePrescriptionReducer from './CreatePrescriptionReducer.js';\nimport ViewPrescriptionReducer from './ViewPrescriptionReducer.js';\nimport CartReducer from './CartReducer.js';\nimport MyOrdersReducer from './MyOrdersReducer.js';\nimport PromoReducer from './PromoReducer.js';\nimport ProfileReducer from './ProfileReducer.js';\nimport ForgotReducer from './ForgotReducer.js';\nimport ResetReducer from './ResetReducer.js';\nconst allReducers = combineReducers({\n splash: SplashReducer,\n home: HomeReducer,\n vendor: VendorReducer,\n product:ProductReducer,\n faq:FaqReducer,\n category:CategoryReducer,\n sub_category:SubCategoryReducer,\n privacy:PrivacyReducer,\n register:RegisterReducer,\n login:LoginReducer,\n address:AddressReducer,\n address_list:AddressListReducer,\n payment:PaymentReducer,\n prescription:PrescriptionReducer,\n create_prescription:CreatePrescriptionReducer,\n view_prescription:ViewPrescriptionReducer,\n cart:CartReducer,\n myorders:MyOrdersReducer,\n promo:PromoReducer,\n profile:ProfileReducer,\n forgot:ForgotReducer,\n reset:ResetReducer,\n});\nexport default allReducers;","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar $$observable = _interopDefault(require('symbol-observable'));\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && \"action \\\"\" + String(actionType) + \"\\\"\" || 'an action';\n return \"Given \" + actionDescription + \", reducer \\\"\" + key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\";\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle \" + ActionTypes.INIT + \" or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(\"bindActionCreators expected an object or a function, instead received \" + (actionCreators === null ? 'null' : typeof actionCreators) + \". \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n keys.push.apply(keys, Object.getOwnPropertySymbols(object));\n }\n\n if (enumerableOnly) keys = keys.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread2({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexports.__DO_NOT_USE__ActionTypes = ActionTypes;\nexports.applyMiddleware = applyMiddleware;\nexports.bindActionCreators = bindActionCreators;\nexports.combineReducers = combineReducers;\nexports.compose = compose;\nexports.createStore = createStore;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ponyfill = require('./ponyfill.js');\n\nvar _ponyfill2 = _interopRequireDefault(_ponyfill);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar root; /* global window */\n\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = (0, _ponyfill2['default'])(root);\nexports['default'] = result;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports['default'] = symbolObservablePonyfill;\nfunction symbolObservablePonyfill(root) {\n\tvar result;\n\tvar _Symbol = root.Symbol;\n\n\tif (typeof _Symbol === 'function') {\n\t\tif (_Symbol.observable) {\n\t\t\tresult = _Symbol.observable;\n\t\t} else {\n\t\t\tresult = _Symbol('observable');\n\t\t\t_Symbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};","import * as Actions from '../actions/ActionTypes'\nconst SplashReducer = (state = { isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.SETTING_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.SETTING_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.SETTING_SERVICE_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default SplashReducer;\n","//Settings Service list api\nexport const SETTING_SERVICE_PENDING = 'SETTING_SERVICE_PENDING'\nexport const SETTING_SERVICE_ERROR = 'SETTING_SERVICE_ERROR'\nexport const SETTING_SERVICE_SUCCESS = 'SETTING_SERVICE_SUCCESS'\n\n//Payment list api\nexport const PAYMENT_LIST_PENDING = 'PAYMENT_LIST_PENDING'\nexport const PAYMENT_LIST_ERROR = 'PAYMENT_LIST_ERROR'\nexport const PAYMENT_LIST_SUCCESS = 'PAYMENT_LIST_SUCCESS'\n\n//Home Service list api\nexport const HOME_SERVICE_PENDING = 'HOME_SERVICE_PENDING'\nexport const HOME_SERVICE_ERROR = 'HOME_SERVICE_ERROR'\nexport const HOME_SERVICE_SUCCESS = 'HOME_SERVICE_SUCCESS'\n\n\n//vendordetail list api\nexport const VENDOR_SERVICE_PENDING = 'VENDOR_SERVICE_PENDING'\nexport const VENDOR_SERVICE_ERROR = 'VENDOR_SERVICE_ERROR'\nexport const VENDOR_SERVICE_SUCCESS = 'VENDOR_SERVICE_SUCCESS'\n\n\n//category list api\nexport const CATEGORY_SERVICE_PENDING = 'CATEGORY_SERVICE_PENDING'\nexport const CATEGORY_SERVICE_ERROR = 'CATEGORY_SERVICE_ERROR'\nexport const CATEGORY_SERVICE_SUCCESS = 'CATEGORY_SERVICE_SUCCESS'\n\n\n//Subcategory list api\nexport const SUBCATEGORY_SERVICE_PENDING = 'SUBCATEGORY_SERVICE_PENDING'\nexport const SUBCATEGORY_SERVICE_ERROR = 'SUBCATEGORY_SERVICE_ERROR'\nexport const SUBCATEGORY_SERVICE_SUCCESS = 'SUBCATEGORY_SERVICE_SUCCESS'\n\n//Prescription list api\nexport const PRESCRIPTION_LIST_PENDING = 'PRESCRIPTION_LIST_PENDING'\nexport const PRESCRIPTION_LIST_ERROR = 'PRESCRIPTION_LIST_ERROR'\nexport const PRESCRIPTION_LIST_SUCCESS = 'PRESCRIPTION_LIST_SUCCESS'\n\n//Prescription add api\nexport const CREATE_PRESCRIPTION_PENDING = 'CREATE_PRESCRIPTION_PENDING'\nexport const CREATE_PRESCRIPTION_ERROR = 'CREATE_PRESCRIPTION_ERROR'\nexport const CREATE_PRESCRIPTION_SUCCESS = 'CREATE_PRESCRIPTION_SUCCESS'\n\n//Prescription view api\nexport const REJECT_PRESCRIPTION_PENDING = 'REJECT_PRESCRIPTION_PENDING'\nexport const REJECT_PRESCRIPTION_ERROR = 'REJECT_PRESCRIPTION_ERROR'\nexport const REJECT_PRESCRIPTION_SUCCESS = 'REJECT_PRESCRIPTION_SUCCESS'\n\n\n//Faq list api\nexport const FAQ_LIST_PENDING = 'FAQ_LIST_PENDING'\nexport const FAQ_LIST_ERROR = 'FAQ_LIST_ERROR'\nexport const FAQ_LIST_SUCCESS = 'FAQ_LIST_SUCCESS'\n\n//Product list api\nexport const PRODUCT_LIST_PENDING = 'PRODUCT_LIST_PENDING'\nexport const PRODUCT_LIST_ERROR = 'PRODUCT_LIST_ERROR'\nexport const PRODUCT_LIST_SUCCESS = 'PRODUCT_LIST_SUCCESS'\nexport const ADD_TO_CART = 'ADD_TO_CART'\nexport const PRODUCT_RESET = 'PRODUCT_RESET'\nexport const PRODUCT_LIST_RESET = 'PRODUCT_LIST_RESET'\n\n//Register api\nexport const REGISTER_PENDING = 'REGISTER_PENDING'\nexport const REGISTER_ERROR = 'REGISTER_ERROR'\nexport const REGISTER_SUCCESS = 'REGISTER_SUCCESS'\n\n//Register api\nexport const LOGIN_PENDING = 'LOGIN_PENDING'\nexport const LOGIN_ERROR = 'LOGIN_ERROR'\nexport const LOGIN_SUCCESS = 'LOGIN_SUCCESS'\n\n//Address api\nexport const CREATE_ADDRESS_PENDING = 'CREATE_ADDRESS_PENDING'\nexport const CREATE_ADDRESS_ERROR = 'CREATE_ADDRESS_ERROR'\nexport const CREATE_ADDRESS_SUCCESS = 'CREATE_ADDRESS_SUCCESS'\n\nexport const EDIT_ADDRESS_PENDING = 'EDIT_ADDRESS_PENDING'\nexport const EDIT_ADDRESS_ERROR = 'EDIT_ADDRESS_ERROR'\nexport const EDIT_ADDRESS_SUCCESS = 'EDIT_ADDRESS_SUCCESS'\n\nexport const UPDATE_ADDRESS_PENDING = 'UPDATE_ADDRESS_PENDING'\nexport const UPDATE_ADDRESS_ERROR = 'UPDATE_ADDRESS_ERROR'\nexport const UPDATE_ADDRESS_SUCCESS = 'UPDATE_ADDRESS_SUCCESS'\n\nexport const LAT = 'LAT'\nexport const LNG = 'LNG'\nexport const ADDRESS = 'ADDRESS'\n\n//Address list api\nexport const ADDRESS_LIST_PENDING = 'ADDRESS_LIST_PENDING'\nexport const ADDRESS_LIST_ERROR = 'ADDRESS_LIST_ERROR'\nexport const ADDRESS_LIST_SUCCESS = 'ADDRESS_LIST_SUCCESS'\n\nexport const ADDRESS_DELETE_PENDING = 'ADDRESS_LIST_PENDING'\nexport const ADDRESS_DELETE_ERROR = 'ADDRESS_LIST_ERROR'\nexport const ADDRESS_DELETE_SUCCESS = 'ADDRESS_LIST_SUCCESS'\n\n//Cart api\nexport const SUB_TOTAL = 'SUB_TOTAL'\nexport const DELIVERY_CHARGE = 'DELIVERY_CHARGE'\nexport const TOTAL = 'TOTAL'\nexport const PROMO = 'PROMO'\nexport const CALCULATE_PRICING = 'CALCULATE_PRICING'\nexport const SELECT_ADDRESS = 'SELECT_ADDRESS'\nexport const SELECT_DATE = 'SELECT_DATE'\nexport const CURRENT_VENDOR = 'CURRENT_VENDOR'\nexport const PRODUCT_VENDOR = 'PRODUCT_VENDOR'\nexport const RESET = 'RESET'\nexport const DISABLE_LOADING = 'DISABLE_LOADING' \n\n\n//MyOrders api\nexport const MYORDERS_LIST_PENDING = 'MYORDERS_LIST_PENDING'\nexport const MYORDERS_LIST_ERROR = 'MYORDERS_LIST_ERROR'\nexport const MYORDERS_LIST_SUCCESS = 'MYORDERS_LIST_SUCCESS'\n\n//Promo Code api\nexport const PROMO_LIST_PENDING = 'PROMO_LIST_PENDING'\nexport const PROMO_LIST_ERROR = 'PROMO_LIST_ERROR'\nexport const PROMO_LIST_SUCCESS = 'PROMO_LIST_SUCCESS'\n\n//Profile api\nexport const EDIT_PROFILE_PENDING = 'EDIT_PROFILE_PENDING'\nexport const EDIT_PROFILE_ERROR = 'EDIT_PROFILE_ERROR'\nexport const EDIT_PROFILE_SUCCESS = 'EDIT_PROFILE_SUCCESS'\n\nexport const UPDATE_PROFILE_PENDING = 'UPDATE_PROFILE_PENDING'\nexport const UPDATE_PROFILE_ERROR = 'UPDATE_PROFILE_ERROR'\nexport const UPDATE_PROFILE_SUCCESS = 'UPDATE_PROFILE_SUCCESS'\n\nexport const UPDATE_PROFILE_PICTURE = 'UPDATE_PROFILE_PICTURE'\n\n//Forgot Service list api\nexport const FORGOT_SERVICE_PENDING = 'FORGOT_SERVICE_PENDING'\nexport const FORGOT_SERVICE_ERROR = 'FORGOT_SERVICE_ERROR'\nexport const FORGOT_SERVICE_SUCCESS = 'FORGOT_SERVICE_SUCCESS'\n\n//Otp Service list api\nexport const OTP_SERVICE_PENDING = 'OTP_SERVICE_PENDING'\nexport const OTP_SERVICE_ERROR = 'OTP_SERVICE_ERROR'\nexport const OTP_SERVICE_SUCCESS = 'OTP_SERVICE_SUCCESS'\n\n//Reset Service list api\nexport const RESET_SERVICE_PENDING = 'RESET_SERVICE_PENDING'\nexport const RESET_SERVICE_ERROR = 'RESET_SERVICE_ERROR'\nexport const RESET_SERVICE_SUCCESS = 'RESET_SERVICE_SUCCESS'\n\n//Payment Actions\nexport const ORDER_SERVICE_PENDING = 'ORDER_SERVICE_PENDING'\nexport const ORDER_SERVICE_ERROR = 'ORDER_SERVICE_ERROR'\nexport const ORDER_SERVICE_SUCCESS = 'ORDER_SERVICE_SUCCESS'\n\n//Privacy Policy Actions\nexport const PRIVACY_SERVICE_PENDING = 'PRIVACY_SERVICE_PENDING'\nexport const PRIVACY_SERVICE_ERROR = 'PRIVACY_SERVICE_ERROR'\nexport const PRIVACY_SERVICE_SUCCESS = 'PRIVACY_SERVICE_SUCCESS'\n","import * as Actions from '../actions/ActionTypes'\nconst HomeReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.HOME_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.HOME_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.HOME_SERVICE_SUCCESS:\n\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default HomeReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst VendorReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.VENDOR_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.VENDOR_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.VENDOR_SERVICE_SUCCESS:\n\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default VendorReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst ProductReducer = (state = { cart_count:undefined, cart_items:[], isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.PRODUCT_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.PRODUCT_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.PRODUCT_LIST_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n if(action.data.result.length == 0){\n action.data.result = 0;\n }\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n }\n case Actions.ADD_TO_CART:\n return Object.assign({}, state, {\n cart_items: action.data,\n cart_count : Object.keys(action.data).length\n });\n case Actions.PRODUCT_RESET:\n return Object.assign({}, state, {\n cart_items: [],\n cart_count : undefined\n });\n case Actions.PRODUCT_LIST_RESET:\n return Object.assign({}, state, {\n data:undefined\n });\n default:\n return state;\n }\n}\n\nexport default ProductReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst FaqReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.FAQ_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.FAQ_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.FAQ_LIST_SUCCESS:\n\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default FaqReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst CategoryReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.CATEGORY_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.CATEGORY_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.CATEGORY_SERVICE_SUCCESS:\n\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default CategoryReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst SubCategoryReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.SUBCATEGORY_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.SUBCATEGORY_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.SUBCATEGORY_SERVICE_SUCCESS:\n\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default SubCategoryReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst PrivacyReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.PRIVACY_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.PRIVACY_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.PRIVACY_SERVICE_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default PrivacyReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst RegisterReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.REGISTER_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.REGISTER_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.REGISTER_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default RegisterReducer;","import * as Actions from '../actions/ActionTypes'\nconst LoginReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.LOGIN_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.LOGIN_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.LOGIN_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default LoginReducer;","import * as Actions from '../actions/ActionTypes'\nconst AddressReducer = (state = { isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined, lat:0, lng:0, address:undefined }, action) => {\n switch (action.type) {\n case Actions.CREATE_ADDRESS_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.CREATE_ADDRESS_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.CREATE_ADDRESS_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n case Actions.EDIT_ADDRESS_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.EDIT_ADDRESS_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.EDIT_ADDRESS_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result\n });\n case Actions.UPDATE_ADDRESS_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.UPDATE_ADDRESS_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.UPDATE_ADDRESS_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n case Actions.LAT:\n return Object.assign({}, state, {\n lat: action.data,\n });\n case Actions.LNG:\n return Object.assign({}, state, {\n lng: action.data,\n });\n case Actions.ADDRESS:\n return Object.assign({}, state, {\n address: action.data,\n });\n default:\n return state;\n }\n}\n\nexport default AddressReducer;","import * as Actions from '../actions/ActionTypes'\nconst AddressListReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined, address_count:undefined }, action) => {\n switch (action.type) {\n case Actions.ADDRESS_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.ADDRESS_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.ADDRESS_LIST_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n address_count:action.data.result.length\n });\n }\n case Actions.ADDRESS_DELETE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.ADDRESS_DELETE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.ADDRESS_DELETE_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n address_count:action.data.result.length\n });\n }\n default:\n return state;\n }\n}\n\nexport default AddressListReducer;","import * as Actions from '../actions/ActionTypes'\nconst PaymentReducer = (state = { isLoding: false, error: undefined, payment_modes:[], data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.ORDER_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.ORDER_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.ORDER_SERVICE_SUCCESS: \n return Object.assign({}, state, {\n isLoding: false,\n data:action.data\n });\n case Actions.PAYMENT_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.PAYMENT_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.PAYMENT_LIST_SUCCESS: \n return Object.assign({}, state, {\n isLoding: false,\n payment_modes:action.data.result\n });\n \n \n default:\n return state;\n }\n}\n\nexport default PaymentReducer;","import * as Actions from '../actions/ActionTypes'\nconst PrescriptionReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.PRESCRIPTION_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.PRESCRIPTION_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.PRESCRIPTION_LIST_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n default:\n return state;\n }\n}\n\nexport default PrescriptionReducer;","import * as Actions from '../actions/ActionTypes'\nconst CreatePrescriptionReducer = (state = { address:undefined, isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.CREATE_PRESCRIPTION_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.CREATE_PRESCRIPTION_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.CREATE_PRESCRIPTION_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n address_id:undefined,\n address:undefined\n });\n \n default:\n return state;\n }\n}\n\nexport default CreatePrescriptionReducer;","import * as Actions from '../actions/ActionTypes'\nconst ViewPrescriptionReducer = (state = { isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.REJECT_PRESCRIPTION_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.REJECT_PRESCRIPTION_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.REJECT_PRESCRIPTION_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result\n });\n default:\n return state;\n }\n}\n\nexport default ViewPrescriptionReducer;","import * as Actions from '../actions/ActionTypes'\nconst CartReducer = (state = { isLoding: false, sub_total:0, delivery_charge:0, promo:undefined, promo_id:0, tax:0, total_amount:0, promo_amount:0, address:0, delivery_date:undefined, current_vendor:0, product_vendor:0 }, action) => {\n switch (action.type) {\n case Actions.CALCULATE_PRICING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.DISABLE_LOADING:\n return Object.assign({}, state, {\n isLoding: false,\n });\n case Actions.SUB_TOTAL:\n return Object.assign({}, state, {\n sub_total: action.data\n });\n case Actions.DELIVERY_CHARGE:\n return Object.assign({}, state, {\n delivery_charge: action.data\n }); \n case Actions.PROMO:\n return Object.assign({}, state, {\n promo: action.data,\n promo_id: action.data.id\n });\n case Actions.TOTAL:\n return Object.assign({}, state, {\n promo_amount: action.data.promo_amount,\n total_amount: action.data.total, \n tax: action.data.tax, \n isLoding: false \n }); \n case Actions.SELECT_ADDRESS:\n return Object.assign({}, state, {\n address: action.data\n });\n case Actions.SELECT_DATE:\n return Object.assign({}, state, {\n delivery_date: action.data\n });\n case Actions.CURRENT_VENDOR:\n return Object.assign({}, state, {\n current_vendor: action.data\n });\n case Actions.PRODUCT_VENDOR:\n return Object.assign({}, state, {\n product_vendor: action.data\n });\n case Actions.RESET:\n return Object.assign({}, state, {\n isLoding: false, \n sub_total:0, \n promo:undefined, \n promo_id:0, \n total_amount:0, \n promo_amount:0, \n address:0, \n delivery_date:undefined \n });\n default:\n return state;\n }\n}\n\nexport default CartReducer;","import * as Actions from '../actions/ActionTypes'\nconst MyOrdersReducer = (state = { isLoding: false, error: undefined, data:[], bookings:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.MYORDERS_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.MYORDERS_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.MYORDERS_LIST_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result.orders,\n bookings: action.data.result.booking_requests\n });\n } \n default:\n return state;\n }\n}\n\nexport default MyOrdersReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst PromoReducer = (state = { isLoding: false, error: undefined, data:[], message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.PROMO_LIST_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.PROMO_LIST_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.PROMO_LIST_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default PromoReducer;\n","import * as Actions from '../actions/ActionTypes'\nimport { img_url } from '../config/Constants';\nconst ProfileReducer = (state = { isLoding: false, error: undefined, data:{ customer_name:undefined, phone_number:undefined, email:undefined }, profile_picture:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.EDIT_PROFILE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.EDIT_PROFILE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.EDIT_PROFILE_SUCCESS:\n let data = action.data.result;\n let profile_picture = { uri: img_url + 'images/avatar.png' }\n if(data.profile_picture){\n profile_picture = { uri: img_url + data.profile_picture }\n }\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: data,\n profile_picture:profile_picture\n });\n case Actions.UPDATE_PROFILE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.UPDATE_PROFILE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.UPDATE_PROFILE_SUCCESS:\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result\n });\n case Actions.UPDATE_PROFILE_PICTURE:\n return Object.assign({}, state, {\n profile_picture : action.data\n });\n default:\n return state;\n }\n}\n\nexport default ProfileReducer;","import { Dimensions } from 'react-native';\n\n// export const base_url = \"http://mrpharman.demoproducts.in/\";\n// export const api_url = \"http://mrpharman.demoproducts.in/api/\";\nexport const settings = \"app_setting\";\n// export const img_url = \"http://mrpharman.demoproducts.in/public/uploads/\";\nexport const base_url = \"http://desihealth.rithlaundry.com/\";\nexport const api_url = \"http://desihealth.rithlaundry.com/api/\";\n// export const api_url1 = \"http://192.168.1.5:3000/api\";\nexport const api_url1 = \"https://desi-health-api.herokuapp.com/api\";\nexport const img_url = \"http://desihealth.rithlaundry.com/public/uploads/\";\nexport const chat_icon = img_url + 'chat_icons/patient.png';\nexport const vendor_category = \"vendor/category\";\nexport const sub_category = \"vendor/sub_category\";\nexport const faq = \"customer/faq\";\nexport const privacy = \"privacy_policy\";\nexport const products = \"vendor/products\";\nexport const search_products = \"search_products\";\nexport const related_products = \"related_products\";\nexport const register = \"customer\";\nexport const login = \"customer/login\";\nexport const address = \"address\";\nexport const address_list = \"address/all\";\nexport const address_delete = \"address/delete\";\nexport const my_orders = \"customer/bookings\";\nexport const order_details = \"customer/order_details\";\nexport const booking_details = \"customer/booking_details\";\nexport const promo_code = \"promo\";\nexport const get_profile = \"customer/get_profile\";\nexport const profile_picture = \"customer/profile_picture\";\nexport const forgot = \"customer/forgot_password\";\nexport const reset = \"customer/reset_password\";\nexport const place_order = \"order\";\nexport const image_upload = \"image_upload\";\nexport const prescription = \"prescription\";\nexport const prescription_list = \"prescription_list\";\nexport const order_generation = \"order_generation\";\nexport const reject_order = \"reject_order\";\nexport const get_payment_list = \"payment_modes\";\nexport const vendor_list = \"vendor_list\";\nexport const vendor_detail = \"vendor_detail\";\nexport const profile_update = \"customer/profile_update\";\nexport const filter = \"customer/filter\";\nexport const last_active_address = \"customer/last_active_address\";\nexport const get_taxes = \"get_taxes\";\nexport const get_wallet = \"customer/get_wallet\";\nexport const add_wallet = \"customer/add_wallet\";\nexport const rating_update = \"vendor/rating_upload\";\nexport const cancelation_reasons = \"cancelation_reasons\";\nexport const cancel_order = \"customer/cancel_order\";\nexport const home_banners = \"home_banners\";\nexport const get_doctors = \"customer/get_doctors\";\nexport const home_details = \"customer/home\";\nexport const create_booking = \"customer/create_booking\";\nexport const check_available_timing = \"customer/check_available_timing\";\nexport const doctor_details = \"doctor/detail\";\nexport const get_doctor_by_ratings = \"get_doctor_by_ratings\";\nexport const get_doctor_by_specialists = \"get_doctor_by_specialists\";\nexport const get_doctor_by_services = \"get_doctor_by_services\";\nexport const get_access_token_for_voice = \"get_access_token_for_voice\";\nexport const get_access_token_for_video = \"get_access_token_for_video\";\nexport const get_blood_list = \"blood_group\";\nexport const chat_pusher = \"chat_pusher\";\nexport const doctor_sub_category = \"doctor_sub_category\";\nexport const get_clinics = \"customer/get_clinics\";\nexport const get_nearest_doctor = \"customer/get_nearest_doctor\";\n\nexport const app_name = \"Desi Health Service\";\nexport const no_data = \"Sorry no data found...\";\n//Size\nexport const screenHeight = Math.round(Dimensions.get('window').height);\nexport const height_40 = Math.round(40 / 100 * screenHeight);\nexport const height_50 = Math.round(50 / 100 * screenHeight);\nexport const height_60 = Math.round(60 / 100 * screenHeight);\nexport const height_35 = Math.round(35 / 100 * screenHeight);\nexport const height_20 = Math.round(20 / 100 * screenHeight);\nexport const height_30 = Math.round(30 / 100 * screenHeight);\nexport const height_17 = Math.round(17 / 100 * screenHeight);\n\n//Path\n\nexport const logo_with_name = require('.././assets/img/logo_with_name.png');\nexport const splash = require('.././assets/img/splash.png');\nexport const logo_image = require('.././assets/img/logo.jpg');\nexport const heart = require('.././assets/img/heart.png');\nexport const forgot_password = require('.././assets/img/forgot.png');\nexport const otp_image = require('.././assets/img/otp.png');\nexport const reset_password = require('.././assets/img/reset_password.png');\nexport const loading = require('.././assets/img/loading.png');\nexport const pin = require('.././assets/img/location_pin.png');\nexport const tablet = require('.././assets/img/tablet.png');\nexport const list = require('.././assets/img/list.png');\nexport const banner1 = require('.././assets/img/banner1.jpeg');\nexport const banner2 = require('.././assets/img/banner2.jpeg');\nexport const banner3 = require('.././assets/img/banner3.jpeg');\nexport const upload = img_url + \"images/upload.png\";\nexport const safety_icon = require('.././assets/img/safety.png');\nexport const order_icon = require('.././assets/img/order.png');\nexport const trust_icon = require('.././assets/img/trust.png');\nexport const wallet_icon = require('.././assets/img/wallet.png');\nexport const doctor = require('.././assets/img/doctor.png');\nexport const location_icon = require('.././assets/img/location_icon.png');\nexport const dentist = require('.././assets/img/dentist.png');\nexport const cardiologist = require('.././assets/img/cardiologist.png');\nexport const orthopedics = require('.././assets/img/orthopedics.png');\nexport const surgery = require('.././assets/img/surgery.png');\nexport const tablet_house = require('.././assets/img/tablet_house.png');\nexport const doctor_one = require('.././assets/img/doctor_one.png');\nexport const doc = require('.././assets/img/doc.jpg');\nexport const covid = require('.././assets/img/covid.png');\nexport const headache = require('.././assets/img/headache.png');\nexport const fever = require('.././assets/img/fever.png');\nexport const diabetes= require('.././assets/img/diabetes.png');\nexport const throat_pain = require('.././assets/img/throat_pain.png');\nexport const back_pain = require('.././assets/img/back_pain.png');\nexport const cough = require('.././assets/img/cough.png');\nexport const acidity = require('.././assets/img/acidity.png');\nexport const infections = require('.././assets/img/infections.png');\nexport const weight_loss = require('.././assets/img/weight_loss.png');\nexport const constipation = require('.././assets/img/constipation.png');\nexport const depression = require('.././assets/img/depression.png');\nexport const hairfall = require('.././assets/img/hairfall.png');\nexport const anxiety = require('.././assets/img/anxiety.png');\nexport const stomach_ache = require('.././assets/img/stomach_ache.png');\nexport const blood_pressure = require('.././assets/img/blood_pressure.png');\nexport const location = require('.././assets/img/location.png');\nexport const doctor_image = require('.././assets/img/doctor_image.png');\nexport const doctorthree = require('.././assets/img/doctorthree.jpg');\n\n//Lottie\nexport const doctor_lottie = require('.././assets/json/noservice_lottie.json');\nexport const wallet_lottie = require('.././assets/json/noservice_lottie.json');\nexport const address_lottie = require('.././assets/json/noservice_lottie.json');\nexport const no_data_lottie = require('.././assets/json/no_data_lottie.json');\nexport const no_appointment_lottie = require('.././assets/json/no_appointment.json');\nexport const no_orders_lottie = require('.././assets/json/no_orders.json');\nexport const video_call = require('.././assets/json/74065-video-calling.json');\nexport const no_prescription_lottie = require('.././assets/json/no_prescription.json');\nexport const no_address_lottie = require('.././assets/json/no_address.json');\nexport const no_wallet_lottie = require('.././assets/json/no_wallet.json');\nexport const doctor_list = require('.././assets/json/doctor_list.json');\n\n//Font Family\nexport const font_description = \"GoogleSans-Medium\";\nexport const font_title = \"GoogleSans-Bold\";\n\n//Map\nexport const GOOGLE_KEY = \"ENTER GOOGLE MAP KEY\";\nexport const LATITUDE_DELTA = 0.0150;\nexport const LONGITUDE_DELTA =0.0152;\n\n//More Menu\nexport const menus = [\n {\n menu_name: 'Profile',\n icon: 'person',\n route:'Profile'\n },\n {\n menu_name: 'Manage Addresses',\n icon: 'pin',\n route:'AddressList'\n },\n {\n menu_name: 'Wallet',\n icon: 'wallet',\n route:'Wallet'\n },\n {\n menu_name: 'Faq',\n icon: 'help',\n route:'Faq'\n },\n {\n menu_name: 'Privacy Policy',\n icon: 'alert',\n route:'PrivacyPolicy'\n },\n {\n menu_name: 'Logout',\n icon: 'log-out',\n route:'Logout'\n },\n]\n\n","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","import * as Actions from '../actions/ActionTypes'\nconst ForgotReducer = (state = { isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.FORGOT_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.FORGOT_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.FORGOT_SERVICE_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message,\n data: action.data.result,\n });\n } \n default:\n return state;\n }\n}\n\nexport default ForgotReducer;\n","import * as Actions from '../actions/ActionTypes'\nconst ResetReducer = (state = { isLoding: false, error: undefined, data:undefined, message:undefined, status:undefined }, action) => {\n switch (action.type) {\n case Actions.RESET_SERVICE_PENDING:\n return Object.assign({}, state, {\n isLoding: true,\n });\n case Actions.RESET_SERVICE_ERROR:\n return Object.assign({}, state, {\n isLoding: false,\n error: action.error\n });\n case Actions.RESET_SERVICE_SUCCESS:\n if(action.data.status != 1){\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n }else{\n return Object.assign({}, state, {\n isLoding: false,\n status: action.data.status,\n message: action.data.message\n });\n } \n default:\n return state;\n }\n}\n\nexport default ResetReducer;\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\n\nvar _Provider = _interopRequireDefault(require(\"./components/Provider\"));\n\nexports.Provider = _Provider[\"default\"];\n\nvar _connectAdvanced = _interopRequireDefault(require(\"./components/connectAdvanced\"));\n\nexports.connectAdvanced = _connectAdvanced[\"default\"];\n\nvar _Context = require(\"./components/Context\");\n\nexports.ReactReduxContext = _Context.ReactReduxContext;\n\nvar _connect = _interopRequireDefault(require(\"./connect/connect\"));\n\nexports.connect = _connect[\"default\"];\n\nvar _useDispatch = require(\"./hooks/useDispatch\");\n\nexports.useDispatch = _useDispatch.useDispatch;\nexports.createDispatchHook = _useDispatch.createDispatchHook;\n\nvar _useSelector = require(\"./hooks/useSelector\");\n\nexports.useSelector = _useSelector.useSelector;\nexports.createSelectorHook = _useSelector.createSelectorHook;\n\nvar _useStore = require(\"./hooks/useStore\");\n\nexports.useStore = _useStore.useStore;\nexports.createStoreHook = _useStore.createStoreHook;\n\nvar _batch = require(\"./utils/batch\");\n\nvar _reactBatchedUpdates = require(\"./utils/reactBatchedUpdates\");\n\nexports.batch = _reactBatchedUpdates.unstable_batchedUpdates;\n\nvar _shallowEqual = _interopRequireDefault(require(\"./utils/shallowEqual\"));\n\nexports.shallowEqual = _shallowEqual[\"default\"];\n(0, _batch.setBatch)(_reactBatchedUpdates.unstable_batchedUpdates);","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _Context = require(\"./Context\");\n\nvar _Subscription = _interopRequireDefault(require(\"../utils/Subscription\"));\n\nfunction Provider(_ref) {\n var store = _ref.store,\n context = _ref.context,\n children = _ref.children;\n var contextValue = (0, _react.useMemo)(function () {\n var subscription = new _Subscription[\"default\"](store);\n subscription.onStateChange = subscription.notifyNestedSubs;\n return {\n store: store,\n subscription: subscription\n };\n }, [store]);\n var previousState = (0, _react.useMemo)(function () {\n return store.getState();\n }, [store]);\n (0, _react.useEffect)(function () {\n var subscription = contextValue.subscription;\n subscription.trySubscribe();\n\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n\n return function () {\n subscription.tryUnsubscribe();\n subscription.onStateChange = null;\n };\n }, [contextValue, previousState]);\n var Context = context || _Context.ReactReduxContext;\n return _react[\"default\"].createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nif (process.env.NODE_ENV !== 'production') {\n Provider.propTypes = {\n store: _propTypes[\"default\"].shape({\n subscribe: _propTypes[\"default\"].func.isRequired,\n dispatch: _propTypes[\"default\"].func.isRequired,\n getState: _propTypes[\"default\"].func.isRequired\n }),\n context: _propTypes[\"default\"].object,\n children: _propTypes[\"default\"].any\n };\n}\n\nvar _default = Provider;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports[\"default\"] = exports.ReactReduxContext = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar ReactReduxContext =\n/*#__PURE__*/\n_react[\"default\"].createContext(null);\n\nexports.ReactReduxContext = ReactReduxContext;\n\nif (process.env.NODE_ENV !== 'production') {\n ReactReduxContext.displayName = 'ReactRedux';\n}\n\nvar _default = ReactReduxContext;\nexports[\"default\"] = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\n\nvar _batch = require(\"./batch\");\n\n// encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\nvar nullListeners = {\n notify: function notify() {}\n};\n\nfunction createListenerCollection() {\n var batch = (0, _batch.getBatch)();\n var first = null;\n var last = null;\n return {\n clear: function clear() {\n first = null;\n last = null;\n },\n notify: function notify() {\n batch(function () {\n var listener = first;\n\n while (listener) {\n listener.callback();\n listener = listener.next;\n }\n });\n },\n get: function get() {\n var listeners = [];\n var listener = first;\n\n while (listener) {\n listeners.push(listener);\n listener = listener.next;\n }\n\n return listeners;\n },\n subscribe: function subscribe(callback) {\n var isSubscribed = true;\n var listener = last = {\n callback: callback,\n next: null,\n prev: last\n };\n\n if (listener.prev) {\n listener.prev.next = listener;\n } else {\n first = listener;\n }\n\n return function unsubscribe() {\n if (!isSubscribed || first === null) return;\n isSubscribed = false;\n\n if (listener.next) {\n listener.next.prev = listener.prev;\n } else {\n last = listener.prev;\n }\n\n if (listener.prev) {\n listener.prev.next = listener.next;\n } else {\n first = listener.next;\n }\n };\n }\n };\n}\n\nvar Subscription =\n/*#__PURE__*/\nfunction () {\n function Subscription(store, parentSub) {\n this.store = store;\n this.parentSub = parentSub;\n this.unsubscribe = null;\n this.listeners = nullListeners;\n this.handleChangeWrapper = this.handleChangeWrapper.bind(this);\n }\n\n var _proto = Subscription.prototype;\n\n _proto.addNestedSub = function addNestedSub(listener) {\n this.trySubscribe();\n return this.listeners.subscribe(listener);\n };\n\n _proto.notifyNestedSubs = function notifyNestedSubs() {\n this.listeners.notify();\n };\n\n _proto.handleChangeWrapper = function handleChangeWrapper() {\n if (this.onStateChange) {\n this.onStateChange();\n }\n };\n\n _proto.isSubscribed = function isSubscribed() {\n return Boolean(this.unsubscribe);\n };\n\n _proto.trySubscribe = function trySubscribe() {\n if (!this.unsubscribe) {\n this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper);\n this.listeners = createListenerCollection();\n }\n };\n\n _proto.tryUnsubscribe = function tryUnsubscribe() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n this.listeners.clear();\n this.listeners = nullListeners;\n }\n };\n\n return Subscription;\n}();\n\nexports[\"default\"] = Subscription;","\"use strict\";\n\nexports.__esModule = true;\nexports.getBatch = exports.setBatch = void 0;\n\n// Default to a dummy \"batch\" implementation that just runs the callback\nfunction defaultNoopBatch(callback) {\n callback();\n}\n\nvar batch = defaultNoopBatch; // Allow injecting another batching function later\n\nvar setBatch = function setBatch(newBatch) {\n return batch = newBatch;\n}; // Supply a getter just to skip dealing with ESM bindings\n\n\nexports.setBatch = setBatch;\n\nvar getBatch = function getBatch() {\n return batch;\n};\n\nexports.getBatch = getBatch;","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports[\"default\"] = connectAdvanced;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\n\nvar _hoistNonReactStatics = _interopRequireDefault(require(\"hoist-non-react-statics\"));\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _reactIs = require(\"react-is\");\n\nvar _Subscription = _interopRequireDefault(require(\"../utils/Subscription\"));\n\nvar _useIsomorphicLayoutEffect = require(\"../utils/useIsomorphicLayoutEffect\");\n\nvar _Context = require(\"./Context\");\n\n// Define some constant arrays just to avoid re-creating these\nvar EMPTY_ARRAY = [];\nvar NO_SUBSCRIPTION_ARRAY = [null, null];\n\nvar stringifyComponent = function stringifyComponent(Comp) {\n try {\n return JSON.stringify(Comp);\n } catch (err) {\n return String(Comp);\n }\n};\n\nfunction storeStateUpdatesReducer(state, action) {\n var updateCount = state[1];\n return [action.payload, updateCount + 1];\n}\n\nfunction useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {\n (0, _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)(function () {\n return effectFunc.apply(void 0, effectArgs);\n }, dependencies);\n}\n\nfunction captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs) {\n // We want to capture the wrapper props and child props we used for later comparisons\n lastWrapperProps.current = wrapperProps;\n lastChildProps.current = actualChildProps;\n renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update\n\n if (childPropsFromStoreUpdate.current) {\n childPropsFromStoreUpdate.current = null;\n notifyNestedSubs();\n }\n}\n\nfunction subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch) {\n // If we're not subscribed to the store, nothing to do here\n if (!shouldHandleStateChanges) return; // Capture values for checking if and when this component unmounts\n\n var didUnsubscribe = false;\n var lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component\n\n var checkForUpdates = function checkForUpdates() {\n if (didUnsubscribe) {\n // Don't run stale listeners.\n // Redux doesn't guarantee unsubscriptions happen until next dispatch.\n return;\n }\n\n var latestStoreState = store.getState();\n var newChildProps, error;\n\n try {\n // Actually run the selector with the most recent store state and wrapper props\n // to determine what the child props should be\n newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);\n } catch (e) {\n error = e;\n lastThrownError = e;\n }\n\n if (!error) {\n lastThrownError = null;\n } // If the child props haven't changed, nothing to do here - cascade the subscription update\n\n\n if (newChildProps === lastChildProps.current) {\n if (!renderIsScheduled.current) {\n notifyNestedSubs();\n }\n } else {\n // Save references to the new child props. Note that we track the \"child props from store update\"\n // as a ref instead of a useState/useReducer because we need a way to determine if that value has\n // been processed. If this went into useState/useReducer, we couldn't clear out the value without\n // forcing another re-render, which we don't want.\n lastChildProps.current = newChildProps;\n childPropsFromStoreUpdate.current = newChildProps;\n renderIsScheduled.current = true; // If the child props _did_ change (or we caught an error), this wrapper component needs to re-render\n\n forceComponentUpdateDispatch({\n type: 'STORE_UPDATED',\n payload: {\n error: error\n }\n });\n }\n }; // Actually subscribe to the nearest connected ancestor (or store)\n\n\n subscription.onStateChange = checkForUpdates;\n subscription.trySubscribe(); // Pull data from the store after first render in case the store has\n // changed since we began.\n\n checkForUpdates();\n\n var unsubscribeWrapper = function unsubscribeWrapper() {\n didUnsubscribe = true;\n subscription.tryUnsubscribe();\n subscription.onStateChange = null;\n\n if (lastThrownError) {\n // It's possible that we caught an error due to a bad mapState function, but the\n // parent re-rendered without this component and we're about to unmount.\n // This shouldn't happen as long as we do top-down subscriptions correctly, but\n // if we ever do those wrong, this throw will surface the error in our tests.\n // In that case, throw the error from here so it doesn't get lost.\n throw lastThrownError;\n }\n };\n\n return unsubscribeWrapper;\n}\n\nvar initStateUpdates = function initStateUpdates() {\n return [null, 0];\n};\n\nfunction connectAdvanced(\n/*\r\n selectorFactory is a func that is responsible for returning the selector function used to\r\n compute new props from state, props, and dispatch. For example:\r\n export default connectAdvanced((dispatch, options) => (state, props) => ({\r\n thing: state.things[props.thingId],\r\n saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),\r\n }))(YourComponent)\r\n Access to dispatch is provided to the factory so selectorFactories can bind actionCreators\r\n outside of their selector as an optimization. Options passed to connectAdvanced are passed to\r\n the selectorFactory, along with displayName and WrappedComponent, as the second argument.\r\n Note that selectorFactory is responsible for all caching/memoization of inbound and outbound\r\n props. Do not use connectAdvanced directly without memoizing results between calls to your\r\n selector, otherwise the Connect component will re-render on every state or props change.\r\n*/\nselectorFactory, // options object:\n_ref) {\n if (_ref === void 0) {\n _ref = {};\n }\n\n var _ref2 = _ref,\n _ref2$getDisplayName = _ref2.getDisplayName,\n getDisplayName = _ref2$getDisplayName === void 0 ? function (name) {\n return \"ConnectAdvanced(\" + name + \")\";\n } : _ref2$getDisplayName,\n _ref2$methodName = _ref2.methodName,\n methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName,\n _ref2$renderCountProp = _ref2.renderCountProp,\n renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp,\n _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges,\n shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta,\n _ref2$storeKey = _ref2.storeKey,\n storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey,\n _ref2$withRef = _ref2.withRef,\n withRef = _ref2$withRef === void 0 ? false : _ref2$withRef,\n _ref2$forwardRef = _ref2.forwardRef,\n forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,\n _ref2$context = _ref2.context,\n context = _ref2$context === void 0 ? _Context.ReactReduxContext : _ref2$context,\n connectOptions = (0, _objectWithoutPropertiesLoose2[\"default\"])(_ref2, [\"getDisplayName\", \"methodName\", \"renderCountProp\", \"shouldHandleStateChanges\", \"storeKey\", \"withRef\", \"forwardRef\", \"context\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (renderCountProp !== undefined) {\n throw new Error(\"renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension\");\n }\n\n if (withRef) {\n throw new Error('withRef is removed. To access the wrapped instance, use a ref on the connected component');\n }\n\n var customStoreWarningMessage = 'To use a custom Redux store for specific components, create a custom React context with ' + \"React.createContext(), and pass the context object to React Redux's Provider and specific components\" + ' like: . ' + 'You may also pass a {context : MyContext} option to connect';\n\n if (storeKey !== 'store') {\n throw new Error('storeKey has been removed and does not do anything. ' + customStoreWarningMessage);\n }\n }\n\n var Context = context;\n return function wrapWithConnect(WrappedComponent) {\n if (process.env.NODE_ENV !== 'production' && !(0, _reactIs.isValidElementType)(WrappedComponent)) {\n throw new Error(\"You must pass a component to the function returned by \" + (methodName + \". Instead received \" + stringifyComponent(WrappedComponent)));\n }\n\n var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n var displayName = getDisplayName(wrappedComponentName);\n var selectorFactoryOptions = (0, _extends2[\"default\"])({}, connectOptions, {\n getDisplayName: getDisplayName,\n methodName: methodName,\n renderCountProp: renderCountProp,\n shouldHandleStateChanges: shouldHandleStateChanges,\n storeKey: storeKey,\n displayName: displayName,\n wrappedComponentName: wrappedComponentName,\n WrappedComponent: WrappedComponent\n });\n var pure = connectOptions.pure;\n\n function createChildSelector(store) {\n return selectorFactory(store.dispatch, selectorFactoryOptions);\n } // If we aren't running in \"pure\" mode, we don't want to memoize values.\n // To avoid conditionally calling hooks, we fall back to a tiny wrapper\n // that just executes the given callback immediately.\n\n\n var usePureOnlyMemo = pure ? _react.useMemo : function (callback) {\n return callback();\n };\n\n function ConnectFunction(props) {\n var _useMemo = (0, _react.useMemo)(function () {\n // Distinguish between actual \"data\" props that were passed to the wrapper component,\n // and values needed to control behavior (forwarded refs, alternate context instances).\n // To maintain the wrapperProps object reference, memoize this destructuring.\n var forwardedRef = props.forwardedRef,\n wrapperProps = (0, _objectWithoutPropertiesLoose2[\"default\"])(props, [\"forwardedRef\"]);\n return [props.context, forwardedRef, wrapperProps];\n }, [props]),\n propsContext = _useMemo[0],\n forwardedRef = _useMemo[1],\n wrapperProps = _useMemo[2];\n\n var ContextToUse = (0, _react.useMemo)(function () {\n // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.\n // Memoize the check that determines which context instance we should use.\n return propsContext && propsContext.Consumer && (0, _reactIs.isContextConsumer)(_react[\"default\"].createElement(propsContext.Consumer, null)) ? propsContext : Context;\n }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available\n\n var contextValue = (0, _react.useContext)(ContextToUse); // The store _must_ exist as either a prop or in context.\n // We'll check to see if it _looks_ like a Redux store first.\n // This allows us to pass through a `store` prop that is just a plain value.\n\n var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);\n var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);\n\n if (process.env.NODE_ENV !== 'production' && !didStoreComeFromProps && !didStoreComeFromContext) {\n throw new Error(\"Could not find \\\"store\\\" in the context of \" + (\"\\\"\" + displayName + \"\\\". Either wrap the root component in a , \") + \"or pass a custom React context provider to and the corresponding \" + (\"React context consumer to \" + displayName + \" in connect options.\"));\n } // Based on the previous check, one of these must be true\n\n\n var store = didStoreComeFromProps ? props.store : contextValue.store;\n var childPropsSelector = (0, _react.useMemo)(function () {\n // The child props selector needs the store reference as an input.\n // Re-create this selector whenever the store changes.\n return createChildSelector(store);\n }, [store]);\n\n var _useMemo2 = (0, _react.useMemo)(function () {\n if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component\n // connected to the store via props shouldn't use subscription from context, or vice versa.\n\n var subscription = new _Subscription[\"default\"](store, didStoreComeFromProps ? null : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in\n // the middle of the notification loop, where `subscription` will then be null. This can\n // probably be avoided if Subscription's listeners logic is changed to not call listeners\n // that have been unsubscribed in the middle of the notification loop.\n\n var notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);\n return [subscription, notifyNestedSubs];\n }, [store, didStoreComeFromProps, contextValue]),\n subscription = _useMemo2[0],\n notifyNestedSubs = _useMemo2[1]; // Determine what {store, subscription} value should be put into nested context, if necessary,\n // and memoize that value to avoid unnecessary context updates.\n\n\n var overriddenContextValue = (0, _react.useMemo)(function () {\n if (didStoreComeFromProps) {\n // This component is directly subscribed to a store from props.\n // We don't want descendants reading from this store - pass down whatever\n // the existing context value is from the nearest connected ancestor.\n return contextValue;\n } // Otherwise, put this component's subscription instance into context, so that\n // connected descendants won't update until after this component is done\n\n\n return (0, _extends2[\"default\"])({}, contextValue, {\n subscription: subscription\n });\n }, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update\n // causes a change to the calculated child component props (or we caught an error in mapState)\n\n var _useReducer = (0, _react.useReducer)(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates),\n _useReducer$ = _useReducer[0],\n previousStateUpdateResult = _useReducer$[0],\n forceComponentUpdateDispatch = _useReducer[1]; // Propagate any mapState/mapDispatch errors upwards\n\n\n if (previousStateUpdateResult && previousStateUpdateResult.error) {\n throw previousStateUpdateResult.error;\n } // Set up refs to coordinate values between the subscription effect and the render logic\n\n\n var lastChildProps = (0, _react.useRef)();\n var lastWrapperProps = (0, _react.useRef)(wrapperProps);\n var childPropsFromStoreUpdate = (0, _react.useRef)();\n var renderIsScheduled = (0, _react.useRef)(false);\n var actualChildProps = usePureOnlyMemo(function () {\n // Tricky logic here:\n // - This render may have been triggered by a Redux store update that produced new child props\n // - However, we may have gotten new wrapper props after that\n // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.\n // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.\n // So, we'll use the child props from store update only if the wrapper props are the same as last time.\n if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {\n return childPropsFromStoreUpdate.current;\n } // TODO We're reading the store directly in render() here. Bad idea?\n // This will likely cause Bad Things (TM) to happen in Concurrent Mode.\n // Note that we do this because on renders _not_ caused by store updates, we need the latest store state\n // to determine what the child props should be.\n\n\n return childPropsSelector(store.getState(), wrapperProps);\n }, [store, previousStateUpdateResult, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns\n // about useLayoutEffect in SSR, so we try to detect environment and fall back to\n // just useEffect instead to avoid the warning, since neither will run anyway.\n\n useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]); // Our re-subscribe logic only runs when the store/subscription setup changes\n\n useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]); // Now that all that's done, we can finally try to actually render the child component.\n // We memoize the elements for the rendered child component as an optimization.\n\n var renderedWrappedComponent = (0, _react.useMemo)(function () {\n return _react[\"default\"].createElement(WrappedComponent, (0, _extends2[\"default\"])({}, actualChildProps, {\n ref: forwardedRef\n }));\n }, [forwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering\n // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.\n\n var renderedChild = (0, _react.useMemo)(function () {\n if (shouldHandleStateChanges) {\n // If this component is subscribed to store updates, we need to pass its own\n // subscription instance down to our descendants. That means rendering the same\n // Context instance, and putting a different value into the context.\n return _react[\"default\"].createElement(ContextToUse.Provider, {\n value: overriddenContextValue\n }, renderedWrappedComponent);\n }\n\n return renderedWrappedComponent;\n }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);\n return renderedChild;\n } // If we're in \"pure\" mode, ensure our wrapper component only re-renders when incoming props have changed.\n\n\n var Connect = pure ? _react[\"default\"].memo(ConnectFunction) : ConnectFunction;\n Connect.WrappedComponent = WrappedComponent;\n Connect.displayName = displayName;\n\n if (forwardRef) {\n var forwarded = _react[\"default\"].forwardRef(function forwardConnectRef(props, ref) {\n return _react[\"default\"].createElement(Connect, (0, _extends2[\"default\"])({}, props, {\n forwardedRef: ref\n }));\n });\n\n forwarded.displayName = displayName;\n forwarded.WrappedComponent = WrappedComponent;\n return (0, _hoistNonReactStatics[\"default\"])(forwarded, WrappedComponent);\n }\n\n return (0, _hoistNonReactStatics[\"default\"])(Connect, WrappedComponent);\n };\n}","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.useIsomorphicLayoutEffect = void 0;\n\nvar _react = require(\"react\");\n\n// Under React Native, we know that we always want to use useLayoutEffect\nvar useIsomorphicLayoutEffect = _react.useLayoutEffect;\nexports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.createConnect = createConnect;\nexports[\"default\"] = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\n\nvar _connectAdvanced = _interopRequireDefault(require(\"../components/connectAdvanced\"));\n\nvar _shallowEqual = _interopRequireDefault(require(\"../utils/shallowEqual\"));\n\nvar _mapDispatchToProps = _interopRequireDefault(require(\"./mapDispatchToProps\"));\n\nvar _mapStateToProps = _interopRequireDefault(require(\"./mapStateToProps\"));\n\nvar _mergeProps = _interopRequireDefault(require(\"./mergeProps\"));\n\nvar _selectorFactory = _interopRequireDefault(require(\"./selectorFactory\"));\n\n/*\r\n connect is a facade over connectAdvanced. It turns its args into a compatible\r\n selectorFactory, which has the signature:\r\n\r\n (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps\r\n \r\n connect passes its args to connectAdvanced as options, which will in turn pass them to\r\n selectorFactory each time a Connect component instance is instantiated or hot reloaded.\r\n\r\n selectorFactory returns a final props selector from its mapStateToProps,\r\n mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,\r\n mergePropsFactories, and pure args.\r\n\r\n The resulting final props selector is called by the Connect component instance whenever\r\n it receives new props or store state.\r\n */\nfunction match(arg, factories, name) {\n for (var i = factories.length - 1; i >= 0; i--) {\n var result = factories[i](arg);\n if (result) return result;\n }\n\n return function (dispatch, options) {\n throw new Error(\"Invalid value of type \" + typeof arg + \" for \" + name + \" argument when connecting component \" + options.wrappedComponentName + \".\");\n };\n}\n\nfunction strictEqual(a, b) {\n return a === b;\n} // createConnect with default args builds the 'official' connect behavior. Calling it with\n// different options opens up some testing and extensibility scenarios\n\n\nfunction createConnect(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$connectHOC = _ref.connectHOC,\n connectHOC = _ref$connectHOC === void 0 ? _connectAdvanced[\"default\"] : _ref$connectHOC,\n _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,\n mapStateToPropsFactories = _ref$mapStateToPropsF === void 0 ? _mapStateToProps[\"default\"] : _ref$mapStateToPropsF,\n _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,\n mapDispatchToPropsFactories = _ref$mapDispatchToPro === void 0 ? _mapDispatchToProps[\"default\"] : _ref$mapDispatchToPro,\n _ref$mergePropsFactor = _ref.mergePropsFactories,\n mergePropsFactories = _ref$mergePropsFactor === void 0 ? _mergeProps[\"default\"] : _ref$mergePropsFactor,\n _ref$selectorFactory = _ref.selectorFactory,\n selectorFactory = _ref$selectorFactory === void 0 ? _selectorFactory[\"default\"] : _ref$selectorFactory;\n\n return function connect(mapStateToProps, mapDispatchToProps, mergeProps, _ref2) {\n if (_ref2 === void 0) {\n _ref2 = {};\n }\n\n var _ref3 = _ref2,\n _ref3$pure = _ref3.pure,\n pure = _ref3$pure === void 0 ? true : _ref3$pure,\n _ref3$areStatesEqual = _ref3.areStatesEqual,\n areStatesEqual = _ref3$areStatesEqual === void 0 ? strictEqual : _ref3$areStatesEqual,\n _ref3$areOwnPropsEqua = _ref3.areOwnPropsEqual,\n areOwnPropsEqual = _ref3$areOwnPropsEqua === void 0 ? _shallowEqual[\"default\"] : _ref3$areOwnPropsEqua,\n _ref3$areStatePropsEq = _ref3.areStatePropsEqual,\n areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? _shallowEqual[\"default\"] : _ref3$areStatePropsEq,\n _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,\n areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? _shallowEqual[\"default\"] : _ref3$areMergedPropsE,\n extraOptions = (0, _objectWithoutPropertiesLoose2[\"default\"])(_ref3, [\"pure\", \"areStatesEqual\", \"areOwnPropsEqual\", \"areStatePropsEqual\", \"areMergedPropsEqual\"]);\n var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');\n var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');\n var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');\n return connectHOC(selectorFactory, (0, _extends2[\"default\"])({\n // used in error messages\n methodName: 'connect',\n // used to compute Connect's displayName from the wrapped component's displayName.\n getDisplayName: function getDisplayName(name) {\n return \"Connect(\" + name + \")\";\n },\n // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes\n shouldHandleStateChanges: Boolean(mapStateToProps),\n // passed through to selectorFactory\n initMapStateToProps: initMapStateToProps,\n initMapDispatchToProps: initMapDispatchToProps,\n initMergeProps: initMergeProps,\n pure: pure,\n areStatesEqual: areStatesEqual,\n areOwnPropsEqual: areOwnPropsEqual,\n areStatePropsEqual: areStatePropsEqual,\n areMergedPropsEqual: areMergedPropsEqual\n }, extraOptions));\n };\n}\n\nvar _default =\n/*#__PURE__*/\ncreateConnect();\n\nexports[\"default\"] = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = shallowEqual;\n\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return false;\n\n for (var i = 0; i < keysA.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.whenMapDispatchToPropsIsFunction = whenMapDispatchToPropsIsFunction;\nexports.whenMapDispatchToPropsIsMissing = whenMapDispatchToPropsIsMissing;\nexports.whenMapDispatchToPropsIsObject = whenMapDispatchToPropsIsObject;\nexports[\"default\"] = void 0;\n\nvar _redux = require(\"redux\");\n\nvar _wrapMapToProps = require(\"./wrapMapToProps\");\n\nfunction whenMapDispatchToPropsIsFunction(mapDispatchToProps) {\n return typeof mapDispatchToProps === 'function' ? (0, _wrapMapToProps.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : undefined;\n}\n\nfunction whenMapDispatchToPropsIsMissing(mapDispatchToProps) {\n return !mapDispatchToProps ? (0, _wrapMapToProps.wrapMapToPropsConstant)(function (dispatch) {\n return {\n dispatch: dispatch\n };\n }) : undefined;\n}\n\nfunction whenMapDispatchToPropsIsObject(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? (0, _wrapMapToProps.wrapMapToPropsConstant)(function (dispatch) {\n return (0, _redux.bindActionCreators)(mapDispatchToProps, dispatch);\n }) : undefined;\n}\n\nvar _default = [whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject];\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.wrapMapToPropsConstant = wrapMapToPropsConstant;\nexports.getDependsOnOwnProps = getDependsOnOwnProps;\nexports.wrapMapToPropsFunc = wrapMapToPropsFunc;\n\nvar _verifyPlainObject = _interopRequireDefault(require(\"../utils/verifyPlainObject\"));\n\nfunction wrapMapToPropsConstant(getConstant) {\n return function initConstantSelector(dispatch, options) {\n var constant = getConstant(dispatch, options);\n\n function constantSelector() {\n return constant;\n }\n\n constantSelector.dependsOnOwnProps = false;\n return constantSelector;\n };\n} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args\n// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine\n// whether mapToProps needs to be invoked when props have changed.\n//\n// A length of one signals that mapToProps does not depend on props from the parent component.\n// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and\n// therefore not reporting its length accurately..\n\n\nfunction getDependsOnOwnProps(mapToProps) {\n return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,\n// this function wraps mapToProps in a proxy function which does several things:\n//\n// * Detects whether the mapToProps function being called depends on props, which\n// is used by selectorFactory to decide if it should reinvoke on props changes.\n//\n// * On first call, handles mapToProps if returns another function, and treats that\n// new function as the true mapToProps for subsequent calls.\n//\n// * On first call, verifies the first result is a plain object, in order to warn\n// the developer that their mapToProps function is not returning a valid result.\n//\n\n\nfunction wrapMapToPropsFunc(mapToProps, methodName) {\n return function initProxySelector(dispatch, _ref) {\n var displayName = _ref.displayName;\n\n var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);\n }; // allow detectFactoryAndVerify to get ownProps\n\n\n proxy.dependsOnOwnProps = true;\n\n proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n proxy.mapToProps = mapToProps;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n var props = proxy(stateOrDispatch, ownProps);\n\n if (typeof props === 'function') {\n proxy.mapToProps = props;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n props = proxy(stateOrDispatch, ownProps);\n }\n\n if (process.env.NODE_ENV !== 'production') (0, _verifyPlainObject[\"default\"])(props, displayName, methodName);\n return props;\n };\n\n return proxy;\n };\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports[\"default\"] = verifyPlainObject;\n\nvar _isPlainObject = _interopRequireDefault(require(\"./isPlainObject\"));\n\nvar _warning = _interopRequireDefault(require(\"./warning\"));\n\nfunction verifyPlainObject(value, displayName, methodName) {\n if (!(0, _isPlainObject[\"default\"])(value)) {\n (0, _warning[\"default\"])(methodName + \"() in \" + displayName + \" must return a plain object. Instead received \" + value + \".\");\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = isPlainObject;\n\n/**\r\n * @param {any} obj The object to inspect.\r\n * @returns {boolean} True if the argument appears to be a plain object.\r\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = Object.getPrototypeOf(obj);\n if (proto === null) return true;\n var baseProto = proto;\n\n while (Object.getPrototypeOf(baseProto) !== null) {\n baseProto = Object.getPrototypeOf(baseProto);\n }\n\n return proto === baseProto;\n}","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = warning;\n\n/**\r\n * Prints a warning in the console if it exists.\r\n *\r\n * @param {String} message The warning message.\r\n * @returns {void}\r\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n /* eslint-disable no-empty */\n } catch (e) {}\n /* eslint-enable no-empty */\n\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.whenMapStateToPropsIsFunction = whenMapStateToPropsIsFunction;\nexports.whenMapStateToPropsIsMissing = whenMapStateToPropsIsMissing;\nexports[\"default\"] = void 0;\n\nvar _wrapMapToProps = require(\"./wrapMapToProps\");\n\nfunction whenMapStateToPropsIsFunction(mapStateToProps) {\n return typeof mapStateToProps === 'function' ? (0, _wrapMapToProps.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : undefined;\n}\n\nfunction whenMapStateToPropsIsMissing(mapStateToProps) {\n return !mapStateToProps ? (0, _wrapMapToProps.wrapMapToPropsConstant)(function () {\n return {};\n }) : undefined;\n}\n\nvar _default = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.defaultMergeProps = defaultMergeProps;\nexports.wrapMergePropsFunc = wrapMergePropsFunc;\nexports.whenMergePropsIsFunction = whenMergePropsIsFunction;\nexports.whenMergePropsIsOmitted = whenMergePropsIsOmitted;\nexports[\"default\"] = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _verifyPlainObject = _interopRequireDefault(require(\"../utils/verifyPlainObject\"));\n\nfunction defaultMergeProps(stateProps, dispatchProps, ownProps) {\n return (0, _extends2[\"default\"])({}, ownProps, {}, stateProps, {}, dispatchProps);\n}\n\nfunction wrapMergePropsFunc(mergeProps) {\n return function initMergePropsProxy(dispatch, _ref) {\n var displayName = _ref.displayName,\n pure = _ref.pure,\n areMergedPropsEqual = _ref.areMergedPropsEqual;\n var hasRunOnce = false;\n var mergedProps;\n return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n if (hasRunOnce) {\n if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;\n } else {\n hasRunOnce = true;\n mergedProps = nextMergedProps;\n if (process.env.NODE_ENV !== 'production') (0, _verifyPlainObject[\"default\"])(mergedProps, displayName, 'mergeProps');\n }\n\n return mergedProps;\n };\n };\n}\n\nfunction whenMergePropsIsFunction(mergeProps) {\n return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;\n}\n\nfunction whenMergePropsIsOmitted(mergeProps) {\n return !mergeProps ? function () {\n return defaultMergeProps;\n } : undefined;\n}\n\nvar _default = [whenMergePropsIsFunction, whenMergePropsIsOmitted];\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.impureFinalPropsSelectorFactory = impureFinalPropsSelectorFactory;\nexports.pureFinalPropsSelectorFactory = pureFinalPropsSelectorFactory;\nexports[\"default\"] = finalPropsSelectorFactory;\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\n\nvar _verifySubselectors = _interopRequireDefault(require(\"./verifySubselectors\"));\n\nfunction impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {\n return function impureFinalPropsSelector(state, ownProps) {\n return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);\n };\n}\n\nfunction pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {\n var areStatesEqual = _ref.areStatesEqual,\n areOwnPropsEqual = _ref.areOwnPropsEqual,\n areStatePropsEqual = _ref.areStatePropsEqual;\n var hasRunAtLeastOnce = false;\n var state;\n var ownProps;\n var stateProps;\n var dispatchProps;\n var mergedProps;\n\n function handleFirstCall(firstState, firstOwnProps) {\n state = firstState;\n ownProps = firstOwnProps;\n stateProps = mapStateToProps(state, ownProps);\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n hasRunAtLeastOnce = true;\n return mergedProps;\n }\n\n function handleNewPropsAndNewState() {\n stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewProps() {\n if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewState() {\n var nextStateProps = mapStateToProps(state, ownProps);\n var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n stateProps = nextStateProps;\n if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleSubsequentCalls(nextState, nextOwnProps) {\n var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n var stateChanged = !areStatesEqual(nextState, state);\n state = nextState;\n ownProps = nextOwnProps;\n if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n if (propsChanged) return handleNewProps();\n if (stateChanged) return handleNewState();\n return mergedProps;\n }\n\n return function pureFinalPropsSelector(nextState, nextOwnProps) {\n return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n };\n} // TODO: Add more comments\n// If pure is true, the selector returned by selectorFactory will memoize its results,\n// allowing connectAdvanced's shouldComponentUpdate to return false if final\n// props have not changed. If false, the selector will always return a new\n// object and shouldComponentUpdate will always return true.\n\n\nfunction finalPropsSelectorFactory(dispatch, _ref2) {\n var initMapStateToProps = _ref2.initMapStateToProps,\n initMapDispatchToProps = _ref2.initMapDispatchToProps,\n initMergeProps = _ref2.initMergeProps,\n options = (0, _objectWithoutPropertiesLoose2[\"default\"])(_ref2, [\"initMapStateToProps\", \"initMapDispatchToProps\", \"initMergeProps\"]);\n var mapStateToProps = initMapStateToProps(dispatch, options);\n var mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n var mergeProps = initMergeProps(dispatch, options);\n\n if (process.env.NODE_ENV !== 'production') {\n (0, _verifySubselectors[\"default\"])(mapStateToProps, mapDispatchToProps, mergeProps, options.displayName);\n }\n\n var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;\n return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports[\"default\"] = verifySubselectors;\n\nvar _warning = _interopRequireDefault(require(\"../utils/warning\"));\n\nfunction verify(selector, methodName, displayName) {\n if (!selector) {\n throw new Error(\"Unexpected value for \" + methodName + \" in \" + displayName + \".\");\n } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {\n if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {\n (0, _warning[\"default\"])(\"The selector for \" + methodName + \" of \" + displayName + \" did not specify a value for dependsOnOwnProps.\");\n }\n }\n}\n\nfunction verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, displayName) {\n verify(mapStateToProps, 'mapStateToProps', displayName);\n verify(mapDispatchToProps, 'mapDispatchToProps', displayName);\n verify(mergeProps, 'mergeProps', displayName);\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.createDispatchHook = createDispatchHook;\nexports.useDispatch = void 0;\n\nvar _Context = require(\"../components/Context\");\n\nvar _useStore = require(\"./useStore\");\n\n/**\r\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useDispatch` hook bound to the specified context.\r\n */\nfunction createDispatchHook(context) {\n if (context === void 0) {\n context = _Context.ReactReduxContext;\n }\n\n var useStore = context === _Context.ReactReduxContext ? _useStore.useStore : (0, _useStore.createStoreHook)(context);\n return function useDispatch() {\n var store = useStore();\n return store.dispatch;\n };\n}\n/**\r\n * A hook to access the redux `dispatch` function.\r\n *\r\n * @returns {any|function} redux store's `dispatch` function\r\n *\r\n * @example\r\n *\r\n * import React, { useCallback } from 'react'\r\n * import { useDispatch } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n * const dispatch = useDispatch()\r\n * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\r\n * return (\r\n *
\r\n * {value}\r\n * \r\n *
\r\n * )\r\n * }\r\n */\n\n\nvar useDispatch =\n/*#__PURE__*/\ncreateDispatchHook();\nexports.useDispatch = useDispatch;","\"use strict\";\n\nexports.__esModule = true;\nexports.createStoreHook = createStoreHook;\nexports.useStore = void 0;\n\nvar _react = require(\"react\");\n\nvar _Context = require(\"../components/Context\");\n\nvar _useReduxContext2 = require(\"./useReduxContext\");\n\n/**\r\n * Hook factory, which creates a `useStore` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useStore` hook bound to the specified context.\r\n */\nfunction createStoreHook(context) {\n if (context === void 0) {\n context = _Context.ReactReduxContext;\n }\n\n var useReduxContext = context === _Context.ReactReduxContext ? _useReduxContext2.useReduxContext : function () {\n return (0, _react.useContext)(context);\n };\n return function useStore() {\n var _useReduxContext = useReduxContext(),\n store = _useReduxContext.store;\n\n return store;\n };\n}\n/**\r\n * A hook to access the redux store.\r\n *\r\n * @returns {any} the redux store\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useStore } from 'react-redux'\r\n *\r\n * export const ExampleComponent = () => {\r\n * const store = useStore()\r\n * return
{store.getState()}
\r\n * }\r\n */\n\n\nvar useStore =\n/*#__PURE__*/\ncreateStoreHook();\nexports.useStore = useStore;","\"use strict\";\n\nexports.__esModule = true;\nexports.useReduxContext = useReduxContext;\n\nvar _react = require(\"react\");\n\nvar _Context = require(\"../components/Context\");\n\n/**\r\n * A hook to access the value of the `ReactReduxContext`. This is a low-level\r\n * hook that you should usually not need to call directly.\r\n *\r\n * @returns {any} the value of the `ReactReduxContext`\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useReduxContext } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n * const { store } = useReduxContext()\r\n * return
{store.getState()}
\r\n * }\r\n */\nfunction useReduxContext() {\n var contextValue = (0, _react.useContext)(_Context.ReactReduxContext);\n\n if (process.env.NODE_ENV !== 'production' && !contextValue) {\n throw new Error('could not find react-redux context value; please ensure the component is wrapped in a ');\n }\n\n return contextValue;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.createSelectorHook = createSelectorHook;\nexports.useSelector = void 0;\n\nvar _react = require(\"react\");\n\nvar _useReduxContext2 = require(\"./useReduxContext\");\n\nvar _Subscription = _interopRequireDefault(require(\"../utils/Subscription\"));\n\nvar _useIsomorphicLayoutEffect = require(\"../utils/useIsomorphicLayoutEffect\");\n\nvar _Context = require(\"../components/Context\");\n\nvar refEquality = function refEquality(a, b) {\n return a === b;\n};\n\nfunction useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub) {\n var _useReducer = (0, _react.useReducer)(function (s) {\n return s + 1;\n }, 0),\n forceRender = _useReducer[1];\n\n var subscription = (0, _react.useMemo)(function () {\n return new _Subscription[\"default\"](store, contextSub);\n }, [store, contextSub]);\n var latestSubscriptionCallbackError = (0, _react.useRef)();\n var latestSelector = (0, _react.useRef)();\n var latestSelectedState = (0, _react.useRef)();\n var selectedState;\n\n try {\n if (selector !== latestSelector.current || latestSubscriptionCallbackError.current) {\n selectedState = selector(store.getState());\n } else {\n selectedState = latestSelectedState.current;\n }\n } catch (err) {\n if (latestSubscriptionCallbackError.current) {\n err.message += \"\\nThe error may be correlated with this previous error:\\n\" + latestSubscriptionCallbackError.current.stack + \"\\n\\n\";\n }\n\n throw err;\n }\n\n (0, _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)(function () {\n latestSelector.current = selector;\n latestSelectedState.current = selectedState;\n latestSubscriptionCallbackError.current = undefined;\n });\n (0, _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)(function () {\n function checkForUpdates() {\n try {\n var newSelectedState = latestSelector.current(store.getState());\n\n if (equalityFn(newSelectedState, latestSelectedState.current)) {\n return;\n }\n\n latestSelectedState.current = newSelectedState;\n } catch (err) {\n // we ignore all errors here, since when the component\n // is re-rendered, the selectors are called again, and\n // will throw again, if neither props nor store state\n // changed\n latestSubscriptionCallbackError.current = err;\n }\n\n forceRender({});\n }\n\n subscription.onStateChange = checkForUpdates;\n subscription.trySubscribe();\n checkForUpdates();\n return function () {\n return subscription.tryUnsubscribe();\n };\n }, [store, subscription]);\n return selectedState;\n}\n/**\r\n * Hook factory, which creates a `useSelector` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useSelector` hook bound to the specified context.\r\n */\n\n\nfunction createSelectorHook(context) {\n if (context === void 0) {\n context = _Context.ReactReduxContext;\n }\n\n var useReduxContext = context === _Context.ReactReduxContext ? _useReduxContext2.useReduxContext : function () {\n return (0, _react.useContext)(context);\n };\n return function useSelector(selector, equalityFn) {\n if (equalityFn === void 0) {\n equalityFn = refEquality;\n }\n\n if (process.env.NODE_ENV !== 'production' && !selector) {\n throw new Error(\"You must pass a selector to useSelectors\");\n }\n\n var _useReduxContext = useReduxContext(),\n store = _useReduxContext.store,\n contextSub = _useReduxContext.subscription;\n\n return useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub);\n };\n}\n/**\r\n * A hook to access the redux store's state. This hook takes a selector function\r\n * as an argument. The selector is called with the store state.\r\n *\r\n * This hook takes an optional equality comparison function as the second parameter\r\n * that allows you to customize the way the selected state is compared to determine\r\n * whether the component needs to be re-rendered.\r\n *\r\n * @param {Function} selector the selector function\r\n * @param {Function=} equalityFn the function that will be used to determine equality\r\n *\r\n * @returns {any} the selected state\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useSelector } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const counter = useSelector(state => state.counter)\r\n * return
{counter}
\r\n * }\r\n */\n\n\nvar useSelector =\n/*#__PURE__*/\ncreateSelectorHook();\nexports.useSelector = useSelector;","\"use strict\";\n\nexports.__esModule = true;\n\nvar _reactNative = require(\"react-native\");\n\nexports.unstable_batchedUpdates = _reactNative.unstable_batchedUpdates;","import React, { Fragment } from \"react\";\nimport { createStackNavigator } from \"@react-navigation/stack\";\nimport { NavigationContainer } from \"@react-navigation/native\";\nimport { fromRight } from \"react-navigation-transitions\";\nimport Icon from \"react-native-vector-icons/Ionicons\";\nimport * as colors from \"./src/assets/css/Colors\";\nimport { createBottomTabNavigator } from \"@react-navigation/bottom-tabs\";\n\n\nimport {\n View,\n StyleSheet,\n Text,\n TextInput,\n ScrollView,\n Image,\n BackHandler,\n Keyboard,\n TouchableOpacity,\n Picker,\n} from \"react-native\";\n/* Screens */\nimport Splash from \"./src/views/Splash\";\nimport Home from \"./src/views/Home\";\nimport Pharmacy from \"./src/views/Pharmacy\";\nimport EditProduct from \"./src/views/EditProduct\";\nimport Call from \"./src/views/Call\";\nimport VideoCall from \"./src/views/VideoCall\";\nimport VendorDetails from \"./src/views/VendorDetails\";\nimport LocationSearch from \"./src/views/LocationSearch\";\nimport SubCategory from \"./src/views/SubCategory\";\nimport Product from \"./src/views/Product\";\nimport Category from \"./src/views/Category\";\nimport DoctorSubCategories from \"./src/views/DoctorSubCategories\";\nimport ProductDetails from \"./src/views/ProductDetails\";\nimport Promo from \"./src/views/Promo\";\nimport MyOrders from \"./src/views/MyOrders\";\nimport OrderDetails from \"./src/views/OrderDetails\";\nimport Cart from \"./src/views/Cart\";\nimport Profile from \"./src/views/Profile\";\nimport More from \"./src/views/More\";\nimport Prescription from \"./src/views/Prescription\";\nimport AddPrescription from \"./src/views/AddPrescription\";\nimport ViewPrescription from \"./src/views/ViewPrescription\";\nimport Address from \"./src/views/Address\";\nimport AddressList from \"./src/views/AddressList\";\nimport Payment from \"./src/views/Payment\";\nimport Login from \"./src/views/Login\";\nimport Register from \"./src/views/Register\";\nimport Faq from \"./src/views/Faq\";\nimport FaqDetails from \"./src/views/FaqDetails\";\nimport PrivacyPolicy from \"./src/views/PrivacyPolicy\";\nimport Forgot from \"./src/views/Forgot\";\nimport Otp from \"./src/views/Otp\";\nimport Rating from \"./src/views/Rating\";\nimport Reset from \"./src/views/Reset\";\nimport ContactUs from \"./src/views/ContactUs\";\nimport Logout from \"./src/views/Logout\";\nimport Search from \"./src/views/Search\";\nimport Wallet from \"./src/views/Wallet\";\nimport DoctorList from \"./src/views/DoctorList\";\nimport DoctorDetail from \"./src/views/DoctorDetail\";\nimport AppointmentDetail from \"./src/views/AppointmentDetail\";\nimport CreateAppointment from \"./src/views/CreateAppointment\";\nimport MyBookingDetails from \"./src/views/MyBookingDetails\";\nimport Chat from \"./src/views/Chat\";\nimport DoctorMap from \"./src/views/DoctorMap\";\nimport home from \"./src/assets/icons/home.png\";\nimport file from \"./src/assets/icons/file.png\";\nimport list from \"./src/assets/icons/list.png\";\nimport bag from \"./src/assets/icons/bag.png\";\nimport DoctorSymptoms from \"./src/views/DoctorSymptoms\";\nimport PharmacyDetail from \"./src/views/PharmacyDetail\";\nimport PrescriptionUpload from \"./src/views/PrescriptionUpload\";\nimport Success from \"./src/views/Success\";\nimport WalletAdd from \"./src/views/WalletAdd\";\nimport AddressMap from \"./src/views/AddressMap\";\nimport AddressEnter from \"./src/views/AddressEnter\";\nimport homeI from './src/assets/icons/icons/baseline_home_white_24dp.png'\nimport pharm from './src/assets/icons/icons/baseline_medical_services_white_24dp.png'\nimport orderI from './src/assets/icons/icons/baseline_toc_white_24dp.png'\nimport presI from './src/assets/icons/icons/baseline_description_white_24dp.png'\nimport moreI from './src/assets/icons/icons/baseline_more_horiz_white_24dp.png'\nimport AppointmentPayment from \"./src/views/AppointmentPayment\";\nconst Stack = createStackNavigator();\nconst Tab = createBottomTabNavigator();\n\nfunction MyTabs() {\n return (\n \n (\n // \n \n ),\n }}\n />\n (\n // \n \n ),\n }}\n />\n (\n // \n \n \n ),\n }}\n />\n (\n // \n \n \n ),\n }}\n />\n (\n \n ),\n }}\n />\n \n );\n}\n\nfunction App() {\n // changeIcon('panaux');\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\nexport default App;\n","import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators';\nimport * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators';\nimport * as TransitionSpecs from './TransitionConfigs/TransitionSpecs';\nimport * as TransitionPresets from './TransitionConfigs/TransitionPresets';\n\n/**\n * Navigators\n */\nexport { default as createStackNavigator } from './navigators/createStackNavigator';\n\nexport const Assets = [\n // eslint-disable-next-line import/no-commonjs\n require('./views/assets/back-icon.png'),\n // eslint-disable-next-line import/no-commonjs\n require('./views/assets/back-icon-mask.png'),\n];\n\n/**\n * Views\n */\nexport { default as StackView } from './views/Stack/StackView';\nexport { default as Header } from './views/Header/Header';\nexport { default as HeaderTitle } from './views/Header/HeaderTitle';\nexport { default as HeaderBackButton } from './views/Header/HeaderBackButton';\nexport { default as HeaderBackground } from './views/Header/HeaderBackground';\n\n/**\n * Transition presets\n */\nexport {\n CardStyleInterpolators,\n HeaderStyleInterpolators,\n TransitionSpecs,\n TransitionPresets,\n};\n\n/**\n * Utilities\n */\nexport { default as CardAnimationContext } from './utils/CardAnimationContext';\nexport { default as HeaderHeightContext } from './utils/HeaderHeightContext';\nexport { default as GestureHandlerRefContext } from './utils/GestureHandlerRefContext';\n\nexport { default as useCardAnimation } from './utils/useCardAnimation';\nexport { default as useHeaderHeight } from './utils/useHeaderHeight';\nexport { default as useGestureHandlerRef } from './utils/useGestureHandlerRef';\n\n/**\n * Types\n */\nexport type {\n StackNavigationOptions,\n StackNavigationProp,\n StackScreenProps,\n StackHeaderProps,\n StackHeaderLeftButtonProps,\n StackHeaderTitleProps,\n StackCardInterpolatedStyle,\n StackCardInterpolationProps,\n StackCardStyleInterpolator,\n StackHeaderInterpolatedStyle,\n StackHeaderInterpolationProps,\n StackHeaderStyleInterpolator,\n} from './types';\n","import { Animated } from 'react-native';\nimport { isIphoneX } from 'react-native-iphone-x-helper';\nimport conditional from '../utils/conditional';\nimport {\n StackCardInterpolationProps,\n StackCardInterpolatedStyle,\n} from '../types';\n\nconst { add, multiply } = Animated;\n\n/**\n * Standard iOS-style slide in from the right.\n */\nexport function forHorizontalIOS({\n current,\n next,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateFocused = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.width, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const translateUnfocused = next\n ? multiply(\n next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, screen.width * -0.3],\n extrapolate: 'clamp',\n }),\n inverted\n )\n : 0;\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.07],\n extrapolate: 'clamp',\n });\n\n const shadowOpacity = current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 0.3],\n extrapolate: 'clamp',\n });\n\n return {\n cardStyle: {\n transform: [\n // Translation for the animation of the current card\n { translateX: translateFocused },\n // Translation for the animation of the card on top of this\n { translateX: translateUnfocused },\n ],\n },\n overlayStyle: { opacity: overlayOpacity },\n shadowStyle: { shadowOpacity },\n };\n}\n\n/**\n * Standard iOS-style slide in from the bottom (used for modals).\n */\nexport function forVerticalIOS({\n current,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n return {\n cardStyle: {\n transform: [\n // Translation for the animation of the current card\n { translateY },\n ],\n },\n };\n}\n\n/**\n * Standard iOS-style modal animation in iOS 13.\n */\nexport function forModalPresentationIOS({\n index,\n current,\n next,\n inverted,\n layouts: { screen },\n insets,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const isLandscape = screen.width > screen.height;\n const topOffset = isLandscape ? 0 : 10;\n const statusBarHeight = insets.top;\n const aspectRatio = screen.height / screen.width;\n\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateY = multiply(\n progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [\n screen.height,\n index === 0 ? 0 : topOffset,\n (index === 0 ? statusBarHeight : 0) - topOffset * aspectRatio,\n ],\n }),\n inverted\n );\n\n const overlayOpacity = progress.interpolate({\n inputRange: [0, 1, 1.0001, 2],\n outputRange: [0, 0.3, 1, 1],\n });\n\n const scale = isLandscape\n ? 1\n : progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [\n 1,\n 1,\n screen.width ? 1 - (topOffset * 2) / screen.width : 1,\n ],\n });\n\n const borderRadius = isLandscape\n ? 0\n : index === 0\n ? progress.interpolate({\n inputRange: [0, 1, 1.0001, 2],\n outputRange: [0, 0, isIphoneX() ? 38 : 0, 10],\n })\n : 10;\n\n return {\n cardStyle: {\n overflow: 'hidden',\n borderTopLeftRadius: borderRadius,\n borderTopRightRadius: borderRadius,\n marginTop: index === 0 ? 0 : statusBarHeight,\n marginBottom: index === 0 ? 0 : topOffset,\n transform: [{ translateY }, { scale }],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Standard Android-style fade in from the bottom for Android Oreo.\n */\nexport function forFadeFromBottomAndroid({\n current,\n inverted,\n layouts: { screen },\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const translateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * 0.08, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const opacity = conditional(\n closing,\n current.progress,\n current.progress.interpolate({\n inputRange: [0, 0.5, 0.9, 1],\n outputRange: [0, 0.25, 0.7, 1],\n })\n );\n\n return {\n cardStyle: {\n opacity,\n transform: [{ translateY }],\n },\n };\n}\n\n/**\n * Standard Android-style reveal from the bottom for Android Pie.\n */\nexport function forRevealFromBottomAndroid({\n current,\n next,\n inverted,\n layouts: { screen },\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const containerTranslateY = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const cardTranslateYFocused = multiply(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [screen.height * (95.9 / 100) * -1, 0],\n extrapolate: 'clamp',\n }),\n inverted\n );\n\n const cardTranslateYUnfocused = next\n ? multiply(\n next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, screen.height * (2 / 100) * -1],\n extrapolate: 'clamp',\n }),\n inverted\n )\n : 0;\n\n const overlayOpacity = current.progress.interpolate({\n inputRange: [0, 0.36, 1],\n outputRange: [0, 0.1, 0.1],\n extrapolate: 'clamp',\n });\n\n return {\n containerStyle: {\n overflow: 'hidden',\n transform: [{ translateY: containerTranslateY }],\n },\n cardStyle: {\n transform: [\n { translateY: cardTranslateYFocused },\n { translateY: cardTranslateYUnfocused },\n ],\n },\n overlayStyle: { opacity: overlayOpacity },\n };\n}\n\n/**\n * Standard Android-style reveal from the bottom for Android Q.\n */\nexport function forScaleFromCenterAndroid({\n current,\n next,\n closing,\n}: StackCardInterpolationProps): StackCardInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const opacity = progress.interpolate({\n inputRange: [0, 0.8, 1, 1.2, 2],\n outputRange: [0, 0.5, 1, 0.33, 0],\n });\n\n const scale = conditional(\n closing,\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n extrapolate: 'clamp',\n }),\n progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [0.85, 1, 1.1],\n })\n );\n\n return {\n containerStyle: {\n opacity,\n transform: [{ scale }],\n },\n };\n}\n\nexport function forNoAnimation(): StackCardInterpolatedStyle {\n return {};\n}\n","import { Dimensions, Platform, StatusBar } from 'react-native';\n\nexport function isIphoneX() {\n const dimen = Dimensions.get('window');\n return (\n Platform.OS === 'ios' &&\n !Platform.isPad &&\n !Platform.isTVOS &&\n ((dimen.height === 812 || dimen.width === 812) || (dimen.height === 896 || dimen.width === 896))\n );\n}\n\nexport function ifIphoneX(iphoneXStyle, regularStyle) {\n if (isIphoneX()) {\n return iphoneXStyle;\n }\n return regularStyle;\n}\n\nexport function getStatusBarHeight(safe) {\n return Platform.select({\n ios: ifIphoneX(safe ? 44 : 30, 20),\n android: StatusBar.currentHeight,\n default: 0\n });\n}\n\nexport function getBottomSpace() {\n return isIphoneX() ? 34 : 0;\n}\n","import { Animated } from 'react-native';\n\nconst { add, multiply } = Animated;\n\n/**\n * Use an Animated Node based on a condition. Similar to Reanimated's `cond`.\n *\n * @param condition Animated Node representing the condition, must be 0 or 1, 1 means `true`, 0 means `false`\n * @param main Animated Node to use if the condition is `true`\n * @param fallback Animated Node to use if the condition is `false`\n */\nexport default function conditional(\n condition: Animated.AnimatedInterpolation,\n main: Animated.AnimatedInterpolation,\n fallback: Animated.AnimatedInterpolation\n) {\n // To implement this behavior, we multiply the main node with the condition.\n // So if condition is 0, result will be 0, and if condition is 1, result will be main node.\n // Then we multiple reverse of the condition (0 if condition is 1) with the fallback.\n // So if condition is 0, result will be fallback node, and if condition is 1, result will be 0,\n // This way, one of them will always be 0, and other one will be the value we need.\n // In the end we add them both together, 0 + value we need = value we need\n return add(\n multiply(condition, main),\n multiply(\n condition.interpolate({\n inputRange: [0, 1],\n outputRange: [1, 0],\n }),\n fallback\n )\n );\n}\n","import { Animated, I18nManager } from 'react-native';\nimport {\n StackHeaderInterpolationProps,\n StackHeaderInterpolatedStyle,\n} from '../types';\n\nconst { add } = Animated;\n\n/**\n * Standard UIKit style animation for the header where the title fades into the back button label.\n */\nexport function forUIKit({\n current,\n next,\n layouts,\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const defaultOffset = 100;\n const leftSpacing = 27;\n\n // The title and back button title should cross-fade to each other\n // When screen is fully open, the title should be in center, and back title should be on left\n // When screen is closing, the previous title will animate to back title's position\n // And back title will animate to title's position\n // We achieve this by calculating the offsets needed to translate title to back title's position and vice-versa\n const leftLabelOffset = layouts.leftLabel\n ? (layouts.screen.width - layouts.leftLabel.width) / 2 - leftSpacing\n : defaultOffset;\n const titleLeftOffset = layouts.title\n ? (layouts.screen.width - layouts.title.width) / 2 - leftSpacing\n : defaultOffset;\n\n // When the current title is animating to right, it is centered in the right half of screen in middle of transition\n // The back title also animates in from this position\n const rightOffset = layouts.screen.width / 4;\n\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n return {\n leftButtonStyle: {\n opacity: progress.interpolate({\n inputRange: [0.3, 1, 1.5],\n outputRange: [0, 1, 0],\n }),\n },\n leftLabelStyle: {\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.isRTL\n ? [-rightOffset, 0, leftLabelOffset]\n : [leftLabelOffset, 0, -rightOffset],\n }),\n },\n ],\n },\n rightButtonStyle: {\n opacity: progress.interpolate({\n inputRange: [0.3, 1, 1.5],\n outputRange: [0, 1, 0],\n }),\n },\n titleStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 0.4, 1, 1.5],\n outputRange: [0, 0.1, 1, 0],\n }),\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0.5, 1, 2],\n outputRange: I18nManager.isRTL\n ? [-titleLeftOffset, 0, rightOffset]\n : [rightOffset, 0, -titleLeftOffset],\n }),\n },\n ],\n },\n backgroundStyle: {\n transform: [\n {\n translateX: progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.isRTL\n ? [-layouts.screen.width, 0, layouts.screen.width]\n : [layouts.screen.width, 0, -layouts.screen.width],\n }),\n },\n ],\n },\n };\n}\n\n/**\n * Simple fade animation for the header elements.\n */\nexport function forFade({\n current,\n next,\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const opacity = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [0, 1, 0],\n });\n\n return {\n leftButtonStyle: { opacity },\n rightButtonStyle: { opacity },\n titleStyle: { opacity },\n backgroundStyle: {\n opacity: progress.interpolate({\n inputRange: [0, 1, 1.9, 2],\n outputRange: [0, 1, 1, 0],\n }),\n },\n };\n}\n\n/**\n * Simple translate animation to translate the header to left.\n */\nexport function forSlideLeft({\n current,\n next,\n layouts: { screen },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateX = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.isRTL\n ? [-screen.width, 0, screen.width]\n : [screen.width, 0, -screen.width],\n });\n\n const transform = [{ translateX }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\n/**\n * Simple translate animation to translate the header to right.\n */\nexport function forSlideRight({\n current,\n next,\n layouts: { screen },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateX = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: I18nManager.isRTL\n ? [screen.width, 0, -screen.width]\n : [-screen.width, 0, screen.width],\n });\n\n const transform = [{ translateX }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\n/**\n * Simple translate animation to translate the header to slide up.\n */\nexport function forSlideUp({\n current,\n next,\n layouts: { header },\n}: StackHeaderInterpolationProps): StackHeaderInterpolatedStyle {\n const progress = add(\n current.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }),\n next\n ? next.progress.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n })\n : 0\n );\n\n const translateY = progress.interpolate({\n inputRange: [0, 1, 2],\n outputRange: [-header.height, 0, -header.height],\n });\n\n const transform = [{ translateY }];\n\n return {\n leftButtonStyle: { transform },\n rightButtonStyle: { transform },\n titleStyle: { transform },\n backgroundStyle: { transform },\n };\n}\n\nexport function forNoAnimation(): StackHeaderInterpolatedStyle {\n return {};\n}\n","import { Easing } from 'react-native';\nimport { TransitionSpec } from '../types';\n\n/**\n * Exact values from UINavigationController's animation configuration.\n */\nexport const TransitionIOSSpec: TransitionSpec = {\n animation: 'spring',\n config: {\n stiffness: 1000,\n damping: 500,\n mass: 3,\n overshootClamping: true,\n restDisplacementThreshold: 10,\n restSpeedThreshold: 10,\n },\n};\n\n/**\n * Configuration for activity open animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const FadeInFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 350,\n easing: Easing.out(Easing.poly(5)),\n },\n};\n\n/**\n * Configuration for activity close animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml\n */\nexport const FadeOutToBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 150,\n easing: Easing.in(Easing.linear),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Pie.\n * See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const RevealFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 425,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Q.\n * See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const ScaleFromCenterAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 400,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n","import {\n forHorizontalIOS,\n forVerticalIOS,\n forScaleFromCenterAndroid,\n forRevealFromBottomAndroid,\n forFadeFromBottomAndroid,\n forModalPresentationIOS,\n} from './CardStyleInterpolators';\nimport { forFade } from './HeaderStyleInterpolators';\nimport {\n TransitionIOSSpec,\n ScaleFromCenterAndroidSpec,\n RevealFromBottomAndroidSpec,\n FadeOutToBottomAndroidSpec,\n FadeInFromBottomAndroidSpec,\n} from './TransitionSpecs';\nimport { TransitionPreset } from '../types';\nimport { Platform } from 'react-native';\n\nconst ANDROID_VERSION_PIE = 28;\n\n/**\n * Standard iOS navigation transition.\n */\nexport const SlideFromRightIOS: TransitionPreset = {\n gestureDirection: 'horizontal',\n transitionSpec: {\n open: TransitionIOSSpec,\n close: TransitionIOSSpec,\n },\n cardStyleInterpolator: forHorizontalIOS,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard iOS navigation transition for modals.\n */\nexport const ModalSlideFromBottomIOS: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: TransitionIOSSpec,\n close: TransitionIOSSpec,\n },\n cardStyleInterpolator: forVerticalIOS,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard iOS modal presentation style (introduced in iOS 13).\n */\nexport const ModalPresentationIOS: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: TransitionIOSSpec,\n close: TransitionIOSSpec,\n },\n cardStyleInterpolator: forModalPresentationIOS,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard Android navigation transition when opening or closing an Activity on Android < 9 (Oreo).\n */\nexport const FadeFromBottomAndroid: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: FadeInFromBottomAndroidSpec,\n close: FadeOutToBottomAndroidSpec,\n },\n cardStyleInterpolator: forFadeFromBottomAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard Android navigation transition when opening or closing an Activity on Android 9 (Pie).\n */\nexport const RevealFromBottomAndroid: TransitionPreset = {\n gestureDirection: 'vertical',\n transitionSpec: {\n open: RevealFromBottomAndroidSpec,\n close: RevealFromBottomAndroidSpec,\n },\n cardStyleInterpolator: forRevealFromBottomAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Standard Android navigation transition when opening or closing an Activity on Android 10 (Q).\n */\nexport const ScaleFromCenterAndroid: TransitionPreset = {\n gestureDirection: 'horizontal',\n transitionSpec: {\n open: ScaleFromCenterAndroidSpec,\n close: ScaleFromCenterAndroidSpec,\n },\n cardStyleInterpolator: forScaleFromCenterAndroid,\n headerStyleInterpolator: forFade,\n};\n\n/**\n * Default navigation transition for the current platform.\n */\nexport const DefaultTransition = Platform.select({\n ios: SlideFromRightIOS,\n default:\n Platform.OS === 'android' && Platform.Version >= ANDROID_VERSION_PIE\n ? RevealFromBottomAndroid\n : FadeFromBottomAndroid,\n});\n\n/**\n * Default modal transition for the current platform.\n */\nexport const ModalTransition = Platform.select({\n ios: ModalSlideFromBottomIOS,\n default: DefaultTransition,\n});\n","import * as React from 'react';\nimport { Platform } from 'react-native';\nimport {\n useNavigationBuilder,\n createNavigatorFactory,\n DefaultNavigatorOptions,\n EventArg,\n StackRouter,\n StackRouterOptions,\n StackNavigationState,\n StackActions,\n} from '@react-navigation/native';\nimport StackView from '../views/Stack/StackView';\nimport {\n StackNavigationConfig,\n StackNavigationOptions,\n StackNavigationEventMap,\n} from '../types';\n\ntype Props = DefaultNavigatorOptions &\n StackRouterOptions &\n StackNavigationConfig;\n\nfunction StackNavigator({\n initialRouteName,\n children,\n screenOptions,\n ...rest\n}: Props) {\n const defaultOptions = {\n gestureEnabled: Platform.OS === 'ios',\n animationEnabled: Platform.OS !== 'web',\n };\n\n const { state, descriptors, navigation } = useNavigationBuilder<\n StackNavigationState,\n StackRouterOptions,\n StackNavigationOptions,\n StackNavigationEventMap\n >(StackRouter, {\n initialRouteName,\n children,\n screenOptions:\n typeof screenOptions === 'function'\n ? (...args) => ({\n ...defaultOptions,\n ...screenOptions(...args),\n })\n : {\n ...defaultOptions,\n ...screenOptions,\n },\n });\n\n React.useEffect(\n () =>\n navigation.addListener &&\n navigation.addListener('tabPress', (e) => {\n const isFocused = navigation.isFocused();\n\n // Run the operation in the next frame so we're sure all listeners have been run\n // This is necessary to know if preventDefault() has been called\n requestAnimationFrame(() => {\n if (\n state.index > 0 &&\n isFocused &&\n !(e as EventArg<'tabPress', true>).defaultPrevented\n ) {\n // When user taps on already focused tab and we're inside the tab,\n // reset the stack to replicate native behaviour\n navigation.dispatch({\n ...StackActions.popToTop(),\n target: state.key,\n });\n }\n });\n }),\n [navigation, state.index, state.key]\n );\n\n return (\n \n );\n}\n\nexport default createNavigatorFactory<\n StackNavigationState,\n StackNavigationOptions,\n StackNavigationEventMap,\n typeof StackNavigator\n>(StackNavigator);\n","export * from '@react-navigation/core';\n\nexport { default as NavigationContainer } from './NavigationContainer';\n\nexport { default as useBackButton } from './useBackButton';\nexport { default as useScrollToTop } from './useScrollToTop';\n\nexport { default as DefaultTheme } from './theming/DefaultTheme';\nexport { default as DarkTheme } from './theming/DarkTheme';\nexport { default as ThemeProvider } from './theming/ThemeProvider';\nexport { default as useTheme } from './theming/useTheme';\n\nexport { default as Link } from './Link';\nexport { default as useLinking } from './useLinking';\nexport { default as useLinkTo } from './useLinkTo';\nexport { default as useLinkProps } from './useLinkProps';\nexport { default as useLinkBuilder } from './useLinkBuilder';\n","export * from '@react-navigation/routers';\n\nexport { default as BaseNavigationContainer } from './BaseNavigationContainer';\nexport { default as createNavigatorFactory } from './createNavigatorFactory';\n\nexport { default as NavigationHelpersContext } from './NavigationHelpersContext';\nexport { default as NavigationContext } from './NavigationContext';\nexport { default as NavigationRouteContext } from './NavigationRouteContext';\n\nexport { default as useNavigationBuilder } from './useNavigationBuilder';\nexport { default as useNavigation } from './useNavigation';\nexport { default as useRoute } from './useRoute';\nexport { default as useFocusEffect } from './useFocusEffect';\nexport { default as useIsFocused } from './useIsFocused';\nexport { default as useNavigationState } from './useNavigationState';\n\nexport { default as getStateFromPath } from './getStateFromPath';\nexport { default as getPathFromState } from './getPathFromState';\nexport { default as getActionFromState } from './getActionFromState';\n\nexport * from './types';\n","import * as CommonActions from './CommonActions';\n\nexport { CommonActions };\n\nexport { default as BaseRouter } from './BaseRouter';\n\nexport { default as StackRouter, StackActions } from './StackRouter';\n\nexport type {\n StackActionHelpers,\n StackActionType,\n StackRouterOptions,\n StackNavigationState,\n} from './StackRouter';\n\nexport { default as TabRouter, TabActions } from './TabRouter';\n\nexport type {\n TabActionHelpers,\n TabActionType,\n TabRouterOptions,\n TabNavigationState,\n} from './TabRouter';\n\nexport { default as DrawerRouter, DrawerActions } from './DrawerRouter';\n\nexport type {\n DrawerActionHelpers,\n DrawerActionType,\n DrawerRouterOptions,\n DrawerNavigationState,\n} from './DrawerRouter';\n\nexport * from './types';\n","import { NavigationState, PartialState } from './types';\n\nexport type Action =\n | {\n type: 'GO_BACK';\n source?: string;\n target?: string;\n }\n | {\n type: 'NAVIGATE';\n payload:\n | { key: string; name?: undefined; params?: object }\n | { name: string; key?: string; params?: object };\n source?: string;\n target?: string;\n }\n | {\n type: 'RESET';\n payload: PartialState;\n source?: string;\n target?: string;\n }\n | {\n type: 'SET_PARAMS';\n payload: { params?: object };\n source?: string;\n target?: string;\n };\n\nexport function goBack(): Action {\n return { type: 'GO_BACK' };\n}\n\nexport function navigate(\n route:\n | { key: string; params?: object }\n | { name: string; key?: string; params?: object }\n): Action;\nexport function navigate(name: string, params?: object): Action;\nexport function navigate(...args: any): Action {\n if (typeof args[0] === 'string') {\n return { type: 'NAVIGATE', payload: { name: args[0], params: args[1] } };\n } else {\n const payload = args[0] || {};\n\n if (!payload.hasOwnProperty('key') && !payload.hasOwnProperty('name')) {\n throw new Error(\n 'You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.'\n );\n }\n\n return { type: 'NAVIGATE', payload };\n }\n}\n\nexport function reset(state: PartialState): Action {\n return { type: 'RESET', payload: state };\n}\n\nexport function setParams(params: object): Action {\n return { type: 'SET_PARAMS', payload: { params } };\n}\n","import { nanoid } from 'nanoid/non-secure';\nimport { CommonNavigationAction, NavigationState, PartialState } from './types';\n\n/**\n * Base router object that can be used when writing custom routers.\n * This provides few helper methods to handle common actions such as `RESET`.\n */\nconst BaseRouter = {\n getStateForAction(\n state: State,\n action: CommonNavigationAction\n ): State | PartialState | null {\n switch (action.type) {\n case 'SET_PARAMS': {\n const index = action.source\n ? state.routes.findIndex((r) => r.key === action.source)\n : state.index;\n\n if (index === -1) {\n return null;\n }\n\n return {\n ...state,\n routes: state.routes.map((r, i) =>\n i === index\n ? { ...r, params: { ...r.params, ...action.payload.params } }\n : r\n ),\n };\n }\n\n case 'RESET': {\n const nextState = action.payload as State | PartialState;\n\n if (\n nextState.routes.length === 0 ||\n nextState.routes.some(\n (route: { name: string }) => !state.routeNames.includes(route.name)\n )\n ) {\n return null;\n }\n\n if (nextState.stale === false) {\n if (\n state.routeNames.length !== nextState.routeNames.length ||\n nextState.routeNames.some(\n (name) => !state.routeNames.includes(name)\n )\n ) {\n return null;\n }\n\n return {\n ...nextState,\n routes: nextState.routes.map((route) =>\n route.key ? route : { ...route, key: `${route.name}-${nanoid()}` }\n ),\n };\n }\n\n return nextState;\n }\n\n default:\n return null;\n }\n },\n\n shouldActionChangeFocus(action: CommonNavigationAction) {\n return action.type === 'NAVIGATE';\n },\n};\n\nexport default BaseRouter;\n","// This alphabet uses `A-Za-z0-9_-` symbols. The genetic algorithm helped\n// optimize the gzip compression for this alphabet.\nlet urlAlphabet =\n 'ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW'\n\nlet customAlphabet = (alphabet, size) => {\n return () => {\n let id = ''\n // A compact alternative for `for (var i = 0; i < step; i++)`.\n let i = size\n while (i--) {\n // `| 0` is more compact and faster than `Math.floor()`.\n id += alphabet[(Math.random() * alphabet.length) | 0]\n }\n return id\n }\n}\n\nlet nanoid = (size = 21) => {\n let id = ''\n // A compact alternative for `for (var i = 0; i < step; i++)`.\n let i = size\n while (i--) {\n // `| 0` is more compact and faster than `Math.floor()`.\n id += urlAlphabet[(Math.random() * 64) | 0]\n }\n return id\n}\n\nexport { nanoid, customAlphabet }\n","import { nanoid } from 'nanoid/non-secure';\nimport BaseRouter from './BaseRouter';\nimport {\n NavigationState,\n CommonNavigationAction,\n Router,\n DefaultRouterOptions,\n Route,\n ParamListBase,\n} from './types';\n\nexport type StackActionType =\n | {\n type: 'REPLACE';\n payload: { name: string; key?: string | undefined; params?: object };\n source?: string;\n target?: string;\n }\n | {\n type: 'PUSH';\n payload: { name: string; key?: string | undefined; params?: object };\n source?: string;\n target?: string;\n }\n | {\n type: 'POP';\n payload: { count: number };\n source?: string;\n target?: string;\n }\n | {\n type: 'POP_TO_TOP';\n source?: string;\n target?: string;\n };\n\nexport type StackRouterOptions = DefaultRouterOptions;\n\nexport type StackNavigationState = NavigationState & {\n /**\n * Type of the router, in this case, it's stack.\n */\n type: 'stack';\n};\n\nexport type StackActionHelpers = {\n /**\n * Replace the current route with a new one.\n *\n * @param name Route name of the new route.\n * @param [params] Params object for the new route.\n */\n replace(\n ...args: ParamList[RouteName] extends undefined\n ? [RouteName] | [RouteName, ParamList[RouteName]]\n : [RouteName, ParamList[RouteName]]\n ): void;\n\n /**\n * Push a new screen onto the stack.\n *\n * @param name Name of the route for the tab.\n * @param [params] Params object for the route.\n */\n push(\n ...args: ParamList[RouteName] extends undefined | any\n ? [RouteName] | [RouteName, ParamList[RouteName]]\n : [RouteName, ParamList[RouteName]]\n ): void;\n\n /**\n * Pop a screen from the stack.\n */\n pop(count?: number): void;\n\n /**\n * Pop to the first route in the stack, dismissing all other screens.\n */\n popToTop(): void;\n};\n\nexport const StackActions = {\n replace(name: string, params?: object): StackActionType {\n return { type: 'REPLACE', payload: { name, params } };\n },\n push(name: string, params?: object): StackActionType {\n return { type: 'PUSH', payload: { name, params } };\n },\n pop(count: number = 1): StackActionType {\n return { type: 'POP', payload: { count } };\n },\n popToTop(): StackActionType {\n return { type: 'POP_TO_TOP' };\n },\n};\n\nexport default function StackRouter(options: StackRouterOptions) {\n const router: Router<\n StackNavigationState,\n CommonNavigationAction | StackActionType\n > = {\n ...BaseRouter,\n\n type: 'stack',\n\n getInitialState({ routeNames, routeParamList }) {\n const initialRouteName =\n options.initialRouteName !== undefined &&\n routeNames.includes(options.initialRouteName)\n ? options.initialRouteName\n : routeNames[0];\n\n return {\n stale: false,\n type: 'stack',\n key: `stack-${nanoid()}`,\n index: 0,\n routeNames,\n routes: [\n {\n key: `${initialRouteName}-${nanoid()}`,\n name: initialRouteName,\n params: routeParamList[initialRouteName],\n },\n ],\n };\n },\n\n getRehydratedState(partialState, { routeNames, routeParamList }) {\n let state = partialState;\n\n if (state.stale === false) {\n return state;\n }\n\n const routes = state.routes\n .filter((route) => routeNames.includes(route.name))\n .map(\n (route) =>\n ({\n ...route,\n key: route.key || `${route.name}-${nanoid()}`,\n params:\n routeParamList[route.name] !== undefined\n ? {\n ...routeParamList[route.name],\n ...route.params,\n }\n : route.params,\n } as Route)\n );\n\n if (routes.length === 0) {\n const initialRouteName =\n options.initialRouteName !== undefined\n ? options.initialRouteName\n : routeNames[0];\n\n routes.push({\n key: `${initialRouteName}-${nanoid()}`,\n name: initialRouteName,\n params: routeParamList[initialRouteName],\n });\n }\n\n return {\n stale: false,\n type: 'stack',\n key: `stack-${nanoid()}`,\n index: routes.length - 1,\n routeNames,\n routes,\n };\n },\n\n getStateForRouteNamesChange(state, { routeNames, routeParamList }) {\n const routes = state.routes.filter((route) =>\n routeNames.includes(route.name)\n );\n\n if (routes.length === 0) {\n const initialRouteName =\n options.initialRouteName !== undefined &&\n routeNames.includes(options.initialRouteName)\n ? options.initialRouteName\n : routeNames[0];\n\n routes.push({\n key: `${initialRouteName}-${nanoid()}`,\n name: initialRouteName,\n params: routeParamList[initialRouteName],\n });\n }\n\n return {\n ...state,\n routeNames,\n routes,\n index: Math.min(state.index, routes.length - 1),\n };\n },\n\n getStateForRouteFocus(state, key) {\n const index = state.routes.findIndex((r) => r.key === key);\n\n if (index === -1 || index === state.index) {\n return state;\n }\n\n return {\n ...state,\n index,\n routes: state.routes.slice(0, index + 1),\n };\n },\n\n getStateForAction(state, action, options) {\n const { routeParamList } = options;\n\n switch (action.type) {\n case 'REPLACE': {\n const index =\n action.target === state.key && action.source\n ? state.routes.findIndex((r) => r.key === action.source)\n : state.index;\n\n if (index === -1) {\n return null;\n }\n\n const { name, key, params } = action.payload;\n\n if (!state.routeNames.includes(name)) {\n return null;\n }\n\n return {\n ...state,\n routes: state.routes.map((route, i) =>\n i === index\n ? {\n key: key !== undefined ? key : `${name}-${nanoid()}`,\n name,\n params:\n routeParamList[name] !== undefined\n ? {\n ...routeParamList[name],\n ...params,\n }\n : params,\n }\n : route\n ),\n };\n }\n\n case 'PUSH':\n if (state.routeNames.includes(action.payload.name)) {\n return {\n ...state,\n index: state.index + 1,\n routes: [\n ...state.routes,\n {\n key:\n action.payload.key === undefined\n ? `${action.payload.name}-${nanoid()}`\n : action.payload.key,\n name: action.payload.name,\n params:\n routeParamList[action.payload.name] !== undefined\n ? {\n ...routeParamList[action.payload.name],\n ...action.payload.params,\n }\n : action.payload.params,\n },\n ],\n };\n }\n\n return null;\n\n case 'POP': {\n const index =\n action.target === state.key && action.source\n ? state.routes.findIndex((r) => r.key === action.source)\n : state.index;\n\n if (index > 0) {\n const count = Math.max(index - action.payload.count + 1, 1);\n const routes = state.routes\n .slice(0, count)\n .concat(state.routes.slice(index + 1));\n\n return {\n ...state,\n index: routes.length - 1,\n routes,\n };\n }\n\n return null;\n }\n\n case 'POP_TO_TOP':\n return router.getStateForAction(\n state,\n {\n type: 'POP',\n payload: { count: state.routes.length - 1 },\n },\n options\n );\n\n case 'NAVIGATE':\n if (\n action.payload.key ||\n (action.payload.name &&\n state.routeNames.includes(action.payload.name))\n ) {\n // If the route already exists, navigate to that\n let index = -1;\n\n if (\n (state.routes[state.index].name === action.payload.name &&\n action.payload.key === undefined) ||\n state.routes[state.index].key === action.payload.key\n ) {\n index = state.index;\n } else {\n for (let i = state.routes.length - 1; i >= 0; i--) {\n if (\n (state.routes[i].name === action.payload.name &&\n action.payload.key === undefined) ||\n state.routes[i].key === action.payload.key\n ) {\n index = i;\n break;\n }\n }\n }\n\n if (\n index === -1 &&\n action.payload.key &&\n action.payload.name === undefined\n ) {\n return null;\n }\n\n if (index === -1 && action.payload.name !== undefined) {\n return router.getStateForAction(\n state,\n {\n type: 'PUSH',\n payload: {\n key: action.payload.key,\n name: action.payload.name,\n params: action.payload.params,\n },\n },\n options\n );\n }\n\n return {\n ...state,\n index,\n routes: [\n ...state.routes.slice(0, index),\n action.payload.params !== undefined\n ? {\n ...state.routes[index],\n params: {\n ...state.routes[index].params,\n ...action.payload.params,\n },\n }\n : state.routes[index],\n ],\n };\n }\n\n return null;\n\n case 'GO_BACK':\n if (state.index > 0) {\n return router.getStateForAction(\n state,\n {\n type: 'POP',\n payload: { count: 1 },\n target: action.target,\n source: action.source,\n },\n options\n );\n }\n\n return null;\n\n default:\n return BaseRouter.getStateForAction(state, action);\n }\n },\n\n actionCreators: StackActions,\n };\n\n return router;\n}\n","import { nanoid } from 'nanoid/non-secure';\nimport BaseRouter from './BaseRouter';\nimport {\n NavigationState,\n PartialState,\n CommonNavigationAction,\n Router,\n DefaultRouterOptions,\n Route,\n ParamListBase,\n} from './types';\n\nexport type TabActionType = {\n type: 'JUMP_TO';\n payload: { name: string; params?: object };\n source?: string;\n target?: string;\n};\n\nexport type BackBehavior = 'initialRoute' | 'order' | 'history' | 'none';\n\nexport type TabRouterOptions = DefaultRouterOptions & {\n backBehavior?: BackBehavior;\n};\n\nexport type TabNavigationState = Omit & {\n /**\n * Type of the router, in this case, it's tab.\n */\n type: 'tab';\n /**\n * List of previously visited route keys.\n */\n history: { type: 'route'; key: string }[];\n};\n\nexport type TabActionHelpers = {\n /**\n * Jump to an existing tab.\n *\n * @param name Name of the route for the tab.\n * @param [params] Params object for the route.\n */\n jumpTo>(\n ...args: ParamList[RouteName] extends undefined | any\n ? [RouteName] | [RouteName, ParamList[RouteName]]\n : [RouteName, ParamList[RouteName]]\n ): void;\n};\n\nconst TYPE_ROUTE = 'route' as const;\n\nexport const TabActions = {\n jumpTo(name: string, params?: object): TabActionType {\n return { type: 'JUMP_TO', payload: { name, params } };\n },\n};\n\nconst getRouteHistory = (\n routes: Route[],\n index: number,\n backBehavior: BackBehavior,\n initialRouteName: string | undefined\n) => {\n const history = [{ type: TYPE_ROUTE, key: routes[index].key }];\n let initialRouteIndex;\n\n switch (backBehavior) {\n case 'order':\n for (let i = index; i > 0; i--) {\n history.unshift({ type: TYPE_ROUTE, key: routes[i - 1].key });\n }\n break;\n case 'initialRoute':\n initialRouteIndex = routes.findIndex(\n (route) => route.name === initialRouteName\n );\n initialRouteIndex = initialRouteIndex === -1 ? 0 : initialRouteIndex;\n\n if (initialRouteIndex !== index) {\n history.unshift({\n type: TYPE_ROUTE,\n key: routes[initialRouteIndex].key,\n });\n }\n break;\n case 'history':\n // The history will fill up on navigation\n break;\n }\n\n return history;\n};\n\nconst changeIndex = (\n state: TabNavigationState,\n index: number,\n backBehavior: BackBehavior,\n initialRouteName: string | undefined\n) => {\n let history;\n\n if (backBehavior === 'history') {\n const currentKey = state.routes[index].key;\n\n history = state.history\n .filter((it) => (it.type === 'route' ? it.key !== currentKey : false))\n .concat({ type: TYPE_ROUTE, key: currentKey });\n } else {\n history = getRouteHistory(\n state.routes,\n index,\n backBehavior,\n initialRouteName\n );\n }\n\n return {\n ...state,\n index,\n history,\n };\n};\n\nexport default function TabRouter({\n initialRouteName,\n backBehavior = 'history',\n}: TabRouterOptions) {\n const router: Router<\n TabNavigationState,\n TabActionType | CommonNavigationAction\n > = {\n ...BaseRouter,\n\n type: 'tab',\n\n getInitialState({ routeNames, routeParamList }) {\n const index =\n initialRouteName !== undefined && routeNames.includes(initialRouteName)\n ? routeNames.indexOf(initialRouteName)\n : 0;\n\n const routes = routeNames.map((name) => ({\n name,\n key: `${name}-${nanoid()}`,\n params: routeParamList[name],\n }));\n\n const history = getRouteHistory(\n routes,\n index,\n backBehavior,\n initialRouteName\n );\n\n return {\n stale: false,\n type: 'tab',\n key: `tab-${nanoid()}`,\n index,\n routeNames,\n history,\n routes,\n };\n },\n\n getRehydratedState(partialState, { routeNames, routeParamList }) {\n let state = partialState;\n\n if (state.stale === false) {\n return state;\n }\n\n const routes = routeNames.map((name) => {\n const route = (state as PartialState).routes.find(\n (r) => r.name === name\n );\n\n return {\n ...route,\n name,\n key:\n route && route.name === name && route.key\n ? route.key\n : `${name}-${nanoid()}`,\n params:\n routeParamList[name] !== undefined\n ? {\n ...routeParamList[name],\n ...(route ? route.params : undefined),\n }\n : route\n ? route.params\n : undefined,\n } as Route;\n });\n\n const index = Math.min(\n Math.max(\n typeof state.index === 'number'\n ? state.index\n : routeNames.indexOf(state.routes[0].name),\n 0\n ),\n routes.length - 1\n );\n\n let history = state.history?.filter((it) =>\n routes.find((r) => r.key === it.key)\n );\n\n if (!history?.length) {\n history = getRouteHistory(\n routes,\n index,\n backBehavior,\n initialRouteName\n );\n }\n\n return {\n stale: false,\n type: 'tab',\n key: `tab-${nanoid()}`,\n index,\n routeNames,\n history,\n routes,\n };\n },\n\n getStateForRouteNamesChange(state, { routeNames, routeParamList }) {\n const routes = routeNames.map(\n (name) =>\n state.routes.find((r) => r.name === name) || {\n name,\n key: `${name}-${nanoid()}`,\n params: routeParamList[name],\n }\n );\n\n const index = Math.max(\n 0,\n routeNames.indexOf(state.routes[state.index].name)\n );\n\n let history = state.history.filter((it) =>\n routes.find((r) => r.key === it.key)\n );\n\n if (!history.length) {\n history = getRouteHistory(\n routes,\n index,\n backBehavior,\n initialRouteName\n );\n }\n\n return {\n ...state,\n history,\n routeNames,\n routes,\n index,\n };\n },\n\n getStateForRouteFocus(state, key) {\n const index = state.routes.findIndex((r) => r.key === key);\n\n if (index === -1 || index === state.index) {\n return state;\n }\n\n return changeIndex(state, index, backBehavior, initialRouteName);\n },\n\n getStateForAction(state, action) {\n switch (action.type) {\n case 'JUMP_TO':\n case 'NAVIGATE': {\n let index = -1;\n\n if (action.type === 'NAVIGATE' && action.payload.key) {\n index = state.routes.findIndex(\n (route) => route.key === action.payload.key\n );\n } else {\n index = state.routes.findIndex(\n (route) => route.name === action.payload.name\n );\n }\n\n if (index === -1) {\n return null;\n }\n\n return changeIndex(\n {\n ...state,\n routes:\n action.payload.params !== undefined\n ? state.routes.map((route, i) =>\n i === index\n ? {\n ...route,\n params: {\n ...route.params,\n ...action.payload.params,\n },\n }\n : route\n )\n : state.routes,\n },\n index,\n backBehavior,\n initialRouteName\n );\n }\n\n case 'GO_BACK': {\n if (state.history.length === 1) {\n return null;\n }\n\n const previousKey = state.history[state.history.length - 2].key;\n const index = state.routes.findIndex(\n (route) => route.key === previousKey\n );\n\n if (index === -1) {\n return null;\n }\n\n return {\n ...state,\n history: state.history.slice(0, -1),\n index,\n };\n }\n\n default:\n return BaseRouter.getStateForAction(state, action);\n }\n },\n\n shouldActionChangeFocus(action) {\n return action.type === 'NAVIGATE';\n },\n\n actionCreators: TabActions,\n };\n\n return router;\n}\n","import { nanoid } from 'nanoid/non-secure';\nimport {\n PartialState,\n CommonNavigationAction,\n Router,\n ParamListBase,\n} from './types';\nimport TabRouter, {\n TabActions,\n TabActionType,\n TabRouterOptions,\n TabNavigationState,\n TabActionHelpers,\n} from './TabRouter';\n\nexport type DrawerActionType =\n | TabActionType\n | {\n type: 'OPEN_DRAWER' | 'CLOSE_DRAWER' | 'TOGGLE_DRAWER';\n source?: string;\n target?: string;\n };\n\nexport type DrawerRouterOptions = TabRouterOptions & {\n openByDefault?: boolean;\n};\n\nexport type DrawerNavigationState = Omit<\n TabNavigationState,\n 'type' | 'history'\n> & {\n /**\n * Type of the router, in this case, it's drawer.\n */\n type: 'drawer';\n /**\n * List of previously visited route keys and drawer open status.\n */\n history: ({ type: 'route'; key: string } | { type: 'drawer' })[];\n};\n\nexport type DrawerActionHelpers<\n ParamList extends ParamListBase\n> = TabActionHelpers & {\n /**\n * Open the drawer sidebar.\n */\n openDrawer(): void;\n\n /**\n * Close the drawer sidebar.\n */\n closeDrawer(): void;\n\n /**\n * Open the drawer sidebar if closed, or close if opened.\n */\n toggleDrawer(): void;\n};\n\nexport const DrawerActions = {\n ...TabActions,\n openDrawer(): DrawerActionType {\n return { type: 'OPEN_DRAWER' };\n },\n closeDrawer(): DrawerActionType {\n return { type: 'CLOSE_DRAWER' };\n },\n toggleDrawer(): DrawerActionType {\n return { type: 'TOGGLE_DRAWER' };\n },\n};\n\nconst isDrawerOpen = (\n state: DrawerNavigationState | PartialState\n) => Boolean(state.history?.find((it) => it.type === 'drawer'));\n\nconst openDrawer = (state: DrawerNavigationState): DrawerNavigationState => {\n if (isDrawerOpen(state)) {\n return state;\n }\n\n return {\n ...state,\n history: [...state.history, { type: 'drawer' }],\n };\n};\n\nconst closeDrawer = (state: DrawerNavigationState): DrawerNavigationState => {\n if (!isDrawerOpen(state)) {\n return state;\n }\n\n return {\n ...state,\n history: state.history.filter((it) => it.type !== 'drawer'),\n };\n};\n\nexport default function DrawerRouter({\n openByDefault,\n ...rest\n}: DrawerRouterOptions): Router<\n DrawerNavigationState,\n DrawerActionType | CommonNavigationAction\n> {\n const router = (TabRouter(rest) as unknown) as Router<\n DrawerNavigationState,\n TabActionType | CommonNavigationAction\n >;\n\n return {\n ...router,\n\n type: 'drawer',\n\n getInitialState({ routeNames, routeParamList }) {\n let state = router.getInitialState({ routeNames, routeParamList });\n\n if (openByDefault) {\n state = openDrawer(state);\n }\n\n return {\n ...state,\n stale: false,\n type: 'drawer',\n key: `drawer-${nanoid()}`,\n };\n },\n\n getRehydratedState(partialState, { routeNames, routeParamList }) {\n if (partialState.stale === false) {\n return partialState;\n }\n\n let state = router.getRehydratedState(partialState, {\n routeNames,\n routeParamList,\n });\n\n if (isDrawerOpen(partialState)) {\n state = openDrawer(state);\n }\n\n return {\n ...state,\n type: 'drawer',\n key: `drawer-${nanoid()}`,\n };\n },\n\n getStateForRouteFocus(state, key) {\n const result = router.getStateForRouteFocus(state, key);\n\n if (openByDefault) {\n return openDrawer(result);\n }\n\n return closeDrawer(result);\n },\n\n getStateForAction(state, action, options) {\n switch (action.type) {\n case 'OPEN_DRAWER':\n return openDrawer(state);\n\n case 'CLOSE_DRAWER':\n return closeDrawer(state);\n\n case 'TOGGLE_DRAWER':\n if (isDrawerOpen(state)) {\n return closeDrawer(state);\n }\n\n return openDrawer(state);\n\n case 'GO_BACK':\n if (openByDefault) {\n if (!isDrawerOpen(state)) {\n return openDrawer(state);\n }\n } else {\n if (isDrawerOpen(state)) {\n return closeDrawer(state);\n }\n }\n\n return router.getStateForAction(state, action, options);\n\n default:\n return router.getStateForAction(state, action, options);\n }\n },\n\n actionCreators: DrawerActions,\n };\n}\n","import * as CommonActions from './CommonActions';\n\nexport type CommonNavigationAction = CommonActions.Action;\n\nexport type NavigationState = {\n /**\n * Unique key for the navigation state.\n */\n key: string;\n /**\n * Index of the currently focused route.\n */\n index: number;\n /**\n * List of valid route names as defined in the screen components.\n */\n routeNames: string[];\n /**\n * Alternative entries for history.\n */\n history?: unknown[];\n /**\n * List of rendered routes.\n */\n routes: (Route & {\n state?: NavigationState | PartialState;\n })[];\n /**\n * Custom type for the state, whether it's for tab, stack, drawer etc.\n * During rehydration, the state will be discarded if type doesn't match with router type.\n * It can also be used to detect the type of the navigator we're dealing with.\n */\n type: string;\n /**\n * Whether the navigation state has been rehydrated.\n */\n stale: false;\n};\n\nexport type InitialState = Partial<\n Omit\n> & {\n routes: (Omit, 'key'> & { state?: InitialState })[];\n};\n\nexport type PartialState = Partial<\n Omit\n> & {\n stale?: true;\n type?: string;\n routes: (Omit, 'key'> & {\n key?: string;\n state?: InitialState;\n })[];\n};\n\nexport type Route = {\n /**\n * Unique key for the route.\n */\n key: string;\n /**\n * User-provided name for the route.\n */\n name: RouteName;\n /**\n * Params for the route.\n */\n params?: object;\n};\n\nexport type ParamListBase = Record;\n\nexport type NavigationAction = {\n /**\n * Type of the action (e.g. `NAVIGATE`)\n */\n type: string;\n /**\n * Additional data for the action\n */\n payload?: object;\n /**\n * Key of the route which dispatched this action.\n */\n source?: string;\n /**\n * Key of the navigator which should handle this action.\n */\n target?: string;\n};\n\nexport type ActionCreators = {\n [key: string]: (...args: any) => Action;\n};\n\nexport type DefaultRouterOptions = {\n /**\n * Name of the route to focus by on initial render.\n * If not specified, usually the first route is used.\n */\n initialRouteName?: string;\n};\n\nexport type RouterFactory<\n State extends NavigationState,\n Action extends NavigationAction,\n RouterOptions extends DefaultRouterOptions\n> = (options: RouterOptions) => Router;\n\nexport type RouterConfigOptions = {\n routeNames: string[];\n routeParamList: ParamListBase;\n};\n\nexport type Router<\n State extends NavigationState,\n Action extends NavigationAction\n> = {\n /**\n * Type of the router. Should match the `type` property in state.\n * If the type doesn't match, the state will be discarded during rehydration.\n */\n type: State['type'];\n\n /**\n * Initialize the navigation state.\n *\n * @param options.routeNames List of valid route names as defined in the screen components.\n * @param options.routeParamsList Object containing params for each route.\n */\n getInitialState(options: RouterConfigOptions): State;\n\n /**\n * Rehydrate the full navigation state from a given partial state.\n *\n * @param partialState Navigation state to rehydrate from.\n * @param options.routeNames List of valid route names as defined in the screen components.\n * @param options.routeParamsList Object containing params for each route.\n */\n getRehydratedState(\n partialState: PartialState | State,\n options: RouterConfigOptions\n ): State;\n\n /**\n * Take the current state and updated list of route names, and return a new state.\n *\n * @param state State object to update.\n * @param options.routeNames New list of route names.\n * @param options.routeParamsList Object containing params for each route.\n */\n getStateForRouteNamesChange(\n state: State,\n options: RouterConfigOptions\n ): State;\n\n /**\n * Take the current state and key of a route, and return a new state with the route focused\n *\n * @param state State object to apply the action on.\n * @param key Key of the route to focus.\n */\n getStateForRouteFocus(state: State, key: string): State;\n\n /**\n * Take the current state and action, and return a new state.\n * If the action cannot be handled, return `null`.\n *\n * @param state State object to apply the action on.\n * @param action Action object to apply.\n * @param options.routeNames List of valid route names as defined in the screen components.\n * @param options.routeParamsList Object containing params for each route.\n */\n getStateForAction(\n state: State,\n action: Action,\n options: RouterConfigOptions\n ): State | PartialState | null;\n\n /**\n * Whether the action should also change focus in parent navigator\n *\n * @param action Action object to check.\n */\n shouldActionChangeFocus(action: NavigationAction): boolean;\n\n /**\n * Action creators for the router.\n */\n actionCreators?: ActionCreators;\n};\n","import * as React from 'react';\nimport {\n CommonActions,\n Route,\n NavigationState,\n InitialState,\n PartialState,\n NavigationAction,\n} from '@react-navigation/routers';\nimport EnsureSingleNavigator from './EnsureSingleNavigator';\nimport NavigationBuilderContext from './NavigationBuilderContext';\nimport { ScheduleUpdateContext } from './useScheduleUpdate';\nimport useFocusedListeners from './useFocusedListeners';\nimport useDevTools from './useDevTools';\nimport useStateGetters from './useStateGetters';\nimport useOptionsGetters from './useOptionsGetters';\nimport useEventEmitter from './useEventEmitter';\nimport useSyncState from './useSyncState';\nimport isSerializable from './isSerializable';\n\nimport { NavigationContainerRef, NavigationContainerProps } from './types';\n\ntype State = NavigationState | PartialState | undefined;\n\nconst DEVTOOLS_CONFIG_KEY =\n 'REACT_NAVIGATION_REDUX_DEVTOOLS_EXTENSION_INTEGRATION_ENABLED';\n\nconst MISSING_CONTEXT_ERROR =\n \"Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.\";\n\nconst NOT_INITIALIZED_ERROR =\n \"The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.\";\n\nexport const NavigationStateContext = React.createContext<{\n isDefault?: true;\n state?: NavigationState | PartialState;\n getKey: () => string | undefined;\n setKey: (key: string) => void;\n getState: () => NavigationState | PartialState | undefined;\n setState: (\n state: NavigationState | PartialState | undefined\n ) => void;\n addOptionsGetter?: (\n key: string,\n getter: () => object | undefined | null\n ) => void;\n}>({\n isDefault: true,\n\n get getKey(): any {\n throw new Error(MISSING_CONTEXT_ERROR);\n },\n get setKey(): any {\n throw new Error(MISSING_CONTEXT_ERROR);\n },\n get getState(): any {\n throw new Error(MISSING_CONTEXT_ERROR);\n },\n get setState(): any {\n throw new Error(MISSING_CONTEXT_ERROR);\n },\n});\n\nlet hasWarnedForSerialization = false;\n\n/**\n * Remove `key` and `routeNames` from the state objects recursively to get partial state.\n *\n * @param state Initial state object.\n */\nconst getPartialState = (\n state: InitialState | undefined\n): PartialState | undefined => {\n if (state === undefined) {\n return;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { key, routeNames, ...partialState } = state;\n\n // @ts-ignore\n return {\n ...partialState,\n stale: true,\n routes: state.routes.map((route) => {\n if (route.state === undefined) {\n return route as Route & {\n state?: PartialState;\n };\n }\n\n return { ...route, state: getPartialState(route.state) };\n }),\n };\n};\n\n/**\n * Container component which holds the navigation state.\n * This should be rendered at the root wrapping the whole app.\n *\n * @param props.initialState Initial state object for the navigation tree.\n * @param props.onStateChange Callback which is called with the latest navigation state when it changes.\n * @param props.children Child elements to render the content.\n * @param props.ref Ref object which refers to the navigation object containing helper methods.\n */\nconst BaseNavigationContainer = React.forwardRef(\n function BaseNavigationContainer(\n {\n initialState,\n onStateChange,\n independent,\n children,\n }: NavigationContainerProps,\n ref?: React.Ref\n ) {\n const parent = React.useContext(NavigationStateContext);\n\n if (!parent.isDefault && !independent) {\n throw new Error(\n \"Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitely. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.\"\n );\n }\n\n const [\n state,\n getState,\n setState,\n scheduleUpdate,\n flushUpdates,\n ] = useSyncState(() =>\n getPartialState(initialState == null ? undefined : initialState)\n );\n\n const isFirstMountRef = React.useRef(true);\n const skipTrackingRef = React.useRef(false);\n\n const navigatorKeyRef = React.useRef();\n\n const getKey = React.useCallback(() => navigatorKeyRef.current, []);\n\n const setKey = React.useCallback((key: string) => {\n navigatorKeyRef.current = key;\n }, []);\n\n const reset = React.useCallback(\n (state: NavigationState) => {\n skipTrackingRef.current = true;\n setState(state);\n },\n [setState]\n );\n\n const { trackState, trackAction } = useDevTools({\n enabled:\n // @ts-ignore\n DEVTOOLS_CONFIG_KEY in global ? global[DEVTOOLS_CONFIG_KEY] : false,\n name: '@react-navigation',\n reset,\n state,\n });\n\n const {\n listeners,\n addListener: addFocusedListener,\n } = useFocusedListeners();\n\n const { getStateForRoute, addStateGetter } = useStateGetters();\n\n const dispatch = (\n action: NavigationAction | ((state: NavigationState) => NavigationAction)\n ) => {\n if (listeners[0] == null) {\n throw new Error(NOT_INITIALIZED_ERROR);\n }\n\n listeners[0]((navigation) => navigation.dispatch(action));\n };\n\n const canGoBack = () => {\n if (listeners[0] == null) {\n return false;\n }\n\n const { result, handled } = listeners[0]((navigation) =>\n navigation.canGoBack()\n );\n\n if (handled) {\n return result;\n } else {\n return false;\n }\n };\n\n const resetRoot = React.useCallback(\n (state?: PartialState | NavigationState) => {\n trackAction('@@RESET_ROOT');\n setState(state);\n },\n [setState, trackAction]\n );\n\n const getRootState = React.useCallback(() => {\n return getStateForRoute('root');\n }, [getStateForRoute]);\n\n const getCurrentRoute = React.useCallback(() => {\n let state = getRootState();\n if (state === undefined) {\n return undefined;\n }\n while (state.routes[state.index].state !== undefined) {\n state = state.routes[state.index].state as NavigationState;\n }\n return state.routes[state.index];\n }, [getRootState]);\n\n const emitter = useEventEmitter();\n\n const { addOptionsGetter, getCurrentOptions } = useOptionsGetters({});\n\n React.useImperativeHandle(ref, () => ({\n ...(Object.keys(CommonActions) as (keyof typeof CommonActions)[]).reduce<\n any\n >((acc, name) => {\n acc[name] = (...args: any[]) =>\n dispatch(\n CommonActions[name](\n // @ts-ignore\n ...args\n )\n );\n return acc;\n }, {}),\n ...emitter.create('root'),\n resetRoot,\n dispatch,\n canGoBack,\n getRootState,\n dangerouslyGetState: () => state,\n dangerouslyGetParent: () => undefined,\n getCurrentRoute,\n getCurrentOptions,\n }));\n\n const builderContext = React.useMemo(\n () => ({\n addFocusedListener,\n addStateGetter,\n trackAction,\n }),\n [addFocusedListener, trackAction, addStateGetter]\n );\n\n const scheduleContext = React.useMemo(\n () => ({ scheduleUpdate, flushUpdates }),\n [scheduleUpdate, flushUpdates]\n );\n\n const context = React.useMemo(\n () => ({\n state,\n getState,\n setState,\n getKey,\n setKey,\n addOptionsGetter,\n }),\n [getKey, getState, setKey, setState, state, addOptionsGetter]\n );\n\n React.useEffect(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (\n state !== undefined &&\n !isSerializable(state) &&\n !hasWarnedForSerialization\n ) {\n hasWarnedForSerialization = true;\n\n console.warn(\n \"Non-serializable values were found in the navigation state, which can break usage such as persisting and restoring state. This might happen if you passed non-serializable values such as function, class instances etc. in params. If you need to use components with callbacks in your options, you can use 'navigation.setOptions' instead. See https://reactnavigation.org/docs/troubleshooting#i-get-the-warning-non-serializable-values-were-found-in-the-navigation-state for more details.\"\n );\n }\n }\n\n emitter.emit({\n type: 'state',\n data: { state },\n });\n\n if (skipTrackingRef.current) {\n skipTrackingRef.current = false;\n } else {\n trackState(getRootState);\n }\n\n if (!isFirstMountRef.current && onStateChange) {\n onStateChange(getRootState());\n }\n\n isFirstMountRef.current = false;\n }, [onStateChange, trackState, getRootState, emitter, state]);\n\n return (\n \n \n \n {children}\n \n \n \n );\n }\n);\n\nexport default BaseNavigationContainer;\n","import * as React from 'react';\n\ntype Props = {\n children: React.ReactNode;\n};\n\nconst MULTIPLE_NAVIGATOR_ERROR = `Another navigator is already registered for this container. You likely have multiple navigators under a single \"NavigationContainer\" or \"Screen\". Make sure each navigator is under a separate \"Screen\" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.`;\n\nexport const SingleNavigatorContext = React.createContext<\n | {\n register(key: string): void;\n unregister(key: string): void;\n }\n | undefined\n>(undefined);\n\n/**\n * Component which ensures that there's only one navigator nested under it.\n */\nexport default function EnsureSingleNavigator({ children }: Props) {\n const navigatorKeyRef = React.useRef();\n\n const value = React.useMemo(\n () => ({\n register(key: string) {\n const currentKey = navigatorKeyRef.current;\n\n if (currentKey !== undefined && key !== currentKey) {\n throw new Error(MULTIPLE_NAVIGATOR_ERROR);\n }\n\n navigatorKeyRef.current = key;\n },\n unregister(key: string) {\n const currentKey = navigatorKeyRef.current;\n\n if (key !== currentKey) {\n return;\n }\n\n navigatorKeyRef.current = undefined;\n },\n }),\n []\n );\n\n return (\n \n {children}\n \n );\n}\n","import * as React from 'react';\nimport {\n NavigationAction,\n NavigationState,\n ParamListBase,\n} from '@react-navigation/routers';\nimport { NavigationHelpers } from './types';\n\nexport type ChildActionListener = (\n action: NavigationAction,\n visitedNavigators?: Set\n) => boolean;\n\nexport type FocusedNavigationCallback = (\n navigation: NavigationHelpers\n) => T;\n\nexport type FocusedNavigationListener = (\n callback: FocusedNavigationCallback\n) => { handled: boolean; result: T };\n\nexport type NavigatorStateGetter = () => NavigationState;\n\n/**\n * Context which holds the required helpers needed to build nested navigators.\n */\nconst NavigationBuilderContext = React.createContext<{\n onAction?: (\n action: NavigationAction,\n visitedNavigators?: Set\n ) => boolean;\n addActionListener?: (listener: ChildActionListener) => void;\n addFocusedListener?: (listener: FocusedNavigationListener) => void;\n onRouteFocus?: (key: string) => void;\n addStateGetter?: (key: string, getter: NavigatorStateGetter) => void;\n trackAction: (action: NavigationAction) => void;\n}>({\n trackAction: () => undefined,\n});\n\nexport default NavigationBuilderContext;\n","import * as React from 'react';\n\nconst MISSING_CONTEXT_ERROR = \"Couldn't find a schedule context.\";\n\nexport const ScheduleUpdateContext = React.createContext<{\n scheduleUpdate: (callback: () => void) => void;\n flushUpdates: () => void;\n}>({\n scheduleUpdate() {\n throw new Error(MISSING_CONTEXT_ERROR);\n },\n flushUpdates() {\n throw new Error(MISSING_CONTEXT_ERROR);\n },\n});\n\n/**\n * When screen config changes, we want to update the navigator in the same update phase.\n * However, navigation state is in the root component and React won't let us update it from a child.\n * This is a workaround for that, the scheduled update is stored in the ref without actually calling setState.\n * It lets all subsequent updates access the latest state so it stays correct.\n * Then we call setState during after the component updates.\n */\nexport default function useScheduleUpdate(callback: () => void) {\n const { scheduleUpdate, flushUpdates } = React.useContext(\n ScheduleUpdateContext\n );\n\n scheduleUpdate(callback);\n\n React.useEffect(flushUpdates);\n}\n","import * as React from 'react';\nimport { FocusedNavigationListener } from './NavigationBuilderContext';\n\n/**\n * Hook which lets child navigators add listeners to be called for focused navigators.\n */\nexport default function useFocusedListeners() {\n const { current: listeners } = React.useRef([]);\n\n const addListener = React.useCallback(\n (listener: FocusedNavigationListener) => {\n listeners.push(listener);\n\n return () => {\n const index = listeners.indexOf(listener);\n\n listeners.splice(index, 1);\n };\n },\n [listeners]\n );\n\n return {\n listeners,\n addListener,\n };\n}\n","import * as React from 'react';\nimport {\n NavigationState,\n NavigationAction,\n PartialState,\n} from '@react-navigation/routers';\n\ntype State = NavigationState | PartialState | undefined;\n\ntype Options = {\n enabled: boolean;\n name: string;\n reset: (state: NavigationState) => void;\n state: State;\n};\n\ntype DevTools = {\n init(value: any): void;\n send(action: any, value: any): void;\n subscribe(\n listener: (message: { type: string; [key: string]: any }) => void\n ): () => void;\n};\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace NodeJS {\n interface Global {\n __REDUX_DEVTOOLS_EXTENSION__:\n | {\n connect(options: { name: string }): DevTools;\n disconnect(): void;\n }\n | undefined;\n }\n }\n}\n\nexport default function useDevTools({ name, reset, state, enabled }: Options) {\n const devToolsRef = React.useRef();\n\n if (\n enabled &&\n process.env.NODE_ENV !== 'production' &&\n global.__REDUX_DEVTOOLS_EXTENSION__ &&\n devToolsRef.current === undefined\n ) {\n devToolsRef.current = global.__REDUX_DEVTOOLS_EXTENSION__.connect({ name });\n }\n\n const devTools = devToolsRef.current;\n const lastStateRef = React.useRef(state);\n const actions = React.useRef<(NavigationAction | string)[]>([]);\n\n React.useEffect(() => {\n devTools?.init(lastStateRef.current);\n }, [devTools]);\n\n React.useEffect(\n () =>\n devTools?.subscribe((message) => {\n if (message.type === 'DISPATCH' && message.state) {\n reset(JSON.parse(message.state));\n }\n }),\n [devTools, reset]\n );\n\n const trackState = React.useCallback(\n (getState: () => State) => {\n if (!devTools) {\n return;\n }\n\n while (actions.current.length > 1) {\n devTools.send(actions.current.shift(), lastStateRef.current);\n }\n\n const state = getState();\n\n if (actions.current.length) {\n devTools.send(actions.current.pop(), state);\n } else {\n devTools.send('@@UNKNOWN', state);\n }\n\n lastStateRef.current = state;\n },\n [devTools]\n );\n\n const trackAction = React.useCallback(\n (action: NavigationAction | string) => {\n if (!devTools) {\n return;\n }\n\n actions.current.push(action);\n },\n [devTools]\n );\n\n return {\n trackAction,\n trackState,\n };\n}\n","import * as React from 'react';\nimport { NavigatorStateGetter } from './NavigationBuilderContext';\n\n/**\n * Hook which lets child navigators add getters to be called for obtaining rehydrated state.\n */\n\nexport default function useStateGetters() {\n const stateGetters = React.useRef>({});\n\n const getStateForRoute = React.useCallback(\n (routeKey: string) =>\n stateGetters.current[routeKey] === undefined\n ? undefined\n : stateGetters.current[routeKey](),\n [stateGetters]\n );\n\n const addStateGetter = React.useCallback(\n (key: string, getter: NavigatorStateGetter) => {\n stateGetters.current[key] = getter;\n\n return () => {\n // @ts-ignore\n stateGetters.current[key] = undefined;\n };\n },\n []\n );\n\n return {\n getStateForRoute,\n addStateGetter,\n };\n}\n","import * as React from 'react';\nimport { NavigationStateContext } from './BaseNavigationContainer';\nimport { NavigationState } from '@react-navigation/routers';\n\nexport default function useOptionsGetters({\n key,\n getOptions,\n getState,\n}: {\n key?: string;\n getOptions?: () => object | undefined;\n getState?: () => NavigationState;\n}) {\n const optionsGettersFromChild = React.useRef<\n Record object | undefined | null) | undefined>\n >({});\n\n const { addOptionsGetter: parentAddOptionsGetter } = React.useContext(\n NavigationStateContext\n );\n\n const getOptionsFromListener = React.useCallback(() => {\n for (let key in optionsGettersFromChild.current) {\n if (optionsGettersFromChild.current.hasOwnProperty(key)) {\n const result = optionsGettersFromChild.current[key]?.();\n // null means unfocused route\n if (result !== null) {\n return result;\n }\n }\n }\n return null;\n }, []);\n\n const getCurrentOptions = React.useCallback(() => {\n if (getState) {\n const state = getState();\n if (state.routes[state.index].key !== key) {\n // null means unfocused route\n return null;\n }\n }\n\n const optionsFromListener = getOptionsFromListener();\n if (optionsFromListener !== null) {\n return optionsFromListener;\n }\n return getOptions?.() ?? undefined;\n }, [getState, getOptionsFromListener, getOptions, key]);\n\n React.useEffect(() => {\n return parentAddOptionsGetter?.(key!, getCurrentOptions);\n }, [getCurrentOptions, parentAddOptionsGetter, key]);\n\n const addOptionsGetter = React.useCallback(\n (key: string, getter: () => object | undefined | null) => {\n optionsGettersFromChild.current[key] = getter;\n\n return () => {\n optionsGettersFromChild.current[key] = undefined;\n };\n },\n []\n );\n\n return {\n addOptionsGetter,\n getCurrentOptions,\n };\n}\n","import * as React from 'react';\nimport { EventEmitter, EventConsumer, EventArg } from './types';\n\nexport type NavigationEventEmitter = EventEmitter> & {\n create: (target: string) => EventConsumer>;\n};\n\ntype Listeners = ((e: any) => void)[];\n\n/**\n * Hook to manage the event system used by the navigator to notify screens of various events.\n */\nexport default function useEventEmitter(\n listen?: (e: any) => void\n): NavigationEventEmitter {\n const listenRef = React.useRef(listen);\n\n React.useEffect(() => {\n listenRef.current = listen;\n });\n\n const listeners = React.useRef>>({});\n\n const create = React.useCallback((target: string) => {\n const removeListener = (type: string, callback: (data: any) => void) => {\n const callbacks = listeners.current[type]\n ? listeners.current[type][target]\n : undefined;\n\n if (!callbacks) {\n return;\n }\n\n const index = callbacks.indexOf(callback);\n\n callbacks.splice(index, 1);\n };\n\n const addListener = (type: string, callback: (data: any) => void) => {\n listeners.current[type] = listeners.current[type] || {};\n listeners.current[type][target] = listeners.current[type][target] || [];\n listeners.current[type][target].push(callback);\n\n return () => removeListener(type, callback);\n };\n\n return {\n addListener,\n removeListener,\n };\n }, []);\n\n const emit = React.useCallback(\n ({\n type,\n data,\n target,\n canPreventDefault,\n }: {\n type: string;\n data?: any;\n target?: string;\n canPreventDefault?: boolean;\n }) => {\n const items = listeners.current[type] || {};\n\n // Copy the current list of callbacks in case they are mutated during execution\n const callbacks =\n target !== undefined\n ? items[target] && items[target].slice()\n : ([] as Listeners)\n .concat(...Object.keys(items).map((t) => items[t]))\n .filter((cb, i, self) => self.lastIndexOf(cb) === i);\n\n const event: EventArg = {\n get type() {\n return type;\n },\n };\n\n if (target !== undefined) {\n Object.defineProperty(event, 'target', {\n enumerable: true,\n get() {\n return target;\n },\n });\n }\n\n if (data !== undefined) {\n Object.defineProperty(event, 'data', {\n enumerable: true,\n get() {\n return data;\n },\n });\n }\n\n if (canPreventDefault) {\n let defaultPrevented = false;\n\n Object.defineProperties(event, {\n defaultPrevented: {\n enumerable: true,\n get() {\n return defaultPrevented;\n },\n },\n preventDefault: {\n enumerable: true,\n value() {\n defaultPrevented = true;\n },\n },\n });\n }\n\n listenRef.current?.(event);\n\n callbacks?.forEach((cb) => cb(event));\n\n return event as any;\n },\n []\n );\n\n return React.useMemo(() => ({ create, emit }), [create, emit]);\n}\n","import * as React from 'react';\n\nconst UNINTIALIZED_STATE = {};\n\n/**\n * This is definitely not compatible with concurrent mode, but we don't have a solution for sync state yet.\n */\nexport default function useSyncState(initialState?: (() => T) | T) {\n const stateRef = React.useRef(UNINTIALIZED_STATE as any);\n const isSchedulingRef = React.useRef(false);\n const isMountedRef = React.useRef(true);\n\n React.useEffect(() => {\n isMountedRef.current = true;\n\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n\n if (stateRef.current === UNINTIALIZED_STATE) {\n stateRef.current =\n // @ts-ignore\n typeof initialState === 'function' ? initialState() : initialState;\n }\n\n const [trackingState, setTrackingState] = React.useState(stateRef.current);\n\n const getState = React.useCallback(() => stateRef.current, []);\n\n const setState = React.useCallback((state: T) => {\n if (state === stateRef.current || !isMountedRef.current) {\n return;\n }\n\n stateRef.current = state;\n\n if (!isSchedulingRef.current) {\n setTrackingState(state);\n }\n }, []);\n\n const scheduleUpdate = React.useCallback((callback: () => void) => {\n isSchedulingRef.current = true;\n\n try {\n callback();\n } finally {\n isSchedulingRef.current = false;\n }\n }, []);\n\n const flushUpdates = React.useCallback(() => {\n if (!isMountedRef.current) {\n return;\n }\n\n // Make sure that the tracking state is up-to-date.\n // We call it unconditionally, but React should skip the update if state is unchanged.\n setTrackingState(stateRef.current);\n }, []);\n\n // If we're rendering and the tracking state is out of date, update it immediately\n // This will make sure that our updates are applied as early as possible.\n if (trackingState !== stateRef.current) {\n setTrackingState(stateRef.current);\n }\n\n const state = stateRef.current;\n\n return [state, getState, setState, scheduleUpdate, flushUpdates] as const;\n}\n","const isSerializableWithoutCircularReference = (\n o: { [key: string]: any },\n seen: Set\n): boolean => {\n if (\n o === undefined ||\n o === null ||\n typeof o === 'boolean' ||\n typeof o === 'number' ||\n typeof o === 'string'\n ) {\n return true;\n }\n\n if (\n Object.prototype.toString.call(o) !== '[object Object]' &&\n !Array.isArray(o)\n ) {\n return false;\n }\n\n if (seen.has(o)) {\n return false;\n }\n\n seen.add(o);\n\n if (Array.isArray(o)) {\n for (const it of o) {\n if (!isSerializableWithoutCircularReference(it, new Set(seen))) {\n return false;\n }\n }\n } else {\n for (const key in o) {\n if (!isSerializableWithoutCircularReference(o[key], new Set(seen))) {\n return false;\n }\n }\n }\n\n return true;\n};\n\nexport default function isSerializable(o: { [key: string]: any }) {\n return isSerializableWithoutCircularReference(o, new Set());\n}\n","import * as React from 'react';\nimport { ParamListBase, NavigationState } from '@react-navigation/routers';\nimport Screen from './Screen';\nimport { TypedNavigator, EventMapBase } from './types';\n\n/**\n * Higher order component to create a `Navigator` and `Screen` pair.\n * Custom navigators should wrap the navigator component in `createNavigator` before exporting.\n *\n * @param Navigator The navigtor component to wrap.\n * @returns Factory method to create a `Navigator` and `Screen` pair.\n */\nexport default function createNavigatorFactory<\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase,\n NavigatorComponent extends React.ComponentType\n>(Navigator: NavigatorComponent) {\n return function (): TypedNavigator<\n ParamList,\n State,\n ScreenOptions,\n EventMap,\n typeof Navigator\n > {\n if (arguments[0] !== undefined) {\n throw new Error(\n \"Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API with React Navigation 5? See https://reactnavigation.org/docs/upgrading-from-4.x for migration guide.\"\n );\n }\n\n return {\n Navigator,\n Screen,\n };\n };\n}\n","import { ParamListBase, NavigationState } from '@react-navigation/routers';\nimport { RouteConfig, EventMapBase } from './types';\n\n/**\n * Empty component used for specifying route configuration.\n */\nexport default function Screen<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList,\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n>(_: RouteConfig) {\n /* istanbul ignore next */\n return null;\n}\n","import * as React from 'react';\nimport { ParamListBase } from '@react-navigation/routers';\nimport { NavigationHelpers } from './types';\n\n/**\n * Context which holds the navigation helpers of the parent navigator.\n * Navigators should use this context in their view component.\n */\nconst NavigationHelpersContext = React.createContext<\n NavigationHelpers | undefined\n>(undefined);\n\nexport default NavigationHelpersContext;\n","import * as React from 'react';\nimport { ParamListBase } from '@react-navigation/routers';\nimport { NavigationProp } from './types';\n\n/**\n * Context which holds the navigation prop for a screen.\n */\nconst NavigationContext = React.createContext<\n NavigationProp | undefined\n>(undefined);\n\nexport default NavigationContext;\n","import * as React from 'react';\nimport { Route } from '@react-navigation/routers';\n\n/**\n * Context which holds the route prop for a screen.\n */\nconst NavigationContext = React.createContext | undefined>(\n undefined\n);\n\nexport default NavigationContext;\n","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\nimport {\n CommonActions,\n DefaultRouterOptions,\n NavigationState,\n ParamListBase,\n Router,\n RouterFactory,\n PartialState,\n NavigationAction,\n Route,\n} from '@react-navigation/routers';\nimport { NavigationStateContext } from './BaseNavigationContainer';\nimport NavigationRouteContext from './NavigationRouteContext';\nimport Screen from './Screen';\nimport useEventEmitter from './useEventEmitter';\nimport useRegisterNavigator from './useRegisterNavigator';\nimport useDescriptors from './useDescriptors';\nimport useNavigationHelpers from './useNavigationHelpers';\nimport useOnAction from './useOnAction';\nimport useFocusEvents from './useFocusEvents';\nimport useOnRouteFocus from './useOnRouteFocus';\nimport useChildActionListeners from './useChildActionListeners';\nimport useFocusedListeners from './useFocusedListeners';\nimport useFocusedListenersChildrenAdapter from './useFocusedListenersChildrenAdapter';\nimport {\n DefaultNavigatorOptions,\n RouteConfig,\n PrivateValueStore,\n EventMapBase,\n} from './types';\nimport useStateGetters from './useStateGetters';\nimport useOnGetState from './useOnGetState';\nimport useScheduleUpdate from './useScheduleUpdate';\n\n// This is to make TypeScript compiler happy\n// eslint-disable-next-line babel/no-unused-expressions\nPrivateValueStore;\n\ntype NavigatorRoute = {\n key: string;\n params?: {\n screen?: string;\n params?: object;\n initial?: boolean;\n };\n};\n\n/**\n * Compare two arrays with primitive values as the content.\n * We need to make sure that both values and order match.\n */\nconst isArrayEqual = (a: any[], b: any[]) =>\n a.length === b.length && a.every((it, index) => it === b[index]);\n\n/**\n * Extract route config object from React children elements.\n *\n * @param children React Elements to extract the config from.\n */\nconst getRouteConfigsFromChildren = <\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n>(\n children: React.ReactNode\n) => {\n const configs = React.Children.toArray(children).reduce<\n RouteConfig[]\n >((acc, child) => {\n if (React.isValidElement(child)) {\n if (child.type === Screen) {\n // We can only extract the config from `Screen` elements\n // If something else was rendered, it's probably a bug\n acc.push(\n child.props as RouteConfig<\n ParamListBase,\n string,\n State,\n ScreenOptions,\n EventMap\n >\n );\n return acc;\n }\n\n if (child.type === React.Fragment) {\n // When we encounter a fragment, we need to dive into its children to extract the configs\n // This is handy to conditionally define a group of screens\n acc.push(\n ...getRouteConfigsFromChildren(\n child.props.children\n )\n );\n return acc;\n }\n }\n\n throw new Error(\n `A navigator can only contain 'Screen' components as its direct children (found '${\n // @ts-ignore\n child.type && child.type.name ? child.type.name : String(child)\n }')`\n );\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n configs.forEach((config) => {\n const { name, children, component } = config as any;\n\n if (typeof name !== 'string' || !name) {\n throw new Error(\n `Got an invalid name (${JSON.stringify(\n name\n )}) for the screen. It must be a non-empty string.`\n );\n }\n\n if (children != null || component !== undefined) {\n if (children != null && component !== undefined) {\n throw new Error(\n `Got both 'component' and 'children' props for the screen '${name}'. You must pass only one of them.`\n );\n }\n\n if (children != null && typeof children !== 'function') {\n throw new Error(\n `Got an invalid value for 'children' prop for the screen '${name}'. It must be a function returning a React Element.`\n );\n }\n\n if (component !== undefined && !isValidElementType(component)) {\n throw new Error(\n `Got an invalid value for 'component' prop for the screen '${name}'. It must be a valid React Component.`\n );\n }\n\n if (typeof component === 'function' && component.name === 'component') {\n // Inline anonymous functions passed in the `component` prop will have the name of the prop\n // It's relatively safe to assume that it's not a component since it should also have PascalCase name\n // We won't catch all scenarios here, but this should catch a good chunk of incorrect use.\n console.warn(\n `Looks like you're passing an inline function for 'component' prop for the screen '${name}' (e.g. component={() => }). Passing an inline function will cause the component state to be lost on re-render and cause perf issues since it's re-created every render. You can pass the function as children to 'Screen' instead to achieve the desired behaviour.`\n );\n }\n } else {\n throw new Error(\n `Couldn't find a 'component' or 'children' prop for the screen '${name}'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.`\n );\n }\n });\n }\n\n return configs;\n};\n\n/**\n * Hook for building navigators.\n *\n * @param createRouter Factory method which returns router object.\n * @param options Options object containing `children` and additional options for the router.\n * @returns An object containing `state`, `navigation`, `descriptors` objects.\n */\nexport default function useNavigationBuilder<\n State extends NavigationState,\n RouterOptions extends DefaultRouterOptions,\n ScreenOptions extends object,\n EventMap extends Record\n>(\n createRouter: RouterFactory,\n options: DefaultNavigatorOptions & RouterOptions\n) {\n const navigatorKey = useRegisterNavigator();\n\n const route = React.useContext(NavigationRouteContext) as\n | NavigatorRoute\n | undefined;\n\n const previousNestedParamsRef = React.useRef(route?.params);\n\n React.useEffect(() => {\n previousNestedParamsRef.current = route?.params;\n }, [route]);\n\n const { children, ...rest } = options;\n const { current: router } = React.useRef>(\n createRouter({\n ...((rest as unknown) as RouterOptions),\n ...(route?.params &&\n route.params.initial !== false &&\n typeof route.params.screen === 'string'\n ? { initialRouteName: route.params.screen }\n : null),\n })\n );\n\n const routeConfigs = getRouteConfigsFromChildren<\n State,\n ScreenOptions,\n EventMap\n >(children);\n\n const screens = routeConfigs.reduce<\n Record<\n string,\n RouteConfig\n >\n >((acc, config) => {\n if (config.name in acc) {\n throw new Error(\n `A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '${config.name}')`\n );\n }\n\n acc[config.name] = config;\n return acc;\n }, {});\n\n const routeNames = routeConfigs.map((config) => config.name);\n const routeParamList = routeNames.reduce>(\n (acc, curr) => {\n const { initialParams } = screens[curr];\n const initialParamsFromParams =\n route?.params?.initial !== false && route?.params?.screen === curr\n ? route.params.params\n : undefined;\n\n acc[curr] =\n initialParams !== undefined || initialParamsFromParams !== undefined\n ? {\n ...initialParams,\n ...initialParamsFromParams,\n }\n : undefined;\n\n return acc;\n },\n {}\n );\n\n if (!routeNames.length) {\n throw new Error(\n \"Couldn't find any screens for the navigator. Have you defined any screens as its children?\"\n );\n }\n\n const isStateValid = React.useCallback(\n (state) => state.type === undefined || state.type === router.type,\n [router.type]\n );\n\n const isStateInitialized = React.useCallback(\n (state) =>\n state !== undefined && state.stale === false && isStateValid(state),\n [isStateValid]\n );\n\n const {\n state: currentState,\n getState: getCurrentState,\n setState,\n setKey,\n getKey,\n } = React.useContext(NavigationStateContext);\n\n const previousStateRef = React.useRef<\n NavigationState | PartialState | undefined\n >();\n const initializedStateRef = React.useRef();\n\n let isFirstStateInitialization = false;\n\n if (\n initializedStateRef.current === undefined ||\n currentState !== previousStateRef.current\n ) {\n // If the current state isn't initialized on first render, we initialize it\n // We also need to re-initialize it if the state passed from parent was changed (maybe due to reset)\n // Otherwise assume that the state was provided as initial state\n // So we need to rehydrate it to make it usable\n if (currentState === undefined || !isStateValid(currentState)) {\n isFirstStateInitialization = true;\n initializedStateRef.current = router.getInitialState({\n routeNames,\n routeParamList,\n });\n } else {\n initializedStateRef.current = router.getRehydratedState(\n currentState as PartialState,\n {\n routeNames,\n routeParamList,\n }\n );\n }\n }\n\n React.useEffect(() => {\n previousStateRef.current = currentState;\n }, [currentState]);\n\n let state =\n // If the state isn't initialized, or stale, use the state we initialized instead\n // The state won't update until there's a change needed in the state we have initalized locally\n // So it'll be `undefined` or stale untill the first navigation event happens\n isStateInitialized(currentState)\n ? (currentState as State)\n : (initializedStateRef.current as State);\n\n let nextState: State = state;\n\n if (!isArrayEqual(state.routeNames, routeNames)) {\n // When the list of route names change, the router should handle it to remove invalid routes\n nextState = router.getStateForRouteNamesChange(state, {\n routeNames,\n routeParamList,\n });\n }\n\n if (\n typeof route?.params?.screen === 'string' &&\n (route.params !== previousNestedParamsRef.current ||\n (route.params.initial === false && isFirstStateInitialization))\n ) {\n // If the route was updated with new name and/or params, we should navigate there\n // The update should be limited to current navigator only, so we call the router manually\n const updatedState = router.getStateForAction(\n nextState,\n CommonActions.navigate(route.params.screen, route.params.params),\n {\n routeNames,\n routeParamList,\n }\n );\n\n nextState =\n updatedState !== null\n ? router.getRehydratedState(updatedState, {\n routeNames,\n routeParamList,\n })\n : nextState;\n }\n\n const shouldUpdate = state !== nextState;\n\n useScheduleUpdate(() => {\n if (shouldUpdate) {\n // If the state needs to be updated, we'll schedule an update\n setState(nextState);\n }\n });\n\n // The up-to-date state will come in next render, but we don't need to wait for it\n // We can't use the outdated state since the screens have changed, which will cause error due to mismatched config\n // So we override the state objec we return to use the latest state as soon as possible\n state = nextState;\n\n React.useEffect(() => {\n setKey(navigatorKey);\n\n return () => {\n // We need to clean up state for this navigator on unmount\n // We do it in a timeout because we need to detect if another navigator mounted in the meantime\n // For example, if another navigator has started rendering, we should skip cleanup\n // Otherwise, our cleanup step will cleanup state for the other navigator and re-initialize it\n setTimeout(() => {\n if (getCurrentState() !== undefined && getKey() === navigatorKey) {\n setState(undefined);\n }\n }, 0);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const getState = React.useCallback((): State => {\n const currentState = getCurrentState();\n\n return isStateInitialized(currentState)\n ? (currentState as State)\n : (initializedStateRef.current as State);\n }, [getCurrentState, isStateInitialized]);\n\n const emitter = useEventEmitter((e) => {\n let routeNames = [];\n\n let route: Route | undefined;\n\n if (e.target) {\n route = state.routes.find((route) => route.key === e.target);\n\n if (route?.name) {\n routeNames.push(route.name);\n }\n } else {\n route = state.routes[state.index];\n routeNames.push(\n ...Object.keys(screens).filter((name) => route?.name === name)\n );\n }\n\n if (route == null) {\n return;\n }\n\n const navigation = descriptors[route.key].navigation;\n\n const listeners = ([] as (((e: any) => void) | undefined)[])\n .concat(\n ...routeNames.map((name) => {\n const { listeners } = screens[name];\n const map =\n typeof listeners === 'function'\n ? listeners({ route: route as any, navigation })\n : listeners;\n\n return map\n ? Object.keys(map)\n .filter((type) => type === e.type)\n .map((type) => map?.[type])\n : undefined;\n })\n )\n .filter((cb, i, self) => cb && self.lastIndexOf(cb) === i);\n\n listeners.forEach((listener) => listener?.(e));\n });\n\n useFocusEvents({ state, emitter });\n\n React.useEffect(() => {\n emitter.emit({ type: 'state', data: { state } });\n }, [emitter, state]);\n\n const {\n listeners: actionListeners,\n addListener: addActionListener,\n } = useChildActionListeners();\n\n const {\n listeners: focusedListeners,\n addListener: addFocusedListener,\n } = useFocusedListeners();\n\n const { getStateForRoute, addStateGetter } = useStateGetters();\n\n const onAction = useOnAction({\n router,\n getState,\n setState,\n key: route?.key,\n listeners: actionListeners,\n routerConfigOptions: {\n routeNames,\n routeParamList,\n },\n });\n\n const onRouteFocus = useOnRouteFocus({\n router,\n key: route?.key,\n getState,\n setState,\n });\n\n const navigation = useNavigationHelpers({\n onAction,\n getState,\n emitter,\n router,\n });\n\n useFocusedListenersChildrenAdapter({\n navigation,\n focusedListeners,\n });\n\n useOnGetState({\n getState,\n getStateForRoute,\n });\n\n const descriptors = useDescriptors({\n state,\n screens,\n navigation,\n screenOptions: options.screenOptions,\n onAction,\n getState,\n setState,\n onRouteFocus,\n addActionListener,\n addFocusedListener,\n addStateGetter,\n router,\n emitter,\n });\n\n return {\n state,\n navigation,\n descriptors,\n };\n}\n","import * as React from 'react';\nimport { nanoid } from 'nanoid/non-secure';\nimport { SingleNavigatorContext } from './EnsureSingleNavigator';\n\n/**\n * Register a navigator in the parent context (either a navigation container or a screen).\n * This is used to prevent multiple navigators under a single container or screen.\n */\nexport default function useRegisterNavigator() {\n const [key] = React.useState(() => nanoid());\n const container = React.useContext(SingleNavigatorContext);\n\n if (container === undefined) {\n throw new Error(\n \"Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?\"\n );\n }\n\n React.useEffect(() => {\n const { register, unregister } = container;\n\n register(key);\n\n return () => unregister(key);\n }, [container, key]);\n\n return key;\n}\n","import * as React from 'react';\nimport {\n NavigationAction,\n NavigationState,\n ParamListBase,\n Router,\n} from '@react-navigation/routers';\nimport SceneView from './SceneView';\nimport NavigationBuilderContext, {\n ChildActionListener,\n FocusedNavigationListener,\n NavigatorStateGetter,\n} from './NavigationBuilderContext';\nimport { NavigationEventEmitter } from './useEventEmitter';\nimport useNavigationCache from './useNavigationCache';\nimport {\n Descriptor,\n NavigationHelpers,\n RouteConfig,\n RouteProp,\n EventMapBase,\n} from './types';\n\ntype Options<\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n> = {\n state: State;\n screens: Record<\n string,\n RouteConfig\n >;\n navigation: NavigationHelpers;\n screenOptions?:\n | ScreenOptions\n | ((props: {\n route: RouteProp;\n navigation: any;\n }) => ScreenOptions);\n onAction: (\n action: NavigationAction,\n visitedNavigators?: Set\n ) => boolean;\n getState: () => State;\n setState: (state: State) => void;\n addActionListener: (listener: ChildActionListener) => void;\n addFocusedListener: (listener: FocusedNavigationListener) => void;\n addStateGetter: (key: string, getter: NavigatorStateGetter) => void;\n onRouteFocus: (key: string) => void;\n router: Router;\n emitter: NavigationEventEmitter;\n};\n\n/**\n * Hook to create descriptor objects for the child routes.\n *\n * A descriptor object provides 3 things:\n * - Helper method to render a screen\n * - Options specified by the screen for the navigator\n * - Navigation object intended for the route\n */\nexport default function useDescriptors<\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n>({\n state,\n screens,\n navigation,\n screenOptions,\n onAction,\n getState,\n setState,\n addActionListener,\n addFocusedListener,\n addStateGetter,\n onRouteFocus,\n router,\n emitter,\n}: Options) {\n const [options, setOptions] = React.useState>({});\n const { trackAction } = React.useContext(NavigationBuilderContext);\n\n const context = React.useMemo(\n () => ({\n navigation,\n onAction,\n addActionListener,\n addFocusedListener,\n addStateGetter,\n onRouteFocus,\n trackAction,\n }),\n [\n navigation,\n onAction,\n addActionListener,\n addFocusedListener,\n onRouteFocus,\n addStateGetter,\n trackAction,\n ]\n );\n\n const navigations = useNavigationCache({\n state,\n getState,\n navigation,\n setOptions,\n router,\n emitter,\n });\n\n return state.routes.reduce(\n (acc, route) => {\n const screen = screens[route.name];\n const navigation = navigations[route.key];\n\n const routeOptions = {\n // The default `screenOptions` passed to the navigator\n ...(typeof screenOptions === 'object' || screenOptions == null\n ? screenOptions\n : screenOptions({\n // @ts-ignore\n route,\n navigation,\n })),\n // The `options` prop passed to `Screen` elements\n ...(typeof screen.options === 'object' || screen.options == null\n ? screen.options\n : screen.options({\n // @ts-ignore\n route,\n // @ts-ignore\n navigation,\n })),\n // The options set via `navigation.setOptions`\n ...options[route.key],\n };\n\n acc[route.key] = {\n navigation,\n render() {\n return (\n \n \n \n );\n },\n options: routeOptions,\n };\n\n return acc;\n },\n {} as {\n [key: string]: Descriptor;\n }\n );\n}\n","import * as React from 'react';\nimport {\n Route,\n ParamListBase,\n NavigationState,\n PartialState,\n} from '@react-navigation/routers';\nimport { NavigationStateContext } from './BaseNavigationContainer';\nimport NavigationContext from './NavigationContext';\nimport NavigationRouteContext from './NavigationRouteContext';\nimport StaticContainer from './StaticContainer';\nimport EnsureSingleNavigator from './EnsureSingleNavigator';\nimport { NavigationProp, RouteConfig, EventMapBase } from './types';\nimport useOptionsGetters from './useOptionsGetters';\n\ntype Props<\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n> = {\n screen: RouteConfig;\n navigation: NavigationProp;\n route: Route & {\n state?: NavigationState | PartialState;\n };\n getState: () => State;\n setState: (state: State) => void;\n options: object;\n};\n\n/**\n * Component which takes care of rendering the screen for a route.\n * It provides all required contexts and applies optimizations when applicable.\n */\nexport default function SceneView<\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n>({\n screen,\n route,\n navigation,\n getState,\n setState,\n options,\n}: Props) {\n const navigatorKeyRef = React.useRef();\n const getKey = React.useCallback(() => navigatorKeyRef.current, []);\n\n const optionsRef = React.useRef(options);\n\n React.useEffect(() => {\n optionsRef.current = options;\n }, [options]);\n\n const getOptions = React.useCallback(() => optionsRef.current, []);\n\n const { addOptionsGetter } = useOptionsGetters({\n key: route.key,\n getOptions,\n });\n\n const setKey = React.useCallback((key: string) => {\n navigatorKeyRef.current = key;\n }, []);\n\n const getCurrentState = React.useCallback(() => {\n const state = getState();\n const currentRoute = state.routes.find((r) => r.key === route.key);\n\n return currentRoute ? currentRoute.state : undefined;\n }, [getState, route.key]);\n\n const setCurrentState = React.useCallback(\n (child: NavigationState | PartialState | undefined) => {\n const state = getState();\n\n setState({\n ...state,\n routes: state.routes.map((r) =>\n r.key === route.key ? { ...r, state: child } : r\n ),\n });\n },\n [getState, route.key, setState]\n );\n\n const context = React.useMemo(\n () => ({\n state: route.state,\n getState: getCurrentState,\n setState: setCurrentState,\n getKey,\n setKey,\n addOptionsGetter,\n }),\n [\n getCurrentState,\n getKey,\n route.state,\n setCurrentState,\n setKey,\n addOptionsGetter,\n ]\n );\n\n return (\n \n \n \n \n \n {'component' in screen && screen.component !== undefined ? (\n // @ts-ignore\n \n ) : 'children' in screen && screen.children !== undefined ? (\n // @ts-ignore\n screen.children({ navigation, route })\n ) : null}\n \n \n \n \n \n );\n}\n","import * as React from 'react';\n\n/**\n * Component which prevents updates for children if no props changed\n */\nfunction StaticContainer(props: any) {\n return props.children;\n}\n\nexport default React.memo(StaticContainer, (prevProps: any, nextProps: any) => {\n const prevPropKeys = Object.keys(prevProps);\n const nextPropKeys = Object.keys(nextProps);\n\n if (prevPropKeys.length !== nextPropKeys.length) {\n return false;\n }\n\n for (const key of prevPropKeys) {\n if (key === 'children') {\n continue;\n }\n\n if (prevProps[key] !== nextProps[key]) {\n return false;\n }\n }\n\n return true;\n});\n","import * as React from 'react';\nimport {\n CommonActions,\n NavigationAction,\n ParamListBase,\n NavigationState,\n Router,\n} from '@react-navigation/routers';\nimport { NavigationEventEmitter } from './useEventEmitter';\n\nimport { NavigationHelpers, NavigationProp } from './types';\n\ntype Options = {\n state: State;\n getState: () => State;\n navigation: NavigationHelpers &\n Partial>;\n setOptions: (\n cb: (options: Record) => Record\n ) => void;\n router: Router;\n emitter: NavigationEventEmitter;\n};\n\ntype NavigationCache<\n State extends NavigationState,\n ScreenOptions extends object\n> = {\n [key: string]: NavigationProp;\n};\n\n/**\n * Hook to cache navigation objects for each screen in the navigator.\n * It's important to cache them to make sure navigation objects don't change between renders.\n * This lets us apply optimizations like `React.memo` to minimize re-rendering screens.\n */\nexport default function useNavigationCache<\n State extends NavigationState,\n ScreenOptions extends object\n>({\n state,\n getState,\n navigation,\n setOptions,\n router,\n emitter,\n}: Options) {\n // Cache object which holds navigation objects for each screen\n // We use `React.useMemo` instead of `React.useRef` coz we want to invalidate it when deps change\n // In reality, these deps will rarely change, if ever\n const cache = React.useMemo(\n () => ({ current: {} as NavigationCache }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [getState, navigation, setOptions, router, emitter]\n );\n\n const actions = {\n ...router.actionCreators,\n ...CommonActions,\n };\n\n cache.current = state.routes.reduce>(\n (acc, route) => {\n const previous = cache.current[route.key];\n\n if (previous) {\n // If a cached navigation object already exists, reuse it\n acc[route.key] = previous;\n } else {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { emit, ...rest } = navigation;\n\n const dispatch = (\n action: NavigationAction | ((state: State) => NavigationAction)\n ) => {\n const payload =\n typeof action === 'function' ? action(getState()) : action;\n\n navigation.dispatch(\n typeof payload === 'object' && payload != null\n ? { source: route.key, ...payload }\n : payload\n );\n };\n\n const helpers = Object.keys(actions).reduce void>>(\n (acc, name) => {\n // @ts-ignore\n acc[name] = (...args: any) => dispatch(actions[name](...args));\n return acc;\n },\n {}\n );\n\n acc[route.key] = {\n ...rest,\n ...helpers,\n ...emitter.create(route.key),\n dispatch,\n setOptions: (options: object) =>\n setOptions((o) => ({\n ...o,\n [route.key]: { ...o[route.key], ...options },\n })),\n isFocused: () => {\n const state = getState();\n\n if (state.routes[state.index].key !== route.key) {\n return false;\n }\n\n // If the current screen is focused, we also need to check if parent navigator is focused\n // This makes sure that we return the focus state in the whole tree, not just this navigator\n return navigation ? navigation.isFocused() : true;\n },\n };\n }\n\n return acc;\n },\n {}\n );\n\n return cache.current;\n}\n","import * as React from 'react';\nimport {\n CommonActions,\n NavigationAction,\n NavigationState,\n ParamListBase,\n Router,\n} from '@react-navigation/routers';\nimport NavigationContext from './NavigationContext';\nimport { NavigationEventEmitter } from './useEventEmitter';\nimport { NavigationHelpers, NavigationProp, PrivateValueStore } from './types';\n\n// This is to make TypeScript compiler happy\n// eslint-disable-next-line babel/no-unused-expressions\nPrivateValueStore;\n\ntype Options = {\n onAction: (\n action: NavigationAction,\n visitedNavigators?: Set\n ) => boolean;\n getState: () => State;\n emitter: NavigationEventEmitter;\n router: Router;\n};\n\n/**\n * Navigation object with helper methods to be used by a navigator.\n * This object includes methods for common actions as well as methods the parent screen's navigation object.\n */\nexport default function useNavigationHelpers<\n State extends NavigationState,\n Action extends NavigationAction,\n EventMap extends Record\n>({ onAction, getState, emitter, router }: Options) {\n const parentNavigationHelpers = React.useContext(NavigationContext);\n\n return React.useMemo(() => {\n const dispatch = (op: Action | ((state: State) => Action)) => {\n const action = typeof op === 'function' ? op(getState()) : op;\n\n const handled = onAction(action);\n\n if (!handled && process.env.NODE_ENV !== 'production') {\n const payload: Record | undefined = action.payload;\n\n let message = `The action '${action.type}'${\n payload ? ` with payload ${JSON.stringify(action.payload)}` : ''\n } was not handled by any navigator.`;\n\n switch (action.type) {\n case 'NAVIGATE':\n case 'PUSH':\n case 'REPLACE':\n case 'JUMP_TO':\n if (payload?.name) {\n message += `\\n\\nDo you have a screen named '${payload.name}'?\\n\\nIf you're trying to navigate to a screen in a nested navigator, see https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator.`;\n } else {\n message += `\\n\\nYou need to pass the name of the screen to navigate to.\\n\\nSee https://reactnavigation.org/docs/navigation-actions for usage.`;\n }\n\n break;\n case 'GO_BACK':\n case 'POP':\n case 'POP_TO_TOP':\n message += `\\n\\nIs there any screen to go back to?`;\n break;\n case 'OPEN_DRAWER':\n case 'CLOSE_DRAWER':\n case 'TOGGLE_DRAWER':\n message += `\\n\\nIs your screen inside a Drawer navigator?`;\n break;\n }\n\n message += `\\n\\nThis is a development-only warning and won't be shown in production.`;\n\n console.error(message);\n }\n };\n\n const actions = {\n ...router.actionCreators,\n ...CommonActions,\n };\n\n const helpers = Object.keys(actions).reduce void>>(\n (acc, name) => {\n // @ts-ignore\n acc[name] = (...args: any) => dispatch(actions[name](...args));\n return acc;\n },\n {}\n );\n\n return {\n ...parentNavigationHelpers,\n ...helpers,\n dispatch,\n emit: emitter.emit,\n isFocused: parentNavigationHelpers\n ? parentNavigationHelpers.isFocused\n : () => true,\n canGoBack: () => {\n const state = getState();\n\n return (\n router.getStateForAction(state, CommonActions.goBack() as Action, {\n routeNames: state.routeNames,\n routeParamList: {},\n }) !== null ||\n parentNavigationHelpers?.canGoBack() ||\n false\n );\n },\n dangerouslyGetParent: () => parentNavigationHelpers as any,\n dangerouslyGetState: getState,\n } as NavigationHelpers &\n (NavigationProp | undefined);\n }, [router, getState, parentNavigationHelpers, emitter.emit, onAction]);\n}\n","import * as React from 'react';\nimport {\n DefaultRouterOptions,\n NavigationState,\n NavigationAction,\n InitialState,\n PartialState,\n Route,\n ParamListBase,\n} from '@react-navigation/routers';\n\nexport type DefaultNavigatorOptions<\n ScreenOptions extends object\n> = DefaultRouterOptions & {\n /**\n * Children React Elements to extract the route configuration from.\n * Only `Screen` components are supported as children.\n */\n children: React.ReactNode;\n /**\n * Default options for all screens under this navigator.\n */\n screenOptions?:\n | ScreenOptions\n | ((props: {\n route: RouteProp;\n navigation: any;\n }) => ScreenOptions);\n};\n\nexport type EventMapBase = Record<\n string,\n { data?: any; canPreventDefault?: boolean }\n>;\n\nexport type EventMapCore = {\n focus: { data: undefined };\n blur: { data: undefined };\n state: { data: { state: State } };\n};\n\nexport type EventArg<\n EventName extends string,\n CanPreventDefault extends boolean | undefined = false,\n Data = undefined\n> = {\n /**\n * Type of the event (e.g. `focus`, `blur`)\n */\n readonly type: EventName;\n readonly target?: string;\n} & (CanPreventDefault extends true\n ? {\n /**\n * Whether `event.preventDefault()` was called on this event object.\n */\n readonly defaultPrevented: boolean;\n /**\n * Prevent the default action which happens on this event.\n */\n preventDefault(): void;\n }\n : {}) &\n (Data extends undefined ? {} : { readonly data: Data });\n\nexport type EventListenerCallback<\n EventMap extends EventMapBase,\n EventName extends keyof EventMap\n> = (\n e: EventArg<\n Extract,\n EventMap[EventName]['canPreventDefault'],\n EventMap[EventName]['data']\n >\n) => void;\n\nexport type EventConsumer = {\n /**\n * Subscribe to events from the parent navigator.\n *\n * @param type Type of the event (e.g. `focus`, `blur`)\n * @param callback Callback listener which is executed upon receiving the event.\n */\n addListener>(\n type: EventName,\n callback: EventListenerCallback\n ): () => void;\n removeListener>(\n type: EventName,\n callback: EventListenerCallback\n ): void;\n};\n\nexport type EventEmitter = {\n /**\n * Emit an event to child screens.\n *\n * @param options.type Type of the event (e.g. `focus`, `blur`)\n * @param [options.data] Optional information regarding the event.\n * @param [options.target] Key of the target route which should receive the event.\n * If not specified, all routes receive the event.\n */\n emit>(\n options: {\n type: EventName;\n target?: string;\n } & (EventMap[EventName]['canPreventDefault'] extends true\n ? { canPreventDefault: true }\n : {}) &\n (EventMap[EventName]['data'] extends undefined\n ? {}\n : { data: EventMap[EventName]['data'] })\n ): EventArg<\n EventName,\n EventMap[EventName]['canPreventDefault'],\n EventMap[EventName]['data']\n >;\n};\n\nexport class PrivateValueStore {\n /**\n * UGLY HACK! DO NOT USE THE TYPE!!!\n *\n * TypeScript requires a type to be used to be able to infer it.\n * The type should exist as its own without any operations such as union.\n * So we need to figure out a way to store this type in a property.\n * The problem with a normal property is that it shows up in intelliSense.\n * Adding private keyword works, but the annotation is stripped away in declaration.\n * Turns out if we use an empty string, it doesn't show up in intelliSense.\n */\n protected ''?: { a: A; b: B; c: C };\n}\n\ntype NavigationHelpersCommon<\n ParamList extends ParamListBase,\n State extends NavigationState = NavigationState\n> = {\n /**\n * Dispatch an action or an update function to the router.\n * The update function will receive the current state,\n *\n * @param action Action object or update function.\n */\n dispatch(\n action: NavigationAction | ((state: State) => NavigationAction)\n ): void;\n\n /**\n * Navigate to a route in current navigation tree.\n *\n * @param name Name of the route to navigate to.\n * @param [params] Params object for the route.\n */\n navigate(\n ...args: ParamList[RouteName] extends undefined | any\n ? [RouteName] | [RouteName, ParamList[RouteName]]\n : [RouteName, ParamList[RouteName]]\n ): void;\n\n /**\n * Navigate to a route in current navigation tree.\n *\n * @param route Object with `key` or `name` for the route to navigate to, and a `params` object.\n */\n navigate(\n route:\n | { key: string; params?: ParamList[RouteName] }\n | { name: RouteName; key?: string; params: ParamList[RouteName] }\n ): void;\n\n /**\n * Reset the navigation state to the provided state.\n *\n * @param state Navigation state object.\n */\n reset(state: PartialState | State): void;\n\n /**\n * Go back to the previous route in history.\n */\n goBack(): void;\n\n /**\n * Check if the screen is focused. The method returns `true` if focused, `false` otherwise.\n * Note that this method doesn't re-render screen when the focus changes. So don't use it in `render`.\n * To get notified of focus changes, use `addListener('focus', cb)` and `addListener('blur', cb)`.\n * To conditionally render content based on focus state, use the `useIsFocused` hook.\n */\n isFocused(): boolean;\n\n /**\n * Check if dispatching back action will be handled by navigation.\n * Note that this method doesn't re-render screen when the result changes. So don't use it in `render`.\n */\n canGoBack(): boolean;\n\n /**\n * Returns the parent navigator, if any. Reason why the function is called\n * dangerouslyGetParent is to warn developers against overusing it to eg. get parent\n * of parent and other hard-to-follow patterns.\n */\n dangerouslyGetParent | undefined>(): T;\n\n /**\n * Returns the navigator's state. Reason why the function is called\n * dangerouslyGetState is to discourage developers to use internal navigation's state.\n * Note that this method doesn't re-render screen when the result changes. So don't use it in `render`.\n */\n dangerouslyGetState(): State;\n} & PrivateValueStore;\n\nexport type NavigationHelpers<\n ParamList extends ParamListBase,\n EventMap extends EventMapBase = {}\n> = NavigationHelpersCommon &\n EventEmitter & {\n /**\n * Update the param object for the route.\n * The new params will be shallow merged with the old one.\n *\n * @param params Params object for the current route.\n */\n setParams(\n params: Partial\n ): void;\n };\n\nexport type NavigationContainerProps = {\n /**\n * Initial navigation state for the child navigators.\n */\n initialState?: InitialState;\n /**\n * Callback which is called with the latest navigation state when it changes.\n */\n onStateChange?: (state: NavigationState | undefined) => void;\n /**\n * Whether this navigation container should be independent of parent containers.\n * If this is not set to `true`, this container cannot be nested inside another container.\n * Setting it to `true` disconnects any children navigators from parent container.\n */\n independent?: boolean;\n /**\n * Children elements to render.\n */\n children: React.ReactNode;\n};\n\nexport type NavigationProp<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList = string,\n State extends NavigationState = NavigationState,\n ScreenOptions extends object = {},\n EventMap extends EventMapBase = {}\n> = NavigationHelpersCommon & {\n /**\n * Update the param object for the route.\n * The new params will be shallow merged with the old one.\n *\n * @param params Params object for the current route.\n */\n setParams(params: Partial): void;\n\n /**\n * Update the options for the route.\n * The options object will be shallow merged with default options object.\n *\n * @param options Options object for the route.\n */\n setOptions(options: Partial): void;\n} & EventConsumer> &\n PrivateValueStore;\n\nexport type RouteProp<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList\n> = Omit>, 'params'> &\n (ParamList[RouteName] extends undefined\n ? {}\n : {\n /**\n * Params for this route\n */\n params: ParamList[RouteName];\n });\n\nexport type CompositeNavigationProp<\n A extends NavigationProp,\n B extends NavigationHelpersCommon\n> = Omit> &\n NavigationProp<\n /**\n * Param list from both navigation objects needs to be combined\n * For example, we should be able to navigate to screens in both A and B\n */\n (A extends NavigationHelpersCommon ? T : never) &\n (B extends NavigationHelpersCommon ? U : never),\n /**\n * The route name should refer to the route name specified in the first type\n * Ideally it should work for any of them, but it's not possible to infer that way\n */\n A extends NavigationProp ? R : string,\n /**\n * The type of state should refer to the state specified in the first type\n */\n A extends NavigationProp ? S : NavigationState,\n /**\n * Screen options from both navigation objects needs to be combined\n * This allows typechecking `setOptions`\n */\n (A extends NavigationProp ? O : {}) &\n (B extends NavigationProp ? P : {}),\n /**\n * Event consumer config should refer to the config specified in the first type\n * This allows typechecking `addListener`/`removeListener`\n */\n A extends NavigationProp ? E : {}\n >;\n\nexport type Descriptor<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList = string,\n State extends NavigationState = NavigationState,\n ScreenOptions extends object = {},\n EventMap extends EventMapBase = {}\n> = {\n /**\n * Render the component associated with this route.\n */\n render(): JSX.Element;\n\n /**\n * Options for the route.\n */\n options: ScreenOptions;\n\n /**\n * Navigation object for the screen\n */\n navigation: NavigationProp<\n ParamList,\n RouteName,\n State,\n ScreenOptions,\n EventMap\n >;\n};\n\nexport type ScreenListeners<\n State extends NavigationState,\n EventMap extends EventMapBase\n> = Partial<\n {\n [EventName in keyof (EventMap &\n EventMapCore)]: EventListenerCallback;\n }\n>;\n\nexport type RouteConfig<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList,\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase\n> = {\n /**\n * Route name of this screen.\n */\n name: RouteName;\n\n /**\n * Navigator options for this screen.\n */\n options?:\n | ScreenOptions\n | ((props: {\n route: RouteProp;\n navigation: any;\n }) => ScreenOptions);\n\n /**\n * Event listeners for this screen.\n */\n listeners?:\n | ScreenListeners\n | ((props: {\n route: RouteProp;\n navigation: any;\n }) => ScreenListeners);\n\n /**\n * Initial params object for the route.\n */\n initialParams?: Partial;\n} & (\n | {\n /**\n * React component to render for this screen.\n */\n component: React.ComponentType;\n }\n | {\n /**\n * Render callback to render content of this screen.\n */\n children: (props: {\n route: RouteProp;\n navigation: any;\n }) => React.ReactNode;\n }\n);\n\nexport type NavigationContainerRef = NavigationHelpers &\n EventConsumer<{ state: { data: { state: NavigationState } } }> & {\n /**\n * Reset the navigation state of the root navigator to the provided state.\n *\n * @param state Navigation state object.\n */\n resetRoot(state?: PartialState | NavigationState): void;\n /**\n * Get the rehydrated navigation state of the navigation tree.\n */\n getRootState(): NavigationState;\n /**\n * Get the currently focused navigation route.\n */\n getCurrentRoute(): Route | undefined;\n /**\n * Get the currently focused route's options.\n */\n getCurrentOptions(): object | undefined;\n };\n\nexport type TypedNavigator<\n ParamList extends ParamListBase,\n State extends NavigationState,\n ScreenOptions extends object,\n EventMap extends EventMapBase,\n Navigator extends React.ComponentType\n> = {\n /**\n * Navigator component which manages the child screens.\n */\n Navigator: React.ComponentType<\n Omit<\n React.ComponentProps,\n 'initialRouteName' | 'screenOptions'\n > & {\n /**\n * Name of the route to focus by on initial render.\n * If not specified, usually the first route is used.\n */\n initialRouteName?: keyof ParamList;\n /**\n * Default options for all screens under this navigator.\n */\n screenOptions?:\n | ScreenOptions\n | ((props: {\n route: RouteProp;\n navigation: any;\n }) => ScreenOptions);\n }\n >;\n /**\n * Component used for specifying route configuration.\n */\n Screen: (\n _: RouteConfig\n ) => null;\n};\n\nexport type PathConfig = {\n [routeName: string]:\n | string\n | {\n path?: string;\n exact?: boolean;\n parse?: Record any>;\n stringify?: Record string>;\n screens?: PathConfig;\n initialRouteName?: string;\n };\n};\n","import * as React from 'react';\nimport {\n NavigationAction,\n NavigationState,\n PartialState,\n Router,\n RouterConfigOptions,\n} from '@react-navigation/routers';\nimport NavigationBuilderContext, {\n ChildActionListener,\n} from './NavigationBuilderContext';\n\ntype Options = {\n router: Router;\n key?: string;\n getState: () => NavigationState;\n setState: (state: NavigationState | PartialState) => void;\n listeners: ChildActionListener[];\n routerConfigOptions: RouterConfigOptions;\n};\n\n/**\n * Hook to handle actions for a navigator, including state updates and bubbling.\n *\n * Bubbling an action is achieved in 2 ways:\n * 1. To bubble action to parent, we expose the action handler in context and then access the parent context\n * 2. To bubble action to child, child adds event listeners subscribing to actions from parent\n *\n * When the action handler handles as action, it returns `true`, otherwise `false`.\n */\nexport default function useOnAction({\n router,\n getState,\n setState,\n key,\n listeners,\n routerConfigOptions,\n}: Options) {\n const {\n onAction: onActionParent,\n onRouteFocus: onRouteFocusParent,\n addActionListener: addActionListenerParent,\n trackAction,\n } = React.useContext(NavigationBuilderContext);\n\n const routerConfigOptionsRef = React.useRef(\n routerConfigOptions\n );\n\n React.useEffect(() => {\n routerConfigOptionsRef.current = routerConfigOptions;\n });\n\n const onAction = React.useCallback(\n (\n action: NavigationAction,\n visitedNavigators: Set = new Set()\n ) => {\n const state = getState();\n\n // Since actions can bubble both up and down, they could come to the same navigator again\n // We keep track of navigators which have already tried to handle the action and return if it's already visited\n if (visitedNavigators.has(state.key)) {\n return false;\n }\n\n visitedNavigators.add(state.key);\n\n if (typeof action.target === 'string' && action.target !== state.key) {\n return false;\n }\n\n let result = router.getStateForAction(\n state,\n action,\n routerConfigOptionsRef.current\n );\n\n // If a target is specified and set to current navigator, the action shouldn't bubble\n // So instead of `null`, we use the state object for such cases to signal that action was handled\n result = result === null && action.target === state.key ? state : result;\n\n if (result !== null) {\n trackAction(action);\n\n if (state !== result) {\n setState(result);\n }\n\n if (onRouteFocusParent !== undefined) {\n // Some actions such as `NAVIGATE` also want to bring the navigated route to focus in the whole tree\n // This means we need to focus all of the parent navigators of this navigator as well\n const shouldFocus = router.shouldActionChangeFocus(action);\n\n if (shouldFocus && key !== undefined) {\n onRouteFocusParent(key);\n }\n }\n\n return true;\n }\n\n if (onActionParent !== undefined) {\n // Bubble action to the parent if the current navigator didn't handle it\n if (onActionParent(action, visitedNavigators)) {\n return true;\n }\n }\n\n // If the action wasn't handled by current navigator or a parent navigator, let children handle it\n for (let i = listeners.length - 1; i >= 0; i--) {\n const listener = listeners[i];\n\n if (listener(action, visitedNavigators)) {\n return true;\n }\n }\n\n return false;\n },\n [\n getState,\n router,\n onActionParent,\n trackAction,\n onRouteFocusParent,\n setState,\n key,\n listeners,\n ]\n );\n\n React.useEffect(() => addActionListenerParent?.(onAction), [\n addActionListenerParent,\n onAction,\n ]);\n\n return onAction;\n}\n","import * as React from 'react';\nimport { NavigationState } from '@react-navigation/routers';\nimport NavigationContext from './NavigationContext';\nimport { NavigationEventEmitter } from './useEventEmitter';\n\ntype Options = {\n state: NavigationState;\n emitter: NavigationEventEmitter;\n};\n\n/**\n * Hook to take care of emitting `focus` and `blur` events.\n */\nexport default function useFocusEvents({ state, emitter }: Options) {\n const navigation = React.useContext(NavigationContext);\n const lastFocusedKeyRef = React.useRef();\n\n const currentFocusedKey = state.routes[state.index].key;\n\n // When the parent screen changes its focus state, we also need to change child's focus\n // Coz the child screen can't be focused if the parent screen is out of focus\n React.useEffect(\n () =>\n navigation?.addListener('focus', () => {\n lastFocusedKeyRef.current = currentFocusedKey;\n emitter.emit({ type: 'focus', target: currentFocusedKey });\n }),\n [currentFocusedKey, emitter, navigation]\n );\n\n React.useEffect(\n () =>\n navigation?.addListener('blur', () => {\n lastFocusedKeyRef.current = undefined;\n emitter.emit({ type: 'blur', target: currentFocusedKey });\n }),\n [currentFocusedKey, emitter, navigation]\n );\n\n React.useEffect(() => {\n const lastFocusedKey = lastFocusedKeyRef.current;\n\n lastFocusedKeyRef.current = currentFocusedKey;\n\n // We wouldn't have `lastFocusedKey` on initial mount\n // Fire focus event for the current route on mount if there's no parent navigator\n if (lastFocusedKey === undefined && !navigation) {\n emitter.emit({ type: 'focus', target: currentFocusedKey });\n }\n\n // We should only emit events when the focused key changed and navigator is focused\n // When navigator is not focused, screens inside shouldn't receive focused status either\n if (\n lastFocusedKey === currentFocusedKey ||\n !(navigation ? navigation.isFocused() : true)\n ) {\n return;\n }\n\n if (lastFocusedKey === undefined) {\n // Only fire events after initial mount\n return;\n }\n\n emitter.emit({ type: 'blur', target: lastFocusedKey });\n emitter.emit({ type: 'focus', target: currentFocusedKey });\n }, [currentFocusedKey, emitter, navigation]);\n}\n","import * as React from 'react';\nimport {\n NavigationAction,\n NavigationState,\n Router,\n} from '@react-navigation/routers';\nimport NavigationBuilderContext from './NavigationBuilderContext';\n\ntype Options = {\n router: Router;\n getState: () => NavigationState;\n setState: (state: NavigationState) => void;\n key?: string;\n};\n\n/**\n * Hook to handle focus actions for a route.\n * Focus action needs to be treated specially, coz when a nested route is focused,\n * the parent navigators also needs to be focused.\n */\nexport default function useOnRouteFocus({\n router,\n getState,\n key: sourceRouteKey,\n setState,\n}: Options) {\n const { onRouteFocus: onRouteFocusParent } = React.useContext(\n NavigationBuilderContext\n );\n\n return React.useCallback(\n (key: string) => {\n const state = getState();\n const result = router.getStateForRouteFocus(state, key);\n\n if (result !== state) {\n setState(result);\n }\n\n if (onRouteFocusParent !== undefined && sourceRouteKey !== undefined) {\n onRouteFocusParent(sourceRouteKey);\n }\n },\n [getState, onRouteFocusParent, router, setState, sourceRouteKey]\n );\n}\n","import * as React from 'react';\nimport { ChildActionListener } from './NavigationBuilderContext';\n\n/**\n * Hook which lets child navigators add action listeners.\n */\nexport default function useChildActionListeners() {\n const { current: listeners } = React.useRef([]);\n\n const addListener = React.useCallback(\n (listener: ChildActionListener) => {\n listeners.push(listener);\n\n return () => {\n const index = listeners.indexOf(listener);\n\n listeners.splice(index, 1);\n };\n },\n [listeners]\n );\n\n return {\n listeners,\n addListener,\n };\n}\n","import * as React from 'react';\nimport { ParamListBase } from '@react-navigation/routers';\nimport NavigationBuilderContext, {\n FocusedNavigationCallback,\n FocusedNavigationListener,\n} from './NavigationBuilderContext';\nimport { NavigationHelpers } from './types';\n\ntype Options = {\n navigation: NavigationHelpers;\n focusedListeners: FocusedNavigationListener[];\n};\n\n/**\n * Hook for passing focus callback to children\n */\nexport default function useFocusedListenersChildrenAdapter({\n navigation,\n focusedListeners,\n}: Options) {\n const { addFocusedListener } = React.useContext(NavigationBuilderContext);\n\n const listener = React.useCallback(\n (callback: FocusedNavigationCallback) => {\n if (navigation.isFocused()) {\n for (const listener of focusedListeners) {\n const { handled, result } = listener(callback);\n\n if (handled) {\n return { handled, result };\n }\n }\n\n return { handled: true, result: callback(navigation) };\n } else {\n return { handled: false, result: null };\n }\n },\n [focusedListeners, navigation]\n );\n\n React.useEffect(() => addFocusedListener?.(listener), [\n addFocusedListener,\n listener,\n ]);\n}\n","import * as React from 'react';\nimport { NavigationState } from '@react-navigation/routers';\nimport NavigationBuilderContext from './NavigationBuilderContext';\nimport NavigationRouteContext from './NavigationRouteContext';\n\nexport default function useOnGetState({\n getStateForRoute,\n getState,\n}: {\n getStateForRoute: (routeName: string) => NavigationState | undefined;\n getState: () => NavigationState;\n}) {\n const { addStateGetter } = React.useContext(NavigationBuilderContext);\n const route = React.useContext(NavigationRouteContext);\n const key = route ? route.key : 'root';\n\n const getRehydratedState = React.useCallback(() => {\n const state = getState();\n return {\n ...state,\n routes: state.routes.map((route) => ({\n ...route,\n state: getStateForRoute(route.key),\n })),\n };\n }, [getState, getStateForRoute]);\n\n React.useEffect(() => {\n return addStateGetter?.(key, getRehydratedState);\n }, [addStateGetter, getRehydratedState, key]);\n}\n","import * as React from 'react';\nimport { ParamListBase } from '@react-navigation/routers';\nimport NavigationContext from './NavigationContext';\nimport { NavigationProp } from './types';\n\n/**\n * Hook to access the navigation prop of the parent screen anywhere.\n *\n * @returns Navigation prop of the parent screen.\n */\nexport default function useNavigation<\n T extends NavigationProp\n>(): T {\n const navigation = React.useContext(NavigationContext);\n\n if (navigation === undefined) {\n throw new Error(\n \"Couldn't find a navigation object. Is your component inside a screen in a navigator?\"\n );\n }\n\n return navigation as T;\n}\n","import * as React from 'react';\nimport { ParamListBase } from '@react-navigation/routers';\nimport NavigationRouteContext from './NavigationRouteContext';\nimport { RouteProp } from './types';\n\n/**\n * Hook to access the route prop of the parent screen anywhere.\n *\n * @returns Route prop of the parent screen.\n */\nexport default function useRoute<\n T extends RouteProp\n>(): T {\n const route = React.useContext(NavigationRouteContext);\n\n if (route === undefined) {\n throw new Error(\n \"Couldn't find a route object. Is your component inside a screen in a navigator?\"\n );\n }\n\n return route as T;\n}\n","import * as React from 'react';\nimport useNavigation from './useNavigation';\n\ntype EffectCallback = () => undefined | void | (() => void);\n\n/**\n * Hook to run an effect in a focused screen, similar to `React.useEffect`.\n * This can be used to perform side-effects such as fetching data or subscribing to events.\n * The passed callback should be wrapped in `React.useCallback` to avoid running the effect too often.\n *\n * @param callback Memoized callback containing the effect, should optionally return a cleanup function.\n */\nexport default function useFocusEffect(effect: EffectCallback) {\n const navigation = useNavigation();\n\n React.useEffect(() => {\n let isFocused = false;\n let cleanup: undefined | void | (() => void);\n\n const callback = () => {\n const destroy = effect();\n\n if (destroy === undefined || typeof destroy === 'function') {\n return destroy;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n let message =\n 'An effect function must not return anything besides a function, which is used for clean-up.';\n\n if (destroy === null) {\n message +=\n \" You returned 'null'. If your effect does not require clean-up, return 'undefined' (or nothing).\";\n } else if (typeof (destroy as any).then === 'function') {\n message +=\n \"\\n\\nIt looks like you wrote 'useFocusEffect(async () => ...)' or returned a Promise. \" +\n 'Instead, write the async function inside your effect ' +\n 'and call it immediately:\\n\\n' +\n 'useFocusEffect(\\n' +\n ' React.useCallback() => {\\n' +\n ' async function fetchData() {\\n' +\n ' // You can await here\\n' +\n ' const response = await MyAPI.getData(someId);\\n' +\n ' // ...\\n' +\n ' }\\n\\n' +\n ' fetchData();\\n' +\n ' }, [someId])\\n' +\n '};\\n\\n' +\n 'See usage guide: https://reactnavigation.org/docs/use-focus-effect';\n } else {\n message += ` You returned: '${JSON.stringify(destroy)}'`;\n }\n\n console.error(message);\n }\n };\n\n // We need to run the effect on intial render/dep changes if the screen is focused\n if (navigation.isFocused()) {\n cleanup = callback();\n isFocused = true;\n }\n\n const unsubscribeFocus = navigation.addListener('focus', () => {\n // If callback was already called for focus, avoid calling it again\n // The focus event may also fire on intial render, so we guard against runing the effect twice\n if (isFocused) {\n return;\n }\n\n if (cleanup !== undefined) {\n cleanup();\n }\n\n cleanup = callback();\n isFocused = true;\n });\n\n const unsubscribeBlur = navigation.addListener('blur', () => {\n if (cleanup !== undefined) {\n cleanup();\n }\n\n cleanup = undefined;\n isFocused = false;\n });\n\n return () => {\n if (cleanup !== undefined) {\n cleanup();\n }\n\n unsubscribeFocus();\n unsubscribeBlur();\n };\n }, [effect, navigation]);\n}\n","import * as React from 'react';\nimport { useSubscription } from 'use-subscription';\nimport useNavigation from './useNavigation';\n\n/**\n * Hook to get the current focus state of the screen. Returns a `true` if screen is focused, otherwise `false`.\n * This can be used if a component needs to render something based on the focus state.\n * It uses `use-subscription` under the hood for safer use in concurrent mode.\n */\nexport default function useIsFocused(): boolean {\n const navigation = useNavigation();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const getCurrentValue = React.useCallback(navigation.isFocused, [navigation]);\n const subscribe = React.useCallback(\n (callback: (value: boolean) => void) => {\n const unsubscribeFocus = navigation.addListener('focus', () =>\n callback(true)\n );\n\n const unsubscribeBlur = navigation.addListener('blur', () =>\n callback(false)\n );\n\n return () => {\n unsubscribeFocus();\n unsubscribeBlur();\n };\n },\n [navigation]\n );\n\n return useSubscription({\n getCurrentValue,\n subscribe,\n });\n}\n","import * as React from 'react';\nimport { NavigationState } from '@react-navigation/routers';\nimport useNavigation from './useNavigation';\n\ntype Selector = (state: NavigationState) => T;\n\n/**\n * Hook to get a value from the current navigation state using a selector.\n *\n * @param selector Selector function to get a value from the state.\n */\nexport default function useNavigationState(selector: Selector): T {\n const navigation = useNavigation();\n\n // We don't care about the state value, we run the selector again at the end\n // The state is only to make sure that there's a re-render when we have a new value\n const [, setResult] = React.useState(() =>\n selector(navigation.dangerouslyGetState())\n );\n\n // We store the selector in a ref to avoid re-subscribing listeners every render\n const selectorRef = React.useRef(selector);\n\n React.useEffect(() => {\n selectorRef.current = selector;\n });\n\n React.useEffect(() => {\n const unsubscribe = navigation.addListener('state', (e) => {\n setResult(selectorRef.current(e.data.state));\n });\n\n return unsubscribe;\n }, [navigation]);\n\n return selector(navigation.dangerouslyGetState());\n}\n","import escape from 'escape-string-regexp';\nimport queryString from 'query-string';\nimport {\n NavigationState,\n PartialState,\n InitialState,\n} from '@react-navigation/routers';\nimport { PathConfig } from './types';\n\ntype ParseConfig = Record any>;\n\ntype RouteConfig = {\n screen: string;\n regex?: RegExp;\n path: string;\n pattern: string;\n routeNames: string[];\n parse?: ParseConfig;\n};\n\ntype InitialRouteConfig = {\n initialRouteName: string;\n connectedRoutes: string[];\n};\n\ntype ResultState = PartialState & {\n state?: ResultState;\n};\n\n/**\n * Utility to parse a path string to initial state object accepted by the container.\n * This is useful for deep linking when we need to handle the incoming URL.\n *\n * Example:\n * ```js\n * getStateFromPath(\n * '/chat/jane/42',\n * {\n * Chat: {\n * path: 'chat/:author/:id',\n * parse: { id: Number }\n * }\n * }\n * )\n * ```\n * @param path Path string to parse and convert, e.g. /foo/bar?count=42.\n * @param options Extra options to fine-tune how to parse the path.\n */\nexport default function getStateFromPath(\n path: string,\n options: PathConfig = {}\n): ResultState | undefined {\n let initialRoutes: InitialRouteConfig[] = [];\n\n // Create a normalized configs array which will be easier to use\n const configs = ([] as RouteConfig[])\n .concat(\n ...Object.keys(options).map((key) =>\n createNormalizedConfigs(key, options, [], initialRoutes)\n )\n )\n .sort(\n (a, b) =>\n // Sort configs so the most exhaustive is always first to be chosen\n b.pattern.split('/').length - a.pattern.split('/').length\n );\n\n let remaining = path\n .replace(/\\/+/g, '/') // Replace multiple slash (//) with single ones\n .replace(/^\\//, '') // Remove extra leading slash\n .replace(/\\?.*$/, ''); // Remove query params which we will handle later\n\n // Make sure there is a trailing slash\n remaining = remaining.endsWith('/') ? remaining : `${remaining}/`;\n\n if (remaining === '/') {\n // We need to add special handling of empty path so navigation to empty path also works\n // When handling empty path, we should only look at the root level config\n const match = configs.find(\n (config) =>\n config.path === '' &&\n config.routeNames.every(\n // Make sure that none of the parent configs have a non-empty path defined\n (name) => !configs.find((c) => c.screen === name)?.path\n )\n );\n\n if (match) {\n return createNestedStateObject(\n match.routeNames.map((name, i, self) => {\n if (i === self.length - 1) {\n return { name, params: parseQueryParams(path, match.parse) };\n }\n\n return { name };\n }),\n initialRoutes\n );\n }\n\n return undefined;\n }\n\n let result: PartialState | undefined;\n let current: PartialState | undefined;\n\n while (remaining) {\n let routeNames: string[] | undefined;\n let allParams: Record | undefined;\n\n // Go through all configs, and see if the next path segment matches our regex\n for (const config of configs) {\n if (!config.regex) {\n continue;\n }\n\n const match = remaining.match(config.regex);\n\n // If our regex matches, we need to extract params from the path\n if (match) {\n routeNames = [...config.routeNames];\n\n const paramPatterns = config.pattern\n .split('/')\n .filter((p) => p.startsWith(':'));\n\n if (paramPatterns.length) {\n allParams = paramPatterns.reduce>((acc, p, i) => {\n const value = match![(i + 1) * 2].replace(/\\//, ''); // The param segments appear every second item starting from 2 in the regex match result\n\n acc[p] = value;\n\n return acc;\n }, {});\n }\n\n remaining = remaining.replace(match[1], '');\n\n break;\n }\n }\n\n // If we hadn't matched any segments earlier, use the path as route name\n if (routeNames === undefined) {\n const segments = remaining.split('/');\n\n routeNames = [decodeURIComponent(segments[0])];\n segments.shift();\n remaining = segments.join('/');\n }\n\n const state = createNestedStateObject(\n routeNames.map((name) => {\n const config = configs.find((c) => c.screen === name);\n\n let params: object | undefined;\n\n if (allParams && config?.path) {\n const pattern = config.path;\n\n if (pattern) {\n const paramPatterns = pattern\n .split('/')\n .filter((p) => p.startsWith(':'));\n\n if (paramPatterns.length) {\n params = paramPatterns.reduce>((acc, p) => {\n const key = p.replace(/^:/, '').replace(/\\?$/, '');\n const value = allParams![p];\n\n if (value) {\n acc[key] =\n config.parse && config.parse[key]\n ? config.parse[key](value)\n : value;\n }\n\n return acc;\n }, {});\n }\n }\n }\n\n if (params && Object.keys(params).length) {\n return { name, params };\n }\n\n return { name };\n }),\n initialRoutes\n );\n\n if (current) {\n // The state should be nested inside the deepest route we parsed before\n while (current?.routes[current.index || 0].state) {\n current = current.routes[current.index || 0].state;\n }\n\n (current as PartialState).routes[\n current?.index || 0\n ].state = state;\n } else {\n result = state;\n }\n\n current = state;\n }\n\n if (current == null || result == null) {\n return undefined;\n }\n\n const route = findFocusedRoute(current);\n const params = parseQueryParams(\n path,\n findParseConfigForRoute(route.name, configs)\n );\n\n if (params) {\n route.params = { ...route.params, ...params };\n }\n\n return result;\n}\n\nconst joinPaths = (...paths: string[]): string =>\n ([] as string[])\n .concat(...paths.map((p) => p.split('/')))\n .filter(Boolean)\n .join('/');\n\nconst createNormalizedConfigs = (\n screen: string,\n routeConfig: PathConfig,\n routeNames: string[] = [],\n initials: InitialRouteConfig[],\n parentPattern?: string\n): RouteConfig[] => {\n const configs: RouteConfig[] = [];\n\n routeNames.push(screen);\n\n const config = routeConfig[screen];\n\n if (typeof config === 'string') {\n // If a string is specified as the value of the key(e.g. Foo: '/path'), use it as the pattern\n const pattern = parentPattern ? joinPaths(parentPattern, config) : config;\n\n configs.push(createConfigItem(screen, routeNames, pattern, config));\n } else if (typeof config === 'object') {\n let pattern: string | undefined;\n\n // if an object is specified as the value (e.g. Foo: { ... }),\n // it can have `path` property and\n // it could have `screens` prop which has nested configs\n if (typeof config.path === 'string') {\n pattern =\n config.exact !== true && parentPattern\n ? joinPaths(parentPattern, config.path)\n : config.path;\n\n configs.push(\n createConfigItem(screen, routeNames, pattern, config.path, config.parse)\n );\n }\n\n if (config.screens) {\n // property `initialRouteName` without `screens` has no purpose\n if (config.initialRouteName) {\n initials.push({\n initialRouteName: config.initialRouteName,\n connectedRoutes: Object.keys(config.screens),\n });\n }\n\n Object.keys(config.screens).forEach((nestedConfig) => {\n const result = createNormalizedConfigs(\n nestedConfig,\n config.screens as PathConfig,\n routeNames,\n initials,\n pattern\n );\n\n configs.push(...result);\n });\n }\n }\n\n routeNames.pop();\n\n return configs;\n};\n\nconst createConfigItem = (\n screen: string,\n routeNames: string[],\n pattern: string,\n path: string,\n parse?: ParseConfig\n): RouteConfig => {\n // Normalize pattern to remove any leading, trailing slashes, duplicate slashes etc.\n pattern = pattern.split('/').filter(Boolean).join('/');\n\n const regex = pattern\n ? new RegExp(\n `^(${pattern\n .split('/')\n .map((it) => {\n if (it.startsWith(':')) {\n return `(([^/]+\\\\/)${it.endsWith('?') ? '?' : ''})`;\n }\n\n return `${escape(it)}\\\\/`;\n })\n .join('')})`\n )\n : undefined;\n\n return {\n screen,\n regex,\n pattern,\n path,\n // The routeNames array is mutated, so copy it to keep the current state\n routeNames: [...routeNames],\n parse,\n };\n};\n\nconst findParseConfigForRoute = (\n routeName: string,\n flatConfig: RouteConfig[]\n): ParseConfig | undefined => {\n for (const config of flatConfig) {\n if (routeName === config.routeNames[config.routeNames.length - 1]) {\n return config.parse;\n }\n }\n\n return undefined;\n};\n\n// Try to find an initial route connected with the one passed\nconst findInitialRoute = (\n routeName: string,\n initialRoutes: InitialRouteConfig[]\n): string | undefined => {\n for (const config of initialRoutes) {\n if (config.connectedRoutes.includes(routeName)) {\n return config.initialRouteName === routeName\n ? undefined\n : config.initialRouteName;\n }\n }\n return undefined;\n};\n\n// returns state object with values depending on whether\n// it is the end of state and if there is initialRoute for this level\nconst createStateObject = (\n initialRoute: string | undefined,\n routeName: string,\n params: Record | undefined,\n isEmpty: boolean\n): InitialState => {\n if (isEmpty) {\n if (initialRoute) {\n return {\n index: 1,\n routes: [{ name: initialRoute }, { name: routeName as string, params }],\n };\n } else {\n return {\n routes: [{ name: routeName as string, params }],\n };\n }\n } else {\n if (initialRoute) {\n return {\n index: 1,\n routes: [\n { name: initialRoute },\n { name: routeName as string, params, state: { routes: [] } },\n ],\n };\n } else {\n return {\n routes: [{ name: routeName as string, params, state: { routes: [] } }],\n };\n }\n }\n};\n\nconst createNestedStateObject = (\n routes: { name: string; params?: object }[],\n initialRoutes: InitialRouteConfig[]\n) => {\n let state: InitialState;\n let route = routes.shift() as { name: string; params?: object };\n let initialRoute = findInitialRoute(route.name, initialRoutes);\n\n state = createStateObject(\n initialRoute,\n route.name,\n route.params,\n routes.length === 0\n );\n\n if (routes.length > 0) {\n let nestedState = state;\n\n while ((route = routes.shift() as { name: string; params?: object })) {\n initialRoute = findInitialRoute(route.name, initialRoutes);\n\n const nestedStateIndex =\n nestedState.index || nestedState.routes.length - 1;\n\n nestedState.routes[nestedStateIndex].state = createStateObject(\n initialRoute,\n route.name,\n route.params,\n routes.length === 0\n );\n\n if (routes.length > 0) {\n nestedState = nestedState.routes[nestedStateIndex]\n .state as InitialState;\n }\n }\n }\n\n return state;\n};\n\nconst findFocusedRoute = (state: InitialState) => {\n let current: InitialState | undefined = state;\n\n while (current?.routes[current.index || 0].state) {\n // The query params apply to the deepest route\n current = current.routes[current.index || 0].state;\n }\n\n const route = (current as PartialState).routes[\n current?.index || 0\n ];\n\n return route;\n};\n\nconst parseQueryParams = (\n path: string,\n parseConfig?: Record any>\n) => {\n const query = path.split('?')[1];\n const params = queryString.parse(query);\n\n if (parseConfig) {\n Object.keys(params).forEach((name) => {\n if (parseConfig[name] && typeof params[name] === 'string') {\n params[name] = parseConfig[name](params[name] as string);\n }\n });\n }\n\n return Object.keys(params).length ? params : undefined;\n};\n","'use strict';\n\nmodule.exports = string => {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a \\unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n};\n","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (value === null || value === undefined || value.length === 0) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.split('').indexOf(options.arrayFormatSeparator) > -1;\n\t\t\t\tconst newValue = isArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(input, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof input !== 'string') {\n\t\treturn ret;\n\t}\n\n\tinput = input.trim().replace(/^[?#&]/, '');\n\n\tif (!input) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of input.split('&')) {\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (input, options) => {\n\treturn {\n\t\turl: removeHash(input).split('?')[0] || '',\n\t\tquery: parse(extract(input), options)\n\t};\n};\n\nexports.stringifyUrl = (input, options) => {\n\tconst url = removeHash(input.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(input.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl);\n\tconst hash = getHash(input.url);\n\tconst query = Object.assign(parsedQueryFromUrl, input.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n","'use strict';\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n","'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n","import queryString from 'query-string';\nimport {\n NavigationState,\n PartialState,\n Route,\n} from '@react-navigation/routers';\nimport { PathConfig } from './types';\n\ntype State = NavigationState | Omit, 'stale'>;\n\ntype StringifyConfig = Record string>;\n\ntype OptionsItem = PathConfig[string];\n\ntype ConfigItem = {\n pattern?: string;\n stringify?: StringifyConfig;\n screens?: Record;\n};\n\n/**\n * Utility to serialize a navigation state object to a path string.\n *\n * Example:\n * ```js\n * getPathFromState(\n * {\n * routes: [\n * {\n * name: 'Chat',\n * params: { author: 'Jane', id: 42 },\n * },\n * ],\n * },\n * {\n * Chat: {\n * path: 'chat/:author/:id',\n * stringify: { author: author => author.toLowerCase() }\n * }\n * }\n * )\n * ```\n *\n * @param state Navigation state to serialize.\n * @param options Extra options to fine-tune how to serialize the path.\n * @returns Path representing the state, e.g. /foo/bar?count=42.\n */\nexport default function getPathFromState(\n state?: State,\n options: PathConfig = {}\n): string {\n if (state === undefined) {\n throw Error('NavigationState not passed');\n }\n\n // Create a normalized configs array which will be easier to use\n const configs = createNormalizedConfigs(options);\n\n let path = '/';\n let current: State | undefined = state;\n\n const allParams: Record = {};\n\n while (current) {\n let index = typeof current.index === 'number' ? current.index : 0;\n let route = current.routes[index] as Route & {\n state?: State;\n };\n\n let pattern: string | undefined;\n\n let currentParams: Record = { ...route.params };\n let currentOptions = configs;\n\n // Keep all the route names that appeared during going deeper in config in case the pattern is resolved to undefined\n let nestedRouteNames = [];\n\n let hasNext = true;\n\n while (route.name in currentOptions && hasNext) {\n pattern = currentOptions[route.name].pattern;\n\n nestedRouteNames.push(route.name);\n\n if (route.params) {\n const stringify = currentOptions[route.name]?.stringify;\n\n currentParams = fromEntries(\n Object.entries(route.params).map(([key, value]) => [\n key,\n stringify?.[key] ? stringify[key](value) : String(value),\n ])\n );\n\n if (pattern) {\n Object.assign(allParams, currentParams);\n }\n }\n\n // If there is no `screens` property or no nested state, we return pattern\n if (!currentOptions[route.name].screens || route.state === undefined) {\n hasNext = false;\n } else {\n index =\n typeof route.state.index === 'number'\n ? route.state.index\n : route.state.routes.length - 1;\n\n const nextRoute = route.state.routes[index];\n const nestedConfig = currentOptions[route.name].screens;\n\n // if there is config for next route name, we go deeper\n if (nestedConfig && nextRoute.name in nestedConfig) {\n route = nextRoute as Route & { state?: State };\n currentOptions = nestedConfig;\n } else {\n // If not, there is no sense in going deeper in config\n hasNext = false;\n }\n }\n }\n\n if (pattern === undefined) {\n pattern = nestedRouteNames.join('/');\n }\n\n if (currentOptions[route.name] !== undefined) {\n path += pattern\n .split('/')\n .map((p) => {\n const name = p.replace(/^:/, '').replace(/\\?$/, '');\n\n // If the path has a pattern for a param, put the param in the path\n if (p.startsWith(':')) {\n const value = allParams[name];\n\n // Remove the used value from the params object since we'll use the rest for query string\n if (currentParams) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete currentParams[name];\n }\n\n if (value === undefined && p.endsWith('?')) {\n // Optional params without value assigned in route.params should be ignored\n return '';\n }\n\n return encodeURIComponent(value);\n }\n\n return encodeURIComponent(p);\n })\n .join('/');\n } else {\n path += encodeURIComponent(route.name);\n }\n\n if (route.state) {\n path += '/';\n } else if (currentParams) {\n for (let param in currentParams) {\n if (currentParams[param] === 'undefined') {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete currentParams[param];\n }\n }\n\n const query = queryString.stringify(currentParams);\n\n if (query) {\n path += `?${query}`;\n }\n }\n\n current = route.state;\n }\n\n // Remove multiple as well as trailing slashes\n path = path.replace(/\\/+/g, '/');\n path = path.length > 1 ? path.replace(/\\/$/, '') : path;\n\n return path;\n}\n\n// Object.fromEntries is not available in older iOS versions\nconst fromEntries = (entries: (readonly [K, V])[]) =>\n entries.reduce((acc, [k, v]) => {\n acc[k] = v;\n return acc;\n }, {} as Record);\n\nconst joinPaths = (...paths: string[]): string =>\n ([] as string[])\n .concat(...paths.map((p) => p.split('/')))\n .filter(Boolean)\n .join('/');\n\nconst createConfigItem = (\n config: OptionsItem | string,\n parentPattern?: string\n): ConfigItem => {\n if (typeof config === 'string') {\n // If a string is specified as the value of the key(e.g. Foo: '/path'), use it as the pattern\n const pattern = parentPattern ? joinPaths(parentPattern, config) : config;\n\n return { pattern };\n }\n\n // If an object is specified as the value (e.g. Foo: { ... }),\n // It can have `path` property and `screens` prop which has nested configs\n const pattern =\n config.exact !== true && parentPattern && config.path\n ? joinPaths(parentPattern, config.path)\n : config.path;\n\n const screens = config.screens\n ? createNormalizedConfigs(config.screens, pattern)\n : undefined;\n\n return {\n // Normalize pattern to remove any leading, trailing slashes, duplicate slashes etc.\n pattern: pattern?.split('/').filter(Boolean).join('/'),\n stringify: config.stringify,\n screens,\n };\n};\n\nconst createNormalizedConfigs = (\n options: PathConfig,\n pattern?: string\n): Record =>\n fromEntries(\n Object.entries(options).map(([name, c]) => {\n const result = createConfigItem(c, pattern);\n\n return [name, result];\n })\n );\n","import { PartialState, NavigationState } from '@react-navigation/routers';\n\ntype NavigateParams = {\n screen?: string;\n params?: NavigateParams;\n initial?: boolean;\n};\n\ntype NavigateAction = {\n type: 'NAVIGATE';\n payload: { name: string; params: NavigateParams };\n};\n\nexport default function getActionFromState(\n state: PartialState\n): NavigateAction | undefined {\n if (state.routes.length === 0) {\n return undefined;\n }\n\n // Try to construct payload for a `NAVIGATE` action from the state\n // This lets us preserve the navigation state and not lose it\n let route = state.routes[state.routes.length - 1];\n\n let payload: { name: string; params: NavigateParams } = {\n name: route.name,\n params: { ...route.params },\n };\n\n let current = route.state;\n let params = payload.params;\n\n while (current) {\n if (current.routes.length === 0) {\n return undefined;\n }\n\n route = current.routes[current.routes.length - 1];\n params.initial = current.routes.length === 1;\n params.screen = route.name;\n\n if (route.state) {\n params.params = { ...route.params };\n params = params.params;\n } else {\n params.params = route.params;\n }\n\n current = route.state;\n }\n\n return {\n type: 'NAVIGATE',\n payload,\n };\n}\n","import * as React from 'react';\nimport {\n BaseNavigationContainer,\n NavigationContainerProps,\n NavigationContainerRef,\n} from '@react-navigation/core';\nimport ThemeProvider from './theming/ThemeProvider';\nimport DefaultTheme from './theming/DefaultTheme';\nimport LinkingContext from './LinkingContext';\nimport useThenable from './useThenable';\nimport useLinking from './useLinking';\nimport useBackButton from './useBackButton';\nimport { Theme, LinkingOptions } from './types';\n\ntype Props = NavigationContainerProps & {\n theme?: Theme;\n linking?: LinkingOptions;\n fallback?: React.ReactNode;\n};\n\n/**\n * Container component which holds the navigation state designed for React Native apps.\n * This should be rendered at the root wrapping the whole app.\n *\n * @param props.initialState Initial state object for the navigation tree. When deep link handling is enabled, this will override deep links when specified. Make sure that you don't specify an `initialState` when there's a deep link (`Linking.getInitialURL()`).\n * @param props.onStateChange Callback which is called with the latest navigation state when it changes.\n * @param props.theme Theme object for the navigators.\n * @param props.linking Options for deep linking. Deep link handling is enabled when this prop is provided, unless `linking.enabled` is `false`.\n * @param props.fallback Fallback component to render until we have finished getting initial state when linking is enabled. Defaults to `null`.\n * @param props.children Child elements to render the content.\n * @param props.ref Ref object which refers to the navigation object containing helper methods.\n */\nconst NavigationContainer = React.forwardRef(function NavigationContainer(\n { theme = DefaultTheme, linking, fallback = null, ...rest }: Props,\n ref?: React.Ref\n) {\n const isLinkingEnabled = linking ? linking.enabled !== false : false;\n\n const refContainer = React.useRef(null);\n\n useBackButton(refContainer);\n\n const { getInitialState } = useLinking(refContainer, {\n enabled: isLinkingEnabled,\n prefixes: [],\n ...linking,\n });\n\n const [isReady, initialState] = useThenable(getInitialState);\n\n React.useImperativeHandle(ref, () => refContainer.current);\n\n const linkingContext = React.useMemo(() => ({ options: linking }), [linking]);\n\n if (rest.initialState == null && isLinkingEnabled && !isReady) {\n // This is temporary until we have Suspense for data-fetching\n // Then the fallback will be handled by a parent `Suspense` component\n return fallback as React.ReactElement;\n }\n\n return (\n \n \n \n \n \n );\n});\n\nexport default NavigationContainer;\n","import * as React from 'react';\nimport ThemeContext from './ThemeContext';\nimport { Theme } from '../types';\n\ntype Props = {\n value: Theme;\n children: React.ReactNode;\n};\n\nexport default function ThemeProvider({ value, children }: Props) {\n return (\n {children}\n );\n}\n","import * as React from 'react';\nimport DefaultTheme from './DefaultTheme';\nimport { Theme } from '../types';\n\nconst ThemeContext = React.createContext(DefaultTheme);\n\nexport default ThemeContext;\n","import { Theme } from '../types';\n\nconst DefaultTheme: Theme = {\n dark: false,\n colors: {\n primary: 'rgb(0, 122, 255)',\n background: 'rgb(242, 242, 242)',\n card: 'rgb(255, 255, 255)',\n text: 'rgb(28, 28, 30)',\n border: 'rgb(224, 224, 224)',\n },\n};\n\nexport default DefaultTheme;\n","import * as React from 'react';\nimport { LinkingOptions } from './types';\n\nconst LinkingContext = React.createContext<{\n options: LinkingOptions | undefined;\n}>({ options: undefined });\n\nexport default LinkingContext;\n","import * as React from 'react';\n\nexport default function useThenable(create: () => PromiseLike) {\n const [promise] = React.useState(create);\n\n // Check if our thenable is synchronous\n let resolved = false;\n let value: T | undefined;\n\n promise.then((result) => {\n resolved = true;\n value = result;\n });\n\n const [state, setState] = React.useState<[boolean, T | undefined]>([\n resolved,\n value,\n ]);\n\n React.useEffect(() => {\n let cancelled = false;\n\n const resolve = async () => {\n let result;\n\n try {\n result = await promise;\n } finally {\n if (!cancelled) {\n setState([true, result]);\n }\n }\n };\n\n if (!resolved) {\n resolve();\n }\n\n return () => {\n cancelled = true;\n };\n }, [promise, resolved]);\n\n return state;\n}\n","import * as React from 'react';\nimport { Linking, Platform } from 'react-native';\nimport {\n getActionFromState,\n getStateFromPath as getStateFromPathDefault,\n NavigationContainerRef,\n} from '@react-navigation/core';\nimport { LinkingOptions } from './types';\n\nlet isUsingLinking = false;\n\nexport default function useLinking(\n ref: React.RefObject,\n {\n enabled = true,\n prefixes,\n config,\n getStateFromPath = getStateFromPathDefault,\n }: LinkingOptions\n) {\n React.useEffect(() => {\n if (enabled !== false && isUsingLinking) {\n throw new Error(\n [\n 'Looks like you have configured linking in multiple places. This is likely an error since deep links should only be handled in one place to avoid conflicts. Make sure that:',\n \"- You are not using both 'linking' prop and 'useLinking'\",\n \"- You don't have 'useLinking' in multiple components\",\n Platform.OS === 'android'\n ? \"- You have set 'android:launchMode=singleTask' in the '' section of the 'AndroidManifest.xml' file to avoid launching multiple instances\"\n : '',\n ]\n .join('\\n')\n .trim()\n );\n } else {\n isUsingLinking = enabled !== false;\n }\n\n return () => {\n isUsingLinking = false;\n };\n });\n\n // We store these options in ref to avoid re-creating getInitialState and re-subscribing listeners\n // This lets user avoid wrapping the items in `React.useCallback` or `React.useMemo`\n // Not re-creating `getInitialState` is important coz it makes it easier for the user to use in an effect\n const enabledRef = React.useRef(enabled);\n const prefixesRef = React.useRef(prefixes);\n const configRef = React.useRef(config);\n const getStateFromPathRef = React.useRef(getStateFromPath);\n\n React.useEffect(() => {\n enabledRef.current = enabled;\n prefixesRef.current = prefixes;\n configRef.current = config;\n getStateFromPathRef.current = getStateFromPath;\n }, [config, enabled, getStateFromPath, prefixes]);\n\n const extractPathFromURL = React.useCallback((url: string) => {\n for (const prefix of prefixesRef.current) {\n if (url.startsWith(prefix)) {\n return url.replace(prefix, '');\n }\n }\n\n return undefined;\n }, []);\n\n const getInitialState = React.useCallback(async () => {\n if (!enabledRef.current) {\n return undefined;\n }\n\n const url = await (Promise.race([\n Linking.getInitialURL(),\n new Promise((resolve) =>\n // Timeout in 150ms if `getInitialState` doesn't resolve\n // Workaround for https://github.com/facebook/react-native/issues/25675\n setTimeout(resolve, 150)\n ),\n ]) as Promise);\n\n const path = url ? extractPathFromURL(url) : null;\n\n if (path) {\n return getStateFromPathRef.current(path, configRef.current);\n } else {\n return undefined;\n }\n }, [extractPathFromURL]);\n\n React.useEffect(() => {\n const listener = ({ url }: { url: string }) => {\n if (!enabled) {\n return;\n }\n\n const path = extractPathFromURL(url);\n const navigation = ref.current;\n\n if (navigation && path) {\n const state = getStateFromPathRef.current(path, configRef.current);\n\n if (state) {\n const action = getActionFromState(state);\n\n if (action !== undefined) {\n navigation.dispatch(action);\n } else {\n navigation.resetRoot(state);\n }\n }\n }\n };\n\n Linking.addEventListener('url', listener);\n\n return () => Linking.removeEventListener('url', listener);\n }, [enabled, extractPathFromURL, ref]);\n\n return {\n getInitialState,\n };\n}\n","import * as React from 'react';\nimport { NavigationContainerRef } from '@react-navigation/core';\nimport { BackHandler } from 'react-native';\n\nexport default function useBackButton(\n ref: React.RefObject\n) {\n React.useEffect(() => {\n const subscription = BackHandler.addEventListener(\n 'hardwareBackPress',\n () => {\n const navigation = ref.current;\n\n if (navigation == null) {\n return false;\n }\n\n if (navigation.canGoBack()) {\n navigation.goBack();\n\n return true;\n }\n\n return false;\n }\n );\n\n return () => subscription.remove();\n }, [ref]);\n}\n","import * as React from 'react';\nimport { useNavigation, useRoute, EventArg } from '@react-navigation/core';\n\ntype ScrollOptions = { y?: number; animated?: boolean };\n\ntype ScrollableView =\n | { scrollToTop(): void }\n | { scrollTo(options: ScrollOptions): void }\n | { scrollToOffset(options: { offset?: number; animated?: boolean }): void }\n | { scrollResponderScrollTo(options: ScrollOptions): void };\n\ntype ScrollableWrapper =\n | { getScrollResponder(): React.ReactNode }\n | { getNode(): ScrollableView }\n | ScrollableView;\n\nfunction getScrollableNode(ref: React.RefObject) {\n if (ref.current == null) {\n return null;\n }\n\n if (\n 'scrollToTop' in ref.current ||\n 'scrollTo' in ref.current ||\n 'scrollToOffset' in ref.current ||\n 'scrollResponderScrollTo' in ref.current\n ) {\n // This is already a scrollable node.\n return ref.current;\n } else if ('getScrollResponder' in ref.current) {\n // If the view is a wrapper like FlatList, SectionList etc.\n // We need to use `getScrollResponder` to get access to the scroll responder\n return ref.current.getScrollResponder();\n } else if ('getNode' in ref.current) {\n // When a `ScrollView` is wraped in `Animated.createAnimatedComponent`\n // we need to use `getNode` to get the ref to the actual scrollview.\n // Note that `getNode` is deprecated in newer versions of react-native\n // this is why we check if we already have a scrollable node above.\n return ref.current.getNode();\n } else {\n return ref.current;\n }\n}\n\nexport default function useScrollToTop(\n ref: React.RefObject\n) {\n const navigation = useNavigation();\n const route = useRoute();\n\n React.useEffect(() => {\n let current = navigation;\n\n // The screen might be inside another navigator such as stack nested in tabs\n // We need to find the closest tab navigator and add the listener there\n while (current && current.dangerouslyGetState().type !== 'tab') {\n current = current.dangerouslyGetParent();\n }\n\n if (!current) {\n return;\n }\n\n const unsubscribe = current.addListener(\n // We don't wanna import tab types here to avoid extra deps\n // in addition, there are multiple tab implementations\n // @ts-ignore\n 'tabPress',\n (e: EventArg<'tabPress', true>) => {\n // We should scroll to top only when the screen is focused\n const isFocused = navigation.isFocused();\n\n // In a nested stack navigator, tab press resets the stack to first screen\n // So we should scroll to top only when we are on first screen\n const isFirst =\n navigation === current ||\n navigation.dangerouslyGetState().routes[0].key === route.key;\n\n // Run the operation in the next frame so we're sure all listeners have been run\n // This is necessary to know if preventDefault() has been called\n requestAnimationFrame(() => {\n const scrollable = getScrollableNode(ref) as ScrollableWrapper;\n\n if (isFocused && isFirst && scrollable && !e.defaultPrevented) {\n if ('scrollToTop' in scrollable) {\n scrollable.scrollToTop();\n } else if ('scrollTo' in scrollable) {\n scrollable.scrollTo({ y: 0, animated: true });\n } else if ('scrollToOffset' in scrollable) {\n scrollable.scrollToOffset({ offset: 0, animated: true });\n } else if ('scrollResponderScrollTo' in scrollable) {\n scrollable.scrollResponderScrollTo({ y: 0, animated: true });\n }\n }\n });\n }\n );\n\n return unsubscribe;\n }, [navigation, ref, route.key]);\n}\n","import { Theme } from '../types';\n\nconst DarkTheme: Theme = {\n dark: true,\n colors: {\n primary: 'rgb(10, 132, 255)',\n background: 'rgb(1, 1, 1)',\n card: 'rgb(18, 18, 18)',\n text: 'rgb(229, 229, 231)',\n border: 'rgb(39, 39, 41)',\n },\n};\n\nexport default DarkTheme;\n","import * as React from 'react';\nimport ThemeContext from './ThemeContext';\n\nexport default function useTheme() {\n const theme = React.useContext(ThemeContext);\n\n return theme;\n}\n","import * as React from 'react';\nimport { Text, TextProps, GestureResponderEvent, Platform } from 'react-native';\nimport { NavigationAction } from '@react-navigation/core';\nimport useLinkProps from './useLinkProps';\n\ntype Props = {\n to: string;\n action?: NavigationAction;\n target?: string;\n} & (TextProps & { children: React.ReactNode });\n\n/**\n * Component to render link to another screen using a path.\n * Uses an anchor tag on the web.\n *\n * @param props.to Absolute path to screen (e.g. `/feeds/hot`).\n * @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.\n * @param props.children Child elements to render the content.\n */\nexport default function Link({ to, action, ...rest }: Props) {\n const props = useLinkProps({ to, action });\n\n const onPress = (\n e: React.MouseEvent | GestureResponderEvent\n ) => {\n if ('onPress' in rest) {\n // @ts-ignore\n rest.onPress?.(e);\n }\n\n props.onPress(e);\n };\n\n return React.createElement(Text, {\n ...props,\n ...rest,\n ...Platform.select({\n web: { onClick: onPress } as any,\n default: { onPress },\n }),\n });\n}\n","import * as React from 'react';\nimport { Platform, GestureResponderEvent } from 'react-native';\nimport {\n NavigationAction,\n NavigationHelpersContext,\n} from '@react-navigation/core';\nimport useLinkTo from './useLinkTo';\n\ntype Props = {\n to: string;\n action?: NavigationAction;\n};\n\n/**\n * Hook to get props for an anchor tag so it can work with in page navigation.\n *\n * @param props.to Absolute path to screen (e.g. `/feeds/hot`).\n * @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.\n */\nexport default function useLinkProps({ to, action }: Props) {\n const navigation = React.useContext(NavigationHelpersContext);\n const linkTo = useLinkTo();\n\n const onPress = (\n e: React.MouseEvent | GestureResponderEvent\n ) => {\n let shouldHandle = false;\n\n if (Platform.OS !== 'web' || !e) {\n shouldHandle = e ? !e.defaultPrevented : true;\n } else if (\n !e.defaultPrevented && // onPress prevented default\n // @ts-ignore\n !(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && // ignore clicks with modifier keys\n // @ts-ignore\n (e.button == null || e.button === 0) && // ignore everything but left clicks\n // @ts-ignore\n [undefined, null, '', 'self'].includes(e.currentTarget?.target) // let browser handle \"target=_blank\" etc.\n ) {\n e.preventDefault();\n shouldHandle = true;\n }\n\n if (shouldHandle) {\n if (action) {\n if (navigation) {\n navigation.dispatch(action);\n } else {\n throw new Error(\"Couldn't find a navigation object.\");\n }\n } else {\n if (typeof to !== 'string') {\n throw new Error(\n `To 'to' option is invalid (found '${String(\n to\n )}'. It must be a valid string for navigation.`\n );\n }\n\n linkTo(to);\n }\n }\n };\n\n return {\n href: to,\n accessibilityRole: 'link' as const,\n onPress,\n };\n}\n","import * as React from 'react';\nimport {\n getStateFromPath,\n getActionFromState,\n NavigationContext,\n} from '@react-navigation/core';\nimport LinkingContext from './LinkingContext';\n\nexport default function useLinkTo() {\n const navigation = React.useContext(NavigationContext);\n const linking = React.useContext(LinkingContext);\n\n const linkTo = React.useCallback(\n (path: string) => {\n if (!path.startsWith('/')) {\n throw new Error(`The path must start with '/' (${path}).`);\n }\n\n if (navigation === undefined) {\n throw new Error(\n \"Couldn't find a navigation object. Is your component inside a screen in a navigator?\"\n );\n }\n\n const { options } = linking;\n\n const state = options?.getStateFromPath\n ? options.getStateFromPath(path, options.config)\n : getStateFromPath(path, options?.config);\n\n if (state) {\n let root = navigation;\n let current;\n\n // Traverse up to get the root navigation\n while ((current = root.dangerouslyGetParent())) {\n root = current;\n }\n\n const action = getActionFromState(state);\n\n if (action !== undefined) {\n root.dispatch(action);\n } else {\n root.reset(state);\n }\n } else {\n throw new Error('Failed to parse the path to a navigation state.');\n }\n },\n [linking, navigation]\n );\n\n return linkTo;\n}\n","import * as React from 'react';\nimport {\n NavigationHelpers,\n NavigationHelpersContext,\n NavigationProp,\n ParamListBase,\n getPathFromState,\n} from '@react-navigation/core';\nimport LinkingContext from './LinkingContext';\n\ntype NavigationObject =\n | NavigationHelpers\n | NavigationProp;\n\ntype MinimalState = {\n index: number;\n routes: { name: string; params?: object; state?: MinimalState }[];\n};\n\nconst getRootStateForNavigate = (\n navigation: NavigationObject,\n state: MinimalState\n): MinimalState => {\n const parent = navigation.dangerouslyGetParent();\n\n if (parent) {\n const parentState = parent.dangerouslyGetState();\n\n return getRootStateForNavigate(parent, {\n index: 0,\n routes: [\n {\n ...parentState.routes[parentState.index],\n state: state,\n },\n ],\n });\n }\n\n return state;\n};\n\n/**\n * Build destination link for a navigate action.\n * Useful for showing anchor tags on the web for buttons that perform navigation.\n */\nexport default function useLinkBuilder() {\n const navigation = React.useContext(NavigationHelpersContext);\n const linking = React.useContext(LinkingContext);\n\n const buildLink = React.useCallback(\n (name: string, params?: object) => {\n const { options } = linking;\n\n if (options?.enabled === false) {\n return undefined;\n }\n\n const state = navigation\n ? getRootStateForNavigate(navigation, {\n index: 0,\n routes: [{ name, params }],\n })\n : // If we couldn't find a navigation object in context, we're at root\n // So we'll construct a basic state object to use\n {\n index: 0,\n routes: [{ name, params }],\n };\n\n const path = options?.getPathFromState\n ? options.getPathFromState(state, options?.config)\n : getPathFromState(state, options?.config);\n\n return path;\n },\n [linking, navigation]\n );\n\n return buildLink;\n}\n","import * as React from 'react';\nimport { View, Platform, StyleSheet } from 'react-native';\nimport { SafeAreaConsumer, EdgeInsets } from 'react-native-safe-area-context';\nimport {\n NavigationHelpersContext,\n StackActions,\n StackNavigationState,\n Route,\n} from '@react-navigation/native';\n\nimport { GestureHandlerRootView } from '../GestureHandler';\nimport CardStack from './CardStack';\nimport KeyboardManager from '../KeyboardManager';\nimport HeaderContainer, {\n Props as HeaderContainerProps,\n} from '../Header/HeaderContainer';\nimport SafeAreaProviderCompat from '../SafeAreaProviderCompat';\nimport {\n StackNavigationHelpers,\n StackNavigationConfig,\n StackDescriptorMap,\n} from '../../types';\n\ntype Props = StackNavigationConfig & {\n state: StackNavigationState;\n navigation: StackNavigationHelpers;\n descriptors: StackDescriptorMap;\n};\n\ntype State = {\n // Local copy of the routes which are actually rendered\n routes: Route[];\n // Previous routes, to compare whether routes have changed or not\n previousRoutes: Route[];\n // Previous descriptors, to compare whether descriptors have changed or not\n previousDescriptors: StackDescriptorMap;\n // List of routes being opened, we need to animate pushing of these new routes\n openingRouteKeys: string[];\n // List of routes being closed, we need to animate popping of these routes\n closingRouteKeys: string[];\n // List of routes being replaced, we need to keep a copy until the new route animates in\n replacingRouteKeys: string[];\n // Since the local routes can vary from the routes from props, we need to keep the descriptors for old routes\n // Otherwise we won't be able to access the options for routes that were removed\n descriptors: StackDescriptorMap;\n};\n\nconst GestureHandlerWrapper = GestureHandlerRootView ?? View;\n\n/**\n * Compare two arrays with primitive values as the content.\n * We need to make sure that both values and order match.\n */\nconst isArrayEqual = (a: any[], b: any[]) =>\n a.length === b.length && a.every((it, index) => it === b[index]);\n\nexport default class StackView extends React.Component {\n static getDerivedStateFromProps(\n props: Readonly,\n state: Readonly\n ) {\n // If there was no change in routes, we don't need to compute anything\n if (\n (props.state.routes === state.previousRoutes ||\n isArrayEqual(\n props.state.routes.map((r) => r.key),\n state.previousRoutes.map((r) => r.key)\n )) &&\n state.routes.length\n ) {\n let routes = state.routes;\n let previousRoutes = state.previousRoutes;\n let descriptors = props.descriptors;\n let previousDescriptors = state.previousDescriptors;\n\n if (props.descriptors !== state.previousDescriptors) {\n descriptors = state.routes.reduce((acc, route) => {\n acc[route.key] =\n props.descriptors[route.key] || state.descriptors[route.key];\n\n return acc;\n }, {});\n\n previousDescriptors = props.descriptors;\n }\n\n if (props.state.routes !== state.previousRoutes) {\n // if any route objects have changed, we should update them\n const map = props.state.routes.reduce>>(\n (acc, route) => {\n acc[route.key] = route;\n return acc;\n },\n {}\n );\n\n routes = state.routes.map((route) => map[route.key] || route);\n previousRoutes = props.state.routes;\n }\n\n return {\n routes,\n previousRoutes,\n descriptors,\n previousDescriptors,\n };\n }\n\n // Here we determine which routes were added or removed to animate them\n // We keep a copy of the route being removed in local state to be able to animate it\n\n let routes =\n props.state.index < props.state.routes.length - 1\n ? // Remove any extra routes from the state\n // The last visible route should be the focused route, i.e. at current index\n props.state.routes.slice(0, props.state.index + 1)\n : props.state.routes;\n\n // Now we need to determine which routes were added and removed\n let {\n openingRouteKeys,\n closingRouteKeys,\n replacingRouteKeys,\n previousRoutes,\n } = state;\n\n const previousFocusedRoute = previousRoutes[previousRoutes.length - 1] as\n | Route\n | undefined;\n const nextFocusedRoute = routes[routes.length - 1];\n\n const isAnimationEnabled = (key: string) => {\n const descriptor = props.descriptors[key] || state.descriptors[key];\n\n return descriptor ? descriptor.options.animationEnabled !== false : true;\n };\n\n const getAnimationTypeForReplace = (key: string) => {\n const descriptor = props.descriptors[key] || state.descriptors[key];\n\n return descriptor.options.animationTypeForReplace ?? 'push';\n };\n\n if (\n previousFocusedRoute &&\n previousFocusedRoute.key !== nextFocusedRoute.key\n ) {\n // We only need to animate routes if the focused route changed\n // Animating previous routes won't be visible coz the focused route is on top of everything\n\n if (!previousRoutes.some((r) => r.key === nextFocusedRoute.key)) {\n // A new route has come to the focus, we treat this as a push\n // A replace can also trigger this, the animation should look like push\n\n if (\n isAnimationEnabled(nextFocusedRoute.key) &&\n !openingRouteKeys.includes(nextFocusedRoute.key)\n ) {\n // In this case, we need to animate pushing the focused route\n // We don't care about animating any other added routes because they won't be visible\n openingRouteKeys = [...openingRouteKeys, nextFocusedRoute.key];\n\n closingRouteKeys = closingRouteKeys.filter(\n (key) => key !== nextFocusedRoute.key\n );\n replacingRouteKeys = replacingRouteKeys.filter(\n (key) => key !== nextFocusedRoute.key\n );\n\n if (!routes.some((r) => r.key === previousFocusedRoute.key)) {\n // The previous focused route isn't present in state, we treat this as a replace\n\n openingRouteKeys = openingRouteKeys.filter(\n (key) => key !== previousFocusedRoute.key\n );\n\n if (getAnimationTypeForReplace(nextFocusedRoute.key) === 'pop') {\n closingRouteKeys = [\n ...closingRouteKeys,\n previousFocusedRoute.key,\n ];\n\n // By default, new routes have a push animation, so we add it to `openingRouteKeys` before\n // But since user configured it to animate the old screen like a pop, we need to add this without animation\n // So remove it from `openingRouteKeys` which will remove the animation\n openingRouteKeys = openingRouteKeys.filter(\n (key) => key !== nextFocusedRoute.key\n );\n\n // Keep the route being removed at the end to animate it out\n routes = [...routes, previousFocusedRoute];\n } else {\n replacingRouteKeys = [\n ...replacingRouteKeys,\n previousFocusedRoute.key,\n ];\n\n closingRouteKeys = closingRouteKeys.filter(\n (key) => key !== previousFocusedRoute.key\n );\n\n // Keep the old route in the state because it's visible under the new route, and removing it will feel abrupt\n // We need to insert it just before the focused one (the route being pushed)\n // After the push animation is completed, routes being replaced will be removed completely\n routes = routes.slice();\n routes.splice(routes.length - 1, 0, previousFocusedRoute);\n }\n }\n }\n } else if (!routes.some((r) => r.key === previousFocusedRoute.key)) {\n // The previously focused route was removed, we treat this as a pop\n\n if (\n isAnimationEnabled(previousFocusedRoute.key) &&\n !closingRouteKeys.includes(previousFocusedRoute.key)\n ) {\n closingRouteKeys = [...closingRouteKeys, previousFocusedRoute.key];\n\n // Sometimes a route can be closed before the opening animation finishes\n // So we also need to remove it from the opening list\n openingRouteKeys = openingRouteKeys.filter(\n (key) => key !== previousFocusedRoute.key\n );\n replacingRouteKeys = replacingRouteKeys.filter(\n (key) => key !== previousFocusedRoute.key\n );\n\n // Keep a copy of route being removed in the state to be able to animate it\n routes = [...routes, previousFocusedRoute];\n }\n } else {\n // Looks like some routes were re-arranged and no focused routes were added/removed\n // i.e. the currently focused route already existed and the previously focused route still exists\n // We don't know how to animate this\n }\n } else if (replacingRouteKeys.length || closingRouteKeys.length) {\n // Keep the routes we are closing or replacing if animation is enabled for them\n routes = routes.slice();\n routes.splice(\n routes.length - 1,\n 0,\n ...state.routes.filter(({ key }) =>\n isAnimationEnabled(key)\n ? replacingRouteKeys.includes(key) || closingRouteKeys.includes(key)\n : false\n )\n );\n }\n\n if (!routes.length) {\n throw new Error(\n 'There should always be at least one route in the navigation state.'\n );\n }\n\n const descriptors = routes.reduce((acc, route) => {\n acc[route.key] =\n props.descriptors[route.key] || state.descriptors[route.key];\n\n return acc;\n }, {});\n\n return {\n routes,\n previousRoutes: props.state.routes,\n previousDescriptors: props.descriptors,\n openingRouteKeys,\n closingRouteKeys,\n replacingRouteKeys,\n descriptors,\n };\n }\n\n state: State = {\n routes: [],\n previousRoutes: [],\n previousDescriptors: {},\n openingRouteKeys: [],\n closingRouteKeys: [],\n replacingRouteKeys: [],\n descriptors: {},\n };\n\n private getGesturesEnabled = ({ route }: { route: Route }) => {\n const descriptor = this.state.descriptors[route.key];\n\n if (descriptor) {\n const { gestureEnabled, animationEnabled } = descriptor.options;\n\n if (animationEnabled === false) {\n // When animation is disabled, also disable gestures\n // The gesture to dismiss a route will look weird when not animated\n return false;\n }\n\n return gestureEnabled !== false;\n }\n\n return false;\n };\n\n private getPreviousRoute = ({ route }: { route: Route }) => {\n const { closingRouteKeys, replacingRouteKeys } = this.state;\n const routes = this.state.routes.filter(\n (r) =>\n r.key === route.key ||\n (!closingRouteKeys.includes(r.key) &&\n !replacingRouteKeys.includes(r.key))\n );\n\n const index = routes.findIndex((r) => r.key === route.key);\n\n return routes[index - 1];\n };\n\n private renderScene = ({ route }: { route: Route }) => {\n const descriptor =\n this.state.descriptors[route.key] || this.props.descriptors[route.key];\n\n if (!descriptor) {\n return null;\n }\n\n return descriptor.render();\n };\n\n private renderHeader = (props: HeaderContainerProps) => {\n return ;\n };\n\n private handleOpenRoute = ({ route }: { route: Route }) => {\n const { state, navigation } = this.props;\n\n if (\n this.state.replacingRouteKeys.every((key) => key !== route.key) &&\n state.routeNames.includes(route.name) &&\n !state.routes.some((r) => r.key === route.key)\n ) {\n // If route isn't present in current state, assume that a close animation was cancelled\n // So we need to add this route back to the state\n navigation.navigate(route);\n } else {\n this.setState((state) => ({\n routes: state.replacingRouteKeys.length\n ? state.routes.filter(\n (r) => !state.replacingRouteKeys.includes(r.key)\n )\n : state.routes,\n openingRouteKeys: state.openingRouteKeys.filter(\n (key) => key !== route.key\n ),\n closingRouteKeys: state.closingRouteKeys.filter(\n (key) => key !== route.key\n ),\n replacingRouteKeys: [],\n }));\n }\n };\n\n private handleCloseRoute = ({ route }: { route: Route }) => {\n const { state, navigation } = this.props;\n\n if (state.routes.some((r) => r.key === route.key)) {\n // If a route exists in state, trigger a pop\n // This will happen in when the route was closed from the card component\n // e.g. When the close animation triggered from a gesture ends\n navigation.dispatch({\n ...StackActions.pop(),\n source: route.key,\n target: state.key,\n });\n } else {\n // We need to clean up any state tracking the route and pop it immediately\n this.setState((state) => ({\n routes: state.routes.filter((r) => r.key !== route.key),\n openingRouteKeys: state.openingRouteKeys.filter(\n (key) => key !== route.key\n ),\n closingRouteKeys: state.closingRouteKeys.filter(\n (key) => key !== route.key\n ),\n }));\n }\n };\n\n private handleTransitionStart = (\n { route }: { route: Route },\n closing: boolean\n ) =>\n this.props.navigation.emit({\n type: 'transitionStart',\n data: { closing },\n target: route.key,\n });\n\n private handleTransitionEnd = (\n { route }: { route: Route },\n closing: boolean\n ) =>\n this.props.navigation.emit({\n type: 'transitionEnd',\n data: { closing },\n target: route.key,\n });\n\n render() {\n const {\n state,\n navigation,\n keyboardHandlingEnabled,\n mode = 'card',\n ...rest\n } = this.props;\n\n const {\n routes,\n descriptors,\n openingRouteKeys,\n closingRouteKeys,\n } = this.state;\n\n const headerMode =\n mode === 'card' && Platform.OS === 'ios' ? 'float' : 'screen';\n\n return (\n \n \n \n \n {(insets) => (\n \n {(props) => (\n \n )}\n \n )}\n \n \n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n","export * from './SafeAreaContext';\nexport * from './SafeAreaView';\nexport * from './InitialWindow';\nexport * from './SafeArea.types';\n","import * as React from 'react';\nimport { StyleSheet, Dimensions } from 'react-native';\nimport NativeSafeAreaView from './NativeSafeAreaView';\nimport { EdgeInsets, InsetChangedEvent, Metrics, Rect } from './SafeArea.types';\n\nexport const SafeAreaInsetsContext = React.createContext(\n null,\n);\n\nexport const SafeAreaFrameContext = React.createContext(null);\n\nexport interface SafeAreaViewProps {\n children?: React.ReactNode;\n initialMetrics?: Metrics | null;\n /**\n * @deprecated\n */\n initialSafeAreaInsets?: EdgeInsets | null;\n}\n\nexport function SafeAreaProvider({\n children,\n initialMetrics,\n initialSafeAreaInsets,\n}: SafeAreaViewProps) {\n const parentInsets = useParentSafeAreaInsets();\n const parentFrame = useParentSafeAreaFrame();\n const [insets, setInsets] = React.useState(\n initialMetrics?.insets ?? initialSafeAreaInsets ?? parentInsets ?? null,\n );\n const [frame, setFrame] = React.useState(\n initialMetrics?.frame ??\n parentFrame ?? {\n // Backwards compat so we render anyway if we don't have frame.\n x: 0,\n y: 0,\n width: Dimensions.get('window').width,\n height: Dimensions.get('window').height,\n },\n );\n const onInsetsChange = React.useCallback((event: InsetChangedEvent) => {\n // Backwards compat with old native code that won't send frame.\n if (event.nativeEvent.frame != null) {\n setFrame(event.nativeEvent.frame);\n }\n setInsets(event.nativeEvent.insets);\n }, []);\n\n return (\n \n {insets != null ? (\n \n \n {children}\n \n \n ) : null}\n \n );\n}\n\nconst styles = StyleSheet.create({\n fill: { flex: 1 },\n});\n\nfunction useParentSafeAreaInsets(): EdgeInsets | null {\n return React.useContext(SafeAreaInsetsContext);\n}\n\nfunction useParentSafeAreaFrame(): Rect | null {\n return React.useContext(SafeAreaFrameContext);\n}\n\nexport function useSafeAreaInsets(): EdgeInsets {\n const safeArea = React.useContext(SafeAreaInsetsContext);\n if (safeArea == null) {\n throw new Error(\n 'No safe area insets value available. Make sure you are rendering `` at the top of your app.',\n );\n }\n return safeArea;\n}\n\nexport function useSafeAreaFrame(): Rect {\n const frame = React.useContext(SafeAreaFrameContext);\n if (frame == null) {\n throw new Error(\n 'No safe area frame value available. Make sure you are rendering `` at the top of your app.',\n );\n }\n return frame;\n}\n\nexport function withSafeAreaInsets(\n WrappedComponent: React.ComponentType,\n) {\n return (props: T) => (\n \n {(insets) => }\n \n );\n}\n\n/**\n * @deprecated\n */\nexport function useSafeArea(): EdgeInsets {\n return useSafeAreaInsets();\n}\n\n/**\n * @deprecated\n */\nexport function SafeAreaConsumer(\n props: React.ComponentProps,\n) {\n return ;\n}\n\n/**\n * @deprecated\n */\nexport const SafeAreaContext = SafeAreaInsetsContext;\n","import { requireNativeComponent } from 'react-native';\nimport { NativeSafeAreaViewProps } from './SafeArea.types';\n\nexport default requireNativeComponent(\n 'RNCSafeAreaView',\n);\n","import * as React from 'react';\nimport { View, ViewProps } from 'react-native';\nimport { useSafeAreaInsets } from './SafeAreaContext';\n\nexport function SafeAreaView({\n style,\n ...rest\n}: ViewProps & { children: React.ReactNode }) {\n const insets = useSafeAreaInsets();\n\n return (\n \n );\n}\n","import { UIManager } from 'react-native';\nimport { Metrics } from './SafeArea.types';\n\nconst RNCSafeAreaViewConfig = UIManager.getViewManagerConfig(\n 'RNCSafeAreaView',\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n) as any;\n\nexport const initialWindowMetrics = (RNCSafeAreaViewConfig != null &&\nRNCSafeAreaViewConfig.Constants != null\n ? RNCSafeAreaViewConfig.Constants.initialWindowMetrics\n : null) as Metrics | null;\n\n/**\n * @deprecated\n */\nexport const initialWindowSafeAreaInsets = initialWindowMetrics?.insets;\n","import { NativeSyntheticEvent, ViewStyle } from 'react-native';\n\nexport interface EdgeInsets {\n top: number;\n right: number;\n bottom: number;\n left: number;\n}\n\nexport interface Rect {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nexport interface Metrics {\n insets: EdgeInsets;\n frame: Rect;\n}\n\nexport type InsetChangedEvent = NativeSyntheticEvent;\n\nexport type InsetChangeNativeCallback = (event: InsetChangedEvent) => void;\n\nexport interface NativeSafeAreaViewProps {\n children?: React.ReactNode;\n style?: ViewStyle;\n onInsetsChange: InsetChangeNativeCallback;\n}\n","import * as React from 'react';\nimport {\n PanGestureHandler as PanGestureHandlerNative,\n PanGestureHandlerProperties,\n} from 'react-native-gesture-handler';\nimport GestureHandlerRefContext from '../utils/GestureHandlerRefContext';\n\nexport function PanGestureHandler(props: PanGestureHandlerProperties) {\n const gestureRef = React.useRef(null);\n\n return (\n \n \n \n );\n}\n\nexport {\n GestureHandlerRootView,\n State as GestureState,\n PanGestureHandlerGestureEvent,\n} from 'react-native-gesture-handler';\n","export { default as Swipeable } from './Swipeable';\nexport { default as DrawerLayout } from './DrawerLayout';\nexport * from './GestureHandler';\nexport * from './touchables';\n","// @flow\n\n// Similarily to the DrawerLayout component this deserves to be put in a\n// separate repo. Although, keeping it here for the time being will allow us\n// to move faster and fix possible issues quicker\n\nimport React, { Component } from 'react';\nimport { Animated, StyleSheet, View, I18nManager } from 'react-native';\n\nimport { PanGestureHandler, TapGestureHandler, State } from './GestureHandler';\n\nconst DRAG_TOSS = 0.05;\n\nexport type PropType = {\n children: any,\n friction: number,\n leftThreshold?: number,\n rightThreshold?: number,\n overshootLeft?: boolean,\n overshootRight?: boolean,\n overshootFriction: number,\n onSwipeableLeftOpen?: Function,\n onSwipeableRightOpen?: Function,\n onSwipeableOpen?: Function,\n onSwipeableClose?: Function,\n onSwipeableLeftWillOpen?: Function,\n onSwipeableRightWillOpen?: Function,\n onSwipeableWillOpen?: Function,\n onSwipeableWillClose?: Function,\n renderLeftActions?: (\n progressAnimatedValue: any,\n dragAnimatedValue: any\n ) => any,\n renderRightActions?: (\n progressAnimatedValue: any,\n dragAnimatedValue: any\n ) => any,\n useNativeAnimations: boolean,\n animationOptions?: Object,\n containerStyle?: Object,\n childrenContainerStyle?: Object,\n};\ntype StateType = {\n dragX: Animated.Value,\n rowTranslation: Animated.Value,\n rowState: number,\n leftWidth: number | typeof undefined,\n rightOffset: number | typeof undefined,\n rowWidth: number | typeof undefined,\n};\n\nexport default class Swipeable extends Component {\n static defaultProps = {\n friction: 1,\n overshootFriction: 1,\n useNativeAnimations: true,\n };\n _onGestureEvent: ?Animated.Event;\n _transX: ?Animated.Interpolation;\n _showLeftAction: ?Animated.Interpolation | ?Animated.Value;\n _leftActionTranslate: ?Animated.Interpolation;\n _showRightAction: ?Animated.Interpolation | ?Animated.Value;\n _rightActionTranslate: ?Animated.Interpolation;\n\n constructor(props: PropType) {\n super(props);\n const dragX = new Animated.Value(0);\n this.state = {\n dragX,\n rowTranslation: new Animated.Value(0),\n rowState: 0,\n leftWidth: undefined,\n rightOffset: undefined,\n rowWidth: undefined,\n };\n this._updateAnimatedEvent(props, this.state);\n\n this._onGestureEvent = Animated.event(\n [{ nativeEvent: { translationX: dragX } }],\n { useNativeDriver: props.useNativeAnimations }\n );\n }\n\n UNSAFE_componentWillUpdate(props: PropType, state: StateType) {\n if (\n this.props.friction !== props.friction ||\n this.props.overshootLeft !== props.overshootLeft ||\n this.props.overshootRight !== props.overshootRight ||\n this.props.overshootFriction !== props.overshootFriction ||\n this.state.leftWidth !== state.leftWidth ||\n this.state.rightOffset !== state.rightOffset ||\n this.state.rowWidth !== state.rowWidth\n ) {\n this._updateAnimatedEvent(props, state);\n }\n }\n\n _updateAnimatedEvent = (props: PropType, state: StateType) => {\n const { friction, overshootFriction, useNativeAnimations } = props;\n const { dragX, rowTranslation, leftWidth = 0, rowWidth = 0 } = state;\n const { rightOffset = rowWidth } = state;\n const rightWidth = Math.max(0, rowWidth - rightOffset);\n\n const {\n overshootLeft = leftWidth > 0,\n overshootRight = rightWidth > 0,\n } = props;\n\n const transX = Animated.add(\n rowTranslation,\n dragX.interpolate({\n inputRange: [0, friction],\n outputRange: [0, 1],\n })\n ).interpolate({\n inputRange: [\n -rightWidth - (overshootRight ? 1 : overshootFriction),\n -rightWidth,\n leftWidth,\n leftWidth + (overshootLeft ? 1 : overshootFriction),\n ],\n outputRange: [\n -rightWidth - (overshootRight || overshootFriction > 1 ? 1 : 0),\n -rightWidth,\n leftWidth,\n leftWidth + (overshootLeft || overshootFriction > 1 ? 1 : 0),\n ],\n });\n this._transX = transX;\n this._showLeftAction =\n leftWidth > 0\n ? transX.interpolate({\n inputRange: [-1, 0, leftWidth],\n outputRange: [0, 0, 1],\n })\n : new Animated.Value(0);\n this._leftActionTranslate = this._showLeftAction.interpolate({\n inputRange: [0, Number.MIN_VALUE],\n outputRange: [-10000, 0],\n extrapolate: 'clamp',\n });\n this._showRightAction =\n rightWidth > 0\n ? transX.interpolate({\n inputRange: [-rightWidth, 0, 1],\n outputRange: [1, 0, 0],\n })\n : new Animated.Value(0);\n this._rightActionTranslate = this._showRightAction.interpolate({\n inputRange: [0, Number.MIN_VALUE],\n outputRange: [-10000, 0],\n extrapolate: 'clamp',\n });\n };\n\n _onTapHandlerStateChange = ({ nativeEvent }) => {\n if (nativeEvent.oldState === State.ACTIVE) {\n this.close();\n }\n };\n\n _onHandlerStateChange = ({ nativeEvent }) => {\n if (nativeEvent.oldState === State.ACTIVE) {\n this._handleRelease(nativeEvent);\n }\n };\n\n _handleRelease = nativeEvent => {\n const { velocityX, translationX: dragX } = nativeEvent;\n const { leftWidth = 0, rowWidth = 0, rowState } = this.state;\n const { rightOffset = rowWidth } = this.state;\n const rightWidth = rowWidth - rightOffset;\n const {\n friction,\n leftThreshold = leftWidth / 2,\n rightThreshold = rightWidth / 2,\n } = this.props;\n\n const startOffsetX = this._currentOffset() + dragX / friction;\n const translationX = (dragX + DRAG_TOSS * velocityX) / friction;\n\n let toValue = 0;\n if (rowState === 0) {\n if (translationX > leftThreshold) {\n toValue = leftWidth;\n } else if (translationX < -rightThreshold) {\n toValue = -rightWidth;\n }\n } else if (rowState === 1) {\n // swiped to left\n if (translationX > -leftThreshold) {\n toValue = leftWidth;\n }\n } else {\n // swiped to right\n if (translationX < rightThreshold) {\n toValue = -rightWidth;\n }\n }\n\n this._animateRow(startOffsetX, toValue, velocityX / friction);\n };\n\n _animateRow = (fromValue, toValue, velocityX) => {\n const { dragX, rowTranslation } = this.state;\n dragX.setValue(0);\n rowTranslation.setValue(fromValue);\n\n this.setState({ rowState: Math.sign(toValue) });\n Animated.spring(rowTranslation, {\n restSpeedThreshold: 1.7,\n restDisplacementThreshold: 0.4,\n velocity: velocityX,\n bounciness: 0,\n toValue,\n useNativeDriver: this.props.useNativeAnimations,\n ...this.props.animationOptions,\n }).start(({ finished }) => {\n if (finished) {\n if (toValue > 0 && this.props.onSwipeableLeftOpen) {\n this.props.onSwipeableLeftOpen();\n } else if (toValue < 0 && this.props.onSwipeableRightOpen) {\n this.props.onSwipeableRightOpen();\n }\n\n if (toValue === 0) {\n this.props.onSwipeableClose && this.props.onSwipeableClose();\n } else {\n this.props.onSwipeableOpen && this.props.onSwipeableOpen();\n }\n }\n });\n if (toValue > 0 && this.props.onSwipeableLeftWillOpen) {\n this.props.onSwipeableLeftWillOpen();\n } else if (toValue < 0 && this.props.onSwipeableRightWillOpen) {\n this.props.onSwipeableRightWillOpen();\n }\n\n if (toValue === 0) {\n this.props.onSwipeableWillClose && this.props.onSwipeableWillClose();\n } else {\n this.props.onSwipeableWillOpen && this.props.onSwipeableWillOpen();\n }\n };\n\n _onRowLayout = ({ nativeEvent }) => {\n this.setState({ rowWidth: nativeEvent.layout.width });\n };\n\n _currentOffset = () => {\n const { leftWidth = 0, rowWidth = 0, rowState } = this.state;\n const { rightOffset = rowWidth } = this.state;\n const rightWidth = rowWidth - rightOffset;\n if (rowState === 1) {\n return leftWidth;\n } else if (rowState === -1) {\n return -rightWidth;\n }\n return 0;\n };\n\n close = () => {\n this._animateRow(this._currentOffset(), 0);\n };\n\n openLeft = () => {\n const { leftWidth = 0 } = this.state;\n this._animateRow(this._currentOffset(), leftWidth);\n };\n\n openRight = () => {\n const { rowWidth = 0 } = this.state;\n const { rightOffset = rowWidth } = this.state;\n const rightWidth = rowWidth - rightOffset;\n this._animateRow(this._currentOffset(), -rightWidth);\n };\n\n render() {\n const { rowState } = this.state;\n const { children, renderLeftActions, renderRightActions } = this.props;\n\n const left = renderLeftActions && (\n \n {renderLeftActions(this._showLeftAction, this._transX)}\n \n this.setState({ leftWidth: nativeEvent.layout.x })\n }\n />\n \n );\n\n const right = renderRightActions && (\n \n {renderRightActions(this._showRightAction, this._transX)}\n \n this.setState({ rightOffset: nativeEvent.layout.x })\n }\n />\n \n );\n\n return (\n \n \n {left}\n {right}\n \n \n {children}\n \n \n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n overflow: 'hidden',\n },\n leftActions: {\n ...StyleSheet.absoluteFillObject,\n flexDirection: I18nManager.isRTL? 'row-reverse': 'row',\n },\n rightActions: {\n ...StyleSheet.absoluteFillObject,\n flexDirection: I18nManager.isRTL ? 'row' : 'row-reverse',\n },\n});\n","export { default as createNativeWrapper } from './createNativeWrapper';\nexport { default as Directions } from './Directions';\nexport { default as gestureHandlerRootHOC } from './gestureHandlerRootHOC';\nexport { default as GestureHandlerRootView } from './GestureHandlerRootView';\nexport {\n default as NativeViewGestureHandler,\n} from './NativeViewGestureHandler';\nexport { default as State } from './State';\n\nexport * from './GestureButtons';\nexport * from './GestureComponents';\nexport * from './Gestures';\n","import React from 'react';\n\nimport NativeViewGestureHandler from './NativeViewGestureHandler';\n\nconst NATIVE_WRAPPER_BIND_BLACKLIST = new Set(['replaceState', 'isMounted']);\n\n/*\n * This array should consist of:\n * - All keys in propTypes from NativeGestureHandler\n * (and all keys in GestureHandlerPropTypes)\n * - 'onGestureHandlerEvent'\n * - 'onGestureHandlerStateChange'\n */\nconst NATIVE_WRAPPER_PROPS_FILTER = [\n 'id',\n 'minPointers',\n 'enabled',\n 'waitFor',\n 'simultaneousHandlers',\n 'shouldCancelWhenOutside',\n 'hitSlop',\n 'onGestureEvent',\n 'onHandlerStateChange',\n 'onBegan',\n 'onFailed',\n 'onCancelled',\n 'onActivated',\n 'onEnded',\n 'shouldActivateOnStart',\n 'disallowInterruption',\n 'onGestureHandlerEvent',\n 'onGestureHandlerStateChange',\n];\n\nexport default function createNativeWrapper(Component, config = {}) {\n class ComponentWrapper extends React.Component {\n static propTypes = {\n ...Component.propTypes,\n };\n\n static displayName = Component.displayName || 'ComponentWrapper';\n\n _refHandler = node => {\n // bind native component's methods\n let source = node;\n while (source != null) {\n for (let methodName of Object.getOwnPropertyNames(source)) {\n if (\n !methodName.startsWith('_') && // private methods\n !methodName.startsWith('component') && // lifecycle methods\n !NATIVE_WRAPPER_BIND_BLACKLIST.has(methodName) && // other\n typeof source[methodName] === 'function' &&\n this[methodName] === undefined\n ) {\n if (source[methodName].prototype) {\n // determine if it's not bound already\n this[methodName] = source[methodName].bind(node);\n } else {\n this[methodName] = source[methodName];\n }\n }\n }\n source = Object.getPrototypeOf(source);\n }\n };\n\n render() {\n // filter out props that should be passed to gesture handler wrapper\n const gestureHandlerProps = Object.keys(this.props).reduce(\n (props, key) => {\n if (NATIVE_WRAPPER_PROPS_FILTER.indexOf(key) !== -1) {\n props[key] = this.props[key];\n }\n return props;\n },\n { ...config } // watch out not to modify config\n );\n return (\n \n \n \n );\n }\n }\n return ComponentWrapper;\n}\n","import PropTypes from 'prop-types';\n\nimport createHandler from './createHandler';\nimport GestureHandlerPropTypes from './GestureHandlerPropTypes';\n\nconst NativeViewGestureHandler = createHandler('NativeViewGestureHandler', {\n ...GestureHandlerPropTypes,\n\n // If changed, add changes to NATIVE_WRAPPER_PROPS_FILTER as well\n shouldActivateOnStart: PropTypes.bool,\n disallowInterruption: PropTypes.bool,\n});\n\nexport default NativeViewGestureHandler;\n","import React from 'react';\nimport {\n findNodeHandle as findNodeHandleRN,\n NativeModules,\n Touchable,\n Platform,\n} from 'react-native';\nimport deepEqual from 'fbjs/lib/areEqual';\nimport RNGestureHandlerModule from './RNGestureHandlerModule';\nimport State from './State';\n\nfunction findNodeHandle(node) {\n if (Platform.OS === 'web') return node;\n return findNodeHandleRN(node);\n}\n\nconst { UIManager = {} } = NativeModules;\n\nconst customGHEventsConfig = {\n onGestureHandlerEvent: { registrationName: 'onGestureHandlerEvent' },\n onGestureHandlerStateChange: {\n registrationName: 'onGestureHandlerStateChange',\n },\n};\n\n// Add gesture specific events to genericDirectEventTypes object exported from UIManager\n// native module.\n// Once new event types are registered with react it is possible to dispatch these\n// events to all kind of native views.\nUIManager.genericDirectEventTypes = {\n ...UIManager.genericDirectEventTypes,\n ...customGHEventsConfig,\n};\n// In newer versions of RN the `genericDirectEventTypes` is located in the object\n// returned by UIManager.getConstants(), we need to add it there as well to make\n// it compatible with RN 61+\nif (UIManager.getConstants) {\n UIManager.getConstants().genericDirectEventTypes = {\n ...UIManager.getConstants().genericDirectEventTypes,\n ...customGHEventsConfig,\n };\n}\n\n// Wrap JS responder calls and notify gesture handler manager\nconst {\n setJSResponder: oldSetJSResponder = () => {},\n clearJSResponder: oldClearJSResponder = () => {},\n} = UIManager;\nUIManager.setJSResponder = (tag, blockNativeResponder) => {\n RNGestureHandlerModule.handleSetJSResponder(tag, blockNativeResponder);\n oldSetJSResponder(tag, blockNativeResponder);\n};\nUIManager.clearJSResponder = () => {\n RNGestureHandlerModule.handleClearJSResponder();\n oldClearJSResponder();\n};\n\nlet handlerTag = 1;\nconst handlerIDToTag = {};\n\nfunction isConfigParam(param, name) {\n // param !== Object(param) returns false if `param` is a function\n // or an object and returns true if `param` is null\n return (\n param !== undefined &&\n (param !== Object(param) || !('__isNative' in param)) &&\n name !== 'onHandlerStateChange' &&\n name !== 'onGestureEvent'\n );\n}\n\nfunction filterConfig(props, validProps, defaults = {}) {\n const res = { ...defaults };\n Object.keys(validProps).forEach(key => {\n const value = props[key];\n if (isConfigParam(value, key)) {\n let value = props[key];\n if (key === 'simultaneousHandlers' || key === 'waitFor') {\n value = transformIntoHandlerTags(props[key]);\n } else if (key === 'hitSlop') {\n if (typeof value !== 'object') {\n value = { top: value, left: value, bottom: value, right: value };\n }\n }\n res[key] = value;\n }\n });\n return res;\n}\n\nfunction transformIntoHandlerTags(handlerIDs) {\n if (!Array.isArray(handlerIDs)) {\n handlerIDs = [handlerIDs];\n }\n\n if (Platform.OS === 'web') {\n return handlerIDs.map(({ current }) => current).filter(handle => handle);\n }\n // converts handler string IDs into their numeric tags\n return handlerIDs\n .map(\n handlerID =>\n handlerIDToTag[handlerID] ||\n (handlerID.current && handlerID.current._handlerTag) ||\n -1\n )\n .filter(handlerTag => handlerTag > 0);\n}\n\nfunction hasUnresolvedRefs(props) {\n const extract = refs => {\n if (!Array.isArray(refs)) {\n return refs && refs.current === null;\n }\n return refs.some(r => r && r.current === null);\n };\n return extract(props['simultaneousHandlers']) || extract(props['waitFor']);\n}\n\nconst stateToPropMappings = {\n [State.BEGAN]: 'onBegan',\n [State.FAILED]: 'onFailed',\n [State.CANCELLED]: 'onCancelled',\n [State.ACTIVE]: 'onActivated',\n [State.END]: 'onEnded',\n};\n\nexport default function createHandler(\n handlerName,\n propTypes = {},\n config = {},\n transformProps,\n customNativeProps = {}\n) {\n class Handler extends React.Component {\n static displayName = handlerName;\n\n static propTypes = propTypes;\n\n constructor(props) {\n super(props);\n this._handlerTag = handlerTag++;\n this._config = {};\n if (props.id) {\n if (handlerIDToTag[props.id] !== undefined) {\n throw new Error(`Handler with ID \"${props.id}\" already registered`);\n }\n handlerIDToTag[props.id] = this._handlerTag;\n }\n }\n\n _onGestureHandlerEvent = event => {\n if (event.nativeEvent.handlerTag === this._handlerTag) {\n this.props.onGestureEvent && this.props.onGestureEvent(event);\n } else {\n this.props.onGestureHandlerEvent &&\n this.props.onGestureHandlerEvent(event);\n }\n };\n\n _onGestureHandlerStateChange = event => {\n if (event.nativeEvent.handlerTag === this._handlerTag) {\n this.props.onHandlerStateChange &&\n this.props.onHandlerStateChange(event);\n\n const stateEventName = stateToPropMappings[event.nativeEvent.state];\n if (typeof this.props[stateEventName] === 'function') {\n this.props[stateEventName](event);\n }\n } else {\n this.props.onGestureHandlerStateChange &&\n this.props.onGestureHandlerStateChange(event);\n }\n };\n\n _refHandler = node => {\n this._viewNode = node;\n\n const child = React.Children.only(this.props.children);\n const { ref } = child;\n if (ref !== null) {\n if (typeof ref === 'function') {\n ref(node);\n } else {\n ref.current = node;\n }\n }\n };\n\n _createGestureHandler = newConfig => {\n this._config = newConfig;\n\n RNGestureHandlerModule.createGestureHandler(\n handlerName,\n this._handlerTag,\n newConfig\n );\n };\n\n _attachGestureHandler = newViewTag => {\n this._viewTag = newViewTag;\n\n RNGestureHandlerModule.attachGestureHandler(this._handlerTag, newViewTag);\n };\n\n _updateGestureHandler = newConfig => {\n this._config = newConfig;\n\n RNGestureHandlerModule.updateGestureHandler(this._handlerTag, newConfig);\n };\n\n componentWillUnmount() {\n RNGestureHandlerModule.dropGestureHandler(this._handlerTag);\n if (this._updateEnqueued) {\n clearImmediate(this._updateEnqueued);\n }\n if (this.props.id) {\n delete handlerIDToTag[this.props.id];\n }\n }\n\n componentDidMount() {\n if (hasUnresolvedRefs(this.props)) {\n // If there are unresolved refs (e.g. \".current\" has not yet been set)\n // passed as `simultaneousHandlers` or `waitFor`, we enqueue a call to\n // _update method that will try to update native handler props using\n // setImmediate. This makes it so _update function gets called after all\n // react components are mounted and we expect the missing ref object to\n // be resolved by then.\n this._updateEnqueued = setImmediate(() => {\n this._updateEnqueued = null;\n this._update();\n });\n }\n\n this._createGestureHandler(\n filterConfig(\n transformProps ? transformProps(this.props) : this.props,\n { ...this.constructor.propTypes, ...customNativeProps },\n config\n )\n );\n this._attachGestureHandler(findNodeHandle(this._viewNode));\n }\n\n componentDidUpdate() {\n const viewTag = findNodeHandle(this._viewNode);\n if (this._viewTag !== viewTag) {\n this._attachGestureHandler(viewTag);\n }\n this._update();\n }\n\n _update() {\n const newConfig = filterConfig(\n transformProps ? transformProps(this.props) : this.props,\n { ...this.constructor.propTypes, ...customNativeProps },\n config\n );\n if (!deepEqual(this._config, newConfig)) {\n this._updateGestureHandler(newConfig);\n }\n }\n\n setNativeProps(updates) {\n const mergedProps = { ...this.props, ...updates };\n const newConfig = filterConfig(\n transformProps ? transformProps(mergedProps) : mergedProps,\n { ...this.constructor.propTypes, ...customNativeProps },\n config\n );\n this._updateGestureHandler(newConfig);\n }\n\n render() {\n let gestureEventHandler = this._onGestureHandlerEvent;\n const { onGestureEvent, onGestureHandlerEvent } = this.props;\n if (onGestureEvent && typeof onGestureEvent !== 'function') {\n // If it's not a method it should be an native Animated.event\n // object. We set it directly as the handler for the view\n // In this case nested handlers are not going to be supported\n if (onGestureHandlerEvent) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n gestureEventHandler = this.props.onGestureEvent;\n } else {\n if (\n onGestureHandlerEvent &&\n typeof onGestureHandlerEvent !== 'function'\n ) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n }\n\n let gestureStateEventHandler = this._onGestureHandlerStateChange;\n const { onHandlerStateChange, onGestureHandlerStateChange } = this.props;\n if (onHandlerStateChange && typeof onHandlerStateChange !== 'function') {\n // If it's not a method it should be an native Animated.event\n // object. We set it directly as the handler for the view\n // In this case nested handlers are not going to be supported\n if (onGestureHandlerStateChange) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n gestureStateEventHandler = this.props.onHandlerStateChange;\n } else {\n if (\n onGestureHandlerStateChange &&\n typeof onGestureHandlerStateChange !== 'function'\n ) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n }\n\n const child = React.Children.only(this.props.children);\n let grandChildren = child.props.children;\n if (\n Touchable.TOUCH_TARGET_DEBUG &&\n child.type &&\n (child.type === 'RNGestureHandlerButton' ||\n child.type.name === 'View' ||\n child.type.displayName === 'View')\n ) {\n grandChildren = React.Children.toArray(grandChildren);\n grandChildren.push(\n Touchable.renderDebugView({\n color: 'mediumspringgreen',\n hitSlop: child.props.hitSlop,\n })\n );\n }\n return React.cloneElement(\n child,\n {\n ref: this._refHandler,\n collapsable: false,\n onGestureHandlerEvent: gestureEventHandler,\n onGestureHandlerStateChange: gestureStateEventHandler,\n },\n grandChildren\n );\n }\n }\n return Handler;\n}\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar aStackPool = [];\nvar bStackPool = [];\n/**\n * Checks if two values are equal. Values may be primitives, arrays, or objects.\n * Returns true if both arguments have the same keys and values.\n *\n * @see http://underscorejs.org\n * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.\n * @license MIT\n */\n\nfunction areEqual(a, b) {\n var aStack = aStackPool.length ? aStackPool.pop() : [];\n var bStack = bStackPool.length ? bStackPool.pop() : [];\n var result = eq(a, b, aStack, bStack);\n aStack.length = 0;\n bStack.length = 0;\n aStackPool.push(aStack);\n bStackPool.push(bStack);\n return result;\n}\n\nfunction eq(a, b, aStack, bStack) {\n if (a === b) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n return a !== 0 || 1 / a == 1 / b;\n }\n\n if (a == null || b == null) {\n // a or b can be `null` or `undefined`\n return false;\n }\n\n if (typeof a != 'object' || typeof b != 'object') {\n return false;\n }\n\n var objToStr = Object.prototype.toString;\n var className = objToStr.call(a);\n\n if (className != objToStr.call(b)) {\n return false;\n }\n\n switch (className) {\n case '[object String]':\n return a == String(b);\n\n case '[object Number]':\n return isNaN(a) || isNaN(b) ? false : a == Number(b);\n\n case '[object Date]':\n case '[object Boolean]':\n return +a == +b;\n\n case '[object RegExp]':\n return a.source == b.source && a.global == b.global && a.multiline == b.multiline && a.ignoreCase == b.ignoreCase;\n } // Assume equality for cyclic structures.\n\n\n var length = aStack.length;\n\n while (length--) {\n if (aStack[length] == a) {\n return bStack[length] == b;\n }\n }\n\n aStack.push(a);\n bStack.push(b);\n var size = 0; // Recursively compare objects and arrays.\n\n if (className === '[object Array]') {\n size = a.length;\n\n if (size !== b.length) {\n return false;\n } // Deep compare the contents, ignoring non-numeric properties.\n\n\n while (size--) {\n if (!eq(a[size], b[size], aStack, bStack)) {\n return false;\n }\n }\n } else {\n if (a.constructor !== b.constructor) {\n return false;\n }\n\n if (a.hasOwnProperty('valueOf') && b.hasOwnProperty('valueOf')) {\n return a.valueOf() == b.valueOf();\n }\n\n var keys = Object.keys(a);\n\n if (keys.length != Object.keys(b).length) {\n return false;\n }\n\n for (var i = 0; i < keys.length; i++) {\n if (!eq(a[keys[i]], b[keys[i]], aStack, bStack)) {\n return false;\n }\n }\n }\n\n aStack.pop();\n bStack.pop();\n return true;\n}\n\nmodule.exports = areEqual;","import { NativeModules } from 'react-native';\n\nconst { RNGestureHandlerModule } = NativeModules;\n\nexport default RNGestureHandlerModule;\n","const State = {\n UNDETERMINED: 0,\n FAILED: 1,\n BEGAN: 2,\n CANCELLED: 3,\n ACTIVE: 4,\n END: 5,\n};\n\nState.print = state => {\n const keys = Object.keys(State);\n for (let i = 0; i < keys.length; i++) {\n if (state === State[keys[i]]) {\n return keys[i];\n }\n }\n};\n\nexport default State;\n","import PropTypes from 'prop-types';\n\n// If changed, add changes to NATIVE_WRAPPER_PROPS_FILTER as well\nconst GestureHandlerPropTypes = {\n id: PropTypes.string,\n minPointers: PropTypes.number,\n enabled: PropTypes.bool,\n waitFor: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object,\n PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n ),\n ]),\n simultaneousHandlers: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object,\n PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n ),\n ]),\n shouldCancelWhenOutside: PropTypes.bool,\n hitSlop: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.shape({\n left: PropTypes.number,\n top: PropTypes.number,\n right: PropTypes.number,\n bottom: PropTypes.number,\n vertical: PropTypes.number,\n horizontal: PropTypes.number,\n width: PropTypes.number,\n height: PropTypes.number,\n }),\n ]),\n onGestureEvent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n onHandlerStateChange: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n onBegan: PropTypes.func,\n onFailed: PropTypes.func,\n onCancelled: PropTypes.func,\n onActivated: PropTypes.func,\n onEnded: PropTypes.func,\n};\n\nexport default GestureHandlerPropTypes;\n","import RNGestureHandlerModule from './RNGestureHandlerModule';\n\nexport default RNGestureHandlerModule.Direction;\n","import React from 'react';\nimport { StyleSheet } from 'react-native';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport GestureHandlerRootView from './GestureHandlerRootView';\n\nexport default function gestureHandlerRootHOC(\n Component,\n containerStyles = undefined\n) {\n function Wrapper(props) {\n return (\n \n \n \n );\n }\n\n Wrapper.displayName = `gestureHandlerRootHOC(${Component.displayName ||\n Component.name})`;\n\n hoistNonReactStatics(Wrapper, Component);\n\n return Wrapper;\n}\n\nconst styles = StyleSheet.create({\n container: { flex: 1 },\n});\n","'use strict';\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\n\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components\n\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try { // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n\n return targetComponent;\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","import React from 'react';\nimport { View, ViewPropTypes, requireNativeComponent } from 'react-native';\n\nconst iface = {\n name: 'GestureHandlerRootView',\n propTypes: {\n ...ViewPropTypes,\n },\n};\n\nconst GestureHandlerRootViewNative = requireNativeComponent(\n 'GestureHandlerRootView',\n iface\n);\n\nconst GestureHandlerRootViewContext = React.createContext(false);\n\nexport default function GestureHandlerRootView({ children, ...rest }) {\n return (\n \n {available => {\n if (available) {\n // If we already have a parent wrapped in the gesture handler root view,\n // We don't need to wrap it again in root view\n // We still wrap it in a normal view so our styling stays the same\n return {children};\n }\n\n return (\n \n \n {children}\n \n \n );\n }}\n \n );\n}\n","import PropTypes from 'prop-types';\nimport React from 'react';\nimport { Animated, Platform, processColor, StyleSheet } from 'react-native';\n\nimport createNativeWrapper from './createNativeWrapper';\nimport GestureHandlerButton from './GestureHandlerButton';\nimport State from './State';\n\nexport const RawButton = createNativeWrapper(GestureHandlerButton, {\n shouldCancelWhenOutside: false,\n shouldActivateOnStart: false,\n});\n\n/* Buttons */\n\nexport class BaseButton extends React.Component {\n static propTypes = {\n ...RawButton.propTypes,\n onPress: PropTypes.func,\n onActiveStateChange: PropTypes.func,\n };\n\n constructor(props) {\n super(props);\n this._lastActive = false;\n }\n\n _handleEvent = ({ nativeEvent }) => {\n const { state, oldState, pointerInside } = nativeEvent;\n const active = pointerInside && state === State.ACTIVE;\n\n if (active !== this._lastActive && this.props.onActiveStateChange) {\n this.props.onActiveStateChange(active);\n }\n\n if (\n oldState === State.ACTIVE &&\n state !== State.CANCELLED &&\n this._lastActive &&\n this.props.onPress\n ) {\n this.props.onPress(active);\n }\n\n this._lastActive = active;\n };\n\n // Normally, the parent would execute it's handler first,\n // then forward the event to listeners. However, here our handler\n // is virtually only forwarding events to listeners, so we reverse the order\n // to keep the proper order of the callbacks (from \"raw\" ones to \"processed\").\n _onHandlerStateChange = e => {\n this.props.onHandlerStateChange && this.props.onHandlerStateChange(e);\n this._handleEvent(e);\n };\n\n _onGestureEvent = e => {\n this.props.onGestureEvent && this.props.onGestureEvent(e);\n this._handleEvent(e);\n };\n\n render() {\n const { style, rippleColor, ...rest } = this.props;\n\n return (\n \n );\n }\n}\n\nconst AnimatedBaseButton = Animated.createAnimatedComponent(BaseButton);\n\nconst btnStyles = StyleSheet.create({\n underlay: {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: 0,\n top: 0,\n },\n});\n\nexport class RectButton extends React.Component {\n static propTypes = BaseButton.propTypes;\n\n static defaultProps = {\n activeOpacity: 0.105,\n underlayColor: 'black',\n };\n\n constructor(props) {\n super(props);\n this._opacity = new Animated.Value(0);\n }\n\n _onActiveStateChange = active => {\n if (Platform.OS !== 'android') {\n this._opacity.setValue(active ? this.props.activeOpacity : 0);\n }\n\n this.props.onActiveStateChange && this.props.onActiveStateChange(active);\n };\n\n render() {\n const { children, ...rest } = this.props;\n\n return (\n \n \n {children}\n \n );\n }\n}\n\nexport class BorderlessButton extends React.Component {\n static propTypes = {\n ...BaseButton.propTypes,\n borderless: PropTypes.bool,\n };\n\n static defaultProps = {\n activeOpacity: 0.3,\n borderless: true,\n };\n\n constructor(props) {\n super(props);\n this._opacity = new Animated.Value(1);\n }\n\n _onActiveStateChange = active => {\n if (Platform.OS !== 'android') {\n this._opacity.setValue(active ? this.props.activeOpacity : 1);\n }\n\n this.props.onActiveStateChange && this.props.onActiveStateChange(active);\n };\n\n render() {\n const { children, style, ...rest } = this.props;\n\n return (\n \n {children}\n \n );\n }\n}\n\nexport { default as PureNativeButton } from './GestureHandlerButton';\n","import { requireNativeComponent } from 'react-native';\n\nconst RNGestureHandlerButton = requireNativeComponent(\n 'RNGestureHandlerButton',\n null\n);\n\nexport default RNGestureHandlerButton;\n","import React from 'react';\nimport ReactNative from 'react-native';\n\nimport createNativeWrapper from './createNativeWrapper';\n\nconst MEMOIZED = new WeakMap();\n\nfunction memoizeWrap(Component, config) {\n if (Component == null) {\n return null;\n }\n let memoized = MEMOIZED.get(Component);\n if (!memoized) {\n memoized = createNativeWrapper(Component, config);\n MEMOIZED.set(Component, memoized);\n }\n return memoized;\n}\n\nmodule.exports = {\n /* RN's components */\n get ScrollView() {\n return memoizeWrap(ReactNative.ScrollView, {\n disallowInterruption: true,\n shouldCancelWhenOutside: false,\n });\n },\n get Switch() {\n return memoizeWrap(ReactNative.Switch, {\n shouldCancelWhenOutside: false,\n shouldActivateOnStart: true,\n disallowInterruption: true,\n });\n },\n get TextInput() {\n return memoizeWrap(ReactNative.TextInput);\n },\n get DrawerLayoutAndroid() {\n const DrawerLayoutAndroid = memoizeWrap(ReactNative.DrawerLayoutAndroid, {\n disallowInterruption: true,\n });\n DrawerLayoutAndroid.positions = ReactNative.DrawerLayoutAndroid.positions;\n return DrawerLayoutAndroid;\n },\n get FlatList() {\n if (!MEMOIZED.FlatList) {\n const ScrollView = this.ScrollView;\n MEMOIZED.FlatList = React.forwardRef((props, ref) => (\n }\n />\n ));\n }\n return MEMOIZED.FlatList;\n },\n};\n","import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport createHandler from './createHandler';\nimport GestureHandlerPropTypes from './GestureHandlerPropTypes';\nimport PlatformConstants from './PlatformConstants';\n\nexport const TapGestureHandler = createHandler(\n 'TapGestureHandler',\n {\n ...GestureHandlerPropTypes,\n maxDurationMs: PropTypes.number,\n maxDelayMs: PropTypes.number,\n numberOfTaps: PropTypes.number,\n maxDeltaX: PropTypes.number,\n maxDeltaY: PropTypes.number,\n maxDist: PropTypes.number,\n minPointers: PropTypes.number,\n },\n {}\n);\n\nexport const FlingGestureHandler = createHandler(\n 'FlingGestureHandler',\n {\n ...GestureHandlerPropTypes,\n numberOfPointers: PropTypes.number,\n direction: PropTypes.number,\n },\n {}\n);\n\nclass ForceTouchFallback extends React.Component {\n componentDidMount() {\n console.warn(\n 'ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'\n );\n }\n render() {\n return this.props.children;\n }\n}\n\nexport const ForceTouchGestureHandler =\n PlatformConstants && PlatformConstants.forceTouchAvailable\n ? createHandler(\n 'ForceTouchGestureHandler',\n {\n ...GestureHandlerPropTypes,\n minForce: PropTypes.number,\n maxForce: PropTypes.number,\n feedbackOnActivation: PropTypes.bool,\n },\n {}\n )\n : ForceTouchFallback;\n\nForceTouchGestureHandler.forceTouchAvailable =\n (PlatformConstants && PlatformConstants.forceTouchAvailable) || false;\n\nexport const LongPressGestureHandler = createHandler(\n 'LongPressGestureHandler',\n {\n ...GestureHandlerPropTypes,\n minDurationMs: PropTypes.number,\n maxDist: PropTypes.number,\n },\n {}\n);\n\nfunction validatePanGestureHandlerProps(props) {\n if (props.minDeltaX && props.activeOffsetX) {\n throw new Error(\n `It's not supported use minDeltaX with activeOffsetXStart or activeOffsetXEnd`\n );\n }\n if (props.maxDeltaX && props.failOffsetX) {\n throw new Error(\n `It's not supported use minDeltaX with activeOffsetXStart or activeOffsetXEnd`\n );\n }\n if (props.minDeltaY && props.activeOffsetY) {\n throw new Error(\n `It's not supported use minDeltaX with activeOffsetYStart or activeOffsetYEnd`\n );\n }\n if (props.maxDeltaY && props.failOffsetY) {\n throw new Error(\n `It's not supported use minDeltaX with activeOffsetYStart or activeOffsetYEnd`\n );\n }\n if (\n Array.isArray(props.activeOffsetX) &&\n (props.activeOffsetX[0] > 0 || props.activeOffsetX[1] < 0)\n ) {\n throw new Error(\n `First element of activeOffsetX should be negative, a the second one should be positive`\n );\n }\n\n if (\n Array.isArray(props.activeOffsetY) &&\n (props.activeOffsetY[0] > 0 || props.activeOffsetY[1] < 0)\n ) {\n throw new Error(\n `First element of activeOffsetY should be negative, a the second one should be positive`\n );\n }\n\n if (\n Array.isArray(props.failOffsetX) &&\n (props.failOffsetX[0] > 0 || props.failOffsetX[1] < 0)\n ) {\n throw new Error(\n `First element of failOffsetX should be negative, a the second one should be positive`\n );\n }\n\n if (\n Array.isArray(props.failOffsetY) &&\n (props.failOffsetY[0] > 0 || props.failOffsetY[1] < 0)\n ) {\n throw new Error(\n `First element of failOffsetY should be negative, a the second one should be positive`\n );\n }\n}\n\nfunction transformPanGestureHandlerProps(props) {\n const res = { ...props };\n if (props.minDeltaX !== undefined) {\n delete res['minDeltaX'];\n res.activeOffsetXStart = -props.minDeltaX;\n res.activeOffsetXEnd = props.minDeltaX;\n }\n if (props.maxDeltaX !== undefined) {\n delete res['maxDeltaX'];\n res.failOffsetXStart = -props.maxDeltaX;\n res.failOffsetXEnd = props.maxDeltaX;\n }\n if (props.minOffsetX !== undefined) {\n delete res['minOffsetX'];\n if (props.minOffsetX < 0) {\n res.activeOffsetXStart = props.minOffsetX;\n } else {\n res.activeOffsetXEnd = props.minOffsetX;\n }\n }\n\n if (props.minDeltaY !== undefined) {\n delete res['minDeltaY'];\n res.activeOffsetYStart = -props.minDeltaY;\n res.activeOffsetYEnd = props.minDeltaY;\n }\n if (props.maxDeltaY !== undefined) {\n delete res['maxDeltaY'];\n res.failOffsetYStart = -props.maxDeltaY;\n res.failOffsetYEnd = props.maxDeltaY;\n }\n\n if (props.minOffsetY !== undefined) {\n delete res['minOffsetY'];\n if (props.minOffsetY < 0) {\n res.activeOffsetYStart = props.minOffsetY;\n } else {\n res.activeOffsetYEnd = props.minOffsetY;\n }\n }\n\n if (props.activeOffsetX !== undefined) {\n delete res['activeOffsetX'];\n if (Array.isArray(props.activeOffsetX)) {\n res.activeOffsetXStart = props.activeOffsetX[0];\n res.activeOffsetXEnd = props.activeOffsetX[1];\n } else if (props.activeOffsetX < 0) {\n res.activeOffsetXStart = props.activeOffsetX;\n } else {\n res.activeOffsetXEnd = props.activeOffsetX;\n }\n }\n\n if (props.activeOffsetY !== undefined) {\n delete res['activeOffsetY'];\n if (Array.isArray(props.activeOffsetY)) {\n res.activeOffsetYStart = props.activeOffsetY[0];\n res.activeOffsetYEnd = props.activeOffsetY[1];\n } else if (props.activeOffsetY < 0) {\n res.activeOffsetYStart = props.activeOffsetY;\n } else {\n res.activeOffsetYEnd = props.activeOffsetY;\n }\n }\n\n if (props.failOffsetX !== undefined) {\n delete res['failOffsetX'];\n if (Array.isArray(props.failOffsetX)) {\n res.failOffsetXStart = props.failOffsetX[0];\n res.failOffsetXEnd = props.failOffsetX[1];\n } else if (props.failOffsetX < 0) {\n res.failOffsetXStart = props.failOffsetX;\n } else {\n res.failOffsetXEnd = props.failOffsetX;\n }\n }\n\n if (props.failOffsetY !== undefined) {\n delete res['failOffsetY'];\n if (Array.isArray(props.failOffsetY)) {\n res.failOffsetYStart = props.failOffsetY[0];\n res.failOffsetYEnd = props.failOffsetY[1];\n } else if (props.failOffsetY < 0) {\n res.failOffsetYStart = props.failOffsetY;\n } else {\n res.failOffsetYEnd = props.failOffsetY;\n }\n }\n\n return res;\n}\n\nfunction managePanProps(props) {\n if (__DEV__) {\n validatePanGestureHandlerProps(props);\n }\n return transformPanGestureHandlerProps(props);\n}\n\nexport const PanGestureHandler = createHandler(\n 'PanGestureHandler',\n {\n ...GestureHandlerPropTypes,\n activeOffsetY: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.number),\n ]),\n activeOffsetX: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.number),\n ]),\n failOffsetY: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.number),\n ]),\n failOffsetX: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.arrayOf(PropTypes.number),\n ]),\n minDist: PropTypes.number,\n minVelocity: PropTypes.number,\n minVelocityX: PropTypes.number,\n minVelocityY: PropTypes.number,\n minPointers: PropTypes.number,\n maxPointers: PropTypes.number,\n avgTouches: PropTypes.bool,\n },\n {},\n managePanProps,\n {\n activeOffsetYStart: true,\n activeOffsetYEnd: true,\n activeOffsetXStart: true,\n activeOffsetXEnd: true,\n failOffsetYStart: true,\n failOffsetYEnd: true,\n failOffsetXStart: true,\n failOffsetXEnd: true,\n }\n);\nexport const PinchGestureHandler = createHandler(\n 'PinchGestureHandler',\n GestureHandlerPropTypes,\n {}\n);\nexport const RotationGestureHandler = createHandler(\n 'RotationGestureHandler',\n GestureHandlerPropTypes,\n {}\n);\n","import { NativeModules } from 'react-native';\n\nexport default NativeModules.PlatformConstants;\n","// @flow\n\n// This component is based on RN's DrawerLayoutAndroid API\n//\n// It perhaps deserves to be put in a separate repo, but since it relies\n// on react-native-gesture-handler library which isn't very popular at the\n// moment I decided to keep it here for the time being. It will allow us\n// to move faster and fix issues that may arise in gesture handler library\n// that could be found when using the drawer component\n\nimport React, { Component } from 'react';\nimport invariant from 'invariant';\nimport {\n Animated,\n StyleSheet,\n View,\n Keyboard,\n StatusBar,\n I18nManager,\n} from 'react-native';\n\nimport { PanGestureHandler, TapGestureHandler, State } from './GestureHandler';\n\nconst DRAG_TOSS = 0.05;\n\nconst IDLE = 'Idle';\nconst DRAGGING = 'Dragging';\nconst SETTLING = 'Settling';\n\nexport type PropType = {\n children: any,\n drawerBackgroundColor?: string,\n drawerPosition: 'left' | 'right',\n drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open',\n drawerWidth: number,\n keyboardDismissMode?: 'none' | 'on-drag',\n onDrawerClose?: Function,\n onDrawerOpen?: Function,\n onDrawerStateChanged?: Function,\n renderNavigationView: (progressAnimatedValue: any) => any,\n useNativeAnimations: boolean,\n\n // brand new properties\n drawerType: 'front' | 'back' | 'slide',\n edgeWidth: number,\n minSwipeDistance: number,\n hideStatusBar?: boolean,\n statusBarAnimation?: 'slide' | 'none' | 'fade',\n overlayColor: string,\n drawerContainerStyle?: any,\n contentContainerStyle?: any,\n onGestureRef?: Function,\n\n // Properties not yet supported\n // onDrawerSlide?: Function\n};\n\nexport type StateType = {\n dragX: any,\n touchX: any,\n drawerTranslation: any,\n containerWidth: number,\n};\n\nexport type EventType = {\n stopPropagation: Function,\n};\n\nexport type DrawerMovementOptionType = {\n velocity?: number,\n};\n\nexport default class DrawerLayout extends Component {\n static defaultProps = {\n drawerWidth: 200,\n drawerPosition: 'left',\n useNativeAnimations: true,\n drawerType: 'front',\n edgeWidth: 20,\n minSwipeDistance: 3,\n overlayColor: 'rgba(0, 0, 0, 0.7)',\n drawerLockMode: 'unlocked',\n };\n\n static positions = {\n Left: 'left',\n Right: 'right',\n };\n _openValue: ?Animated.Interpolation;\n _onGestureEvent: ?Animated.Event;\n _accessibilityIsModalView = React.createRef();\n _pointerEventsView = React.createRef();\n _panGestureHandler = React.createRef();\n _drawerShown = false;\n\n constructor(props: PropType, context: any) {\n super(props, context);\n\n const dragX = new Animated.Value(0);\n const touchX = new Animated.Value(0);\n const drawerTranslation = new Animated.Value(0);\n\n this.state = {\n dragX,\n touchX,\n drawerTranslation,\n containerWidth: 0,\n };\n\n this._updateAnimatedEvent(props, this.state);\n }\n\n UNSAFE_componentWillUpdate(props: PropType, state: StateType) {\n if (\n this.props.drawerPosition !== props.drawerPosition ||\n this.props.drawerWidth !== props.drawerWidth ||\n this.props.drawerType !== props.drawerType ||\n this.state.containerWidth !== state.containerWidth\n ) {\n this._updateAnimatedEvent(props, state);\n }\n }\n\n _updateAnimatedEvent = (props: PropType, state: StateType) => {\n // Event definition is based on\n const { drawerPosition, drawerWidth, drawerType } = props;\n const {\n dragX: dragXValue,\n touchX: touchXValue,\n drawerTranslation,\n containerWidth,\n } = state;\n\n let dragX = dragXValue;\n let touchX = touchXValue;\n\n if (drawerPosition !== 'left') {\n // Most of the code is written in a way to handle left-side drawer.\n // In order to handle right-side drawer the only thing we need to\n // do is to reverse events coming from gesture handler in a way they\n // emulate left-side drawer gestures. E.g. dragX is simply -dragX, and\n // touchX is calulcated by subtracing real touchX from the width of the\n // container (such that when touch happens at the right edge the value\n // is simply 0)\n dragX = Animated.multiply(new Animated.Value(-1), dragXValue);\n touchX = Animated.add(\n new Animated.Value(containerWidth),\n Animated.multiply(new Animated.Value(-1), touchXValue)\n );\n touchXValue.setValue(containerWidth);\n } else {\n touchXValue.setValue(0);\n }\n\n // While closing the drawer when user starts gesture outside of its area (in greyed\n // out part of the window), we want the drawer to follow only once finger reaches the\n // edge of the drawer.\n // E.g. on the diagram below drawer is illustrate by X signs and the greyed out area by\n // dots. The touch gesture starts at '*' and moves left, touch path is indicated by\n // an arrow pointing left\n // 1) +---------------+ 2) +---------------+ 3) +---------------+ 4) +---------------+\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\n // |XXXXXXXX|......| |XXXXXXXX|.<-*..| |XXXXXXXX|<--*..| |XXXXX|<-----*..|\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\n // +---------------+ +---------------+ +---------------+ +---------------+\n //\n // For the above to work properly we define animated value that will keep start position\n // of the gesture. Then we use that value to calculate how much we need to subtract from\n // the dragX. If the gesture started on the greyed out area we take the distance from the\n // edge of the drawer to the start position. Otherwise we don't subtract at all and the\n // drawer be pulled back as soon as you start the pan.\n //\n // This is used only when drawerType is \"front\"\n //\n let translationX = dragX;\n if (drawerType === 'front') {\n const startPositionX = Animated.add(\n touchX,\n Animated.multiply(new Animated.Value(-1), dragX)\n );\n\n const dragOffsetFromOnStartPosition = startPositionX.interpolate({\n inputRange: [drawerWidth - 1, drawerWidth, drawerWidth + 1],\n outputRange: [0, 0, 1],\n });\n translationX = Animated.add(dragX, dragOffsetFromOnStartPosition);\n }\n\n this._openValue = Animated.add(translationX, drawerTranslation).interpolate(\n {\n inputRange: [0, drawerWidth],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n }\n );\n\n this._onGestureEvent = Animated.event(\n [{ nativeEvent: { translationX: dragXValue, x: touchXValue } }],\n { useNativeDriver: props.useNativeAnimations }\n );\n };\n\n _handleContainerLayout = ({ nativeEvent }) => {\n this.setState({ containerWidth: nativeEvent.layout.width });\n };\n\n _emitStateChanged = (newState: string, drawerWillShow: boolean) => {\n this.props.onDrawerStateChanged &&\n this.props.onDrawerStateChanged(newState, drawerWillShow);\n };\n\n _openingHandlerStateChange = ({ nativeEvent }) => {\n if (nativeEvent.oldState === State.ACTIVE) {\n this._handleRelease(nativeEvent);\n } else if (nativeEvent.state === State.ACTIVE) {\n this._emitStateChanged(DRAGGING, false);\n if (this.props.keyboardDismissMode === 'on-drag') {\n Keyboard.dismiss();\n }\n if (this.props.hideStatusBar) {\n StatusBar.setHidden(true, this.props.statusBarAnimation || 'slide');\n }\n }\n };\n\n _onTapHandlerStateChange = ({ nativeEvent }) => {\n if (\n this._drawerShown &&\n nativeEvent.oldState === State.ACTIVE &&\n this.props.drawerLockMode !== 'locked-open'\n ) {\n this.closeDrawer();\n }\n };\n\n _handleRelease = nativeEvent => {\n const { drawerWidth, drawerPosition, drawerType } = this.props;\n const { containerWidth } = this.state;\n let { translationX: dragX, velocityX, x: touchX } = nativeEvent;\n\n if (drawerPosition !== 'left') {\n // See description in _updateAnimatedEvent about why events are flipped\n // for right-side drawer\n dragX = -dragX;\n touchX = containerWidth - touchX;\n velocityX = -velocityX;\n }\n\n const gestureStartX = touchX - dragX;\n let dragOffsetBasedOnStart = 0;\n\n if (drawerType === 'front') {\n dragOffsetBasedOnStart =\n gestureStartX > drawerWidth ? gestureStartX - drawerWidth : 0;\n }\n\n const startOffsetX =\n dragX + dragOffsetBasedOnStart + (this._drawerShown ? drawerWidth : 0);\n const projOffsetX = startOffsetX + DRAG_TOSS * velocityX;\n\n const shouldOpen = projOffsetX > drawerWidth / 2;\n\n if (shouldOpen) {\n this._animateDrawer(startOffsetX, drawerWidth, velocityX);\n } else {\n this._animateDrawer(startOffsetX, 0, velocityX);\n }\n };\n\n _updateShowing = (showing: boolean) => {\n this._drawerShown = showing;\n this._accessibilityIsModalView.current &&\n this._accessibilityIsModalView.current.setNativeProps({\n accessibilityViewIsModal: showing,\n });\n this._pointerEventsView.current &&\n this._pointerEventsView.current.setNativeProps({\n pointerEvents: showing ? 'auto' : 'none',\n });\n const { drawerPosition, minSwipeDistance, edgeWidth } = this.props;\n const fromLeft = drawerPosition === 'left';\n // gestureOrientation is 1 if the expected gesture is from left to right and -1 otherwise\n // e.g. when drawer is on the left and is closed we expect left to right gesture, thus\n // orientation will be 1.\n const gestureOrientation =\n (fromLeft ? 1 : -1) * (this._drawerShown ? -1 : 1);\n // When drawer is closed we want the hitSlop to be horizontally shorter\n // than the container size by the value of SLOP. This will make it only\n // activate when gesture happens not further than SLOP away from the edge\n const hitSlop = fromLeft\n ? { left: 0, width: showing ? undefined : edgeWidth }\n : { right: 0, width: showing ? undefined : edgeWidth };\n this._panGestureHandler.current &&\n this._panGestureHandler.current.setNativeProps({\n hitSlop,\n activeOffsetX: gestureOrientation * minSwipeDistance,\n });\n };\n\n _animateDrawer = (fromValue: ?number, toValue: number, velocity: number) => {\n this.state.dragX.setValue(0);\n this.state.touchX.setValue(\n this.props.drawerPosition === 'left' ? 0 : this.state.containerWidth\n );\n\n if (fromValue != null) {\n let nextFramePosition = fromValue;\n if (this.props.useNativeAnimations) {\n // When using native driver, we predict the next position of the animation\n // because it takes one frame of a roundtrip to pass RELEASE event from\n // native driver to JS before we can start animating. Without it, it is more\n // noticable that the frame is dropped.\n if (fromValue < toValue && velocity > 0) {\n nextFramePosition = Math.min(fromValue + velocity / 60.0, toValue);\n } else if (fromValue > toValue && velocity < 0) {\n nextFramePosition = Math.max(fromValue + velocity / 60.0, toValue);\n }\n }\n this.state.drawerTranslation.setValue(nextFramePosition);\n }\n\n const willShow = toValue !== 0;\n this._updateShowing(willShow);\n this._emitStateChanged(SETTLING, willShow);\n if (this.props.hideStatusBar) {\n StatusBar.setHidden(willShow, this.props.statusBarAnimation || 'slide');\n }\n Animated.spring(this.state.drawerTranslation, {\n velocity,\n bounciness: 0,\n toValue,\n useNativeDriver: this.props.useNativeAnimations,\n }).start(({ finished }) => {\n if (finished) {\n this._emitStateChanged(IDLE, willShow);\n if (willShow) {\n this.props.onDrawerOpen && this.props.onDrawerOpen();\n } else {\n this.props.onDrawerClose && this.props.onDrawerClose();\n }\n }\n });\n };\n\n openDrawer = (options: DrawerMovementOptionType = {}) => {\n this._animateDrawer(\n undefined,\n this.props.drawerWidth,\n options.velocity ? options.velocity : 0\n );\n\n // We need to force the update, otherwise the overlay is not rerendered and it would not be clickable\n this.forceUpdate();\n };\n\n closeDrawer = (options: DrawerMovementOptionType = {}) => {\n this._animateDrawer(undefined, 0, options.velocity ? options.velocity : 0);\n\n // We need to force the update, otherwise the overlay is not rerendered and it would be still clickable\n this.forceUpdate();\n };\n\n _renderOverlay = () => {\n /* Overlay styles */\n invariant(this._openValue, 'should be set');\n const overlayOpacity = this._openValue.interpolate({\n inputRange: [0, 1],\n outputRange: [0, 1],\n extrapolate: 'clamp',\n });\n const dynamicOverlayStyles = {\n opacity: overlayOpacity,\n backgroundColor: this.props.overlayColor,\n };\n\n return (\n \n \n \n );\n };\n\n _renderDrawer = () => {\n const {\n drawerBackgroundColor,\n drawerWidth,\n drawerPosition,\n drawerType,\n drawerContainerStyle,\n contentContainerStyle,\n } = this.props;\n\n const fromLeft = drawerPosition === 'left';\n const drawerSlide = drawerType !== 'back';\n const containerSlide = drawerType !== 'front';\n\n // we rely on row and row-reverse flex directions to position the drawer\n // properly. Apparently for RTL these are flipped which requires us to use\n // the opposite setting for the drawer to appear from left or right according\n // to the drawerPosition prop\n const reverseContentDirection = I18nManager.isRTL ? fromLeft : !fromLeft;\n\n const dynamicDrawerStyles = {\n backgroundColor: drawerBackgroundColor,\n width: drawerWidth,\n };\n const openValue = this._openValue;\n invariant(openValue, 'should be set');\n\n let containerStyles;\n if (containerSlide) {\n const containerTranslateX = openValue.interpolate({\n inputRange: [0, 1],\n outputRange: fromLeft ? [0, drawerWidth] : [0, -drawerWidth],\n extrapolate: 'clamp',\n });\n containerStyles = {\n transform: [{ translateX: containerTranslateX }],\n };\n }\n\n let drawerTranslateX = 0;\n if (drawerSlide) {\n const closedDrawerOffset = fromLeft ? -drawerWidth : drawerWidth;\n drawerTranslateX = openValue.interpolate({\n inputRange: [0, 1],\n outputRange: [closedDrawerOffset, 0],\n extrapolate: 'clamp',\n });\n }\n const drawerStyles = {\n transform: [{ translateX: drawerTranslateX }],\n flexDirection: reverseContentDirection ? 'row-reverse' : 'row',\n };\n\n return (\n \n \n {typeof this.props.children === 'function'\n ? this.props.children(this._openValue)\n : this.props.children}\n {this._renderOverlay()}\n \n \n \n {this.props.renderNavigationView(this._openValue)}\n \n \n \n );\n };\n\n _setPanGestureRef = ref => {\n this._panGestureHandler.current = ref;\n this.props.onGestureRef && this.props.onGestureRef(ref);\n };\n\n render() {\n const {\n drawerPosition,\n drawerLockMode,\n edgeWidth,\n minSwipeDistance,\n } = this.props;\n\n const fromLeft = drawerPosition === 'left';\n\n // gestureOrientation is 1 if the expected gesture is from left to right and -1 otherwise\n // e.g. when drawer is on the left and is closed we expect left to right gesture, thus\n // orientation will be 1.\n const gestureOrientation =\n (fromLeft ? 1 : -1) * (this._drawerShown ? -1 : 1);\n\n // When drawer is closed we want the hitSlop to be horizontally shorter\n // than the container size by the value of SLOP. This will make it only\n // activate when gesture happens not further than SLOP away from the edge\n const hitSlop = fromLeft\n ? { left: 0, width: this._drawerShown ? undefined : edgeWidth }\n : { right: 0, width: this._drawerShown ? undefined : edgeWidth };\n\n return (\n \n {this._renderDrawer()}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n drawerContainer: {\n ...StyleSheet.absoluteFillObject,\n zIndex: 1001,\n flexDirection: 'row',\n },\n containerInFront: {\n ...StyleSheet.absoluteFillObject,\n zIndex: 1002,\n },\n containerOnBack: {\n ...StyleSheet.absoluteFillObject,\n },\n main: {\n flex: 1,\n zIndex: 0,\n overflow: 'hidden',\n },\n overlay: {\n ...StyleSheet.absoluteFillObject,\n zIndex: 1000,\n },\n});\n","export { default as TouchableNativeFeedback } from './TouchableNativeFeedback';\nexport {\n default as TouchableWithoutFeedback,\n} from './TouchableWithoutFeedback';\nexport { default as TouchableOpacity } from './TouchableOpacity';\nexport { default as TouchableHighlight } from './TouchableHighlight';\n","import GenericTouchable from './GenericTouchable';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * TouchableNativeFeedback behaves slightly different than RN's TouchableNativeFeedback.\n * There's small difference with handling long press ripple since RN's implementation calls\n * ripple animation via bridge. This solution leaves all animations' handling for native components so\n * it follows native behaviours.\n */\nexport default class TouchableNativeFeedback extends Component {\n static SelectableBackground = () => ({ type: 'SelectableBackground' });\n static SelectableBackgroundBorderless = () => ({\n type: 'SelectableBackgroundBorderless',\n });\n static Ripple = (color, borderless) => ({\n type: 'Ripple',\n color,\n borderless,\n });\n\n static canUseNativeForeground = () => Platform.Version >= 23;\n\n static defaultProps = {\n ...GenericTouchable.defaultProps,\n useForeground: true,\n extraButtonProps: {\n // Disable hiding ripple on Android\n rippleColor: null,\n },\n };\n\n static propTypes = {\n ...GenericTouchable.publicPropTypes,\n useForeground: PropTypes.bool,\n background: PropTypes.object,\n style: PropTypes.any,\n };\n\n getExtraButtonProps = () => {\n const extraProps = {};\n const { background } = this.props;\n if (background) {\n if (background.type === 'Ripple') {\n extraProps['borderless'] = background.borderless;\n extraProps['rippleColor'] = background.color;\n } else if (background.type === 'SelectableBackgroundBorderless') {\n extraProps['borderless'] = true;\n }\n }\n extraProps['foreground'] = this.props.useForeground;\n return extraProps;\n };\n render() {\n const { style = {}, ...rest } = this.props;\n return (\n \n );\n }\n}\n","import React, { Component } from 'react';\nimport { Animated, Platform } from 'react-native';\nimport { State, BaseButton } from '../GestureHandler';\nimport PropTypes from 'prop-types';\n\n/**\n * Each touchable is a states' machine which preforms transitions.\n * On very beginning (and on the very end or recognition) touchable is\n * UNDETERMINED. Then it moves to BEGAN. If touchable recognizes that finger\n * travel outside it transits to special MOVED_OUTSIDE state. Gesture recognition\n * finishes in UNDETERMINED state.\n */\nexport const TOUCHABLE_STATE = {\n UNDETERMINED: 0,\n BEGAN: 1,\n MOVED_OUTSIDE: 2,\n};\n\nconst PublicPropTypes = {\n // Decided to drop not used fields from RN's implementation.\n // e.g. onBlur and onFocus as well as deprecated props.\n accessible: PropTypes.bool,\n accessibilityLabel: PropTypes.node,\n accessibilityHint: PropTypes.string,\n hitSlop: PropTypes.shape({\n top: PropTypes.number,\n left: PropTypes.number,\n bottom: PropTypes.number,\n right: PropTypes.number,\n }),\n disabled: PropTypes.bool,\n onPress: PropTypes.func,\n onPressIn: PropTypes.func,\n onPressOut: PropTypes.func,\n onLayout: PropTypes.func,\n onLongPress: PropTypes.func,\n nativeID: PropTypes.string,\n testID: PropTypes.string,\n delayPressIn: PropTypes.number,\n delayPressOut: PropTypes.number,\n delayLongPress: PropTypes.number,\n shouldActivateOnStart: PropTypes.bool,\n disallowInterruption: PropTypes.bool,\n};\n\nconst InternalPropTypes = {\n extraButtonProps: PropTypes.object,\n onStateChange: PropTypes.func,\n};\n\n/**\n * GenericTouchable is not intented to be used as it.\n * Should be treated as a source for the rest of touchables\n */\n\nexport default class GenericTouchable extends Component {\n static publicPropTypes = PublicPropTypes;\n static internalPropTypes = InternalPropTypes;\n\n // The prop type collections have to be outside of the class, as metro\n // at this time does not compile `this.foo` correctly if HMR is enabled.\n // https://github.com/software-mansion/react-native-gesture-handler/pull/406#issuecomment-453779977\n static propTypes = {\n ...InternalPropTypes,\n ...PublicPropTypes,\n };\n\n static defaultProps = {\n delayLongPress: 600,\n extraButtonProps: {\n rippleColor: 'transparent',\n },\n };\n\n // timeout handlers\n pressInTimeout;\n pressOutTimeout;\n longPressTimeout;\n\n // This flag is required since recognition of longPress implies not-invoking onPress\n longPressDetected = false;\n\n pointerInside = true;\n\n // State of touchable\n STATE = TOUCHABLE_STATE.UNDETERMINED;\n\n // handlePressIn in called on first touch on traveling inside component.\n // Handles state transition with delay.\n handlePressIn() {\n if (this.props.delayPressIn) {\n this.pressInTimeout = setTimeout(() => {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n this.pressInTimeout = null;\n }, this.props.delayPressIn);\n } else {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n if (this.props.onLongPress) {\n const time =\n (this.props.delayPressIn || 0) + (this.props.delayLongPress || 0);\n this.longPressTimeout = setTimeout(this.onLongPressDetected, time);\n }\n }\n // handleMoveOutside in called on traveling outside component.\n // Handles state transition with delay.\n handleMoveOutside() {\n if (this.props.delayPressOut) {\n this.pressOutTimeout =\n this.pressOutTimeout ||\n setTimeout(() => {\n this.moveToState(TOUCHABLE_STATE.MOVED_OUTSIDE);\n this.pressOutTimeout = null;\n }, this.props.delayPressOut);\n } else {\n this.moveToState(TOUCHABLE_STATE.MOVED_OUTSIDE);\n }\n }\n\n // handleGoToUndetermined transits to UNDETERMINED state with proper delay\n handleGoToUndetermined() {\n clearTimeout(this.pressOutTimeout);\n if (this.props.delayPressOut) {\n this.pressOutTimeout = setTimeout(() => {\n if (this.STATE === TOUCHABLE_STATE.UNDETERMINED) {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n this.moveToState(TOUCHABLE_STATE.UNDETERMINED);\n this.pressOutTimeout = null;\n }, this.props.delayPressOut);\n } else {\n if (this.STATE === TOUCHABLE_STATE.UNDETERMINED) {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n this.moveToState(TOUCHABLE_STATE.UNDETERMINED);\n }\n }\n\n componentDidMount() {\n this.reset();\n }\n // reset timeout to prevent memory leaks.\n reset() {\n this.longPressDetected = false;\n this.pointerInside = true;\n clearTimeout(this.pressInTimeout);\n clearTimeout(this.pressOutTimeout);\n clearTimeout(this.longPressTimeout);\n this.pressOutTimeout = null;\n this.longPressTimeout = null;\n this.pressInTimeout = null;\n }\n\n // All states' transitions are defined here.\n moveToState(newState) {\n if (newState === this.STATE) {\n // Ignore dummy transitions\n return;\n }\n if (newState === TOUCHABLE_STATE.BEGAN) {\n // First touch and moving inside\n this.props.onPressIn && this.props.onPressIn();\n } else if (newState === TOUCHABLE_STATE.MOVED_OUTSIDE) {\n // Moving outside\n this.props.onPressOut && this.props.onPressOut();\n } else if (newState === TOUCHABLE_STATE.UNDETERMINED) {\n // Need to reset each time on transition to UNDETERMINED\n this.reset();\n if (this.STATE === TOUCHABLE_STATE.BEGAN) {\n // ... and if it happens inside button.\n this.props.onPressOut && this.props.onPressOut();\n }\n }\n // Finally call lister (used by subclasses)\n this.props.onStateChange && this.props.onStateChange(this.STATE, newState);\n // ... and make transition.\n this.STATE = newState;\n }\n\n onGestureEvent = ({ nativeEvent: { pointerInside } }) => {\n if (this.pointerInside !== pointerInside) {\n if (pointerInside) {\n this.onMoveIn();\n } else {\n this.onMoveOut();\n }\n }\n this.pointerInside = pointerInside;\n };\n\n onHandlerStateChange = ({ nativeEvent }) => {\n const { state } = nativeEvent;\n if (state === State.CANCELLED || state === State.FAILED) {\n // Need to handle case with external cancellation (e.g. by ScrollView)\n this.moveToState(TOUCHABLE_STATE.UNDETERMINED);\n } else if (\n // This platform check is an implication of slightly different behavior of handlers on different platform.\n // And Android \"Active\" state is achieving on first move of a finger, not on press in.\n // On iOS event on \"Began\" is not delivered.\n state === (Platform.OS !== 'android' ? State.ACTIVE : State.BEGAN) &&\n this.STATE === TOUCHABLE_STATE.UNDETERMINED\n ) {\n // Moving inside requires\n this.handlePressIn();\n } else if (state === State.END) {\n const shouldCallOnPress =\n !this.longPressDetected &&\n this.STATE !== TOUCHABLE_STATE.MOVED_OUTSIDE &&\n this.pressOutTimeout === null;\n this.handleGoToUndetermined();\n if (shouldCallOnPress) {\n // Calls only inside component whether no long press was called previously\n this.props.onPress && this.props.onPress();\n }\n }\n };\n\n onLongPressDetected = () => {\n this.longPressDetected = true;\n this.props.onLongPress();\n };\n\n componentWillUnmount() {\n // to prevent memory leaks\n this.reset();\n }\n\n onMoveIn() {\n if (this.STATE === TOUCHABLE_STATE.MOVED_OUTSIDE) {\n // This call is not throttled with delays (like in RN's implementation).\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n }\n\n onMoveOut() {\n // long press should no longer be detected\n clearTimeout(this.longPressTimeout);\n this.longPressTimeout = null;\n if (this.STATE === TOUCHABLE_STATE.BEGAN) {\n this.handleMoveOutside();\n }\n }\n\n render() {\n const coreProps = {\n accessible: this.props.accessible !== false,\n accessibilityLabel: this.props.accessibilityLabel,\n accessibilityHint: this.props.accessibilityHint,\n accessibilityComponentType: this.props.accessibilityComponentType,\n accessibilityRole: this.props.accessibilityRole,\n accessibilityStates: this.props.accessibilityStates,\n accessibilityTraits: this.props.accessibilityTraits,\n nativeID: this.props.nativeID,\n testID: this.props.testID,\n onLayout: this.props.onLayout,\n hitSlop: this.props.hitSlop,\n };\n\n return (\n \n \n {this.props.children}\n \n \n );\n }\n}\n","import React from 'react';\nimport GenericTouchable from './GenericTouchable';\n\nconst TouchableWithoutFeedback = React.forwardRef((props, ref) => (\n \n));\n\nTouchableWithoutFeedback.defaultProps = GenericTouchable.defaultProps;\n\nTouchableWithoutFeedback.propTypes = GenericTouchable.publicPropTypes;\n\nexport default TouchableWithoutFeedback;\n","import { Animated, Easing, StyleSheet, View } from 'react-native';\nimport GenericTouchable, { TOUCHABLE_STATE } from './GenericTouchable';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * TouchableOpacity bases on timing animation which has been used in RN's core\n */\nexport default class TouchableOpacity extends Component {\n static defaultProps = {\n ...GenericTouchable.defaultProps,\n activeOpacity: 0.2,\n };\n\n static propTypes = {\n ...GenericTouchable.publicPropTypes,\n style: PropTypes.any,\n activeOpacity: PropTypes.number,\n };\n\n // opacity is 1 one by default but could be overwritten\n getChildStyleOpacityWithDefault = () => {\n const childStyle = StyleSheet.flatten(this.props.style) || {};\n return childStyle.opacity == null ? 1 : childStyle.opacity;\n };\n\n opacity = new Animated.Value(this.getChildStyleOpacityWithDefault());\n\n setOpacityTo = (value, duration) => {\n Animated.timing(this.opacity, {\n toValue: value,\n duration: duration,\n easing: Easing.inOut(Easing.quad),\n useNativeDriver: true,\n }).start();\n };\n\n onStateChange = (from, to) => {\n if (to === TOUCHABLE_STATE.BEGAN) {\n this.setOpacityTo(this.props.activeOpacity, 0);\n } else if (\n to === TOUCHABLE_STATE.UNDETERMINED ||\n to === TOUCHABLE_STATE.MOVED_OUTSIDE\n ) {\n this.setOpacityTo(this.getChildStyleOpacityWithDefault(), 150);\n }\n };\n\n render() {\n const { style = {}, ...rest } = this.props;\n return (\n \n {this.props.children ? this.props.children : }\n \n );\n }\n}\n","import React, { Component } from 'react';\nimport GenericTouchable, { TOUCHABLE_STATE } from './GenericTouchable';\nimport { StyleSheet, View } from 'react-native';\nimport PropTypes from 'prop-types';\n\n/**\n * TouchableHighlight follows RN's implementation\n */\nexport default class TouchableHighlight extends Component {\n static defaultProps = {\n ...GenericTouchable.defaultProps,\n activeOpacity: 0.85,\n delayPressOut: 100,\n underlayColor: 'black',\n };\n\n static propTypes = {\n ...GenericTouchable.publicPropTypes,\n activeOpacity: PropTypes.number,\n underlayColor: PropTypes.string,\n style: PropTypes.any,\n onShowUnderlay: PropTypes.func,\n onHideUnderlay: PropTypes.func,\n };\n\n constructor(props) {\n super(props);\n this.state = {\n extraChildStyle: null,\n extraUnderlayStyle: null,\n };\n }\n\n // Copied from RN\n showUnderlay = () => {\n if (!this.hasPressHandler()) {\n return;\n }\n this.setState({\n extraChildStyle: {\n opacity: this.props.activeOpacity,\n },\n extraUnderlayStyle: {\n backgroundColor: this.props.underlayColor,\n },\n });\n this.props.onShowUnderlay && this.props.onShowUnderlay();\n };\n\n hasPressHandler = () =>\n this.props.onPress ||\n this.props.onPressIn ||\n this.props.onPressOut ||\n this.props.onLongPress;\n\n hideUnderlay = () => {\n this.setState({\n extraChildStyle: null,\n extraUnderlayStyle: null,\n });\n this.props.onHideUnderlay && this.props.onHideUnderlay();\n };\n\n renderChildren() {\n if (!this.props.children) {\n return ;\n }\n\n const child = React.Children.only(this.props.children);\n return React.cloneElement(child, {\n style: StyleSheet.compose(\n child.props.style,\n this.state.extraChildStyle\n ),\n });\n }\n\n onStateChange = (from, to) => {\n if (to === TOUCHABLE_STATE.BEGAN) {\n this.showUnderlay();\n } else if (\n to === TOUCHABLE_STATE.UNDETERMINED ||\n to === TOUCHABLE_STATE.MOVED_OUTSIDE\n ) {\n this.hideUnderlay();\n }\n };\n\n render() {\n const { style = {}, ...rest } = this.props;\n const { extraUnderlayStyle } = this.state;\n return (\n \n {this.renderChildren()}\n \n );\n }\n}\n","import * as React from 'react';\n\nexport default React.createContext | null>(null);\n","import * as React from 'react';\nimport {\n Animated,\n StyleSheet,\n LayoutChangeEvent,\n Dimensions,\n Platform,\n} from 'react-native';\nimport { EdgeInsets } from 'react-native-safe-area-context';\nimport { Route, StackNavigationState } from '@react-navigation/native';\n\nimport { MaybeScreenContainer, MaybeScreen } from '../Screens';\nimport { getDefaultHeaderHeight } from '../Header/HeaderSegment';\nimport { Props as HeaderContainerProps } from '../Header/HeaderContainer';\nimport CardContainer from './CardContainer';\nimport {\n DefaultTransition,\n ModalTransition,\n} from '../../TransitionConfigs/TransitionPresets';\nimport { forNoAnimation as forNoAnimationHeader } from '../../TransitionConfigs/HeaderStyleInterpolators';\nimport { forNoAnimation as forNoAnimationCard } from '../../TransitionConfigs/CardStyleInterpolators';\nimport getDistanceForDirection from '../../utils/getDistanceForDirection';\nimport {\n Layout,\n StackHeaderMode,\n StackCardMode,\n Scene,\n StackDescriptorMap,\n StackNavigationOptions,\n StackDescriptor,\n} from '../../types';\n\ntype GestureValues = {\n [key: string]: Animated.Value;\n};\n\ntype Props = {\n mode: StackCardMode;\n insets: EdgeInsets;\n state: StackNavigationState;\n descriptors: StackDescriptorMap;\n routes: Route[];\n openingRouteKeys: string[];\n closingRouteKeys: string[];\n onOpenRoute: (props: { route: Route }) => void;\n onCloseRoute: (props: { route: Route }) => void;\n getPreviousRoute: (props: {\n route: Route;\n }) => Route | undefined;\n getGesturesEnabled: (props: { route: Route }) => boolean;\n renderHeader: (props: HeaderContainerProps) => React.ReactNode;\n renderScene: (props: { route: Route }) => React.ReactNode;\n headerMode: StackHeaderMode;\n onTransitionStart: (\n props: { route: Route },\n closing: boolean\n ) => void;\n onTransitionEnd: (props: { route: Route }, closing: boolean) => void;\n onPageChangeStart?: () => void;\n onPageChangeConfirm?: () => void;\n onPageChangeCancel?: () => void;\n};\n\ntype State = {\n routes: Route[];\n descriptors: StackDescriptorMap;\n scenes: Scene>[];\n gestures: GestureValues;\n layout: Layout;\n headerHeights: Record;\n};\n\nconst EPSILON = 0.01;\n\nconst FALLBACK_DESCRIPTOR = Object.freeze({ options: {} });\n\nconst getHeaderHeights = (\n routes: Route[],\n insets: EdgeInsets,\n descriptors: StackDescriptorMap,\n layout: Layout,\n previous: Record\n) => {\n return routes.reduce>((acc, curr) => {\n const { options = {} } = descriptors[curr.key] || {};\n const { height = previous[curr.key] } = StyleSheet.flatten(\n options.headerStyle || {}\n );\n\n const safeAreaInsets = {\n ...insets,\n ...options.safeAreaInsets,\n };\n\n const { headerStatusBarHeight = safeAreaInsets.top } = options;\n\n acc[curr.key] =\n typeof height === 'number'\n ? height\n : getDefaultHeaderHeight(layout, headerStatusBarHeight);\n\n return acc;\n }, {});\n};\n\nconst getDistanceFromOptions = (\n mode: StackCardMode,\n layout: Layout,\n descriptor?: StackDescriptor\n) => {\n const {\n gestureDirection = mode === 'modal'\n ? ModalTransition.gestureDirection\n : DefaultTransition.gestureDirection,\n } = descriptor?.options || {};\n\n return getDistanceForDirection(layout, gestureDirection);\n};\n\nconst getProgressFromGesture = (\n mode: StackCardMode,\n gesture: Animated.Value,\n layout: Layout,\n descriptor?: StackDescriptor\n) => {\n const distance = getDistanceFromOptions(\n mode,\n {\n // Make sure that we have a non-zero distance, otherwise there will be incorrect progress\n // This causes blank screen on web if it was previously inside container with display: none\n width: Math.max(1, layout.width),\n height: Math.max(1, layout.height),\n },\n descriptor\n );\n\n if (distance > 0) {\n return gesture.interpolate({\n inputRange: [0, distance],\n outputRange: [1, 0],\n });\n }\n\n return gesture.interpolate({\n inputRange: [distance, 0],\n outputRange: [0, 1],\n });\n};\n\nexport default class CardStack extends React.Component {\n static getDerivedStateFromProps(props: Props, state: State) {\n if (\n props.routes === state.routes &&\n props.descriptors === state.descriptors\n ) {\n return null;\n }\n\n const gestures = props.routes.reduce((acc, curr) => {\n const descriptor = props.descriptors[curr.key];\n const { animationEnabled } = descriptor?.options || {};\n\n acc[curr.key] =\n state.gestures[curr.key] ||\n new Animated.Value(\n props.openingRouteKeys.includes(curr.key) &&\n animationEnabled !== false\n ? getDistanceFromOptions(props.mode, state.layout, descriptor)\n : 0\n );\n\n return acc;\n }, {});\n\n return {\n routes: props.routes,\n scenes: props.routes.map((route, index, self) => {\n const previousRoute = self[index - 1];\n const nextRoute = self[index + 1];\n\n const oldScene = state.scenes[index];\n\n const currentGesture = gestures[route.key];\n const previousGesture = previousRoute\n ? gestures[previousRoute.key]\n : undefined;\n const nextGesture = nextRoute ? gestures[nextRoute.key] : undefined;\n\n const descriptor =\n props.descriptors[route.key] ||\n state.descriptors[route.key] ||\n (oldScene ? oldScene.descriptor : FALLBACK_DESCRIPTOR);\n\n const nextDescriptor =\n props.descriptors[nextRoute?.key] ||\n state.descriptors[nextRoute?.key];\n\n const previousDescriptor =\n props.descriptors[previousRoute?.key] ||\n state.descriptors[previousRoute?.key];\n\n const scene = {\n route,\n descriptor,\n progress: {\n current: getProgressFromGesture(\n props.mode,\n currentGesture,\n state.layout,\n descriptor\n ),\n next: nextGesture\n ? getProgressFromGesture(\n props.mode,\n nextGesture,\n state.layout,\n nextDescriptor\n )\n : undefined,\n previous: previousGesture\n ? getProgressFromGesture(\n props.mode,\n previousGesture,\n state.layout,\n previousDescriptor\n )\n : undefined,\n },\n __memo: [\n route,\n state.layout,\n descriptor,\n nextDescriptor,\n previousDescriptor,\n currentGesture,\n nextGesture,\n previousGesture,\n ],\n };\n\n if (\n oldScene &&\n scene.__memo.every((it, i) => {\n // @ts-ignore\n return oldScene.__memo[i] === it;\n })\n ) {\n return oldScene;\n }\n\n return scene;\n }),\n gestures,\n descriptors: props.descriptors,\n headerHeights: getHeaderHeights(\n props.routes,\n props.insets,\n state.descriptors,\n state.layout,\n state.headerHeights\n ),\n };\n }\n\n constructor(props: Props) {\n super(props);\n\n const { height = 0, width = 0 } = Dimensions.get('window');\n\n this.state = {\n routes: [],\n scenes: [],\n gestures: {},\n layout: { height, width },\n descriptors: this.props.descriptors,\n // Used when card's header is null and mode is float to make transition\n // between screens with headers and those without headers smooth.\n // This is not a great heuristic here. We don't know synchronously\n // on mount what the header height is so we have just used the most\n // common cases here.\n headerHeights: {},\n };\n }\n\n private handleLayout = (e: LayoutChangeEvent) => {\n const { height, width } = e.nativeEvent.layout;\n\n const layout = { width, height };\n\n this.setState((state, props) => {\n if (height === state.layout.height && width === state.layout.width) {\n return null;\n }\n\n return {\n layout,\n headerHeights: getHeaderHeights(\n props.routes,\n props.insets,\n state.descriptors,\n layout,\n {}\n ),\n };\n });\n };\n\n private handleHeaderLayout = ({\n route,\n height,\n }: {\n route: Route;\n height: number;\n }) => {\n this.setState(({ headerHeights }) => {\n const previousHeight = headerHeights[route.key];\n\n if (previousHeight === height) {\n return null;\n }\n\n return {\n headerHeights: {\n ...headerHeights,\n [route.key]: height,\n },\n };\n });\n };\n\n private getFocusedRoute = () => {\n const { state } = this.props;\n\n return state.routes[state.index];\n };\n\n render() {\n const {\n mode,\n insets,\n descriptors,\n state,\n routes,\n closingRouteKeys,\n onOpenRoute,\n onCloseRoute,\n getPreviousRoute,\n getGesturesEnabled,\n renderHeader,\n renderScene,\n headerMode,\n onTransitionStart,\n onTransitionEnd,\n onPageChangeStart,\n onPageChangeConfirm,\n onPageChangeCancel,\n } = this.props;\n\n const { scenes, layout, gestures, headerHeights } = this.state;\n\n const focusedRoute = state.routes[state.index];\n const focusedDescriptor = descriptors[focusedRoute.key];\n const focusedOptions = focusedDescriptor ? focusedDescriptor.options : {};\n\n let defaultTransitionPreset =\n mode === 'modal' ? ModalTransition : DefaultTransition;\n\n if (headerMode === 'screen') {\n defaultTransitionPreset = {\n ...defaultTransitionPreset,\n headerStyleInterpolator: forNoAnimationHeader,\n };\n }\n\n const {\n top = insets.top,\n right = insets.right,\n bottom = insets.bottom,\n left = insets.left,\n } = focusedOptions.safeAreaInsets || {};\n\n // Screens is buggy on iOS and web, so we only enable it on Android\n // For modals, usually we want the screen underneath to be visible, so also disable it there\n const isScreensEnabled = Platform.OS !== 'ios' && mode !== 'modal';\n\n return (\n \n \n {routes.map((route, index, self) => {\n const focused = focusedRoute.key === route.key;\n const gesture = gestures[route.key];\n const scene = scenes[index];\n\n const isScreenActive = scene.progress.next\n ? scene.progress.next.interpolate({\n inputRange: [0, 1 - EPSILON, 1],\n outputRange: [1, 1, 0],\n extrapolate: 'clamp',\n })\n : 1;\n\n const {\n safeAreaInsets,\n headerShown,\n headerTransparent,\n cardShadowEnabled,\n cardOverlayEnabled,\n cardOverlay,\n cardStyle,\n animationEnabled,\n gestureResponseDistance,\n gestureVelocityImpact,\n gestureDirection = defaultTransitionPreset.gestureDirection,\n transitionSpec = defaultTransitionPreset.transitionSpec,\n cardStyleInterpolator = animationEnabled === false\n ? forNoAnimationCard\n : defaultTransitionPreset.cardStyleInterpolator,\n headerStyleInterpolator = defaultTransitionPreset.headerStyleInterpolator,\n } = scene.descriptor\n ? scene.descriptor.options\n : ({} as StackNavigationOptions);\n\n let transitionConfig = {\n gestureDirection,\n transitionSpec,\n cardStyleInterpolator,\n headerStyleInterpolator,\n };\n\n // When a screen is not the last, it should use next screen's transition config\n // Many transitions also animate the previous screen, so using 2 different transitions doesn't look right\n // For example combining a slide and a modal transition would look wrong otherwise\n // With this approach, combining different transition styles in the same navigator mostly looks right\n // This will still be broken when 2 transitions have different idle state (e.g. modal presentation),\n // but majority of the transitions look alright\n if (index !== self.length - 1) {\n const nextScene = scenes[index + 1];\n\n if (nextScene) {\n const {\n animationEnabled,\n gestureDirection = defaultTransitionPreset.gestureDirection,\n transitionSpec = defaultTransitionPreset.transitionSpec,\n cardStyleInterpolator = animationEnabled === false\n ? forNoAnimationCard\n : defaultTransitionPreset.cardStyleInterpolator,\n headerStyleInterpolator = defaultTransitionPreset.headerStyleInterpolator,\n } = nextScene.descriptor\n ? nextScene.descriptor.options\n : ({} as StackNavigationOptions);\n\n transitionConfig = {\n gestureDirection,\n transitionSpec,\n cardStyleInterpolator,\n headerStyleInterpolator,\n };\n }\n }\n\n const {\n top: safeAreaInsetTop = insets.top,\n right: safeAreaInsetRight = insets.right,\n bottom: safeAreaInsetBottom = insets.bottom,\n left: safeAreaInsetLeft = insets.left,\n } = safeAreaInsets || {};\n\n const previousRoute = getPreviousRoute({ route: scene.route });\n\n let previousScene = scenes[index - 1];\n\n if (previousRoute) {\n // The previous scene will be shortly before the current scene in the array\n // So loop back from current index to avoid looping over the full array\n for (let j = index - 1; j >= 0; j--) {\n const s = scenes[j];\n\n if (s && s.route.key === previousRoute.key) {\n previousScene = s;\n break;\n }\n }\n }\n\n return (\n \n \n \n );\n })}\n \n {headerMode === 'float'\n ? renderHeader({\n mode: 'float',\n layout,\n insets: { top, right, bottom, left },\n scenes,\n getPreviousRoute,\n getFocusedRoute: this.getFocusedRoute,\n onContentHeightChange: this.handleHeaderLayout,\n gestureDirection:\n focusedOptions.gestureDirection !== undefined\n ? focusedOptions.gestureDirection\n : defaultTransitionPreset.gestureDirection,\n styleInterpolator:\n focusedOptions.headerStyleInterpolator !== undefined\n ? focusedOptions.headerStyleInterpolator\n : defaultTransitionPreset.headerStyleInterpolator,\n style: styles.floating,\n })\n : null}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n floating: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n },\n});\n","import * as React from 'react';\nimport { Animated, View, Platform, ViewProps } from 'react-native';\n\nlet Screens: typeof import('react-native-screens') | undefined;\n\ntry {\n Screens = require('react-native-screens');\n} catch (e) {\n // Ignore\n}\n\n// The web implementation in react-native-screens seems buggy.\n// The view doesn't become visible after coming back in some cases.\n// So we use our custom implementation.\nclass WebScreen extends React.Component<\n ViewProps & {\n active: number;\n children: React.ReactNode;\n }\n> {\n render() {\n const { active, style, ...rest } = this.props;\n\n return (\n